You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65985 lines
4.5 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!doctype html>
<!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension -->
<!-- saved from url=(0021)https://tiddlywiki.com -->
<html lang="en-GB">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<!--~~ Raw markup for the top of the head section ~~-->
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<meta name="application-name" content="TiddlyWiki" />
<meta name="generator" content="TiddlyWiki" />
<meta name="tiddlywiki-version" content="5.1.22" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="format-detection" content="telephone=no" />
<meta name="copyright" content="TiddlyWiki created by Jeremy Ruston, (jeremy [at] jermolene [dot] com)
Copyright (c) 2004-2007, Jeremy Ruston
Copyright (c) 2007-2020, UnaMesa Association
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." />
<link id="faviconLink" rel="shortcut icon" href="favicon.ico">
<title>Copincha — a non-linear personal web notebook</title>
<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~-->
<!--~~ Raw markup ~~-->
</head>
<body class="tc-body">
<!--~~ Raw markup for the top of the body section ~~-->
<!--~~ Static styles ~~-->
<div id="styleArea">
<style data-tiddler-title="$:/boot/boot.css" data-tiddler-type="text/css" type="text/css">/*
Basic styles used before we boot up the parsing engine
*/
/*
Error message and password prompt
*/
.tc-error-form {
font-family: sans-serif;
color: #fff;
z-index: 20000;
position: fixed;
background-color: rgb(255, 75, 75);
border: 8px solid rgb(255, 0, 0);
border-radius: 8px;
width: 50%;
margin-left: 25%;
margin-top: 4em;
padding: 0 2em 1em 2em;
}
.tc-error-form h1 {
text-align: center;
}
.tc-error-prompt {
text-align: center;
color: #000;
}
.tc-error-message {
overflow: auto;
max-height: 40em;
padding-right: 1em;
margin: 1em 0;
white-space: pre-line;
}
.tc-password-wrapper {
font-family: sans-serif;
z-index: 20000;
position: fixed;
text-align: center;
width: 200px;
top: 4em;
left: 50%;
margin-left: -144px; /* - width/2 - paddingHorz/2 - border */
padding: 16px 16px 16px 16px;
border-radius: 8px;
}
.tc-password-wrapper {
color: #000;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
background-color: rgb(197, 235, 183);
border: 8px solid rgb(164, 197, 152);
}
.tc-password-wrapper form {
text-align: left;
}
.tc-password-wrapper h1 {
font-size: 16px;
line-height: 20px;
padding-bottom: 16px;
}
.tc-password-wrapper input {
width: 100%;
}
</style>
</div>
<!--~~ Static content for Google and browsers without JavaScript ~~-->
<noscript>
<div id="splashArea">
<p>This <a class="tc-tiddlylink-external" href="https://tiddlywiki.com" rel="noopener noreferrer" target="_blank">TiddlyWiki</a> contains the following tiddlers:</p><p><ul>
<li>$:/.tb/modules/startup/hide-sidebar.js</li>
<li>$:/Acknowledgements</li>
<li>$:/AdvancedSearch</li>
<li>$:/config/AnimationDuration</li>
<li>$:/config/AutoFocus</li>
<li>$:/config/AutoSave</li>
<li>$:/config/BitmapEditor/Colour</li>
<li>$:/config/BitmapEditor/ImageSizes</li>
<li>$:/config/BitmapEditor/LineWidth</li>
<li>$:/config/BitmapEditor/LineWidths</li>
<li>$:/config/BitmapEditor/Opacities</li>
<li>$:/config/BitmapEditor/Opacity</li>
<li>$:/config/DefaultMoreSidebarTab</li>
<li>$:/config/DefaultSidebarTab</li>
<li>$:/config/DownloadSaver/AutoSave</li>
<li>$:/config/Drafts/TypingTimeout</li>
<li>$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4</li>
<li>$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5</li>
<li>$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6</li>
<li>$:/config/EditorTypeMappings/image/gif</li>
<li>$:/config/EditorTypeMappings/image/heic</li>
<li>$:/config/EditorTypeMappings/image/heif</li>
<li>$:/config/EditorTypeMappings/image/jpeg</li>
<li>$:/config/EditorTypeMappings/image/jpg</li>
<li>$:/config/EditorTypeMappings/image/png</li>
<li>$:/config/EditorTypeMappings/image/webp</li>
<li>$:/config/EditorTypeMappings/image/x-icon</li>
<li>$:/config/EditorTypeMappings/text/vnd.tiddlywiki</li>
<li>$:/config/EditTemplateFields/Visibility/bag</li>
<li>$:/config/EditTemplateFields/Visibility/created</li>
<li>$:/config/EditTemplateFields/Visibility/creator</li>
<li>$:/config/EditTemplateFields/Visibility/draft.of</li>
<li>$:/config/EditTemplateFields/Visibility/draft.title</li>
<li>$:/config/EditTemplateFields/Visibility/modified</li>
<li>$:/config/EditTemplateFields/Visibility/modifier</li>
<li>$:/config/EditTemplateFields/Visibility/revision</li>
<li>$:/config/EditTemplateFields/Visibility/tags</li>
<li>$:/config/EditTemplateFields/Visibility/text</li>
<li>$:/config/EditTemplateFields/Visibility/title</li>
<li>$:/config/EditTemplateFields/Visibility/type</li>
<li>$:/config/HideSidebarOnStartup</li>
<li>$:/config/Manager/Filter</li>
<li>$:/config/Manager/Order</li>
<li>$:/config/Manager/Show</li>
<li>$:/config/Manager/Sort</li>
<li>$:/config/Manager/System</li>
<li>$:/config/Manager/Tag</li>
<li>$:/config/MissingLinks</li>
<li>$:/config/Navigation/openLinkFromInsideRiver</li>
<li>$:/config/Navigation/openLinkFromOutsideRiver</li>
<li>$:/config/Navigation/UpdateAddressBar</li>
<li>$:/config/Navigation/UpdateHistory</li>
<li>$:/config/NewImageType</li>
<li>$:/config/NewJournal/Tags</li>
<li>$:/config/NewJournal/Text</li>
<li>$:/config/NewJournal/Title</li>
<li>$:/config/OfficialPluginLibrary</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/close-all</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/export-page</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/fold-all</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/full-screen</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/language</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/manager</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-image</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-journal</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/palette</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/permaview</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/print</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/refresh</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/storyview</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/tag-manager</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/theme</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/timestamp</li>
<li>$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/unfold-all</li>
<li>$:/config/Performance/Instrumentation</li>
<li>$:/config/RegisterPluginType/import</li>
<li>$:/config/RegisterPluginType/info</li>
<li>$:/config/RegisterPluginType/language</li>
<li>$:/config/RegisterPluginType/plugin</li>
<li>$:/config/RegisterPluginType/theme</li>
<li>$:/config/SaverFilter</li>
<li>$:/config/SaveWikiButton/Template</li>
<li>$:/config/Search/AutoFocus</li>
<li>$:/config/Search/MinLength</li>
<li>$:/config/SearchResults/Default</li>
<li>$:/config/Server/ExternalFilters/[all[tiddlers]!is[system]sort[title]]</li>
<li>$:/config/ShortcutInfo/add-field</li>
<li>$:/config/ShortcutInfo/advanced-search</li>
<li>$:/config/ShortcutInfo/bold</li>
<li>$:/config/ShortcutInfo/cancel-edit-tiddler</li>
<li>$:/config/ShortcutInfo/excise</li>
<li>$:/config/ShortcutInfo/heading-1</li>
<li>$:/config/ShortcutInfo/heading-2</li>
<li>$:/config/ShortcutInfo/heading-3</li>
<li>$:/config/ShortcutInfo/heading-4</li>
<li>$:/config/ShortcutInfo/heading-5</li>
<li>$:/config/ShortcutInfo/heading-6</li>
<li>$:/config/ShortcutInfo/italic</li>
<li>$:/config/ShortcutInfo/link</li>
<li>$:/config/ShortcutInfo/list-bullet</li>
<li>$:/config/ShortcutInfo/list-number</li>
<li>$:/config/ShortcutInfo/mono-block</li>
<li>$:/config/ShortcutInfo/mono-line</li>
<li>$:/config/ShortcutInfo/new-image</li>
<li>$:/config/ShortcutInfo/new-journal</li>
<li>$:/config/ShortcutInfo/new-tiddler</li>
<li>$:/config/ShortcutInfo/picture</li>
<li>$:/config/ShortcutInfo/preview</li>
<li>$:/config/ShortcutInfo/quote</li>
<li>$:/config/ShortcutInfo/save-tiddler</li>
<li>$:/config/ShortcutInfo/sidebar-search</li>
<li>$:/config/ShortcutInfo/stamp</li>
<li>$:/config/ShortcutInfo/strikethrough</li>
<li>$:/config/ShortcutInfo/subscript</li>
<li>$:/config/ShortcutInfo/superscript</li>
<li>$:/config/ShortcutInfo/toggle-sidebar</li>
<li>$:/config/ShortcutInfo/underline</li>
<li>$:/config/shortcuts-mac/bold</li>
<li>$:/config/shortcuts-mac/italic</li>
<li>$:/config/shortcuts-mac/new-image</li>
<li>$:/config/shortcuts-mac/new-journal</li>
<li>$:/config/shortcuts-mac/new-tiddler</li>
<li>$:/config/shortcuts-mac/underline</li>
<li>$:/config/shortcuts-not-mac/bold</li>
<li>$:/config/shortcuts-not-mac/italic</li>
<li>$:/config/shortcuts-not-mac/new-image</li>
<li>$:/config/shortcuts-not-mac/new-journal</li>
<li>$:/config/shortcuts-not-mac/new-tiddler</li>
<li>$:/config/shortcuts-not-mac/underline</li>
<li>$:/config/shortcuts/add-field</li>
<li>$:/config/shortcuts/advanced-search</li>
<li>$:/config/shortcuts/cancel-edit-tiddler</li>
<li>$:/config/shortcuts/excise</li>
<li>$:/config/shortcuts/heading-1</li>
<li>$:/config/shortcuts/heading-2</li>
<li>$:/config/shortcuts/heading-3</li>
<li>$:/config/shortcuts/heading-4</li>
<li>$:/config/shortcuts/heading-5</li>
<li>$:/config/shortcuts/heading-6</li>
<li>$:/config/shortcuts/link</li>
<li>$:/config/shortcuts/linkify</li>
<li>$:/config/shortcuts/list-bullet</li>
<li>$:/config/shortcuts/list-number</li>
<li>$:/config/shortcuts/mono-block</li>
<li>$:/config/shortcuts/mono-line</li>
<li>$:/config/shortcuts/picture</li>
<li>$:/config/shortcuts/preview</li>
<li>$:/config/shortcuts/quote</li>
<li>$:/config/shortcuts/save-tiddler</li>
<li>$:/config/shortcuts/sidebar-search</li>
<li>$:/config/shortcuts/stamp</li>
<li>$:/config/shortcuts/strikethrough</li>
<li>$:/config/shortcuts/subscript</li>
<li>$:/config/shortcuts/superscript</li>
<li>$:/config/shortcuts/toggle-sidebar</li>
<li>$:/config/shortcuts/transcludify</li>
<li>$:/config/SyncFilter</li>
<li>$:/config/Tags/MinLength</li>
<li>$:/config/TextEditor/EditorHeight/Height</li>
<li>$:/config/TextEditor/EditorHeight/Mode</li>
<li>$:/config/TiddlerInfo/Default</li>
<li>$:/config/TiddlerInfo/Mode</li>
<li>$:/config/Tiddlers/TitleLinks</li>
<li>$:/config/Toolbar/ButtonClass</li>
<li>$:/config/Toolbar/Icons</li>
<li>$:/config/Toolbar/Text</li>
<li>$:/config/ui/EditTemplate</li>
<li>$:/config/ui/ViewTemplate</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close-others</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-others</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/open-window</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink</li>
<li>$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permaview</li>
<li>$:/config/WikiParserRules/Inline/wikilink</li>
<li>$:/ControlPanel</li>
<li>$:/core</li>
<li>$:/core/buttonstyles/Borderless</li>
<li>$:/core/buttonstyles/Boxed</li>
<li>$:/core/buttonstyles/Rounded</li>
<li>$:/core/copyright.txt</li>
<li>$:/core/Filters/AllTags</li>
<li>$:/core/Filters/AllTiddlers</li>
<li>$:/core/Filters/Drafts</li>
<li>$:/core/Filters/Missing</li>
<li>$:/core/Filters/Orphans</li>
<li>$:/core/Filters/OverriddenShadowTiddlers</li>
<li>$:/core/Filters/RecentSystemTiddlers</li>
<li>$:/core/Filters/RecentTiddlers</li>
<li>$:/core/Filters/SessionTiddlers</li>
<li>$:/core/Filters/ShadowTiddlers</li>
<li>$:/core/Filters/StoryList</li>
<li>$:/core/Filters/SystemTags</li>
<li>$:/core/Filters/SystemTiddlers</li>
<li>$:/core/Filters/TypedTiddlers</li>
<li>$:/core/icon</li>
<li>$:/core/images/add-comment</li>
<li>$:/core/images/advanced-search-button</li>
<li>$:/core/images/auto-height</li>
<li>$:/core/images/blank</li>
<li>$:/core/images/bold</li>
<li>$:/core/images/cancel-button</li>
<li>$:/core/images/chevron-down</li>
<li>$:/core/images/chevron-left</li>
<li>$:/core/images/chevron-right</li>
<li>$:/core/images/chevron-up</li>
<li>$:/core/images/clone-button</li>
<li>$:/core/images/close-all-button</li>
<li>$:/core/images/close-button</li>
<li>$:/core/images/close-others-button</li>
<li>$:/core/images/copy-clipboard</li>
<li>$:/core/images/delete-button</li>
<li>$:/core/images/done-button</li>
<li>$:/core/images/down-arrow</li>
<li>$:/core/images/download-button</li>
<li>$:/core/images/edit-button</li>
<li>$:/core/images/erase</li>
<li>$:/core/images/excise</li>
<li>$:/core/images/export-button</li>
<li>$:/core/images/facebook</li>
<li>$:/core/images/file</li>
<li>$:/core/images/fixed-height</li>
<li>$:/core/images/fold-all-button</li>
<li>$:/core/images/fold-button</li>
<li>$:/core/images/fold-others-button</li>
<li>$:/core/images/folder</li>
<li>$:/core/images/full-screen-button</li>
<li>$:/core/images/github</li>
<li>$:/core/images/gitter</li>
<li>$:/core/images/globe</li>
<li>$:/core/images/heading-1</li>
<li>$:/core/images/heading-2</li>
<li>$:/core/images/heading-3</li>
<li>$:/core/images/heading-4</li>
<li>$:/core/images/heading-5</li>
<li>$:/core/images/heading-6</li>
<li>$:/core/images/help</li>
<li>$:/core/images/home-button</li>
<li>$:/core/images/import-button</li>
<li>$:/core/images/info-button</li>
<li>$:/core/images/instagram</li>
<li>$:/core/images/italic</li>
<li>$:/core/images/left-arrow</li>
<li>$:/core/images/line-width</li>
<li>$:/core/images/link</li>
<li>$:/core/images/linkify</li>
<li>$:/core/images/list</li>
<li>$:/core/images/list-bullet</li>
<li>$:/core/images/list-number</li>
<li>$:/core/images/locked-padlock</li>
<li>$:/core/images/mail</li>
<li>$:/core/images/menu-button</li>
<li>$:/core/images/mono-block</li>
<li>$:/core/images/mono-line</li>
<li>$:/core/images/new-button</li>
<li>$:/core/images/new-here-button</li>
<li>$:/core/images/new-image-button</li>
<li>$:/core/images/new-journal-button</li>
<li>$:/core/images/opacity</li>
<li>$:/core/images/open-window</li>
<li>$:/core/images/options-button</li>
<li>$:/core/images/paint</li>
<li>$:/core/images/palette</li>
<li>$:/core/images/permalink-button</li>
<li>$:/core/images/permaview-button</li>
<li>$:/core/images/picture</li>
<li>$:/core/images/plugin-generic-language</li>
<li>$:/core/images/plugin-generic-plugin</li>
<li>$:/core/images/plugin-generic-theme</li>
<li>$:/core/images/preview-closed</li>
<li>$:/core/images/preview-open</li>
<li>$:/core/images/print-button</li>
<li>$:/core/images/quote</li>
<li>$:/core/images/refresh-button</li>
<li>$:/core/images/right-arrow</li>
<li>$:/core/images/rotate-left</li>
<li>$:/core/images/save-button</li>
<li>$:/core/images/size</li>
<li>$:/core/images/spiral</li>
<li>$:/core/images/stamp</li>
<li>$:/core/images/star-filled</li>
<li>$:/core/images/storyview-classic</li>
<li>$:/core/images/storyview-pop</li>
<li>$:/core/images/storyview-zoomin</li>
<li>$:/core/images/strikethrough</li>
<li>$:/core/images/subscript</li>
<li>$:/core/images/superscript</li>
<li>$:/core/images/tag-button</li>
<li>$:/core/images/telegram</li>
<li>$:/core/images/theme-button</li>
<li>$:/core/images/timestamp-off</li>
<li>$:/core/images/timestamp-on</li>
<li>$:/core/images/tip</li>
<li>$:/core/images/transcludify</li>
<li>$:/core/images/twitter</li>
<li>$:/core/images/underline</li>
<li>$:/core/images/unfold-all-button</li>
<li>$:/core/images/unfold-button</li>
<li>$:/core/images/unlocked-padlock</li>
<li>$:/core/images/up-arrow</li>
<li>$:/core/images/video</li>
<li>$:/core/images/warning</li>
<li>$:/core/images/whatsapp</li>
<li>$:/core/macros/colour-picker</li>
<li>$:/core/macros/copy-to-clipboard</li>
<li>$:/core/macros/CSS</li>
<li>$:/core/macros/diff</li>
<li>$:/core/macros/dumpvariables</li>
<li>$:/core/macros/export</li>
<li>$:/core/macros/image-picker</li>
<li>$:/core/macros/lingo</li>
<li>$:/core/macros/list</li>
<li>$:/core/macros/tabs</li>
<li>$:/core/macros/tag</li>
<li>$:/core/macros/tag-picker</li>
<li>$:/core/macros/thumbnails</li>
<li>$:/core/macros/timeline</li>
<li>$:/core/macros/toc</li>
<li>$:/core/macros/translink</li>
<li>$:/core/macros/tree</li>
<li>$:/core/macros/utils</li>
<li>$:/core/modules/browser-messaging.js</li>
<li>$:/core/modules/commander.js</li>
<li>$:/core/modules/commands/build.js</li>
<li>$:/core/modules/commands/clearpassword.js</li>
<li>$:/core/modules/commands/deletetiddlers.js</li>
<li>$:/core/modules/commands/editions.js</li>
<li>$:/core/modules/commands/fetch.js</li>
<li>$:/core/modules/commands/help.js</li>
<li>$:/core/modules/commands/import.js</li>
<li>$:/core/modules/commands/init.js</li>
<li>$:/core/modules/commands/listen.js</li>
<li>$:/core/modules/commands/load.js</li>
<li>$:/core/modules/commands/makelibrary.js</li>
<li>$:/core/modules/commands/output.js</li>
<li>$:/core/modules/commands/password.js</li>
<li>$:/core/modules/commands/render.js</li>
<li>$:/core/modules/commands/rendertiddler.js</li>
<li>$:/core/modules/commands/rendertiddlers.js</li>
<li>$:/core/modules/commands/save.js</li>
<li>$:/core/modules/commands/savelibrarytiddlers.js</li>
<li>$:/core/modules/commands/savetiddler.js</li>
<li>$:/core/modules/commands/savetiddlers.js</li>
<li>$:/core/modules/commands/savewikifolder.js</li>
<li>$:/core/modules/commands/server.js</li>
<li>$:/core/modules/commands/setfield.js</li>
<li>$:/core/modules/commands/unpackplugin.js</li>
<li>$:/core/modules/commands/verbose.js</li>
<li>$:/core/modules/commands/version.js</li>
<li>$:/core/modules/config.js</li>
<li>$:/core/modules/deserializers.js</li>
<li>$:/core/modules/editor/engines/framed.js</li>
<li>$:/core/modules/editor/engines/simple.js</li>
<li>$:/core/modules/editor/factory.js</li>
<li>$:/core/modules/editor/operations/bitmap/clear.js</li>
<li>$:/core/modules/editor/operations/bitmap/resize.js</li>
<li>$:/core/modules/editor/operations/bitmap/rotate-left.js</li>
<li>$:/core/modules/editor/operations/text/excise.js</li>
<li>$:/core/modules/editor/operations/text/make-link.js</li>
<li>$:/core/modules/editor/operations/text/prefix-lines.js</li>
<li>$:/core/modules/editor/operations/text/replace-all.js</li>
<li>$:/core/modules/editor/operations/text/replace-selection.js</li>
<li>$:/core/modules/editor/operations/text/save-selection.js</li>
<li>$:/core/modules/editor/operations/text/wrap-lines.js</li>
<li>$:/core/modules/editor/operations/text/wrap-selection.js</li>
<li>$:/core/modules/filters.js</li>
<li>$:/core/modules/filters/addprefix.js</li>
<li>$:/core/modules/filters/addsuffix.js</li>
<li>$:/core/modules/filters/after.js</li>
<li>$:/core/modules/filters/all.js</li>
<li>$:/core/modules/filters/all/current.js</li>
<li>$:/core/modules/filters/all/missing.js</li>
<li>$:/core/modules/filters/all/orphans.js</li>
<li>$:/core/modules/filters/all/shadows.js</li>
<li>$:/core/modules/filters/all/tags.js</li>
<li>$:/core/modules/filters/all/tiddlers.js</li>
<li>$:/core/modules/filters/backlinks.js</li>
<li>$:/core/modules/filters/before.js</li>
<li>$:/core/modules/filters/commands.js</li>
<li>$:/core/modules/filters/compare.js</li>
<li>$:/core/modules/filters/contains.js</li>
<li>$:/core/modules/filters/count.js</li>
<li>$:/core/modules/filters/days.js</li>
<li>$:/core/modules/filters/decodeuricomponent.js</li>
<li>$:/core/modules/filters/each.js</li>
<li>$:/core/modules/filters/eachday.js</li>
<li>$:/core/modules/filters/editiondescription.js</li>
<li>$:/core/modules/filters/editions.js</li>
<li>$:/core/modules/filters/else.js</li>
<li>$:/core/modules/filters/enlist.js</li>
<li>$:/core/modules/filters/field.js</li>
<li>$:/core/modules/filters/fields.js</li>
<li>$:/core/modules/filters/get.js</li>
<li>$:/core/modules/filters/getindex.js</li>
<li>$:/core/modules/filters/getvariable.js</li>
<li>$:/core/modules/filters/has.js</li>
<li>$:/core/modules/filters/haschanged.js</li>
<li>$:/core/modules/filters/indexes.js</li>
<li>$:/core/modules/filters/insertbefore.js</li>
<li>$:/core/modules/filters/is.js</li>
<li>$:/core/modules/filters/is/binary.js</li>
<li>$:/core/modules/filters/is/blank.js</li>
<li>$:/core/modules/filters/is/current.js</li>
<li>$:/core/modules/filters/is/image.js</li>
<li>$:/core/modules/filters/is/missing.js</li>
<li>$:/core/modules/filters/is/orphan.js</li>
<li>$:/core/modules/filters/is/shadow.js</li>
<li>$:/core/modules/filters/is/system.js</li>
<li>$:/core/modules/filters/is/tag.js</li>
<li>$:/core/modules/filters/is/tiddler.js</li>
<li>$:/core/modules/filters/is/variable.js</li>
<li>$:/core/modules/filters/limit.js</li>
<li>$:/core/modules/filters/links.js</li>
<li>$:/core/modules/filters/list.js</li>
<li>$:/core/modules/filters/listed.js</li>
<li>$:/core/modules/filters/listops.js</li>
<li>$:/core/modules/filters/lookup.js</li>
<li>$:/core/modules/filters/match.js</li>
<li>$:/core/modules/filters/math.js</li>
<li>$:/core/modules/filters/minlength.js</li>
<li>$:/core/modules/filters/modules.js</li>
<li>$:/core/modules/filters/moduletypes.js</li>
<li>$:/core/modules/filters/next.js</li>
<li>$:/core/modules/filters/plugintiddlers.js</li>
<li>$:/core/modules/filters/prefix.js</li>
<li>$:/core/modules/filters/previous.js</li>
<li>$:/core/modules/filters/range.js</li>
<li>$:/core/modules/filters/regexp.js</li>
<li>$:/core/modules/filters/removeprefix.js</li>
<li>$:/core/modules/filters/removesuffix.js</li>
<li>$:/core/modules/filters/sameday.js</li>
<li>$:/core/modules/filters/search.js</li>
<li>$:/core/modules/filters/shadowsource.js</li>
<li>$:/core/modules/filters/sort.js</li>
<li>$:/core/modules/filters/splitbefore.js</li>
<li>$:/core/modules/filters/storyviews.js</li>
<li>$:/core/modules/filters/strings.js</li>
<li>$:/core/modules/filters/subfilter.js</li>
<li>$:/core/modules/filters/subtiddlerfields.js</li>
<li>$:/core/modules/filters/suffix.js</li>
<li>$:/core/modules/filters/tag.js</li>
<li>$:/core/modules/filters/tagging.js</li>
<li>$:/core/modules/filters/tags.js</li>
<li>$:/core/modules/filters/then.js</li>
<li>$:/core/modules/filters/title.js</li>
<li>$:/core/modules/filters/untagged.js</li>
<li>$:/core/modules/filters/variables.js</li>
<li>$:/core/modules/filters/wikiparserrules.js</li>
<li>$:/core/modules/filters/x-listops.js</li>
<li>$:/core/modules/indexers/backlinks-indexer.js</li>
<li>$:/core/modules/indexers/field-indexer.js</li>
<li>$:/core/modules/indexers/tag-indexer.js</li>
<li>$:/core/modules/info/platform.js</li>
<li>$:/core/modules/keyboard.js</li>
<li>$:/core/modules/language.js</li>
<li>$:/core/modules/macros/changecount.js</li>
<li>$:/core/modules/macros/contrastcolour.js</li>
<li>$:/core/modules/macros/csvtiddlers.js</li>
<li>$:/core/modules/macros/displayshortcuts.js</li>
<li>$:/core/modules/macros/jsontiddler.js</li>
<li>$:/core/modules/macros/jsontiddlers.js</li>
<li>$:/core/modules/macros/makedatauri.js</li>
<li>$:/core/modules/macros/now.js</li>
<li>$:/core/modules/macros/qualify.js</li>
<li>$:/core/modules/macros/resolvepath.js</li>
<li>$:/core/modules/macros/unusedtitle.js</li>
<li>$:/core/modules/macros/version.js</li>
<li>$:/core/modules/parsers/audioparser.js</li>
<li>$:/core/modules/parsers/binaryparser.js</li>
<li>$:/core/modules/parsers/csvparser.js</li>
<li>$:/core/modules/parsers/htmlparser.js</li>
<li>$:/core/modules/parsers/imageparser.js</li>
<li>$:/core/modules/parsers/pdfparser.js</li>
<li>$:/core/modules/parsers/textparser.js</li>
<li>$:/core/modules/parsers/videoparser.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/codeblock.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/codeinline.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/commentblock.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/commentinline.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/dash.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/emphasis/bold.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/emphasis/italic.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/entity.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/extlink.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/heading.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/horizrule.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/html.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/image.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/import.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/list.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/macrocallblock.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/macrocallinline.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/macrodef.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/prettyextlink.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/prettylink.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/quoteblock.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/rules.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/styleblock.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/styleinline.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/syslink.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/table.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/transcludeblock.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/transcludeinline.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/typedblock.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/whitespace.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/wikilink.js</li>
<li>$:/core/modules/parsers/wikiparser/rules/wikirulebase.js</li>
<li>$:/core/modules/parsers/wikiparser/wikiparser.js</li>
<li>$:/core/modules/pluginswitcher.js</li>
<li>$:/core/modules/saver-handler.js</li>
<li>$:/core/modules/savers/andtidwiki.js</li>
<li>$:/core/modules/savers/beaker.js</li>
<li>$:/core/modules/savers/download.js</li>
<li>$:/core/modules/savers/fsosaver.js</li>
<li>$:/core/modules/savers/gitea.js</li>
<li>$:/core/modules/savers/github.js</li>
<li>$:/core/modules/savers/gitlab.js</li>
<li>$:/core/modules/savers/manualdownload.js</li>
<li>$:/core/modules/savers/msdownload.js</li>
<li>$:/core/modules/savers/put.js</li>
<li>$:/core/modules/savers/tiddlyfox.js</li>
<li>$:/core/modules/savers/tiddlyie.js</li>
<li>$:/core/modules/savers/twedit.js</li>
<li>$:/core/modules/savers/upload.js</li>
<li>$:/core/modules/server/authenticators/basic.js</li>
<li>$:/core/modules/server/authenticators/header.js</li>
<li>$:/core/modules/server/routes/delete-tiddler.js</li>
<li>$:/core/modules/server/routes/get-favicon.js</li>
<li>$:/core/modules/server/routes/get-file.js</li>
<li>$:/core/modules/server/routes/get-index.js</li>
<li>$:/core/modules/server/routes/get-login-basic.js</li>
<li>$:/core/modules/server/routes/get-status.js</li>
<li>$:/core/modules/server/routes/get-tiddler-html.js</li>
<li>$:/core/modules/server/routes/get-tiddler.js</li>
<li>$:/core/modules/server/routes/get-tiddlers-json.js</li>
<li>$:/core/modules/server/routes/put-tiddler.js</li>
<li>$:/core/modules/server/server.js</li>
<li>$:/core/modules/startup.js</li>
<li>$:/core/modules/startup/commands.js</li>
<li>$:/core/modules/startup/CSSescape.js</li>
<li>$:/core/modules/startup/favicon.js</li>
<li>$:/core/modules/startup/info.js</li>
<li>$:/core/modules/startup/load-modules.js</li>
<li>$:/core/modules/startup/password.js</li>
<li>$:/core/modules/startup/plugins.js</li>
<li>$:/core/modules/startup/render.js</li>
<li>$:/core/modules/startup/rootwidget.js</li>
<li>$:/core/modules/startup/story.js</li>
<li>$:/core/modules/startup/windows.js</li>
<li>$:/core/modules/story.js</li>
<li>$:/core/modules/storyviews/classic.js</li>
<li>$:/core/modules/storyviews/pop.js</li>
<li>$:/core/modules/storyviews/zoomin.js</li>
<li>$:/core/modules/syncer.js</li>
<li>$:/core/modules/tiddler.js</li>
<li>$:/core/modules/upgraders/plugins.js</li>
<li>$:/core/modules/upgraders/system.js</li>
<li>$:/core/modules/upgraders/themetweaks.js</li>
<li>$:/core/modules/utils/base64-utf8/base64-utf8.module.js</li>
<li>$:/core/modules/utils/crypto.js</li>
<li>$:/core/modules/utils/csv.js</li>
<li>$:/core/modules/utils/diff-match-patch/diff_match_patch.js</li>
<li>$:/core/modules/utils/dom.js</li>
<li>$:/core/modules/utils/dom/animations/slide.js</li>
<li>$:/core/modules/utils/dom/animator.js</li>
<li>$:/core/modules/utils/dom/browser.js</li>
<li>$:/core/modules/utils/dom/csscolorparser.js</li>
<li>$:/core/modules/utils/dom/dragndrop.js</li>
<li>$:/core/modules/utils/dom/http.js</li>
<li>$:/core/modules/utils/dom/keyboard.js</li>
<li>$:/core/modules/utils/dom/modal.js</li>
<li>$:/core/modules/utils/dom/notifier.js</li>
<li>$:/core/modules/utils/dom/popup.js</li>
<li>$:/core/modules/utils/dom/scroller.js</li>
<li>$:/core/modules/utils/edition-info.js</li>
<li>$:/core/modules/utils/fakedom.js</li>
<li>$:/core/modules/utils/filesystem.js</li>
<li>$:/core/modules/utils/logger.js</li>
<li>$:/core/modules/utils/parsetree.js</li>
<li>$:/core/modules/utils/parseutils.js</li>
<li>$:/core/modules/utils/performance.js</li>
<li>$:/core/modules/utils/pluginmaker.js</li>
<li>$:/core/modules/utils/transliterate.js</li>
<li>$:/core/modules/utils/utils.js</li>
<li>$:/core/modules/widgets/action-createtiddler.js</li>
<li>$:/core/modules/widgets/action-deletefield.js</li>
<li>$:/core/modules/widgets/action-deletetiddler.js</li>
<li>$:/core/modules/widgets/action-listops.js</li>
<li>$:/core/modules/widgets/action-navigate.js</li>
<li>$:/core/modules/widgets/action-popup.js</li>
<li>$:/core/modules/widgets/action-sendmessage.js</li>
<li>$:/core/modules/widgets/action-setfield.js</li>
<li>$:/core/modules/widgets/browse.js</li>
<li>$:/core/modules/widgets/button.js</li>
<li>$:/core/modules/widgets/checkbox.js</li>
<li>$:/core/modules/widgets/codeblock.js</li>
<li>$:/core/modules/widgets/count.js</li>
<li>$:/core/modules/widgets/diff-text.js</li>
<li>$:/core/modules/widgets/draggable.js</li>
<li>$:/core/modules/widgets/droppable.js</li>
<li>$:/core/modules/widgets/dropzone.js</li>
<li>$:/core/modules/widgets/edit-binary.js</li>
<li>$:/core/modules/widgets/edit-bitmap.js</li>
<li>$:/core/modules/widgets/edit-shortcut.js</li>
<li>$:/core/modules/widgets/edit-text.js</li>
<li>$:/core/modules/widgets/edit.js</li>
<li>$:/core/modules/widgets/element.js</li>
<li>$:/core/modules/widgets/encrypt.js</li>
<li>$:/core/modules/widgets/entity.js</li>
<li>$:/core/modules/widgets/fieldmangler.js</li>
<li>$:/core/modules/widgets/fields.js</li>
<li>$:/core/modules/widgets/image.js</li>
<li>$:/core/modules/widgets/importvariables.js</li>
<li>$:/core/modules/widgets/keyboard.js</li>
<li>$:/core/modules/widgets/link.js</li>
<li>$:/core/modules/widgets/linkcatcher.js</li>
<li>$:/core/modules/widgets/list.js</li>
<li>$:/core/modules/widgets/macrocall.js</li>
<li>$:/core/modules/widgets/navigator.js</li>
<li>$:/core/modules/widgets/password.js</li>
<li>$:/core/modules/widgets/qualify.js</li>
<li>$:/core/modules/widgets/radio.js</li>
<li>$:/core/modules/widgets/range.js</li>
<li>$:/core/modules/widgets/raw.js</li>
<li>$:/core/modules/widgets/reveal.js</li>
<li>$:/core/modules/widgets/scrollable.js</li>
<li>$:/core/modules/widgets/select.js</li>
<li>$:/core/modules/widgets/set.js</li>
<li>$:/core/modules/widgets/text.js</li>
<li>$:/core/modules/widgets/tiddler.js</li>
<li>$:/core/modules/widgets/transclude.js</li>
<li>$:/core/modules/widgets/vars.js</li>
<li>$:/core/modules/widgets/view.js</li>
<li>$:/core/modules/widgets/widget.js</li>
<li>$:/core/modules/widgets/wikify.js</li>
<li>$:/core/modules/wiki-bulkops.js</li>
<li>$:/core/modules/wiki.js</li>
<li>$:/core/readme</li>
<li>$:/core/save/all</li>
<li>$:/core/save/all-external-js</li>
<li>$:/core/save/empty</li>
<li>$:/core/save/lazy-all</li>
<li>$:/core/save/lazy-images</li>
<li>$:/core/templates/alltiddlers.template.html</li>
<li>$:/core/templates/canonical-uri-external-image</li>
<li>$:/core/templates/canonical-uri-external-raw</li>
<li>$:/core/templates/canonical-uri-external-text</li>
<li>$:/core/templates/css-tiddler</li>
<li>$:/core/templates/exporters/CsvFile</li>
<li>$:/core/templates/exporters/JsonFile</li>
<li>$:/core/templates/exporters/StaticRiver</li>
<li>$:/core/templates/exporters/StaticRiver/Content</li>
<li>$:/core/templates/exporters/TidFile</li>
<li>$:/core/templates/html-div-skinny-tiddler</li>
<li>$:/core/templates/html-div-tiddler</li>
<li>$:/core/templates/html-tiddler</li>
<li>$:/core/templates/javascript-tiddler</li>
<li>$:/core/templates/json-tiddler</li>
<li>$:/core/templates/module-tiddler</li>
<li>$:/core/templates/MOTW.html</li>
<li>$:/core/templates/plain-text-tiddler</li>
<li>$:/core/templates/raw-static-tiddler</li>
<li>$:/core/templates/server/static.sidebar.wikitext</li>
<li>$:/core/templates/server/static.tiddler.html</li>
<li>$:/core/templates/server/static.tiddler.wikitext</li>
<li>$:/core/templates/single.tiddler.window</li>
<li>$:/core/templates/split-recipe</li>
<li>$:/core/templates/static-tiddler</li>
<li>$:/core/templates/static.area</li>
<li>$:/core/templates/static.content</li>
<li>$:/core/templates/static.template.css</li>
<li>$:/core/templates/static.template.html</li>
<li>$:/core/templates/static.tiddler.html</li>
<li>$:/core/templates/store.area.template.html</li>
<li>$:/core/templates/tid-tiddler</li>
<li>$:/core/templates/tiddler-metadata</li>
<li>$:/core/templates/tiddlywiki5-external-js.html</li>
<li>$:/core/templates/tiddlywiki5.html</li>
<li>$:/core/templates/tiddlywiki5.js</li>
<li>$:/core/templates/tiddlywiki5.js/tiddlers</li>
<li>$:/core/templates/version</li>
<li>$:/core/templates/wikified-tiddler</li>
<li>$:/core/ui/AboveStory/tw2-plugin-check</li>
<li>$:/core/ui/Actions/new-image</li>
<li>$:/core/ui/Actions/new-journal</li>
<li>$:/core/ui/Actions/new-tiddler</li>
<li>$:/core/ui/AdvancedSearch/Filter</li>
<li>$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear</li>
<li>$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete</li>
<li>$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown</li>
<li>$:/core/ui/AdvancedSearch/Filter/FilterButtons/export</li>
<li>$:/core/ui/AdvancedSearch/Shadows</li>
<li>$:/core/ui/AdvancedSearch/Standard</li>
<li>$:/core/ui/AdvancedSearch/System</li>
<li>$:/core/ui/AlertTemplate</li>
<li>$:/core/ui/BinaryWarning</li>
<li>$:/core/ui/Buttons/advanced-search</li>
<li>$:/core/ui/Buttons/cancel</li>
<li>$:/core/ui/Buttons/clone</li>
<li>$:/core/ui/Buttons/close</li>
<li>$:/core/ui/Buttons/close-all</li>
<li>$:/core/ui/Buttons/close-others</li>
<li>$:/core/ui/Buttons/control-panel</li>
<li>$:/core/ui/Buttons/delete</li>
<li>$:/core/ui/Buttons/edit</li>
<li>$:/core/ui/Buttons/encryption</li>
<li>$:/core/ui/Buttons/export-page</li>
<li>$:/core/ui/Buttons/export-tiddler</li>
<li>$:/core/ui/Buttons/fold</li>
<li>$:/core/ui/Buttons/fold-all</li>
<li>$:/core/ui/Buttons/fold-bar</li>
<li>$:/core/ui/Buttons/fold-others</li>
<li>$:/core/ui/Buttons/full-screen</li>
<li>$:/core/ui/Buttons/home</li>
<li>$:/core/ui/Buttons/import</li>
<li>$:/core/ui/Buttons/info</li>
<li>$:/core/ui/Buttons/language</li>
<li>$:/core/ui/Buttons/manager</li>
<li>$:/core/ui/Buttons/more-page-actions</li>
<li>$:/core/ui/Buttons/more-tiddler-actions</li>
<li>$:/core/ui/Buttons/new-here</li>
<li>$:/core/ui/Buttons/new-image</li>
<li>$:/core/ui/Buttons/new-journal</li>
<li>$:/core/ui/Buttons/new-journal-here</li>
<li>$:/core/ui/Buttons/new-tiddler</li>
<li>$:/core/ui/Buttons/open-window</li>
<li>$:/core/ui/Buttons/palette</li>
<li>$:/core/ui/Buttons/permalink</li>
<li>$:/core/ui/Buttons/permaview</li>
<li>$:/core/ui/Buttons/print</li>
<li>$:/core/ui/Buttons/refresh</li>
<li>$:/core/ui/Buttons/save</li>
<li>$:/core/ui/Buttons/save-wiki</li>
<li>$:/core/ui/Buttons/storyview</li>
<li>$:/core/ui/Buttons/tag-manager</li>
<li>$:/core/ui/Buttons/theme</li>
<li>$:/core/ui/Buttons/timestamp</li>
<li>$:/core/ui/Buttons/unfold-all</li>
<li>$:/core/ui/Components/plugin-info</li>
<li>$:/core/ui/Components/tag-link</li>
<li>$:/core/ui/ControlPanel/Advanced</li>
<li>$:/core/ui/ControlPanel/Appearance</li>
<li>$:/core/ui/ControlPanel/Basics</li>
<li>$:/core/ui/ControlPanel/EditorTypes</li>
<li>$:/core/ui/ControlPanel/Info</li>
<li>$:/core/ui/ControlPanel/KeyboardShortcuts</li>
<li>$:/core/ui/ControlPanel/LoadedModules</li>
<li>$:/core/ui/ControlPanel/Modals/AddPlugins</li>
<li>$:/core/ui/ControlPanel/Palette</li>
<li>$:/core/ui/ControlPanel/Parsing</li>
<li>$:/core/ui/ControlPanel/Plugins</li>
<li>$:/core/ui/ControlPanel/Plugins/Add/Languages</li>
<li>$:/core/ui/ControlPanel/Plugins/Add/Plugins</li>
<li>$:/core/ui/ControlPanel/Plugins/Add/Themes</li>
<li>$:/core/ui/ControlPanel/Plugins/Add/Updates</li>
<li>$:/core/ui/ControlPanel/Plugins/AddPlugins</li>
<li>$:/core/ui/ControlPanel/Plugins/Installed/Languages</li>
<li>$:/core/ui/ControlPanel/Plugins/Installed/Plugins</li>
<li>$:/core/ui/ControlPanel/Plugins/Installed/Themes</li>
<li>$:/core/ui/ControlPanel/Saving</li>
<li>$:/core/ui/ControlPanel/Saving/DownloadSaver</li>
<li>$:/core/ui/ControlPanel/Saving/General</li>
<li>$:/core/ui/ControlPanel/Saving/Gitea</li>
<li>$:/core/ui/ControlPanel/Saving/GitHub</li>
<li>$:/core/ui/ControlPanel/Saving/GitLab</li>
<li>$:/core/ui/ControlPanel/Saving/TiddlySpot</li>
<li>$:/core/ui/ControlPanel/Settings</li>
<li>$:/core/ui/ControlPanel/Settings/CamelCase</li>
<li>$:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab</li>
<li>$:/core/ui/ControlPanel/Settings/DefaultSidebarTab</li>
<li>$:/core/ui/ControlPanel/Settings/EditorToolbar</li>
<li>$:/core/ui/ControlPanel/Settings/InfoPanelMode</li>
<li>$:/core/ui/ControlPanel/Settings/LinkToBehaviour</li>
<li>$:/core/ui/ControlPanel/Settings/MissingLinks</li>
<li>$:/core/ui/ControlPanel/Settings/NavigationAddressBar</li>
<li>$:/core/ui/ControlPanel/Settings/NavigationHistory</li>
<li>$:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode</li>
<li>$:/core/ui/ControlPanel/Settings/PerformanceInstrumentation</li>
<li>$:/core/ui/ControlPanel/Settings/TitleLinks</li>
<li>$:/core/ui/ControlPanel/Settings/ToolbarButtons</li>
<li>$:/core/ui/ControlPanel/Settings/ToolbarButtonStyle</li>
<li>$:/core/ui/ControlPanel/StoryView</li>
<li>$:/core/ui/ControlPanel/Stylesheets</li>
<li>$:/core/ui/ControlPanel/Theme</li>
<li>$:/core/ui/ControlPanel/TiddlerFields</li>
<li>$:/core/ui/ControlPanel/Toolbars</li>
<li>$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate</li>
<li>$:/core/ui/ControlPanel/Toolbars/EditorToolbar</li>
<li>$:/core/ui/ControlPanel/Toolbars/EditToolbar</li>
<li>$:/core/ui/ControlPanel/Toolbars/ItemTemplate</li>
<li>$:/core/ui/ControlPanel/Toolbars/PageControls</li>
<li>$:/core/ui/ControlPanel/Toolbars/ViewToolbar</li>
<li>$:/core/ui/DefaultSearchResultList</li>
<li>$:/core/ui/EditorToolbar/bold</li>
<li>$:/core/ui/EditorToolbar/clear</li>
<li>$:/core/ui/EditorToolbar/clear-dropdown</li>
<li>$:/core/ui/EditorToolbar/editor-height</li>
<li>$:/core/ui/EditorToolbar/editor-height-dropdown</li>
<li>$:/core/ui/EditorToolbar/excise</li>
<li>$:/core/ui/EditorToolbar/excise-dropdown</li>
<li>$:/core/ui/EditorToolbar/heading-1</li>
<li>$:/core/ui/EditorToolbar/heading-2</li>
<li>$:/core/ui/EditorToolbar/heading-3</li>
<li>$:/core/ui/EditorToolbar/heading-4</li>
<li>$:/core/ui/EditorToolbar/heading-5</li>
<li>$:/core/ui/EditorToolbar/heading-6</li>
<li>$:/core/ui/EditorToolbar/italic</li>
<li>$:/core/ui/EditorToolbar/line-width</li>
<li>$:/core/ui/EditorToolbar/line-width-dropdown</li>
<li>$:/core/ui/EditorToolbar/link</li>
<li>$:/core/ui/EditorToolbar/link-dropdown</li>
<li>$:/core/ui/EditorToolbar/linkify</li>
<li>$:/core/ui/EditorToolbar/list-bullet</li>
<li>$:/core/ui/EditorToolbar/list-number</li>
<li>$:/core/ui/EditorToolbar/mono-block</li>
<li>$:/core/ui/EditorToolbar/mono-line</li>
<li>$:/core/ui/EditorToolbar/more</li>
<li>$:/core/ui/EditorToolbar/more-dropdown</li>
<li>$:/core/ui/EditorToolbar/opacity</li>
<li>$:/core/ui/EditorToolbar/opacity-dropdown</li>
<li>$:/core/ui/EditorToolbar/paint</li>
<li>$:/core/ui/EditorToolbar/paint-dropdown</li>
<li>$:/core/ui/EditorToolbar/picture</li>
<li>$:/core/ui/EditorToolbar/picture-dropdown</li>
<li>$:/core/ui/EditorToolbar/preview</li>
<li>$:/core/ui/EditorToolbar/preview-type</li>
<li>$:/core/ui/EditorToolbar/preview-type-dropdown</li>
<li>$:/core/ui/EditorToolbar/quote</li>
<li>$:/core/ui/EditorToolbar/rotate-left</li>
<li>$:/core/ui/EditorToolbar/size</li>
<li>$:/core/ui/EditorToolbar/size-dropdown</li>
<li>$:/core/ui/EditorToolbar/stamp</li>
<li>$:/core/ui/EditorToolbar/stamp-dropdown</li>
<li>$:/core/ui/EditorToolbar/strikethrough</li>
<li>$:/core/ui/EditorToolbar/subscript</li>
<li>$:/core/ui/EditorToolbar/superscript</li>
<li>$:/core/ui/EditorToolbar/transcludify</li>
<li>$:/core/ui/EditorToolbar/underline</li>
<li>$:/core/ui/EditTemplate</li>
<li>$:/core/ui/EditTemplate/body</li>
<li>$:/core/ui/EditTemplate/body/editor</li>
<li>$:/core/ui/EditTemplate/body/preview/diffs-current</li>
<li>$:/core/ui/EditTemplate/body/preview/diffs-shadow</li>
<li>$:/core/ui/EditTemplate/body/preview/output</li>
<li>$:/core/ui/EditTemplate/body/toolbar/button</li>
<li>$:/core/ui/EditTemplate/controls</li>
<li>$:/core/ui/EditTemplate/fields</li>
<li>$:/core/ui/EditTemplate/shadow</li>
<li>$:/core/ui/EditTemplate/tags</li>
<li>$:/core/ui/EditTemplate/title</li>
<li>$:/core/ui/EditTemplate/type</li>
<li>$:/core/ui/ImportListing</li>
<li>$:/core/ui/ImportPreviews/Diff</li>
<li>$:/core/ui/ImportPreviews/DiffFields</li>
<li>$:/core/ui/ImportPreviews/Fields</li>
<li>$:/core/ui/ImportPreviews/Text</li>
<li>$:/core/ui/ImportPreviews/TextRaw</li>
<li>$:/core/ui/KeyboardShortcut/toggle-sidebar</li>
<li>$:/core/ui/KeyboardShortcuts/advanced-search</li>
<li>$:/core/ui/KeyboardShortcuts/new-image</li>
<li>$:/core/ui/KeyboardShortcuts/new-journal</li>
<li>$:/core/ui/KeyboardShortcuts/new-tiddler</li>
<li>$:/core/ui/KeyboardShortcuts/sidebar-search</li>
<li>$:/core/ui/ListItemTemplate</li>
<li>$:/core/ui/MissingTemplate</li>
<li>$:/core/ui/MoreSideBar/All</li>
<li>$:/core/ui/MoreSideBar/Drafts</li>
<li>$:/core/ui/MoreSideBar/Explorer</li>
<li>$:/core/ui/MoreSideBar/Missing</li>
<li>$:/core/ui/MoreSideBar/Orphans</li>
<li>$:/core/ui/MoreSideBar/Plugins</li>
<li>$:/core/ui/MoreSideBar/Plugins/Languages</li>
<li>$:/core/ui/MoreSideBar/Plugins/Plugins</li>
<li>$:/core/ui/MoreSideBar/Plugins/Theme</li>
<li>$:/core/ui/MoreSideBar/Recent</li>
<li>$:/core/ui/MoreSideBar/Shadows</li>
<li>$:/core/ui/MoreSideBar/System</li>
<li>$:/core/ui/MoreSideBar/Tags</li>
<li>$:/core/ui/MoreSideBar/Types</li>
<li>$:/core/ui/PageStylesheet</li>
<li>$:/core/ui/PageTemplate</li>
<li>$:/core/ui/PageTemplate/alerts</li>
<li>$:/core/ui/PageTemplate/drafts</li>
<li>$:/core/ui/PageTemplate/pagecontrols</li>
<li>$:/core/ui/PageTemplate/pluginreloadwarning</li>
<li>$:/core/ui/PageTemplate/sidebar</li>
<li>$:/core/ui/PageTemplate/story</li>
<li>$:/core/ui/PageTemplate/topleftbar</li>
<li>$:/core/ui/PageTemplate/toprightbar</li>
<li>$:/core/ui/PluginInfo</li>
<li>$:/core/ui/PluginInfo/Default/contents</li>
<li>$:/core/ui/PluginListItemTemplate</li>
<li>$:/core/ui/SearchResults</li>
<li>$:/core/ui/SideBar/More</li>
<li>$:/core/ui/SideBar/Open</li>
<li>$:/core/ui/SideBar/Recent</li>
<li>$:/core/ui/SideBar/Tools</li>
<li>$:/core/ui/SideBarLists</li>
<li>$:/core/ui/SideBarSegments/page-controls</li>
<li>$:/core/ui/SideBarSegments/search</li>
<li>$:/core/ui/SideBarSegments/site-subtitle</li>
<li>$:/core/ui/SideBarSegments/site-title</li>
<li>$:/core/ui/SideBarSegments/tabs</li>
<li>$:/core/ui/TagTemplate</li>
<li>$:/core/ui/TiddlerFields</li>
<li>$:/core/ui/TiddlerFieldTemplate</li>
<li>$:/core/ui/TiddlerInfo</li>
<li>$:/core/ui/TiddlerInfo/Advanced</li>
<li>$:/core/ui/TiddlerInfo/Advanced/PluginInfo</li>
<li>$:/core/ui/TiddlerInfo/Advanced/ShadowInfo</li>
<li>$:/core/ui/TiddlerInfo/Fields</li>
<li>$:/core/ui/TiddlerInfo/List</li>
<li>$:/core/ui/TiddlerInfo/Listed</li>
<li>$:/core/ui/TiddlerInfo/References</li>
<li>$:/core/ui/TiddlerInfo/Tagging</li>
<li>$:/core/ui/TiddlerInfo/Tools</li>
<li>$:/core/ui/TopBar/menu</li>
<li>$:/core/ui/UntaggedTemplate</li>
<li>$:/core/ui/ViewTemplate</li>
<li>$:/core/ui/ViewTemplate/body</li>
<li>$:/core/ui/ViewTemplate/classic</li>
<li>$:/core/ui/ViewTemplate/import</li>
<li>$:/core/ui/ViewTemplate/plugin</li>
<li>$:/core/ui/ViewTemplate/subtitle</li>
<li>$:/core/ui/ViewTemplate/tags</li>
<li>$:/core/ui/ViewTemplate/title</li>
<li>$:/core/ui/ViewTemplate/unfold</li>
<li>$:/core/wiki/title</li>
<li>$:/DefaultTiddlers</li>
<li>$:/favicon.ico</li>
<li>$:/Import</li>
<li>$:/info/browser</li>
<li>$:/info/browser/language</li>
<li>$:/info/browser/screen/height</li>
<li>$:/info/browser/screen/width</li>
<li>$:/info/node</li>
<li>$:/info/url/full</li>
<li>$:/info/url/host</li>
<li>$:/info/url/hostname</li>
<li>$:/info/url/origin</li>
<li>$:/info/url/pathname</li>
<li>$:/info/url/port</li>
<li>$:/info/url/protocol</li>
<li>$:/info/url/search</li>
<li>$:/isEncrypted</li>
<li>$:/language</li>
<li>$:/language/AboveStory/ClassicPlugin/Warning</li>
<li>$:/language/BinaryWarning/Prompt</li>
<li>$:/language/Buttons/AdvancedSearch/Caption</li>
<li>$:/language/Buttons/AdvancedSearch/Hint</li>
<li>$:/language/Buttons/Bold/Caption</li>
<li>$:/language/Buttons/Bold/Hint</li>
<li>$:/language/Buttons/Cancel/Caption</li>
<li>$:/language/Buttons/Cancel/Hint</li>
<li>$:/language/Buttons/Clear/Caption</li>
<li>$:/language/Buttons/Clear/Hint</li>
<li>$:/language/Buttons/Clone/Caption</li>
<li>$:/language/Buttons/Clone/Hint</li>
<li>$:/language/Buttons/Close/Caption</li>
<li>$:/language/Buttons/Close/Hint</li>
<li>$:/language/Buttons/CloseAll/Caption</li>
<li>$:/language/Buttons/CloseAll/Hint</li>
<li>$:/language/Buttons/CloseOthers/Caption</li>
<li>$:/language/Buttons/CloseOthers/Hint</li>
<li>$:/language/Buttons/ControlPanel/Caption</li>
<li>$:/language/Buttons/ControlPanel/Hint</li>
<li>$:/language/Buttons/CopyToClipboard/Caption</li>
<li>$:/language/Buttons/CopyToClipboard/Hint</li>
<li>$:/language/Buttons/Delete/Caption</li>
<li>$:/language/Buttons/Delete/Hint</li>
<li>$:/language/Buttons/Edit/Caption</li>
<li>$:/language/Buttons/Edit/Hint</li>
<li>$:/language/Buttons/EditorHeight/Caption</li>
<li>$:/language/Buttons/EditorHeight/Caption/Auto</li>
<li>$:/language/Buttons/EditorHeight/Caption/Fixed</li>
<li>$:/language/Buttons/EditorHeight/Hint</li>
<li>$:/language/Buttons/Encryption/Caption</li>
<li>$:/language/Buttons/Encryption/ClearPassword/Caption</li>
<li>$:/language/Buttons/Encryption/ClearPassword/Hint</li>
<li>$:/language/Buttons/Encryption/Hint</li>
<li>$:/language/Buttons/Encryption/SetPassword/Caption</li>
<li>$:/language/Buttons/Encryption/SetPassword/Hint</li>
<li>$:/language/Buttons/Excise/Caption</li>
<li>$:/language/Buttons/Excise/Caption/Excise</li>
<li>$:/language/Buttons/Excise/Caption/MacroName</li>
<li>$:/language/Buttons/Excise/Caption/NewTitle</li>
<li>$:/language/Buttons/Excise/Caption/Replace</li>
<li>$:/language/Buttons/Excise/Caption/Replace/Link</li>
<li>$:/language/Buttons/Excise/Caption/Replace/Macro</li>
<li>$:/language/Buttons/Excise/Caption/Replace/Transclusion</li>
<li>$:/language/Buttons/Excise/Caption/Tag</li>
<li>$:/language/Buttons/Excise/Caption/TiddlerExists</li>
<li>$:/language/Buttons/Excise/Hint</li>
<li>$:/language/Buttons/ExportPage/Caption</li>
<li>$:/language/Buttons/ExportPage/Hint</li>
<li>$:/language/Buttons/ExportTiddler/Caption</li>
<li>$:/language/Buttons/ExportTiddler/Hint</li>
<li>$:/language/Buttons/ExportTiddlers/Caption</li>
<li>$:/language/Buttons/ExportTiddlers/Hint</li>
<li>$:/language/Buttons/Fold/Caption</li>
<li>$:/language/Buttons/Fold/FoldBar/Caption</li>
<li>$:/language/Buttons/Fold/FoldBar/Hint</li>
<li>$:/language/Buttons/Fold/Hint</li>
<li>$:/language/Buttons/FoldAll/Caption</li>
<li>$:/language/Buttons/FoldAll/Hint</li>
<li>$:/language/Buttons/FoldOthers/Caption</li>
<li>$:/language/Buttons/FoldOthers/Hint</li>
<li>$:/language/Buttons/FullScreen/Caption</li>
<li>$:/language/Buttons/FullScreen/Hint</li>
<li>$:/language/Buttons/Heading1/Caption</li>
<li>$:/language/Buttons/Heading1/Hint</li>
<li>$:/language/Buttons/Heading2/Caption</li>
<li>$:/language/Buttons/Heading2/Hint</li>
<li>$:/language/Buttons/Heading3/Caption</li>
<li>$:/language/Buttons/Heading3/Hint</li>
<li>$:/language/Buttons/Heading4/Caption</li>
<li>$:/language/Buttons/Heading4/Hint</li>
<li>$:/language/Buttons/Heading5/Caption</li>
<li>$:/language/Buttons/Heading5/Hint</li>
<li>$:/language/Buttons/Heading6/Caption</li>
<li>$:/language/Buttons/Heading6/Hint</li>
<li>$:/language/Buttons/Help/Caption</li>
<li>$:/language/Buttons/Help/Hint</li>
<li>$:/language/Buttons/HideSideBar/Caption</li>
<li>$:/language/Buttons/HideSideBar/Hint</li>
<li>$:/language/Buttons/Home/Caption</li>
<li>$:/language/Buttons/Home/Hint</li>
<li>$:/language/Buttons/Import/Caption</li>
<li>$:/language/Buttons/Import/Hint</li>
<li>$:/language/Buttons/Info/Caption</li>
<li>$:/language/Buttons/Info/Hint</li>
<li>$:/language/Buttons/Italic/Caption</li>
<li>$:/language/Buttons/Italic/Hint</li>
<li>$:/language/Buttons/Language/Caption</li>
<li>$:/language/Buttons/Language/Hint</li>
<li>$:/language/Buttons/LineWidth/Caption</li>
<li>$:/language/Buttons/LineWidth/Hint</li>
<li>$:/language/Buttons/Link/Caption</li>
<li>$:/language/Buttons/Link/Hint</li>
<li>$:/language/Buttons/Linkify/Caption</li>
<li>$:/language/Buttons/Linkify/Hint</li>
<li>$:/language/Buttons/ListBullet/Caption</li>
<li>$:/language/Buttons/ListBullet/Hint</li>
<li>$:/language/Buttons/ListNumber/Caption</li>
<li>$:/language/Buttons/ListNumber/Hint</li>
<li>$:/language/Buttons/Manager/Caption</li>
<li>$:/language/Buttons/Manager/Hint</li>
<li>$:/language/Buttons/MonoBlock/Caption</li>
<li>$:/language/Buttons/MonoBlock/Hint</li>
<li>$:/language/Buttons/MonoLine/Caption</li>
<li>$:/language/Buttons/MonoLine/Hint</li>
<li>$:/language/Buttons/More/Caption</li>
<li>$:/language/Buttons/More/Hint</li>
<li>$:/language/Buttons/NewHere/Caption</li>
<li>$:/language/Buttons/NewHere/Hint</li>
<li>$:/language/Buttons/NewImage/Caption</li>
<li>$:/language/Buttons/NewImage/Hint</li>
<li>$:/language/Buttons/NewJournal/Caption</li>
<li>$:/language/Buttons/NewJournal/Hint</li>
<li>$:/language/Buttons/NewJournalHere/Caption</li>
<li>$:/language/Buttons/NewJournalHere/Hint</li>
<li>$:/language/Buttons/NewMarkdown/Caption</li>
<li>$:/language/Buttons/NewMarkdown/Hint</li>
<li>$:/language/Buttons/NewTiddler/Caption</li>
<li>$:/language/Buttons/NewTiddler/Hint</li>
<li>$:/language/Buttons/Opacity/Caption</li>
<li>$:/language/Buttons/Opacity/Hint</li>
<li>$:/language/Buttons/OpenWindow/Caption</li>
<li>$:/language/Buttons/OpenWindow/Hint</li>
<li>$:/language/Buttons/Paint/Caption</li>
<li>$:/language/Buttons/Paint/Hint</li>
<li>$:/language/Buttons/Palette/Caption</li>
<li>$:/language/Buttons/Palette/Hint</li>
<li>$:/language/Buttons/Permalink/Caption</li>
<li>$:/language/Buttons/Permalink/Hint</li>
<li>$:/language/Buttons/Permaview/Caption</li>
<li>$:/language/Buttons/Permaview/Hint</li>
<li>$:/language/Buttons/Picture/Caption</li>
<li>$:/language/Buttons/Picture/Hint</li>
<li>$:/language/Buttons/Preview/Caption</li>
<li>$:/language/Buttons/Preview/Hint</li>
<li>$:/language/Buttons/PreviewType/Caption</li>
<li>$:/language/Buttons/PreviewType/Hint</li>
<li>$:/language/Buttons/Print/Caption</li>
<li>$:/language/Buttons/Print/Hint</li>
<li>$:/language/Buttons/Quote/Caption</li>
<li>$:/language/Buttons/Quote/Hint</li>
<li>$:/language/Buttons/Refresh/Caption</li>
<li>$:/language/Buttons/Refresh/Hint</li>
<li>$:/language/Buttons/RotateLeft/Caption</li>
<li>$:/language/Buttons/RotateLeft/Hint</li>
<li>$:/language/Buttons/Save/Caption</li>
<li>$:/language/Buttons/Save/Hint</li>
<li>$:/language/Buttons/SaveWiki/Caption</li>
<li>$:/language/Buttons/SaveWiki/Hint</li>
<li>$:/language/Buttons/ShowSideBar/Caption</li>
<li>$:/language/Buttons/ShowSideBar/Hint</li>
<li>$:/language/Buttons/SidebarSearch/Hint</li>
<li>$:/language/Buttons/Size/Caption</li>
<li>$:/language/Buttons/Size/Caption/Height</li>
<li>$:/language/Buttons/Size/Caption/Resize</li>
<li>$:/language/Buttons/Size/Caption/Width</li>
<li>$:/language/Buttons/Size/Hint</li>
<li>$:/language/Buttons/Stamp/Caption</li>
<li>$:/language/Buttons/Stamp/Caption/New</li>
<li>$:/language/Buttons/Stamp/Hint</li>
<li>$:/language/Buttons/Stamp/New/Text</li>
<li>$:/language/Buttons/Stamp/New/Title</li>
<li>$:/language/Buttons/StoryView/Caption</li>
<li>$:/language/Buttons/StoryView/Hint</li>
<li>$:/language/Buttons/Strikethrough/Caption</li>
<li>$:/language/Buttons/Strikethrough/Hint</li>
<li>$:/language/Buttons/Subscript/Caption</li>
<li>$:/language/Buttons/Subscript/Hint</li>
<li>$:/language/Buttons/Superscript/Caption</li>
<li>$:/language/Buttons/Superscript/Hint</li>
<li>$:/language/Buttons/TagManager/Caption</li>
<li>$:/language/Buttons/TagManager/Hint</li>
<li>$:/language/Buttons/Theme/Caption</li>
<li>$:/language/Buttons/Theme/Hint</li>
<li>$:/language/Buttons/Timestamp/Caption</li>
<li>$:/language/Buttons/Timestamp/Hint</li>
<li>$:/language/Buttons/Timestamp/Off/Caption</li>
<li>$:/language/Buttons/Timestamp/Off/Hint</li>
<li>$:/language/Buttons/Timestamp/On/Caption</li>
<li>$:/language/Buttons/Timestamp/On/Hint</li>
<li>$:/language/Buttons/ToggleSidebar/Hint</li>
<li>$:/language/Buttons/Transcludify/Caption</li>
<li>$:/language/Buttons/Transcludify/Hint</li>
<li>$:/language/Buttons/Underline/Caption</li>
<li>$:/language/Buttons/Underline/Hint</li>
<li>$:/language/Buttons/Unfold/Caption</li>
<li>$:/language/Buttons/Unfold/Hint</li>
<li>$:/language/Buttons/UnfoldAll/Caption</li>
<li>$:/language/Buttons/UnfoldAll/Hint</li>
<li>$:/language/ClassicWarning/Hint</li>
<li>$:/language/ClassicWarning/Upgrade/Caption</li>
<li>$:/language/CloseAll/Button</li>
<li>$:/language/ColourPicker/Recent</li>
<li>$:/language/ConfirmCancelTiddler</li>
<li>$:/language/ConfirmDeleteTiddler</li>
<li>$:/language/ConfirmEditShadowTiddler</li>
<li>$:/language/ConfirmOverwriteTiddler</li>
<li>$:/language/ControlPanel/Advanced/Caption</li>
<li>$:/language/ControlPanel/Advanced/Hint</li>
<li>$:/language/ControlPanel/Appearance/Caption</li>
<li>$:/language/ControlPanel/Appearance/Hint</li>
<li>$:/language/ControlPanel/Basics/AnimDuration/Prompt</li>
<li>$:/language/ControlPanel/Basics/AutoFocus/Prompt</li>
<li>$:/language/ControlPanel/Basics/Caption</li>
<li>$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint</li>
<li>$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt</li>
<li>$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint</li>
<li>$:/language/ControlPanel/Basics/Language/Prompt</li>
<li>$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt</li>
<li>$:/language/ControlPanel/Basics/NewJournal/Text/Prompt</li>
<li>$:/language/ControlPanel/Basics/NewJournal/Title/Prompt</li>
<li>$:/language/ControlPanel/Basics/NewTiddler/Tags/Prompt</li>
<li>$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt</li>
<li>$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt</li>
<li>$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt</li>
<li>$:/language/ControlPanel/Basics/Subtitle/Prompt</li>
<li>$:/language/ControlPanel/Basics/SystemTiddlers/Prompt</li>
<li>$:/language/ControlPanel/Basics/Tags/Prompt</li>
<li>$:/language/ControlPanel/Basics/Tiddlers/Prompt</li>
<li>$:/language/ControlPanel/Basics/Title/Prompt</li>
<li>$:/language/ControlPanel/Basics/Username/Prompt</li>
<li>$:/language/ControlPanel/Basics/Version/Prompt</li>
<li>$:/language/ControlPanel/EditorTypes/Caption</li>
<li>$:/language/ControlPanel/EditorTypes/Editor/Caption</li>
<li>$:/language/ControlPanel/EditorTypes/Hint</li>
<li>$:/language/ControlPanel/EditorTypes/Type/Caption</li>
<li>$:/language/ControlPanel/Info/Caption</li>
<li>$:/language/ControlPanel/Info/Hint</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Add/Caption</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Caption</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Hint</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Platform/All</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows</li>
<li>$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint</li>
<li>$:/language/ControlPanel/LoadedModules/Caption</li>
<li>$:/language/ControlPanel/LoadedModules/Hint</li>
<li>$:/language/ControlPanel/Palette/Caption</li>
<li>$:/language/ControlPanel/Palette/Editor/Clone/Caption</li>
<li>$:/language/ControlPanel/Palette/Editor/Clone/Prompt</li>
<li>$:/language/ControlPanel/Palette/Editor/Delete/Hint</li>
<li>$:/language/ControlPanel/Palette/Editor/Names/External/Show</li>
<li>$:/language/ControlPanel/Palette/Editor/Prompt</li>
<li>$:/language/ControlPanel/Palette/Editor/Prompt/Modified</li>
<li>$:/language/ControlPanel/Palette/Editor/Reset/Caption</li>
<li>$:/language/ControlPanel/Palette/HideEditor/Caption</li>
<li>$:/language/ControlPanel/Palette/Prompt</li>
<li>$:/language/ControlPanel/Palette/ShowEditor/Caption</li>
<li>$:/language/ControlPanel/Parsing/Block/Caption</li>
<li>$:/language/ControlPanel/Parsing/Caption</li>
<li>$:/language/ControlPanel/Parsing/Hint</li>
<li>$:/language/ControlPanel/Parsing/Inline/Caption</li>
<li>$:/language/ControlPanel/Parsing/Pragma/Caption</li>
<li>$:/language/ControlPanel/Plugins/Add/Caption</li>
<li>$:/language/ControlPanel/Plugins/Add/Hint</li>
<li>$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint</li>
<li>$:/language/ControlPanel/Plugins/AlsoRequires</li>
<li>$:/language/ControlPanel/Plugins/Caption</li>
<li>$:/language/ControlPanel/Plugins/ClosePluginLibrary</li>
<li>$:/language/ControlPanel/Plugins/Disable/Caption</li>
<li>$:/language/ControlPanel/Plugins/Disable/Hint</li>
<li>$:/language/ControlPanel/Plugins/Disabled/Status</li>
<li>$:/language/ControlPanel/Plugins/Downgrade/Caption</li>
<li>$:/language/ControlPanel/Plugins/Empty/Hint</li>
<li>$:/language/ControlPanel/Plugins/Enable/Caption</li>
<li>$:/language/ControlPanel/Plugins/Enable/Hint</li>
<li>$:/language/ControlPanel/Plugins/Install/Caption</li>
<li>$:/language/ControlPanel/Plugins/Installed/Hint</li>
<li>$:/language/ControlPanel/Plugins/Languages/Caption</li>
<li>$:/language/ControlPanel/Plugins/Languages/Hint</li>
<li>$:/language/ControlPanel/Plugins/NoInfoFound/Hint</li>
<li>$:/language/ControlPanel/Plugins/NotInstalled/Hint</li>
<li>$:/language/ControlPanel/Plugins/OpenPluginLibrary</li>
<li>$:/language/ControlPanel/Plugins/Plugins/Caption</li>
<li>$:/language/ControlPanel/Plugins/Plugins/Hint</li>
<li>$:/language/ControlPanel/Plugins/PluginWillRequireReload</li>
<li>$:/language/ControlPanel/Plugins/Reinstall/Caption</li>
<li>$:/language/ControlPanel/Plugins/SubPluginPrompt</li>
<li>$:/language/ControlPanel/Plugins/Themes/Caption</li>
<li>$:/language/ControlPanel/Plugins/Themes/Hint</li>
<li>$:/language/ControlPanel/Plugins/Update/Caption</li>
<li>$:/language/ControlPanel/Plugins/Updates/Caption</li>
<li>$:/language/ControlPanel/Plugins/Updates/Hint</li>
<li>$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption</li>
<li>$:/language/ControlPanel/Saving/Caption</li>
<li>$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Description</li>
<li>$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Hint</li>
<li>$:/language/ControlPanel/Saving/DownloadSaver/Caption</li>
<li>$:/language/ControlPanel/Saving/DownloadSaver/Hint</li>
<li>$:/language/ControlPanel/Saving/General/Caption</li>
<li>$:/language/ControlPanel/Saving/General/Hint</li>
<li>$:/language/ControlPanel/Saving/GitService/Branch</li>
<li>$:/language/ControlPanel/Saving/GitService/CommitMessage</li>
<li>$:/language/ControlPanel/Saving/GitService/Description</li>
<li>$:/language/ControlPanel/Saving/GitService/Filename</li>
<li>$:/language/ControlPanel/Saving/GitService/Gitea/Caption</li>
<li>$:/language/ControlPanel/Saving/GitService/Gitea/Password</li>
<li>$:/language/ControlPanel/Saving/GitService/GitHub/Caption</li>
<li>$:/language/ControlPanel/Saving/GitService/GitHub/Password</li>
<li>$:/language/ControlPanel/Saving/GitService/GitLab/Caption</li>
<li>$:/language/ControlPanel/Saving/GitService/GitLab/Password</li>
<li>$:/language/ControlPanel/Saving/GitService/Path</li>
<li>$:/language/ControlPanel/Saving/GitService/Repo</li>
<li>$:/language/ControlPanel/Saving/GitService/ServerURL</li>
<li>$:/language/ControlPanel/Saving/GitService/UserName</li>
<li>$:/language/ControlPanel/Saving/Hint</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/BackupDir</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/Backups</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/Caption</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/Description</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/Filename</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/Heading</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/Hint</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/Password</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/ServerURL</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/UploadDir</li>
<li>$:/language/ControlPanel/Saving/TiddlySpot/UserName</li>
<li>$:/language/ControlPanel/Settings/AutoSave/Caption</li>
<li>$:/language/ControlPanel/Settings/AutoSave/Disabled/Description</li>
<li>$:/language/ControlPanel/Settings/AutoSave/Enabled/Description</li>
<li>$:/language/ControlPanel/Settings/AutoSave/Hint</li>
<li>$:/language/ControlPanel/Settings/CamelCase/Caption</li>
<li>$:/language/ControlPanel/Settings/CamelCase/Description</li>
<li>$:/language/ControlPanel/Settings/CamelCase/Hint</li>
<li>$:/language/ControlPanel/Settings/Caption</li>
<li>$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption</li>
<li>$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Hint</li>
<li>$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption</li>
<li>$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint</li>
<li>$:/language/ControlPanel/Settings/EditorToolbar/Caption</li>
<li>$:/language/ControlPanel/Settings/EditorToolbar/Description</li>
<li>$:/language/ControlPanel/Settings/EditorToolbar/Hint</li>
<li>$:/language/ControlPanel/Settings/Hint</li>
<li>$:/language/ControlPanel/Settings/InfoPanelMode/Caption</li>
<li>$:/language/ControlPanel/Settings/InfoPanelMode/Hint</li>
<li>$:/language/ControlPanel/Settings/InfoPanelMode/Popup/Description</li>
<li>$:/language/ControlPanel/Settings/InfoPanelMode/Sticky/Description</li>
<li>$:/language/ControlPanel/Settings/LinkToBehaviour/Caption</li>
<li>$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint</li>
<li>$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove</li>
<li>$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom</li>
<li>$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop</li>
<li>$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow</li>
<li>$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint</li>
<li>$:/language/ControlPanel/Settings/MissingLinks/Caption</li>
<li>$:/language/ControlPanel/Settings/MissingLinks/Description</li>
<li>$:/language/ControlPanel/Settings/MissingLinks/Hint</li>
<li>$:/language/ControlPanel/Settings/NavigationAddressBar/Caption</li>
<li>$:/language/ControlPanel/Settings/NavigationAddressBar/Hint</li>
<li>$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description</li>
<li>$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description</li>
<li>$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description</li>
<li>$:/language/ControlPanel/Settings/NavigationHistory/Caption</li>
<li>$:/language/ControlPanel/Settings/NavigationHistory/Hint</li>
<li>$:/language/ControlPanel/Settings/NavigationHistory/No/Description</li>
<li>$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description</li>
<li>$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption</li>
<li>$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/CopyToClipboard/Description</li>
<li>$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Hint</li>
<li>$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description</li>
<li>$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption</li>
<li>$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description</li>
<li>$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint</li>
<li>$:/language/ControlPanel/Settings/TitleLinks/Caption</li>
<li>$:/language/ControlPanel/Settings/TitleLinks/Hint</li>
<li>$:/language/ControlPanel/Settings/TitleLinks/No/Description</li>
<li>$:/language/ControlPanel/Settings/TitleLinks/Yes/Description</li>
<li>$:/language/ControlPanel/Settings/ToolbarButtons/Caption</li>
<li>$:/language/ControlPanel/Settings/ToolbarButtons/Hint</li>
<li>$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description</li>
<li>$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description</li>
<li>$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption</li>
<li>$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint</li>
<li>$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless</li>
<li>$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed</li>
<li>$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded</li>
<li>$:/language/ControlPanel/StoryView/Caption</li>
<li>$:/language/ControlPanel/StoryView/Prompt</li>
<li>$:/language/ControlPanel/Stylesheets/Caption</li>
<li>$:/language/ControlPanel/Stylesheets/Expand/Caption</li>
<li>$:/language/ControlPanel/Stylesheets/Hint</li>
<li>$:/language/ControlPanel/Stylesheets/Restore/Caption</li>
<li>$:/language/ControlPanel/Theme/Caption</li>
<li>$:/language/ControlPanel/Theme/Prompt</li>
<li>$:/language/ControlPanel/TiddlerFields/Caption</li>
<li>$:/language/ControlPanel/TiddlerFields/Hint</li>
<li>$:/language/ControlPanel/Toolbars/Caption</li>
<li>$:/language/ControlPanel/Toolbars/EditorToolbar/Caption</li>
<li>$:/language/ControlPanel/Toolbars/EditorToolbar/Hint</li>
<li>$:/language/ControlPanel/Toolbars/EditToolbar/Caption</li>
<li>$:/language/ControlPanel/Toolbars/EditToolbar/Hint</li>
<li>$:/language/ControlPanel/Toolbars/Hint</li>
<li>$:/language/ControlPanel/Toolbars/PageControls/Caption</li>
<li>$:/language/ControlPanel/Toolbars/PageControls/Hint</li>
<li>$:/language/ControlPanel/Toolbars/ViewToolbar/Caption</li>
<li>$:/language/ControlPanel/Toolbars/ViewToolbar/Hint</li>
<li>$:/language/ControlPanel/Tools/Download/Full/Caption</li>
<li>$:/language/Count</li>
<li>$:/language/Date/DaySuffix/1</li>
<li>$:/language/Date/DaySuffix/10</li>
<li>$:/language/Date/DaySuffix/11</li>
<li>$:/language/Date/DaySuffix/12</li>
<li>$:/language/Date/DaySuffix/13</li>
<li>$:/language/Date/DaySuffix/14</li>
<li>$:/language/Date/DaySuffix/15</li>
<li>$:/language/Date/DaySuffix/16</li>
<li>$:/language/Date/DaySuffix/17</li>
<li>$:/language/Date/DaySuffix/18</li>
<li>$:/language/Date/DaySuffix/19</li>
<li>$:/language/Date/DaySuffix/2</li>
<li>$:/language/Date/DaySuffix/20</li>
<li>$:/language/Date/DaySuffix/21</li>
<li>$:/language/Date/DaySuffix/22</li>
<li>$:/language/Date/DaySuffix/23</li>
<li>$:/language/Date/DaySuffix/24</li>
<li>$:/language/Date/DaySuffix/25</li>
<li>$:/language/Date/DaySuffix/26</li>
<li>$:/language/Date/DaySuffix/27</li>
<li>$:/language/Date/DaySuffix/28</li>
<li>$:/language/Date/DaySuffix/29</li>
<li>$:/language/Date/DaySuffix/3</li>
<li>$:/language/Date/DaySuffix/30</li>
<li>$:/language/Date/DaySuffix/31</li>
<li>$:/language/Date/DaySuffix/4</li>
<li>$:/language/Date/DaySuffix/5</li>
<li>$:/language/Date/DaySuffix/6</li>
<li>$:/language/Date/DaySuffix/7</li>
<li>$:/language/Date/DaySuffix/8</li>
<li>$:/language/Date/DaySuffix/9</li>
<li>$:/language/Date/Long/Day/0</li>
<li>$:/language/Date/Long/Day/1</li>
<li>$:/language/Date/Long/Day/2</li>
<li>$:/language/Date/Long/Day/3</li>
<li>$:/language/Date/Long/Day/4</li>
<li>$:/language/Date/Long/Day/5</li>
<li>$:/language/Date/Long/Day/6</li>
<li>$:/language/Date/Long/Month/1</li>
<li>$:/language/Date/Long/Month/10</li>
<li>$:/language/Date/Long/Month/11</li>
<li>$:/language/Date/Long/Month/12</li>
<li>$:/language/Date/Long/Month/2</li>
<li>$:/language/Date/Long/Month/3</li>
<li>$:/language/Date/Long/Month/4</li>
<li>$:/language/Date/Long/Month/5</li>
<li>$:/language/Date/Long/Month/6</li>
<li>$:/language/Date/Long/Month/7</li>
<li>$:/language/Date/Long/Month/8</li>
<li>$:/language/Date/Long/Month/9</li>
<li>$:/language/Date/Period/am</li>
<li>$:/language/Date/Period/pm</li>
<li>$:/language/Date/Short/Day/0</li>
<li>$:/language/Date/Short/Day/1</li>
<li>$:/language/Date/Short/Day/2</li>
<li>$:/language/Date/Short/Day/3</li>
<li>$:/language/Date/Short/Day/4</li>
<li>$:/language/Date/Short/Day/5</li>
<li>$:/language/Date/Short/Day/6</li>
<li>$:/language/Date/Short/Month/1</li>
<li>$:/language/Date/Short/Month/10</li>
<li>$:/language/Date/Short/Month/11</li>
<li>$:/language/Date/Short/Month/12</li>
<li>$:/language/Date/Short/Month/2</li>
<li>$:/language/Date/Short/Month/3</li>
<li>$:/language/Date/Short/Month/4</li>
<li>$:/language/Date/Short/Month/5</li>
<li>$:/language/Date/Short/Month/6</li>
<li>$:/language/Date/Short/Month/7</li>
<li>$:/language/Date/Short/Month/8</li>
<li>$:/language/Date/Short/Month/9</li>
<li>$:/language/DefaultNewTiddlerTitle</li>
<li>$:/language/Diffs/CountMessage</li>
<li>$:/language/Docs/Fields/_canonical_uri</li>
<li>$:/language/Docs/Fields/_is_skinny</li>
<li>$:/language/Docs/Fields/bag</li>
<li>$:/language/Docs/Fields/caption</li>
<li>$:/language/Docs/Fields/color</li>
<li>$:/language/Docs/Fields/component</li>
<li>$:/language/Docs/Fields/created</li>
<li>$:/language/Docs/Fields/creator</li>
<li>$:/language/Docs/Fields/current-tiddler</li>
<li>$:/language/Docs/Fields/dependents</li>
<li>$:/language/Docs/Fields/description</li>
<li>$:/language/Docs/Fields/draft.of</li>
<li>$:/language/Docs/Fields/draft.title</li>
<li>$:/language/Docs/Fields/footer</li>
<li>$:/language/Docs/Fields/hide-body</li>
<li>$:/language/Docs/Fields/icon</li>
<li>$:/language/Docs/Fields/library</li>
<li>$:/language/Docs/Fields/list</li>
<li>$:/language/Docs/Fields/list-after</li>
<li>$:/language/Docs/Fields/list-before</li>
<li>$:/language/Docs/Fields/modified</li>
<li>$:/language/Docs/Fields/modifier</li>
<li>$:/language/Docs/Fields/name</li>
<li>$:/language/Docs/Fields/plugin-priority</li>
<li>$:/language/Docs/Fields/plugin-type</li>
<li>$:/language/Docs/Fields/released</li>
<li>$:/language/Docs/Fields/revision</li>
<li>$:/language/Docs/Fields/source</li>
<li>$:/language/Docs/Fields/subtitle</li>
<li>$:/language/Docs/Fields/tags</li>
<li>$:/language/Docs/Fields/text</li>
<li>$:/language/Docs/Fields/throttle.refresh</li>
<li>$:/language/Docs/Fields/title</li>
<li>$:/language/Docs/Fields/toc-link</li>
<li>$:/language/Docs/Fields/type</li>
<li>$:/language/Docs/Fields/version</li>
<li>$:/language/Docs/ModuleTypes/allfilteroperator</li>
<li>$:/language/Docs/ModuleTypes/animation</li>
<li>$:/language/Docs/ModuleTypes/authenticator</li>
<li>$:/language/Docs/ModuleTypes/bitmapeditoroperation</li>
<li>$:/language/Docs/ModuleTypes/command</li>
<li>$:/language/Docs/ModuleTypes/config</li>
<li>$:/language/Docs/ModuleTypes/filteroperator</li>
<li>$:/language/Docs/ModuleTypes/global</li>
<li>$:/language/Docs/ModuleTypes/info</li>
<li>$:/language/Docs/ModuleTypes/isfilteroperator</li>
<li>$:/language/Docs/ModuleTypes/library</li>
<li>$:/language/Docs/ModuleTypes/macro</li>
<li>$:/language/Docs/ModuleTypes/parser</li>
<li>$:/language/Docs/ModuleTypes/route</li>
<li>$:/language/Docs/ModuleTypes/saver</li>
<li>$:/language/Docs/ModuleTypes/startup</li>
<li>$:/language/Docs/ModuleTypes/storyview</li>
<li>$:/language/Docs/ModuleTypes/texteditoroperation</li>
<li>$:/language/Docs/ModuleTypes/tiddlerdeserializer</li>
<li>$:/language/Docs/ModuleTypes/tiddlerfield</li>
<li>$:/language/Docs/ModuleTypes/tiddlermethod</li>
<li>$:/language/Docs/ModuleTypes/upgrader</li>
<li>$:/language/Docs/ModuleTypes/utils</li>
<li>$:/language/Docs/ModuleTypes/utils-node</li>
<li>$:/language/Docs/ModuleTypes/widget</li>
<li>$:/language/Docs/ModuleTypes/wikimethod</li>
<li>$:/language/Docs/ModuleTypes/wikirule</li>
<li>$:/language/Docs/PaletteColours/alert-background</li>
<li>$:/language/Docs/PaletteColours/alert-border</li>
<li>$:/language/Docs/PaletteColours/alert-highlight</li>
<li>$:/language/Docs/PaletteColours/alert-muted-foreground</li>
<li>$:/language/Docs/PaletteColours/background</li>
<li>$:/language/Docs/PaletteColours/blockquote-bar</li>
<li>$:/language/Docs/PaletteColours/button-background</li>
<li>$:/language/Docs/PaletteColours/button-border</li>
<li>$:/language/Docs/PaletteColours/button-foreground</li>
<li>$:/language/Docs/PaletteColours/code-background</li>
<li>$:/language/Docs/PaletteColours/code-border</li>
<li>$:/language/Docs/PaletteColours/code-foreground</li>
<li>$:/language/Docs/PaletteColours/dirty-indicator</li>
<li>$:/language/Docs/PaletteColours/download-background</li>
<li>$:/language/Docs/PaletteColours/download-foreground</li>
<li>$:/language/Docs/PaletteColours/dragger-background</li>
<li>$:/language/Docs/PaletteColours/dragger-foreground</li>
<li>$:/language/Docs/PaletteColours/dropdown-background</li>
<li>$:/language/Docs/PaletteColours/dropdown-border</li>
<li>$:/language/Docs/PaletteColours/dropdown-tab-background</li>
<li>$:/language/Docs/PaletteColours/dropdown-tab-background-selected</li>
<li>$:/language/Docs/PaletteColours/dropzone-background</li>
<li>$:/language/Docs/PaletteColours/external-link-background</li>
<li>$:/language/Docs/PaletteColours/external-link-background-hover</li>
<li>$:/language/Docs/PaletteColours/external-link-background-visited</li>
<li>$:/language/Docs/PaletteColours/external-link-foreground</li>
<li>$:/language/Docs/PaletteColours/external-link-foreground-hover</li>
<li>$:/language/Docs/PaletteColours/external-link-foreground-visited</li>
<li>$:/language/Docs/PaletteColours/foreground</li>
<li>$:/language/Docs/PaletteColours/menubar-background</li>
<li>$:/language/Docs/PaletteColours/menubar-foreground</li>
<li>$:/language/Docs/PaletteColours/message-background</li>
<li>$:/language/Docs/PaletteColours/message-border</li>
<li>$:/language/Docs/PaletteColours/message-foreground</li>
<li>$:/language/Docs/PaletteColours/modal-backdrop</li>
<li>$:/language/Docs/PaletteColours/modal-background</li>
<li>$:/language/Docs/PaletteColours/modal-border</li>
<li>$:/language/Docs/PaletteColours/modal-footer-background</li>
<li>$:/language/Docs/PaletteColours/modal-footer-border</li>
<li>$:/language/Docs/PaletteColours/modal-header-border</li>
<li>$:/language/Docs/PaletteColours/muted-foreground</li>
<li>$:/language/Docs/PaletteColours/notification-background</li>
<li>$:/language/Docs/PaletteColours/notification-border</li>
<li>$:/language/Docs/PaletteColours/page-background</li>
<li>$:/language/Docs/PaletteColours/pre-background</li>
<li>$:/language/Docs/PaletteColours/pre-border</li>
<li>$:/language/Docs/PaletteColours/primary</li>
<li>$:/language/Docs/PaletteColours/select-tag-background</li>
<li>$:/language/Docs/PaletteColours/select-tag-foreground</li>
<li>$:/language/Docs/PaletteColours/sidebar-button-foreground</li>
<li>$:/language/Docs/PaletteColours/sidebar-controls-foreground</li>
<li>$:/language/Docs/PaletteColours/sidebar-controls-foreground-hover</li>
<li>$:/language/Docs/PaletteColours/sidebar-foreground</li>
<li>$:/language/Docs/PaletteColours/sidebar-foreground-shadow</li>
<li>$:/language/Docs/PaletteColours/sidebar-muted-foreground</li>
<li>$:/language/Docs/PaletteColours/sidebar-muted-foreground-hover</li>
<li>$:/language/Docs/PaletteColours/sidebar-tab-background</li>
<li>$:/language/Docs/PaletteColours/sidebar-tab-background-selected</li>
<li>$:/language/Docs/PaletteColours/sidebar-tab-border</li>
<li>$:/language/Docs/PaletteColours/sidebar-tab-border-selected</li>
<li>$:/language/Docs/PaletteColours/sidebar-tab-divider</li>
<li>$:/language/Docs/PaletteColours/sidebar-tab-foreground</li>
<li>$:/language/Docs/PaletteColours/sidebar-tab-foreground-selected</li>
<li>$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground</li>
<li>$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground-hover</li>
<li>$:/language/Docs/PaletteColours/site-title-foreground</li>
<li>$:/language/Docs/PaletteColours/static-alert-foreground</li>
<li>$:/language/Docs/PaletteColours/tab-background</li>
<li>$:/language/Docs/PaletteColours/tab-background-selected</li>
<li>$:/language/Docs/PaletteColours/tab-border</li>
<li>$:/language/Docs/PaletteColours/tab-border-selected</li>
<li>$:/language/Docs/PaletteColours/tab-divider</li>
<li>$:/language/Docs/PaletteColours/tab-foreground</li>
<li>$:/language/Docs/PaletteColours/tab-foreground-selected</li>
<li>$:/language/Docs/PaletteColours/table-border</li>
<li>$:/language/Docs/PaletteColours/table-footer-background</li>
<li>$:/language/Docs/PaletteColours/table-header-background</li>
<li>$:/language/Docs/PaletteColours/tag-background</li>
<li>$:/language/Docs/PaletteColours/tag-foreground</li>
<li>$:/language/Docs/PaletteColours/tiddler-background</li>
<li>$:/language/Docs/PaletteColours/tiddler-border</li>
<li>$:/language/Docs/PaletteColours/tiddler-controls-foreground</li>
<li>$:/language/Docs/PaletteColours/tiddler-controls-foreground-hover</li>
<li>$:/language/Docs/PaletteColours/tiddler-controls-foreground-selected</li>
<li>$:/language/Docs/PaletteColours/tiddler-editor-background</li>
<li>$:/language/Docs/PaletteColours/tiddler-editor-border</li>
<li>$:/language/Docs/PaletteColours/tiddler-editor-border-image</li>
<li>$:/language/Docs/PaletteColours/tiddler-editor-fields-even</li>
<li>$:/language/Docs/PaletteColours/tiddler-editor-fields-odd</li>
<li>$:/language/Docs/PaletteColours/tiddler-info-background</li>
<li>$:/language/Docs/PaletteColours/tiddler-info-border</li>
<li>$:/language/Docs/PaletteColours/tiddler-info-tab-background</li>
<li>$:/language/Docs/PaletteColours/tiddler-link-background</li>
<li>$:/language/Docs/PaletteColours/tiddler-link-foreground</li>
<li>$:/language/Docs/PaletteColours/tiddler-subtitle-foreground</li>
<li>$:/language/Docs/PaletteColours/tiddler-title-foreground</li>
<li>$:/language/Docs/PaletteColours/toolbar-cancel-button</li>
<li>$:/language/Docs/PaletteColours/toolbar-close-button</li>
<li>$:/language/Docs/PaletteColours/toolbar-delete-button</li>
<li>$:/language/Docs/PaletteColours/toolbar-done-button</li>
<li>$:/language/Docs/PaletteColours/toolbar-edit-button</li>
<li>$:/language/Docs/PaletteColours/toolbar-info-button</li>
<li>$:/language/Docs/PaletteColours/toolbar-new-button</li>
<li>$:/language/Docs/PaletteColours/toolbar-options-button</li>
<li>$:/language/Docs/PaletteColours/toolbar-save-button</li>
<li>$:/language/Docs/PaletteColours/untagged-background</li>
<li>$:/language/Docs/PaletteColours/very-muted-foreground</li>
<li>$:/language/Docs/Types/application/javascript</li>
<li>$:/language/Docs/Types/application/json</li>
<li>$:/language/Docs/Types/application/x-tiddler-dictionary</li>
<li>$:/language/Docs/Types/image/gif</li>
<li>$:/language/Docs/Types/image/jpeg</li>
<li>$:/language/Docs/Types/image/png</li>
<li>$:/language/Docs/Types/image/svg+xml</li>
<li>$:/language/Docs/Types/image/x-icon</li>
<li>$:/language/Docs/Types/text/css</li>
<li>$:/language/Docs/Types/text/html</li>
<li>$:/language/Docs/Types/text/plain</li>
<li>$:/language/Docs/Types/text/vnd.tiddlywiki</li>
<li>$:/language/Docs/Types/text/x-tiddlywiki</li>
<li>$:/language/DropMessage</li>
<li>$:/language/EditTemplate/Body/External/Hint</li>
<li>$:/language/EditTemplate/Body/Placeholder</li>
<li>$:/language/EditTemplate/Body/Preview/Type/Output</li>
<li>$:/language/EditTemplate/Field/Dropdown/Caption</li>
<li>$:/language/EditTemplate/Field/Dropdown/Hint</li>
<li>$:/language/EditTemplate/Field/Remove/Caption</li>
<li>$:/language/EditTemplate/Field/Remove/Hint</li>
<li>$:/language/EditTemplate/Fields/Add/Button</li>
<li>$:/language/EditTemplate/Fields/Add/Button/Hint</li>
<li>$:/language/EditTemplate/Fields/Add/Dropdown/System</li>
<li>$:/language/EditTemplate/Fields/Add/Dropdown/User</li>
<li>$:/language/EditTemplate/Fields/Add/Name/Placeholder</li>
<li>$:/language/EditTemplate/Fields/Add/Prompt</li>
<li>$:/language/EditTemplate/Fields/Add/Value/Placeholder</li>
<li>$:/language/EditTemplate/Shadow/OverriddenWarning</li>
<li>$:/language/EditTemplate/Shadow/Warning</li>
<li>$:/language/EditTemplate/Tags/Add/Button</li>
<li>$:/language/EditTemplate/Tags/Add/Button/Hint</li>
<li>$:/language/EditTemplate/Tags/Add/Placeholder</li>
<li>$:/language/EditTemplate/Tags/Dropdown/Caption</li>
<li>$:/language/EditTemplate/Tags/Dropdown/Hint</li>
<li>$:/language/EditTemplate/Title/BadCharacterWarning</li>
<li>$:/language/EditTemplate/Title/Exists/Prompt</li>
<li>$:/language/EditTemplate/Title/References/Prompt</li>
<li>$:/language/EditTemplate/Title/Relink/Prompt</li>
<li>$:/language/EditTemplate/Type/Delete/Caption</li>
<li>$:/language/EditTemplate/Type/Delete/Hint</li>
<li>$:/language/EditTemplate/Type/Dropdown/Caption</li>
<li>$:/language/EditTemplate/Type/Dropdown/Hint</li>
<li>$:/language/EditTemplate/Type/Placeholder</li>
<li>$:/language/EditTemplate/Type/Prompt</li>
<li>$:/language/Encryption/Cancel</li>
<li>$:/language/Encryption/ConfirmClearPassword</li>
<li>$:/language/Encryption/Password</li>
<li>$:/language/Encryption/PasswordNoMatch</li>
<li>$:/language/Encryption/PromptSetPassword</li>
<li>$:/language/Encryption/RepeatPassword</li>
<li>$:/language/Encryption/SetPassword</li>
<li>$:/language/Encryption/Username</li>
<li>$:/language/Error/Caption</li>
<li>$:/language/Error/EditConflict</li>
<li>$:/language/Error/Filter</li>
<li>$:/language/Error/FilterSyntax</li>
<li>$:/language/Error/IsFilterOperator</li>
<li>$:/language/Error/LoadingPluginLibrary</li>
<li>$:/language/Error/NetworkErrorAlert</li>
<li>$:/language/Error/RecursiveTransclusion</li>
<li>$:/language/Error/RetrievingSkinny</li>
<li>$:/language/Error/SavingToTWEdit</li>
<li>$:/language/Error/WhileSaving</li>
<li>$:/language/Error/XMLHttpRequest</li>
<li>$:/language/Exporters/CsvFile</li>
<li>$:/language/Exporters/JsonFile</li>
<li>$:/language/Exporters/StaticRiver</li>
<li>$:/language/Exporters/TidFile</li>
<li>$:/language/Filters/AllTags</li>
<li>$:/language/Filters/AllTiddlers</li>
<li>$:/language/Filters/Drafts</li>
<li>$:/language/Filters/Missing</li>
<li>$:/language/Filters/Orphans</li>
<li>$:/language/Filters/OverriddenShadowTiddlers</li>
<li>$:/language/Filters/RecentSystemTiddlers</li>
<li>$:/language/Filters/RecentTiddlers</li>
<li>$:/language/Filters/SessionTiddlers</li>
<li>$:/language/Filters/ShadowTiddlers</li>
<li>$:/language/Filters/StoryList</li>
<li>$:/language/Filters/SystemTags</li>
<li>$:/language/Filters/SystemTiddlers</li>
<li>$:/language/Filters/TypedTiddlers</li>
<li>$:/language/Help/build</li>
<li>$:/language/Help/clearpassword</li>
<li>$:/language/Help/default</li>
<li>$:/language/Help/deletetiddlers</li>
<li>$:/language/Help/editions</li>
<li>$:/language/Help/fetch</li>
<li>$:/language/Help/help</li>
<li>$:/language/Help/import</li>
<li>$:/language/Help/init</li>
<li>$:/language/Help/listen</li>
<li>$:/language/Help/load</li>
<li>$:/language/Help/makelibrary</li>
<li>$:/language/Help/notfound</li>
<li>$:/language/Help/output</li>
<li>$:/language/Help/password</li>
<li>$:/language/Help/render</li>
<li>$:/language/Help/rendertiddler</li>
<li>$:/language/Help/rendertiddlers</li>
<li>$:/language/Help/save</li>
<li>$:/language/Help/savetiddler</li>
<li>$:/language/Help/savetiddlers</li>
<li>$:/language/Help/savewikifolder</li>
<li>$:/language/Help/server</li>
<li>$:/language/Help/setfield</li>
<li>$:/language/Help/unpackplugin</li>
<li>$:/language/Help/verbose</li>
<li>$:/language/Help/version</li>
<li>$:/language/Import/Imported/Hint</li>
<li>$:/language/Import/Listing/Cancel/Caption</li>
<li>$:/language/Import/Listing/Hint</li>
<li>$:/language/Import/Listing/Import/Caption</li>
<li>$:/language/Import/Listing/Preview</li>
<li>$:/language/Import/Listing/Preview/Diff</li>
<li>$:/language/Import/Listing/Preview/DiffFields</li>
<li>$:/language/Import/Listing/Preview/Fields</li>
<li>$:/language/Import/Listing/Preview/Text</li>
<li>$:/language/Import/Listing/Preview/TextRaw</li>
<li>$:/language/Import/Listing/Select/Caption</li>
<li>$:/language/Import/Listing/Status/Caption</li>
<li>$:/language/Import/Listing/Title/Caption</li>
<li>$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible</li>
<li>$:/language/Import/Upgrader/Plugins/Suppressed/Version</li>
<li>$:/language/Import/Upgrader/Plugins/Upgraded</li>
<li>$:/language/Import/Upgrader/State/Suppressed</li>
<li>$:/language/Import/Upgrader/System/Alert</li>
<li>$:/language/Import/Upgrader/System/Suppressed</li>
<li>$:/language/Import/Upgrader/System/Warning</li>
<li>$:/language/Import/Upgrader/ThemeTweaks/Created</li>
<li>$:/language/InternalJavaScriptError/Hint</li>
<li>$:/language/InternalJavaScriptError/Title</li>
<li>$:/language/InvalidFieldName</li>
<li>$:/language/LazyLoadingWarning</li>
<li>$:/language/LoginToTiddlySpace</li>
<li>$:/language/Manager/Controls/FilterByTag/None</li>
<li>$:/language/Manager/Controls/FilterByTag/Prompt</li>
<li>$:/language/Manager/Controls/Order/Prompt</li>
<li>$:/language/Manager/Controls/Search/Placeholder</li>
<li>$:/language/Manager/Controls/Search/Prompt</li>
<li>$:/language/Manager/Controls/Show/Option/Tags</li>
<li>$:/language/Manager/Controls/Show/Option/Tiddlers</li>
<li>$:/language/Manager/Controls/Show/Prompt</li>
<li>$:/language/Manager/Controls/Sort/Prompt</li>
<li>$:/language/Manager/Item/Colour</li>
<li>$:/language/Manager/Item/Fields</li>
<li>$:/language/Manager/Item/Icon</li>
<li>$:/language/Manager/Item/Icon/None</li>
<li>$:/language/Manager/Item/RawText</li>
<li>$:/language/Manager/Item/Tags</li>
<li>$:/language/Manager/Item/Tools</li>
<li>$:/language/Manager/Item/WikifiedText</li>
<li>$:/language/MissingTiddler/Hint</li>
<li>$:/language/Modals/Download</li>
<li>$:/language/Modals/SaveInstructions</li>
<li>$:/language/No</li>
<li>$:/language/Notifications/CopiedToClipboard/Failed</li>
<li>$:/language/Notifications/CopiedToClipboard/Succeeded</li>
<li>$:/language/Notifications/Save/Done</li>
<li>$:/language/Notifications/Save/Starting</li>
<li>$:/language/OfficialPluginLibrary</li>
<li>$:/language/OfficialPluginLibrary/Hint</li>
<li>$:/language/PluginReloadWarning</li>
<li>$:/language/RecentChanges/DateFormat</li>
<li>$:/language/RelativeDate/Future/Days</li>
<li>$:/language/RelativeDate/Future/Hours</li>
<li>$:/language/RelativeDate/Future/Minutes</li>
<li>$:/language/RelativeDate/Future/Months</li>
<li>$:/language/RelativeDate/Future/Second</li>
<li>$:/language/RelativeDate/Future/Seconds</li>
<li>$:/language/RelativeDate/Future/Years</li>
<li>$:/language/RelativeDate/Past/Days</li>
<li>$:/language/RelativeDate/Past/Hours</li>
<li>$:/language/RelativeDate/Past/Minutes</li>
<li>$:/language/RelativeDate/Past/Months</li>
<li>$:/language/RelativeDate/Past/Second</li>
<li>$:/language/RelativeDate/Past/Seconds</li>
<li>$:/language/RelativeDate/Past/Years</li>
<li>$:/language/Search/DefaultResults/Caption</li>
<li>$:/language/Search/Filter/Caption</li>
<li>$:/language/Search/Filter/Hint</li>
<li>$:/language/Search/Filter/Matches</li>
<li>$:/language/Search/Matches</li>
<li>$:/language/Search/Matches/All</li>
<li>$:/language/Search/Matches/Title</li>
<li>$:/language/Search/Search</li>
<li>$:/language/Search/Search/TooShort</li>
<li>$:/language/Search/Shadows/Caption</li>
<li>$:/language/Search/Shadows/Hint</li>
<li>$:/language/Search/Shadows/Matches</li>
<li>$:/language/Search/Standard/Caption</li>
<li>$:/language/Search/Standard/Hint</li>
<li>$:/language/Search/Standard/Matches</li>
<li>$:/language/Search/System/Caption</li>
<li>$:/language/Search/System/Hint</li>
<li>$:/language/Search/System/Matches</li>
<li>$:/language/SideBar/All/Caption</li>
<li>$:/language/SideBar/Contents/Caption</li>
<li>$:/language/SideBar/Drafts/Caption</li>
<li>$:/language/SideBar/Explorer/Caption</li>
<li>$:/language/SideBar/Missing/Caption</li>
<li>$:/language/SideBar/More/Caption</li>
<li>$:/language/SideBar/Open/Caption</li>
<li>$:/language/SideBar/Orphans/Caption</li>
<li>$:/language/SideBar/Recent/Caption</li>
<li>$:/language/SideBar/Shadows/Caption</li>
<li>$:/language/SideBar/System/Caption</li>
<li>$:/language/SideBar/Tags/Caption</li>
<li>$:/language/SideBar/Tags/Untagged/Caption</li>
<li>$:/language/SideBar/Tools/Caption</li>
<li>$:/language/SideBar/Types/Caption</li>
<li>$:/language/Snippets/ListByTag</li>
<li>$:/language/Snippets/MacroDefinition</li>
<li>$:/language/Snippets/Table4x3</li>
<li>$:/language/Snippets/TableOfContents</li>
<li>$:/language/SystemTiddler/Tooltip</li>
<li>$:/language/SystemTiddlers/Include/Prompt</li>
<li>$:/language/TagManager/Colour/Heading</li>
<li>$:/language/TagManager/Count/Heading</li>
<li>$:/language/TagManager/Icon/Heading</li>
<li>$:/language/TagManager/Icons/None</li>
<li>$:/language/TagManager/Info/Heading</li>
<li>$:/language/TagManager/Tag/Heading</li>
<li>$:/language/ThemeTweaks/Metrics</li>
<li>$:/language/ThemeTweaks/Metrics/BodyFontSize</li>
<li>$:/language/ThemeTweaks/Metrics/BodyLineHeight</li>
<li>$:/language/ThemeTweaks/Metrics/FontSize</li>
<li>$:/language/ThemeTweaks/Metrics/LineHeight</li>
<li>$:/language/ThemeTweaks/Metrics/SidebarBreakpoint</li>
<li>$:/language/ThemeTweaks/Metrics/SidebarBreakpoint/Hint</li>
<li>$:/language/ThemeTweaks/Metrics/SidebarWidth</li>
<li>$:/language/ThemeTweaks/Metrics/SidebarWidth/Hint</li>
<li>$:/language/ThemeTweaks/Metrics/StoryLeft</li>
<li>$:/language/ThemeTweaks/Metrics/StoryLeft/Hint</li>
<li>$:/language/ThemeTweaks/Metrics/StoryRight</li>
<li>$:/language/ThemeTweaks/Metrics/StoryRight/Hint</li>
<li>$:/language/ThemeTweaks/Metrics/StoryTop</li>
<li>$:/language/ThemeTweaks/Metrics/StoryTop/Hint</li>
<li>$:/language/ThemeTweaks/Metrics/StoryWidth</li>
<li>$:/language/ThemeTweaks/Metrics/StoryWidth/Hint</li>
<li>$:/language/ThemeTweaks/Metrics/TiddlerWidth</li>
<li>$:/language/ThemeTweaks/Metrics/TiddlerWidth/Hint</li>
<li>$:/language/ThemeTweaks/Options</li>
<li>$:/language/ThemeTweaks/Options/CodeWrapping</li>
<li>$:/language/ThemeTweaks/Options/SidebarLayout</li>
<li>$:/language/ThemeTweaks/Options/SidebarLayout/Fixed-Fluid</li>
<li>$:/language/ThemeTweaks/Options/SidebarLayout/Fluid-Fixed</li>
<li>$:/language/ThemeTweaks/Options/StickyTitles</li>
<li>$:/language/ThemeTweaks/Options/StickyTitles/Hint</li>
<li>$:/language/ThemeTweaks/Settings</li>
<li>$:/language/ThemeTweaks/Settings/BackgroundImage</li>
<li>$:/language/ThemeTweaks/Settings/BackgroundImageAttachment</li>
<li>$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Fixed</li>
<li>$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Scroll</li>
<li>$:/language/ThemeTweaks/Settings/BackgroundImageSize</li>
<li>$:/language/ThemeTweaks/Settings/BackgroundImageSize/Auto</li>
<li>$:/language/ThemeTweaks/Settings/BackgroundImageSize/Contain</li>
<li>$:/language/ThemeTweaks/Settings/BackgroundImageSize/Cover</li>
<li>$:/language/ThemeTweaks/Settings/CodeFontFamily</li>
<li>$:/language/ThemeTweaks/Settings/EditorFontFamily</li>
<li>$:/language/ThemeTweaks/Settings/FontFamily</li>
<li>$:/language/ThemeTweaks/ThemeTweaks</li>
<li>$:/language/ThemeTweaks/ThemeTweaks/Hint</li>
<li>$:/language/Tiddler/DateFormat</li>
<li>$:/language/TiddlerInfo/Advanced/Caption</li>
<li>$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint</li>
<li>$:/language/TiddlerInfo/Advanced/PluginInfo/Heading</li>
<li>$:/language/TiddlerInfo/Advanced/PluginInfo/Hint</li>
<li>$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading</li>
<li>$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint</li>
<li>$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint</li>
<li>$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint</li>
<li>$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source</li>
<li>$:/language/TiddlerInfo/Fields/Caption</li>
<li>$:/language/TiddlerInfo/List/Caption</li>
<li>$:/language/TiddlerInfo/List/Empty</li>
<li>$:/language/TiddlerInfo/Listed/Caption</li>
<li>$:/language/TiddlerInfo/Listed/Empty</li>
<li>$:/language/TiddlerInfo/References/Caption</li>
<li>$:/language/TiddlerInfo/References/Empty</li>
<li>$:/language/TiddlerInfo/Tagging/Caption</li>
<li>$:/language/TiddlerInfo/Tagging/Empty</li>
<li>$:/language/TiddlerInfo/Tools/Caption</li>
<li>$:/language/UnsavedChangesWarning</li>
<li>$:/language/Yes</li>
<li>$:/languages/en-GB</li>
<li>$:/languages/en-GB/icon</li>
<li>$:/library/sjcl.js/license</li>
<li>$:/Manager</li>
<li>$:/Manager/ItemMain/Fields</li>
<li>$:/Manager/ItemMain/RawText</li>
<li>$:/Manager/ItemMain/WikifiedText</li>
<li>$:/Manager/ItemSidebar/Colour</li>
<li>$:/Manager/ItemSidebar/Icon</li>
<li>$:/Manager/ItemSidebar/Tags</li>
<li>$:/Manager/ItemSidebar/Tools</li>
<li>$:/palette</li>
<li>$:/PaletteManager</li>
<li>$:/palettes/Blanca</li>
<li>$:/palettes/Blue</li>
<li>$:/palettes/ContrastDark</li>
<li>$:/palettes/ContrastLight</li>
<li>$:/palettes/DarkPhotos</li>
<li>$:/palettes/GruvboxDark</li>
<li>$:/palettes/Muted</li>
<li>$:/palettes/Nord</li>
<li>$:/palettes/Rocker</li>
<li>$:/palettes/SolarFlare</li>
<li>$:/palettes/SolarizedLight</li>
<li>$:/palettes/SpartanDay</li>
<li>$:/palettes/SpartanNight</li>
<li>$:/palettes/Twilight</li>
<li>$:/palettes/Vanilla</li>
<li>$:/plugins/danielo515/2click2edit</li>
<li>$:/plugins/danielo515/2click2edit/ClickListener.js</li>
<li>$:/plugins/danielo515/2click2edit/readme</li>
<li>$:/plugins/danielo515/2click2edit/ui/ViewTemplate</li>
<li>$:/plugins/felixhayashi/respawn</li>
<li>$:/plugins/felixhayashi/respawn/Configuration</li>
<li>$:/plugins/felixhayashi/respawn/License</li>
<li>$:/plugins/felixhayashi/respawn/Readme</li>
<li>$:/plugins/felixhayashi/respawn/respawn.js</li>
<li>$:/plugins/flibbles/relink</li>
<li>$:/plugins/flibbles/relink-titles</li>
<li>$:/plugins/jd/mob</li>
<li>$:/SiteSubtitle</li>
<li>$:/SiteTitle</li>
<li>$:/snippets/allfields</li>
<li>$:/snippets/currpalettepreview</li>
<li>$:/snippets/download-wiki-button</li>
<li>$:/snippets/languageswitcher</li>
<li>$:/snippets/minifocusswitcher</li>
<li>$:/snippets/minilanguageswitcher</li>
<li>$:/snippets/minithemeswitcher</li>
<li>$:/snippets/modules</li>
<li>$:/snippets/paletteeditor</li>
<li>$:/snippets/palettepreview</li>
<li>$:/snippets/paletteswitcher</li>
<li>$:/snippets/peek-stylesheets</li>
<li>$:/snippets/themeswitcher</li>
<li>$:/snippets/viewswitcher</li>
<li>$:/state/showeditpreview</li>
<li>$:/state/ShowPaletteEditor</li>
<li>$:/state/sidebar</li>
<li>$:/state/tab--1498284803</li>
<li>$:/state/tab--1963855381</li>
<li>$:/state/tab--2112689675</li>
<li>$:/state/tab--86143343</li>
<li>$:/state/tab--959111941</li>
<li>$:/state/tab-1749438307</li>
<li>$:/state/tab/moresidebar-1850697562</li>
<li>$:/state/tab/sidebar--595412856</li>
<li>$:/status/RequireReloadDueToPluginChange</li>
<li>$:/StoryList</li>
<li>$:/TagManager</li>
<li>$:/tags/AdvancedSearch</li>
<li>$:/tags/AdvancedSearch/FilterButton</li>
<li>$:/tags/ControlPanel</li>
<li>$:/tags/ControlPanel/Info</li>
<li>$:/tags/ControlPanel/Plugins</li>
<li>$:/tags/EditorToolbar</li>
<li>$:/tags/EditTemplate</li>
<li>$:/tags/EditToolbar</li>
<li>$:/tags/Manager/ItemMain</li>
<li>$:/tags/Manager/ItemSidebar</li>
<li>$:/tags/MoreSideBar</li>
<li>$:/tags/PageControls</li>
<li>$:/tags/PageTemplate</li>
<li>$:/tags/PluginLibrary</li>
<li>$:/tags/SideBar</li>
<li>$:/tags/SideBarSegment</li>
<li>$:/tags/TiddlerInfo</li>
<li>$:/tags/TiddlerInfo/Advanced</li>
<li>$:/tags/ViewTemplate</li>
<li>$:/tags/ViewToolbar</li>
<li>$:/temp/advancedsearch</li>
<li>$:/temp/info-plugin</li>
<li>$:/temp/NewTagName</li>
<li>$:/temp/search</li>
<li>$:/theme</li>
<li>$:/themes/tiddlywiki/seamless</li>
<li>$:/themes/tiddlywiki/snowwhite</li>
<li>$:/themes/tiddlywiki/vanilla</li>
<li>$:/themes/tiddlywiki/vanilla/base</li>
<li>$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize</li>
<li>$:/themes/tiddlywiki/vanilla/metrics/bodylineheight</li>
<li>$:/themes/tiddlywiki/vanilla/metrics/fontsize</li>
<li>$:/themes/tiddlywiki/vanilla/metrics/lineheight</li>
<li>$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint</li>
<li>$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth</li>
<li>$:/themes/tiddlywiki/vanilla/metrics/storyleft</li>
<li>$:/themes/tiddlywiki/vanilla/metrics/storyright</li>
<li>$:/themes/tiddlywiki/vanilla/metrics/storytop</li>
<li>$:/themes/tiddlywiki/vanilla/metrics/storywidth</li>
<li>$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth</li>
<li>$:/themes/tiddlywiki/vanilla/options/codewrapping</li>
<li>$:/themes/tiddlywiki/vanilla/options/sidebarlayout</li>
<li>$:/themes/tiddlywiki/vanilla/options/stickytitles</li>
<li>$:/themes/tiddlywiki/vanilla/reset</li>
<li>$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment</li>
<li>$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize</li>
<li>$:/themes/tiddlywiki/vanilla/settings/codefontfamily</li>
<li>$:/themes/tiddlywiki/vanilla/settings/fontfamily</li>
<li>$:/themes/tiddlywiki/vanilla/sticky</li>
<li>$:/themes/tiddlywiki/vanilla/themetweaks</li>
<li>$:/view</li>
<li>A test</li>
<li>copincha</li>
<li>copincha-logo.png</li>
<li>copincha/redes</li>
<li>GettingStarted</li>
<li>Hackerspace</li>
<li>Hei</li>
<li>image/repo</li>
<li>New Tiddler</li>
<li>New Tiddler 1</li>
<li>Untitled</li>
<li>Untitled 1</li>
</ul>
</p>
<style>
.tc-remove-when-wiki-loaded {display: none;}
</style>
</div>
</noscript>
<!--~~ Ordinary tiddlers ~~-->
<div id="storeArea" style="display:none;">
<div bag="default" created="20151010151732122" creator="Tobias Beer" modified="20151010151750739" module-type="startup" revision="0" title="$:/.tb/modules/startup/hide-sidebar.js" type="application/javascript">
<pre>/*\
title: $:/.tb/modules/startup/hide-sidebar.js
type: application/javascript
module-type: startup
created: 20151010151732122
creator: Tobias Beer
modified: 20151010151750739
Hides the sidebar on startup when the config tiddler [[$:/config/hide-sidebar-on-startup]] contains &quot;yes&quot;
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;hide-sidebar-on-startup&quot;;
exports.platforms = [&quot;browser&quot;];
exports.after = [&quot;startup&quot;];
exports.synchronous = true;
exports.startup = function() {
var conf = $tw.wiki.getTiddler(&quot;$:/config/HideSidebarOnStartup&quot;),
value = (conf ? conf.getFieldString(&quot;text&quot;) : &quot;&quot;).toLowerCase(),
state = value == &quot;yes&quot; ? &quot;no&quot; : &quot;yes&quot;;
$tw.wiki.setText(&quot;$:/state/sidebar&quot;, &quot;text&quot;, undefined, state);
};
})();</pre>
</div>
<div title="$:/Acknowledgements">
<pre>TiddlyWiki incorporates code from these fine OpenSource projects:
* [[The Stanford Javascript Crypto Library|http://bitwiseshiftleft.github.io/sjcl/]]
* [[The Jasmine JavaScript Test Framework|http://pivotal.github.io/jasmine/]]
* [[Normalize.css by Nicolas Gallagher|http://necolas.github.io/normalize.css/]]
And media from these projects:
* World flag icons from [[Wikipedia|http://commons.wikimedia.org/wiki/Category:SVG_flags_by_country]]
</pre>
</div>
<div color="#bbb" icon="$:/core/images/advanced-search-button" title="$:/AdvancedSearch">
<pre>&lt;div class=&quot;tc-advanced-search&quot;&gt;
&lt;&lt;tabs &quot;[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]&quot; &quot;$:/core/ui/AdvancedSearch/System&quot;&gt;&gt;
&lt;/div&gt;
</pre>
</div>
<div title="$:/config/AnimationDuration">
<pre>400</pre>
</div>
<div title="$:/config/AutoFocus">
<pre>title</pre>
</div>
<div title="$:/config/AutoSave">
<pre>yes</pre>
</div>
<div title="$:/config/BitmapEditor/Colour">
<pre>#444</pre>
</div>
<div title="$:/config/BitmapEditor/ImageSizes">
<pre>[[62px 100px]] [[100px 62px]] [[124px 200px]] [[200px 124px]] [[248px 400px]] [[371px 600px]] [[400px 248px]] [[556px 900px]] [[600px 371px]] [[742px 1200px]] [[900px 556px]] [[1200px 742px]]</pre>
</div>
<div title="$:/config/BitmapEditor/LineWidth">
<pre>3px</pre>
</div>
<div title="$:/config/BitmapEditor/LineWidths">
<pre>0.25px 0.5px 1px 2px 3px 4px 6px 8px 10px 16px 20px 28px 40px 56px 80px</pre>
</div>
<div title="$:/config/BitmapEditor/Opacities">
<pre>0.01 0.025 0.05 0.075 0.1 0.15 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0</pre>
</div>
<div title="$:/config/BitmapEditor/Opacity">
<pre>1.0</pre>
</div>
<div title="$:/config/DefaultMoreSidebarTab">
<pre>$:/core/ui/MoreSideBar/Tags</pre>
</div>
<div title="$:/config/DefaultSidebarTab">
<pre>$:/core/ui/SideBar/Open</pre>
</div>
<div created="20210924001803400" modified="20210924001805302" title="$:/config/DownloadSaver/AutoSave">
<pre>yes</pre>
</div>
<div title="$:/config/Drafts/TypingTimeout">
<pre>400</pre>
</div>
<div title="$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4">
<pre>hide</pre>
</div>
<div title="$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5">
<pre>hide</pre>
</div>
<div title="$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6">
<pre>hide</pre>
</div>
<div title="$:/config/EditorTypeMappings/image/gif">
<pre>bitmap</pre>
</div>
<div title="$:/config/EditorTypeMappings/image/heic">
<pre>bitmap</pre>
</div>
<div title="$:/config/EditorTypeMappings/image/heif">
<pre>bitmap</pre>
</div>
<div title="$:/config/EditorTypeMappings/image/jpeg">
<pre>bitmap</pre>
</div>
<div title="$:/config/EditorTypeMappings/image/jpg">
<pre>bitmap</pre>
</div>
<div title="$:/config/EditorTypeMappings/image/png">
<pre>bitmap</pre>
</div>
<div title="$:/config/EditorTypeMappings/image/webp">
<pre>bitmap</pre>
</div>
<div title="$:/config/EditorTypeMappings/image/x-icon">
<pre>bitmap</pre>
</div>
<div title="$:/config/EditorTypeMappings/text/vnd.tiddlywiki">
<pre>text</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/bag">
<pre>hide</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/created">
<pre>hide</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/creator">
<pre>hide</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/draft.of">
<pre>hide</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/draft.title">
<pre>hide</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/modified">
<pre>hide</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/modifier">
<pre>hide</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/revision">
<pre>hide</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/tags">
<pre>hide</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/text">
<pre>hide</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/title">
<pre>hide</pre>
</div>
<div title="$:/config/EditTemplateFields/Visibility/type">
<pre>hide</pre>
</div>
<div bag="default" created="20151007165524815" creator="Tobias Beer" modified="20210530013652932" revision="0" tags="" title="$:/config/HideSidebarOnStartup" type="text/vnd.tiddlywiki">
<pre>yes</pre>
</div>
<div title="$:/config/Manager/Filter">
<pre></pre>
</div>
<div title="$:/config/Manager/Order">
<pre>forward</pre>
</div>
<div title="$:/config/Manager/Show">
<pre>tiddlers</pre>
</div>
<div title="$:/config/Manager/Sort">
<pre>title</pre>
</div>
<div title="$:/config/Manager/System">
<pre>system</pre>
</div>
<div title="$:/config/Manager/Tag">
<pre></pre>
</div>
<div title="$:/config/MissingLinks">
<pre>yes</pre>
</div>
<div title="$:/config/Navigation/openLinkFromInsideRiver">
<pre>below</pre>
</div>
<div title="$:/config/Navigation/openLinkFromOutsideRiver">
<pre>top</pre>
</div>
<div title="$:/config/Navigation/UpdateAddressBar">
<pre>no</pre>
</div>
<div title="$:/config/Navigation/UpdateHistory">
<pre>no</pre>
</div>
<div title="$:/config/NewImageType">
<pre>jpeg</pre>
</div>
<div tags="Journal" title="$:/config/NewJournal/Tags">
<pre></pre>
</div>
<div title="$:/config/NewJournal/Text">
<pre></pre>
</div>
<div title="$:/config/NewJournal/Title">
<pre>DDth MMM YYYY</pre>
</div>
<div caption="{{$:/language/OfficialPluginLibrary}}" tags="$:/tags/PluginLibrary" title="$:/config/OfficialPluginLibrary" url="https://tiddlywiki.com/library/v5.1.22/index.html">
<pre>{{$:/language/OfficialPluginLibrary/Hint}}
</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/close-all">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/export-page">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/fold-all">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/full-screen">
<pre>hide</pre>
</div>
<div created="20210530011318673" modified="20210530011318673" title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home">
<pre>show</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/language">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/manager">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-image">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-journal">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/palette">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/permaview">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/print">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/refresh">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/storyview">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/tag-manager">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/theme">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/timestamp">
<pre>hide</pre>
</div>
<div title="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/unfold-all">
<pre>hide</pre>
</div>
<div title="$:/config/Performance/Instrumentation">
<pre>no</pre>
</div>
<div title="$:/config/RegisterPluginType/import">
<pre>no</pre>
</div>
<div title="$:/config/RegisterPluginType/info">
<pre>no</pre>
</div>
<div title="$:/config/RegisterPluginType/language">
<pre>no</pre>
</div>
<div title="$:/config/RegisterPluginType/plugin">
<pre>yes</pre>
</div>
<div title="$:/config/RegisterPluginType/theme">
<pre>no</pre>
</div>
<div title="$:/config/SaverFilter">
<pre>[all[]] -[[$:/HistoryList]] -[[$:/StoryList]] -[[$:/Import]] -[[$:/isEncrypted]] -[[$:/UploadName]] -[prefix[$:/state/]] -[prefix[$:/temp/]]</pre>
</div>
<div title="$:/config/SaveWikiButton/Template">
<pre>$:/core/save/all</pre>
</div>
<div title="$:/config/Search/AutoFocus">
<pre>true</pre>
</div>
<div title="$:/config/Search/MinLength">
<pre>3</pre>
</div>
<div title="$:/config/SearchResults/Default">
<pre>$:/core/ui/DefaultSearchResultList</pre>
</div>
<div title="$:/config/Server/ExternalFilters/[all[tiddlers]!is[system]sort[title]]">
<pre>yes</pre>
</div>
<div title="$:/config/ShortcutInfo/add-field">
<pre>{{$:/language/EditTemplate/Fields/Add/Button/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/advanced-search">
<pre>{{$:/language/Buttons/AdvancedSearch/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/bold">
<pre>{{$:/language/Buttons/Bold/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/cancel-edit-tiddler">
<pre>{{$:/language/Buttons/Cancel/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/excise">
<pre>{{$:/language/Buttons/Excise/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/heading-1">
<pre>{{$:/language/Buttons/Heading1/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/heading-2">
<pre>{{$:/language/Buttons/Heading2/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/heading-3">
<pre>{{$:/language/Buttons/Heading3/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/heading-4">
<pre>{{$:/language/Buttons/Heading4/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/heading-5">
<pre>{{$:/language/Buttons/Heading5/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/heading-6">
<pre>{{$:/language/Buttons/Heading6/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/italic">
<pre>{{$:/language/Buttons/Italic/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/link">
<pre>{{$:/language/Buttons/Link/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/list-bullet">
<pre>{{$:/language/Buttons/ListBullet/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/list-number">
<pre>{{$:/language/Buttons/ListNumber/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/mono-block">
<pre>{{$:/language/Buttons/MonoBlock/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/mono-line">
<pre>{{$:/language/Buttons/MonoLine/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/new-image">
<pre>{{$:/language/Buttons/NewImage/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/new-journal">
<pre>{{$:/language/Buttons/NewJournal/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/new-tiddler">
<pre>{{$:/language/Buttons/NewTiddler/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/picture">
<pre>{{$:/language/Buttons/Picture/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/preview">
<pre>{{$:/language/Buttons/Preview/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/quote">
<pre>{{$:/language/Buttons/Quote/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/save-tiddler">
<pre>{{$:/language/Buttons/Save/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/sidebar-search">
<pre>{{$:/language/Buttons/SidebarSearch/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/stamp">
<pre>{{$:/language/Buttons/Stamp/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/strikethrough">
<pre>{{$:/language/Buttons/Strikethrough/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/subscript">
<pre>{{$:/language/Buttons/Subscript/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/superscript">
<pre>{{$:/language/Buttons/Superscript/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/toggle-sidebar">
<pre>{{$:/language/Buttons/ToggleSidebar/Hint}}</pre>
</div>
<div title="$:/config/ShortcutInfo/underline">
<pre>{{$:/language/Buttons/Underline/Hint}}</pre>
</div>
<div title="$:/config/shortcuts-mac/bold">
<pre>meta-B</pre>
</div>
<div title="$:/config/shortcuts-mac/italic">
<pre>meta-I</pre>
</div>
<div title="$:/config/shortcuts-mac/new-image">
<pre>ctrl-I</pre>
</div>
<div title="$:/config/shortcuts-mac/new-journal">
<pre>ctrl-J</pre>
</div>
<div title="$:/config/shortcuts-mac/new-tiddler">
<pre>ctrl-N</pre>
</div>
<div title="$:/config/shortcuts-mac/underline">
<pre>meta-U</pre>
</div>
<div title="$:/config/shortcuts-not-mac/bold">
<pre>ctrl-B</pre>
</div>
<div title="$:/config/shortcuts-not-mac/italic">
<pre>ctrl-I</pre>
</div>
<div title="$:/config/shortcuts-not-mac/new-image">
<pre>alt-I</pre>
</div>
<div title="$:/config/shortcuts-not-mac/new-journal">
<pre>alt-J</pre>
</div>
<div title="$:/config/shortcuts-not-mac/new-tiddler">
<pre>alt-N</pre>
</div>
<div title="$:/config/shortcuts-not-mac/underline">
<pre>ctrl-U</pre>
</div>
<div title="$:/config/shortcuts/add-field">
<pre>enter</pre>
</div>
<div title="$:/config/shortcuts/advanced-search">
<pre>ctrl-shift-A</pre>
</div>
<div title="$:/config/shortcuts/cancel-edit-tiddler">
<pre>escape</pre>
</div>
<div title="$:/config/shortcuts/excise">
<pre>ctrl-E</pre>
</div>
<div title="$:/config/shortcuts/heading-1">
<pre>ctrl-1</pre>
</div>
<div title="$:/config/shortcuts/heading-2">
<pre>ctrl-2</pre>
</div>
<div title="$:/config/shortcuts/heading-3">
<pre>ctrl-3</pre>
</div>
<div title="$:/config/shortcuts/heading-4">
<pre>ctrl-4</pre>
</div>
<div title="$:/config/shortcuts/heading-5">
<pre>ctrl-5</pre>
</div>
<div title="$:/config/shortcuts/heading-6">
<pre>ctrl-6</pre>
</div>
<div title="$:/config/shortcuts/link">
<pre>ctrl-L</pre>
</div>
<div title="$:/config/shortcuts/linkify">
<pre>alt-shift-L</pre>
</div>
<div title="$:/config/shortcuts/list-bullet">
<pre>ctrl-shift-L</pre>
</div>
<div title="$:/config/shortcuts/list-number">
<pre>ctrl-shift-N</pre>
</div>
<div title="$:/config/shortcuts/mono-block">
<pre>ctrl-shift-M</pre>
</div>
<div title="$:/config/shortcuts/mono-line">
<pre>ctrl-M</pre>
</div>
<div title="$:/config/shortcuts/picture">
<pre>ctrl-shift-I</pre>
</div>
<div title="$:/config/shortcuts/preview">
<pre>alt-P</pre>
</div>
<div title="$:/config/shortcuts/quote">
<pre>ctrl-Q</pre>
</div>
<div title="$:/config/shortcuts/save-tiddler">
<pre>ctrl+enter</pre>
</div>
<div title="$:/config/shortcuts/sidebar-search">
<pre>ctrl-shift-F</pre>
</div>
<div title="$:/config/shortcuts/stamp">
<pre>ctrl-S</pre>
</div>
<div title="$:/config/shortcuts/strikethrough">
<pre>ctrl-T</pre>
</div>
<div title="$:/config/shortcuts/subscript">
<pre>ctrl-shift-B</pre>
</div>
<div title="$:/config/shortcuts/superscript">
<pre>ctrl-shift-P</pre>
</div>
<div title="$:/config/shortcuts/toggle-sidebar">
<pre>alt-shift-S</pre>
</div>
<div title="$:/config/shortcuts/transcludify">
<pre>alt-shift-T</pre>
</div>
<div title="$:/config/SyncFilter">
<pre>[is[tiddler]] -[[$:/HistoryList]] -[[$:/Import]] -[[$:/isEncrypted]] -[prefix[$:/status/]] -[prefix[$:/state/]] -[prefix[$:/temp/]]</pre>
</div>
<div title="$:/config/Tags/MinLength">
<pre>0</pre>
</div>
<div title="$:/config/TextEditor/EditorHeight/Height">
<pre>400px</pre>
</div>
<div title="$:/config/TextEditor/EditorHeight/Mode">
<pre>auto</pre>
</div>
<div title="$:/config/TiddlerInfo/Default">
<pre>$:/core/ui/TiddlerInfo/Fields</pre>
</div>
<div title="$:/config/TiddlerInfo/Mode">
<pre>popup</pre>
</div>
<div title="$:/config/Tiddlers/TitleLinks">
<pre>no</pre>
</div>
<div title="$:/config/Toolbar/ButtonClass">
<pre>tc-btn-invisible</pre>
</div>
<div title="$:/config/Toolbar/Icons">
<pre>yes</pre>
</div>
<div title="$:/config/Toolbar/Text">
<pre>no</pre>
</div>
<div title="$:/config/ui/EditTemplate">
<pre>$:/core/ui/EditTemplate</pre>
</div>
<div title="$:/config/ui/ViewTemplate">
<pre>$:/core/ui/ViewTemplate</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone">
<pre>hide</pre>
</div>
<div created="20210530013745129" modified="20210923231415934" title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close">
<pre>show</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close-others">
<pre>hide</pre>
</div>
<div created="20210923231434815" modified="20210923232931156" title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete">
<pre>hide</pre>
</div>
<div created="20210530013743037" modified="20210530013743037" title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit">
<pre>hide</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler">
<pre>hide</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold">
<pre>hide</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar">
<pre>hide</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-others">
<pre>hide</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info">
<pre>hide</pre>
</div>
<div created="20210923231423625" modified="20210923232933353" title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions">
<pre>hide</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here">
<pre>hide</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here">
<pre>hide</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/open-window">
<pre>hide</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink">
<pre>hide</pre>
</div>
<div title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permaview">
<pre>hide</pre>
</div>
<div created="20210530002425235" modified="20210530002425235" title="$:/config/WikiParserRules/Inline/wikilink">
<pre>disable</pre>
</div>
<div color="#bbb" icon="$:/core/images/options-button" title="$:/ControlPanel">
<pre>&lt;div class=&quot;tc-control-panel&quot;&gt;
&lt;&lt;tabs &quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel]!has[draft.of]]&quot; &quot;$:/core/ui/ControlPanel/Info&quot;&gt;&gt;
&lt;/div&gt;
</pre>
</div>
<div author="JeremyRuston" core-version="&gt;=5.0.0" dependents="" description="TiddlyWiki5 core" list="readme" name="Core" plugin-priority="0" plugin-type="plugin" title="$:/core" type="application/json" version="5.1.23">
<pre>{
&quot;tiddlers&quot;: {
&quot;$:/Acknowledgements&quot;: {
&quot;title&quot;: &quot;$:/Acknowledgements&quot;,
&quot;text&quot;: &quot;TiddlyWiki incorporates code from these fine OpenSource projects:\n\n* [[The Stanford Javascript Crypto Library|http://bitwiseshiftleft.github.io/sjcl/]]\n* [[The Jasmine JavaScript Test Framework|http://pivotal.github.io/jasmine/]]\n* [[Normalize.css by Nicolas Gallagher|http://necolas.github.io/normalize.css/]]\n\nAnd media from these projects:\n\n* World flag icons from [[Wikipedia|http://commons.wikimedia.org/wiki/Category:SVG_flags_by_country]]\n&quot;
},
&quot;$:/core/copyright.txt&quot;: {
&quot;title&quot;: &quot;$:/core/copyright.txt&quot;,
&quot;type&quot;: &quot;text/plain&quot;,
&quot;text&quot;: &quot;TiddlyWiki created by Jeremy Ruston, (jeremy [at] jermolene [dot] com)\n\nCopyright (c) 2004-2007, Jeremy Ruston\nCopyright (c) 2007-2020, UnaMesa Association\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&quot;
},
&quot;$:/core/icon&quot;: {
&quot;title&quot;: &quot;$:/core/icon&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M64 0l54.56 32v64L64 128 9.44 96V32L64 0zm21.127 95.408c-3.578-.103-5.15-.094-6.974-3.152l-1.42.042c-1.653-.075-.964-.04-2.067-.097-1.844-.07-1.548-1.86-1.873-2.8-.52-3.202.687-6.43.65-9.632-.014-1.14-1.593-5.17-2.157-6.61-1.768.34-3.546.406-5.34.497-4.134-.01-8.24-.527-12.317-1.183-.8 3.35-3.16 8.036-1.21 11.44 2.37 3.52 4.03 4.495 6.61 4.707 2.572.212 3.16 3.18 2.53 4.242-.55.73-1.52.864-2.346 1.04l-1.65.08c-1.296-.046-2.455-.404-3.61-.955-1.93-1.097-3.925-3.383-5.406-5.024.345.658.55 1.938.24 2.53-.878 1.27-4.665 1.26-6.4.47-1.97-.89-6.73-7.162-7.468-11.86 1.96-3.78 4.812-7.07 6.255-11.186-3.146-2.05-4.83-5.384-4.61-9.16l.08-.44c-3.097.59-1.49.37-4.82.628-10.608-.032-19.935-7.37-14.68-18.774.34-.673.664-1.287 1.243-.994.466.237.4 1.18.166 2.227-3.005 13.627 11.67 13.732 20.69 11.21.89-.25 2.67-1.936 3.905-2.495 2.016-.91 4.205-1.282 6.376-1.55 5.4-.63 11.893 2.276 15.19 2.37 3.3.096 7.99-.805 10.87-.615 2.09.098 4.143.483 6.16 1.03 1.306-6.49 1.4-11.27 4.492-12.38 1.814.293 3.213 2.818 4.25 4.167 2.112-.086 4.12.46 6.115 1.066 3.61-.522 6.642-2.593 9.833-4.203-3.234 2.69-3.673 7.075-3.303 11.127.138 2.103-.444 4.386-1.164 6.54-1.348 3.507-3.95 7.204-6.97 7.014-1.14-.036-1.805-.695-2.653-1.4-.164 1.427-.81 2.7-1.434 3.96-1.44 2.797-5.203 4.03-8.687 7.016-3.484 2.985 1.114 13.65 2.23 15.594 1.114 1.94 4.226 2.652 3.02 4.406-.37.58-.936.785-1.54 1.01l-.82.11zm-40.097-8.85l.553.14c.694-.27 2.09.15 2.83.353-1.363-1.31-3.417-3.24-4.897-4.46-.485-1.47-.278-2.96-.174-4.46l.02-.123c-.582 1.205-1.322 2.376-1.72 3.645-.465 1.71 2.07 3.557 3.052 4.615l.336.3z\&quot; fill-rule=\&quot;evenodd\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/add-comment&quot;: {
&quot;title&quot;: &quot;$:/core/images/add-comment&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-add-comment tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M56 56H36a8 8 0 100 16h20v20a8 8 0 1016 0V72h20a8 8 0 100-16H72V36a8 8 0 10-16 0v20zm-12.595 58.362c-6.683 7.659-20.297 12.903-36.006 12.903-2.196 0-4.35-.102-6.451-.3 9.652-3.836 17.356-12.24 21.01-22.874C8.516 94.28 0 79.734 0 63.5 0 33.953 28.206 10 63 10s63 23.953 63 53.5S97.794 117 63 117c-6.841 0-13.428-.926-19.595-2.638z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/advanced-search-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/advanced-search-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-advanced-search-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M74.565 87.985A47.776 47.776 0 0148 96C21.49 96 0 74.51 0 48S21.49 0 48 0s48 21.49 48 48c0 9.854-2.97 19.015-8.062 26.636l34.347 34.347a9.443 9.443 0 010 13.36 9.446 9.446 0 01-13.36 0l-34.36-34.358zM48 80c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z\&quot;/&gt;&lt;circle cx=\&quot;48\&quot; cy=\&quot;48\&quot; r=\&quot;8\&quot;/&gt;&lt;circle cx=\&quot;28\&quot; cy=\&quot;48\&quot; r=\&quot;8\&quot;/&gt;&lt;circle cx=\&quot;68\&quot; cy=\&quot;48\&quot; r=\&quot;8\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/auto-height&quot;: {
&quot;title&quot;: &quot;$:/core/images/auto-height&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-auto-height tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M67.987 114.356l-.029-14.477a4 4 0 00-2.067-3.494l-15.966-8.813-1.933 7.502H79.9c4.222 0 5.564-5.693 1.786-7.58L49.797 71.572 48.01 79.15h31.982c4.217 0 5.564-5.682 1.795-7.575L49.805 55.517l-1.795 7.575h31.982c4.212 0 5.563-5.67 1.805-7.57l-16.034-8.105 2.195 3.57V35.614l9.214 9.213a4 4 0 105.656-5.656l-16-16a4 4 0 00-5.656 0l-16 16a4 4 0 105.656 5.656l9.13-9.13v15.288a4 4 0 002.195 3.57l16.035 8.106 1.804-7.57H48.01c-4.217 0-5.564 5.682-1.795 7.574l31.982 16.059 1.795-7.575H48.01c-4.222 0-5.564 5.693-1.787 7.579l31.89 15.923 1.787-7.578H47.992c-4.133 0-5.552 5.504-1.933 7.501l15.966 8.813-2.067-3.494.029 14.436-9.159-9.158a4 4 0 00-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656l-9.185 9.184zM16 20h96a4 4 0 100-8H16a4 4 0 100 8z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/blank&quot;: {
&quot;title&quot;: &quot;$:/core/images/blank&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-blank tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;/&gt;&quot;
},
&quot;$:/core/images/bold&quot;: {
&quot;title&quot;: &quot;$:/core/images/bold&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-bold tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M41.146 51.81V21.87h26.353c2.51 0 4.93.21 7.26.628 2.33.418 4.392 1.165 6.185 2.24 1.793 1.076 3.227 2.57 4.302 4.482 1.076 1.913 1.614 4.363 1.614 7.35 0 5.379-1.613 9.263-4.84 11.653-3.227 2.39-7.35 3.586-12.37 3.586H41.146zM13 0v128h62.028a65.45 65.45 0 0016.762-2.151c5.438-1.434 10.278-3.645 14.52-6.633 4.244-2.988 7.62-6.842 10.13-11.563 2.51-4.721 3.764-10.308 3.764-16.762 0-8.008-1.942-14.85-5.826-20.527-3.884-5.677-9.77-9.65-17.658-11.921 5.737-2.75 10.069-6.275 12.997-10.577 2.928-4.303 4.392-9.681 4.392-16.135 0-5.976-.986-10.995-2.958-15.059-1.972-4.063-4.75-7.32-8.336-9.77-3.585-2.45-7.888-4.213-12.907-5.289C84.888.538 79.33 0 73.235 0H13zm28.146 106.129V70.992H71.8c6.095 0 10.995 1.404 14.7 4.212 3.705 2.81 5.558 7.5 5.558 14.073 0 3.347-.568 6.096-1.703 8.247-1.136 2.151-2.66 3.854-4.572 5.11-1.912 1.254-4.123 2.15-6.633 2.688-2.51.538-5.139.807-7.888.807H41.146z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/cancel-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/cancel-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-cancel-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M64 76.314l-16.97 16.97a7.999 7.999 0 01-11.314 0c-3.118-3.118-3.124-8.19 0-11.313L52.686 65l-16.97-16.97a7.999 7.999 0 010-11.314c3.118-3.118 8.19-3.124 11.313 0L64 53.686l16.97-16.97a7.999 7.999 0 0111.314 0c3.118 3.118 3.124 8.19 0 11.313L75.314 65l16.97 16.97a7.999 7.999 0 010 11.314c-3.118 3.118-8.19 3.124-11.313 0L64 76.314zM64 129c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 1 0 29.654 0 65c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 17 64 17 16 38.49 16 65s21.49 48 48 48z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/chevron-down&quot;: {
&quot;title&quot;: &quot;$:/core/images/chevron-down&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-chevron-down tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M64.053 85.456a7.889 7.889 0 01-5.6-2.316L2.473 27.16a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0L64.05 66.344l50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.105 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.317z\&quot;/&gt;&lt;path d=\&quot;M64.053 124.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/chevron-left&quot;: {
&quot;title&quot;: &quot;$:/core/images/chevron-left&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-chevron-left tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M47.544 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L66.656 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.105 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.317-5.595z\&quot;/&gt;&lt;path d=\&quot;M8.931 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L28.041 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.104 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.316-5.595z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/chevron-right&quot;: {
&quot;title&quot;: &quot;$:/core/images/chevron-right&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-chevron-right tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M83.456 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196L64.344 63.95 13.963 13.567a7.92 7.92 0 010-11.195c3.086-3.085 8.105-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.317 5.595z\&quot;/&gt;&lt;path d=\&quot;M122.069 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/chevron-up&quot;: {
&quot;title&quot;: &quot;$:/core/images/chevron-up&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-chevron-up tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M63.947 44.544c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 63.656l-50.382 50.382a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.317z\&quot;/&gt;&lt;path d=\&quot;M63.947 5.931c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 25.041 13.567 75.423a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.104 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.316z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/clone-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/clone-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-clone-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M32.265 96v24.002A7.996 7.996 0 0040.263 128h79.74a7.996 7.996 0 007.997-7.998v-79.74a7.996 7.996 0 00-7.998-7.997H96V48h12.859a2.99 2.99 0 012.994 2.994v57.865a2.99 2.99 0 01-2.994 2.994H50.994A2.99 2.99 0 0148 108.859V96H32.265z\&quot;/&gt;&lt;path d=\&quot;M40 56h-7.993C27.588 56 24 52.418 24 48c0-4.41 3.585-8 8.007-8H40v-7.993C40 27.588 43.582 24 48 24c4.41 0 8 3.585 8 8.007V40h7.993C68.412 40 72 43.582 72 48c0 4.41-3.585 8-8.007 8H56v7.993C56 68.412 52.418 72 48 72c-4.41 0-8-3.585-8-8.007V56zM8 0C3.58 0 0 3.588 0 8v80c0 4.419 3.588 8 8 8h80c4.419 0 8-3.588 8-8V8c0-4.419-3.588-8-8-8H8zM19 16A2.997 2.997 0 0016 19.001v57.998A2.997 2.997 0 0019.001 80h57.998A2.997 2.997 0 0080 76.999V19.001A2.997 2.997 0 0076.999 16H19.001z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/close-all-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/close-all-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-close-all-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M28 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L16.686 100 2.543 85.856a8 8 0 0111.313-11.313L28 88.686l14.144-14.143a8 8 0 0111.313 11.313L39.314 100l14.143 14.144a8 8 0 01-11.313 11.313L28 111.314zM28 39.314L13.856 53.457A8 8 0 012.543 42.144L16.686 28 2.543 13.856A8 8 0 0113.856 2.543L28 16.686 42.144 2.543a8 8 0 0111.313 11.313L39.314 28l14.143 14.144a8 8 0 01-11.313 11.313L28 39.314zM100 39.314L85.856 53.457a8 8 0 01-11.313-11.313L88.686 28 74.543 13.856A8 8 0 0185.856 2.543L100 16.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 28l14.143 14.144a8 8 0 01-11.313 11.313L100 39.314zM100 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L88.686 100 74.543 85.856a8 8 0 0111.313-11.313L100 88.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 100l14.143 14.144a8 8 0 01-11.313 11.313L100 111.314z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/close-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/close-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-close-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M65.086 75.41l-50.113 50.113c-3.121 3.121-8.192 3.126-11.316.002-3.118-3.118-3.123-8.19.002-11.316l50.114-50.114L3.659 13.982C.538 10.86.533 5.79 3.657 2.666c3.118-3.118 8.19-3.123 11.316.002l50.113 50.114L115.2 2.668c3.121-3.121 8.192-3.126 11.316-.002 3.118 3.118 3.123 8.19-.002 11.316L76.4 64.095l50.114 50.114c3.121 3.121 3.126 8.192.002 11.316-3.118 3.118-8.19 3.123-11.316-.002L65.086 75.409z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/close-others-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/close-others-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-close-others-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48zm0-16c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32zm0-16c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/copy-clipboard&quot;: {
&quot;title&quot;: &quot;$:/core/images/copy-clipboard&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-copy-clipboard tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;rect width=\&quot;33\&quot; height=\&quot;8\&quot; x=\&quot;40\&quot; y=\&quot;40\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;17\&quot; height=\&quot;8\&quot; x=\&quot;40\&quot; y=\&quot;82\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;17\&quot; height=\&quot;8\&quot; x=\&quot;40\&quot; y=\&quot;54\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;33\&quot; height=\&quot;8\&quot; x=\&quot;40\&quot; y=\&quot;96\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;12\&quot; height=\&quot;8\&quot; x=\&quot;40\&quot; y=\&quot;68\&quot; rx=\&quot;4\&quot;/&gt;&lt;path d=\&quot;M40 16H24c-4.419 0-8 3.59-8 8a8.031 8.031 0 000 .01v95.98a8.03 8.03 0 000 .01c0 4.41 3.581 8 8 8h80a7.975 7.975 0 005.652-2.34 7.958 7.958 0 002.348-5.652v-16.016c0-4.414-3.582-7.992-8-7.992-4.41 0-8 3.578-8 7.992V112H32V32h64v8.008C96 44.422 99.582 48 104 48c4.41 0 8-3.578 8-7.992V23.992a7.963 7.963 0 00-2.343-5.651A7.995 7.995 0 00104.001 16H88c0-4.41-3.585-8-8.007-8H48.007C43.588 8 40 11.582 40 16zm4-1.004A4.001 4.001 0 0148 11h32c2.21 0 4 1.797 4 3.996v4.008A4.001 4.001 0 0180 23H48c-2.21 0-4-1.797-4-3.996v-4.008z\&quot;/&gt;&lt;rect width=\&quot;66\&quot; height=\&quot;16\&quot; x=\&quot;62\&quot; y=\&quot;64\&quot; rx=\&quot;8\&quot;/&gt;&lt;path d=\&quot;M84.657 82.343l-16-16v11.314l16-16a8 8 0 10-11.314-11.314l-16 16a8 8 0 000 11.314l16 16a8 8 0 1011.314-11.314z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/delete-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/delete-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-delete-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot; transform=\&quot;translate(12)\&quot;&gt;&lt;rect width=\&quot;105\&quot; height=\&quot;16\&quot; y=\&quot;11\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;48\&quot; height=\&quot;16\&quot; x=\&quot;28\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;16\&quot; height=\&quot;112\&quot; x=\&quot;8\&quot; y=\&quot;16\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;88\&quot; height=\&quot;16\&quot; x=\&quot;8\&quot; y=\&quot;112\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;16\&quot; height=\&quot;112\&quot; x=\&quot;80\&quot; y=\&quot;16\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;16\&quot; height=\&quot;112\&quot; x=\&quot;56\&quot; y=\&quot;16\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;16\&quot; height=\&quot;112\&quot; x=\&quot;32\&quot; y=\&quot;16\&quot; rx=\&quot;8\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/done-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/done-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-done-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M42.26 111.032c-2.051.001-4.103-.78-5.668-2.345L2.662 74.758a8 8 0 01-.005-11.32c3.118-3.117 8.192-3.12 11.32.007l28.278 28.278 72.124-72.124a8.002 8.002 0 0111.314-.001c3.118 3.118 3.124 8.19 0 11.315l-77.78 77.78a7.978 7.978 0 01-5.658 2.343z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/down-arrow&quot;: {
&quot;title&quot;: &quot;$:/core/images/down-arrow&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-down-arrow tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M64.177 100.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.086 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/download-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/download-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-download-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z\&quot; class=\&quot;tc-image-download-button-ring\&quot;/&gt;&lt;path d=\&quot;M34.35 66.43l26.892 27.205a4.57 4.57 0 006.516 0L94.65 66.43a4.7 4.7 0 000-6.593 4.581 4.581 0 00-3.258-1.365h-8.46c-2.545 0-4.608-2.087-4.608-4.661v-15.15c0-2.575-2.063-4.662-4.608-4.662H55.284c-2.545 0-4.608 2.087-4.608 4.662v15.15c0 2.574-2.063 4.661-4.608 4.661h-8.46c-2.545 0-4.608 2.087-4.608 4.662a4.69 4.69 0 001.35 3.296z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/edit-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/edit-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-edit-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M95.627 10.059l-5.656 5.657 11.313 11.313 5.657-5.656-11.314-11.314zm5.657-5.657l1.966-1.966c3.123-3.122 8.194-3.129 11.319-.005 3.117 3.118 3.122 8.192-.005 11.32l-1.966 1.965-11.314-11.314zm-16.97 16.97l-60.25 60.25a8.12 8.12 0 00-.322.342c-.1.087-.198.179-.295.275-5.735 5.735-10.702 22.016-10.702 22.016s16.405-5.09 22.016-10.702c.095-.096.186-.193.272-.292a8.12 8.12 0 00.345-.325l60.25-60.25-11.314-11.313zM35.171 124.19c6.788-.577 13.898-2.272 23.689-5.348 1.825-.573 3.57-1.136 6.336-2.04 16-5.226 21.877-6.807 28.745-7.146 8.358-.413 13.854 2.13 17.58 8.699a4 4 0 006.959-3.946c-5.334-9.406-13.745-13.296-24.933-12.744-7.875.39-14.057 2.052-30.835 7.533-2.739.894-4.46 1.45-6.25 2.012-19.46 6.112-30.77 7.072-39.597 1.747a4 4 0 10-4.132 6.85c6.333 3.82 13.754 5.12 22.438 4.383z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/erase&quot;: {
&quot;title&quot;: &quot;$:/core/images/erase&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-erase tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M60.087 127.996l63.015-63.015c6.535-6.535 6.528-17.115-.003-23.646L99.466 17.702c-6.539-6.538-17.117-6.532-23.646-.003L4.898 88.62c-6.535 6.534-6.528 17.115.003 23.646l15.73 15.73h39.456zm-34.95-7.313l-14.324-14.325c-3.267-3.268-3.268-8.564-.008-11.824L46.269 59.07l35.462 35.462-26.15 26.15H25.137z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/excise&quot;: {
&quot;title&quot;: &quot;$:/core/images/excise&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-excise tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M56 107.314l-2.343 2.343a8 8 0 11-11.314-11.314l16-16a8 8 0 0111.314 0l16 16a8 8 0 11-11.314 11.314L72 107.314v14.284c0 3.536-3.582 6.402-8 6.402s-8-2.866-8-6.402v-14.284zM0 40.007C0 35.585 3.59 32 8 32c4.418 0 8 3.588 8 8.007v31.986C16 76.415 12.41 80 8 80c-4.418 0-8-3.588-8-8.007V40.007zm32 0C32 35.585 35.59 32 40 32c4.418 0 8 3.588 8 8.007v31.986C48 76.415 44.41 80 40 80c-4.418 0-8-3.588-8-8.007V40.007zm48 0C80 35.585 83.59 32 88 32c4.418 0 8 3.588 8 8.007v31.986C96 76.415 92.41 80 88 80c-4.418 0-8-3.588-8-8.007V40.007zm-24-32C56 3.585 59.59 0 64 0c4.418 0 8 3.588 8 8.007v31.986C72 44.415 68.41 48 64 48c-4.418 0-8-3.588-8-8.007V8.007zm56 32c0-4.422 3.59-8.007 8-8.007 4.418 0 8 3.588 8 8.007v31.986c0 4.422-3.59 8.007-8 8.007-4.418 0-8-3.588-8-8.007V40.007z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/export-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/export-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-export-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M8.003 128H119.993a7.984 7.984 0 005.664-2.349v.007A7.975 7.975 0 00128 120V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v56H16V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v64c0 4.418 3.59 8 8 8h.003zm48.62-100.689l-8.965 8.966c-3.125 3.125-8.195 3.13-11.319.005-3.118-3.118-3.122-8.192.005-11.319L58.962 2.346A7.986 7.986 0 0164.625 0l-.006.002c2.05-.001 4.102.78 5.666 2.344l22.618 22.617c3.124 3.125 3.129 8.195.005 11.319-3.118 3.118-8.192 3.122-11.319-.005l-8.965-8.966v61.256c0 4.411-3.582 8-8 8-4.41 0-8-3.582-8-8V27.311z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/file&quot;: {
&quot;title&quot;: &quot;$:/core/images/file&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-file tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M111.968 30.5H112V120a8 8 0 01-8 8H24a8 8 0 01-8-8V8a8 8 0 018-8h57v.02a7.978 7.978 0 015.998 2.337l22.627 22.627a7.975 7.975 0 012.343 5.516zM81 8H24v112h80V30.5H89c-4.418 0-8-3.578-8-8V8z\&quot;/&gt;&lt;rect width=\&quot;64\&quot; height=\&quot;8\&quot; x=\&quot;32\&quot; y=\&quot;36\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;64\&quot; height=\&quot;8\&quot; x=\&quot;32\&quot; y=\&quot;52\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;64\&quot; height=\&quot;8\&quot; x=\&quot;32\&quot; y=\&quot;68\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;64\&quot; height=\&quot;8\&quot; x=\&quot;32\&quot; y=\&quot;84\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;64\&quot; height=\&quot;8\&quot; x=\&quot;32\&quot; y=\&quot;100\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;40\&quot; height=\&quot;8\&quot; x=\&quot;32\&quot; y=\&quot;20\&quot; rx=\&quot;4\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/fixed-height&quot;: {
&quot;title&quot;: &quot;$:/core/images/fixed-height&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-fixed-height tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M60 35.657l-9.172 9.171a4 4 0 11-5.656-5.656l16-16a4 4 0 015.656 0l16 16a4 4 0 01-5.656 5.656L68 35.657v57.686l9.172-9.171a4 4 0 115.656 5.656l-16 16a4 4 0 01-5.656 0l-16-16a4 4 0 115.656-5.656L60 93.343V35.657zM16 116h96a4 4 0 100-8H16a4 4 0 100 8zm0-96h96a4 4 0 100-8H16a4 4 0 100 8z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/fold-all-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/fold-all-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-fold-all tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;rect width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;128\&quot; height=\&quot;16\&quot; y=\&quot;64\&quot; rx=\&quot;8\&quot;/&gt;&lt;path d=\&quot;M64.03 20.004c-2.05 0-4.102.78-5.667 2.344L35.746 44.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 22.348a7.986 7.986 0 00-5.663-2.346zM64.03 85.002c-2.05-.001-4.102.78-5.667 2.344l-22.617 22.617c-3.125 3.125-3.13 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.966 16.966 16.966c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.192-.005-11.319L69.687 87.346A7.986 7.986 0 0064.024 85z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/fold-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/fold-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-fold tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;rect width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;/&gt;&lt;path d=\&quot;M64.03 25.004c-2.05 0-4.102.78-5.667 2.344L35.746 49.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 27.348a7.986 7.986 0 00-5.663-2.346zM64.005 67.379c-2.05 0-4.102.78-5.666 2.344L35.722 92.34c-3.125 3.125-3.13 8.195-.006 11.32 3.118 3.117 8.192 3.121 11.32-.006L64 86.69l16.965 16.965c3.125 3.125 8.195 3.13 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L69.663 69.723A7.986 7.986 0 0064 67.377z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/fold-others-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/fold-others-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-fold-others tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;rect width=\&quot;128\&quot; height=\&quot;16\&quot; y=\&quot;56.031\&quot; rx=\&quot;8\&quot;/&gt;&lt;path d=\&quot;M86.632 79.976c-2.05 0-4.102.78-5.666 2.345L64 99.286 47.034 82.321a7.986 7.986 0 00-5.662-2.346l.005.001c-2.05 0-4.102.78-5.666 2.345l-22.618 22.617c-3.124 3.125-3.129 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.966-16.966 16.965 16.966a7.986 7.986 0 005.663 2.346l-.005-.002c2.05 0 4.102-.78 5.666-2.344l16.965-16.966 16.966 16.966c3.125 3.124 8.194 3.129 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L92.289 82.321a7.986 7.986 0 00-5.663-2.346zM86.7 48.024c-2.05 0-4.102-.78-5.666-2.345L64.07 28.714 47.103 45.679a7.986 7.986 0 01-5.663 2.346l.005-.001c-2.05 0-4.101-.78-5.666-2.345L13.162 23.062c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L41.44 28.714l16.966-16.966a7.986 7.986 0 015.662-2.346l-.005.002c2.05 0 4.102.78 5.666 2.344l16.966 16.966 16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L92.358 45.679a7.986 7.986 0 01-5.663 2.346z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/folder&quot;: {
&quot;title&quot;: &quot;$:/core/images/folder&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-folder tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M55.694 128H8C3.58 128 0 124.414 0 119.996V48.004C0 43.584 3.584 40 7.999 40H16v-8c0-4.418 3.578-8 8-8h32a8 8 0 018 8v8h40.001c4.418 0 7.999 3.586 7.999 8.004V59.83l-8-.082v-7.749A4 4 0 0099.997 48H56V36c0-2.21-1.793-4-4.004-4H28.004A4 4 0 0024 36v12H12.003A4 4 0 008 52v64a4 4 0 004.003 4h46.76l-3.069 8z\&quot;/&gt;&lt;path d=\&quot;M23.873 55.5h96.003c4.417 0 7.004 4.053 5.774 9.063l-13.344 54.374c-1.228 5.005-5.808 9.063-10.223 9.063H6.08c-4.417 0-7.003-4.053-5.774-9.063L13.65 64.563c1.228-5.005 5.808-9.063 10.223-9.063zm1.78 8.5h87.994c2.211 0 3.504 2.093 2.891 4.666l-11.12 46.668c-.614 2.577-2.902 4.666-5.115 4.666H12.31c-2.211 0-3.504-2.093-2.891-4.666l11.12-46.668C21.152 66.09 23.44 64 25.653 64z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/full-screen-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/full-screen-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-full-screen-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M0 8a8 8 0 018-8h32a8 8 0 110 16H16v24a8 8 0 11-16 0V8zM128 120a8 8 0 01-8 8H88a8 8 0 110-16h24V88a8 8 0 1116 0v32zM8 128a8 8 0 01-8-8V88a8 8 0 1116 0v24h24a8 8 0 110 16H8zM120 0a8 8 0 018 8v32a8 8 0 11-16 0V16H88a8 8 0 110-16h32z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/github&quot;: {
&quot;title&quot;: &quot;$:/core/images/github&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-github tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M63.938 1.607c-35.336 0-63.994 28.69-63.994 64.084 0 28.312 18.336 52.329 43.768 60.802 3.202.59 4.37-1.388 4.37-3.088 0-1.518-.056-5.55-.087-10.897-17.802 3.871-21.558-8.591-21.558-8.591-2.911-7.404-7.108-9.375-7.108-9.375-5.81-3.973.44-3.895.44-3.895 6.424.453 9.803 6.606 9.803 6.606 5.709 9.791 14.981 6.963 18.627 5.322.582-4.138 2.236-6.963 4.063-8.564-14.211-1.617-29.153-7.117-29.153-31.672 0-6.995 2.495-12.718 6.589-17.195-.66-1.621-2.856-8.14.629-16.96 0 0 5.37-1.722 17.597 6.57 5.104-1.424 10.58-2.132 16.022-2.16 5.438.028 10.91.736 16.022 2.16 12.22-8.292 17.582-6.57 17.582-6.57 3.493 8.82 1.297 15.339.64 16.96 4.102 4.477 6.578 10.2 6.578 17.195 0 24.618-14.966 30.035-29.22 31.62 2.295 1.98 4.342 5.89 4.342 11.87 0 8.564-.079 15.476-.079 17.576 0 1.715 1.155 3.71 4.4 3.084 25.413-8.493 43.733-32.494 43.733-60.798 0-35.394-28.657-64.084-64.006-64.084\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/gitter&quot;: {
&quot;title&quot;: &quot;$:/core/images/gitter&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-gitter tc-image-button\&quot; viewBox=\&quot;0 0 18 25\&quot;&gt;&lt;path d=\&quot;M15 5h2v10h-2zM10 5h2v20h-2zM5 5h2v20H5zM0 0h2v15H0z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/globe&quot;: {
&quot;title&quot;: &quot;$:/core/images/globe&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-globe tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M72.811 37.128v2.554c0 2.196.978 6.881 0 8.832-1.466 2.928-4.65 3.54-6.394 5.867-1.182 1.577-4.618 10.601-3.69 12.92 3.969 9.922 11.534 3.187 17.962 9.293.864.821 2.887 2.273 3.296 3.296 3.29 8.223-7.576 15.009 3.757 26.3 1.245 1.24 3.813-3.817 4.079-4.614.852-2.563 6.725-5.45 9.088-7.053 2.02-1.37 4.873-2.667 6.328-4.745 2.27-3.244 1.48-7.514 3.098-10.745 2.139-4.274 3.828-9.635 5.998-13.966 3.898-7.781 4.721 2.093 5.067 2.439.358.357 1.011 0 1.517 0 .094 0 1.447.099 1.516 0 .65-.935-1.043-17.92-1.318-19.297-1.404-7.01-6.944-15.781-11.865-20.5-6.274-6.015-7.09-16.197-18.259-14.954-.204.022-5.084 10.148-7.777 13.512-3.728 4.657-2.47-4.153-6.526-4.153-.081 0-1.183-.103-1.253 0-.586.88-1.44 3.896-2.306 4.417-.265.16-1.722-.239-1.846 0-2.243 4.3 8.256 2.212 5.792 7.952-2.352 5.481-6.328-1.997-6.328 8.56M44.467 7.01c9.685 6.13.682 12.198 2.694 16.215 1.655 3.303 4.241 5.395 1.714 9.814-2.063 3.608-6.87 3.966-9.623 6.723-3.04 3.044-5.464 8.94-6.79 12.911-1.617 4.843 14.547 6.866 12.063 11.008-1.386 2.311-6.746 1.466-8.437.198-1.165-.873-3.593-.546-4.417-1.78-2.613-3.915-2.26-8.023-3.625-12.128-.938-2.822-6.313-2.12-7.844-.593-.523.522-.33 1.792-.33 2.505 0 5.285 7.12 3.316 7.12 6.46 0 14.636 3.927 6.534 11.14 11.336 10.036 6.683 7.844 7.303 14.946 14.404 3.673 3.673 7.741 3.686 9.425 9.294 1.602 5.331-9.327 5.339-11.716 7.448-1.123.991-2.813 4.146-4.219 4.615-1.792.598-3.234.496-4.944 1.78-2.427 1.82-3.9 4.932-4.02 4.81-2.148-2.147-3.52-15.479-3.89-18.257-.588-4.42-5.59-5.54-6.986-9.03-1.57-3.927 1.524-9.52-1.129-13.761-6.52-10.424-11.821-14.5-15.35-26.292-.942-3.148 3.342-6.529 4.877-8.833 1.877-2.816 2.662-5.854 4.746-8.635C22.147 24.19 40.855 9.461 43.857 8.635l.61-1.625z\&quot;/&gt;&lt;path d=\&quot;M64 126c34.242 0 62-27.758 62-62 0-34.242-27.758-62-62-62C29.758 2 2 29.758 2 64c0 34.242 27.758 62 62 62zm0-6c30.928 0 56-25.072 56-56S94.928 8 64 8 8 33.072 8 64s25.072 56 56 56z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/heading-1&quot;: {
&quot;title&quot;: &quot;$:/core/images/heading-1&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-heading-1 tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M14 30h13.25v30.104H61.7V30h13.25v75.684H61.7V71.552H27.25v34.132H14V30zm70.335 13.78c2.544 0 5.017-.212 7.42-.636 2.403-.424 4.576-1.13 6.52-2.12 1.942-.99 3.603-2.261 4.981-3.816 1.378-1.555 2.28-3.463 2.703-5.724h9.858v74.2h-13.25V53.32H84.335v-9.54z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/heading-2&quot;: {
&quot;title&quot;: &quot;$:/core/images/heading-2&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-heading-2 tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm119.52 75.684H74.85c.07-6.148 1.555-11.519 4.452-16.112 2.897-4.593 6.855-8.586 11.872-11.978a133.725 133.725 0 017.526-5.141 59.6 59.6 0 007.208-5.353c2.19-1.908 3.993-3.975 5.406-6.201 1.413-2.226 2.155-4.788 2.226-7.685 0-1.343-.159-2.774-.477-4.293a11.357 11.357 0 00-1.855-4.24c-.919-1.307-2.19-2.403-3.816-3.286-1.625-.883-3.745-1.325-6.36-1.325-2.403 0-4.399.477-5.989 1.431-1.59.954-2.862 2.261-3.816 3.922-.954 1.66-1.66 3.622-2.12 5.883-.46 2.261-.724 4.7-.795 7.314H76.23c0-4.099.548-7.897 1.643-11.395 1.095-3.498 2.738-6.519 4.93-9.063 2.19-2.544 4.857-4.54 8.002-5.989C93.95 30.724 97.606 30 101.775 30c4.523 0 8.303.742 11.342 2.226 3.039 1.484 5.494 3.357 7.367 5.618 1.873 2.261 3.198 4.717 3.975 7.367.777 2.65 1.166 5.176 1.166 7.579 0 2.968-.46 5.653-1.378 8.056a25.942 25.942 0 01-3.71 6.625 37.5 37.5 0 01-5.3 5.565 79.468 79.468 0 01-6.148 4.77 165.627 165.627 0 01-6.36 4.24 94.28 94.28 0 00-5.883 4.028c-1.802 1.343-3.374 2.738-4.717 4.187-1.343 1.449-2.261 2.986-2.756 4.611h36.146v10.812z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/heading-3&quot;: {
&quot;title&quot;: &quot;$:/core/images/heading-3&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-heading-3 tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm88.885 32.224c1.979.07 3.957-.07 5.936-.424 1.979-.353 3.745-.972 5.3-1.855a10.365 10.365 0 003.763-3.657c.954-1.555 1.431-3.463 1.431-5.724 0-3.18-1.078-5.724-3.233-7.632-2.155-1.908-4.929-2.862-8.32-2.862-2.12 0-3.958.424-5.513 1.272a11.318 11.318 0 00-3.869 3.445c-1.025 1.449-1.784 3.074-2.279 4.876a18.335 18.335 0 00-.636 5.565H75.381c.141-3.604.813-6.943 2.014-10.017 1.201-3.074 2.844-5.742 4.93-8.003 2.084-2.261 4.61-4.028 7.578-5.3C92.871 30.636 96.228 30 99.973 30a29.2 29.2 0 018.533 1.272c2.791.848 5.3 2.085 7.526 3.71s4.01 3.692 5.353 6.201c1.343 2.509 2.014 5.388 2.014 8.639 0 3.745-.848 7.014-2.544 9.805-1.696 2.791-4.346 4.823-7.95 6.095v.212c4.24.848 7.544 2.95 9.911 6.307s3.551 7.438 3.551 12.243c0 3.533-.707 6.696-2.12 9.487a21.538 21.538 0 01-5.724 7.102c-2.403 1.943-5.194 3.445-8.374 4.505-3.18 1.06-6.537 1.59-10.07 1.59-4.31 0-8.074-.618-11.289-1.855s-5.9-2.986-8.056-5.247c-2.155-2.261-3.798-4.982-4.929-8.162-1.13-3.18-1.731-6.713-1.802-10.6h12.084c-.141 4.523.972 8.286 3.34 11.289 2.366 3.003 5.917 4.505 10.652 4.505 4.028 0 7.402-1.148 10.123-3.445 2.72-2.297 4.081-5.565 4.081-9.805 0-2.897-.565-5.194-1.696-6.89a10.97 10.97 0 00-4.452-3.869c-1.837-.883-3.904-1.431-6.2-1.643a58.067 58.067 0 00-7.05-.212v-9.01z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/heading-4&quot;: {
&quot;title&quot;: &quot;$:/core/images/heading-4&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-heading-4 tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M8 30h13.25v30.104H55.7V30h13.25v75.684H55.7V71.552H21.25v34.132H8V30zm76.59 48.548h22.471V45.9h-.212L84.59 78.548zm43.46 9.54h-9.54v17.596H107.06V88.088h-31.8V76.11l31.8-44.626h11.448v47.064h9.54v9.54z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/heading-5&quot;: {
&quot;title&quot;: &quot;$:/core/images/heading-5&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-heading-5 tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm77.755 1.484h38.372v10.812H92.765L88.95 61.164l.212.212c1.625-1.837 3.692-3.233 6.201-4.187 2.509-.954 5-1.431 7.473-1.431 3.675 0 6.96.618 9.858 1.855 2.897 1.237 5.335 2.968 7.314 5.194s3.48 4.858 4.505 7.897c1.025 3.039 1.537 6.325 1.537 9.858 0 2.968-.477 6.024-1.43 9.169a25.161 25.161 0 01-4.559 8.586c-2.085 2.58-4.752 4.7-8.003 6.36-3.25 1.66-7.137 2.491-11.66 2.491-3.604 0-6.943-.477-10.017-1.431-3.074-.954-5.777-2.385-8.109-4.293-2.332-1.908-4.187-4.258-5.565-7.049-1.378-2.791-2.138-6.06-2.279-9.805h12.084c.353 4.028 1.731 7.12 4.134 9.275 2.403 2.155 5.583 3.233 9.54 3.233 2.544 0 4.7-.424 6.466-1.272 1.767-.848 3.198-2.014 4.293-3.498 1.095-1.484 1.873-3.215 2.332-5.194.46-1.979.69-4.099.69-6.36 0-2.05-.284-4.01-.849-5.883-.565-1.873-1.413-3.516-2.544-4.929-1.13-1.413-2.597-2.544-4.399-3.392-1.802-.848-3.904-1.272-6.307-1.272-2.544 0-4.929.477-7.155 1.431-2.226.954-3.834 2.738-4.823 5.353H75.805l7.95-40.598z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/heading-6&quot;: {
&quot;title&quot;: &quot;$:/core/images/heading-6&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-heading-6 tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm106.587 20.246c-.283-3.039-1.36-5.494-3.233-7.367-1.873-1.873-4.399-2.809-7.579-2.809-2.19 0-4.08.406-5.67 1.219a12.435 12.435 0 00-4.029 3.233c-1.095 1.343-1.979 2.88-2.65 4.611a37.696 37.696 0 00-1.643 5.459 46.08 46.08 0 00-.9 5.671 722.213 722.213 0 00-.478 5.247l.212.212c1.625-2.968 3.87-5.176 6.731-6.625 2.862-1.449 5.954-2.173 9.275-2.173 3.675 0 6.96.636 9.858 1.908 2.897 1.272 5.353 3.021 7.367 5.247 2.014 2.226 3.551 4.858 4.611 7.897 1.06 3.039 1.59 6.325 1.59 9.858 0 3.604-.583 6.943-1.749 10.017-1.166 3.074-2.844 5.76-5.035 8.056-2.19 2.297-4.805 4.081-7.844 5.353-3.039 1.272-6.395 1.908-10.07 1.908-5.441 0-9.91-1.007-13.409-3.021-3.498-2.014-6.254-4.77-8.268-8.268-2.014-3.498-3.41-7.597-4.187-12.296-.777-4.7-1.166-9.77-1.166-15.211 0-4.452.477-8.94 1.431-13.462.954-4.523 2.526-8.639 4.717-12.349 2.19-3.71 5.07-6.731 8.64-9.063C92.676 31.166 97.075 30 102.304 30c2.968 0 5.76.495 8.374 1.484 2.615.99 4.93 2.367 6.943 4.134 2.014 1.767 3.657 3.887 4.93 6.36 1.271 2.473 1.978 5.23 2.12 8.268h-12.085zm-11.66 46.852c2.19 0 4.099-.442 5.724-1.325a12.869 12.869 0 004.081-3.445c1.095-1.413 1.908-3.056 2.438-4.929.53-1.873.795-3.798.795-5.777s-.265-3.887-.795-5.724c-.53-1.837-1.343-3.445-2.438-4.823-1.095-1.378-2.456-2.491-4.08-3.339-1.626-.848-3.534-1.272-5.725-1.272-2.19 0-4.116.406-5.777 1.219-1.66.813-3.056 1.908-4.187 3.286-1.13 1.378-1.979 2.986-2.544 4.823-.565 1.837-.848 3.78-.848 5.83 0 2.05.283 3.993.848 5.83.565 1.837 1.413 3.48 2.544 4.929a12.39 12.39 0 004.187 3.445c1.66.848 3.586 1.272 5.777 1.272z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/help&quot;: {
&quot;title&quot;: &quot;$:/core/images/help&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-help tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M36.055 111.441c-5.24 4.396-15.168 7.362-26.555 7.362-1.635 0-3.24-.06-4.806-.179 7.919-2.64 14.062-8.6 16.367-16.014C8.747 92.845 1.05 78.936 1.05 63.5c0-29.547 28.206-53.5 63-53.5s63 23.953 63 53.5-28.206 53.5-63 53.5c-10.055 0-19.56-2-27.994-5.559zm35.35-33.843a536.471 536.471 0 00.018-4.682 199.02 199.02 0 00-.023-3.042c.008-1.357.595-2.087 3.727-4.235.112-.077 1.085-.74 1.386-.948 3.093-2.133 5.022-3.786 6.762-6.187 2.34-3.228 3.558-7.077 3.558-11.649 0-13.292-9.86-21.952-21.455-21.952-11.103 0-22.499 9.609-24.066 22.295a6.023 6.023 0 1011.956 1.477c.806-6.527 6.972-11.726 12.11-11.726 5.265 0 9.408 3.64 9.408 9.906 0 3.634-1.1 5.153-5.111 7.919l-1.362.93c-2.682 1.84-4.227 3.1-5.7 4.931-2.109 2.62-3.242 5.717-3.258 9.314.013.892.02 1.86.022 2.981a470.766 470.766 0 01-.022 4.943 6.023 6.023 0 1012.046.12l.003-.395zm-6.027 24.499a7.529 7.529 0 100-15.058 7.529 7.529 0 000 15.058z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/home-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/home-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-home-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M112.985 119.502c.01-.165.015-.331.015-.499V67.568c3.137 2.948 8.076 2.884 11.134-.174a7.999 7.999 0 00-.002-11.316L70.396 2.343A7.978 7.978 0 0064.734 0a7.957 7.957 0 00-5.656 2.343L33 28.42V8.007C33 3.585 29.41 0 25 0c-4.418 0-8 3.59-8 8.007V44.42L5.342 56.078c-3.125 3.125-3.12 8.198-.002 11.316a7.999 7.999 0 0011.316-.003l.344-.343v52.945a8.11 8.11 0 000 .007c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8a8.11 8.11 0 00-.015-.498zM97 112V51.574L64.737 19.31 33 51.048V112h64z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/import-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/import-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-import-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M114.832 60.436s3.235-3.27 6.921.417c3.686 3.686.231 7.14.231 7.14l-42.153 42.92s-30.765 32.367-58.798 4.333C-7 87.213 24.59 55.623 24.59 55.623L67.363 12.85s22.725-24.6 43.587-3.738c20.862 20.862-3.96 43.09-3.96 43.09l-35.04 35.04S49.903 112.546 36.426 99.07c-13.476-13.477 11.83-35.523 11.83-35.523l35.04-35.04s3.902-3.902 7.78-.023c3.879 3.878.118 7.921.118 7.921l-35.04 35.04s-13.212 13.212-8.872 17.551c4.34 4.34 16.77-9.653 16.77-9.653l35.04-35.04s16.668-14.598 3.966-27.3c-13.893-13.892-27.565 3.702-27.565 3.702l-42.91 42.91s-23.698 23.698-3.658 43.738 43.012-4.385 43.012-4.385l42.895-42.533z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/info-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/info-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-info-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot; transform=\&quot;translate(.05)\&quot;&gt;&lt;path d=\&quot;M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z\&quot;/&gt;&lt;circle cx=\&quot;64\&quot; cy=\&quot;32\&quot; r=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;16\&quot; height=\&quot;56\&quot; x=\&quot;56\&quot; y=\&quot;48\&quot; rx=\&quot;8\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/italic&quot;: {
&quot;title&quot;: &quot;$:/core/images/italic&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-italic tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M66.711 0h22.41L62.408 128H40z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/left-arrow&quot;: {
&quot;title&quot;: &quot;$:/core/images/left-arrow&quot;,
&quot;created&quot;: &quot;20150315234410875&quot;,
&quot;modified&quot;: &quot;20150315235324760&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-left-arrow tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M0 64.177c0-2.026.771-4.054 2.317-5.6l55.98-55.98a7.92 7.92 0 0111.195.001c3.086 3.085 3.092 8.104.001 11.195L19.111 64.175l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.086-8.105 3.092-11.196.001l-55.98-55.98A7.892 7.892 0 010 64.177z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/line-width&quot;: {
&quot;title&quot;: &quot;$:/core/images/line-width&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-line-width tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M16 18h96a2 2 0 000-4H16a2 2 0 100 4zm0 17h96a4 4 0 100-8H16a4 4 0 100 8zm0 21h96a6 6 0 000-12H16a6 6 0 100 12zm0 29h96c5.523 0 10-4.477 10-10s-4.477-10-10-10H16c-5.523 0-10 4.477-10 10s4.477 10 10 10zm0 43h96c8.837 0 16-7.163 16-16s-7.163-16-16-16H16c-8.837 0-16 7.163-16 16s7.163 16 16 16z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/link&quot;: {
&quot;title&quot;: &quot;$:/core/images/link&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-link tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M42.263 69.38a31.919 31.919 0 006.841 10.13c12.5 12.5 32.758 12.496 45.255 0l22.627-22.628c12.502-12.501 12.497-32.758 0-45.255-12.5-12.5-32.758-12.496-45.254 0L49.104 34.255a32.333 32.333 0 00-2.666 3.019 36.156 36.156 0 0121.94.334l14.663-14.663c6.25-6.25 16.382-6.254 22.632-.004 6.248 6.249 6.254 16.373-.004 22.631l-22.62 22.62c-6.25 6.25-16.381 6.254-22.631.004a15.93 15.93 0 01-4.428-8.433 11.948 11.948 0 00-7.59 3.48l-6.137 6.137z\&quot;/&gt;&lt;path d=\&quot;M86.35 59.234a31.919 31.919 0 00-6.84-10.13c-12.5-12.5-32.758-12.497-45.255 0L11.627 71.732c-12.501 12.5-12.496 32.758 0 45.254 12.5 12.5 32.758 12.497 45.255 0L79.51 94.36a32.333 32.333 0 002.665-3.02 36.156 36.156 0 01-21.94-.333l-14.663 14.663c-6.25 6.25-16.381 6.253-22.63.004-6.25-6.249-6.255-16.374.003-22.632l22.62-22.62c6.25-6.25 16.381-6.253 22.631-.003a15.93 15.93 0 014.428 8.432 11.948 11.948 0 007.59-3.48l6.137-6.136z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/linkify&quot;: {
&quot;title&quot;: &quot;$:/core/images/linkify&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-linkify-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M17.031 31.919H9.048V96.85h7.983v6.92H0V25h17.031v6.919zm24.66 0h-7.983V96.85h7.983v6.92H24.66V25h17.03v6.919zM67.77 56.422l11.975-3.903 2.306 7.096-12.063 3.903 7.628 10.379-6.12 4.435-7.63-10.467-7.45 10.2-5.943-4.523L58.1 63.518 45.95 59.35l2.306-7.096 12.064 4.17V43.825h7.45v12.596zM86.31 96.85h7.982V31.92H86.31V25h17.031v78.77H86.31v-6.92zm24.659 0h7.983V31.92h-7.983V25H128v78.77h-17.031v-6.92z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/list-bullet&quot;: {
&quot;title&quot;: &quot;$:/core/images/list-bullet&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-list-bullet tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M11.636 40.273c6.427 0 11.637-5.21 11.637-11.637C23.273 22.21 18.063 17 11.636 17 5.21 17 0 22.21 0 28.636c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.637 0-6.426-5.21-11.636-11.637-11.636C5.21 51.91 0 57.12 0 63.545c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.636 0-6.427-5.21-11.637-11.637-11.637C5.21 86.818 0 92.028 0 98.455c0 6.426 5.21 11.636 11.636 11.636zM34.91 22.818H128v11.637H34.91V22.818zm0 34.91H128v11.636H34.91V57.727zm0 34.908H128v11.637H34.91V92.636z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/list-number&quot;: {
&quot;title&quot;: &quot;$:/core/images/list-number&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-list-number tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M33.84 22.356H128v11.77H33.84v-11.77zm0 35.31H128v11.77H33.84v-11.77zm0 35.311H128v11.77H33.84v-11.77zM.38 42.631v-2.223h.998c.826 0 1.445-.14 1.858-.42.413-.28.619-.948.619-2.002V22.769c0-1.442-.193-2.336-.58-2.683-.385-.347-1.477-.52-3.275-.52v-2.143c3.502-.147 6.252-.955 8.25-2.423h2.117v22.865c0 .921.15 1.575.449 1.963.3.387.949.58 1.948.58h.998v2.223H.38zm-.3 35.356v-1.902c7.19-6.554 10.786-12.58 10.786-18.08 0-1.562-.326-2.81-.979-3.744-.652-.934-1.524-1.402-2.616-1.402-.893 0-1.655.317-2.287.952-.633.634-.95 1.364-.95 2.192 0 .974.247 1.829.74 2.563.106.16.16.28.16.36 0 .147-.16.28-.48.4-.213.08-.752.308-1.618.681-.839.374-1.358.561-1.558.561-.24 0-.512-.37-.819-1.111A6.2 6.2 0 010 57.064c0-1.949.849-3.544 2.547-4.785 1.698-1.242 3.798-1.862 6.302-1.862 2.463 0 4.53.67 6.202 2.012 1.67 1.341 2.506 3.093 2.506 5.256a8.644 8.644 0 01-.849 3.724c-.566 1.201-1.92 3.053-4.064 5.556a165.471 165.471 0 01-6.272 6.938h11.445l-1.019 5.726h-2.117c.08-.28.12-.534.12-.76 0-.388-.1-.631-.3-.731-.2-.1-.599-.15-1.198-.15H.08zm12.124 19.207c1.745.04 3.236.637 4.474 1.792 1.239 1.154 1.858 2.773 1.858 4.855 0 2.99-1.132 5.393-3.396 7.208-2.263 1.815-5 2.723-8.209 2.723-2.01 0-3.669-.384-4.974-1.151C.652 111.853 0 110.849 0 109.607c0-.774.27-1.398.809-1.872.54-.474 1.128-.71 1.768-.71.639 0 1.162.2 1.568.6.406.4.782 1.055 1.128 1.962.466 1.268 1.239 1.902 2.317 1.902 1.265 0 2.287-.477 3.066-1.431.78-.955 1.169-2.686 1.169-5.196 0-1.709-.12-3.023-.36-3.944-.24-.921-.792-1.382-1.658-1.382-.586 0-1.185.307-1.797.921-.493.494-.932.741-1.319.741-.333 0-.602-.147-.809-.44-.206-.294-.31-.574-.31-.841 0-.32.104-.594.31-.821.207-.227.69-.594 1.449-1.102 2.876-1.922 4.314-4.017 4.314-6.287 0-1.188-.306-2.092-.919-2.713a3.001 3.001 0 00-2.217-.93c-.799 0-1.525.263-2.177.79-.653.528-.979 1.158-.979 1.892 0 .641.253 1.235.76 1.782.172.2.259.367.259.5 0 .121-.57.428-1.708.922-1.139.494-1.854.74-2.147.74-.413 0-.75-.333-1.009-1-.26-.668-.39-1.282-.39-1.842 0-1.749.93-3.224 2.787-4.425 1.858-1.202 3.965-1.802 6.322-1.802 2.064 0 3.851.447 5.363 1.341 1.511.895 2.267 2.116 2.267 3.664 0 1.362-.57 2.623-1.708 3.784a13.387 13.387 0 01-3.945 2.784z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/list&quot;: {
&quot;title&quot;: &quot;$:/core/images/list&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-list tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M87.748 128H23.999c-4.418 0-7.999-3.59-7.999-8.007V8.007C16 3.585 19.588 0 24 0h80c4.419 0 8 3.59 8 8.007V104H91.25c-.965 0-1.84.392-2.473 1.025a3.476 3.476 0 00-1.029 2.476V128zm8-.12l15.88-15.88h-15.88v15.88zM40 15.508A3.502 3.502 0 0143.5 12h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 20h-55a3.498 3.498 0 01-3.5-3.509v-.982zM32 22a6 6 0 100-12 6 6 0 000 12zm8 9.509A3.502 3.502 0 0143.5 28h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 36h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 44h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 52h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 60h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 68h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 76h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 84h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 92h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 100h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.505 3.505 0 0143.497 108h33.006A3.497 3.497 0 0180 111.509v.982A3.505 3.505 0 0176.503 116H43.497A3.497 3.497 0 0140 112.491v-.982zM32 38a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/locked-padlock&quot;: {
&quot;title&quot;: &quot;$:/core/images/locked-padlock&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-locked-padlock tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M96.472 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h8c.003-15.723.303-47.731 32.16-47.731 31.794 0 32.305 32.057 32.312 47.731zm-15.897 0H48.44c.002-16.287.142-32 15.719-32 15.684 0 16.977 16.136 16.415 32zM67.732 92.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/mail&quot;: {
&quot;title&quot;: &quot;$:/core/images/mail&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-mail tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M122.827 104.894a7.986 7.986 0 01-2.834.516H8.007c-.812 0-1.597-.12-2.335-.345l34.163-34.163 20.842 20.842a3.998 3.998 0 003.418 1.134 4.003 4.003 0 003.395-1.134L88.594 70.64c.075.09.155.176.24.26l33.993 33.994zm5.076-6.237c.064-.406.097-.823.097-1.247v-64c0-.669-.082-1.318-.237-1.94L94.23 65.006c.09.075.177.154.261.239l33.413 33.413zm-127.698.56A8.023 8.023 0 010 97.41v-64c0-.716.094-1.41.271-2.071l33.907 33.906L.205 99.218zM5.93 25.684a8.012 8.012 0 012.078-.273h111.986c.766 0 1.507.108 2.209.308L64.083 83.837 5.93 25.683z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/menu-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/menu-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-menu-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;rect width=\&quot;128\&quot; height=\&quot;16\&quot; y=\&quot;16\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;128\&quot; height=\&quot;16\&quot; y=\&quot;56\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;128\&quot; height=\&quot;16\&quot; y=\&quot;96\&quot; rx=\&quot;8\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/mono-block&quot;: {
&quot;title&quot;: &quot;$:/core/images/mono-block&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-mono-block tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M23.965 32.967h.357c.755 0 1.328.192 1.72.577.39.384.586.947.586 1.688 0 .824-.206 1.418-.618 1.782-.413.363-1.094.545-2.045.545h-6.31c-.965 0-1.65-.178-2.056-.535-.405-.356-.608-.954-.608-1.792 0-.811.203-1.391.608-1.74.406-.35 1.09-.525 2.055-.525h.734l-.86-2.453H8.471l-.902 2.453h.734c.95 0 1.632.178 2.044.535.413.356.619.933.619 1.73 0 .824-.206 1.418-.619 1.782-.412.363-1.094.545-2.044.545h-5.41c-.964 0-1.649-.182-2.054-.545-.406-.364-.608-.958-.608-1.782 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.719-.577h.356l5.62-15.641H6.835c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.95-.619-1.76 0-.825.207-1.42.619-1.783.412-.363 1.094-.545 2.044-.545h7.863c1.244 0 2.118.67 2.62 2.013v.063l6.647 18.2zM12.98 17.326l-3.04 8.848h6.08l-3.04-8.848zm22.402 9.372v6.395h3.145c2.223 0 3.788-.245 4.697-.734.908-.49 1.362-1.307 1.362-2.453 0-1.16-.433-1.985-1.3-2.474-.866-.49-2.383-.734-4.55-.734h-3.354zm10.693-2.327c1.524.559 2.642 1.324 3.355 2.295.713.972 1.07 2.212 1.07 3.722 0 1.272-.308 2.432-.923 3.48-.615 1.049-1.496 1.909-2.642 2.58a7.499 7.499 0 01-2.254.849c-.832.174-2.01.262-3.533.262H30.202c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.782 0-.741.189-1.304.566-1.688.378-.385.93-.577 1.657-.577h.356V17.326h-.356c-.727 0-1.28-.196-1.657-.587-.377-.392-.566-.965-.566-1.72 0-.81.203-1.401.608-1.771.406-.37 1.062-.556 1.971-.556h9.645c2.95 0 5.19.573 6.72 1.72 1.53 1.145 2.296 2.823 2.296 5.031 0 1.09-.234 2.052-.703 2.883-.468.832-1.163 1.513-2.086 2.045zM35.381 17.2v5.284h2.83c1.72 0 2.932-.203 3.638-.609.706-.405 1.06-1.09 1.06-2.054 0-.909-.319-1.573-.955-1.992-.636-.42-1.667-.63-3.093-.63h-3.48zm35.863-3.816c.28-.503.566-.86.86-1.07.293-.21.664-.314 1.111-.314.685 0 1.17.182 1.457.545.287.364.43.986.43 1.866l.042 5.452c0 .964-.157 1.614-.472 1.95-.314.335-.884.503-1.709.503-.587 0-1.037-.14-1.352-.42-.314-.28-.584-.796-.807-1.551-.364-1.328-.944-2.282-1.74-2.862-.797-.58-1.901-.87-3.313-.87-2.153 0-3.802.727-4.948 2.18-1.147 1.454-1.72 3.558-1.72 6.311 0 2.74.58 4.844 1.74 6.311 1.16 1.468 2.817 2.202 4.97 2.202 1.467 0 3.085-.49 4.854-1.468 1.768-.978 2.883-1.467 3.344-1.467.545 0 1.003.23 1.373.692.37.46.556 1.034.556 1.719 0 1.23-1.084 2.39-3.25 3.48-2.167 1.09-4.606 1.636-7.318 1.636-3.662 0-6.625-1.21-8.89-3.627-2.264-2.419-3.396-5.578-3.396-9.478 0-3.76 1.146-6.884 3.438-9.372 2.293-2.488 5.2-3.732 8.723-3.732.992 0 1.97.112 2.935.335.964.224 1.992.574 3.082 1.049zm10.22 19.583V17.326h-.356c-.755 0-1.328-.196-1.72-.587-.39-.392-.586-.965-.586-1.72 0-.81.21-1.401.629-1.771.42-.37 1.097-.556 2.034-.556h5.178c2.922 0 5.06.126 6.416.377 1.356.252 2.51.671 3.46 1.258 1.691 1.007 2.988 2.443 3.89 4.31.9 1.865 1.352 4.021 1.352 6.467 0 2.586-.514 4.847-1.541 6.783-1.028 1.936-2.485 3.4-4.372 4.393-.853.447-1.852.772-2.998.975-1.147.203-2.852.304-5.116.304h-6.269c-.965 0-1.65-.178-2.055-.535-.406-.356-.608-.954-.608-1.792 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.72-.577h.356zm5.41-15.725v15.725h1.195c2.642 0 4.592-.646 5.85-1.94 1.258-1.292 1.887-3.28 1.887-5.965 0-2.641-.64-4.612-1.918-5.912-1.28-1.3-3.205-1.95-5.777-1.95-.335 0-.59.003-.765.01a7.992 7.992 0 00-.472.032zm35.067-.126h-9.75v5.368h3.69v-.252c0-.797.175-1.39.524-1.782.35-.392.88-.587 1.594-.587.629 0 1.142.178 1.54.534.4.357.598.808.598 1.353 0 .028.007.118.021.272.014.154.021.308.021.462v4.34c0 .936-.167 1.607-.503 2.013-.335.405-.88.608-1.635.608-.713 0-1.251-.19-1.615-.567-.363-.377-.545-.936-.545-1.677v-.377h-3.69v6.269h9.75v-2.495c0-.937.178-1.608.534-2.013.357-.405.94-.608 1.75-.608.798 0 1.367.2 1.71.597.342.399.513 1.073.513 2.024v5.074c0 .755-.146 1.258-.44 1.51-.293.251-.873.377-1.74.377h-17.172c-.923 0-1.583-.182-1.982-.545-.398-.364-.597-.958-.597-1.782 0-.741.189-1.304.566-1.688.377-.385.93-.577 1.656-.577h.357V17.326h-.357c-.712 0-1.261-.2-1.646-.598-.384-.398-.576-.968-.576-1.709 0-.81.203-1.401.608-1.771.405-.37 1.062-.556 1.97-.556h17.173c.853 0 1.43.13 1.73.388.3.258.45.772.45 1.54v4.698c0 .95-.174 1.631-.524 2.044-.35.412-.915.618-1.698.618-.81 0-1.394-.21-1.75-.629-.357-.419-.535-1.097-.535-2.033v-2.202zM19.77 47.641c.267-.504.55-.86.85-1.07.3-.21.675-.314 1.122-.314.685 0 1.17.181 1.457.545.287.363.43.985.43 1.866l.042 5.451c0 .965-.157 1.615-.472 1.95-.314.336-.891.504-1.73.504-.587 0-1.045-.144-1.373-.43-.329-.287-.598-.8-.807-1.541-.378-1.342-.958-2.3-1.74-2.873-.783-.573-1.88-.86-3.292-.86-2.153 0-3.799.727-4.938 2.181-1.14 1.454-1.709 3.557-1.709 6.311s.598 4.882 1.793 6.385C10.599 67.248 12.294 68 14.488 68c.503 0 1.077-.06 1.72-.179a23.809 23.809 0 002.264-.555v-3.313h-2.37c-.95 0-1.624-.175-2.023-.524-.398-.35-.597-.93-.597-1.74 0-.84.199-1.437.597-1.793.399-.357 1.073-.535 2.024-.535h7.569c.978 0 1.667.175 2.065.524.398.35.598.937.598 1.762 0 .74-.2 1.31-.598 1.708-.398.399-.975.598-1.73.598h-.335v5.242c0 .447-.05.758-.147.933-.098.174-.293.353-.587.534-.797.476-2.062.895-3.795 1.258a25.576 25.576 0 01-5.263.546c-3.662 0-6.625-1.21-8.89-3.628-2.264-2.418-3.397-5.577-3.397-9.477 0-3.76 1.147-6.884 3.44-9.372 2.292-2.488 5.199-3.732 8.721-3.732.979 0 1.954.112 2.925.335.972.224 2.003.573 3.093 1.049zm15.84 3.941v4.823h6.857v-4.823h-.336c-.754 0-1.331-.195-1.73-.587-.398-.391-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.364 1.093-.545 2.044-.545h5.41c.95 0 1.624.181 2.023.545.398.363.597.957.597 1.782 0 .755-.192 1.328-.576 1.72-.385.39-.947.586-1.688.586h-.357v15.642h.357c.755 0 1.328.192 1.719.576.391.385.587.947.587 1.688 0 .825-.203 1.419-.608 1.782-.405.364-1.09.546-2.055.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.2-1.303.598-1.688.398-.384.975-.576 1.73-.576h.335v-6.186h-6.856v6.186h.335c.755 0 1.331.192 1.73.576.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.412.364-1.094.546-2.044.546h-5.41c-.964 0-1.65-.179-2.055-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.392-.384.965-.576 1.72-.576h.356V51.582h-.356c-.741 0-1.304-.195-1.688-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.073-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.335zm31.754 0v15.642h3.523c.95 0 1.632.178 2.044.534.412.357.618.933.618 1.73 0 .811-.21 1.402-.629 1.772-.419.37-1.097.556-2.033.556H58.433c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.957-.619-1.782 0-.81.203-1.39.608-1.74.406-.35 1.09-.524 2.055-.524h3.523V51.582h-3.523c-.95 0-1.632-.181-2.044-.545-.412-.363-.619-.95-.619-1.761 0-.825.203-1.412.608-1.761.406-.35 1.09-.524 2.055-.524h12.455c.992 0 1.684.174 2.075.524.392.35.587.936.587 1.761 0 .81-.202 1.398-.608 1.761-.405.364-1.09.545-2.054.545h-3.523zm30.496 0v11.994c0 1.873-.122 3.228-.367 4.067a5.876 5.876 0 01-1.227 2.244c-.74.852-1.768 1.495-3.082 1.929-1.314.433-2.893.65-4.738.65-1.3 0-2.555-.126-3.764-.378a16.843 16.843 0 01-3.491-1.132c-.615-.28-1.017-.643-1.206-1.09-.188-.448-.283-1.175-.283-2.18v-4.32c0-1.202.175-2.04.525-2.516.349-.475.957-.713 1.824-.713 1.244 0 1.929.915 2.054 2.747.014.321.035.566.063.733.168 1.622.545 2.73 1.133 3.324.587.594 1.523.89 2.81.89 1.593 0 2.714-.422 3.364-1.268.65-.845.975-2.386.975-4.623V51.582H88.93c-.95 0-1.632-.181-2.044-.545-.413-.363-.619-.95-.619-1.761 0-.825.2-1.412.598-1.761.398-.35 1.086-.524 2.065-.524h10.693c.979 0 1.667.174 2.065.524.399.35.598.936.598 1.761 0 .81-.206 1.398-.619 1.761-.412.364-1.093.545-2.044.545h-1.761zm14.644 0v6.353l6.48-6.478c-.728-.084-1.238-.29-1.531-.619-.294-.328-.44-.85-.44-1.562 0-.825.198-1.419.597-1.782.398-.364 1.073-.545 2.023-.545h5.137c.95 0 1.625.181 2.023.545.399.363.598.957.598 1.782 0 .769-.2 1.345-.598 1.73-.398.384-.982.576-1.75.576h-.483l-6.101 6.06c1.132.839 2.167 1.94 3.103 3.302.937 1.363 2.034 3.456 3.292 6.28h.692c.825 0 1.44.188 1.845.566.405.377.608.943.608 1.698 0 .825-.206 1.419-.619 1.782-.412.364-1.093.546-2.044.546h-2.579c-1.132 0-2.048-.762-2.746-2.286-.126-.28-.224-.503-.294-.67-.923-1.958-1.768-3.467-2.537-4.53a16.616 16.616 0 00-2.705-2.914l-1.97 1.887v3.92h.335c.755 0 1.331.193 1.73.577.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.413.364-1.094.546-2.045.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.391-.384.965-.576 1.72-.576h.356V51.582h-.357c-.74 0-1.303-.195-1.687-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.072-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.336zM13.44 96.326l4.005-11.889c.251-.782.6-1.352 1.048-1.709.447-.356 1.041-.534 1.782-.534h3.271c.95 0 1.632.182 2.044.545.413.363.619.957.619 1.782 0 .755-.2 1.328-.598 1.72-.398.39-.975.587-1.73.587h-.335l.587 15.641h.357c.754 0 1.32.192 1.698.577.377.384.566.947.566 1.687 0 .825-.2 1.42-.598 1.783-.398.363-1.072.545-2.023.545h-4.718c-.95 0-1.624-.178-2.023-.535-.398-.356-.597-.954-.597-1.793 0-.74.192-1.303.576-1.687.385-.385.954-.577 1.709-.577h.335l-.293-12.79-3.061 9.52c-.224.712-.542 1.226-.954 1.54-.413.315-.982.472-1.709.472-.727 0-1.303-.157-1.73-.472-.426-.314-.751-.828-.975-1.54l-3.04-9.52-.294 12.79h.336c.755 0 1.324.192 1.709.577.384.384.576.947.576 1.687 0 .825-.202 1.42-.608 1.783-.405.363-1.076.545-2.013.545H2.621c-.937 0-1.608-.182-2.013-.545-.405-.364-.608-.958-.608-1.783 0-.74.192-1.303.577-1.687.384-.385.954-.577 1.708-.577h.336l.608-15.641h-.336c-.754 0-1.331-.196-1.73-.588-.398-.39-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.363 1.093-.545 2.044-.545h3.27c.728 0 1.311.175 1.752.524.44.35.8.923 1.08 1.72l4.109 11.888zm30.454 2.054V86.828H42.74c-.922 0-1.583-.182-1.981-.546-.398-.363-.598-.95-.598-1.76 0-.812.2-1.402.598-1.773.398-.37 1.059-.555 1.981-.555h5.955c.909 0 1.566.185 1.97.555.406.37.609.961.609 1.772 0 .741-.192 1.31-.577 1.709-.384.398-.933.598-1.646.598h-.356v19.038c0 .657-.07 1.069-.21 1.237-.14.167-.454.251-.943.251h-2.097c-.67 0-1.143-.07-1.415-.21-.273-.14-.507-.384-.703-.733l-8.722-15.327v11.385h1.216c.909 0 1.559.175 1.95.524.392.35.587.93.587 1.74 0 .825-.199 1.42-.597 1.783-.399.363-1.045.545-1.94.545h-6.017c-.909 0-1.566-.182-1.971-.545-.406-.364-.608-.958-.608-1.783 0-.74.188-1.303.566-1.687.377-.385.936-.577 1.677-.577h.336V86.828h-.336c-.713 0-1.265-.2-1.656-.598-.392-.398-.587-.968-.587-1.709 0-.81.206-1.401.618-1.772.413-.37 1.066-.555 1.96-.555h3.44c.824 0 1.383.108 1.677.325.293.216.622.653.985 1.31l7.989 14.551zM64.66 86.366c-1.803 0-3.218.727-4.245 2.18-1.028 1.455-1.541 3.474-1.541 6.06 0 2.586.517 4.613 1.551 6.08 1.034 1.468 2.446 2.202 4.235 2.202 1.804 0 3.222-.73 4.257-2.19 1.034-1.461 1.551-3.492 1.551-6.092 0-2.586-.513-4.605-1.54-6.06-1.028-1.453-2.45-2.18-4.268-2.18zm0-4.864c3.44 0 6.27 1.23 8.492 3.69 2.223 2.46 3.334 5.598 3.334 9.414 0 3.844-1.104 6.99-3.313 9.436-2.208 2.446-5.046 3.669-8.513 3.669-3.424 0-6.255-1.234-8.491-3.701-2.237-2.467-3.355-5.602-3.355-9.404 0-3.83 1.108-6.971 3.323-9.424 2.216-2.454 5.057-3.68 8.523-3.68zM87.461 98.17v4.298h2.16c.908 0 1.555.175 1.94.524.384.35.576.93.576 1.74 0 .825-.196 1.42-.587 1.783-.392.363-1.035.545-1.93.545h-7.254c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.783 0-.74.189-1.303.566-1.687.378-.385.93-.577 1.657-.577h.356V86.828h-.356c-.713 0-1.262-.2-1.646-.598-.385-.398-.577-.968-.577-1.709 0-.81.203-1.401.608-1.772.406-.37 1.063-.555 1.971-.555h8.66c3.424 0 6.014.657 7.768 1.97 1.754 1.315 2.631 3.25 2.631 5.809 0 2.697-.873 4.738-2.62 6.122-1.748 1.384-4.34 2.076-7.78 2.076h-3.564zm0-11.343v6.625h2.977c1.65 0 2.89-.28 3.722-.839.832-.559 1.248-1.397 1.248-2.516 0-1.048-.43-1.855-1.29-2.421-.86-.566-2.086-.85-3.68-.85h-2.977zm27.267 20.568l-1.636 1.636a12.37 12.37 0 011.772-.44c.58-.098 1.15-.147 1.709-.147 1.104 0 2.268.164 3.491.492 1.223.329 1.967.493 2.233.493.447 0 1.03-.15 1.75-.45.72-.301 1.206-.452 1.458-.452.517 0 .947.2 1.29.598.342.398.513.898.513 1.5 0 .796-.472 1.474-1.415 2.033-.944.56-2.1.839-3.47.839-.937 0-2.139-.22-3.607-.66-1.467-.441-2.53-.661-3.187-.661-.992 0-2.11.272-3.354.817-1.244.546-2.013.818-2.307.818a2.14 2.14 0 01-1.53-.597c-.42-.399-.63-.878-.63-1.437 0-.391.134-.807.4-1.247.265-.44.733-1.01 1.404-1.709l2.118-2.139c-2.335-.852-4.194-2.386-5.578-4.602-1.384-2.215-2.075-4.763-2.075-7.642 0-3.802 1.104-6.909 3.312-9.32 2.209-2.411 5.053-3.617 8.534-3.617 3.467 0 6.304 1.209 8.513 3.627 2.208 2.418 3.312 5.522 3.312 9.31 0 3.774-1.097 6.884-3.291 9.33-2.195 2.446-4.977 3.67-8.345 3.67a22.5 22.5 0 01-1.384-.043zm1.195-21.03c-1.803 0-3.218.727-4.246 2.18-1.027 1.455-1.54 3.474-1.54 6.06 0 2.586.516 4.613 1.55 6.08 1.035 1.468 2.447 2.202 4.236 2.202 1.803 0 3.222-.73 4.256-2.19 1.035-1.461 1.552-3.492 1.552-6.092 0-2.586-.514-4.605-1.541-6.06-1.028-1.453-2.45-2.18-4.267-2.18z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/mono-line&quot;: {
&quot;title&quot;: &quot;$:/core/images/mono-line&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-mono-line tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M60.437 84.523h.908c1.922 0 3.381.489 4.378 1.468.997.979 1.495 2.411 1.495 4.298 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388h-16.07c-2.456 0-4.2-.454-5.232-1.361-1.032-.908-1.548-2.43-1.548-4.565 0-2.065.516-3.542 1.548-4.432 1.032-.89 2.776-1.334 5.232-1.334h1.869l-2.19-6.247H20.983l-2.296 6.247h1.87c2.42 0 4.155.453 5.205 1.361 1.05.908 1.575 2.376 1.575 4.405 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388H6.781c-2.456 0-4.2-.463-5.233-1.388C.516 93.9 0 92.389 0 90.289c0-1.887.498-3.32 1.495-4.298.997-.979 2.456-1.468 4.378-1.468h.908l14.308-39.83h-4.271c-2.42 0-4.156-.462-5.206-1.387-1.05-.926-1.575-2.42-1.575-4.485 0-2.1.525-3.613 1.575-4.538 1.05-.926 2.785-1.388 5.206-1.388h20.021c3.168 0 5.392 1.708 6.674 5.125v.16l16.924 46.343zm-27.976-39.83L24.72 67.225h15.483l-7.742-22.53zM89.506 68.56v16.284h8.008c5.66 0 9.646-.623 11.96-1.869 2.313-1.245 3.47-3.328 3.47-6.246 0-2.955-1.103-5.055-3.31-6.3-2.207-1.246-6.069-1.869-11.586-1.869h-8.542zm27.229-5.926c3.88 1.423 6.727 3.372 8.542 5.846 1.815 2.474 2.723 5.633 2.723 9.477 0 3.239-.783 6.193-2.35 8.862-1.565 2.67-3.808 4.859-6.726 6.567-1.709.997-3.622 1.718-5.74 2.163-2.118.445-5.116.667-8.996.667h-27.87c-2.349 0-4.03-.463-5.045-1.388-1.014-.926-1.521-2.438-1.521-4.538 0-1.887.48-3.32 1.441-4.298.961-.979 2.367-1.468 4.218-1.468h.907v-39.83h-.907c-1.851 0-3.257-.498-4.218-1.494-.961-.997-1.441-2.456-1.441-4.378 0-2.065.516-3.568 1.548-4.512 1.032-.943 2.705-1.414 5.018-1.414h24.56c7.51 0 13.214 1.459 17.111 4.377 3.898 2.92 5.847 7.19 5.847 12.814 0 2.776-.597 5.223-1.789 7.341-1.192 2.118-2.963 3.853-5.312 5.206zm-27.23-18.26v13.455h7.208c4.378 0 7.466-.516 9.264-1.549 1.797-1.032 2.696-2.776 2.696-5.232 0-2.313-.81-4.004-2.43-5.072-1.619-1.068-4.244-1.602-7.874-1.602h-8.863z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/new-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/new-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-new-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M56 72H8.007C3.591 72 0 68.418 0 64c0-4.41 3.585-8 8.007-8H56V8.007C56 3.591 59.582 0 64 0c4.41 0 8 3.585 8 8.007V56h47.993c4.416 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H72v47.993c0 4.416-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V72z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/new-here-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/new-here-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-new-here-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M55.838 20.935l-3.572.938c-3.688.968-8.23 4.43-10.136 7.731L3.37 96.738c-1.905 3.3-.771 7.524 2.534 9.432l33.717 19.466c3.297 1.904 7.53.78 9.435-2.521l38.76-67.134c1.905-3.3 2.632-8.963 1.623-12.646L83.285 20.88c-1.009-3.68-4.821-5.884-8.513-4.915l-7.603 1.995.043.287c.524 3.394 2.053 7.498 4.18 11.55.418.163.829.36 1.23.59a8.864 8.864 0 014.438 8.169c.104.132.21.264.316.395l-.386.318a8.663 8.663 0 01-1.082 3.137c-2.42 4.192-7.816 5.608-12.051 3.163-4.12-2.379-5.624-7.534-3.476-11.671-2.177-4.394-3.788-8.874-4.543-12.964z\&quot;/&gt;&lt;path d=\&quot;M69.554 44.76c-5.944-7.476-10.74-17.196-11.955-25.059-1.68-10.875 3.503-18.216 15.082-18.04 10.407.158 19.975 5.851 24.728 13.785 5.208 8.695 2.95 17.868-6.855 20.496l-2.037-7.601c4.232-1.134 4.999-4.248 2.24-8.853-3.37-5.626-10.465-9.848-18.146-9.965-6.392-.097-8.31 2.62-7.323 9.01.999 6.465 5.318 15.138 10.582 21.65l-.072.06c.559 1.553-4.17 6.44-5.938 4.888l-.005.004-.028-.034a1.323 1.323 0 01-.124-.135 2.618 2.618 0 01-.149-.205z\&quot;/&gt;&lt;rect width=\&quot;16\&quot; height=\&quot;48\&quot; x=\&quot;96\&quot; y=\&quot;80\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;48\&quot; height=\&quot;16\&quot; x=\&quot;80\&quot; y=\&quot;96\&quot; rx=\&quot;8\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/new-image-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/new-image-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-new-image-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M81.362 73.627l15.826-27.41a2.626 2.626 0 00-.962-3.59l-50.01-28.872a2.626 2.626 0 00-3.588.961L30.058 36.49l10.04-5.261c3.042-1.595 6.771.114 7.55 3.46l3.607 17.702 9.88.85a5.25 5.25 0 014.571 3.77c.034.115.1.344.199.671.165.553.353 1.172.562 1.843.595 1.914 1.23 3.85 1.872 5.678.207.588.412 1.156.614 1.701.625 1.685 1.209 3.114 1.725 4.207.255.54.485.977.726 1.427.214.212.547.425 1.011.622 1.141.482 2.784.74 4.657.758.864.008 1.71-.034 2.492-.11.448-.043.753-.085.871-.104.315-.053.625-.077.927-.076zM37.47 2.649A5.257 5.257 0 0144.649.725l63.645 36.746a5.257 5.257 0 011.923 7.178L73.47 108.294a5.257 5.257 0 01-7.177 1.923L2.649 73.47a5.257 5.257 0 01-1.924-7.177L37.471 2.649zm42.837 50.49a5.25 5.25 0 105.25-9.092 5.25 5.25 0 00-5.25 9.093zM96 112h-7.993c-4.419 0-8.007-3.582-8.007-8 0-4.41 3.585-8 8.007-8H96v-7.993C96 83.588 99.582 80 104 80c4.41 0 8 3.585 8 8.007V96h7.993c4.419 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H112v7.993c0 4.419-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V112zM33.347 51.791c7.428 7.948 9.01 10.69 7.449 13.394-1.56 2.703-13.838-2.328-16.094 1.58-2.256 3.908-.907 3.258-2.437 5.908l19.73 11.39s-5.605-8.255-4.235-10.628c2.515-4.356 8.77-1.256 10.365-4.019 2.414-4.181-5.103-9.639-14.778-17.625z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/new-journal-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/new-journal-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-new-journal-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M102.545 112.818v11.818c0 1.306 1.086 2.364 2.425 2.364h6.06c1.34 0 2.425-1.058 2.425-2.364v-11.818h12.12c1.34 0 2.425-1.058 2.425-2.363v-5.91c0-1.305-1.085-2.363-2.424-2.363h-12.121V90.364c0-1.306-1.086-2.364-2.425-2.364h-6.06c-1.34 0-2.425 1.058-2.425 2.364v11.818h-12.12c-1.34 0-2.425 1.058-2.425 2.363v5.91c0 1.305 1.085 2.363 2.424 2.363h12.121zM60.016 4.965c-4.781-2.76-10.897-1.118-13.656 3.66L5.553 79.305A9.993 9.993 0 009.21 92.963l51.04 29.468c4.78 2.76 10.897 1.118 13.655-3.66l40.808-70.681a9.993 9.993 0 00-3.658-13.656L60.016 4.965zm-3.567 27.963a6 6 0 106-10.393 6 6 0 00-6 10.393zm31.697 17.928a6 6 0 106-10.392 6 6 0 00-6 10.392z\&quot;/&gt;&lt;text class=\&quot;tc-fill-background\&quot; font-family=\&quot;Helvetica\&quot; font-size=\&quot;47.172\&quot; font-weight=\&quot;bold\&quot; transform=\&quot;rotate(30 25.742 95.82)\&quot;&gt;&lt;tspan x=\&quot;42\&quot; y=\&quot;77.485\&quot; text-anchor=\&quot;middle\&quot;&gt;&lt;&lt;now \&quot;DD\&quot;&gt;&gt;&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/opacity&quot;: {
&quot;title&quot;: &quot;$:/core/images/opacity&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-opacity tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M102.362 65a51.595 51.595 0 01-1.942 6H82.584a35.867 35.867 0 002.997-6h16.78zm.472-2c.423-1.961.734-3.963.929-6H87.656a35.78 35.78 0 01-1.368 6h16.546zm-3.249 10a51.847 51.847 0 01-3.135 6H75.812a36.205 36.205 0 005.432-6h18.341zm-4.416 8c-1.424 2.116-3 4.12-4.71 6H60.46a35.843 35.843 0 0012.874-6h21.834zm-7.513-34h16.107C101.247 20.627 79.033 0 52 0 23.281 0 0 23.281 0 52c0 25.228 17.965 46.26 41.8 51h20.4a51.66 51.66 0 0015.875-6H39v-2h42.25a52.257 52.257 0 007.288-6H39v-2h4.539C27.739 83.194 16 68.968 16 52c0-19.882 16.118-36 36-36 18.186 0 33.222 13.484 35.656 31zm.22 2h16.039a52.823 52.823 0 010 6H87.877a36.483 36.483 0 000-6z\&quot;/&gt;&lt;path d=\&quot;M76 128c28.719 0 52-23.281 52-52s-23.281-52-52-52-52 23.281-52 52 23.281 52 52 52zm0-16c19.882 0 36-16.118 36-36S95.882 40 76 40 40 56.118 40 76s16.118 36 36 36z\&quot;/&gt;&lt;path d=\&quot;M37 58h53v4H37v-4zm3-8h53v4H40v-4zm0-8h53v4H40v-4zm-8 24h53v4H32v-4zm-2 8h53v4H30v-4zm-3 8h53v4H27v-4z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/open-window&quot;: {
&quot;title&quot;: &quot;$:/core/images/open-window&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-open-window tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M16 112h88.994c3.87 0 7.006 3.59 7.006 8 0 4.418-3.142 8-7.006 8H7.006C3.136 128 0 124.41 0 120a9.321 9.321 0 010-.01V24.01C0 19.586 3.59 16 8 16c4.418 0 8 3.584 8 8.01V112z\&quot;/&gt;&lt;path d=\&quot;M96 43.196V56a8 8 0 1016 0V24c0-4.41-3.585-8-8.007-8H72.007C67.588 16 64 19.582 64 24c0 4.41 3.585 8 8.007 8H84.57l-36.3 36.299a8 8 0 00-.001 11.316c3.117 3.117 8.19 3.123 11.316-.003L96 43.196zM32 7.999C32 3.581 35.588 0 40 0h80c4.419 0 8 3.588 8 8v80c0 4.419-3.588 8-8 8H40c-4.419 0-8-3.588-8-8V8z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/options-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/options-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-options-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M110.488 76a47.712 47.712 0 01-5.134 12.384l6.724 6.724c3.123 3.123 3.132 8.192.011 11.313l-5.668 5.668c-3.12 3.12-8.186 3.117-11.313-.01l-6.724-6.725c-3.82 2.258-7.98 4-12.384 5.134v9.505c0 4.417-3.578 8.007-7.992 8.007h-8.016C55.58 128 52 124.415 52 119.993v-9.505a47.712 47.712 0 01-12.384-5.134l-6.724 6.725c-3.123 3.122-8.192 3.131-11.313.01l-5.668-5.668c-3.12-3.12-3.116-8.186.01-11.313l6.725-6.724c-2.257-3.82-4-7.98-5.134-12.384H8.007C3.591 76 0 72.422 0 68.01v-8.017C0 55.58 3.585 52 8.007 52h9.505a47.712 47.712 0 015.134-12.383l-6.724-6.725c-3.123-3.122-3.132-8.191-.011-11.312l5.668-5.669c3.12-3.12 8.186-3.116 11.313.01l6.724 6.725c3.82-2.257 7.98-4 12.384-5.134V8.007C52 3.591 55.578 0 59.992 0h8.016C72.42 0 76 3.585 76 8.007v9.505a47.712 47.712 0 0112.384 5.134l6.724-6.724c3.123-3.123 8.192-3.132 11.313-.01l5.668 5.668c3.12 3.12 3.116 8.186-.01 11.312l-6.725 6.725c2.257 3.82 4 7.979 5.134 12.383h9.505c4.416 0 8.007 3.578 8.007 7.992v8.017c0 4.411-3.585 7.991-8.007 7.991h-9.505zM64 96c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/paint&quot;: {
&quot;title&quot;: &quot;$:/core/images/paint&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-paint tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M83.527 76.19C90.43 69.287 91.892 59 87.91 50.665l37.903-37.902c2.919-2.92 2.913-7.659 0-10.572a7.474 7.474 0 00-10.572 0L77.338 40.093c-8.335-3.982-18.622-2.521-25.526 4.383l31.715 31.715zm-2.643 2.644L49.169 47.119S8.506 81.243 0 80.282c0 0 3.782 5.592 6.827 8.039 14.024-5.69 37.326-24.6 37.326-24.6l.661.66S19.45 90.222 9.18 92.047c1.222 1.44 4.354 4.053 6.247 5.776 5.417-1.488 34.733-28.57 34.733-28.57l.661.66-32.407 31.022 5.285 5.286L56.106 75.2l.662.66s-27.864 30.536-28.684 32.432c0 0 6.032 6.853 7.569 7.824.702-2.836 27.884-33.485 27.884-33.485l.661.66s-20.597 23.755-24.964 36.732c3.21 3.549 7.5 5.137 10.926 6.298-2.19-11.817 30.724-47.487 30.724-47.487z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/palette&quot;: {
&quot;title&quot;: &quot;$:/core/images/palette&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-palette tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M80.247 39.182a93.52 93.52 0 00-16.228-1.4C28.662 37.781 0 57.131 0 81.002c0 9.642 4.676 18.546 12.58 25.735C23.504 91.19 26.34 72.395 36.89 63.562c15.183-12.713 26.538-7.828 26.538-7.828l16.82-16.552zm26.535 9.655c13.049 7.913 21.257 19.392 21.257 32.166 0 9.35.519 17.411-11.874 25.08-10.797 6.681-3.824-6.536-11.844-10.898s-19.946 1.308-18.213 7.906c3.2 12.181 19.422 11.455 6.314 16.658-13.107 5.202-18.202 4.476-28.403 4.476-7.821 0-15.315-.947-22.243-2.68 9.844-4.197 27.88-12.539 33.354-19.456C82.788 92.409 87.37 80 83.324 72.484c-.194-.359 11.215-11.668 23.458-23.647zM1.134 123.867l-.66.002c33.479-14.94 22.161-64.226 58.818-64.226.317 1.418.644 2.944 1.062 4.494-25.907-4.166-23.567 48.031-59.22 59.73zm.713-.007c38.872-.506 78.152-22.347 78.152-44.813-9.27 0-14.073-3.48-16.816-7.942-16.597-7.003-30.365 45.715-61.336 52.755zm65.351-64.008c-4.45 4.115 4.886 16.433 11.318 11.318l45.27-45.27c11.317-11.318 0-22.635-11.318-11.318-11.317 11.318-33.518 34.405-45.27 45.27z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/permalink-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/permalink-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-permalink-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M80.483 48l-7.387 32h-25.58l7.388-32h25.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L100.598 32h3.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-7.096l-7.387 32H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H85.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L69.402 96h-25.58L38.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L27.402 96h-3.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h7.096l7.387-32H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h18.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L58.598 32h25.58z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/permaview-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/permaview-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-permaview-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M81.483 48l-1.846 8h-5.58l1.847-8h5.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L101.598 32h2.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-6.096l-1.847 8h7.944c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H92.364l-1.846 8H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H86.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L70.402 96h-5.58L59.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L48.402 96h-5.58L37.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L26.402 96h-2.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h6.096l1.847-8h-7.944C19.59 72 16 68.418 16 64c0-4.41 3.581-8 8-8h11.637l1.846-8H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h17.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L57.598 32h5.58L68.8 7.642c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L79.598 32h5.58zM53.904 48l-1.847 8h5.58l1.846-8h-5.579zm22.039 24l-1.847 8h-5.58l1.847-8h5.58zm-27.58 0l-1.846 8h5.579l1.847-8h-5.58z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/picture&quot;: {
&quot;title&quot;: &quot;$:/core/images/picture&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-picture tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M112 68.233v-48.23A4.001 4.001 0 00107.997 16H20.003A4.001 4.001 0 0016 20.003v38.31l9.241-14.593c2.8-4.422 9.023-5.008 12.6-1.186l18.247 20.613 13.687-6.407a8 8 0 018.903 1.492 264.97 264.97 0 002.92 2.739 249.44 249.44 0 006.798 6.066 166.5 166.5 0 002.106 1.778c2.108 1.747 3.967 3.188 5.482 4.237.748.518 1.383.92 2.044 1.33.444.117 1.046.144 1.809.05 1.873-.233 4.238-1.144 6.723-2.547a36.016 36.016 0 003.205-2.044c.558-.4.93-.686 1.07-.802.376-.31.765-.577 1.165-.806zM0 8.007A8.01 8.01 0 018.007 0h111.986A8.01 8.01 0 01128 8.007v111.986a8.01 8.01 0 01-8.007 8.007H8.007A8.01 8.01 0 010 119.993V8.007zM95 42a8 8 0 100-16 8 8 0 000 16zM32 76c15.859 4.83 20.035 7.244 20.035 12S32 95.471 32 102.347c0 6.876 1.285 4.99 1.285 9.653H68s-13.685-6.625-13.685-10.8c0-7.665 10.615-8.34 10.615-13.2 0-7.357-14.078-8.833-32.93-12z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/plugin-generic-language&quot;: {
&quot;title&quot;: &quot;$:/core/images/plugin-generic-language&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M61.207 68.137c-4.324 2.795-6.999 6.656-6.999 10.921 0 7.906 9.19 14.424 21.042 15.336 2.162 3.902 8.598 6.785 16.318 7.01-5.126-1.125-9.117-3.742-10.62-7.01C92.805 93.487 102 86.967 102 79.059c0-8.53-10.699-15.445-23.896-15.445-6.599 0-12.572 1.729-16.897 4.524zm12.794-14.158c-4.324 2.795-10.298 4.524-16.897 4.524-2.619 0-5.14-.272-7.497-.775-3.312 2.25-8.383 3.69-14.067 3.69l-.255-.002c4.119-.892 7.511-2.747 9.478-5.13-6.925-2.704-11.555-7.617-11.555-13.228 0-8.53 10.699-15.445 23.896-15.445C70.301 27.613 81 34.528 81 43.058c0 4.265-2.675 8.126-6.999 10.921zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/plugin-generic-plugin&quot;: {
&quot;title&quot;: &quot;$:/core/images/plugin-generic-plugin&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M40.397 76.446V95.34h14.12l-.001-.005a6.912 6.912 0 005.364-11.593l.046-.023a6.912 6.912 0 119.979.526l.086.055a6.914 6.914 0 004.408 10.948l-.023.092h21.32V75.568l-.15.038a6.912 6.912 0 00-11.593-5.364l-.022-.046a6.912 6.912 0 11.526-9.979l.055-.086a6.914 6.914 0 0010.948-4.408c.079.018.158.038.236.059v-15.74h-21.32l.023-.094a6.914 6.914 0 01-4.408-10.947 10.23 10.23 0 00-.086-.055 6.912 6.912 0 10-9.979-.526l-.046.023a6.912 6.912 0 01-5.364 11.593l.001.005h-14.12v12.847A6.912 6.912 0 0129.5 59.843l-.054.086a6.912 6.912 0 10-.526 9.979l.023.046a6.912 6.912 0 0111.455 6.492zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/plugin-generic-theme&quot;: {
&quot;title&quot;: &quot;$:/core/images/plugin-generic-theme&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M29.408 91.472L51.469 69.41l-.004-.005a2.22 2.22 0 01.004-3.146c.87-.87 2.281-.872 3.147-.005l9.465 9.464a2.22 2.22 0 01-.005 3.147c-.87.87-2.28.871-3.147.005l-.005-.005-22.061 22.062a6.686 6.686 0 11-9.455-9.455zM60.802 66.38c-2.436-2.704-4.465-5.091-5.817-6.869-6.855-9.014-10.313-4.268-14.226 0-3.913 4.268 1.03 7.726-2.683 10.741-3.713 3.015-3.484 4.06-9.752-1.455-6.267-5.516-6.7-7.034-3.823-10.181 2.877-3.147 5.281 1.808 11.159-3.785 5.877-5.593.94-10.55.94-10.55s12.237-25.014 28.588-23.167c16.351 1.848-6.186-2.392-11.792 17.226-2.4 8.4.447 6.42 4.998 9.968 1.394 1.086 6.03 4.401 11.794 8.685l20.677-20.676 1.615-4.766 7.84-4.689 3.151 3.152-4.688 7.84-4.766 1.615-20.224 20.223c12.663 9.547 28.312 22.146 28.312 26.709 0 7.217-3.071 11.526-9.535 9.164-4.693-1.715-18.768-15.192-28.753-25.897l-2.893 2.893-3.151-3.152 3.029-3.029zM63.953 0l54.56 32v64l-54.56 32-54.56-32V32l54.56-32z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/preview-closed&quot;: {
&quot;title&quot;: &quot;$:/core/images/preview-closed&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-preview-closed tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M.088 64a7.144 7.144 0 001.378 5.458C16.246 88.818 39.17 100.414 64 100.414c24.83 0 47.753-11.596 62.534-30.956A7.144 7.144 0 00127.912 64C110.582 78.416 88.304 87.086 64 87.086 39.696 87.086 17.418 78.416.088 64z\&quot;/&gt;&lt;rect width=\&quot;4\&quot; height=\&quot;16\&quot; x=\&quot;62\&quot; y=\&quot;96\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;4\&quot; height=\&quot;16\&quot; x=\&quot;78\&quot; y=\&quot;93\&quot; rx=\&quot;4\&quot; transform=\&quot;rotate(-5 80 101)\&quot;/&gt;&lt;rect width=\&quot;4\&quot; height=\&quot;16\&quot; x=\&quot;46\&quot; y=\&quot;93\&quot; rx=\&quot;4\&quot; transform=\&quot;rotate(5 48 101)\&quot;/&gt;&lt;rect width=\&quot;4\&quot; height=\&quot;16\&quot; x=\&quot;30\&quot; y=\&quot;88\&quot; rx=\&quot;4\&quot; transform=\&quot;rotate(10 32 96)\&quot;/&gt;&lt;rect width=\&quot;4\&quot; height=\&quot;16\&quot; x=\&quot;94\&quot; y=\&quot;88\&quot; rx=\&quot;4\&quot; transform=\&quot;rotate(-10 96 96)\&quot;/&gt;&lt;rect width=\&quot;4\&quot; height=\&quot;16\&quot; x=\&quot;110\&quot; y=\&quot;80\&quot; rx=\&quot;4\&quot; transform=\&quot;rotate(-20 112 88)\&quot;/&gt;&lt;rect width=\&quot;4\&quot; height=\&quot;16\&quot; x=\&quot;14\&quot; y=\&quot;80\&quot; rx=\&quot;4\&quot; transform=\&quot;rotate(20 16 88)\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/preview-open&quot;: {
&quot;title&quot;: &quot;$:/core/images/preview-open&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-preview-open tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M64.11 99.588c-24.83 0-47.754-11.596-62.534-30.957a7.148 7.148 0 010-8.675C16.356 40.596 39.28 29 64.11 29c24.83 0 47.753 11.596 62.534 30.956a7.148 7.148 0 010 8.675c-14.78 19.36-37.703 30.957-62.534 30.957zm46.104-32.007c1.44-1.524 1.44-3.638 0-5.162C99.326 50.9 82.439 44 64.147 44S28.968 50.9 18.08 62.42c-1.44 1.523-1.44 3.637 0 5.16C28.968 79.1 45.855 86 64.147 86s35.179-6.9 46.067-18.42z\&quot;/&gt;&lt;path d=\&quot;M63.5 88C76.479 88 87 77.479 87 64.5S76.479 41 63.5 41 40 51.521 40 64.5 50.521 88 63.5 88z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/print-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/print-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-print-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M112 71V30.5h-.032c-.035-2-.816-3.99-2.343-5.516L86.998 2.357A7.978 7.978 0 0081 .02V0H24a8 8 0 00-8 8v63h8V8h57v14.5c0 4.422 3.582 8 8 8h15V71h8z\&quot;/&gt;&lt;rect width=\&quot;64\&quot; height=\&quot;8\&quot; x=\&quot;32\&quot; y=\&quot;36\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;64\&quot; height=\&quot;8\&quot; x=\&quot;32\&quot; y=\&quot;52\&quot; rx=\&quot;4\&quot;/&gt;&lt;rect width=\&quot;40\&quot; height=\&quot;8\&quot; x=\&quot;32\&quot; y=\&quot;20\&quot; rx=\&quot;4\&quot;/&gt;&lt;path d=\&quot;M0 80.005C0 71.165 7.156 64 16 64h96c8.836 0 16 7.155 16 16.005v31.99c0 8.84-7.156 16.005-16 16.005H16c-8.836 0-16-7.155-16-16.005v-31.99zM104 96a8 8 0 100-16 8 8 0 000 16z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/quote&quot;: {
&quot;title&quot;: &quot;$:/core/images/quote&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-quote tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M51.219 117.713V62.199H27.427c0-8.891 1.683-16.401 5.047-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.36 3.184-20.728 6.669-6.368 3.484-11.835 7.87-16.401 13.157C9.524 27.113 5.98 33.241 3.456 40.21.933 47.18-.21 54.63.03 62.56v55.153H51.22zm76.781 0V62.199h-23.791c0-8.891 1.682-16.401 5.046-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.359 3.184-20.727 6.669-6.369 3.484-11.836 7.87-16.402 13.157-4.566 5.287-8.11 11.415-10.634 18.384-2.523 6.97-3.665 14.42-3.424 22.35v55.153H128z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/refresh-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/refresh-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-refresh-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M106.369 39.433c10.16 20.879 6.57 46.764-10.771 64.106-21.87 21.87-57.327 21.87-79.196 0-21.87-21.87-21.87-57.326 0-79.196a8 8 0 1111.314 11.314c-15.621 15.62-15.621 40.947 0 56.568 15.62 15.621 40.947 15.621 56.568 0C97.72 78.79 99.6 58.175 89.924 42.73l-6.44 12.264a8 8 0 11-14.166-7.437L84.435 18.76a8 8 0 0110.838-3.345l28.873 15.345a8 8 0 11-7.51 14.129l-10.267-5.457zm-8.222-12.368c-.167-.19-.336-.38-.506-.57l.96-.296-.454.866z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/right-arrow&quot;: {
&quot;title&quot;: &quot;$:/core/images/right-arrow&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-right-arrow tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M99.069 64.173c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/rotate-left&quot;: {
&quot;title&quot;: &quot;$:/core/images/rotate-left&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-rotate-left tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;rect width=\&quot;32\&quot; height=\&quot;80\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;80\&quot; height=\&quot;32\&quot; x=\&quot;48\&quot; y=\&quot;96\&quot; rx=\&quot;8\&quot;/&gt;&lt;path d=\&quot;M61.32 36.65c19.743 2.45 35.023 19.287 35.023 39.693a4 4 0 01-8 0c0-15.663-11.254-28.698-26.117-31.46l3.916 3.916a4 4 0 11-5.657 5.657L49.172 43.142a4 4 0 010-5.657l11.313-11.313a4 4 0 115.657 5.656l-4.821 4.822z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/save-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/save-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-save-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M120.783 34.33c4.641 8.862 7.266 18.948 7.266 29.646 0 35.347-28.653 64-64 64-35.346 0-64-28.653-64-64 0-35.346 28.654-64 64-64 18.808 0 35.72 8.113 47.43 21.03l2.68-2.68c3.13-3.13 8.197-3.132 11.321-.008 3.118 3.118 3.121 8.193-.007 11.32l-4.69 4.691zm-12.058 12.058a47.876 47.876 0 013.324 17.588c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48c14.39 0 27.3 6.332 36.098 16.362L58.941 73.544 41.976 56.578c-3.127-3.127-8.201-3.123-11.32-.005-3.123 3.124-3.119 8.194.006 11.319l22.617 22.617a7.992 7.992 0 005.659 2.347c2.05 0 4.101-.783 5.667-2.349l44.12-44.12z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/size&quot;: {
&quot;title&quot;: &quot;$:/core/images/size&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-size tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M92.343 26l-9.171 9.172a4 4 0 105.656 5.656l16-16a4 4 0 000-5.656l-16-16a4 4 0 10-5.656 5.656L92.343 18H22a4 4 0 00-4 4v70.343l-9.172-9.171a4 4 0 10-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656L26 92.343V22l-4 4h70.343zM112 52v64l4-4H52a4 4 0 100 8h64a4 4 0 004-4V52a4 4 0 10-8 0z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/spiral&quot;: {
&quot;title&quot;: &quot;$:/core/images/spiral&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-spiral tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M64.534 68.348c3.39 0 6.097-2.62 6.476-5.968l-4.755-.538 4.75.583c.377-3.07-1.194-6.054-3.89-7.78-2.757-1.773-6.34-2.01-9.566-.7-3.46 1.403-6.14 4.392-7.35 8.148l-.01.026c-1.3 4.08-.72 8.64 1.58 12.52 2.5 4.2 6.77 7.2 11.76 8.27 5.37 1.15 11.11-.05 15.83-3.31 5.04-3.51 8.46-9.02 9.45-15.3 1.05-6.7-.72-13.63-4.92-19.19l.02.02c-4.42-5.93-11.2-9.82-18.78-10.78-7.96-1.01-16.13 1.31-22.59 6.43-6.81 5.39-11.18 13.41-12.11 22.26-.98 9.27 1.87 18.65 7.93 26.02 6.32 7.69 15.6 12.56 25.74 13.48 10.54.96 21.15-2.42 29.45-9.4l.01-.01c8.58-7.25 13.94-17.78 14.86-29.21.94-11.84-2.96-23.69-10.86-32.9-8.19-9.5-19.95-15.36-32.69-16.27-13.16-.94-26.24 3.49-36.34 12.34l.01-.01c-10.41 9.08-16.78 22.1-17.68 36.15-.93 14.44 4.03 28.77 13.79 39.78 10.03 11.32 24.28 18.2 39.6 19.09 15.73.92 31.31-4.56 43.24-15.234 12.23-10.954 19.61-26.44 20.5-43.074a4.785 4.785 0 00-4.52-5.03 4.778 4.778 0 00-5.03 4.52c-.75 14.1-7 27.2-17.33 36.45-10.03 8.98-23.11 13.58-36.3 12.81-12.79-.75-24.67-6.48-33-15.89-8.07-9.11-12.17-20.94-11.41-32.827.74-11.52 5.942-22.15 14.43-29.54l.01-.01c8.18-7.17 18.74-10.75 29.35-9.998 10.21.726 19.6 5.41 26.11 12.96 6.24 7.273 9.32 16.61 8.573 25.894-.718 8.9-4.88 17.064-11.504 22.66l.01-.007c-6.36 5.342-14.44 7.92-22.425 7.19-7.604-.68-14.52-4.314-19.21-10.027-4.44-5.4-6.517-12.23-5.806-18.94.67-6.3 3.76-11.977 8.54-15.766 4.46-3.54 10.05-5.128 15.44-4.44 5.03.63 9.46 3.18 12.32 7.01l.02.024c2.65 3.5 3.75 7.814 3.1 11.92-.59 3.71-2.58 6.925-5.45 8.924-2.56 1.767-5.61 2.403-8.38 1.81-2.42-.516-4.42-1.92-5.53-3.79-.93-1.56-1.15-3.3-.69-4.75l-4.56-1.446L59.325 65c.36-1.12 1.068-1.905 1.84-2.22.25-.103.48-.14.668-.13.06.006.11.015.14.025.01 0 .01 0-.01-.01a1.047 1.047 0 01-.264-.332c-.15-.29-.23-.678-.18-1.11l-.005.04c.15-1.332 1.38-2.523 3.035-2.523-2.65 0-4.79 2.144-4.79 4.787s2.14 4.785 4.78 4.785z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/stamp&quot;: {
&quot;title&quot;: &quot;$:/core/images/stamp&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-stamp tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M49.733 64H16.01C11.584 64 8 67.583 8 72.003V97h112V72.003A8 8 0 00111.99 64H78.267A22.813 22.813 0 0175.5 53.077c0-6.475 2.687-12.324 7.009-16.497A22.818 22.818 0 0087 22.952C87 10.276 76.703 0 64 0S41 10.276 41 22.952c0 5.103 1.669 9.817 4.491 13.628 4.322 4.173 7.009 10.022 7.009 16.497 0 3.954-1.002 7.675-2.767 10.923zM8 104h112v8H8v-8z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/star-filled&quot;: {
&quot;title&quot;: &quot;$:/core/images/star-filled&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-star-filled tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M61.836 96.823l37.327 27.287c2.72 1.99 6.379-.69 5.343-3.912L90.29 75.988l-1.26 3.91 37.285-27.345c2.718-1.993 1.32-6.327-2.041-6.33l-46.113-.036 3.3 2.416L67.176 4.416c-1.04-3.221-5.563-3.221-6.604 0L46.29 48.603l3.3-2.416-46.113.036c-3.362.003-4.759 4.337-2.04 6.33L38.72 79.898l-1.26-3.91-14.216 44.21c-1.036 3.223 2.622 5.901 5.343 3.912l37.326-27.287h-4.078z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/storyview-classic&quot;: {
&quot;title&quot;: &quot;$:/core/images/storyview-classic&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-storyview-classic tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm0 48C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0 32C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/storyview-pop&quot;: {
&quot;title&quot;: &quot;$:/core/images/storyview-pop&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-storyview-pop tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm-7.99 40C11.587 56 8 59.578 8 63.992v16.016C8 84.422 11.584 88 16.01 88h95.98c4.424 0 8.01-3.578 8.01-7.992V63.992c0-4.414-3.584-7.992-8.01-7.992H16.01zM24 96C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0-32C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/storyview-zoomin&quot;: {
&quot;title&quot;: &quot;$:/core/images/storyview-zoomin&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-storyview-zoomin tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16A8 8 0 0016 24.009V71.99C16 76.414 19.588 80 24 80h80a8 8 0 008-8.009V24.01c0-4.423-3.588-8.009-8-8.009H24z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/strikethrough&quot;: {
&quot;title&quot;: &quot;$:/core/images/strikethrough&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-strikethrough tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M92.794 38.726h15.422c-.229-6.74-1.514-12.538-3.856-17.393-2.342-4.855-5.54-8.881-9.596-12.08-4.055-3.199-8.767-5.54-14.136-7.025C75.258.743 69.433 0 63.15 0a62.76 62.76 0 00-16.364 2.142C41.474 3.57 36.733 5.74 32.564 8.653c-4.17 2.913-7.511 6.626-10.025 11.138-2.513 4.512-3.77 9.853-3.77 16.022 0 5.597 1.115 10.252 3.342 13.965 2.228 3.712 5.198 6.74 8.91 9.081 3.713 2.342 7.911 4.227 12.595 5.655a194.641 194.641 0 0014.308 3.77c4.855 1.085 9.624 2.142 14.308 3.17 4.683 1.028 8.881 2.37 12.594 4.027 3.713 1.656 6.683 3.798 8.91 6.425 2.228 2.628 3.342 6.055 3.342 10.281 0 4.456-.914 8.111-2.742 10.967a19.953 19.953 0 01-7.197 6.768c-2.97 1.657-6.311 2.828-10.024 3.513a60.771 60.771 0 01-11.052 1.028c-4.57 0-9.025-.571-13.366-1.713-4.34-1.143-8.139-2.913-11.394-5.312-3.256-2.4-5.884-5.455-7.883-9.168-1.999-3.712-2.998-8.139-2.998-13.28H15c0 7.426 1.342 13.852 4.027 19.278 2.684 5.426 6.34 9.881 10.966 13.365 4.627 3.484 9.996 6.083 16.107 7.797 6.112 1.713 12.595 2.57 19.449 2.57 5.597 0 11.223-.657 16.878-1.97 5.655-1.314 10.767-3.428 15.336-6.34 4.57-2.914 8.31-6.683 11.224-11.31 2.913-4.626 4.37-10.195 4.37-16.707 0-6.054-1.115-11.08-3.342-15.079-2.228-3.998-5.198-7.31-8.91-9.938-3.713-2.627-7.911-4.712-12.595-6.254a170.83 170.83 0 00-14.308-4.027 549.669 549.669 0 00-14.308-3.17c-4.683-.971-8.881-2.2-12.594-3.684-3.713-1.485-6.683-3.399-8.91-5.74-2.228-2.342-3.342-5.398-3.342-9.168 0-3.998.771-7.34 2.313-10.024 1.543-2.685 3.599-4.826 6.17-6.426 2.57-1.599 5.51-2.741 8.824-3.427a49.767 49.767 0 0110.11-1.028c8.453 0 15.393 1.97 20.819 5.912 5.426 3.94 8.596 10.31 9.51 19.106z\&quot;/&gt;&lt;path d=\&quot;M5 54h118v16H5z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/subscript&quot;: {
&quot;title&quot;: &quot;$:/core/images/subscript&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-subscript tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 128.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/superscript&quot;: {
&quot;title&quot;: &quot;$:/core/images/superscript&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-superscript tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 63.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/tag-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/tag-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-tag-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M18.164 47.66l.004 4.105c.003 3.823 2.19 9.097 4.885 11.792l61.85 61.85c2.697 2.697 7.068 2.69 9.769-.01L125.767 94.3a6.903 6.903 0 00.01-9.77L63.928 22.683c-2.697-2.697-7.976-4.88-11.796-4.881l-27.076-.007a6.902 6.902 0 00-6.91 6.91l.008 9.96.287.033c3.73.411 8.489-.044 13.365-1.153a9.702 9.702 0 0111.14-3.662l.291-.13.128.285a9.7 9.7 0 013.3 2.17c3.796 3.796 3.801 9.945.012 13.734-3.618 3.618-9.386 3.777-13.204.482-5.365 1.122-10.674 1.596-15.309 1.237z\&quot;/&gt;&lt;path d=\&quot;M47.633 39.532l.023.051c-9.689 4.356-21.584 6.799-30.396 5.828C5.273 44.089-1.028 36.43 2.443 24.078 5.562 12.976 14.3 4.361 24.047 1.548c10.68-3.083 19.749 1.968 19.749 13.225h-8.623c0-4.859-3.078-6.573-8.735-4.94-6.91 1.995-13.392 8.383-15.694 16.577-1.915 6.818.417 9.653 7.46 10.43 7.126.785 17.531-1.352 25.917-5.121l.027.06.036-.017c1.76-.758 6.266 6.549 3.524 7.74a2.8 2.8 0 01-.075.03z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/theme-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/theme-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-theme-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M55.854 66.945a122.626 122.626 0 01-3.9-4.819c-11.064-14.548-16.645-6.888-22.96 0-6.315 6.888 1.664 12.47-4.33 17.335-5.993 4.866-5.623 6.552-15.737-2.35-10.115-8.9-10.815-11.351-6.172-16.43 4.644-5.08 8.524 2.918 18.01-6.108 9.485-9.026 1.517-17.026 1.517-17.026S42.03-2.824 68.42.157c26.39 2.982-9.984-3.86-19.031 27.801-3.874 13.556.72 10.362 8.066 16.087 1.707 1.33 6.428 4.732 12.671 9.318-6.129 5.879-11.157 10.669-14.273 13.582zm11.641 12.947c16.013 17.036 37.742 37.726 45.117 40.42 10.432 3.813 15.388-3.141 15.388-14.79 0-7.151-23.83-26.542-43.924-41.769-7.408 7.156-13.376 12.953-16.58 16.139z\&quot;/&gt;&lt;path d=\&quot;M11.069 109.828L46.31 74.587a3.56 3.56 0 115.037-5.032l15.098 15.098a3.56 3.56 0 11-5.032 5.037l-35.24 35.241c-4.171 4.17-10.933 4.17-15.104 0-4.17-4.17-4.17-10.933 0-15.103zM124.344 6.622l5.034 5.034-7.49 12.524-7.613 2.58L61.413 79.62l-5.034-5.034 52.861-52.862 2.58-7.614 12.524-7.49z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/timestamp-off&quot;: {
&quot;title&quot;: &quot;$:/core/images/timestamp-off&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-timestamp-off tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z\&quot;/&gt;&lt;path d=\&quot;M58.25 35.88c-18.777 0-33.998 15.224-33.998 33.998 0 18.773 15.22 34.002 33.998 34.002 18.784 0 34.002-15.23 34.002-34.002 0-18.774-15.218-33.998-34.002-33.998zm-3.03 50.123H44.196v-34H55.22v34zm16.976 0H61.17v-34h11.025v34z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/timestamp-on&quot;: {
&quot;title&quot;: &quot;$:/core/images/timestamp-on&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-timestamp-on tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path d=\&quot;M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z\&quot;/&gt;&lt;path d=\&quot;M13.41 27.178a5.005 5.005 0 01-7.045-.613 5.008 5.008 0 01.616-7.047l9.95-8.348a5 5 0 016.429 7.661l-9.95 8.348zm89.573 0a5.005 5.005 0 007.045-.613 5.008 5.008 0 00-.616-7.047l-9.95-8.348a5 5 0 00-6.428 7.661l9.95 8.348zM65.097 71.072c0 3.826-3.09 6.928-6.897 6.928-3.804.006-6.9-3.102-6.903-6.928 0 0 4.76-39.072 6.903-39.072s6.897 39.072 6.897 39.072z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/tip&quot;: {
&quot;title&quot;: &quot;$:/core/images/tip&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-tip tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M64 128.242c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64-35.346 0-64 28.654-64 64 0 35.346 28.654 64 64 64zm11.936-36.789c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349C54.33 94.05 58.824 95.82 64 95.82c5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.456c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zM64.3 24.242c11.618 0 23.699 7.82 23.699 24.2S75.92 71.754 75.92 83.576c0 5.873-5.868 9.26-11.92 9.26s-12.027-3.006-12.027-9.26C51.973 71.147 40 65.47 40 48.442s12.683-24.2 24.301-24.2z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/transcludify&quot;: {
&quot;title&quot;: &quot;$:/core/images/transcludify&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-transcludify-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M0 59.482c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.651-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02C1.36 67.377.591 67.288 0 67.288v-7.806zm24.66 0c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.65-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02c-.946-.177-1.715-.266-2.306-.266v-7.806zm43.965-3.538L80.6 52.041l2.306 7.097-12.063 3.903 7.628 10.378-6.12 4.435-7.63-10.467-7.45 10.201-5.943-4.524 7.628-10.023-12.152-4.17 2.306-7.096 12.064 4.17V43.347h7.451v12.596zm34.425 11.344c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806zm24.66 0c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/twitter&quot;: {
&quot;title&quot;: &quot;$:/core/images/twitter&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-twitter tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M41.626 115.803A73.376 73.376 0 012 104.235c2.022.238 4.08.36 6.166.36 12.111 0 23.258-4.117 32.105-11.023-11.312-.208-20.859-7.653-24.148-17.883a25.98 25.98 0 0011.674-.441C15.971 72.881 7.061 62.474 7.061 49.997c0-.108 0-.216.002-.323a25.824 25.824 0 0011.709 3.22c-6.936-4.617-11.5-12.5-11.5-21.433 0-4.719 1.274-9.142 3.5-12.945 12.75 15.579 31.797 25.83 53.281 26.904-.44-1.884-.67-3.85-.67-5.868 0-14.22 11.575-25.75 25.852-25.75a25.865 25.865 0 0118.869 8.132 51.892 51.892 0 0016.415-6.248c-1.93 6.012-6.029 11.059-11.366 14.246A51.844 51.844 0 00128 25.878a52.428 52.428 0 01-12.9 13.33c.05 1.104.075 2.214.075 3.33 0 34.028-26 73.265-73.549 73.265\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/underline&quot;: {
&quot;title&quot;: &quot;$:/core/images/underline&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-underline tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M7 117.421h114.248V128H7v-10.579zm97.871-18.525V0h-16.26v55.856c0 4.463-.605 8.576-1.816 12.338-1.212 3.762-3.03 7.046-5.452 9.851-2.423 2.806-5.452 4.974-9.086 6.504-3.635 1.53-7.939 2.296-12.912 2.296-6.25 0-11.159-1.786-14.73-5.356-3.57-3.571-5.356-8.417-5.356-14.538V0H23v65.038c0 5.356.542 10.234 1.626 14.633 1.084 4.4 2.965 8.194 5.643 11.382 2.678 3.188 6.185 5.643 10.52 7.365 4.337 1.721 9.756 2.582 16.26 2.582 7.27 0 13.582-1.435 18.938-4.304 5.356-2.87 9.755-7.365 13.199-13.486h.382v15.686h15.303z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/unfold-all-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/unfold-all-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-unfold-all tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;rect width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;/&gt;&lt;rect width=\&quot;128\&quot; height=\&quot;16\&quot; y=\&quot;64\&quot; rx=\&quot;8\&quot;/&gt;&lt;path d=\&quot;M63.945 60.624c-2.05 0-4.101-.78-5.666-2.345L35.662 35.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 41.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 58.279a7.986 7.986 0 01-5.663 2.346zM64.004 124.565c-2.05 0-4.102-.78-5.666-2.345L35.721 99.603c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 105.255l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.662 122.22a7.986 7.986 0 01-5.663 2.346z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/unfold-button&quot;: {
&quot;title&quot;: &quot;$:/core/images/unfold-button&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-unfold tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;rect width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;/&gt;&lt;path d=\&quot;M63.945 63.624c-2.05 0-4.101-.78-5.666-2.345L35.662 38.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 44.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 61.279a7.986 7.986 0 01-5.663 2.346zM64.004 105.682c-2.05.001-4.102-.78-5.666-2.344L35.721 80.721c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 86.373l16.966-16.966c3.124-3.125 8.194-3.13 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319l-22.617 22.617a7.986 7.986 0 01-5.663 2.346z\&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/unlocked-padlock&quot;: {
&quot;title&quot;: &quot;$:/core/images/unlocked-padlock&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-unlocked-padlock tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M48.627 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h6.136c-10.455-12.651-27.364-35.788-4.3-55.142 24.636-20.672 45.835 4.353 55.777 16.201 9.943 11.85-2.676 22.437-12.457 9.892-9.78-12.545-21.167-24.146-33.207-14.043-12.041 10.104-1.757 22.36 8.813 34.958 2.467 2.94 3.641 5.732 3.865 8.134zm19.105 28.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/up-arrow&quot;: {
&quot;title&quot;: &quot;$:/core/images/up-arrow&quot;,
&quot;created&quot;: &quot;20150316000544368&quot;,
&quot;modified&quot;: &quot;20150316000831867&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-up-arrow tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M63.892.281c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.104 3.092-11.196 0L63.894 19.393 13.513 69.774a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98A7.892 7.892 0 0163.893.28z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/video&quot;: {
&quot;title&quot;: &quot;$:/core/images/video&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-video tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M64 12c-34.91 0-55.273 2.917-58.182 5.833C2.91 20.75 0 41.167 0 64.5c0 23.333 2.91 43.75 5.818 46.667C8.728 114.083 29.091 117 64 117c34.91 0 55.273-2.917 58.182-5.833C125.09 108.25 128 87.833 128 64.5c0-23.333-2.91-43.75-5.818-46.667C119.272 14.917 98.909 12 64 12zm-9.084 32.618c-3.813-2.542-6.905-.879-6.905 3.698v31.368c0 4.585 3.099 6.235 6.905 3.698l22.168-14.779c3.813-2.542 3.806-6.669 0-9.206L54.916 44.618z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/core/images/warning&quot;: {
&quot;title&quot;: &quot;$:/core/images/warning&quot;,
&quot;tags&quot;: &quot;$:/tags/Image&quot;,
&quot;text&quot;: &quot;&lt;svg width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; class=\&quot;tc-image-warning tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path fill-rule=\&quot;evenodd\&quot; d=\&quot;M57.072 11c3.079-5.333 10.777-5.333 13.856 0l55.426 96c3.079 5.333-.77 12-6.928 12H8.574c-6.158 0-10.007-6.667-6.928-12l55.426-96zM64 37c-4.418 0-8 3.582-8 7.994v28.012C56 77.421 59.59 81 64 81c4.418 0 8-3.582 8-7.994V44.994C72 40.579 68.41 37 64 37zm0 67a8 8 0 100-16 8 8 0 000 16z\&quot;/&gt;&lt;/svg&gt;&quot;
},
&quot;$:/language/Buttons/AdvancedSearch/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/AdvancedSearch/Caption&quot;,
&quot;text&quot;: &quot;advanced search&quot;
},
&quot;$:/language/Buttons/AdvancedSearch/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/AdvancedSearch/Hint&quot;,
&quot;text&quot;: &quot;Advanced search&quot;
},
&quot;$:/language/Buttons/Cancel/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Cancel/Caption&quot;,
&quot;text&quot;: &quot;cancel&quot;
},
&quot;$:/language/Buttons/Cancel/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Cancel/Hint&quot;,
&quot;text&quot;: &quot;Discard changes to this tiddler&quot;
},
&quot;$:/language/Buttons/Clone/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Clone/Caption&quot;,
&quot;text&quot;: &quot;clone&quot;
},
&quot;$:/language/Buttons/Clone/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Clone/Hint&quot;,
&quot;text&quot;: &quot;Clone this tiddler&quot;
},
&quot;$:/language/Buttons/Close/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Close/Caption&quot;,
&quot;text&quot;: &quot;close&quot;
},
&quot;$:/language/Buttons/Close/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Close/Hint&quot;,
&quot;text&quot;: &quot;Close this tiddler&quot;
},
&quot;$:/language/Buttons/CloseAll/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/CloseAll/Caption&quot;,
&quot;text&quot;: &quot;close all&quot;
},
&quot;$:/language/Buttons/CloseAll/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/CloseAll/Hint&quot;,
&quot;text&quot;: &quot;Close all tiddlers&quot;
},
&quot;$:/language/Buttons/CloseOthers/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/CloseOthers/Caption&quot;,
&quot;text&quot;: &quot;close others&quot;
},
&quot;$:/language/Buttons/CloseOthers/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/CloseOthers/Hint&quot;,
&quot;text&quot;: &quot;Close other tiddlers&quot;
},
&quot;$:/language/Buttons/ControlPanel/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ControlPanel/Caption&quot;,
&quot;text&quot;: &quot;control panel&quot;
},
&quot;$:/language/Buttons/ControlPanel/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ControlPanel/Hint&quot;,
&quot;text&quot;: &quot;Open control panel&quot;
},
&quot;$:/language/Buttons/CopyToClipboard/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/CopyToClipboard/Caption&quot;,
&quot;text&quot;: &quot;copy to clipboard&quot;
},
&quot;$:/language/Buttons/CopyToClipboard/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/CopyToClipboard/Hint&quot;,
&quot;text&quot;: &quot;Copy this text to the clipboard&quot;
},
&quot;$:/language/Buttons/Delete/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Delete/Caption&quot;,
&quot;text&quot;: &quot;delete&quot;
},
&quot;$:/language/Buttons/Delete/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Delete/Hint&quot;,
&quot;text&quot;: &quot;Delete this tiddler&quot;
},
&quot;$:/language/Buttons/Edit/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Edit/Caption&quot;,
&quot;text&quot;: &quot;edit&quot;
},
&quot;$:/language/Buttons/Edit/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Edit/Hint&quot;,
&quot;text&quot;: &quot;Edit this tiddler&quot;
},
&quot;$:/language/Buttons/Encryption/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Encryption/Caption&quot;,
&quot;text&quot;: &quot;encryption&quot;
},
&quot;$:/language/Buttons/Encryption/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Encryption/Hint&quot;,
&quot;text&quot;: &quot;Set or clear a password for saving this wiki&quot;
},
&quot;$:/language/Buttons/Encryption/ClearPassword/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Encryption/ClearPassword/Caption&quot;,
&quot;text&quot;: &quot;clear password&quot;
},
&quot;$:/language/Buttons/Encryption/ClearPassword/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Encryption/ClearPassword/Hint&quot;,
&quot;text&quot;: &quot;Clear the password and save this wiki without encryption&quot;
},
&quot;$:/language/Buttons/Encryption/SetPassword/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Encryption/SetPassword/Caption&quot;,
&quot;text&quot;: &quot;set password&quot;
},
&quot;$:/language/Buttons/Encryption/SetPassword/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Encryption/SetPassword/Hint&quot;,
&quot;text&quot;: &quot;Set a password for saving this wiki with encryption&quot;
},
&quot;$:/language/Buttons/ExportPage/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ExportPage/Caption&quot;,
&quot;text&quot;: &quot;export all&quot;
},
&quot;$:/language/Buttons/ExportPage/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ExportPage/Hint&quot;,
&quot;text&quot;: &quot;Export all tiddlers&quot;
},
&quot;$:/language/Buttons/ExportTiddler/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ExportTiddler/Caption&quot;,
&quot;text&quot;: &quot;export tiddler&quot;
},
&quot;$:/language/Buttons/ExportTiddler/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ExportTiddler/Hint&quot;,
&quot;text&quot;: &quot;Export tiddler&quot;
},
&quot;$:/language/Buttons/ExportTiddlers/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ExportTiddlers/Caption&quot;,
&quot;text&quot;: &quot;export tiddlers&quot;
},
&quot;$:/language/Buttons/ExportTiddlers/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ExportTiddlers/Hint&quot;,
&quot;text&quot;: &quot;Export tiddlers&quot;
},
&quot;$:/language/Buttons/SidebarSearch/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/SidebarSearch/Hint&quot;,
&quot;text&quot;: &quot;Select the sidebar search field&quot;
},
&quot;$:/language/Buttons/Fold/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Fold/Caption&quot;,
&quot;text&quot;: &quot;fold tiddler&quot;
},
&quot;$:/language/Buttons/Fold/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Fold/Hint&quot;,
&quot;text&quot;: &quot;Fold the body of this tiddler&quot;
},
&quot;$:/language/Buttons/Fold/FoldBar/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Fold/FoldBar/Caption&quot;,
&quot;text&quot;: &quot;fold-bar&quot;
},
&quot;$:/language/Buttons/Fold/FoldBar/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Fold/FoldBar/Hint&quot;,
&quot;text&quot;: &quot;Optional bars to fold and unfold tiddlers&quot;
},
&quot;$:/language/Buttons/Unfold/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Unfold/Caption&quot;,
&quot;text&quot;: &quot;unfold tiddler&quot;
},
&quot;$:/language/Buttons/Unfold/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Unfold/Hint&quot;,
&quot;text&quot;: &quot;Unfold the body of this tiddler&quot;
},
&quot;$:/language/Buttons/FoldOthers/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/FoldOthers/Caption&quot;,
&quot;text&quot;: &quot;fold other tiddlers&quot;
},
&quot;$:/language/Buttons/FoldOthers/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/FoldOthers/Hint&quot;,
&quot;text&quot;: &quot;Fold the bodies of other opened tiddlers&quot;
},
&quot;$:/language/Buttons/FoldAll/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/FoldAll/Caption&quot;,
&quot;text&quot;: &quot;fold all tiddlers&quot;
},
&quot;$:/language/Buttons/FoldAll/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/FoldAll/Hint&quot;,
&quot;text&quot;: &quot;Fold the bodies of all opened tiddlers&quot;
},
&quot;$:/language/Buttons/UnfoldAll/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/UnfoldAll/Caption&quot;,
&quot;text&quot;: &quot;unfold all tiddlers&quot;
},
&quot;$:/language/Buttons/UnfoldAll/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/UnfoldAll/Hint&quot;,
&quot;text&quot;: &quot;Unfold the bodies of all opened tiddlers&quot;
},
&quot;$:/language/Buttons/FullScreen/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/FullScreen/Caption&quot;,
&quot;text&quot;: &quot;full-screen&quot;
},
&quot;$:/language/Buttons/FullScreen/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/FullScreen/Hint&quot;,
&quot;text&quot;: &quot;Enter or leave full-screen mode&quot;
},
&quot;$:/language/Buttons/Help/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Help/Caption&quot;,
&quot;text&quot;: &quot;help&quot;
},
&quot;$:/language/Buttons/Help/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Help/Hint&quot;,
&quot;text&quot;: &quot;Show help panel&quot;
},
&quot;$:/language/Buttons/Import/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Import/Caption&quot;,
&quot;text&quot;: &quot;import&quot;
},
&quot;$:/language/Buttons/Import/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Import/Hint&quot;,
&quot;text&quot;: &quot;Import many types of file including text, image, TiddlyWiki or JSON&quot;
},
&quot;$:/language/Buttons/Info/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Info/Caption&quot;,
&quot;text&quot;: &quot;info&quot;
},
&quot;$:/language/Buttons/Info/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Info/Hint&quot;,
&quot;text&quot;: &quot;Show information for this tiddler&quot;
},
&quot;$:/language/Buttons/Home/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Home/Caption&quot;,
&quot;text&quot;: &quot;home&quot;
},
&quot;$:/language/Buttons/Home/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Home/Hint&quot;,
&quot;text&quot;: &quot;Open the default tiddlers&quot;
},
&quot;$:/language/Buttons/Language/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Language/Caption&quot;,
&quot;text&quot;: &quot;language&quot;
},
&quot;$:/language/Buttons/Language/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Language/Hint&quot;,
&quot;text&quot;: &quot;Choose the user interface language&quot;
},
&quot;$:/language/Buttons/Manager/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Manager/Caption&quot;,
&quot;text&quot;: &quot;tiddler manager&quot;
},
&quot;$:/language/Buttons/Manager/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Manager/Hint&quot;,
&quot;text&quot;: &quot;Open tiddler manager&quot;
},
&quot;$:/language/Buttons/More/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/More/Caption&quot;,
&quot;text&quot;: &quot;more&quot;
},
&quot;$:/language/Buttons/More/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/More/Hint&quot;,
&quot;text&quot;: &quot;More actions&quot;
},
&quot;$:/language/Buttons/NewHere/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewHere/Caption&quot;,
&quot;text&quot;: &quot;new here&quot;
},
&quot;$:/language/Buttons/NewHere/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewHere/Hint&quot;,
&quot;text&quot;: &quot;Create a new tiddler tagged with this one&quot;
},
&quot;$:/language/Buttons/NewJournal/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewJournal/Caption&quot;,
&quot;text&quot;: &quot;new journal&quot;
},
&quot;$:/language/Buttons/NewJournal/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewJournal/Hint&quot;,
&quot;text&quot;: &quot;Create a new journal tiddler&quot;
},
&quot;$:/language/Buttons/NewJournalHere/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewJournalHere/Caption&quot;,
&quot;text&quot;: &quot;new journal here&quot;
},
&quot;$:/language/Buttons/NewJournalHere/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewJournalHere/Hint&quot;,
&quot;text&quot;: &quot;Create a new journal tiddler tagged with this one&quot;
},
&quot;$:/language/Buttons/NewImage/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewImage/Caption&quot;,
&quot;text&quot;: &quot;new image&quot;
},
&quot;$:/language/Buttons/NewImage/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewImage/Hint&quot;,
&quot;text&quot;: &quot;Create a new image tiddler&quot;
},
&quot;$:/language/Buttons/NewMarkdown/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewMarkdown/Caption&quot;,
&quot;text&quot;: &quot;new Markdown tiddler&quot;
},
&quot;$:/language/Buttons/NewMarkdown/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewMarkdown/Hint&quot;,
&quot;text&quot;: &quot;Create a new Markdown tiddler&quot;
},
&quot;$:/language/Buttons/NewTiddler/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewTiddler/Caption&quot;,
&quot;text&quot;: &quot;new tiddler&quot;
},
&quot;$:/language/Buttons/NewTiddler/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/NewTiddler/Hint&quot;,
&quot;text&quot;: &quot;Create a new tiddler&quot;
},
&quot;$:/language/Buttons/OpenWindow/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/OpenWindow/Caption&quot;,
&quot;text&quot;: &quot;open in new window&quot;
},
&quot;$:/language/Buttons/OpenWindow/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/OpenWindow/Hint&quot;,
&quot;text&quot;: &quot;Open tiddler in new window&quot;
},
&quot;$:/language/Buttons/Palette/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Palette/Caption&quot;,
&quot;text&quot;: &quot;palette&quot;
},
&quot;$:/language/Buttons/Palette/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Palette/Hint&quot;,
&quot;text&quot;: &quot;Choose the colour palette&quot;
},
&quot;$:/language/Buttons/Permalink/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Permalink/Caption&quot;,
&quot;text&quot;: &quot;permalink&quot;
},
&quot;$:/language/Buttons/Permalink/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Permalink/Hint&quot;,
&quot;text&quot;: &quot;Set browser address bar to a direct link to this tiddler&quot;
},
&quot;$:/language/Buttons/Permaview/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Permaview/Caption&quot;,
&quot;text&quot;: &quot;permaview&quot;
},
&quot;$:/language/Buttons/Permaview/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Permaview/Hint&quot;,
&quot;text&quot;: &quot;Set browser address bar to a direct link to all the tiddlers in this story&quot;
},
&quot;$:/language/Buttons/Print/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Print/Caption&quot;,
&quot;text&quot;: &quot;print page&quot;
},
&quot;$:/language/Buttons/Print/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Print/Hint&quot;,
&quot;text&quot;: &quot;Print the current page&quot;
},
&quot;$:/language/Buttons/Refresh/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Refresh/Caption&quot;,
&quot;text&quot;: &quot;refresh&quot;
},
&quot;$:/language/Buttons/Refresh/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Refresh/Hint&quot;,
&quot;text&quot;: &quot;Perform a full refresh of the wiki&quot;
},
&quot;$:/language/Buttons/Save/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Save/Caption&quot;,
&quot;text&quot;: &quot;ok&quot;
},
&quot;$:/language/Buttons/Save/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Save/Hint&quot;,
&quot;text&quot;: &quot;Confirm changes to this tiddler&quot;
},
&quot;$:/language/Buttons/SaveWiki/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/SaveWiki/Caption&quot;,
&quot;text&quot;: &quot;save changes&quot;
},
&quot;$:/language/Buttons/SaveWiki/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/SaveWiki/Hint&quot;,
&quot;text&quot;: &quot;Save changes&quot;
},
&quot;$:/language/Buttons/StoryView/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/StoryView/Caption&quot;,
&quot;text&quot;: &quot;storyview&quot;
},
&quot;$:/language/Buttons/StoryView/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/StoryView/Hint&quot;,
&quot;text&quot;: &quot;Choose the story visualisation&quot;
},
&quot;$:/language/Buttons/HideSideBar/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/HideSideBar/Caption&quot;,
&quot;text&quot;: &quot;hide sidebar&quot;
},
&quot;$:/language/Buttons/HideSideBar/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/HideSideBar/Hint&quot;,
&quot;text&quot;: &quot;Hide sidebar&quot;
},
&quot;$:/language/Buttons/ShowSideBar/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ShowSideBar/Caption&quot;,
&quot;text&quot;: &quot;show sidebar&quot;
},
&quot;$:/language/Buttons/ShowSideBar/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ShowSideBar/Hint&quot;,
&quot;text&quot;: &quot;Show sidebar&quot;
},
&quot;$:/language/Buttons/TagManager/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/TagManager/Caption&quot;,
&quot;text&quot;: &quot;tag manager&quot;
},
&quot;$:/language/Buttons/TagManager/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/TagManager/Hint&quot;,
&quot;text&quot;: &quot;Open tag manager&quot;
},
&quot;$:/language/Buttons/Timestamp/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Timestamp/Caption&quot;,
&quot;text&quot;: &quot;timestamps&quot;
},
&quot;$:/language/Buttons/Timestamp/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Timestamp/Hint&quot;,
&quot;text&quot;: &quot;Choose whether modifications update timestamps&quot;
},
&quot;$:/language/Buttons/Timestamp/On/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Timestamp/On/Caption&quot;,
&quot;text&quot;: &quot;timestamps are on&quot;
},
&quot;$:/language/Buttons/Timestamp/On/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Timestamp/On/Hint&quot;,
&quot;text&quot;: &quot;Update timestamps when tiddlers are modified&quot;
},
&quot;$:/language/Buttons/Timestamp/Off/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Timestamp/Off/Caption&quot;,
&quot;text&quot;: &quot;timestamps are off&quot;
},
&quot;$:/language/Buttons/Timestamp/Off/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Timestamp/Off/Hint&quot;,
&quot;text&quot;: &quot;Don't update timestamps when tiddlers are modified&quot;
},
&quot;$:/language/Buttons/Theme/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Theme/Caption&quot;,
&quot;text&quot;: &quot;theme&quot;
},
&quot;$:/language/Buttons/Theme/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Theme/Hint&quot;,
&quot;text&quot;: &quot;Choose the display theme&quot;
},
&quot;$:/language/Buttons/Bold/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Bold/Caption&quot;,
&quot;text&quot;: &quot;bold&quot;
},
&quot;$:/language/Buttons/Bold/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Bold/Hint&quot;,
&quot;text&quot;: &quot;Apply bold formatting to selection&quot;
},
&quot;$:/language/Buttons/Clear/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Clear/Caption&quot;,
&quot;text&quot;: &quot;clear&quot;
},
&quot;$:/language/Buttons/Clear/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Clear/Hint&quot;,
&quot;text&quot;: &quot;Clear image to solid colour&quot;
},
&quot;$:/language/Buttons/EditorHeight/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/EditorHeight/Caption&quot;,
&quot;text&quot;: &quot;editor height&quot;
},
&quot;$:/language/Buttons/EditorHeight/Caption/Auto&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/EditorHeight/Caption/Auto&quot;,
&quot;text&quot;: &quot;Automatically adjust height to fit content&quot;
},
&quot;$:/language/Buttons/EditorHeight/Caption/Fixed&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/EditorHeight/Caption/Fixed&quot;,
&quot;text&quot;: &quot;Fixed height:&quot;
},
&quot;$:/language/Buttons/EditorHeight/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/EditorHeight/Hint&quot;,
&quot;text&quot;: &quot;Choose the height of the text editor&quot;
},
&quot;$:/language/Buttons/Excise/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Excise/Caption&quot;,
&quot;text&quot;: &quot;excise&quot;
},
&quot;$:/language/Buttons/Excise/Caption/Excise&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Excise/Caption/Excise&quot;,
&quot;text&quot;: &quot;Perform excision&quot;
},
&quot;$:/language/Buttons/Excise/Caption/MacroName&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Excise/Caption/MacroName&quot;,
&quot;text&quot;: &quot;Macro name:&quot;
},
&quot;$:/language/Buttons/Excise/Caption/NewTitle&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Excise/Caption/NewTitle&quot;,
&quot;text&quot;: &quot;Title of new tiddler:&quot;
},
&quot;$:/language/Buttons/Excise/Caption/Replace&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Excise/Caption/Replace&quot;,
&quot;text&quot;: &quot;Replace excised text with:&quot;
},
&quot;$:/language/Buttons/Excise/Caption/Replace/Macro&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Excise/Caption/Replace/Macro&quot;,
&quot;text&quot;: &quot;macro&quot;
},
&quot;$:/language/Buttons/Excise/Caption/Replace/Link&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Excise/Caption/Replace/Link&quot;,
&quot;text&quot;: &quot;link&quot;
},
&quot;$:/language/Buttons/Excise/Caption/Replace/Transclusion&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Excise/Caption/Replace/Transclusion&quot;,
&quot;text&quot;: &quot;transclusion&quot;
},
&quot;$:/language/Buttons/Excise/Caption/Tag&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Excise/Caption/Tag&quot;,
&quot;text&quot;: &quot;Tag new tiddler with the title of this tiddler&quot;
},
&quot;$:/language/Buttons/Excise/Caption/TiddlerExists&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Excise/Caption/TiddlerExists&quot;,
&quot;text&quot;: &quot;Warning: tiddler already exists&quot;
},
&quot;$:/language/Buttons/Excise/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Excise/Hint&quot;,
&quot;text&quot;: &quot;Excise the selected text into a new tiddler&quot;
},
&quot;$:/language/Buttons/Heading1/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading1/Caption&quot;,
&quot;text&quot;: &quot;heading 1&quot;
},
&quot;$:/language/Buttons/Heading1/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading1/Hint&quot;,
&quot;text&quot;: &quot;Apply heading level 1 formatting to lines containing selection&quot;
},
&quot;$:/language/Buttons/Heading2/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading2/Caption&quot;,
&quot;text&quot;: &quot;heading 2&quot;
},
&quot;$:/language/Buttons/Heading2/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading2/Hint&quot;,
&quot;text&quot;: &quot;Apply heading level 2 formatting to lines containing selection&quot;
},
&quot;$:/language/Buttons/Heading3/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading3/Caption&quot;,
&quot;text&quot;: &quot;heading 3&quot;
},
&quot;$:/language/Buttons/Heading3/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading3/Hint&quot;,
&quot;text&quot;: &quot;Apply heading level 3 formatting to lines containing selection&quot;
},
&quot;$:/language/Buttons/Heading4/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading4/Caption&quot;,
&quot;text&quot;: &quot;heading 4&quot;
},
&quot;$:/language/Buttons/Heading4/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading4/Hint&quot;,
&quot;text&quot;: &quot;Apply heading level 4 formatting to lines containing selection&quot;
},
&quot;$:/language/Buttons/Heading5/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading5/Caption&quot;,
&quot;text&quot;: &quot;heading 5&quot;
},
&quot;$:/language/Buttons/Heading5/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading5/Hint&quot;,
&quot;text&quot;: &quot;Apply heading level 5 formatting to lines containing selection&quot;
},
&quot;$:/language/Buttons/Heading6/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading6/Caption&quot;,
&quot;text&quot;: &quot;heading 6&quot;
},
&quot;$:/language/Buttons/Heading6/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Heading6/Hint&quot;,
&quot;text&quot;: &quot;Apply heading level 6 formatting to lines containing selection&quot;
},
&quot;$:/language/Buttons/Italic/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Italic/Caption&quot;,
&quot;text&quot;: &quot;italic&quot;
},
&quot;$:/language/Buttons/Italic/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Italic/Hint&quot;,
&quot;text&quot;: &quot;Apply italic formatting to selection&quot;
},
&quot;$:/language/Buttons/LineWidth/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/LineWidth/Caption&quot;,
&quot;text&quot;: &quot;line width&quot;
},
&quot;$:/language/Buttons/LineWidth/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/LineWidth/Hint&quot;,
&quot;text&quot;: &quot;Set line width for painting&quot;
},
&quot;$:/language/Buttons/Link/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Link/Caption&quot;,
&quot;text&quot;: &quot;link&quot;
},
&quot;$:/language/Buttons/Link/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Link/Hint&quot;,
&quot;text&quot;: &quot;Create wikitext link&quot;
},
&quot;$:/language/Buttons/Linkify/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Linkify/Caption&quot;,
&quot;text&quot;: &quot;wikilink&quot;
},
&quot;$:/language/Buttons/Linkify/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Linkify/Hint&quot;,
&quot;text&quot;: &quot;Wrap selection in square brackets&quot;
},
&quot;$:/language/Buttons/ListBullet/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ListBullet/Caption&quot;,
&quot;text&quot;: &quot;bulleted list&quot;
},
&quot;$:/language/Buttons/ListBullet/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ListBullet/Hint&quot;,
&quot;text&quot;: &quot;Apply bulleted list formatting to lines containing selection&quot;
},
&quot;$:/language/Buttons/ListNumber/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ListNumber/Caption&quot;,
&quot;text&quot;: &quot;numbered list&quot;
},
&quot;$:/language/Buttons/ListNumber/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ListNumber/Hint&quot;,
&quot;text&quot;: &quot;Apply numbered list formatting to lines containing selection&quot;
},
&quot;$:/language/Buttons/MonoBlock/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/MonoBlock/Caption&quot;,
&quot;text&quot;: &quot;monospaced block&quot;
},
&quot;$:/language/Buttons/MonoBlock/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/MonoBlock/Hint&quot;,
&quot;text&quot;: &quot;Apply monospaced block formatting to lines containing selection&quot;
},
&quot;$:/language/Buttons/MonoLine/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/MonoLine/Caption&quot;,
&quot;text&quot;: &quot;monospaced&quot;
},
&quot;$:/language/Buttons/MonoLine/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/MonoLine/Hint&quot;,
&quot;text&quot;: &quot;Apply monospaced character formatting to selection&quot;
},
&quot;$:/language/Buttons/Opacity/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Opacity/Caption&quot;,
&quot;text&quot;: &quot;opacity&quot;
},
&quot;$:/language/Buttons/Opacity/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Opacity/Hint&quot;,
&quot;text&quot;: &quot;Set painting opacity&quot;
},
&quot;$:/language/Buttons/Paint/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Paint/Caption&quot;,
&quot;text&quot;: &quot;paint colour&quot;
},
&quot;$:/language/Buttons/Paint/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Paint/Hint&quot;,
&quot;text&quot;: &quot;Set painting colour&quot;
},
&quot;$:/language/Buttons/Picture/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Picture/Caption&quot;,
&quot;text&quot;: &quot;picture&quot;
},
&quot;$:/language/Buttons/Picture/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Picture/Hint&quot;,
&quot;text&quot;: &quot;Insert picture&quot;
},
&quot;$:/language/Buttons/Preview/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Preview/Caption&quot;,
&quot;text&quot;: &quot;preview&quot;
},
&quot;$:/language/Buttons/Preview/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Preview/Hint&quot;,
&quot;text&quot;: &quot;Show preview pane&quot;
},
&quot;$:/language/Buttons/PreviewType/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/PreviewType/Caption&quot;,
&quot;text&quot;: &quot;preview type&quot;
},
&quot;$:/language/Buttons/PreviewType/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/PreviewType/Hint&quot;,
&quot;text&quot;: &quot;Choose preview type&quot;
},
&quot;$:/language/Buttons/Quote/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Quote/Caption&quot;,
&quot;text&quot;: &quot;quote&quot;
},
&quot;$:/language/Buttons/Quote/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Quote/Hint&quot;,
&quot;text&quot;: &quot;Apply quoted text formatting to lines containing selection&quot;
},
&quot;$:/language/Buttons/RotateLeft/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/RotateLeft/Caption&quot;,
&quot;text&quot;: &quot;rotate left&quot;
},
&quot;$:/language/Buttons/RotateLeft/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/RotateLeft/Hint&quot;,
&quot;text&quot;: &quot;Rotate image left by 90 degrees&quot;
},
&quot;$:/language/Buttons/Size/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Size/Caption&quot;,
&quot;text&quot;: &quot;image size&quot;
},
&quot;$:/language/Buttons/Size/Caption/Height&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Size/Caption/Height&quot;,
&quot;text&quot;: &quot;Height:&quot;
},
&quot;$:/language/Buttons/Size/Caption/Resize&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Size/Caption/Resize&quot;,
&quot;text&quot;: &quot;Resize image&quot;
},
&quot;$:/language/Buttons/Size/Caption/Width&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Size/Caption/Width&quot;,
&quot;text&quot;: &quot;Width:&quot;
},
&quot;$:/language/Buttons/Size/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Size/Hint&quot;,
&quot;text&quot;: &quot;Set image size&quot;
},
&quot;$:/language/Buttons/Stamp/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Stamp/Caption&quot;,
&quot;text&quot;: &quot;stamp&quot;
},
&quot;$:/language/Buttons/Stamp/Caption/New&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Stamp/Caption/New&quot;,
&quot;text&quot;: &quot;Add your own&quot;
},
&quot;$:/language/Buttons/Stamp/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Stamp/Hint&quot;,
&quot;text&quot;: &quot;Insert a preconfigured snippet of text&quot;
},
&quot;$:/language/Buttons/Stamp/New/Title&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Stamp/New/Title&quot;,
&quot;text&quot;: &quot;Name as shown in menu&quot;
},
&quot;$:/language/Buttons/Stamp/New/Text&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Stamp/New/Text&quot;,
&quot;text&quot;: &quot;Text of snippet. (Remember to add a descriptive title in the caption field).&quot;
},
&quot;$:/language/Buttons/Strikethrough/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Strikethrough/Caption&quot;,
&quot;text&quot;: &quot;strikethrough&quot;
},
&quot;$:/language/Buttons/Strikethrough/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Strikethrough/Hint&quot;,
&quot;text&quot;: &quot;Apply strikethrough formatting to selection&quot;
},
&quot;$:/language/Buttons/Subscript/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Subscript/Caption&quot;,
&quot;text&quot;: &quot;subscript&quot;
},
&quot;$:/language/Buttons/Subscript/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Subscript/Hint&quot;,
&quot;text&quot;: &quot;Apply subscript formatting to selection&quot;
},
&quot;$:/language/Buttons/Superscript/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Superscript/Caption&quot;,
&quot;text&quot;: &quot;superscript&quot;
},
&quot;$:/language/Buttons/Superscript/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Superscript/Hint&quot;,
&quot;text&quot;: &quot;Apply superscript formatting to selection&quot;
},
&quot;$:/language/Buttons/ToggleSidebar/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/ToggleSidebar/Hint&quot;,
&quot;text&quot;: &quot;Toggle the sidebar visibility&quot;
},
&quot;$:/language/Buttons/Transcludify/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Transcludify/Caption&quot;,
&quot;text&quot;: &quot;transclusion&quot;
},
&quot;$:/language/Buttons/Transcludify/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Transcludify/Hint&quot;,
&quot;text&quot;: &quot;Wrap selection in curly brackets&quot;
},
&quot;$:/language/Buttons/Underline/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Underline/Caption&quot;,
&quot;text&quot;: &quot;underline&quot;
},
&quot;$:/language/Buttons/Underline/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Buttons/Underline/Hint&quot;,
&quot;text&quot;: &quot;Apply underline formatting to selection&quot;
},
&quot;$:/language/ControlPanel/Advanced/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Advanced/Caption&quot;,
&quot;text&quot;: &quot;Advanced&quot;
},
&quot;$:/language/ControlPanel/Advanced/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Advanced/Hint&quot;,
&quot;text&quot;: &quot;Internal information about this TiddlyWiki&quot;
},
&quot;$:/language/ControlPanel/Appearance/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Appearance/Caption&quot;,
&quot;text&quot;: &quot;Appearance&quot;
},
&quot;$:/language/ControlPanel/Appearance/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Appearance/Hint&quot;,
&quot;text&quot;: &quot;Ways to customise the appearance of your TiddlyWiki.&quot;
},
&quot;$:/language/ControlPanel/Basics/AnimDuration/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/AnimDuration/Prompt&quot;,
&quot;text&quot;: &quot;Animation duration&quot;
},
&quot;$:/language/ControlPanel/Basics/AutoFocus/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/AutoFocus/Prompt&quot;,
&quot;text&quot;: &quot;Default focus field for new tiddlers&quot;
},
&quot;$:/language/ControlPanel/Basics/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/Caption&quot;,
&quot;text&quot;: &quot;Basics&quot;
},
&quot;$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint&quot;,
&quot;text&quot;: &quot;Use &amp;#91;&amp;#91;double square brackets&amp;#93;&amp;#93; for titles with spaces. Or you can choose to &lt;$button set=\&quot;$:/DefaultTiddlers\&quot; setTo=\&quot;[list[$:/StoryList]]\&quot;&gt;retain story ordering&lt;/$button&gt;&quot;
},
&quot;$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt&quot;,
&quot;text&quot;: &quot;Default tiddlers&quot;
},
&quot;$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint&quot;,
&quot;text&quot;: &quot;Choose which tiddlers are displayed at startup&quot;
},
&quot;$:/language/ControlPanel/Basics/Language/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/Language/Prompt&quot;,
&quot;text&quot;: &quot;Hello! Current language:&quot;
},
&quot;$:/language/ControlPanel/Basics/NewJournal/Title/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/NewJournal/Title/Prompt&quot;,
&quot;text&quot;: &quot;Title of new journal tiddlers&quot;
},
&quot;$:/language/ControlPanel/Basics/NewJournal/Text/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/NewJournal/Text/Prompt&quot;,
&quot;text&quot;: &quot;Text for new journal tiddlers&quot;
},
&quot;$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt&quot;,
&quot;text&quot;: &quot;Tags for new journal tiddlers&quot;
},
&quot;$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt&quot;,
&quot;text&quot;: &quot;Title of new tiddlers&quot;
},
&quot;$:/language/ControlPanel/Basics/NewTiddler/Tags/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/NewTiddler/Tags/Prompt&quot;,
&quot;text&quot;: &quot;Tags for new tiddlers&quot;
},
&quot;$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt&quot;,
&quot;text&quot;: &quot;Number of overridden shadow tiddlers&quot;
},
&quot;$:/language/ControlPanel/Basics/RemoveTags&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/RemoveTags&quot;,
&quot;text&quot;: &quot;Update to current format&quot;
},
&quot;$:/language/ControlPanel/Basics/RemoveTags/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/RemoveTags/Hint&quot;,
&quot;text&quot;: &quot;Update the tags configuration to the latest format&quot;
},
&quot;$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt&quot;,
&quot;text&quot;: &quot;Number of shadow tiddlers&quot;
},
&quot;$:/language/ControlPanel/Basics/Subtitle/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/Subtitle/Prompt&quot;,
&quot;text&quot;: &quot;Subtitle&quot;
},
&quot;$:/language/ControlPanel/Basics/SystemTiddlers/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/SystemTiddlers/Prompt&quot;,
&quot;text&quot;: &quot;Number of system tiddlers&quot;
},
&quot;$:/language/ControlPanel/Basics/Tags/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/Tags/Prompt&quot;,
&quot;text&quot;: &quot;Number of tags&quot;
},
&quot;$:/language/ControlPanel/Basics/Tiddlers/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/Tiddlers/Prompt&quot;,
&quot;text&quot;: &quot;Number of tiddlers&quot;
},
&quot;$:/language/ControlPanel/Basics/Title/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/Title/Prompt&quot;,
&quot;text&quot;: &quot;Title of this ~TiddlyWiki&quot;
},
&quot;$:/language/ControlPanel/Basics/Username/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/Username/Prompt&quot;,
&quot;text&quot;: &quot;Username for signing edits&quot;
},
&quot;$:/language/ControlPanel/Basics/Version/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Basics/Version/Prompt&quot;,
&quot;text&quot;: &quot;~TiddlyWiki version&quot;
},
&quot;$:/language/ControlPanel/EditorTypes/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/EditorTypes/Caption&quot;,
&quot;text&quot;: &quot;Editor Types&quot;
},
&quot;$:/language/ControlPanel/EditorTypes/Editor/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/EditorTypes/Editor/Caption&quot;,
&quot;text&quot;: &quot;Editor&quot;
},
&quot;$:/language/ControlPanel/EditorTypes/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/EditorTypes/Hint&quot;,
&quot;text&quot;: &quot;These tiddlers determine which editor is used to edit specific tiddler types.&quot;
},
&quot;$:/language/ControlPanel/EditorTypes/Type/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/EditorTypes/Type/Caption&quot;,
&quot;text&quot;: &quot;Type&quot;
},
&quot;$:/language/ControlPanel/Info/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Info/Caption&quot;,
&quot;text&quot;: &quot;Info&quot;
},
&quot;$:/language/ControlPanel/Info/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Info/Hint&quot;,
&quot;text&quot;: &quot;Information about this TiddlyWiki&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt&quot;,
&quot;text&quot;: &quot;Type shortcut here&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Add/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Add/Caption&quot;,
&quot;text&quot;: &quot;add shortcut&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Caption&quot;,
&quot;text&quot;: &quot;Keyboard Shortcuts&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Hint&quot;,
&quot;text&quot;: &quot;Manage keyboard shortcut assignments&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption&quot;,
&quot;text&quot;: &quot;No keyboard shortcuts assigned&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint&quot;,
&quot;text&quot;: &quot;remove keyboard shortcut&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/All&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/All&quot;,
&quot;text&quot;: &quot;All platforms&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac&quot;,
&quot;text&quot;: &quot;Macintosh platform only&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac&quot;,
&quot;text&quot;: &quot;Non-Macintosh platforms only&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux&quot;,
&quot;text&quot;: &quot;Linux platform only&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux&quot;,
&quot;text&quot;: &quot;Non-Linux platforms only&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows&quot;,
&quot;text&quot;: &quot;Windows platform only&quot;
},
&quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows&quot;,
&quot;text&quot;: &quot;Non-Windows platforms only&quot;
},
&quot;$:/language/ControlPanel/LayoutSwitcher/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/LayoutSwitcher/Caption&quot;,
&quot;text&quot;: &quot;Layout&quot;
},
&quot;$:/language/ControlPanel/LoadedModules/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/LoadedModules/Caption&quot;,
&quot;text&quot;: &quot;Loaded Modules&quot;
},
&quot;$:/language/ControlPanel/LoadedModules/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/LoadedModules/Hint&quot;,
&quot;text&quot;: &quot;These are the currently loaded tiddler modules linked to their source tiddlers. Any italicised modules lack a source tiddler, typically because they were setup during the boot process.&quot;
},
&quot;$:/language/ControlPanel/Palette/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Palette/Caption&quot;,
&quot;text&quot;: &quot;Palette&quot;
},
&quot;$:/language/ControlPanel/Palette/Editor/Clone/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Palette/Editor/Clone/Caption&quot;,
&quot;text&quot;: &quot;clone&quot;
},
&quot;$:/language/ControlPanel/Palette/Editor/Clone/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Palette/Editor/Clone/Prompt&quot;,
&quot;text&quot;: &quot;It is recommended that you clone this shadow palette before editing it&quot;
},
&quot;$:/language/ControlPanel/Palette/Editor/Delete/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Palette/Editor/Delete/Hint&quot;,
&quot;text&quot;: &quot;delete this entry from the current palette&quot;
},
&quot;$:/language/ControlPanel/Palette/Editor/Names/External/Show&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Palette/Editor/Names/External/Show&quot;,
&quot;text&quot;: &quot;Show color names that are not part of the current palette&quot;
},
&quot;$:/language/ControlPanel/Palette/Editor/Prompt/Modified&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Palette/Editor/Prompt/Modified&quot;,
&quot;text&quot;: &quot;This shadow palette has been modified&quot;
},
&quot;$:/language/ControlPanel/Palette/Editor/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Palette/Editor/Prompt&quot;,
&quot;text&quot;: &quot;Editing&quot;
},
&quot;$:/language/ControlPanel/Palette/Editor/Reset/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Palette/Editor/Reset/Caption&quot;,
&quot;text&quot;: &quot;reset&quot;
},
&quot;$:/language/ControlPanel/Palette/HideEditor/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Palette/HideEditor/Caption&quot;,
&quot;text&quot;: &quot;hide editor&quot;
},
&quot;$:/language/ControlPanel/Palette/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Palette/Prompt&quot;,
&quot;text&quot;: &quot;Current palette:&quot;
},
&quot;$:/language/ControlPanel/Palette/ShowEditor/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Palette/ShowEditor/Caption&quot;,
&quot;text&quot;: &quot;show editor&quot;
},
&quot;$:/language/ControlPanel/Parsing/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Parsing/Caption&quot;,
&quot;text&quot;: &quot;Parsing&quot;
},
&quot;$:/language/ControlPanel/Parsing/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Parsing/Hint&quot;,
&quot;text&quot;: &quot;Here you can globally disable/enable wiki parser rules. For changes to take effect, save and reload your wiki. Disabling certain parser rules can prevent &lt;$text text=\&quot;TiddlyWiki\&quot;/&gt; from functioning correctly. Use [[safe mode|https://tiddlywiki.com/#SafeMode]] to restore normal operation.&quot;
},
&quot;$:/language/ControlPanel/Parsing/Block/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Parsing/Block/Caption&quot;,
&quot;text&quot;: &quot;Block Parse Rules&quot;
},
&quot;$:/language/ControlPanel/Parsing/Inline/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Parsing/Inline/Caption&quot;,
&quot;text&quot;: &quot;Inline Parse Rules&quot;
},
&quot;$:/language/ControlPanel/Parsing/Pragma/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Parsing/Pragma/Caption&quot;,
&quot;text&quot;: &quot;Pragma Parse Rules&quot;
},
&quot;$:/language/ControlPanel/Plugins/Add/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Add/Caption&quot;,
&quot;text&quot;: &quot;Get more plugins&quot;
},
&quot;$:/language/ControlPanel/Plugins/Add/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Add/Hint&quot;,
&quot;text&quot;: &quot;Install plugins from the official library&quot;
},
&quot;$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint&quot;,
&quot;text&quot;: &quot;This plugin is already installed at version &lt;$text text=&lt;&lt;installedVersion&gt;&gt;/&gt;&quot;
},
&quot;$:/language/ControlPanel/Plugins/AlsoRequires&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/AlsoRequires&quot;,
&quot;text&quot;: &quot;Also requires:&quot;
},
&quot;$:/language/ControlPanel/Plugins/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Caption&quot;,
&quot;text&quot;: &quot;Plugins&quot;
},
&quot;$:/language/ControlPanel/Plugins/Disable/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Disable/Caption&quot;,
&quot;text&quot;: &quot;disable&quot;
},
&quot;$:/language/ControlPanel/Plugins/Disable/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Disable/Hint&quot;,
&quot;text&quot;: &quot;Disable this plugin when reloading page&quot;
},
&quot;$:/language/ControlPanel/Plugins/Disabled/Status&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Disabled/Status&quot;,
&quot;text&quot;: &quot;(disabled)&quot;
},
&quot;$:/language/ControlPanel/Plugins/Downgrade/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Downgrade/Caption&quot;,
&quot;text&quot;: &quot;downgrade&quot;
},
&quot;$:/language/ControlPanel/Plugins/Empty/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Empty/Hint&quot;,
&quot;text&quot;: &quot;None&quot;
},
&quot;$:/language/ControlPanel/Plugins/Enable/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Enable/Caption&quot;,
&quot;text&quot;: &quot;enable&quot;
},
&quot;$:/language/ControlPanel/Plugins/Enable/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Enable/Hint&quot;,
&quot;text&quot;: &quot;Enable this plugin when reloading page&quot;
},
&quot;$:/language/ControlPanel/Plugins/Install/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Install/Caption&quot;,
&quot;text&quot;: &quot;install&quot;
},
&quot;$:/language/ControlPanel/Plugins/Installed/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Installed/Hint&quot;,
&quot;text&quot;: &quot;Currently installed plugins:&quot;
},
&quot;$:/language/ControlPanel/Plugins/Languages/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Languages/Caption&quot;,
&quot;text&quot;: &quot;Languages&quot;
},
&quot;$:/language/ControlPanel/Plugins/Languages/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Languages/Hint&quot;,
&quot;text&quot;: &quot;Language pack plugins&quot;
},
&quot;$:/language/ControlPanel/Plugins/NoInfoFound/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/NoInfoFound/Hint&quot;,
&quot;text&quot;: &quot;No ''\&quot;&lt;$text text=&lt;&lt;currentTab&gt;&gt;/&gt;\&quot;'' found&quot;
},
&quot;$:/language/ControlPanel/Plugins/NotInstalled/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/NotInstalled/Hint&quot;,
&quot;text&quot;: &quot;This plugin is not currently installed&quot;
},
&quot;$:/language/ControlPanel/Plugins/OpenPluginLibrary&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/OpenPluginLibrary&quot;,
&quot;text&quot;: &quot;open plugin library&quot;
},
&quot;$:/language/ControlPanel/Plugins/ClosePluginLibrary&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/ClosePluginLibrary&quot;,
&quot;text&quot;: &quot;close plugin library&quot;
},
&quot;$:/language/ControlPanel/Plugins/PluginWillRequireReload&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/PluginWillRequireReload&quot;,
&quot;text&quot;: &quot;(requires reload)&quot;
},
&quot;$:/language/ControlPanel/Plugins/Plugins/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Plugins/Caption&quot;,
&quot;text&quot;: &quot;Plugins&quot;
},
&quot;$:/language/ControlPanel/Plugins/Plugins/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Plugins/Hint&quot;,
&quot;text&quot;: &quot;Plugins&quot;
},
&quot;$:/language/ControlPanel/Plugins/Reinstall/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Reinstall/Caption&quot;,
&quot;text&quot;: &quot;reinstall&quot;
},
&quot;$:/language/ControlPanel/Plugins/Themes/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Themes/Caption&quot;,
&quot;text&quot;: &quot;Themes&quot;
},
&quot;$:/language/ControlPanel/Plugins/Themes/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Themes/Hint&quot;,
&quot;text&quot;: &quot;Theme plugins&quot;
},
&quot;$:/language/ControlPanel/Plugins/Update/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Update/Caption&quot;,
&quot;text&quot;: &quot;update&quot;
},
&quot;$:/language/ControlPanel/Plugins/Updates/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Updates/Caption&quot;,
&quot;text&quot;: &quot;Updates&quot;
},
&quot;$:/language/ControlPanel/Plugins/Updates/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Updates/Hint&quot;,
&quot;text&quot;: &quot;Available updates to installed plugins&quot;
},
&quot;$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption&quot;,
&quot;text&quot;: &quot;Update &lt;&lt;update-count&gt;&gt; plugins&quot;
},
&quot;$:/language/ControlPanel/Plugins/SubPluginPrompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Plugins/SubPluginPrompt&quot;,
&quot;text&quot;: &quot;With &lt;&lt;count&gt;&gt; sub-plugins available&quot;
},
&quot;$:/language/ControlPanel/Saving/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/Caption&quot;,
&quot;text&quot;: &quot;Saving&quot;
},
&quot;$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Description&quot;,
&quot;text&quot;: &quot;Permit automatic saving for the download saver&quot;
},
&quot;$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Hint&quot;,
&quot;text&quot;: &quot;Enable Autosave for Download Saver&quot;
},
&quot;$:/language/ControlPanel/Saving/DownloadSaver/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/DownloadSaver/Caption&quot;,
&quot;text&quot;: &quot;Download Saver&quot;
},
&quot;$:/language/ControlPanel/Saving/DownloadSaver/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/DownloadSaver/Hint&quot;,
&quot;text&quot;: &quot;These settings apply to the HTML5-compatible download saver&quot;
},
&quot;$:/language/ControlPanel/Saving/General/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/General/Caption&quot;,
&quot;text&quot;: &quot;General&quot;
},
&quot;$:/language/ControlPanel/Saving/General/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/General/Hint&quot;,
&quot;text&quot;: &quot;These settings apply to all the loaded savers&quot;
},
&quot;$:/language/ControlPanel/Saving/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/Hint&quot;,
&quot;text&quot;: &quot;Settings used for saving the entire TiddlyWiki as a single file via a saver module&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/Branch&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/Branch&quot;,
&quot;text&quot;: &quot;Target branch for saving&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/CommitMessage&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/CommitMessage&quot;,
&quot;text&quot;: &quot;Saved by TiddlyWiki&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/Description&quot;,
&quot;text&quot;: &quot;These settings are only used when saving to &lt;&lt;service-name&gt;&gt;&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/Filename&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/Filename&quot;,
&quot;text&quot;: &quot;Filename of target file (e.g. `index.html`)&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/Path&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/Path&quot;,
&quot;text&quot;: &quot;Path to target file (e.g. `/wiki/`)&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/Repo&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/Repo&quot;,
&quot;text&quot;: &quot;Target repository (e.g. `Jermolene/TiddlyWiki5`)&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/ServerURL&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/ServerURL&quot;,
&quot;text&quot;: &quot;Server API URL&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/UserName&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/UserName&quot;,
&quot;text&quot;: &quot;Username&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/GitHub/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/GitHub/Caption&quot;,
&quot;text&quot;: &quot;~GitHub Saver&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/GitHub/Password&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/GitHub/Password&quot;,
&quot;text&quot;: &quot;Password, OAUTH token, or personal access token (see [[GitHub help page|https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line]] for details)&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/GitLab/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/GitLab/Caption&quot;,
&quot;text&quot;: &quot;~GitLab Saver&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/GitLab/Password&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/GitLab/Password&quot;,
&quot;text&quot;: &quot;Personal access token for API (see [[GitLab help page|https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html]] for details)&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/Gitea/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/Gitea/Caption&quot;,
&quot;text&quot;: &quot;Gitea Saver&quot;
},
&quot;$:/language/ControlPanel/Saving/GitService/Gitea/Password&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/GitService/Gitea/Password&quot;,
&quot;text&quot;: &quot;Personal access token for API (via Giteas web interface: `Settings | Applications | Generate New Token`)&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading&quot;,
&quot;text&quot;: &quot;Advanced Settings&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/BackupDir&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/BackupDir&quot;,
&quot;text&quot;: &quot;Backup Directory&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/ControlPanel&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/ControlPanel&quot;,
&quot;text&quot;: &quot;~TiddlySpot Control Panel&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/Backups&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/Backups&quot;,
&quot;text&quot;: &quot;Backups&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/Caption&quot;,
&quot;text&quot;: &quot;~TiddlySpot Saver&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/Description&quot;,
&quot;text&quot;: &quot;These settings are only used when saving to http://tiddlyspot.com or a compatible remote server&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/Filename&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/Filename&quot;,
&quot;text&quot;: &quot;Upload Filename&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/Heading&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/Heading&quot;,
&quot;text&quot;: &quot;~TiddlySpot&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/Hint&quot;,
&quot;text&quot;: &quot;//The server URL defaults to `http://&lt;wikiname&gt;.tiddlyspot.com/store.cgi` and can be changed to use a custom server address, e.g. `http://example.com/store.php`.//&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/Password&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/Password&quot;,
&quot;text&quot;: &quot;Password&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/ReadOnly&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/ReadOnly&quot;,
&quot;text&quot;: &quot;The ~TiddlySpot service is currently only available in read-only form. Please see http://tiddlyspot.com/ for the latest details. The ~TiddlySpot saver can still be used to save to compatible servers.&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/ServerURL&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/ServerURL&quot;,
&quot;text&quot;: &quot;Server URL&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/UploadDir&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/UploadDir&quot;,
&quot;text&quot;: &quot;Upload Directory&quot;
},
&quot;$:/language/ControlPanel/Saving/TiddlySpot/UserName&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Saving/TiddlySpot/UserName&quot;,
&quot;text&quot;: &quot;Wiki Name&quot;
},
&quot;$:/language/ControlPanel/Settings/AutoSave/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/AutoSave/Caption&quot;,
&quot;text&quot;: &quot;Autosave&quot;
},
&quot;$:/language/ControlPanel/Settings/AutoSave/Disabled/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/AutoSave/Disabled/Description&quot;,
&quot;text&quot;: &quot;Do not save changes automatically&quot;
},
&quot;$:/language/ControlPanel/Settings/AutoSave/Enabled/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/AutoSave/Enabled/Description&quot;,
&quot;text&quot;: &quot;Save changes automatically&quot;
},
&quot;$:/language/ControlPanel/Settings/AutoSave/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/AutoSave/Hint&quot;,
&quot;text&quot;: &quot;Attempt to automatically save changes during editing when using a supporting saver&quot;
},
&quot;$:/language/ControlPanel/Settings/CamelCase/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/CamelCase/Caption&quot;,
&quot;text&quot;: &quot;Camel Case Wiki Links&quot;
},
&quot;$:/language/ControlPanel/Settings/CamelCase/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/CamelCase/Hint&quot;,
&quot;text&quot;: &quot;You can globally disable automatic linking of ~CamelCase phrases. Requires reload to take effect&quot;
},
&quot;$:/language/ControlPanel/Settings/CamelCase/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/CamelCase/Description&quot;,
&quot;text&quot;: &quot;Enable automatic ~CamelCase linking&quot;
},
&quot;$:/language/ControlPanel/Settings/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/Caption&quot;,
&quot;text&quot;: &quot;Settings&quot;
},
&quot;$:/language/ControlPanel/Settings/EditorToolbar/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/EditorToolbar/Caption&quot;,
&quot;text&quot;: &quot;Editor Toolbar&quot;
},
&quot;$:/language/ControlPanel/Settings/EditorToolbar/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/EditorToolbar/Hint&quot;,
&quot;text&quot;: &quot;Enable or disable the editor toolbar:&quot;
},
&quot;$:/language/ControlPanel/Settings/EditorToolbar/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/EditorToolbar/Description&quot;,
&quot;text&quot;: &quot;Show editor toolbar&quot;
},
&quot;$:/language/ControlPanel/Settings/InfoPanelMode/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/InfoPanelMode/Caption&quot;,
&quot;text&quot;: &quot;Tiddler Info Panel Mode&quot;
},
&quot;$:/language/ControlPanel/Settings/InfoPanelMode/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/InfoPanelMode/Hint&quot;,
&quot;text&quot;: &quot;Control when the tiddler info panel closes:&quot;
},
&quot;$:/language/ControlPanel/Settings/InfoPanelMode/Popup/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/InfoPanelMode/Popup/Description&quot;,
&quot;text&quot;: &quot;Tiddler info panel closes automatically&quot;
},
&quot;$:/language/ControlPanel/Settings/InfoPanelMode/Sticky/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/InfoPanelMode/Sticky/Description&quot;,
&quot;text&quot;: &quot;Tiddler info panel stays open until explicitly closed&quot;
},
&quot;$:/language/ControlPanel/Settings/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/Hint&quot;,
&quot;text&quot;: &quot;These settings let you customise the behaviour of TiddlyWiki.&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationAddressBar/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationAddressBar/Caption&quot;,
&quot;text&quot;: &quot;Navigation Address Bar&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationAddressBar/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationAddressBar/Hint&quot;,
&quot;text&quot;: &quot;Behaviour of the browser address bar when navigating to a tiddler:&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description&quot;,
&quot;text&quot;: &quot;Do not update the address bar&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description&quot;,
&quot;text&quot;: &quot;Include the target tiddler&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description&quot;,
&quot;text&quot;: &quot;Include the target tiddler and the current story sequence&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationHistory/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationHistory/Caption&quot;,
&quot;text&quot;: &quot;Navigation History&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationHistory/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationHistory/Hint&quot;,
&quot;text&quot;: &quot;Update browser history when navigating to a tiddler:&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationHistory/No/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationHistory/No/Description&quot;,
&quot;text&quot;: &quot;Do not update history&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description&quot;,
&quot;text&quot;: &quot;Update history&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption&quot;,
&quot;text&quot;: &quot;Permalink/permaview Mode&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Hint&quot;,
&quot;text&quot;: &quot;Choose how permalink/permaview is handled:&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/CopyToClipboard/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/CopyToClipboard/Description&quot;,
&quot;text&quot;: &quot;Copy permalink/permaview URL to clipboard&quot;
},
&quot;$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description&quot;,
&quot;text&quot;: &quot;Update address bar with permalink/permaview URL&quot;
},
&quot;$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption&quot;,
&quot;text&quot;: &quot;Performance Instrumentation&quot;
},
&quot;$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint&quot;,
&quot;text&quot;: &quot;Displays performance statistics in the browser developer console. Requires reload to take effect&quot;
},
&quot;$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description&quot;,
&quot;text&quot;: &quot;Enable performance instrumentation&quot;
},
&quot;$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption&quot;,
&quot;text&quot;: &quot;Toolbar Button Style&quot;
},
&quot;$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint&quot;,
&quot;text&quot;: &quot;Choose the style for toolbar buttons:&quot;
},
&quot;$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless&quot;,
&quot;text&quot;: &quot;Borderless&quot;
},
&quot;$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed&quot;,
&quot;text&quot;: &quot;Boxed&quot;
},
&quot;$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded&quot;,
&quot;text&quot;: &quot;Rounded&quot;
},
&quot;$:/language/ControlPanel/Settings/ToolbarButtons/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/ToolbarButtons/Caption&quot;,
&quot;text&quot;: &quot;Toolbar Buttons&quot;
},
&quot;$:/language/ControlPanel/Settings/ToolbarButtons/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/ToolbarButtons/Hint&quot;,
&quot;text&quot;: &quot;Default toolbar button appearance:&quot;
},
&quot;$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description&quot;,
&quot;text&quot;: &quot;Include icon&quot;
},
&quot;$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description&quot;,
&quot;text&quot;: &quot;Include text&quot;
},
&quot;$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption&quot;,
&quot;text&quot;: &quot;Default Sidebar Tab&quot;
},
&quot;$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint&quot;,
&quot;text&quot;: &quot;Specify which sidebar tab is displayed by default&quot;
},
&quot;$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption&quot;,
&quot;text&quot;: &quot;Default More Sidebar Tab&quot;
},
&quot;$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Hint&quot;,
&quot;text&quot;: &quot;Specify which More sidebar tab is displayed by default&quot;
},
&quot;$:/language/ControlPanel/Settings/LinkToBehaviour/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/LinkToBehaviour/Caption&quot;,
&quot;text&quot;: &quot;Tiddler Opening Behaviour&quot;
},
&quot;$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint&quot;,
&quot;text&quot;: &quot;Navigation from //within// the story river&quot;
},
&quot;$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint&quot;,
&quot;text&quot;: &quot;Navigation from //outside// the story river&quot;
},
&quot;$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove&quot;,
&quot;text&quot;: &quot;Open above the current tiddler&quot;
},
&quot;$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow&quot;,
&quot;text&quot;: &quot;Open below the current tiddler&quot;
},
&quot;$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop&quot;,
&quot;text&quot;: &quot;Open at the top of the story river&quot;
},
&quot;$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom&quot;,
&quot;text&quot;: &quot;Open at the bottom of the story river&quot;
},
&quot;$:/language/ControlPanel/Settings/TitleLinks/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/TitleLinks/Caption&quot;,
&quot;text&quot;: &quot;Tiddler Titles&quot;
},
&quot;$:/language/ControlPanel/Settings/TitleLinks/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/TitleLinks/Hint&quot;,
&quot;text&quot;: &quot;Optionally display tiddler titles as links&quot;
},
&quot;$:/language/ControlPanel/Settings/TitleLinks/No/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/TitleLinks/No/Description&quot;,
&quot;text&quot;: &quot;Do not display tiddler titles as links&quot;
},
&quot;$:/language/ControlPanel/Settings/TitleLinks/Yes/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/TitleLinks/Yes/Description&quot;,
&quot;text&quot;: &quot;Display tiddler titles as links&quot;
},
&quot;$:/language/ControlPanel/Settings/MissingLinks/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/MissingLinks/Caption&quot;,
&quot;text&quot;: &quot;Wiki Links&quot;
},
&quot;$:/language/ControlPanel/Settings/MissingLinks/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/MissingLinks/Hint&quot;,
&quot;text&quot;: &quot;Choose whether to link to tiddlers that do not exist yet&quot;
},
&quot;$:/language/ControlPanel/Settings/MissingLinks/Description&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Settings/MissingLinks/Description&quot;,
&quot;text&quot;: &quot;Enable links to missing tiddlers&quot;
},
&quot;$:/language/ControlPanel/StoryView/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/StoryView/Caption&quot;,
&quot;text&quot;: &quot;Story View&quot;
},
&quot;$:/language/ControlPanel/StoryView/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/StoryView/Prompt&quot;,
&quot;text&quot;: &quot;Current view:&quot;
},
&quot;$:/language/ControlPanel/Stylesheets/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Stylesheets/Caption&quot;,
&quot;text&quot;: &quot;Stylesheets&quot;
},
&quot;$:/language/ControlPanel/Stylesheets/Expand/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Stylesheets/Expand/Caption&quot;,
&quot;text&quot;: &quot;Expand All&quot;
},
&quot;$:/language/ControlPanel/Stylesheets/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Stylesheets/Hint&quot;,
&quot;text&quot;: &quot;This is the rendered CSS of the current stylesheet tiddlers tagged with &lt;&lt;tag \&quot;$:/tags/Stylesheet\&quot;&gt;&gt;&quot;
},
&quot;$:/language/ControlPanel/Stylesheets/Restore/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Stylesheets/Restore/Caption&quot;,
&quot;text&quot;: &quot;Restore&quot;
},
&quot;$:/language/ControlPanel/Theme/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Theme/Caption&quot;,
&quot;text&quot;: &quot;Theme&quot;
},
&quot;$:/language/ControlPanel/Theme/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Theme/Prompt&quot;,
&quot;text&quot;: &quot;Current theme:&quot;
},
&quot;$:/language/ControlPanel/TiddlerFields/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/TiddlerFields/Caption&quot;,
&quot;text&quot;: &quot;Tiddler Fields&quot;
},
&quot;$:/language/ControlPanel/TiddlerFields/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/TiddlerFields/Hint&quot;,
&quot;text&quot;: &quot;This is the full set of TiddlerFields in use in this wiki (including system tiddlers but excluding shadow tiddlers).&quot;
},
&quot;$:/language/ControlPanel/Toolbars/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Toolbars/Caption&quot;,
&quot;text&quot;: &quot;Toolbars&quot;
},
&quot;$:/language/ControlPanel/Toolbars/EditToolbar/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Toolbars/EditToolbar/Caption&quot;,
&quot;text&quot;: &quot;Edit Toolbar&quot;
},
&quot;$:/language/ControlPanel/Toolbars/EditToolbar/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Toolbars/EditToolbar/Hint&quot;,
&quot;text&quot;: &quot;Choose which buttons are displayed for tiddlers in edit mode. Drag and drop to change the ordering&quot;
},
&quot;$:/language/ControlPanel/Toolbars/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Toolbars/Hint&quot;,
&quot;text&quot;: &quot;Select which toolbar buttons are displayed&quot;
},
&quot;$:/language/ControlPanel/Toolbars/PageControls/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Toolbars/PageControls/Caption&quot;,
&quot;text&quot;: &quot;Page Toolbar&quot;
},
&quot;$:/language/ControlPanel/Toolbars/PageControls/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Toolbars/PageControls/Hint&quot;,
&quot;text&quot;: &quot;Choose which buttons are displayed on the main page toolbar. Drag and drop to change the ordering&quot;
},
&quot;$:/language/ControlPanel/Toolbars/EditorToolbar/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Toolbars/EditorToolbar/Caption&quot;,
&quot;text&quot;: &quot;Editor Toolbar&quot;
},
&quot;$:/language/ControlPanel/Toolbars/EditorToolbar/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Toolbars/EditorToolbar/Hint&quot;,
&quot;text&quot;: &quot;Choose which buttons are displayed in the editor toolbar. Note that some buttons will only appear when editing tiddlers of a certain type. Drag and drop to change the ordering&quot;
},
&quot;$:/language/ControlPanel/Toolbars/ViewToolbar/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Toolbars/ViewToolbar/Caption&quot;,
&quot;text&quot;: &quot;View Toolbar&quot;
},
&quot;$:/language/ControlPanel/Toolbars/ViewToolbar/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Toolbars/ViewToolbar/Hint&quot;,
&quot;text&quot;: &quot;Choose which buttons are displayed for tiddlers in view mode. Drag and drop to change the ordering&quot;
},
&quot;$:/language/ControlPanel/Tools/Download/Full/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ControlPanel/Tools/Download/Full/Caption&quot;,
&quot;text&quot;: &quot;Download full wiki&quot;
},
&quot;$:/language/Date/DaySuffix/1&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/1&quot;,
&quot;text&quot;: &quot;st&quot;
},
&quot;$:/language/Date/DaySuffix/2&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/2&quot;,
&quot;text&quot;: &quot;nd&quot;
},
&quot;$:/language/Date/DaySuffix/3&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/3&quot;,
&quot;text&quot;: &quot;rd&quot;
},
&quot;$:/language/Date/DaySuffix/4&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/4&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/5&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/5&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/6&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/6&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/7&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/7&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/8&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/8&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/9&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/9&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/10&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/10&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/11&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/11&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/12&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/12&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/13&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/13&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/14&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/14&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/15&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/15&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/16&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/16&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/17&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/17&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/18&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/18&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/19&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/19&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/20&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/20&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/21&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/21&quot;,
&quot;text&quot;: &quot;st&quot;
},
&quot;$:/language/Date/DaySuffix/22&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/22&quot;,
&quot;text&quot;: &quot;nd&quot;
},
&quot;$:/language/Date/DaySuffix/23&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/23&quot;,
&quot;text&quot;: &quot;rd&quot;
},
&quot;$:/language/Date/DaySuffix/24&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/24&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/25&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/25&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/26&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/26&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/27&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/27&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/28&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/28&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/29&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/29&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/30&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/30&quot;,
&quot;text&quot;: &quot;th&quot;
},
&quot;$:/language/Date/DaySuffix/31&quot;: {
&quot;title&quot;: &quot;$:/language/Date/DaySuffix/31&quot;,
&quot;text&quot;: &quot;st&quot;
},
&quot;$:/language/Date/Long/Day/0&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Day/0&quot;,
&quot;text&quot;: &quot;Sunday&quot;
},
&quot;$:/language/Date/Long/Day/1&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Day/1&quot;,
&quot;text&quot;: &quot;Monday&quot;
},
&quot;$:/language/Date/Long/Day/2&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Day/2&quot;,
&quot;text&quot;: &quot;Tuesday&quot;
},
&quot;$:/language/Date/Long/Day/3&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Day/3&quot;,
&quot;text&quot;: &quot;Wednesday&quot;
},
&quot;$:/language/Date/Long/Day/4&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Day/4&quot;,
&quot;text&quot;: &quot;Thursday&quot;
},
&quot;$:/language/Date/Long/Day/5&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Day/5&quot;,
&quot;text&quot;: &quot;Friday&quot;
},
&quot;$:/language/Date/Long/Day/6&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Day/6&quot;,
&quot;text&quot;: &quot;Saturday&quot;
},
&quot;$:/language/Date/Long/Month/1&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/1&quot;,
&quot;text&quot;: &quot;January&quot;
},
&quot;$:/language/Date/Long/Month/2&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/2&quot;,
&quot;text&quot;: &quot;February&quot;
},
&quot;$:/language/Date/Long/Month/3&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/3&quot;,
&quot;text&quot;: &quot;March&quot;
},
&quot;$:/language/Date/Long/Month/4&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/4&quot;,
&quot;text&quot;: &quot;April&quot;
},
&quot;$:/language/Date/Long/Month/5&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/5&quot;,
&quot;text&quot;: &quot;May&quot;
},
&quot;$:/language/Date/Long/Month/6&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/6&quot;,
&quot;text&quot;: &quot;June&quot;
},
&quot;$:/language/Date/Long/Month/7&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/7&quot;,
&quot;text&quot;: &quot;July&quot;
},
&quot;$:/language/Date/Long/Month/8&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/8&quot;,
&quot;text&quot;: &quot;August&quot;
},
&quot;$:/language/Date/Long/Month/9&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/9&quot;,
&quot;text&quot;: &quot;September&quot;
},
&quot;$:/language/Date/Long/Month/10&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/10&quot;,
&quot;text&quot;: &quot;October&quot;
},
&quot;$:/language/Date/Long/Month/11&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/11&quot;,
&quot;text&quot;: &quot;November&quot;
},
&quot;$:/language/Date/Long/Month/12&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Long/Month/12&quot;,
&quot;text&quot;: &quot;December&quot;
},
&quot;$:/language/Date/Period/am&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Period/am&quot;,
&quot;text&quot;: &quot;am&quot;
},
&quot;$:/language/Date/Period/pm&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Period/pm&quot;,
&quot;text&quot;: &quot;pm&quot;
},
&quot;$:/language/Date/Short/Day/0&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Day/0&quot;,
&quot;text&quot;: &quot;Sun&quot;
},
&quot;$:/language/Date/Short/Day/1&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Day/1&quot;,
&quot;text&quot;: &quot;Mon&quot;
},
&quot;$:/language/Date/Short/Day/2&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Day/2&quot;,
&quot;text&quot;: &quot;Tue&quot;
},
&quot;$:/language/Date/Short/Day/3&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Day/3&quot;,
&quot;text&quot;: &quot;Wed&quot;
},
&quot;$:/language/Date/Short/Day/4&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Day/4&quot;,
&quot;text&quot;: &quot;Thu&quot;
},
&quot;$:/language/Date/Short/Day/5&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Day/5&quot;,
&quot;text&quot;: &quot;Fri&quot;
},
&quot;$:/language/Date/Short/Day/6&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Day/6&quot;,
&quot;text&quot;: &quot;Sat&quot;
},
&quot;$:/language/Date/Short/Month/1&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/1&quot;,
&quot;text&quot;: &quot;Jan&quot;
},
&quot;$:/language/Date/Short/Month/2&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/2&quot;,
&quot;text&quot;: &quot;Feb&quot;
},
&quot;$:/language/Date/Short/Month/3&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/3&quot;,
&quot;text&quot;: &quot;Mar&quot;
},
&quot;$:/language/Date/Short/Month/4&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/4&quot;,
&quot;text&quot;: &quot;Apr&quot;
},
&quot;$:/language/Date/Short/Month/5&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/5&quot;,
&quot;text&quot;: &quot;May&quot;
},
&quot;$:/language/Date/Short/Month/6&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/6&quot;,
&quot;text&quot;: &quot;Jun&quot;
},
&quot;$:/language/Date/Short/Month/7&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/7&quot;,
&quot;text&quot;: &quot;Jul&quot;
},
&quot;$:/language/Date/Short/Month/8&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/8&quot;,
&quot;text&quot;: &quot;Aug&quot;
},
&quot;$:/language/Date/Short/Month/9&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/9&quot;,
&quot;text&quot;: &quot;Sep&quot;
},
&quot;$:/language/Date/Short/Month/10&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/10&quot;,
&quot;text&quot;: &quot;Oct&quot;
},
&quot;$:/language/Date/Short/Month/11&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/11&quot;,
&quot;text&quot;: &quot;Nov&quot;
},
&quot;$:/language/Date/Short/Month/12&quot;: {
&quot;title&quot;: &quot;$:/language/Date/Short/Month/12&quot;,
&quot;text&quot;: &quot;Dec&quot;
},
&quot;$:/language/RelativeDate/Future/Days&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Future/Days&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; days from now&quot;
},
&quot;$:/language/RelativeDate/Future/Hours&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Future/Hours&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; hours from now&quot;
},
&quot;$:/language/RelativeDate/Future/Minutes&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Future/Minutes&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; minutes from now&quot;
},
&quot;$:/language/RelativeDate/Future/Months&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Future/Months&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; months from now&quot;
},
&quot;$:/language/RelativeDate/Future/Second&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Future/Second&quot;,
&quot;text&quot;: &quot;1 second from now&quot;
},
&quot;$:/language/RelativeDate/Future/Seconds&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Future/Seconds&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; seconds from now&quot;
},
&quot;$:/language/RelativeDate/Future/Years&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Future/Years&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; years from now&quot;
},
&quot;$:/language/RelativeDate/Past/Days&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Past/Days&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; days ago&quot;
},
&quot;$:/language/RelativeDate/Past/Hours&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Past/Hours&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; hours ago&quot;
},
&quot;$:/language/RelativeDate/Past/Minutes&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Past/Minutes&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; minutes ago&quot;
},
&quot;$:/language/RelativeDate/Past/Months&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Past/Months&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; months ago&quot;
},
&quot;$:/language/RelativeDate/Past/Second&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Past/Second&quot;,
&quot;text&quot;: &quot;1 second ago&quot;
},
&quot;$:/language/RelativeDate/Past/Seconds&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Past/Seconds&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; seconds ago&quot;
},
&quot;$:/language/RelativeDate/Past/Years&quot;: {
&quot;title&quot;: &quot;$:/language/RelativeDate/Past/Years&quot;,
&quot;text&quot;: &quot;&lt;&lt;period&gt;&gt; years ago&quot;
},
&quot;$:/language/Docs/ModuleTypes/allfilteroperator&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/allfilteroperator&quot;,
&quot;text&quot;: &quot;A sub-operator for the ''all'' filter operator.&quot;
},
&quot;$:/language/Docs/ModuleTypes/animation&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/animation&quot;,
&quot;text&quot;: &quot;Animations that may be used with the RevealWidget.&quot;
},
&quot;$:/language/Docs/ModuleTypes/authenticator&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/authenticator&quot;,
&quot;text&quot;: &quot;Defines how requests are authenticated by the built-in HTTP server.&quot;
},
&quot;$:/language/Docs/ModuleTypes/bitmapeditoroperation&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/bitmapeditoroperation&quot;,
&quot;text&quot;: &quot;A bitmap editor toolbar operation.&quot;
},
&quot;$:/language/Docs/ModuleTypes/command&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/command&quot;,
&quot;text&quot;: &quot;Commands that can be executed under Node.js.&quot;
},
&quot;$:/language/Docs/ModuleTypes/config&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/config&quot;,
&quot;text&quot;: &quot;Data to be inserted into `$tw.config`.&quot;
},
&quot;$:/language/Docs/ModuleTypes/filteroperator&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/filteroperator&quot;,
&quot;text&quot;: &quot;Individual filter operator methods.&quot;
},
&quot;$:/language/Docs/ModuleTypes/global&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/global&quot;,
&quot;text&quot;: &quot;Global data to be inserted into `$tw`.&quot;
},
&quot;$:/language/Docs/ModuleTypes/info&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/info&quot;,
&quot;text&quot;: &quot;Publishes system information via the [[$:/temp/info-plugin]] pseudo-plugin.&quot;
},
&quot;$:/language/Docs/ModuleTypes/isfilteroperator&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/isfilteroperator&quot;,
&quot;text&quot;: &quot;Operands for the ''is'' filter operator.&quot;
},
&quot;$:/language/Docs/ModuleTypes/library&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/library&quot;,
&quot;text&quot;: &quot;Generic module type for general purpose JavaScript modules.&quot;
},
&quot;$:/language/Docs/ModuleTypes/macro&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/macro&quot;,
&quot;text&quot;: &quot;JavaScript macro definitions.&quot;
},
&quot;$:/language/Docs/ModuleTypes/parser&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/parser&quot;,
&quot;text&quot;: &quot;Parsers for different content types.&quot;
},
&quot;$:/language/Docs/ModuleTypes/route&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/route&quot;,
&quot;text&quot;: &quot;Defines how individual URL patterns are handled by the built-in HTTP server.&quot;
},
&quot;$:/language/Docs/ModuleTypes/saver&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/saver&quot;,
&quot;text&quot;: &quot;Savers handle different methods for saving files from the browser.&quot;
},
&quot;$:/language/Docs/ModuleTypes/startup&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/startup&quot;,
&quot;text&quot;: &quot;Startup functions.&quot;
},
&quot;$:/language/Docs/ModuleTypes/storyview&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/storyview&quot;,
&quot;text&quot;: &quot;Story views customise the animation and behaviour of list widgets.&quot;
},
&quot;$:/language/Docs/ModuleTypes/texteditoroperation&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/texteditoroperation&quot;,
&quot;text&quot;: &quot;A text editor toolbar operation.&quot;
},
&quot;$:/language/Docs/ModuleTypes/tiddlerdeserializer&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/tiddlerdeserializer&quot;,
&quot;text&quot;: &quot;Converts different content types into tiddlers.&quot;
},
&quot;$:/language/Docs/ModuleTypes/tiddlerfield&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/tiddlerfield&quot;,
&quot;text&quot;: &quot;Defines the behaviour of an individual tiddler field.&quot;
},
&quot;$:/language/Docs/ModuleTypes/tiddlermethod&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/tiddlermethod&quot;,
&quot;text&quot;: &quot;Adds methods to the `$tw.Tiddler` prototype.&quot;
},
&quot;$:/language/Docs/ModuleTypes/upgrader&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/upgrader&quot;,
&quot;text&quot;: &quot;Applies upgrade processing to tiddlers during an upgrade/import.&quot;
},
&quot;$:/language/Docs/ModuleTypes/utils&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/utils&quot;,
&quot;text&quot;: &quot;Adds methods to `$tw.utils`.&quot;
},
&quot;$:/language/Docs/ModuleTypes/utils-node&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/utils-node&quot;,
&quot;text&quot;: &quot;Adds Node.js-specific methods to `$tw.utils`.&quot;
},
&quot;$:/language/Docs/ModuleTypes/widget&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/widget&quot;,
&quot;text&quot;: &quot;Widgets encapsulate DOM rendering and refreshing.&quot;
},
&quot;$:/language/Docs/ModuleTypes/wikimethod&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/wikimethod&quot;,
&quot;text&quot;: &quot;Adds methods to `$tw.Wiki`.&quot;
},
&quot;$:/language/Docs/ModuleTypes/wikirule&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/ModuleTypes/wikirule&quot;,
&quot;text&quot;: &quot;Individual parser rules for the main WikiText parser.&quot;
},
&quot;$:/language/Docs/PaletteColours/alert-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/alert-background&quot;,
&quot;text&quot;: &quot;Alert background&quot;
},
&quot;$:/language/Docs/PaletteColours/alert-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/alert-border&quot;,
&quot;text&quot;: &quot;Alert border&quot;
},
&quot;$:/language/Docs/PaletteColours/alert-highlight&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/alert-highlight&quot;,
&quot;text&quot;: &quot;Alert highlight&quot;
},
&quot;$:/language/Docs/PaletteColours/alert-muted-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/alert-muted-foreground&quot;,
&quot;text&quot;: &quot;Alert muted foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/background&quot;,
&quot;text&quot;: &quot;General background&quot;
},
&quot;$:/language/Docs/PaletteColours/blockquote-bar&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/blockquote-bar&quot;,
&quot;text&quot;: &quot;Blockquote bar&quot;
},
&quot;$:/language/Docs/PaletteColours/button-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/button-background&quot;,
&quot;text&quot;: &quot;Default button background&quot;
},
&quot;$:/language/Docs/PaletteColours/button-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/button-border&quot;,
&quot;text&quot;: &quot;Default button border&quot;
},
&quot;$:/language/Docs/PaletteColours/button-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/button-foreground&quot;,
&quot;text&quot;: &quot;Default button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/dirty-indicator&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/dirty-indicator&quot;,
&quot;text&quot;: &quot;Unsaved changes indicator&quot;
},
&quot;$:/language/Docs/PaletteColours/code-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/code-background&quot;,
&quot;text&quot;: &quot;Code background&quot;
},
&quot;$:/language/Docs/PaletteColours/code-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/code-border&quot;,
&quot;text&quot;: &quot;Code border&quot;
},
&quot;$:/language/Docs/PaletteColours/code-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/code-foreground&quot;,
&quot;text&quot;: &quot;Code foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/download-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/download-background&quot;,
&quot;text&quot;: &quot;Download button background&quot;
},
&quot;$:/language/Docs/PaletteColours/download-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/download-foreground&quot;,
&quot;text&quot;: &quot;Download button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/dragger-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/dragger-background&quot;,
&quot;text&quot;: &quot;Dragger background&quot;
},
&quot;$:/language/Docs/PaletteColours/dragger-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/dragger-foreground&quot;,
&quot;text&quot;: &quot;Dragger foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/dropdown-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/dropdown-background&quot;,
&quot;text&quot;: &quot;Dropdown background&quot;
},
&quot;$:/language/Docs/PaletteColours/dropdown-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/dropdown-border&quot;,
&quot;text&quot;: &quot;Dropdown border&quot;
},
&quot;$:/language/Docs/PaletteColours/dropdown-tab-background-selected&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/dropdown-tab-background-selected&quot;,
&quot;text&quot;: &quot;Dropdown tab background for selected tabs&quot;
},
&quot;$:/language/Docs/PaletteColours/dropdown-tab-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/dropdown-tab-background&quot;,
&quot;text&quot;: &quot;Dropdown tab background&quot;
},
&quot;$:/language/Docs/PaletteColours/dropzone-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/dropzone-background&quot;,
&quot;text&quot;: &quot;Dropzone background&quot;
},
&quot;$:/language/Docs/PaletteColours/external-link-background-hover&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/external-link-background-hover&quot;,
&quot;text&quot;: &quot;External link background hover&quot;
},
&quot;$:/language/Docs/PaletteColours/external-link-background-visited&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/external-link-background-visited&quot;,
&quot;text&quot;: &quot;External link background visited&quot;
},
&quot;$:/language/Docs/PaletteColours/external-link-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/external-link-background&quot;,
&quot;text&quot;: &quot;External link background&quot;
},
&quot;$:/language/Docs/PaletteColours/external-link-foreground-hover&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/external-link-foreground-hover&quot;,
&quot;text&quot;: &quot;External link foreground hover&quot;
},
&quot;$:/language/Docs/PaletteColours/external-link-foreground-visited&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/external-link-foreground-visited&quot;,
&quot;text&quot;: &quot;External link foreground visited&quot;
},
&quot;$:/language/Docs/PaletteColours/external-link-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/external-link-foreground&quot;,
&quot;text&quot;: &quot;External link foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/foreground&quot;,
&quot;text&quot;: &quot;General foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/menubar-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/menubar-background&quot;,
&quot;text&quot;: &quot;Menu bar background&quot;
},
&quot;$:/language/Docs/PaletteColours/menubar-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/menubar-foreground&quot;,
&quot;text&quot;: &quot;Menu bar foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/message-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/message-background&quot;,
&quot;text&quot;: &quot;Message box background&quot;
},
&quot;$:/language/Docs/PaletteColours/message-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/message-border&quot;,
&quot;text&quot;: &quot;Message box border&quot;
},
&quot;$:/language/Docs/PaletteColours/message-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/message-foreground&quot;,
&quot;text&quot;: &quot;Message box foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/modal-backdrop&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/modal-backdrop&quot;,
&quot;text&quot;: &quot;Modal backdrop&quot;
},
&quot;$:/language/Docs/PaletteColours/modal-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/modal-background&quot;,
&quot;text&quot;: &quot;Modal background&quot;
},
&quot;$:/language/Docs/PaletteColours/modal-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/modal-border&quot;,
&quot;text&quot;: &quot;Modal border&quot;
},
&quot;$:/language/Docs/PaletteColours/modal-footer-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/modal-footer-background&quot;,
&quot;text&quot;: &quot;Modal footer background&quot;
},
&quot;$:/language/Docs/PaletteColours/modal-footer-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/modal-footer-border&quot;,
&quot;text&quot;: &quot;Modal footer border&quot;
},
&quot;$:/language/Docs/PaletteColours/modal-header-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/modal-header-border&quot;,
&quot;text&quot;: &quot;Modal header border&quot;
},
&quot;$:/language/Docs/PaletteColours/muted-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/muted-foreground&quot;,
&quot;text&quot;: &quot;General muted foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/notification-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/notification-background&quot;,
&quot;text&quot;: &quot;Notification background&quot;
},
&quot;$:/language/Docs/PaletteColours/notification-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/notification-border&quot;,
&quot;text&quot;: &quot;Notification border&quot;
},
&quot;$:/language/Docs/PaletteColours/page-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/page-background&quot;,
&quot;text&quot;: &quot;Page background&quot;
},
&quot;$:/language/Docs/PaletteColours/pre-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/pre-background&quot;,
&quot;text&quot;: &quot;Preformatted code background&quot;
},
&quot;$:/language/Docs/PaletteColours/pre-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/pre-border&quot;,
&quot;text&quot;: &quot;Preformatted code border&quot;
},
&quot;$:/language/Docs/PaletteColours/primary&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/primary&quot;,
&quot;text&quot;: &quot;General primary&quot;
},
&quot;$:/language/Docs/PaletteColours/select-tag-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/select-tag-background&quot;,
&quot;text&quot;: &quot;`&lt;select&gt;` element background&quot;
},
&quot;$:/language/Docs/PaletteColours/select-tag-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/select-tag-foreground&quot;,
&quot;text&quot;: &quot;`&lt;select&gt;` element text&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-button-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-button-foreground&quot;,
&quot;text&quot;: &quot;Sidebar button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-controls-foreground-hover&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-controls-foreground-hover&quot;,
&quot;text&quot;: &quot;Sidebar controls foreground hover&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-controls-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-controls-foreground&quot;,
&quot;text&quot;: &quot;Sidebar controls foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-foreground-shadow&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-foreground-shadow&quot;,
&quot;text&quot;: &quot;Sidebar foreground shadow&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-foreground&quot;,
&quot;text&quot;: &quot;Sidebar foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-muted-foreground-hover&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-muted-foreground-hover&quot;,
&quot;text&quot;: &quot;Sidebar muted foreground hover&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-muted-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-muted-foreground&quot;,
&quot;text&quot;: &quot;Sidebar muted foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-tab-background-selected&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-tab-background-selected&quot;,
&quot;text&quot;: &quot;Sidebar tab background for selected tabs&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-tab-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-tab-background&quot;,
&quot;text&quot;: &quot;Sidebar tab background&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-tab-border-selected&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-tab-border-selected&quot;,
&quot;text&quot;: &quot;Sidebar tab border for selected tabs&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-tab-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-tab-border&quot;,
&quot;text&quot;: &quot;Sidebar tab border&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-tab-divider&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-tab-divider&quot;,
&quot;text&quot;: &quot;Sidebar tab divider&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-tab-foreground-selected&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-tab-foreground-selected&quot;,
&quot;text&quot;: &quot;Sidebar tab foreground for selected tabs&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-tab-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-tab-foreground&quot;,
&quot;text&quot;: &quot;Sidebar tab foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground-hover&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground-hover&quot;,
&quot;text&quot;: &quot;Sidebar tiddler link foreground hover&quot;
},
&quot;$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground&quot;,
&quot;text&quot;: &quot;Sidebar tiddler link foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/site-title-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/site-title-foreground&quot;,
&quot;text&quot;: &quot;Site title foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/static-alert-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/static-alert-foreground&quot;,
&quot;text&quot;: &quot;Static alert foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/tab-background-selected&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tab-background-selected&quot;,
&quot;text&quot;: &quot;Tab background for selected tabs&quot;
},
&quot;$:/language/Docs/PaletteColours/tab-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tab-background&quot;,
&quot;text&quot;: &quot;Tab background&quot;
},
&quot;$:/language/Docs/PaletteColours/tab-border-selected&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tab-border-selected&quot;,
&quot;text&quot;: &quot;Tab border for selected tabs&quot;
},
&quot;$:/language/Docs/PaletteColours/tab-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tab-border&quot;,
&quot;text&quot;: &quot;Tab border&quot;
},
&quot;$:/language/Docs/PaletteColours/tab-divider&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tab-divider&quot;,
&quot;text&quot;: &quot;Tab divider&quot;
},
&quot;$:/language/Docs/PaletteColours/tab-foreground-selected&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tab-foreground-selected&quot;,
&quot;text&quot;: &quot;Tab foreground for selected tabs&quot;
},
&quot;$:/language/Docs/PaletteColours/tab-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tab-foreground&quot;,
&quot;text&quot;: &quot;Tab foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/table-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/table-border&quot;,
&quot;text&quot;: &quot;Table border&quot;
},
&quot;$:/language/Docs/PaletteColours/table-footer-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/table-footer-background&quot;,
&quot;text&quot;: &quot;Table footer background&quot;
},
&quot;$:/language/Docs/PaletteColours/table-header-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/table-header-background&quot;,
&quot;text&quot;: &quot;Table header background&quot;
},
&quot;$:/language/Docs/PaletteColours/tag-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tag-background&quot;,
&quot;text&quot;: &quot;Tag background&quot;
},
&quot;$:/language/Docs/PaletteColours/tag-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tag-foreground&quot;,
&quot;text&quot;: &quot;Tag foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-background&quot;,
&quot;text&quot;: &quot;Tiddler background&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-border&quot;,
&quot;text&quot;: &quot;Tiddler border&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-controls-foreground-hover&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-controls-foreground-hover&quot;,
&quot;text&quot;: &quot;Tiddler controls foreground hover&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-controls-foreground-selected&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-controls-foreground-selected&quot;,
&quot;text&quot;: &quot;Tiddler controls foreground for selected controls&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-controls-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-controls-foreground&quot;,
&quot;text&quot;: &quot;Tiddler controls foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-editor-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-editor-background&quot;,
&quot;text&quot;: &quot;Tiddler editor background&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-editor-border-image&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-editor-border-image&quot;,
&quot;text&quot;: &quot;Tiddler editor border image&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-editor-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-editor-border&quot;,
&quot;text&quot;: &quot;Tiddler editor border&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-editor-fields-even&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-editor-fields-even&quot;,
&quot;text&quot;: &quot;Tiddler editor background for even fields&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-editor-fields-odd&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-editor-fields-odd&quot;,
&quot;text&quot;: &quot;Tiddler editor background for odd fields&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-info-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-info-background&quot;,
&quot;text&quot;: &quot;Tiddler info panel background&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-info-border&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-info-border&quot;,
&quot;text&quot;: &quot;Tiddler info panel border&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-info-tab-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-info-tab-background&quot;,
&quot;text&quot;: &quot;Tiddler info panel tab background&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-link-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-link-background&quot;,
&quot;text&quot;: &quot;Tiddler link background&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-link-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-link-foreground&quot;,
&quot;text&quot;: &quot;Tiddler link foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-subtitle-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-subtitle-foreground&quot;,
&quot;text&quot;: &quot;Tiddler subtitle foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/tiddler-title-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/tiddler-title-foreground&quot;,
&quot;text&quot;: &quot;Tiddler title foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/toolbar-new-button&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/toolbar-new-button&quot;,
&quot;text&quot;: &quot;Toolbar 'new tiddler' button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/toolbar-options-button&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/toolbar-options-button&quot;,
&quot;text&quot;: &quot;Toolbar 'options' button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/toolbar-save-button&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/toolbar-save-button&quot;,
&quot;text&quot;: &quot;Toolbar 'save' button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/toolbar-info-button&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/toolbar-info-button&quot;,
&quot;text&quot;: &quot;Toolbar 'info' button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/toolbar-edit-button&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/toolbar-edit-button&quot;,
&quot;text&quot;: &quot;Toolbar 'edit' button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/toolbar-close-button&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/toolbar-close-button&quot;,
&quot;text&quot;: &quot;Toolbar 'close' button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/toolbar-delete-button&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/toolbar-delete-button&quot;,
&quot;text&quot;: &quot;Toolbar 'delete' button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/toolbar-cancel-button&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/toolbar-cancel-button&quot;,
&quot;text&quot;: &quot;Toolbar 'cancel' button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/toolbar-done-button&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/toolbar-done-button&quot;,
&quot;text&quot;: &quot;Toolbar 'done' button foreground&quot;
},
&quot;$:/language/Docs/PaletteColours/untagged-background&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/untagged-background&quot;,
&quot;text&quot;: &quot;Untagged pill background&quot;
},
&quot;$:/language/Docs/PaletteColours/very-muted-foreground&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/PaletteColours/very-muted-foreground&quot;,
&quot;text&quot;: &quot;Very muted foreground&quot;
},
&quot;$:/language/EditTemplate/Body/External/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Body/External/Hint&quot;,
&quot;text&quot;: &quot;This tiddler shows content stored outside of the main TiddlyWiki file. You can edit the tags and fields but cannot directly edit the content itself&quot;
},
&quot;$:/language/EditTemplate/Body/Placeholder&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Body/Placeholder&quot;,
&quot;text&quot;: &quot;Type the text for this tiddler&quot;
},
&quot;$:/language/EditTemplate/Body/Preview/Type/Output&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Body/Preview/Type/Output&quot;,
&quot;text&quot;: &quot;output&quot;
},
&quot;$:/language/EditTemplate/Field/Remove/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Field/Remove/Caption&quot;,
&quot;text&quot;: &quot;remove field&quot;
},
&quot;$:/language/EditTemplate/Field/Remove/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Field/Remove/Hint&quot;,
&quot;text&quot;: &quot;Remove field&quot;
},
&quot;$:/language/EditTemplate/Field/Dropdown/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Field/Dropdown/Caption&quot;,
&quot;text&quot;: &quot;field list&quot;
},
&quot;$:/language/EditTemplate/Field/Dropdown/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Field/Dropdown/Hint&quot;,
&quot;text&quot;: &quot;Show field list&quot;
},
&quot;$:/language/EditTemplate/Fields/Add/Button&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Fields/Add/Button&quot;,
&quot;text&quot;: &quot;add&quot;
},
&quot;$:/language/EditTemplate/Fields/Add/Button/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Fields/Add/Button/Hint&quot;,
&quot;text&quot;: &quot;Add the new field to the tiddler&quot;
},
&quot;$:/language/EditTemplate/Fields/Add/Name/Placeholder&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Fields/Add/Name/Placeholder&quot;,
&quot;text&quot;: &quot;field name&quot;
},
&quot;$:/language/EditTemplate/Fields/Add/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Fields/Add/Prompt&quot;,
&quot;text&quot;: &quot;Add a new field:&quot;
},
&quot;$:/language/EditTemplate/Fields/Add/Value/Placeholder&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Fields/Add/Value/Placeholder&quot;,
&quot;text&quot;: &quot;field value&quot;
},
&quot;$:/language/EditTemplate/Fields/Add/Dropdown/System&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Fields/Add/Dropdown/System&quot;,
&quot;text&quot;: &quot;System fields&quot;
},
&quot;$:/language/EditTemplate/Fields/Add/Dropdown/User&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Fields/Add/Dropdown/User&quot;,
&quot;text&quot;: &quot;User fields&quot;
},
&quot;$:/language/EditTemplate/Shadow/Warning&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Shadow/Warning&quot;,
&quot;text&quot;: &quot;This is a shadow tiddler. Any changes you make will override the default version from the plugin &lt;&lt;pluginLink&gt;&gt;&quot;
},
&quot;$:/language/EditTemplate/Shadow/OverriddenWarning&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Shadow/OverriddenWarning&quot;,
&quot;text&quot;: &quot;This is a modified shadow tiddler. You can revert to the default version in the plugin &lt;&lt;pluginLink&gt;&gt; by deleting this tiddler&quot;
},
&quot;$:/language/EditTemplate/Tags/Add/Button&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Tags/Add/Button&quot;,
&quot;text&quot;: &quot;add&quot;
},
&quot;$:/language/EditTemplate/Tags/Add/Button/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Tags/Add/Button/Hint&quot;,
&quot;text&quot;: &quot;add tag&quot;
},
&quot;$:/language/EditTemplate/Tags/Add/Placeholder&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Tags/Add/Placeholder&quot;,
&quot;text&quot;: &quot;tag name&quot;
},
&quot;$:/language/EditTemplate/Tags/ClearInput/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Tags/ClearInput/Caption&quot;,
&quot;text&quot;: &quot;clear input&quot;
},
&quot;$:/language/EditTemplate/Tags/ClearInput/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Tags/ClearInput/Hint&quot;,
&quot;text&quot;: &quot;Clear tag input&quot;
},
&quot;$:/language/EditTemplate/Tags/Dropdown/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Tags/Dropdown/Caption&quot;,
&quot;text&quot;: &quot;tag list&quot;
},
&quot;$:/language/EditTemplate/Tags/Dropdown/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Tags/Dropdown/Hint&quot;,
&quot;text&quot;: &quot;Show tag list&quot;
},
&quot;$:/language/EditTemplate/Title/BadCharacterWarning&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Title/BadCharacterWarning&quot;,
&quot;text&quot;: &quot;Warning: avoid using any of the characters &lt;&lt;bad-chars&gt;&gt; in tiddler titles&quot;
},
&quot;$:/language/EditTemplate/Title/Exists/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Title/Exists/Prompt&quot;,
&quot;text&quot;: &quot;Target tiddler already exists&quot;
},
&quot;$:/language/EditTemplate/Title/Relink/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Title/Relink/Prompt&quot;,
&quot;text&quot;: &quot;Update ''&lt;$text text=&lt;&lt;fromTitle&gt;&gt;/&gt;'' to ''&lt;$text text=&lt;&lt;toTitle&gt;&gt;/&gt;'' in the //tags// and //list// fields of other tiddlers&quot;
},
&quot;$:/language/EditTemplate/Title/References/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Title/References/Prompt&quot;,
&quot;text&quot;: &quot;The following references to this tiddler will not be automatically updated:&quot;
},
&quot;$:/language/EditTemplate/Type/Dropdown/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Type/Dropdown/Caption&quot;,
&quot;text&quot;: &quot;content type list&quot;
},
&quot;$:/language/EditTemplate/Type/Dropdown/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Type/Dropdown/Hint&quot;,
&quot;text&quot;: &quot;Show content type list&quot;
},
&quot;$:/language/EditTemplate/Type/Delete/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Type/Delete/Caption&quot;,
&quot;text&quot;: &quot;delete content type&quot;
},
&quot;$:/language/EditTemplate/Type/Delete/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Type/Delete/Hint&quot;,
&quot;text&quot;: &quot;Delete content type&quot;
},
&quot;$:/language/EditTemplate/Type/Placeholder&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Type/Placeholder&quot;,
&quot;text&quot;: &quot;content type&quot;
},
&quot;$:/language/EditTemplate/Type/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Type/Prompt&quot;,
&quot;text&quot;: &quot;Type:&quot;
},
&quot;$:/language/Exporters/StaticRiver&quot;: {
&quot;title&quot;: &quot;$:/language/Exporters/StaticRiver&quot;,
&quot;text&quot;: &quot;Static HTML&quot;
},
&quot;$:/language/Exporters/JsonFile&quot;: {
&quot;title&quot;: &quot;$:/language/Exporters/JsonFile&quot;,
&quot;text&quot;: &quot;JSON file&quot;
},
&quot;$:/language/Exporters/CsvFile&quot;: {
&quot;title&quot;: &quot;$:/language/Exporters/CsvFile&quot;,
&quot;text&quot;: &quot;CSV file&quot;
},
&quot;$:/language/Exporters/TidFile&quot;: {
&quot;title&quot;: &quot;$:/language/Exporters/TidFile&quot;,
&quot;text&quot;: &quot;\&quot;.tid\&quot; file&quot;
},
&quot;$:/language/Docs/Fields/_canonical_uri&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/_canonical_uri&quot;,
&quot;text&quot;: &quot;The full URI of an external image tiddler&quot;
},
&quot;$:/language/Docs/Fields/bag&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/bag&quot;,
&quot;text&quot;: &quot;The name of the bag from which a tiddler came&quot;
},
&quot;$:/language/Docs/Fields/caption&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/caption&quot;,
&quot;text&quot;: &quot;The text to be displayed on a tab or button&quot;
},
&quot;$:/language/Docs/Fields/color&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/color&quot;,
&quot;text&quot;: &quot;The CSS color value associated with a tiddler&quot;
},
&quot;$:/language/Docs/Fields/component&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/component&quot;,
&quot;text&quot;: &quot;The name of the component responsible for an [[alert tiddler|AlertMechanism]]&quot;
},
&quot;$:/language/Docs/Fields/current-tiddler&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/current-tiddler&quot;,
&quot;text&quot;: &quot;Used to cache the top tiddler in a [[history list|HistoryMechanism]]&quot;
},
&quot;$:/language/Docs/Fields/created&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/created&quot;,
&quot;text&quot;: &quot;The date a tiddler was created&quot;
},
&quot;$:/language/Docs/Fields/creator&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/creator&quot;,
&quot;text&quot;: &quot;The name of the person who created a tiddler&quot;
},
&quot;$:/language/Docs/Fields/dependents&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/dependents&quot;,
&quot;text&quot;: &quot;For a plugin, lists the dependent plugin titles&quot;
},
&quot;$:/language/Docs/Fields/description&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/description&quot;,
&quot;text&quot;: &quot;The descriptive text for a plugin, or a modal dialogue&quot;
},
&quot;$:/language/Docs/Fields/draft.of&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/draft.of&quot;,
&quot;text&quot;: &quot;For draft tiddlers, contains the title of the tiddler of which this is a draft&quot;
},
&quot;$:/language/Docs/Fields/draft.title&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/draft.title&quot;,
&quot;text&quot;: &quot;For draft tiddlers, contains the proposed new title of the tiddler&quot;
},
&quot;$:/language/Docs/Fields/footer&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/footer&quot;,
&quot;text&quot;: &quot;The footer text for a wizard&quot;
},
&quot;$:/language/Docs/Fields/hide-body&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/hide-body&quot;,
&quot;text&quot;: &quot;The view template will hide bodies of tiddlers if set to: ''yes''&quot;
},
&quot;$:/language/Docs/Fields/icon&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/icon&quot;,
&quot;text&quot;: &quot;The title of the tiddler containing the icon associated with a tiddler&quot;
},
&quot;$:/language/Docs/Fields/library&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/library&quot;,
&quot;text&quot;: &quot;Indicates that a tiddler should be saved as a JavaScript library if set to: ''yes''&quot;
},
&quot;$:/language/Docs/Fields/list&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/list&quot;,
&quot;text&quot;: &quot;An ordered list of tiddler titles associated with a tiddler&quot;
},
&quot;$:/language/Docs/Fields/list-before&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/list-before&quot;,
&quot;text&quot;: &quot;If set, the title of a tiddler before which this tiddler should be added to the ordered list of tiddler titles, or at the start of the list if this field is present but empty&quot;
},
&quot;$:/language/Docs/Fields/list-after&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/list-after&quot;,
&quot;text&quot;: &quot;If set, the title of the tiddler after which this tiddler should be added to the ordered list of tiddler titles, or at the end of the list if this field is present but empty&quot;
},
&quot;$:/language/Docs/Fields/modified&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/modified&quot;,
&quot;text&quot;: &quot;The date and time at which a tiddler was last modified&quot;
},
&quot;$:/language/Docs/Fields/modifier&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/modifier&quot;,
&quot;text&quot;: &quot;The tiddler title associated with the person who last modified a tiddler&quot;
},
&quot;$:/language/Docs/Fields/name&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/name&quot;,
&quot;text&quot;: &quot;The human readable name associated with a plugin tiddler&quot;
},
&quot;$:/language/Docs/Fields/plugin-priority&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/plugin-priority&quot;,
&quot;text&quot;: &quot;A numerical value indicating the priority of a plugin tiddler&quot;
},
&quot;$:/language/Docs/Fields/plugin-type&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/plugin-type&quot;,
&quot;text&quot;: &quot;The type of plugin in a plugin tiddler&quot;
},
&quot;$:/language/Docs/Fields/revision&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/revision&quot;,
&quot;text&quot;: &quot;The revision of the tiddler held at the server&quot;
},
&quot;$:/language/Docs/Fields/released&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/released&quot;,
&quot;text&quot;: &quot;Date of a TiddlyWiki release&quot;
},
&quot;$:/language/Docs/Fields/source&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/source&quot;,
&quot;text&quot;: &quot;The source URL associated with a tiddler&quot;
},
&quot;$:/language/Docs/Fields/subtitle&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/subtitle&quot;,
&quot;text&quot;: &quot;The subtitle text for a wizard&quot;
},
&quot;$:/language/Docs/Fields/tags&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/tags&quot;,
&quot;text&quot;: &quot;A list of tags associated with a tiddler&quot;
},
&quot;$:/language/Docs/Fields/text&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/text&quot;,
&quot;text&quot;: &quot;The body text of a tiddler&quot;
},
&quot;$:/language/Docs/Fields/throttle.refresh&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/throttle.refresh&quot;,
&quot;text&quot;: &quot;If present, throttles refreshes of this tiddler&quot;
},
&quot;$:/language/Docs/Fields/title&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/title&quot;,
&quot;text&quot;: &quot;The unique name of a tiddler&quot;
},
&quot;$:/language/Docs/Fields/toc-link&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/toc-link&quot;,
&quot;text&quot;: &quot;Suppresses the tiddler's link in a Table of Contents tree if set to: ''no''&quot;
},
&quot;$:/language/Docs/Fields/type&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/type&quot;,
&quot;text&quot;: &quot;The content type of a tiddler&quot;
},
&quot;$:/language/Docs/Fields/version&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/version&quot;,
&quot;text&quot;: &quot;Version information for a plugin&quot;
},
&quot;$:/language/Docs/Fields/_is_skinny&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/_is_skinny&quot;,
&quot;text&quot;: &quot;If present, indicates that the tiddler text field must be loaded from the server&quot;
},
&quot;$:/language/Filters/AllTiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/AllTiddlers&quot;,
&quot;text&quot;: &quot;All tiddlers except system tiddlers&quot;
},
&quot;$:/language/Filters/RecentSystemTiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/RecentSystemTiddlers&quot;,
&quot;text&quot;: &quot;Recently modified tiddlers, including system tiddlers&quot;
},
&quot;$:/language/Filters/RecentTiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/RecentTiddlers&quot;,
&quot;text&quot;: &quot;Recently modified tiddlers&quot;
},
&quot;$:/language/Filters/AllTags&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/AllTags&quot;,
&quot;text&quot;: &quot;All tags except system tags&quot;
},
&quot;$:/language/Filters/Missing&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/Missing&quot;,
&quot;text&quot;: &quot;Missing tiddlers&quot;
},
&quot;$:/language/Filters/Drafts&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/Drafts&quot;,
&quot;text&quot;: &quot;Draft tiddlers&quot;
},
&quot;$:/language/Filters/Orphans&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/Orphans&quot;,
&quot;text&quot;: &quot;Orphan tiddlers&quot;
},
&quot;$:/language/Filters/SystemTiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/SystemTiddlers&quot;,
&quot;text&quot;: &quot;System tiddlers&quot;
},
&quot;$:/language/Filters/ShadowTiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/ShadowTiddlers&quot;,
&quot;text&quot;: &quot;Shadow tiddlers&quot;
},
&quot;$:/language/Filters/OverriddenShadowTiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/OverriddenShadowTiddlers&quot;,
&quot;text&quot;: &quot;Overridden shadow tiddlers&quot;
},
&quot;$:/language/Filters/SessionTiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/SessionTiddlers&quot;,
&quot;text&quot;: &quot;Tiddlers modified since the wiki was loaded&quot;
},
&quot;$:/language/Filters/SystemTags&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/SystemTags&quot;,
&quot;text&quot;: &quot;System tags&quot;
},
&quot;$:/language/Filters/StoryList&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/StoryList&quot;,
&quot;text&quot;: &quot;Tiddlers in the story river, excluding &lt;$text text=\&quot;$:/AdvancedSearch\&quot;/&gt;&quot;
},
&quot;$:/language/Filters/TypedTiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Filters/TypedTiddlers&quot;,
&quot;text&quot;: &quot;Non wiki-text tiddlers&quot;
},
&quot;GettingStarted&quot;: {
&quot;title&quot;: &quot;GettingStarted&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Basics/\nWelcome to ~TiddlyWiki and the ~TiddlyWiki community\n\nBefore you start storing important information in ~TiddlyWiki it is vital to make sure that you can reliably save changes. See https://tiddlywiki.com/#GettingStarted for details\n\n!! Set up this ~TiddlyWiki\n\n&lt;div class=\&quot;tc-control-panel\&quot;&gt;\n\n|&lt;$link to=\&quot;$:/SiteTitle\&quot;&gt;&lt;&lt;lingo Title/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/SiteTitle\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/SiteSubtitle\&quot;&gt;&lt;&lt;lingo Subtitle/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/SiteSubtitle\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/DefaultTiddlers\&quot;&gt;&lt;&lt;lingo DefaultTiddlers/Prompt&gt;&gt;&lt;/$link&gt; |&lt;&lt;lingo DefaultTiddlers/TopHint&gt;&gt;&lt;br&gt; &lt;$edit tag=\&quot;textarea\&quot; tiddler=\&quot;$:/DefaultTiddlers\&quot;/&gt;&lt;br&gt;//&lt;&lt;lingo DefaultTiddlers/BottomHint&gt;&gt;// |\n&lt;/div&gt;\n\nSee the [[control panel|$:/ControlPanel]] for more options.\n&quot;
},
&quot;$:/language/Help/build&quot;: {
&quot;title&quot;: &quot;$:/language/Help/build&quot;,
&quot;description&quot;: &quot;Automatically run configured commands&quot;,
&quot;text&quot;: &quot;Build the specified build targets for the current wiki. If no build targets are specified then all available targets will be built.\n\n```\n--build &lt;target&gt; [&lt;target&gt; ...]\n```\n\nBuild targets are defined in the `tiddlywiki.info` file of a wiki folder.\n\n&quot;
},
&quot;$:/language/Help/clearpassword&quot;: {
&quot;title&quot;: &quot;$:/language/Help/clearpassword&quot;,
&quot;description&quot;: &quot;Clear a password for subsequent crypto operations&quot;,
&quot;text&quot;: &quot;Clear the password for subsequent crypto operations\n\n```\n--clearpassword\n```\n&quot;
},
&quot;$:/language/Help/default&quot;: {
&quot;title&quot;: &quot;$:/language/Help/default&quot;,
&quot;text&quot;: &quot;\\define commandTitle()\n$:/language/Help/$(command)$\n\\end\n```\nusage: tiddlywiki [&lt;wikifolder&gt;] [--&lt;command&gt; [&lt;args&gt;...]...]\n```\n\nAvailable commands:\n\n&lt;ul&gt;\n&lt;$list filter=\&quot;[commands[]sort[title]]\&quot; variable=\&quot;command\&quot;&gt;\n&lt;li&gt;&lt;$link to=&lt;&lt;commandTitle&gt;&gt;&gt;&lt;$macrocall $name=\&quot;command\&quot; $type=\&quot;text/plain\&quot; $output=\&quot;text/plain\&quot;/&gt;&lt;/$link&gt;: &lt;$transclude tiddler=&lt;&lt;commandTitle&gt;&gt; field=\&quot;description\&quot;/&gt;&lt;/li&gt;\n&lt;/$list&gt;\n&lt;/ul&gt;\n\nTo get detailed help on a command:\n\n```\ntiddlywiki --help &lt;command&gt;\n```\n&quot;
},
&quot;$:/language/Help/deletetiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Help/deletetiddlers&quot;,
&quot;description&quot;: &quot;Deletes a group of tiddlers&quot;,
&quot;text&quot;: &quot;&lt;&lt;.from-version \&quot;5.1.20\&quot;&gt;&gt; Deletes a group of tiddlers identified by a filter.\n\n```\n--deletetiddlers &lt;filter&gt;\n```\n&quot;
},
&quot;$:/language/Help/editions&quot;: {
&quot;title&quot;: &quot;$:/language/Help/editions&quot;,
&quot;description&quot;: &quot;Lists the available editions of TiddlyWiki&quot;,
&quot;text&quot;: &quot;Lists the names and descriptions of the available editions. You can create a new wiki of a specified edition with the `--init` command.\n\n```\n--editions\n```\n&quot;
},
&quot;$:/language/Help/fetch&quot;: {
&quot;title&quot;: &quot;$:/language/Help/fetch&quot;,
&quot;description&quot;: &quot;Fetch tiddlers from wiki by URL&quot;,
&quot;text&quot;: &quot;Fetch one or more files over HTTP/HTTPS, and import the tiddlers matching a filter, optionally transforming the incoming titles.\n\n```\n--fetch file &lt;url&gt; &lt;import-filter&gt; &lt;transform-filter&gt;\n--fetch files &lt;url-filter&gt; &lt;import-filter&gt; &lt;transform-filter&gt;\n--fetch raw-file &lt;url&gt; &lt;transform-filter&gt;\n--fetch raw-files &lt;url-filter&gt; &lt;transform-filter&gt;\n```\n\nThe \&quot;file\&quot; and \&quot;files\&quot; variants fetch the specified files and attempt to import the tiddlers within them (the same processing as if the files were dragged into the browser window). The \&quot;raw-file\&quot; and \&quot;raw-files\&quot; variants fetch the specified files and then store the raw file data in tiddlers, without applying the import logic.\n\nWith the \&quot;file\&quot; and \&quot;raw-file\&quot; variants only a single file is fetched and the first parameter is the URL of the file to read.\n\nWith the \&quot;files\&quot; and \&quot;raw-files\&quot; variants, multiple files are fetched and the first parameter is a filter yielding a list of URLs of the files to read. For example, given a set of tiddlers tagged \&quot;remote-server\&quot; that have a field \&quot;url\&quot; the filter `[tag[remote-server]get[url]]` will retrieve all the available URLs.\n\nFor the \&quot;file\&quot; and \&quot;files\&quot; variants, the `&lt;import-filter&gt;` parameter specifies a filter determining which tiddlers are imported. It defaults to `[all[tiddlers]]` if not provided.\n\nFor all variants, the `&lt;transform-filter&gt;` parameter specifies an optional filter that transforms the titles of the imported tiddlers. For example, `[addprefix[$:/myimports/]]` would add the prefix `$:/myimports/` to each title.\n\nPreceding the `--fetch` command with `--verbose` will output progress information during the import.\n\nNote that TiddlyWiki will not fetch an older version of an already loaded plugin.\n\nThe following example retrieves all the non-system tiddlers from https://tiddlywiki.com and saves them to a JSON file:\n\n```\ntiddlywiki --verbose --fetch file \&quot;https://tiddlywiki.com/\&quot; \&quot;[!is[system]]\&quot; \&quot;\&quot; --rendertiddler \&quot;$:/core/templates/exporters/JsonFile\&quot; output.json text/plain \&quot;\&quot; exportFilter \&quot;[!is[system]]\&quot;\n```\n\nThe following example retrieves the \&quot;favicon\&quot; file from tiddlywiki.com and saves it in a file called \&quot;output.ico\&quot;. Note that the intermediate tiddler \&quot;Icon Tiddler\&quot; is quoted in the \&quot;--fetch\&quot; command because it is being used as a transformation filter to replace the default title, while there are no quotes for the \&quot;--savetiddler\&quot; command because it is being used directly as a title.\n\n```\ntiddlywiki --verbose --fetch raw-file \&quot;https://tiddlywiki.com/favicon.ico\&quot; \&quot;[[Icon Tiddler]]\&quot; --savetiddler \&quot;Icon Tiddler\&quot; output.ico\n```\n\n&quot;
},
&quot;$:/language/Help/help&quot;: {
&quot;title&quot;: &quot;$:/language/Help/help&quot;,
&quot;description&quot;: &quot;Display help for TiddlyWiki commands&quot;,
&quot;text&quot;: &quot;Displays help text for a command:\n\n```\n--help [&lt;command&gt;]\n```\n\nIf the command name is omitted then a list of available commands is displayed.\n&quot;
},
&quot;$:/language/Help/import&quot;: {
&quot;title&quot;: &quot;$:/language/Help/import&quot;,
&quot;description&quot;: &quot;Import tiddlers from a file&quot;,
&quot;text&quot;: &quot;Import tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The deserializer must be explicitly specified, unlike the `load` command which infers the deserializer from the file extension.\n\n```\n--import &lt;filepath&gt; &lt;deserializer&gt; [&lt;title&gt;] [&lt;encoding&gt;]\n```\n\nThe deserializers in the core include:\n\n* application/javascript\n* application/json\n* application/x-tiddler\n* application/x-tiddler-html-div\n* application/x-tiddlers\n* text/html\n* text/plain\n\nThe title of the imported tiddler defaults to the filename.\n\nThe encoding defaults to \&quot;utf8\&quot;, but can be \&quot;base64\&quot; for importing binary files.\n\nNote that TiddlyWiki will not import an older version of an already loaded plugin.\n&quot;
},
&quot;$:/language/Help/init&quot;: {
&quot;title&quot;: &quot;$:/language/Help/init&quot;,
&quot;description&quot;: &quot;Initialise a new wiki folder&quot;,
&quot;text&quot;: &quot;Initialise an empty [[WikiFolder|WikiFolders]] with a copy of the specified edition.\n\n```\n--init &lt;edition&gt; [&lt;edition&gt; ...]\n```\n\nFor example:\n\n```\ntiddlywiki ./MyWikiFolder --init empty\n```\n\nNote:\n\n* The wiki folder directory will be created if necessary\n* The \&quot;edition\&quot; defaults to ''empty''\n* The init command will fail if the wiki folder is not empty\n* The init command removes any `includeWikis` definitions in the edition's `tiddlywiki.info` file\n* When multiple editions are specified, editions initialised later will overwrite any files shared with earlier editions (so, the final `tiddlywiki.info` file will be copied from the last edition)\n* `--editions` returns a list of available editions\n&quot;
},
&quot;$:/language/Help/listen&quot;: {
&quot;title&quot;: &quot;$:/language/Help/listen&quot;,
&quot;description&quot;: &quot;Provides an HTTP server interface to TiddlyWiki&quot;,
&quot;text&quot;: &quot;Serves a wiki over HTTP.\n\nThe listen command uses NamedCommandParameters:\n\n```\n--listen [&lt;name&gt;=&lt;value&gt;]...\n```\n\nAll parameters are optional with safe defaults, and can be specified in any order. The recognised parameters are:\n\n* ''host'' - optional hostname to serve from (defaults to \&quot;127.0.0.1\&quot; aka \&quot;localhost\&quot;)\n* ''path-prefix'' - optional prefix for paths\n* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to \&quot;8080\&quot;)\n* ''credentials'' - pathname of credentials CSV file (relative to wiki folder)\n* ''anon-username'' - the username for signing edits for anonymous users\n* ''username'' - optional username for basic authentication\n* ''password'' - optional password for basic authentication\n* ''authenticated-user-header'' - optional name of header to be used for trusted authentication\n* ''readers'' - comma separated list of principals allowed to read from this wiki\n* ''writers'' - comma separated list of principals allowed to write to this wiki\n* ''csrf-disable'' - set to \&quot;yes\&quot; to disable CSRF checks (defaults to \&quot;no\&quot;)\n* ''root-tiddler'' - the tiddler to serve at the root (defaults to \&quot;$:/core/save/all\&quot;)\n* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to \&quot;text/plain\&quot;)\n* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to \&quot;text/html\&quot;)\n* ''tls-cert'' - pathname of TLS certificate file (relative to wiki folder)\n* ''tls-key'' - pathname of TLS key file (relative to wiki folder)\n* ''debug-level'' - optional debug level; set to \&quot;debug\&quot; to view request details (defaults to \&quot;none\&quot;)\n* ''gzip'' - set to \&quot;yes\&quot; to enable gzip compression for some http endpoints (defaults to \&quot;no\&quot;)\n\nFor information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com.\n\n&quot;
},
&quot;$:/language/Help/load&quot;: {
&quot;title&quot;: &quot;$:/language/Help/load&quot;,
&quot;description&quot;: &quot;Load tiddlers from a file&quot;,
&quot;text&quot;: &quot;Load tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The processing applied to incoming files is determined by the file extension. Use the alternative `import` command if you need to specify the deserializer and encoding explicitly.\n\n```\n--load &lt;filepath&gt; [noerror]\n--load &lt;dirpath&gt; [noerror]\n```\n\nBy default, the load command raises an error if no tiddlers are found. The error can be suppressed by providing the optional \&quot;noerror\&quot; parameter.\n\nTo load tiddlers from an encrypted TiddlyWiki file you should first specify the password with the PasswordCommand. For example:\n\n```\ntiddlywiki ./MyWiki --password pa55w0rd --load my_encrypted_wiki.html\n```\n\nNote that TiddlyWiki will not load an older version of an already loaded plugin.\n&quot;
},
&quot;$:/language/Help/makelibrary&quot;: {
&quot;title&quot;: &quot;$:/language/Help/makelibrary&quot;,
&quot;description&quot;: &quot;Construct library plugin required by upgrade process&quot;,
&quot;text&quot;: &quot;Constructs the `$:/UpgradeLibrary` tiddler for the upgrade process.\n\nThe upgrade library is formatted as an ordinary plugin tiddler with the plugin type `library`. It contains a copy of each of the plugins, themes and language packs available within the TiddlyWiki5 repository.\n\nThis command is intended for internal use; it is only relevant to users constructing a custom upgrade procedure.\n\n```\n--makelibrary &lt;title&gt;\n```\n\nThe title argument defaults to `$:/UpgradeLibrary`.\n&quot;
},
&quot;$:/language/Help/notfound&quot;: {
&quot;title&quot;: &quot;$:/language/Help/notfound&quot;,
&quot;text&quot;: &quot;No such help item&quot;
},
&quot;$:/language/Help/output&quot;: {
&quot;title&quot;: &quot;$:/language/Help/output&quot;,
&quot;description&quot;: &quot;Set the base output directory for subsequent commands&quot;,
&quot;text&quot;: &quot;Sets the base output directory for subsequent commands. The default output directory is the `output` subdirectory of the edition directory.\n\n```\n--output &lt;pathname&gt;\n```\n\nIf the specified pathname is relative then it is resolved relative to the current working directory. For example `--output .` sets the output directory to the current working directory.\n\n&quot;
},
&quot;$:/language/Help/password&quot;: {
&quot;title&quot;: &quot;$:/language/Help/password&quot;,
&quot;description&quot;: &quot;Set a password for subsequent crypto operations&quot;,
&quot;text&quot;: &quot;Set a password for subsequent crypto operations\n\n```\n--password &lt;password&gt;\n```\n\n''Note'': This should not be used for serving TiddlyWiki with password protection. Instead, see the password option under the [[ServerCommand]].\n&quot;
},
&quot;$:/language/Help/render&quot;: {
&quot;title&quot;: &quot;$:/language/Help/render&quot;,
&quot;description&quot;: &quot;Renders individual tiddlers to files&quot;,
&quot;text&quot;: &quot;Render individual tiddlers identified by a filter and save the results to the specified files.\n\nOptionally, the title of a template tiddler can be specified. In this case, instead of directly rendering each tiddler, the template tiddler is rendered with the \&quot;currentTiddler\&quot; variable set to the title of the tiddler that is being rendered.\n\nA name and value for an additional variable may optionally also be specified.\n\n```\n--render &lt;tiddler-filter&gt; [&lt;filename-filter&gt;] [&lt;render-type&gt;] [&lt;template&gt;] [&lt;name&gt;] [&lt;value&gt;]\n```\n\n* ''tiddler-filter'': A filter identifying the tiddler(s) to be rendered\n* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]addsuffix[.html]]`, which uses the unchanged tiddler title as the filename\n* ''render-type'': Optional render type: `text/html` (the default) returns the full HTML text and `text/plain` just returns the text content (ie it ignores HTML tags and other unprintable material)\n* ''template'': Optional template through which each tiddler is rendered\n* ''name'': Name of optional variable\n* ''value'': Value of optional variable\n\nBy default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nNotes:\n\n* The output directory is not cleared of any existing files\n* Any missing directories in the path to the filename are automatically created.\n* When referring to a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--render \&quot;[[Motovun Jack.jpg]]\&quot;`\n* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being rendered, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/`\n* The `--render` command is a more flexible replacement for both the `--rendertiddler` and `--rendertiddlers` commands, which are deprecated\n\nExamples:\n\n* `--render \&quot;[!is[system]]\&quot; \&quot;[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]\&quot;` -- renders all non-system tiddlers as files in the subdirectory \&quot;tiddlers\&quot; with URL-encoded titles and the extension HTML\n\n&quot;
},
&quot;$:/language/Help/rendertiddler&quot;: {
&quot;title&quot;: &quot;$:/language/Help/rendertiddler&quot;,
&quot;description&quot;: &quot;Render an individual tiddler as a specified ContentType&quot;,
&quot;text&quot;: &quot;(Note: The `--rendertiddler` command is deprecated in favour of the new, more flexible `--render` command)\n\nRender an individual tiddler as a specified ContentType, defaulting to `text/html` and save it to the specified filename.\n\nOptionally the title of a template tiddler can be specified, in which case the template tiddler is rendered with the \&quot;currentTiddler\&quot; variable set to the tiddler that is being rendered (the first parameter value).\n\nA name and value for an additional variable may optionally also be specified.\n\n```\n--rendertiddler &lt;title&gt; &lt;filename&gt; [&lt;type&gt;] [&lt;template&gt;] [&lt;name&gt;] [&lt;value&gt;]\n```\n\nBy default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nAny missing directories in the path to the filename are automatically created.\n\nFor example, the following command saves all tiddlers matching the filter `[tag[done]]` to a JSON file titled `output.json` by employing the core template `$:/core/templates/exporters/JsonFile`.\n\n```\n--rendertiddler \&quot;$:/core/templates/exporters/JsonFile\&quot; output.json text/plain \&quot;\&quot; exportFilter \&quot;[tag[done]]\&quot;\n```\n&quot;
},
&quot;$:/language/Help/rendertiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Help/rendertiddlers&quot;,
&quot;description&quot;: &quot;Render tiddlers matching a filter to a specified ContentType&quot;,
&quot;text&quot;: &quot;(Note: The `--rendertiddlers` command is deprecated in favour of the new, more flexible `--render` command)\n\nRender a set of tiddlers matching a filter to separate files of a specified ContentType (defaults to `text/html`) and extension (defaults to `.html`).\n\n```\n--rendertiddlers '&lt;filter&gt;' &lt;template&gt; &lt;pathname&gt; [&lt;type&gt;] [&lt;extension&gt;] [\&quot;noclean\&quot;]\n```\n\nFor example:\n\n```\n--rendertiddlers '[!is[system]]' $:/core/templates/static.tiddler.html ./static text/plain\n```\n\nBy default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nAny files in the target directory are deleted unless the ''noclean'' flag is specified. The target directory is recursively created if it is missing.\n&quot;
},
&quot;$:/language/Help/save&quot;: {
&quot;title&quot;: &quot;$:/language/Help/save&quot;,
&quot;description&quot;: &quot;Saves individual raw tiddlers to files&quot;,
&quot;text&quot;: &quot;Saves individual tiddlers identified by a filter in their raw text or binary format to the specified files.\n\n```\n--save &lt;tiddler-filter&gt; &lt;filename-filter&gt;\n```\n\n* ''tiddler-filter'': A filter identifying the tiddler(s) to be saved\n* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]]`, which uses the unchanged tiddler title as the filename\n\nBy default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nNotes:\n\n* The output directory is not cleared of any existing files\n* Any missing directories in the path to the filename are automatically created.\n* When saving a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--save \&quot;[[Motovun Jack.jpg]]\&quot;`\n* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being saved, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/`\n* The `--save` command is a more flexible replacement for both the `--savetiddler` and `--savetiddlers` commands, which are deprecated\n\nExamples:\n\n* `--save \&quot;[!is[system]is[image]]\&quot; \&quot;[encodeuricomponent[]addprefix[tiddlers/]]\&quot;` -- saves all non-system image tiddlers as files in the subdirectory \&quot;tiddlers\&quot; with URL-encoded titles\n&quot;
},
&quot;$:/language/Help/savetiddler&quot;: {
&quot;title&quot;: &quot;$:/language/Help/savetiddler&quot;,
&quot;description&quot;: &quot;Saves a raw tiddler to a file&quot;,
&quot;text&quot;: &quot;(Note: The `--savetiddler` command is deprecated in favour of the new, more flexible `--save` command)\n\nSaves an individual tiddler in its raw text or binary format to the specified filename.\n\n```\n--savetiddler &lt;title&gt; &lt;filename&gt;\n```\n\nBy default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nAny missing directories in the path to the filename are automatically created.\n&quot;
},
&quot;$:/language/Help/savetiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Help/savetiddlers&quot;,
&quot;description&quot;: &quot;Saves a group of raw tiddlers to a directory&quot;,
&quot;text&quot;: &quot;(Note: The `--savetiddlers` command is deprecated in favour of the new, more flexible `--save` command)\n\nSaves a group of tiddlers in their raw text or binary format to the specified directory.\n\n```\n--savetiddlers &lt;filter&gt; &lt;pathname&gt; [\&quot;noclean\&quot;]\n```\n\nBy default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nThe output directory is cleared of existing files before saving the specified files. The deletion can be disabled by specifying the ''noclean'' flag.\n\nAny missing directories in the pathname are automatically created.\n&quot;
},
&quot;$:/language/Help/savewikifolder&quot;: {
&quot;title&quot;: &quot;$:/language/Help/savewikifolder&quot;,
&quot;description&quot;: &quot;Saves a wiki to a new wiki folder&quot;,
&quot;text&quot;: &quot;&lt;&lt;.from-version \&quot;5.1.20\&quot;&gt;&gt; Saves the current wiki as a wiki folder, including tiddlers, plugins and configuration:\n\n```\n--savewikifolder &lt;wikifolderpath&gt; [&lt;filter&gt;]\n```\n\n* The target wiki folder must be empty or non-existent\n* The filter specifies which tiddlers should be included. It is optional, defaulting to `[all[tiddlers]]`\n* Plugins from the official plugin library are replaced with references to those plugins in the `tiddlywiki.info` file\n* Custom plugins are unpacked into their own folder\n\nA common usage is to convert a TiddlyWiki HTML file into a wiki folder:\n\n```\ntiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder\n```\n&quot;
},
&quot;$:/language/Help/server&quot;: {
&quot;title&quot;: &quot;$:/language/Help/server&quot;,
&quot;description&quot;: &quot;Provides an HTTP server interface to TiddlyWiki (deprecated in favour of the new listen command)&quot;,
&quot;text&quot;: &quot;Legacy command to serve a wiki over HTTP.\n\n```\n--server &lt;port&gt; &lt;root-tiddler&gt; &lt;root-render-type&gt; &lt;root-serve-type&gt; &lt;username&gt; &lt;password&gt; &lt;host&gt; &lt;path-prefix&gt; &lt;debug-level&gt;\n```\n\nThe parameters are:\n\n* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to \&quot;8080\&quot;)\n* ''root-tiddler'' - the tiddler to serve at the root (defaults to \&quot;$:/core/save/all\&quot;)\n* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to \&quot;text/plain\&quot;)\n* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to \&quot;text/html\&quot;)\n* ''username'' - the default username for signing edits\n* ''password'' - optional password for basic authentication\n* ''host'' - optional hostname to serve from (defaults to \&quot;127.0.0.1\&quot; aka \&quot;localhost\&quot;)\n* ''path-prefix'' - optional prefix for paths\n* ''debug-level'' - optional debug level; set to \&quot;debug\&quot; to view request details (defaults to \&quot;none\&quot;)\n\nIf the password parameter is specified then the browser will prompt the user for the username and password. Note that the password is transmitted in plain text so this implementation should only be used on a trusted network or over HTTPS.\n\nFor example:\n\n```\n--server 8080 $:/core/save/all text/plain text/html MyUserName passw0rd\n```\n\nThe username and password can be specified as empty strings if you need to set the hostname or pathprefix and don't want to require a password.\n\n\n```\n--server 8080 $:/core/save/all text/plain text/html \&quot;\&quot; \&quot;\&quot; 192.168.0.245\n```\n\nUsing an address like this exposes your system to the local network. For information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com.\n\nTo run multiple TiddlyWiki servers at the same time you'll need to put each one on a different port. It can be useful to use an environment variable to pass the port number to the Node.js process. This example references an environment variable called \&quot;MY_PORT_NUMBER\&quot;:\n\n```\n--server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd\n```\n&quot;
},
&quot;$:/language/Help/setfield&quot;: {
&quot;title&quot;: &quot;$:/language/Help/setfield&quot;,
&quot;description&quot;: &quot;Prepares external tiddlers for use&quot;,
&quot;text&quot;: &quot;//Note that this command is experimental and may change or be replaced before being finalised//\n\nSets the specified field of a group of tiddlers to the result of wikifying a template tiddler with the `currentTiddler` variable set to the tiddler.\n\n```\n--setfield &lt;filter&gt; &lt;fieldname&gt; &lt;templatetitle&gt; &lt;rendertype&gt;\n```\n\nThe parameters are:\n\n* ''filter'' - filter identifying the tiddlers to be affected\n* ''fieldname'' - the field to modify (defaults to \&quot;text\&quot;)\n* ''templatetitle'' - the tiddler to wikify into the specified field. If blank or missing then the specified field is deleted\n* ''rendertype'' - the text type to render (defaults to \&quot;text/plain\&quot;; \&quot;text/html\&quot; can be used to include HTML tags)\n&quot;
},
&quot;$:/language/Help/unpackplugin&quot;: {
&quot;title&quot;: &quot;$:/language/Help/unpackplugin&quot;,
&quot;description&quot;: &quot;Unpack the payload tiddlers from a plugin&quot;,
&quot;text&quot;: &quot;Extract the payload tiddlers from a plugin, creating them as ordinary tiddlers:\n\n```\n--unpackplugin &lt;title&gt;\n```\n&quot;
},
&quot;$:/language/Help/verbose&quot;: {
&quot;title&quot;: &quot;$:/language/Help/verbose&quot;,
&quot;description&quot;: &quot;Triggers verbose output mode&quot;,
&quot;text&quot;: &quot;Triggers verbose output, useful for debugging\n\n```\n--verbose\n```\n&quot;
},
&quot;$:/language/Help/version&quot;: {
&quot;title&quot;: &quot;$:/language/Help/version&quot;,
&quot;description&quot;: &quot;Displays the version number of TiddlyWiki&quot;,
&quot;text&quot;: &quot;Displays the version number of TiddlyWiki.\n\n```\n--version\n```\n&quot;
},
&quot;$:/language/Import/Imported/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Imported/Hint&quot;,
&quot;text&quot;: &quot;The following tiddlers were imported:&quot;
},
&quot;$:/language/Import/Listing/Cancel/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Cancel/Caption&quot;,
&quot;text&quot;: &quot;Cancel&quot;
},
&quot;$:/language/Import/Listing/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Hint&quot;,
&quot;text&quot;: &quot;These tiddlers are ready to import:&quot;
},
&quot;$:/language/Import/Listing/Import/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Import/Caption&quot;,
&quot;text&quot;: &quot;Import&quot;
},
&quot;$:/language/Import/Listing/Select/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Select/Caption&quot;,
&quot;text&quot;: &quot;Select&quot;
},
&quot;$:/language/Import/Listing/Status/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Status/Caption&quot;,
&quot;text&quot;: &quot;Status&quot;
},
&quot;$:/language/Import/Listing/Title/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Title/Caption&quot;,
&quot;text&quot;: &quot;Title&quot;
},
&quot;$:/language/Import/Listing/Preview&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Preview&quot;,
&quot;text&quot;: &quot;Preview:&quot;
},
&quot;$:/language/Import/Listing/Preview/Text&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Preview/Text&quot;,
&quot;text&quot;: &quot;Text&quot;
},
&quot;$:/language/Import/Listing/Preview/TextRaw&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Preview/TextRaw&quot;,
&quot;text&quot;: &quot;Text (Raw)&quot;
},
&quot;$:/language/Import/Listing/Preview/Fields&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Preview/Fields&quot;,
&quot;text&quot;: &quot;Fields&quot;
},
&quot;$:/language/Import/Listing/Preview/Diff&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Preview/Diff&quot;,
&quot;text&quot;: &quot;Diff&quot;
},
&quot;$:/language/Import/Listing/Preview/DiffFields&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Preview/DiffFields&quot;,
&quot;text&quot;: &quot;Diff (Fields)&quot;
},
&quot;$:/language/Import/Listing/Rename/Tooltip&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Rename/Tooltip&quot;,
&quot;text&quot;: &quot;Rename tiddler before importing&quot;
},
&quot;$:/language/Import/Listing/Rename/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Rename/Prompt&quot;,
&quot;text&quot;: &quot;Rename to:&quot;
},
&quot;$:/language/Import/Listing/Rename/ConfirmRename&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Rename/ConfirmRename&quot;,
&quot;text&quot;: &quot;Rename tiddler&quot;
},
&quot;$:/language/Import/Listing/Rename/CancelRename&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Rename/CancelRename&quot;,
&quot;text&quot;: &quot;Cancel&quot;
},
&quot;$:/language/Import/Listing/Rename/OverwriteWarning&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Listing/Rename/OverwriteWarning&quot;,
&quot;text&quot;: &quot;A tiddler with this title already exists.&quot;
},
&quot;$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible&quot;,
&quot;text&quot;: &quot;Blocked incompatible or obsolete plugin.&quot;
},
&quot;$:/language/Import/Upgrader/Plugins/Suppressed/Version&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Upgrader/Plugins/Suppressed/Version&quot;,
&quot;text&quot;: &quot;Blocked plugin (due to incoming &lt;&lt;incoming&gt;&gt; not being newer than existing &lt;&lt;existing&gt;&gt;).&quot;
},
&quot;$:/language/Import/Upgrader/Plugins/Upgraded&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Upgrader/Plugins/Upgraded&quot;,
&quot;text&quot;: &quot;Upgraded plugin from &lt;&lt;incoming&gt;&gt; to &lt;&lt;upgraded&gt;&gt;.&quot;
},
&quot;$:/language/Import/Upgrader/State/Suppressed&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Upgrader/State/Suppressed&quot;,
&quot;text&quot;: &quot;Blocked temporary state tiddler.&quot;
},
&quot;$:/language/Import/Upgrader/System/Suppressed&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Upgrader/System/Suppressed&quot;,
&quot;text&quot;: &quot;Blocked system tiddler.&quot;
},
&quot;$:/language/Import/Upgrader/System/Warning&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Upgrader/System/Warning&quot;,
&quot;text&quot;: &quot;Core module tiddler.&quot;
},
&quot;$:/language/Import/Upgrader/System/Alert&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Upgrader/System/Alert&quot;,
&quot;text&quot;: &quot;You are about to import a tiddler that will overwrite a core module tiddler. This is not recommended as it may make the system unstable.&quot;
},
&quot;$:/language/Import/Upgrader/ThemeTweaks/Created&quot;: {
&quot;title&quot;: &quot;$:/language/Import/Upgrader/ThemeTweaks/Created&quot;,
&quot;text&quot;: &quot;Migrated theme tweak from &lt;$text text=&lt;&lt;from&gt;&gt;/&gt;.&quot;
},
&quot;$:/language/AboveStory/ClassicPlugin/Warning&quot;: {
&quot;title&quot;: &quot;$:/language/AboveStory/ClassicPlugin/Warning&quot;,
&quot;text&quot;: &quot;It looks like you are trying to load a plugin designed for ~TiddlyWiki Classic. Please note that [[these plugins do not work with TiddlyWiki version 5.x.x|https://tiddlywiki.com/#TiddlyWikiClassic]]. ~TiddlyWiki Classic plugins detected:&quot;
},
&quot;$:/language/BinaryWarning/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/BinaryWarning/Prompt&quot;,
&quot;text&quot;: &quot;This tiddler contains binary data&quot;
},
&quot;$:/language/ClassicWarning/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ClassicWarning/Hint&quot;,
&quot;text&quot;: &quot;This tiddler is written in TiddlyWiki Classic wiki text format, which is not fully compatible with TiddlyWiki version 5. See https://tiddlywiki.com/static/Upgrading.html for more details.&quot;
},
&quot;$:/language/ClassicWarning/Upgrade/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/ClassicWarning/Upgrade/Caption&quot;,
&quot;text&quot;: &quot;upgrade&quot;
},
&quot;$:/language/CloseAll/Button&quot;: {
&quot;title&quot;: &quot;$:/language/CloseAll/Button&quot;,
&quot;text&quot;: &quot;close all&quot;
},
&quot;$:/language/ColourPicker/Recent&quot;: {
&quot;title&quot;: &quot;$:/language/ColourPicker/Recent&quot;,
&quot;text&quot;: &quot;Recent:&quot;
},
&quot;$:/language/ConfirmCancelTiddler&quot;: {
&quot;title&quot;: &quot;$:/language/ConfirmCancelTiddler&quot;,
&quot;text&quot;: &quot;Do you wish to discard changes to the tiddler \&quot;&lt;$text text=&lt;&lt;title&gt;&gt;/&gt;\&quot;?&quot;
},
&quot;$:/language/ConfirmDeleteTiddler&quot;: {
&quot;title&quot;: &quot;$:/language/ConfirmDeleteTiddler&quot;,
&quot;text&quot;: &quot;Do you wish to delete the tiddler \&quot;&lt;$text text=&lt;&lt;title&gt;&gt;/&gt;\&quot;?&quot;
},
&quot;$:/language/ConfirmOverwriteTiddler&quot;: {
&quot;title&quot;: &quot;$:/language/ConfirmOverwriteTiddler&quot;,
&quot;text&quot;: &quot;Do you wish to overwrite the tiddler \&quot;&lt;$text text=&lt;&lt;title&gt;&gt;/&gt;\&quot;?&quot;
},
&quot;$:/language/ConfirmEditShadowTiddler&quot;: {
&quot;title&quot;: &quot;$:/language/ConfirmEditShadowTiddler&quot;,
&quot;text&quot;: &quot;You are about to edit a ShadowTiddler. Any changes will override the default system making future upgrades non-trivial. Are you sure you want to edit \&quot;&lt;$text text=&lt;&lt;title&gt;&gt;/&gt;\&quot;?&quot;
},
&quot;$:/language/ConfirmAction&quot;: {
&quot;title&quot;: &quot;$:/language/ConfirmAction&quot;,
&quot;text&quot;: &quot;Do you wish to proceed?&quot;
},
&quot;$:/language/Count&quot;: {
&quot;title&quot;: &quot;$:/language/Count&quot;,
&quot;text&quot;: &quot;count&quot;
},
&quot;$:/language/DefaultNewTiddlerTitle&quot;: {
&quot;title&quot;: &quot;$:/language/DefaultNewTiddlerTitle&quot;,
&quot;text&quot;: &quot;New Tiddler&quot;
},
&quot;$:/language/Diffs/CountMessage&quot;: {
&quot;title&quot;: &quot;$:/language/Diffs/CountMessage&quot;,
&quot;text&quot;: &quot;&lt;&lt;diff-count&gt;&gt; differences&quot;
},
&quot;$:/language/DropMessage&quot;: {
&quot;title&quot;: &quot;$:/language/DropMessage&quot;,
&quot;text&quot;: &quot;Drop here (or use the 'Escape' key to cancel)&quot;
},
&quot;$:/language/Encryption/Cancel&quot;: {
&quot;title&quot;: &quot;$:/language/Encryption/Cancel&quot;,
&quot;text&quot;: &quot;Cancel&quot;
},
&quot;$:/language/Encryption/ConfirmClearPassword&quot;: {
&quot;title&quot;: &quot;$:/language/Encryption/ConfirmClearPassword&quot;,
&quot;text&quot;: &quot;Do you wish to clear the password? This will remove the encryption applied when saving this wiki&quot;
},
&quot;$:/language/Encryption/PromptSetPassword&quot;: {
&quot;title&quot;: &quot;$:/language/Encryption/PromptSetPassword&quot;,
&quot;text&quot;: &quot;Set a new password for this TiddlyWiki&quot;
},
&quot;$:/language/Encryption/Username&quot;: {
&quot;title&quot;: &quot;$:/language/Encryption/Username&quot;,
&quot;text&quot;: &quot;Username&quot;
},
&quot;$:/language/Encryption/Password&quot;: {
&quot;title&quot;: &quot;$:/language/Encryption/Password&quot;,
&quot;text&quot;: &quot;Password&quot;
},
&quot;$:/language/Encryption/RepeatPassword&quot;: {
&quot;title&quot;: &quot;$:/language/Encryption/RepeatPassword&quot;,
&quot;text&quot;: &quot;Repeat password&quot;
},
&quot;$:/language/Encryption/PasswordNoMatch&quot;: {
&quot;title&quot;: &quot;$:/language/Encryption/PasswordNoMatch&quot;,
&quot;text&quot;: &quot;Passwords do not match&quot;
},
&quot;$:/language/Encryption/SetPassword&quot;: {
&quot;title&quot;: &quot;$:/language/Encryption/SetPassword&quot;,
&quot;text&quot;: &quot;Set password&quot;
},
&quot;$:/language/Error/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Error/Caption&quot;,
&quot;text&quot;: &quot;Error&quot;
},
&quot;$:/language/Error/EditConflict&quot;: {
&quot;title&quot;: &quot;$:/language/Error/EditConflict&quot;,
&quot;text&quot;: &quot;File changed on server&quot;
},
&quot;$:/language/Error/Filter&quot;: {
&quot;title&quot;: &quot;$:/language/Error/Filter&quot;,
&quot;text&quot;: &quot;Filter error&quot;
},
&quot;$:/language/Error/FilterSyntax&quot;: {
&quot;title&quot;: &quot;$:/language/Error/FilterSyntax&quot;,
&quot;text&quot;: &quot;Syntax error in filter expression&quot;
},
&quot;$:/language/Error/FilterRunPrefix&quot;: {
&quot;title&quot;: &quot;$:/language/Error/FilterRunPrefix&quot;,
&quot;text&quot;: &quot;Filter Error: Unknown prefix for filter run&quot;
},
&quot;$:/language/Error/IsFilterOperator&quot;: {
&quot;title&quot;: &quot;$:/language/Error/IsFilterOperator&quot;,
&quot;text&quot;: &quot;Filter Error: Unknown operand for the 'is' filter operator&quot;
},
&quot;$:/language/Error/FormatFilterOperator&quot;: {
&quot;title&quot;: &quot;$:/language/Error/FormatFilterOperator&quot;,
&quot;text&quot;: &quot;Filter Error: Unknown suffix for the 'format' filter operator&quot;
},
&quot;$:/language/Error/LoadingPluginLibrary&quot;: {
&quot;title&quot;: &quot;$:/language/Error/LoadingPluginLibrary&quot;,
&quot;text&quot;: &quot;Error loading plugin library&quot;
},
&quot;$:/language/Error/NetworkErrorAlert&quot;: {
&quot;title&quot;: &quot;$:/language/Error/NetworkErrorAlert&quot;,
&quot;text&quot;: &quot;`&lt;h2&gt;''Network Error''&lt;/h2&gt;It looks like the connection to the server has been lost. This may indicate a problem with your network connection. Please attempt to restore network connectivity before continuing.&lt;br&gt;&lt;br&gt;''Any unsaved changes will be automatically synchronised when connectivity is restored''.`&quot;
},
&quot;$:/language/Error/RecursiveTransclusion&quot;: {
&quot;title&quot;: &quot;$:/language/Error/RecursiveTransclusion&quot;,
&quot;text&quot;: &quot;Recursive transclusion error in transclude widget&quot;
},
&quot;$:/language/Error/RetrievingSkinny&quot;: {
&quot;title&quot;: &quot;$:/language/Error/RetrievingSkinny&quot;,
&quot;text&quot;: &quot;Error retrieving skinny tiddler list&quot;
},
&quot;$:/language/Error/SavingToTWEdit&quot;: {
&quot;title&quot;: &quot;$:/language/Error/SavingToTWEdit&quot;,
&quot;text&quot;: &quot;Error saving to TWEdit&quot;
},
&quot;$:/language/Error/WhileSaving&quot;: {
&quot;title&quot;: &quot;$:/language/Error/WhileSaving&quot;,
&quot;text&quot;: &quot;Error while saving&quot;
},
&quot;$:/language/Error/XMLHttpRequest&quot;: {
&quot;title&quot;: &quot;$:/language/Error/XMLHttpRequest&quot;,
&quot;text&quot;: &quot;XMLHttpRequest error code&quot;
},
&quot;$:/language/InternalJavaScriptError/Title&quot;: {
&quot;title&quot;: &quot;$:/language/InternalJavaScriptError/Title&quot;,
&quot;text&quot;: &quot;Internal JavaScript Error&quot;
},
&quot;$:/language/InternalJavaScriptError/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/InternalJavaScriptError/Hint&quot;,
&quot;text&quot;: &quot;Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser&quot;
},
&quot;$:/language/InvalidFieldName&quot;: {
&quot;title&quot;: &quot;$:/language/InvalidFieldName&quot;,
&quot;text&quot;: &quot;Illegal characters in field name \&quot;&lt;$text text=&lt;&lt;fieldName&gt;&gt;/&gt;\&quot;. Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`)&quot;
},
&quot;$:/language/LayoutSwitcher/Description&quot;: {
&quot;title&quot;: &quot;$:/language/LayoutSwitcher/Description&quot;,
&quot;text&quot;: &quot;Open the layout switcher&quot;
},
&quot;$:/language/LazyLoadingWarning&quot;: {
&quot;title&quot;: &quot;$:/language/LazyLoadingWarning&quot;,
&quot;text&quot;: &quot;&lt;p&gt;Trying to load external content from ''&lt;$text text={{!!_canonical_uri}}/&gt;''&lt;/p&gt;&lt;p&gt;If this message doesn't disappear, either the tiddler content type doesn't match the type of the external content, or you may be using a browser that doesn't support external content for wikis loaded as standalone files. See https://tiddlywiki.com/#ExternalText&lt;/p&gt;&quot;
},
&quot;$:/language/LoginToTiddlySpace&quot;: {
&quot;title&quot;: &quot;$:/language/LoginToTiddlySpace&quot;,
&quot;text&quot;: &quot;Login to TiddlySpace&quot;
},
&quot;$:/language/Manager/Controls/FilterByTag/None&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Controls/FilterByTag/None&quot;,
&quot;text&quot;: &quot;(none)&quot;
},
&quot;$:/language/Manager/Controls/FilterByTag/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Controls/FilterByTag/Prompt&quot;,
&quot;text&quot;: &quot;Filter by tag:&quot;
},
&quot;$:/language/Manager/Controls/Order/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Controls/Order/Prompt&quot;,
&quot;text&quot;: &quot;Reverse order&quot;
},
&quot;$:/language/Manager/Controls/Search/Placeholder&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Controls/Search/Placeholder&quot;,
&quot;text&quot;: &quot;Search&quot;
},
&quot;$:/language/Manager/Controls/Search/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Controls/Search/Prompt&quot;,
&quot;text&quot;: &quot;Search:&quot;
},
&quot;$:/language/Manager/Controls/Show/Option/Tags&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Controls/Show/Option/Tags&quot;,
&quot;text&quot;: &quot;tags&quot;
},
&quot;$:/language/Manager/Controls/Show/Option/Tiddlers&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Controls/Show/Option/Tiddlers&quot;,
&quot;text&quot;: &quot;tiddlers&quot;
},
&quot;$:/language/Manager/Controls/Show/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Controls/Show/Prompt&quot;,
&quot;text&quot;: &quot;Show:&quot;
},
&quot;$:/language/Manager/Controls/Sort/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Controls/Sort/Prompt&quot;,
&quot;text&quot;: &quot;Sort by:&quot;
},
&quot;$:/language/Manager/Item/Colour&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Item/Colour&quot;,
&quot;text&quot;: &quot;Colour&quot;
},
&quot;$:/language/Manager/Item/Fields&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Item/Fields&quot;,
&quot;text&quot;: &quot;Fields&quot;
},
&quot;$:/language/Manager/Item/Icon/None&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Item/Icon/None&quot;,
&quot;text&quot;: &quot;(none)&quot;
},
&quot;$:/language/Manager/Item/Icon&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Item/Icon&quot;,
&quot;text&quot;: &quot;Icon&quot;
},
&quot;$:/language/Manager/Item/RawText&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Item/RawText&quot;,
&quot;text&quot;: &quot;Raw text&quot;
},
&quot;$:/language/Manager/Item/Tags&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Item/Tags&quot;,
&quot;text&quot;: &quot;Tags&quot;
},
&quot;$:/language/Manager/Item/Tools&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Item/Tools&quot;,
&quot;text&quot;: &quot;Tools&quot;
},
&quot;$:/language/Manager/Item/WikifiedText&quot;: {
&quot;title&quot;: &quot;$:/language/Manager/Item/WikifiedText&quot;,
&quot;text&quot;: &quot;Wikified text&quot;
},
&quot;$:/language/MissingTiddler/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/MissingTiddler/Hint&quot;,
&quot;text&quot;: &quot;Missing tiddler \&quot;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;\&quot; -- click {{||$:/core/ui/Buttons/edit}} to create&quot;
},
&quot;$:/language/No&quot;: {
&quot;title&quot;: &quot;$:/language/No&quot;,
&quot;text&quot;: &quot;No&quot;
},
&quot;$:/language/OfficialPluginLibrary&quot;: {
&quot;title&quot;: &quot;$:/language/OfficialPluginLibrary&quot;,
&quot;text&quot;: &quot;Official ~TiddlyWiki Plugin Library&quot;
},
&quot;$:/language/OfficialPluginLibrary/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/OfficialPluginLibrary/Hint&quot;,
&quot;text&quot;: &quot;The official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team.&quot;
},
&quot;$:/language/PageTemplate/Description&quot;: {
&quot;title&quot;: &quot;$:/language/PageTemplate/Description&quot;,
&quot;text&quot;: &quot;the default ~TiddlyWiki layout&quot;
},
&quot;$:/language/PageTemplate/Name&quot;: {
&quot;title&quot;: &quot;$:/language/PageTemplate/Name&quot;,
&quot;text&quot;: &quot;Default ~PageTemplate&quot;
},
&quot;$:/language/PluginReloadWarning&quot;: {
&quot;title&quot;: &quot;$:/language/PluginReloadWarning&quot;,
&quot;text&quot;: &quot;Please save {{$:/core/ui/Buttons/save-wiki}} and reload {{$:/core/ui/Buttons/refresh}} to allow changes to ~JavaScript plugins to take effect&quot;
},
&quot;$:/language/RecentChanges/DateFormat&quot;: {
&quot;title&quot;: &quot;$:/language/RecentChanges/DateFormat&quot;,
&quot;text&quot;: &quot;DDth MMM YYYY&quot;
},
&quot;$:/language/Shortcuts/Input/AdvancedSearch/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Shortcuts/Input/AdvancedSearch/Hint&quot;,
&quot;text&quot;: &quot;Open the ~AdvancedSearch panel from within the sidebar search field&quot;
},
&quot;$:/language/Shortcuts/Input/Accept/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Shortcuts/Input/Accept/Hint&quot;,
&quot;text&quot;: &quot;Accept the selected item&quot;
},
&quot;$:/language/Shortcuts/Input/AcceptVariant/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Shortcuts/Input/AcceptVariant/Hint&quot;,
&quot;text&quot;: &quot;Accept the selected item (variant)&quot;
},
&quot;$:/language/Shortcuts/Input/Cancel/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Shortcuts/Input/Cancel/Hint&quot;,
&quot;text&quot;: &quot;Clear the input field&quot;
},
&quot;$:/language/Shortcuts/Input/Down/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Shortcuts/Input/Down/Hint&quot;,
&quot;text&quot;: &quot;Select the next item&quot;
},
&quot;$:/language/Shortcuts/Input/Tab-Left/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Shortcuts/Input/Tab-Left/Hint&quot;,
&quot;text&quot;: &quot;Select the previous Tab&quot;
},
&quot;$:/language/Shortcuts/Input/Tab-Right/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Shortcuts/Input/Tab-Right/Hint&quot;,
&quot;text&quot;: &quot;Select the next Tab&quot;
},
&quot;$:/language/Shortcuts/Input/Up/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Shortcuts/Input/Up/Hint&quot;,
&quot;text&quot;: &quot;Select the previous item&quot;
},
&quot;$:/language/Shortcuts/SidebarLayout/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Shortcuts/SidebarLayout/Hint&quot;,
&quot;text&quot;: &quot;Change the sidebar layout&quot;
},
&quot;$:/language/Switcher/Subtitle/theme&quot;: {
&quot;title&quot;: &quot;$:/language/Switcher/Subtitle/theme&quot;,
&quot;text&quot;: &quot;Switch Theme&quot;
},
&quot;$:/language/Switcher/Subtitle/layout&quot;: {
&quot;title&quot;: &quot;$:/language/Switcher/Subtitle/layout&quot;,
&quot;text&quot;: &quot;Switch Layout&quot;
},
&quot;$:/language/Switcher/Subtitle/language&quot;: {
&quot;title&quot;: &quot;$:/language/Switcher/Subtitle/language&quot;,
&quot;text&quot;: &quot;Switch Language&quot;
},
&quot;$:/language/Switcher/Subtitle/palette&quot;: {
&quot;title&quot;: &quot;$:/language/Switcher/Subtitle/palette&quot;,
&quot;text&quot;: &quot;Switch Palette&quot;
},
&quot;$:/language/SystemTiddler/Tooltip&quot;: {
&quot;title&quot;: &quot;$:/language/SystemTiddler/Tooltip&quot;,
&quot;text&quot;: &quot;This is a system tiddler&quot;
},
&quot;$:/language/SystemTiddlers/Include/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/SystemTiddlers/Include/Prompt&quot;,
&quot;text&quot;: &quot;Include system tiddlers&quot;
},
&quot;$:/language/TagManager/Colour/Heading&quot;: {
&quot;title&quot;: &quot;$:/language/TagManager/Colour/Heading&quot;,
&quot;text&quot;: &quot;Colour&quot;
},
&quot;$:/language/TagManager/Count/Heading&quot;: {
&quot;title&quot;: &quot;$:/language/TagManager/Count/Heading&quot;,
&quot;text&quot;: &quot;Count&quot;
},
&quot;$:/language/TagManager/Icon/Heading&quot;: {
&quot;title&quot;: &quot;$:/language/TagManager/Icon/Heading&quot;,
&quot;text&quot;: &quot;Icon&quot;
},
&quot;$:/language/TagManager/Icons/None&quot;: {
&quot;title&quot;: &quot;$:/language/TagManager/Icons/None&quot;,
&quot;text&quot;: &quot;None&quot;
},
&quot;$:/language/TagManager/Info/Heading&quot;: {
&quot;title&quot;: &quot;$:/language/TagManager/Info/Heading&quot;,
&quot;text&quot;: &quot;Info&quot;
},
&quot;$:/language/TagManager/Tag/Heading&quot;: {
&quot;title&quot;: &quot;$:/language/TagManager/Tag/Heading&quot;,
&quot;text&quot;: &quot;Tag&quot;
},
&quot;$:/language/Tiddler/DateFormat&quot;: {
&quot;title&quot;: &quot;$:/language/Tiddler/DateFormat&quot;,
&quot;text&quot;: &quot;DDth MMM YYYY at hh12:0mmam&quot;
},
&quot;$:/language/UnsavedChangesWarning&quot;: {
&quot;title&quot;: &quot;$:/language/UnsavedChangesWarning&quot;,
&quot;text&quot;: &quot;You have unsaved changes in TiddlyWiki&quot;
},
&quot;$:/language/Yes&quot;: {
&quot;title&quot;: &quot;$:/language/Yes&quot;,
&quot;text&quot;: &quot;Yes&quot;
},
&quot;$:/language/Modals/Download&quot;: {
&quot;title&quot;: &quot;$:/language/Modals/Download&quot;,
&quot;subtitle&quot;: &quot;Download changes&quot;,
&quot;footer&quot;: &quot;&lt;$button message=\&quot;tm-close-tiddler\&quot;&gt;Close&lt;/$button&gt;&quot;,
&quot;help&quot;: &quot;https://tiddlywiki.com/static/DownloadingChanges.html&quot;,
&quot;text&quot;: &quot;Your browser only supports manual saving.\n\nTo save your modified wiki, right click on the download link below and select \&quot;Download file\&quot; or \&quot;Save file\&quot;, and then choose the folder and filename.\n\n//You can marginally speed things up by clicking the link with the control key (Windows) or the options/alt key (Mac OS X). You will not be prompted for the folder or filename, but your browser is likely to give it an unrecognisable name -- you may need to rename the file to include an `.html` extension before you can do anything useful with it.//\n\nOn smartphones that do not allow files to be downloaded you can instead bookmark the link, and then sync your bookmarks to a desktop computer from where the wiki can be saved normally.\n&quot;
},
&quot;$:/language/Modals/SaveInstructions&quot;: {
&quot;title&quot;: &quot;$:/language/Modals/SaveInstructions&quot;,
&quot;subtitle&quot;: &quot;Save your work&quot;,
&quot;footer&quot;: &quot;&lt;$button message=\&quot;tm-close-tiddler\&quot;&gt;Close&lt;/$button&gt;&quot;,
&quot;help&quot;: &quot;https://tiddlywiki.com/static/SavingChanges.html&quot;,
&quot;text&quot;: &quot;Your changes to this wiki need to be saved as a ~TiddlyWiki HTML file.\n\n!!! Desktop browsers\n\n# Select ''Save As'' from the ''File'' menu\n# Choose a filename and location\n#* Some browsers also require you to explicitly specify the file saving format as ''Webpage, HTML only'' or similar\n# Close this tab\n\n!!! Smartphone browsers\n\n# Create a bookmark to this page\n#* If you've got iCloud or Google Sync set up then the bookmark will automatically sync to your desktop where you can open it and save it as above\n# Close this tab\n\n//If you open the bookmark again in Mobile Safari you will see this message again. If you want to go ahead and use the file, just click the ''close'' button below//\n&quot;
},
&quot;$:/config/NewJournal/Title&quot;: {
&quot;title&quot;: &quot;$:/config/NewJournal/Title&quot;,
&quot;text&quot;: &quot;DDth MMM YYYY&quot;
},
&quot;$:/config/NewJournal/Text&quot;: {
&quot;title&quot;: &quot;$:/config/NewJournal/Text&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/config/NewJournal/Tags&quot;: {
&quot;title&quot;: &quot;$:/config/NewJournal/Tags&quot;,
&quot;text&quot;: &quot;Journal\n&quot;
},
&quot;$:/language/Notifications/Save/Done&quot;: {
&quot;title&quot;: &quot;$:/language/Notifications/Save/Done&quot;,
&quot;text&quot;: &quot;Saved wiki&quot;
},
&quot;$:/language/Notifications/Save/Starting&quot;: {
&quot;title&quot;: &quot;$:/language/Notifications/Save/Starting&quot;,
&quot;text&quot;: &quot;Starting to save wiki&quot;
},
&quot;$:/language/Notifications/CopiedToClipboard/Succeeded&quot;: {
&quot;title&quot;: &quot;$:/language/Notifications/CopiedToClipboard/Succeeded&quot;,
&quot;text&quot;: &quot;Copied to clipboard!&quot;
},
&quot;$:/language/Notifications/CopiedToClipboard/Failed&quot;: {
&quot;title&quot;: &quot;$:/language/Notifications/CopiedToClipboard/Failed&quot;,
&quot;text&quot;: &quot;Failed to copy to clipboard!&quot;
},
&quot;$:/language/Search/DefaultResults/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Search/DefaultResults/Caption&quot;,
&quot;text&quot;: &quot;List&quot;
},
&quot;$:/language/Search/Filter/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Filter/Caption&quot;,
&quot;text&quot;: &quot;Filter&quot;
},
&quot;$:/language/Search/Filter/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Filter/Hint&quot;,
&quot;text&quot;: &quot;Search via a [[filter expression|https://tiddlywiki.com/static/Filters.html]]&quot;
},
&quot;$:/language/Search/Filter/Matches&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Filter/Matches&quot;,
&quot;text&quot;: &quot;//&lt;small&gt;&lt;&lt;resultCount&gt;&gt; matches&lt;/small&gt;//&quot;
},
&quot;$:/language/Search/Matches&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Matches&quot;,
&quot;text&quot;: &quot;//&lt;small&gt;&lt;&lt;resultCount&gt;&gt; matches&lt;/small&gt;//&quot;
},
&quot;$:/language/Search/Matches/All&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Matches/All&quot;,
&quot;text&quot;: &quot;All matches:&quot;
},
&quot;$:/language/Search/Matches/Title&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Matches/Title&quot;,
&quot;text&quot;: &quot;Title matches:&quot;
},
&quot;$:/language/Search/Search&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Search&quot;,
&quot;text&quot;: &quot;Search&quot;
},
&quot;$:/language/Search/Search/TooShort&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Search/TooShort&quot;,
&quot;text&quot;: &quot;Search text too short&quot;
},
&quot;$:/language/Search/Shadows/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Shadows/Caption&quot;,
&quot;text&quot;: &quot;Shadows&quot;
},
&quot;$:/language/Search/Shadows/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Shadows/Hint&quot;,
&quot;text&quot;: &quot;Search for shadow tiddlers&quot;
},
&quot;$:/language/Search/Shadows/Matches&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Shadows/Matches&quot;,
&quot;text&quot;: &quot;//&lt;small&gt;&lt;&lt;resultCount&gt;&gt; matches&lt;/small&gt;//&quot;
},
&quot;$:/language/Search/Standard/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Standard/Caption&quot;,
&quot;text&quot;: &quot;Standard&quot;
},
&quot;$:/language/Search/Standard/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Standard/Hint&quot;,
&quot;text&quot;: &quot;Search for standard tiddlers&quot;
},
&quot;$:/language/Search/Standard/Matches&quot;: {
&quot;title&quot;: &quot;$:/language/Search/Standard/Matches&quot;,
&quot;text&quot;: &quot;//&lt;small&gt;&lt;&lt;resultCount&gt;&gt; matches&lt;/small&gt;//&quot;
},
&quot;$:/language/Search/System/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/Search/System/Caption&quot;,
&quot;text&quot;: &quot;System&quot;
},
&quot;$:/language/Search/System/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/Search/System/Hint&quot;,
&quot;text&quot;: &quot;Search for system tiddlers&quot;
},
&quot;$:/language/Search/System/Matches&quot;: {
&quot;title&quot;: &quot;$:/language/Search/System/Matches&quot;,
&quot;text&quot;: &quot;//&lt;small&gt;&lt;&lt;resultCount&gt;&gt; matches&lt;/small&gt;//&quot;
},
&quot;$:/language/SideBar/All/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/All/Caption&quot;,
&quot;text&quot;: &quot;All&quot;
},
&quot;$:/language/SideBar/Contents/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Contents/Caption&quot;,
&quot;text&quot;: &quot;Contents&quot;
},
&quot;$:/language/SideBar/Drafts/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Drafts/Caption&quot;,
&quot;text&quot;: &quot;Drafts&quot;
},
&quot;$:/language/SideBar/Explorer/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Explorer/Caption&quot;,
&quot;text&quot;: &quot;Explorer&quot;
},
&quot;$:/language/SideBar/Missing/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Missing/Caption&quot;,
&quot;text&quot;: &quot;Missing&quot;
},
&quot;$:/language/SideBar/More/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/More/Caption&quot;,
&quot;text&quot;: &quot;More&quot;
},
&quot;$:/language/SideBar/Open/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Open/Caption&quot;,
&quot;text&quot;: &quot;Open&quot;
},
&quot;$:/language/SideBar/Orphans/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Orphans/Caption&quot;,
&quot;text&quot;: &quot;Orphans&quot;
},
&quot;$:/language/SideBar/Recent/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Recent/Caption&quot;,
&quot;text&quot;: &quot;Recent&quot;
},
&quot;$:/language/SideBar/Shadows/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Shadows/Caption&quot;,
&quot;text&quot;: &quot;Shadows&quot;
},
&quot;$:/language/SideBar/System/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/System/Caption&quot;,
&quot;text&quot;: &quot;System&quot;
},
&quot;$:/language/SideBar/Tags/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Tags/Caption&quot;,
&quot;text&quot;: &quot;Tags&quot;
},
&quot;$:/language/SideBar/Tags/Untagged/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Tags/Untagged/Caption&quot;,
&quot;text&quot;: &quot;untagged&quot;
},
&quot;$:/language/SideBar/Tools/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Tools/Caption&quot;,
&quot;text&quot;: &quot;Tools&quot;
},
&quot;$:/language/SideBar/Types/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/SideBar/Types/Caption&quot;,
&quot;text&quot;: &quot;Types&quot;
},
&quot;$:/SiteSubtitle&quot;: {
&quot;title&quot;: &quot;$:/SiteSubtitle&quot;,
&quot;text&quot;: &quot;a non-linear personal web notebook&quot;
},
&quot;$:/SiteTitle&quot;: {
&quot;title&quot;: &quot;$:/SiteTitle&quot;,
&quot;text&quot;: &quot;My ~TiddlyWiki&quot;
},
&quot;$:/language/Snippets/ListByTag&quot;: {
&quot;title&quot;: &quot;$:/language/Snippets/ListByTag&quot;,
&quot;tags&quot;: &quot;$:/tags/TextEditor/Snippet&quot;,
&quot;caption&quot;: &quot;List of tiddlers by tag&quot;,
&quot;text&quot;: &quot;&lt;&lt;list-links \&quot;[tag[task]sort[title]]\&quot;&gt;&gt;\n&quot;
},
&quot;$:/language/Snippets/MacroDefinition&quot;: {
&quot;title&quot;: &quot;$:/language/Snippets/MacroDefinition&quot;,
&quot;tags&quot;: &quot;$:/tags/TextEditor/Snippet&quot;,
&quot;caption&quot;: &quot;Macro definition&quot;,
&quot;text&quot;: &quot;\\define macroName(param1:\&quot;default value\&quot;,param2)\nText of the macro\n\\end\n&quot;
},
&quot;$:/language/Snippets/Table4x3&quot;: {
&quot;title&quot;: &quot;$:/language/Snippets/Table4x3&quot;,
&quot;tags&quot;: &quot;$:/tags/TextEditor/Snippet&quot;,
&quot;caption&quot;: &quot;Table with 4 columns by 3 rows&quot;,
&quot;text&quot;: &quot;|! |!Alpha |!Beta |!Gamma |!Delta |\n|!One | | | | |\n|!Two | | | | |\n|!Three | | | | |\n&quot;
},
&quot;$:/language/Snippets/TableOfContents&quot;: {
&quot;title&quot;: &quot;$:/language/Snippets/TableOfContents&quot;,
&quot;tags&quot;: &quot;$:/tags/TextEditor/Snippet&quot;,
&quot;caption&quot;: &quot;Table of Contents&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-table-of-contents\&quot;&gt;\n\n&lt;&lt;toc-selective-expandable 'TableOfContents'&gt;&gt;\n\n&lt;/div&gt;&quot;
},
&quot;$:/language/ThemeTweaks/ThemeTweaks&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/ThemeTweaks&quot;,
&quot;text&quot;: &quot;Theme Tweaks&quot;
},
&quot;$:/language/ThemeTweaks/ThemeTweaks/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/ThemeTweaks/Hint&quot;,
&quot;text&quot;: &quot;You can tweak certain aspects of the ''Vanilla'' theme.&quot;
},
&quot;$:/language/ThemeTweaks/Options&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Options&quot;,
&quot;text&quot;: &quot;Options&quot;
},
&quot;$:/language/ThemeTweaks/Options/SidebarLayout&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Options/SidebarLayout&quot;,
&quot;text&quot;: &quot;Sidebar layout&quot;
},
&quot;$:/language/ThemeTweaks/Options/SidebarLayout/Fixed-Fluid&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Options/SidebarLayout/Fixed-Fluid&quot;,
&quot;text&quot;: &quot;Fixed story, fluid sidebar&quot;
},
&quot;$:/language/ThemeTweaks/Options/SidebarLayout/Fluid-Fixed&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Options/SidebarLayout/Fluid-Fixed&quot;,
&quot;text&quot;: &quot;Fluid story, fixed sidebar&quot;
},
&quot;$:/language/ThemeTweaks/Options/StickyTitles&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Options/StickyTitles&quot;,
&quot;text&quot;: &quot;Sticky titles&quot;
},
&quot;$:/language/ThemeTweaks/Options/StickyTitles/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Options/StickyTitles/Hint&quot;,
&quot;text&quot;: &quot;Causes tiddler titles to \&quot;stick\&quot; to the top of the browser window&quot;
},
&quot;$:/language/ThemeTweaks/Options/CodeWrapping&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Options/CodeWrapping&quot;,
&quot;text&quot;: &quot;Wrap long lines in code blocks&quot;
},
&quot;$:/language/ThemeTweaks/Settings&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings&quot;,
&quot;text&quot;: &quot;Settings&quot;
},
&quot;$:/language/ThemeTweaks/Settings/FontFamily&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings/FontFamily&quot;,
&quot;text&quot;: &quot;Font family&quot;
},
&quot;$:/language/ThemeTweaks/Settings/CodeFontFamily&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings/CodeFontFamily&quot;,
&quot;text&quot;: &quot;Code font family&quot;
},
&quot;$:/language/ThemeTweaks/Settings/EditorFontFamily&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings/EditorFontFamily&quot;,
&quot;text&quot;: &quot;Editor font family&quot;
},
&quot;$:/language/ThemeTweaks/Settings/BackgroundImage&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings/BackgroundImage&quot;,
&quot;text&quot;: &quot;Page background image&quot;
},
&quot;$:/language/ThemeTweaks/Settings/BackgroundImageAttachment&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings/BackgroundImageAttachment&quot;,
&quot;text&quot;: &quot;Page background image attachment&quot;
},
&quot;$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Scroll&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Scroll&quot;,
&quot;text&quot;: &quot;Scroll with tiddlers&quot;
},
&quot;$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Fixed&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Fixed&quot;,
&quot;text&quot;: &quot;Fixed to window&quot;
},
&quot;$:/language/ThemeTweaks/Settings/BackgroundImageSize&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings/BackgroundImageSize&quot;,
&quot;text&quot;: &quot;Page background image size&quot;
},
&quot;$:/language/ThemeTweaks/Settings/BackgroundImageSize/Auto&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings/BackgroundImageSize/Auto&quot;,
&quot;text&quot;: &quot;Auto&quot;
},
&quot;$:/language/ThemeTweaks/Settings/BackgroundImageSize/Cover&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings/BackgroundImageSize/Cover&quot;,
&quot;text&quot;: &quot;Cover&quot;
},
&quot;$:/language/ThemeTweaks/Settings/BackgroundImageSize/Contain&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Settings/BackgroundImageSize/Contain&quot;,
&quot;text&quot;: &quot;Contain&quot;
},
&quot;$:/language/ThemeTweaks/Metrics&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics&quot;,
&quot;text&quot;: &quot;Sizes&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/FontSize&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/FontSize&quot;,
&quot;text&quot;: &quot;Font size&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/LineHeight&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/LineHeight&quot;,
&quot;text&quot;: &quot;Line height&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/BodyFontSize&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/BodyFontSize&quot;,
&quot;text&quot;: &quot;Font size for tiddler body&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/BodyLineHeight&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/BodyLineHeight&quot;,
&quot;text&quot;: &quot;Line height for tiddler body&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/StoryLeft&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/StoryLeft&quot;,
&quot;text&quot;: &quot;Story left position&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/StoryLeft/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/StoryLeft/Hint&quot;,
&quot;text&quot;: &quot;how far the left margin of the story river&lt;br&gt;(tiddler area) is from the left of the page&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/StoryTop&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/StoryTop&quot;,
&quot;text&quot;: &quot;Story top position&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/StoryTop/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/StoryTop/Hint&quot;,
&quot;text&quot;: &quot;how far the top margin of the story river&lt;br&gt;is from the top of the page&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/StoryRight&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/StoryRight&quot;,
&quot;text&quot;: &quot;Story right&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/StoryRight/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/StoryRight/Hint&quot;,
&quot;text&quot;: &quot;how far the left margin of the sidebar &lt;br&gt;is from the left of the page&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/StoryWidth&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/StoryWidth&quot;,
&quot;text&quot;: &quot;Story width&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/StoryWidth/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/StoryWidth/Hint&quot;,
&quot;text&quot;: &quot;the overall width of the story river&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/TiddlerWidth&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/TiddlerWidth&quot;,
&quot;text&quot;: &quot;Tiddler width&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/TiddlerWidth/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/TiddlerWidth/Hint&quot;,
&quot;text&quot;: &quot;within the story river&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/SidebarBreakpoint&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/SidebarBreakpoint&quot;,
&quot;text&quot;: &quot;Sidebar breakpoint&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/SidebarBreakpoint/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/SidebarBreakpoint/Hint&quot;,
&quot;text&quot;: &quot;the minimum page width at which the story&lt;br&gt;river and sidebar will appear side by side&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/SidebarWidth&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/SidebarWidth&quot;,
&quot;text&quot;: &quot;Sidebar width&quot;
},
&quot;$:/language/ThemeTweaks/Metrics/SidebarWidth/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/ThemeTweaks/Metrics/SidebarWidth/Hint&quot;,
&quot;text&quot;: &quot;the width of the sidebar in fluid-fixed layout&quot;
},
&quot;$:/language/TiddlerInfo/Advanced/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Advanced/Caption&quot;,
&quot;text&quot;: &quot;Advanced&quot;
},
&quot;$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint&quot;,
&quot;text&quot;: &quot;none&quot;
},
&quot;$:/language/TiddlerInfo/Advanced/PluginInfo/Heading&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Advanced/PluginInfo/Heading&quot;,
&quot;text&quot;: &quot;Plugin Details&quot;
},
&quot;$:/language/TiddlerInfo/Advanced/PluginInfo/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Advanced/PluginInfo/Hint&quot;,
&quot;text&quot;: &quot;This plugin contains the following shadow tiddlers:&quot;
},
&quot;$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading&quot;,
&quot;text&quot;: &quot;Shadow Status&quot;
},
&quot;$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint&quot;,
&quot;text&quot;: &quot;The tiddler &lt;$link to=&lt;&lt;infoTiddler&gt;&gt;&gt;&lt;$text text=&lt;&lt;infoTiddler&gt;&gt;/&gt;&lt;/$link&gt; is not a shadow tiddler&quot;
},
&quot;$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint&quot;,
&quot;text&quot;: &quot;The tiddler &lt;$link to=&lt;&lt;infoTiddler&gt;&gt;&gt;&lt;$text text=&lt;&lt;infoTiddler&gt;&gt;/&gt;&lt;/$link&gt; is a shadow tiddler&quot;
},
&quot;$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source&quot;,
&quot;text&quot;: &quot;It is defined in the plugin &lt;$link to=&lt;&lt;pluginTiddler&gt;&gt;&gt;&lt;$text text=&lt;&lt;pluginTiddler&gt;&gt;/&gt;&lt;/$link&gt;&quot;
},
&quot;$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint&quot;,
&quot;text&quot;: &quot;It is overridden by an ordinary tiddler&quot;
},
&quot;$:/language/TiddlerInfo/Fields/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Fields/Caption&quot;,
&quot;text&quot;: &quot;Fields&quot;
},
&quot;$:/language/TiddlerInfo/List/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/List/Caption&quot;,
&quot;text&quot;: &quot;List&quot;
},
&quot;$:/language/TiddlerInfo/List/Empty&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/List/Empty&quot;,
&quot;text&quot;: &quot;This tiddler does not have a list&quot;
},
&quot;$:/language/TiddlerInfo/Listed/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Listed/Caption&quot;,
&quot;text&quot;: &quot;Listed&quot;
},
&quot;$:/language/TiddlerInfo/Listed/Empty&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Listed/Empty&quot;,
&quot;text&quot;: &quot;This tiddler is not listed by any others&quot;
},
&quot;$:/language/TiddlerInfo/References/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/References/Caption&quot;,
&quot;text&quot;: &quot;Backlinks&quot;
},
&quot;$:/language/TiddlerInfo/References/Empty&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/References/Empty&quot;,
&quot;text&quot;: &quot;No tiddlers link to this one&quot;
},
&quot;$:/language/TiddlerInfo/Tagging/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Tagging/Caption&quot;,
&quot;text&quot;: &quot;Tagging&quot;
},
&quot;$:/language/TiddlerInfo/Tagging/Empty&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Tagging/Empty&quot;,
&quot;text&quot;: &quot;No tiddlers are tagged with this one&quot;
},
&quot;$:/language/TiddlerInfo/Tools/Caption&quot;: {
&quot;title&quot;: &quot;$:/language/TiddlerInfo/Tools/Caption&quot;,
&quot;text&quot;: &quot;Tools&quot;
},
&quot;$:/language/Docs/Types/application/javascript&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/application/javascript&quot;,
&quot;description&quot;: &quot;JavaScript code&quot;,
&quot;name&quot;: &quot;application/javascript&quot;,
&quot;group&quot;: &quot;Developer&quot;,
&quot;group-sort&quot;: &quot;2&quot;
},
&quot;$:/language/Docs/Types/application/json&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/application/json&quot;,
&quot;description&quot;: &quot;JSON data&quot;,
&quot;name&quot;: &quot;application/json&quot;,
&quot;group&quot;: &quot;Developer&quot;,
&quot;group-sort&quot;: &quot;2&quot;
},
&quot;$:/language/Docs/Types/application/x-tiddler-dictionary&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/application/x-tiddler-dictionary&quot;,
&quot;description&quot;: &quot;Data dictionary&quot;,
&quot;name&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;group&quot;: &quot;Developer&quot;,
&quot;group-sort&quot;: &quot;2&quot;
},
&quot;$:/language/Docs/Types/image/gif&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/image/gif&quot;,
&quot;description&quot;: &quot;GIF image&quot;,
&quot;name&quot;: &quot;image/gif&quot;,
&quot;group&quot;: &quot;Image&quot;,
&quot;group-sort&quot;: &quot;1&quot;
},
&quot;$:/language/Docs/Types/image/jpeg&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/image/jpeg&quot;,
&quot;description&quot;: &quot;JPEG image&quot;,
&quot;name&quot;: &quot;image/jpeg&quot;,
&quot;group&quot;: &quot;Image&quot;,
&quot;group-sort&quot;: &quot;1&quot;
},
&quot;$:/language/Docs/Types/image/png&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/image/png&quot;,
&quot;description&quot;: &quot;PNG image&quot;,
&quot;name&quot;: &quot;image/png&quot;,
&quot;group&quot;: &quot;Image&quot;,
&quot;group-sort&quot;: &quot;1&quot;
},
&quot;$:/language/Docs/Types/image/svg+xml&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/image/svg+xml&quot;,
&quot;description&quot;: &quot;Structured Vector Graphics image&quot;,
&quot;name&quot;: &quot;image/svg+xml&quot;,
&quot;group&quot;: &quot;Image&quot;,
&quot;group-sort&quot;: &quot;1&quot;
},
&quot;$:/language/Docs/Types/image/x-icon&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/image/x-icon&quot;,
&quot;description&quot;: &quot;ICO format icon file&quot;,
&quot;name&quot;: &quot;image/x-icon&quot;,
&quot;group&quot;: &quot;Image&quot;,
&quot;group-sort&quot;: &quot;1&quot;
},
&quot;$:/language/Docs/Types/text/css&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/text/css&quot;,
&quot;description&quot;: &quot;Static stylesheet&quot;,
&quot;name&quot;: &quot;text/css&quot;,
&quot;group&quot;: &quot;Developer&quot;,
&quot;group-sort&quot;: &quot;2&quot;
},
&quot;$:/language/Docs/Types/text/html&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/text/html&quot;,
&quot;description&quot;: &quot;HTML markup&quot;,
&quot;name&quot;: &quot;text/html&quot;,
&quot;group&quot;: &quot;Text&quot;,
&quot;group-sort&quot;: &quot;0&quot;
},
&quot;$:/language/Docs/Types/text/plain&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/text/plain&quot;,
&quot;description&quot;: &quot;Plain text&quot;,
&quot;name&quot;: &quot;text/plain&quot;,
&quot;group&quot;: &quot;Text&quot;,
&quot;group-sort&quot;: &quot;0&quot;
},
&quot;$:/language/Docs/Types/text/vnd.tiddlywiki&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/text/vnd.tiddlywiki&quot;,
&quot;description&quot;: &quot;TiddlyWiki 5&quot;,
&quot;name&quot;: &quot;text/vnd.tiddlywiki&quot;,
&quot;group&quot;: &quot;Text&quot;,
&quot;group-sort&quot;: &quot;0&quot;
},
&quot;$:/language/Docs/Types/text/x-tiddlywiki&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Types/text/x-tiddlywiki&quot;,
&quot;description&quot;: &quot;TiddlyWiki Classic&quot;,
&quot;name&quot;: &quot;text/x-tiddlywiki&quot;,
&quot;group&quot;: &quot;Text&quot;,
&quot;group-sort&quot;: &quot;0&quot;
},
&quot;$:/languages/en-GB/icon&quot;: {
&quot;title&quot;: &quot;$:/languages/en-GB/icon&quot;,
&quot;type&quot;: &quot;image/svg+xml&quot;,
&quot;text&quot;: &quot;&lt;svg xmlns=\&quot;http://www.w3.org/2000/svg\&quot; viewBox=\&quot;0 0 60 30\&quot; width=\&quot;1200\&quot; height=\&quot;600\&quot;&gt;\n&lt;clipPath id=\&quot;t\&quot;&gt;\n\t&lt;path d=\&quot;M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z\&quot;/&gt;\n&lt;/clipPath&gt;\n&lt;path d=\&quot;M0,0 v30 h60 v-30 z\&quot; fill=\&quot;#00247d\&quot;/&gt;\n&lt;path d=\&quot;M0,0 L60,30 M60,0 L0,30\&quot; stroke=\&quot;#fff\&quot; stroke-width=\&quot;6\&quot;/&gt;\n&lt;path d=\&quot;M0,0 L60,30 M60,0 L0,30\&quot; clip-path=\&quot;url(#t)\&quot; stroke=\&quot;#cf142b\&quot; stroke-width=\&quot;4\&quot;/&gt;\n&lt;path d=\&quot;M30,0 v30 M0,15 h60\&quot; stroke=\&quot;#fff\&quot; stroke-width=\&quot;10\&quot;/&gt;\n&lt;path d=\&quot;M30,0 v30 M0,15 h60\&quot; stroke=\&quot;#cf142b\&quot; stroke-width=\&quot;6\&quot;/&gt;\n&lt;/svg&gt;\n&quot;
},
&quot;$:/languages/en-GB&quot;: {
&quot;title&quot;: &quot;$:/languages/en-GB&quot;,
&quot;name&quot;: &quot;en-GB&quot;,
&quot;description&quot;: &quot;English (British)&quot;,
&quot;author&quot;: &quot;JeremyRuston&quot;,
&quot;core-version&quot;: &quot;&gt;=5.0.0\&quot;&quot;,
&quot;text&quot;: &quot;Stub pseudo-plugin for the default language&quot;
},
&quot;$:/core/modules/commander.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commander.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commander.js\ntype: application/javascript\nmodule-type: global\n\nThe $tw.Commander class is a command interpreter\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nParse a sequence of commands\n\tcommandTokens: an array of command string tokens\n\twiki: reference to the wiki store object\n\tstreams: {output:, error:}, each of which has a write(string) method\n\tcallback: a callback invoked as callback(err) where err is null if there was no error\n*/\nvar Commander = function(commandTokens,callback,wiki,streams) {\n\tvar path = require(\&quot;path\&quot;);\n\tthis.commandTokens = commandTokens;\n\tthis.nextToken = 0;\n\tthis.callback = callback;\n\tthis.wiki = wiki;\n\tthis.streams = streams;\n\tthis.outputPath = path.resolve($tw.boot.wikiPath,$tw.config.wikiOutputSubDir);\n};\n\n/*\nLog a string if verbose flag is set\n*/\nCommander.prototype.log = function(str) {\n\tif(this.verbose) {\n\t\tthis.streams.output.write(str + \&quot;\\n\&quot;);\n\t}\n};\n\n/*\nWrite a string if verbose flag is set\n*/\nCommander.prototype.write = function(str) {\n\tif(this.verbose) {\n\t\tthis.streams.output.write(str);\n\t}\n};\n\n/*\nAdd a string of tokens to the command queue\n*/\nCommander.prototype.addCommandTokens = function(commandTokens) {\n\tvar params = commandTokens.slice(0);\n\tparams.unshift(0);\n\tparams.unshift(this.nextToken);\n\tArray.prototype.splice.apply(this.commandTokens,params);\n};\n\n/*\nExecute the sequence of commands and invoke a callback on completion\n*/\nCommander.prototype.execute = function() {\n\tthis.executeNextCommand();\n};\n\n/*\nExecute the next command in the sequence\n*/\nCommander.prototype.executeNextCommand = function() {\n\tvar self = this;\n\t// Invoke the callback if there are no more commands\n\tif(this.nextToken &gt;= this.commandTokens.length) {\n\t\tthis.callback(null);\n\t} else {\n\t\t// Get and check the command token\n\t\tvar commandName = this.commandTokens[this.nextToken++];\n\t\tif(commandName.substr(0,2) !== \&quot;--\&quot;) {\n\t\t\tthis.callback(\&quot;Missing command: \&quot; + commandName);\n\t\t} else {\n\t\t\tcommandName = commandName.substr(2); // Trim off the --\n\t\t\t// Accumulate the parameters to the command\n\t\t\tvar params = [];\n\t\t\twhile(this.nextToken &lt; this.commandTokens.length &amp;&amp; \n\t\t\t\tthis.commandTokens[this.nextToken].substr(0,2) !== \&quot;--\&quot;) {\n\t\t\t\tparams.push(this.commandTokens[this.nextToken++]);\n\t\t\t}\n\t\t\t// Get the command info\n\t\t\tvar command = $tw.commands[commandName],\n\t\t\t\tc,err;\n\t\t\tif(!command) {\n\t\t\t\tthis.callback(\&quot;Unknown command: \&quot; + commandName);\n\t\t\t} else {\n\t\t\t\tif(this.verbose) {\n\t\t\t\t\tthis.streams.output.write(\&quot;Executing command: \&quot; + commandName + \&quot; \&quot; + params.join(\&quot; \&quot;) + \&quot;\\n\&quot;);\n\t\t\t\t}\n\t\t\t\t// Parse named parameters if required\n\t\t\t\tif(command.info.namedParameterMode) {\n\t\t\t\t\tparams = this.extractNamedParameters(params,command.info.mandatoryParameters);\n\t\t\t\t\tif(typeof params === \&quot;string\&quot;) {\n\t\t\t\t\t\treturn this.callback(params);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(command.info.synchronous) {\n\t\t\t\t\t// Synchronous command\n\t\t\t\t\tc = new command.Command(params,this);\n\t\t\t\t\terr = c.execute();\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\tthis.callback(err);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.executeNextCommand();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Asynchronous command\n\t\t\t\t\tc = new command.Command(params,this,function(err) {\n\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\tself.callback(err);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tself.executeNextCommand();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\terr = c.execute();\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\tthis.callback(err);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\n/*\nGiven an array of parameter strings `params` in name:value format, and an array of mandatory parameter names in `mandatoryParameters`, returns a hashmap of values or a string if error\n*/\nCommander.prototype.extractNamedParameters = function(params,mandatoryParameters) {\n\tmandatoryParameters = mandatoryParameters || [];\n\tvar errors = [],\n\t\tparamsByName = Object.create(null);\n\t// Extract the parameters\n\t$tw.utils.each(params,function(param) {\n\t\tvar index = param.indexOf(\&quot;=\&quot;);\n\t\tif(index &lt; 1) {\n\t\t\terrors.push(\&quot;malformed named parameter: '\&quot; + param + \&quot;'\&quot;);\n\t\t}\n\t\tparamsByName[param.slice(0,index)] = $tw.utils.trim(param.slice(index+1));\n\t});\n\t// Check the mandatory parameters are present\n\t$tw.utils.each(mandatoryParameters,function(mandatoryParameter) {\n\t\tif(!$tw.utils.hop(paramsByName,mandatoryParameter)) {\n\t\t\terrors.push(\&quot;missing mandatory parameter: '\&quot; + mandatoryParameter + \&quot;'\&quot;);\n\t\t}\n\t});\n\t// Return any errors\n\tif(errors.length &gt; 0) {\n\t\treturn errors.join(\&quot; and\\n\&quot;);\n\t} else {\n\t\treturn paramsByName;\t\t\n\t}\n};\n\nCommander.initCommands = function(moduleType) {\n\tmoduleType = moduleType || \&quot;command\&quot;;\n\t$tw.commands = {};\n\t$tw.modules.forEachModuleOfType(moduleType,function(title,module) {\n\t\tvar c = $tw.commands[module.info.name] = {};\n\t\t// Add the methods defined by the module\n\t\tfor(var f in module) {\n\t\t\tif($tw.utils.hop(module,f)) {\n\t\t\t\tc[f] = module[f];\n\t\t\t}\n\t\t}\n\t});\n};\n\nexports.Commander = Commander;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;global&quot;
},
&quot;$:/core/modules/commands/build.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/build.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/build.js\ntype: application/javascript\nmodule-type: command\n\nCommand to build a build target\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;build\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\t// Get the build targets defined in the wiki\n\tvar buildTargets = $tw.boot.wikiInfo.build;\n\tif(!buildTargets) {\n\t\treturn \&quot;No build targets defined\&quot;;\n\t}\n\t// Loop through each of the specified targets\n\tvar targets;\n\tif(this.params.length &gt; 0) {\n\t\ttargets = this.params;\n\t} else {\n\t\ttargets = Object.keys(buildTargets);\n\t}\n\tfor(var targetIndex=0; targetIndex&lt;targets.length; targetIndex++) {\n\t\tvar target = targets[targetIndex],\n\t\t\tcommands = buildTargets[target];\n\t\tif(!commands) {\n\t\t\treturn \&quot;Build target '\&quot; + target + \&quot;' not found\&quot;;\n\t\t}\n\t\t// Add the commands to the queue\n\t\tthis.commander.addCommandTokens(commands);\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/clearpassword.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/clearpassword.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/clearpassword.js\ntype: application/javascript\nmodule-type: command\n\nClear password for crypto operations\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;clearpassword\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\t$tw.crypto.setPassword(null);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/deletetiddlers.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/deletetiddlers.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/deletetiddlers.js\ntype: application/javascript\nmodule-type: command\n\nCommand to delete tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;deletetiddlers\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 1) {\n\t\treturn \&quot;Missing filter\&quot;;\n\t}\n\tvar self = this,\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\ttiddlers = wiki.filterTiddlers(filter);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\twiki.deleteTiddler(title);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/editions.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/editions.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/editions.js\ntype: application/javascript\nmodule-type: command\n\nCommand to list the available editions\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;editions\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\tvar self = this;\n\t// Output the list\n\tthis.commander.streams.output.write(\&quot;Available editions:\\n\\n\&quot;);\n\tvar editionInfo = $tw.utils.getEditionInfo();\n\t$tw.utils.each(editionInfo,function(info,name) {\n\t\tself.commander.streams.output.write(\&quot; \&quot; + name + \&quot;: \&quot; + info.description + \&quot;\\n\&quot;);\n\t});\n\tthis.commander.streams.output.write(\&quot;\\n\&quot;);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/fetch.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/fetch.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/fetch.js\ntype: application/javascript\nmodule-type: command\n\nCommands to fetch external tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;fetch\&quot;,\n\tsynchronous: false\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 2) {\n\t\treturn \&quot;Missing subcommand and url\&quot;;\n\t}\n\tswitch(this.params[0]) {\n\t\tcase \&quot;raw-file\&quot;:\n\t\t\treturn this.fetchFiles({\n\t\t\t\traw: true,\n\t\t\t\turl: this.params[1],\n\t\t\t\ttransformFilter: this.params[2] || \&quot;\&quot;,\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \&quot;file\&quot;:\n\t\t\treturn this.fetchFiles({\n\t\t\t\turl: this.params[1],\n\t\t\t\timportFilter: this.params[2],\n\t\t\t\ttransformFilter: this.params[3] || \&quot;\&quot;,\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \&quot;raw-files\&quot;:\n\t\t\treturn this.fetchFiles({\n\t\t\t\traw: true,\n\t\t\t\turlFilter: this.params[1],\n\t\t\t\ttransformFilter: this.params[2] || \&quot;\&quot;,\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \&quot;files\&quot;:\n\t\t\treturn this.fetchFiles({\n\t\t\t\turlFilter: this.params[1],\n\t\t\t\timportFilter: this.params[2],\n\t\t\t\ttransformFilter: this.params[3] || \&quot;\&quot;,\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t}\n\treturn null;\n};\n\nCommand.prototype.fetchFiles = function(options) {\n\tvar self = this;\n\t// Get the list of URLs\n\tvar urls;\n\tif(options.url) {\n\t\turls = [options.url]\n\t} else if(options.urlFilter) {\n\t\turls = this.commander.wiki.filterTiddlers(options.urlFilter);\n\t} else {\n\t\treturn \&quot;Missing URL\&quot;;\n\t}\n\t// Process each URL in turn\n\tvar next = 0;\n\tvar getNextFile = function(err) {\n\t\tif(err) {\n\t\t\treturn options.callback(err);\n\t\t}\n\t\tif(next &lt; urls.length) {\n\t\t\tself.fetchFile(urls[next++],options,getNextFile);\n\t\t} else {\n\t\t\toptions.callback(null);\n\t\t}\n\t};\n\tgetNextFile(null);\n\t// Success\n\treturn null;\n};\n\nCommand.prototype.fetchFile = function(url,options,callback,redirectCount) {\n\tif(redirectCount &gt; 10) {\n\t\treturn callback(\&quot;Error too many redirects retrieving \&quot; + url);\n\t}\n\tvar self = this,\n\t\tlib = url.substr(0,8) === \&quot;https://\&quot; ? require(\&quot;https\&quot;) : require(\&quot;http\&quot;);\n\tlib.get(url).on(\&quot;response\&quot;,function(response) {\n\t var type = (response.headers[\&quot;content-type\&quot;] || \&quot;\&quot;).split(\&quot;;\&quot;)[0],\n\t \tdata = [];\n\t self.commander.write(\&quot;Reading \&quot; + url + \&quot;: \&quot;);\n\t response.on(\&quot;data\&quot;,function(chunk) {\n\t data.push(chunk);\n\t self.commander.write(\&quot;.\&quot;);\n\t });\n\t response.on(\&quot;end\&quot;,function() {\n\t self.commander.write(\&quot;\\n\&quot;);\n\t if(response.statusCode === 200) {\n\t\t self.processBody(Buffer.concat(data),type,options,url);\n\t\t callback(null);\n\t } else {\n\t \tif(response.statusCode === 302 || response.statusCode === 303 || response.statusCode === 307) {\n\t \t\treturn self.fetchFile(response.headers.location,options,callback,redirectCount + 1);\n\t \t} else {\n\t\t \treturn callback(\&quot;Error \&quot; + response.statusCode + \&quot; retrieving \&quot; + url)\t \t\t\n\t \t}\n\t }\n\t \t});\n\t \tresponse.on(\&quot;error\&quot;,function(e) {\n\t\t\tconsole.log(\&quot;Error on GET request: \&quot; + e);\n\t\t\tcallback(e);\n\t \t});\n\t});\n\treturn null;\n};\n\nCommand.prototype.processBody = function(body,type,options,url) {\n\tvar self = this;\n\t// Collect the tiddlers in a wiki\n\tvar incomingWiki = new $tw.Wiki();\n\tif(options.raw) {\n\t\tvar typeInfo = type ? $tw.config.contentTypeInfo[type] : null,\n\t\t\tencoding = typeInfo ? typeInfo.encoding : \&quot;utf8\&quot;;\n\t\tincomingWiki.addTiddler(new $tw.Tiddler({\n\t\t\ttitle: url,\n\t\t\ttype: type,\n\t\t\ttext: body.toString(encoding)\n\t\t}));\n\t} else {\n\t\t// Deserialise the file to extract the tiddlers\n\t\tvar tiddlers = this.commander.wiki.deserializeTiddlers(type || \&quot;text/html\&quot;,body.toString(\&quot;utf8\&quot;),{});\n\t\t$tw.utils.each(tiddlers,function(tiddler) {\n\t\t\tincomingWiki.addTiddler(new $tw.Tiddler(tiddler));\n\t\t});\n\t}\n\t// Filter the tiddlers to select the ones we want\n\tvar filteredTitles = incomingWiki.filterTiddlers(options.importFilter || \&quot;[all[tiddlers]]\&quot;);\n\t// Import the selected tiddlers\n\tvar count = 0;\n\tincomingWiki.each(function(tiddler,title) {\n\t\tif(filteredTitles.indexOf(title) !== -1) {\n\t\t\tvar newTiddler;\n\t\t\tif(options.transformFilter) {\n\t\t\t\tvar transformedTitle = (incomingWiki.filterTiddlers(options.transformFilter,null,self.commander.wiki.makeTiddlerIterator([title])) || [\&quot;\&quot;])[0];\n\t\t\t\tif(transformedTitle) {\n\t\t\t\t\tself.commander.log(\&quot;Importing \&quot; + title + \&quot; as \&quot; + transformedTitle)\n\t\t\t\t\tnewTiddler = new $tw.Tiddler(tiddler,{title: transformedTitle});\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tself.commander.log(\&quot;Importing \&quot; + title)\n\t\t\t\tnewTiddler = tiddler;\n\t\t\t}\n\t\t\tself.commander.wiki.importTiddler(newTiddler);\n\t\t\tcount++;\n\t\t}\n\t});\n\tself.commander.log(\&quot;Imported \&quot; + count + \&quot; tiddlers\&quot;)\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/help.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/help.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/help.js\ntype: application/javascript\nmodule-type: command\n\nHelp command\n\n\\*/\n(function(){\n\n/*jshint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;help\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\tvar subhelp = this.params[0] || \&quot;default\&quot;,\n\t\thelpBase = \&quot;$:/language/Help/\&quot;,\n\t\ttext;\n\tif(!this.commander.wiki.getTiddler(helpBase + subhelp)) {\n\t\tsubhelp = \&quot;notfound\&quot;;\n\t}\n\t// Wikify the help as formatted text (ie block elements generate newlines)\n\ttext = this.commander.wiki.renderTiddler(\&quot;text/plain-formatted\&quot;,helpBase + subhelp);\n\t// Remove any leading linebreaks\n\ttext = text.replace(/^(\\r?\\n)*/g,\&quot;\&quot;);\n\tthis.commander.streams.output.write(text);\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/import.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/import.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/import.js\ntype: application/javascript\nmodule-type: command\n\nCommand to import tiddlers from a file\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;import\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tvar self = this,\n\t\tfs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;);\n\tif(this.params.length &lt; 2) {\n\t\treturn \&quot;Missing parameters\&quot;;\n\t}\n\tvar filename = self.params[0],\n\t\tdeserializer = self.params[1],\n\t\ttitle = self.params[2] || filename,\n\t\tencoding = self.params[3] || \&quot;utf8\&quot;,\n\t\ttext = fs.readFileSync(filename,encoding),\n\t\ttiddlers = this.commander.wiki.deserializeTiddlers(null,text,{title: title},{deserializer: deserializer});\n\t$tw.utils.each(tiddlers,function(tiddler) {\n\t\tself.commander.wiki.importTiddler(new $tw.Tiddler(tiddler));\n\t});\n\tthis.commander.log(tiddlers.length + \&quot; tiddler(s) imported\&quot;);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/init.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/init.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/init.js\ntype: application/javascript\nmodule-type: command\n\nCommand to initialise an empty wiki folder\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;init\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\tvar fs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;);\n\t// Check that we don't already have a valid wiki folder\n\tif($tw.boot.wikiTiddlersPath || ($tw.utils.isDirectory($tw.boot.wikiPath) &amp;&amp; !$tw.utils.isDirectoryEmpty($tw.boot.wikiPath))) {\n\t\treturn \&quot;Wiki folder is not empty\&quot;;\n\t}\n\t// Loop through each of the specified editions\n\tvar editions = this.params.length &gt; 0 ? this.params : [\&quot;empty\&quot;];\n\tfor(var editionIndex=0; editionIndex&lt;editions.length; editionIndex++) {\n\t\tvar editionName = editions[editionIndex];\n\t\t// Check the edition exists\n\t\tvar editionPath = $tw.findLibraryItem(editionName,$tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar));\n\t\tif(!$tw.utils.isDirectory(editionPath)) {\n\t\t\treturn \&quot;Edition '\&quot; + editionName + \&quot;' not found\&quot;;\n\t\t}\n\t\t// Copy the edition content\n\t\tvar err = $tw.utils.copyDirectory(editionPath,$tw.boot.wikiPath);\n\t\tif(!err) {\n\t\t\tthis.commander.streams.output.write(\&quot;Copied edition '\&quot; + editionName + \&quot;' to \&quot; + $tw.boot.wikiPath + \&quot;\\n\&quot;);\n\t\t} else {\n\t\t\treturn err;\n\t\t}\n\t}\n\t// Tweak the tiddlywiki.info to remove any included wikis\n\tvar packagePath = $tw.boot.wikiPath + \&quot;/tiddlywiki.info\&quot;,\n\t\tpackageJson = JSON.parse(fs.readFileSync(packagePath));\n\tdelete packageJson.includeWikis;\n\tfs.writeFileSync(packagePath,JSON.stringify(packageJson,null,$tw.config.preferences.jsonSpaces));\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/listen.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/listen.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/listen.js\ntype: application/javascript\nmodule-type: command\n\nListen for HTTP requests and serve tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Server = require(\&quot;$:/core/modules/server/server.js\&quot;).Server;\n\nexports.info = {\n\tname: \&quot;listen\&quot;,\n\tsynchronous: true,\n\tnamedParameterMode: true,\n\tmandatoryParameters: [],\n};\n\nvar Command = function(params,commander,callback) {\n\tvar self = this;\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tvar self = this;\n\tif(!$tw.boot.wikiTiddlersPath) {\n\t\t$tw.utils.warning(\&quot;Warning: Wiki folder '\&quot; + $tw.boot.wikiPath + \&quot;' does not exist or is missing a tiddlywiki.info file\&quot;);\n\t}\n\t// Set up server\n\tthis.server = new Server({\n\t\twiki: this.commander.wiki,\n\t\tvariables: self.params\n\t});\n\tvar nodeServer = this.server.listen();\n\t$tw.hooks.invokeHook(\&quot;th-server-command-post-start\&quot;,this.server,nodeServer,\&quot;tiddlywiki\&quot;);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/load.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/load.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/load.js\ntype: application/javascript\nmodule-type: command\n\nCommand to load tiddlers from a file or directory\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;load\&quot;,\n\tsynchronous: false\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tvar self = this,\n\t\tfs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;);\n\tif(this.params.length &lt; 1) {\n\t\treturn \&quot;Missing filename\&quot;;\n\t}\n\tvar tiddlers = $tw.loadTiddlersFromPath(self.params[0]),\n\t\tcount = 0;\n\t$tw.utils.each(tiddlers,function(tiddlerInfo) {\n\t\t$tw.utils.each(tiddlerInfo.tiddlers,function(tiddler) {\n\t\t\tself.commander.wiki.importTiddler(new $tw.Tiddler(tiddler));\n\t\t\tcount++;\n\t\t});\n\t});\n\tif(!count &amp;&amp; self.params[1] !== \&quot;noerror\&quot;) {\n\t\tself.callback(\&quot;No tiddlers found in file \\\&quot;\&quot; + self.params[0] + \&quot;\\\&quot;\&quot;);\n\t} else {\n\t\tself.callback(null);\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/makelibrary.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/makelibrary.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/makelibrary.js\ntype: application/javascript\nmodule-type: command\n\nCommand to pack all of the plugins in the library into a plugin tiddler of type \&quot;library\&quot;\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;makelibrary\&quot;,\n\tsynchronous: true\n};\n\nvar UPGRADE_LIBRARY_TITLE = \&quot;$:/UpgradeLibrary\&quot;;\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tvar wiki = this.commander.wiki,\n\t\tfs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;),\n\t\tupgradeLibraryTitle = this.params[0] || UPGRADE_LIBRARY_TITLE,\n\t\ttiddlers = {};\n\t// Collect up the library plugins\n\tvar collectPlugins = function(folder) {\n\t\t\tvar pluginFolders = $tw.utils.getSubdirectories(folder) || [];\n\t\t\tfor(var p=0; p&lt;pluginFolders.length; p++) {\n\t\t\t\tif(!$tw.boot.excludeRegExp.test(pluginFolders[p])) {\n\t\t\t\t\tpluginFields = $tw.loadPluginFolder(path.resolve(folder,\&quot;./\&quot; + pluginFolders[p]));\n\t\t\t\t\tif(pluginFields &amp;&amp; pluginFields.title) {\n\t\t\t\t\t\ttiddlers[pluginFields.title] = pluginFields;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tcollectPublisherPlugins = function(folder) {\n\t\t\tvar publisherFolders = $tw.utils.getSubdirectories(folder) || [];\n\t\t\tfor(var t=0; t&lt;publisherFolders.length; t++) {\n\t\t\t\tif(!$tw.boot.excludeRegExp.test(publisherFolders[t])) {\n\t\t\t\t\tcollectPlugins(path.resolve(folder,\&quot;./\&quot; + publisherFolders[t]));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.pluginsPath,$tw.config.pluginsEnvVar),collectPublisherPlugins);\n\t$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.themesPath,$tw.config.themesEnvVar),collectPublisherPlugins);\n\t$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.languagesPath,$tw.config.languagesEnvVar),collectPlugins);\n\t// Save the upgrade library tiddler\n\tvar pluginFields = {\n\t\ttitle: upgradeLibraryTitle,\n\t\ttype: \&quot;application/json\&quot;,\n\t\t\&quot;plugin-type\&quot;: \&quot;library\&quot;,\n\t\t\&quot;text\&quot;: JSON.stringify({tiddlers: tiddlers})\n\t};\n\twiki.addTiddler(new $tw.Tiddler(pluginFields));\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/output.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/output.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/output.js\ntype: application/javascript\nmodule-type: command\n\nCommand to set the default output location (defaults to current working directory)\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;output\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tvar fs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;);\n\tif(this.params.length &lt; 1) {\n\t\treturn \&quot;Missing output path\&quot;;\n\t}\n\tthis.commander.outputPath = path.resolve(process.cwd(),this.params[0]);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/password.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/password.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/password.js\ntype: application/javascript\nmodule-type: command\n\nSave password for crypto operations\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;password\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 1) {\n\t\treturn \&quot;Missing password\&quot;;\n\t}\n\t$tw.crypto.setPassword(this.params[0]);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/render.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/render.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/render.js\ntype: application/javascript\nmodule-type: command\n\nRender individual tiddlers and save the results to the specified files\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;);\n\nexports.info = {\n\tname: \&quot;render\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 1) {\n\t\treturn \&quot;Missing tiddler filter\&quot;;\n\t}\n\tvar self = this,\n\t\tfs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;),\n\t\twiki = this.commander.wiki,\n\t\ttiddlerFilter = this.params[0],\n\t\tfilenameFilter = this.params[1] || \&quot;[is[tiddler]addsuffix[.html]]\&quot;,\n\t\ttype = this.params[2] || \&quot;text/html\&quot;,\n\t\ttemplate = this.params[3],\n\t\tvarName = this.params[4],\n\t\tvarValue = this.params[5],\n\t\ttiddlers = wiki.filterTiddlers(tiddlerFilter);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar parser = wiki.parseTiddler(template || title),\n\t\t\tvariables = {currentTiddler: title};\n\t\tif(varName) {\n\t\t\tvariables[varName] = varValue || \&quot;\&quot;;\n\t\t}\n\t\tvar widgetNode = wiki.makeWidget(parser,{variables: variables}),\n\t\t\tcontainer = $tw.fakeDocument.createElement(\&quot;div\&quot;);\n\t\twidgetNode.render(container,null);\n\t\tvar text = type === \&quot;text/html\&quot; ? container.innerHTML : container.textContent,\n\t\t\tfilepath = path.resolve(self.commander.outputPath,wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]))[0]);\n\t\tif(self.commander.verbose) {\n\t\t\tconsole.log(\&quot;Rendering \\\&quot;\&quot; + title + \&quot;\\\&quot; to \\\&quot;\&quot; + filepath + \&quot;\\\&quot;\&quot;);\n\t\t}\n\t\t$tw.utils.createFileDirectories(filepath);\n\t\tfs.writeFileSync(filepath,text,\&quot;utf8\&quot;);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/rendertiddler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/rendertiddler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/rendertiddler.js\ntype: application/javascript\nmodule-type: command\n\nCommand to render a tiddler and save it to a file\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;rendertiddler\&quot;,\n\tsynchronous: false\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 2) {\n\t\treturn \&quot;Missing filename\&quot;;\n\t}\n\tvar self = this,\n\t\tfs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;),\n\t\ttitle = this.params[0],\n\t\tfilename = path.resolve(this.commander.outputPath,this.params[1]),\n\t\ttype = this.params[2] || \&quot;text/html\&quot;,\n\t\ttemplate = this.params[3],\n\t\tname = this.params[4],\n\t\tvalue = this.params[5],\n\t\tvariables = {};\n\t$tw.utils.createFileDirectories(filename);\n\tif(template) {\n\t\tvariables.currentTiddler = title;\n\t\ttitle = template;\n\t}\n\tif(name &amp;&amp; value) {\n\t\tvariables[name] = value;\n\t}\n\tfs.writeFile(filename,this.commander.wiki.renderTiddler(type,title,{variables: variables}),\&quot;utf8\&quot;,function(err) {\n\t\tself.callback(err);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/rendertiddlers.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/rendertiddlers.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/rendertiddlers.js\ntype: application/javascript\nmodule-type: command\n\nCommand to render several tiddlers to a folder of files\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;);\n\nexports.info = {\n\tname: \&quot;rendertiddlers\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 2) {\n\t\treturn \&quot;Missing filename\&quot;;\n\t}\n\tvar self = this,\n\t\tfs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;),\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\ttemplate = this.params[1],\n\t\toutputPath = this.commander.outputPath,\n\t\tpathname = path.resolve(outputPath,this.params[2]),\t\t\n\t\ttype = this.params[3] || \&quot;text/html\&quot;,\n\t\textension = this.params[4] || \&quot;.html\&quot;,\n\t\tdeleteDirectory = (this.params[5] || \&quot;\&quot;).toLowerCase() !== \&quot;noclean\&quot;,\n\t\ttiddlers = wiki.filterTiddlers(filter);\n\tif(deleteDirectory) {\n\t\t$tw.utils.deleteDirectory(pathname);\n\t}\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar parser = wiki.parseTiddler(template),\n\t\t\twidgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}}),\n\t\t\tcontainer = $tw.fakeDocument.createElement(\&quot;div\&quot;);\n\t\twidgetNode.render(container,null);\n\t\tvar text = type === \&quot;text/html\&quot; ? container.innerHTML : container.textContent,\n\t\t\texportPath = null;\n\t\tif($tw.utils.hop($tw.macros,\&quot;tv-get-export-path\&quot;)) {\n\t\t\tvar macroPath = $tw.macros[\&quot;tv-get-export-path\&quot;].run.apply(self,[title]);\n\t\t\tif(macroPath) {\n\t\t\t\texportPath = path.resolve(outputPath,macroPath + extension);\n\t\t\t}\n\t\t}\n\t\tvar finalPath = exportPath || path.resolve(pathname,encodeURIComponent(title) + extension);\n\t\t$tw.utils.createFileDirectories(finalPath);\n\t\tfs.writeFileSync(finalPath,text,\&quot;utf8\&quot;);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/save.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/save.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/save.js\ntype: application/javascript\nmodule-type: command\n\nSaves individual tiddlers in their raw text or binary format to the specified files\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;save\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 1) {\n\t\treturn \&quot;Missing filename filter\&quot;;\n\t}\n\tvar self = this,\n\t\tfs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;),\n\t\twiki = this.commander.wiki,\n\t\ttiddlerFilter = this.params[0],\n\t\tfilenameFilter = this.params[1] || \&quot;[is[tiddler]]\&quot;,\n\t\ttiddlers = wiki.filterTiddlers(tiddlerFilter);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = self.commander.wiki.getTiddler(title),\n\t\t\ttype = tiddler.fields.type || \&quot;text/vnd.tiddlywiki\&quot;,\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \&quot;utf8\&quot;},\n\t\t\tfilepath = path.resolve(self.commander.outputPath,wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]))[0]);\n\t\tif(self.commander.verbose) {\n\t\t\tconsole.log(\&quot;Saving \\\&quot;\&quot; + title + \&quot;\\\&quot; to \\\&quot;\&quot; + filepath + \&quot;\\\&quot;\&quot;);\n\t\t}\n\t\t$tw.utils.createFileDirectories(filepath);\n\t\tfs.writeFileSync(filepath,tiddler.fields.text,contentTypeInfo.encoding);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/savelibrarytiddlers.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/savelibrarytiddlers.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/savelibrarytiddlers.js\ntype: application/javascript\nmodule-type: command\n\nCommand to save the subtiddlers of a bundle tiddler as a series of JSON files\n\n--savelibrarytiddlers &lt;tiddler&gt; &lt;tiddler-filter&gt; &lt;pathname&gt; &lt;skinnylisting&gt;\n\nThe tiddler identifies the bundle tiddler that contains the subtiddlers.\n\nThe tiddler filter specifies the plugins to be included.\n\nThe pathname specifies the pathname to the folder in which the JSON files should be saved. The filename is the URL encoded title of the subtiddler.\n\nThe skinnylisting specifies the title of the tiddler to which a JSON catalogue of the subtiddlers will be saved. The JSON file contains the same data as the bundle tiddler but with the `text` field removed.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;savelibrarytiddlers\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 2) {\n\t\treturn \&quot;Missing filename\&quot;;\n\t}\n\tvar self = this,\n\t\tfs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;),\n\t\tcontainerTitle = this.params[0],\n\t\tfilter = this.params[1],\n\t\tbasepath = this.params[2],\n\t\tskinnyListTitle = this.params[3];\n\t// Get the container tiddler as data\n\tvar containerData = self.commander.wiki.getTiddlerDataCached(containerTitle,undefined);\n\tif(!containerData) {\n\t\treturn \&quot;'\&quot; + containerTitle + \&quot;' is not a tiddler bundle\&quot;;\n\t}\n\t// Filter the list of plugins\n\tvar pluginList = [];\n\t$tw.utils.each(containerData.tiddlers,function(tiddler,title) {\n\t\tpluginList.push(title);\n\t});\n\tvar filteredPluginList;\n\tif(filter) {\n\t\tfilteredPluginList = self.commander.wiki.filterTiddlers(filter,null,self.commander.wiki.makeTiddlerIterator(pluginList));\n\t} else {\n\t\tfilteredPluginList = pluginList;\n\t}\n\t// Iterate through the plugins\n\tvar skinnyList = [];\n\t$tw.utils.each(filteredPluginList,function(title) {\n\t\tvar tiddler = containerData.tiddlers[title];\n\t\t// Save each JSON file and collect the skinny data\n\t\tvar pathname = path.resolve(self.commander.outputPath,basepath + encodeURIComponent(title) + \&quot;.json\&quot;);\n\t\t$tw.utils.createFileDirectories(pathname);\n\t\tfs.writeFileSync(pathname,JSON.stringify(tiddler),\&quot;utf8\&quot;);\n\t\t// Collect the skinny list data\n\t\tvar pluginTiddlers = JSON.parse(tiddler.text),\n\t\t\treadmeContent = (pluginTiddlers.tiddlers[title + \&quot;/readme\&quot;] || {}).text,\n\t\t\tdoesRequireReload = !!self.commander.wiki.doesPluginInfoRequireReload(pluginTiddlers),\n\t\t\ticonTiddler = pluginTiddlers.tiddlers[title + \&quot;/icon\&quot;] || {},\n\t\t\ticonType = iconTiddler.type,\n\t\t\ticonText = iconTiddler.text,\n\t\t\ticonContent;\n\t\tif(iconType &amp;&amp; iconText) {\n\t\t\ticonContent = $tw.utils.makeDataUri(iconText,iconType);\n\t\t}\n\t\tskinnyList.push($tw.utils.extend({},tiddler,{\n\t\t\ttext: undefined,\n\t\t\treadme: readmeContent,\n\t\t\t\&quot;requires-reload\&quot;: doesRequireReload ? \&quot;yes\&quot; : \&quot;no\&quot;,\n\t\t\ticon: iconContent\n\t\t}));\n\t});\n\t// Save the catalogue tiddler\n\tif(skinnyListTitle) {\n\t\tself.commander.wiki.setTiddlerData(skinnyListTitle,skinnyList);\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/savetiddler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/savetiddler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/savetiddler.js\ntype: application/javascript\nmodule-type: command\n\nCommand to save the content of a tiddler to a file\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;savetiddler\&quot;,\n\tsynchronous: false\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 2) {\n\t\treturn \&quot;Missing filename\&quot;;\n\t}\n\tvar self = this,\n\t\tfs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;),\n\t\ttitle = this.params[0],\n\t\tfilename = path.resolve(this.commander.outputPath,this.params[1]),\n\t\ttiddler = this.commander.wiki.getTiddler(title);\n\tif(tiddler) {\n\t\tvar type = tiddler.fields.type || \&quot;text/vnd.tiddlywiki\&quot;,\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \&quot;utf8\&quot;};\n\t\t$tw.utils.createFileDirectories(filename);\n\t\tfs.writeFile(filename,tiddler.fields.text,contentTypeInfo.encoding,function(err) {\n\t\t\tself.callback(err);\n\t\t});\n\t} else {\n\t\treturn \&quot;Missing tiddler: \&quot; + title;\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/savetiddlers.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/savetiddlers.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/savetiddlers.js\ntype: application/javascript\nmodule-type: command\n\nCommand to save several tiddlers to a folder of files\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;);\n\nexports.info = {\n\tname: \&quot;savetiddlers\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 1) {\n\t\treturn \&quot;Missing filename\&quot;;\n\t}\n\tvar self = this,\n\t\tfs = require(\&quot;fs\&quot;),\n\t\tpath = require(\&quot;path\&quot;),\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\tpathname = path.resolve(this.commander.outputPath,this.params[1]),\n\t\tdeleteDirectory = (this.params[2] || \&quot;\&quot;).toLowerCase() !== \&quot;noclean\&quot;,\n\t\ttiddlers = wiki.filterTiddlers(filter);\n\tif(deleteDirectory) {\n\t\t$tw.utils.deleteDirectory(pathname);\n\t}\n\t$tw.utils.createDirectory(pathname);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = self.commander.wiki.getTiddler(title),\n\t\t\ttype = tiddler.fields.type || \&quot;text/vnd.tiddlywiki\&quot;,\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \&quot;utf8\&quot;},\n\t\t\tfilename = path.resolve(pathname,encodeURIComponent(title));\n\t\tfs.writeFileSync(filename,tiddler.fields.text,contentTypeInfo.encoding);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/savewikifolder.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/savewikifolder.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/savewikifolder.js\ntype: application/javascript\nmodule-type: command\n\nCommand to save the current wiki as a wiki folder\n\n--savewikifolder &lt;wikifolderpath&gt; [&lt;filter&gt;]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;savewikifolder\&quot;,\n\tsynchronous: true\n};\n\nvar fs,path;\nif($tw.node) {\n\tfs = require(\&quot;fs\&quot;);\n\tpath = require(\&quot;path\&quot;);\n}\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 1) {\n\t\treturn \&quot;Missing wiki folder path\&quot;;\n\t}\n\tvar wikifoldermaker = new WikiFolderMaker(this.params[0],this.params[1],this.commander);\n\treturn wikifoldermaker.save();\n};\n\nfunction WikiFolderMaker(wikiFolderPath,wikiFilter,commander) {\n\tthis.wikiFolderPath = wikiFolderPath;\n\tthis.wikiFilter = wikiFilter || \&quot;[all[tiddlers]]\&quot;;\n\tthis.commander = commander;\n\tthis.wiki = commander.wiki;\n\tthis.savedPaths = []; // So that we can detect filename clashes\n}\n\nWikiFolderMaker.prototype.log = function(str) {\n\tif(this.commander.verbose) {\n\t\tconsole.log(str);\n\t}\n};\n\nWikiFolderMaker.prototype.tiddlersToIgnore = [\n\t\&quot;$:/boot/boot.css\&quot;,\n\t\&quot;$:/boot/boot.js\&quot;,\n\t\&quot;$:/boot/bootprefix.js\&quot;,\n\t\&quot;$:/core\&quot;,\n\t\&quot;$:/library/sjcl.js\&quot;,\n\t\&quot;$:/temp/info-plugin\&quot;\n];\n\n/*\nReturns null if successful, or an error string if there was an error\n*/\nWikiFolderMaker.prototype.save = function() {\n\tvar self = this;\n\t// Check that the output directory doesn't exist\n\tif(fs.existsSync(this.wikiFolderPath) &amp;&amp; !$tw.utils.isDirectoryEmpty(this.wikiFolderPath)) {\n\t\treturn \&quot;The unpackwiki command requires that the output wiki folder be empty\&quot;;\n\t}\n\t// Get the tiddlers from the source wiki\n\tvar tiddlerTitles = this.wiki.filterTiddlers(this.wikiFilter);\n\t// Initialise a new tiddlwiki.info file\n\tvar newWikiInfo = {};\n\t// Process each incoming tiddler in turn\n\t$tw.utils.each(tiddlerTitles,function(title) {\n\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\tif(tiddler) {\n\t\t\tif(self.tiddlersToIgnore.indexOf(title) !== -1) {\n\t\t\t\t// Ignore the core plugin and the ephemeral info plugin\n\t\t\t\tself.log(\&quot;Ignoring tiddler: \&quot; + title);\n\t\t\t} else {\n\t\t\t\tvar type = tiddler.fields.type,\n\t\t\t\t\tpluginType = tiddler.fields[\&quot;plugin-type\&quot;];\n\t\t\t\tif(type === \&quot;application/json\&quot; &amp;&amp; pluginType) {\n\t\t\t\t\t// Plugin tiddler\n\t\t\t\t\tvar libraryDetails = self.findPluginInLibrary(title);\n\t\t\t\t\tif(libraryDetails) {\n\t\t\t\t\t\t// A plugin from the core library\n\t\t\t\t\t\tself.log(\&quot;Adding built-in plugin: \&quot; + libraryDetails.name);\n\t\t\t\t\t\tnewWikiInfo[libraryDetails.type] = newWikiInfo[libraryDetails.type] || [];\n\t\t\t\t\t\t$tw.utils.pushTop(newWikiInfo[libraryDetails.type],libraryDetails.name);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// A custom plugin\n\t\t\t\t\t\tself.log(\&quot;Processing custom plugin: \&quot; + title);\n\t\t\t\t\t\tself.saveCustomPlugin(tiddler);\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t// Ordinary tiddler\n\t\t\t\t\tself.saveTiddler(\&quot;tiddlers\&quot;,tiddler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\t// Save the tiddlywiki.info file\n\tthis.saveJSONFile(\&quot;tiddlywiki.info\&quot;,newWikiInfo);\n\tself.log(\&quot;Writing tiddlywiki.info: \&quot; + JSON.stringify(newWikiInfo,null,$tw.config.preferences.jsonSpaces));\n\treturn null;\n};\n\n/*\nTest whether the specified tiddler is a plugin in the plugin library\n*/\nWikiFolderMaker.prototype.findPluginInLibrary = function(title) {\n\tvar parts = title.split(\&quot;/\&quot;),\n\t\tpluginPath, type, name;\n\tif(parts[0] === \&quot;$:\&quot;) {\n\t\tif(parts[1] === \&quot;languages\&quot; &amp;&amp; parts.length === 3) {\n\t\t\tpluginPath = \&quot;languages\&quot; + path.sep + parts[2];\n\t\t\ttype = parts[1];\n\t\t\tname = parts[2];\n\t\t} else if(parts[1] === \&quot;plugins\&quot; || parts[1] === \&quot;themes\&quot; &amp;&amp; parts.length === 4) {\n\t\t\tpluginPath = parts[1] + path.sep + parts[2] + path.sep + parts[3];\n\t\t\ttype = parts[1];\n\t\t\tname = parts[2] + \&quot;/\&quot; + parts[3];\n\t\t}\n\t}\n\tif(pluginPath &amp;&amp; type &amp;&amp; name) {\n\t\tpluginPath = path.resolve($tw.boot.bootPath,\&quot;..\&quot;,pluginPath);\n\t\tif(fs.existsSync(pluginPath)) {\n\t\t\treturn {\n\t\t\t\tpluginPath: pluginPath,\n\t\t\t\ttype: type,\n\t\t\t\tname: name\n\t\t\t};\n\t\t}\n\t}\n\treturn false;\n};\n\nWikiFolderMaker.prototype.saveCustomPlugin = function(pluginTiddler) {\n\tvar self = this,\n\t\tpluginTitle = pluginTiddler.fields.title,\n\t\ttitleParts = pluginTitle.split(\&quot;/\&quot;),\n\t\tdirectory = $tw.utils.generateTiddlerFilepath(titleParts[titleParts.length - 1],{\n\t\t\tdirectory: path.resolve(this.wikiFolderPath,pluginTiddler.fields[\&quot;plugin-type\&quot;] + \&quot;s\&quot;)\n\t\t}),\n\t\tpluginInfo = pluginTiddler.getFieldStrings({exclude: [\&quot;text\&quot;,\&quot;type\&quot;]});\n\tthis.saveJSONFile(directory + path.sep + \&quot;plugin.info\&quot;,pluginInfo);\n\tself.log(\&quot;Writing \&quot; + directory + path.sep + \&quot;plugin.info: \&quot; + JSON.stringify(pluginInfo,null,$tw.config.preferences.jsonSpaces));\n\tvar pluginTiddlers = JSON.parse(pluginTiddler.fields.text).tiddlers; // A hashmap of tiddlers in the plugin\n\t$tw.utils.each(pluginTiddlers,function(tiddler) {\n\t\tself.saveTiddler(directory,new $tw.Tiddler(tiddler));\n\t});\n};\n\nWikiFolderMaker.prototype.saveTiddler = function(directory,tiddler) {\n\tvar fileInfo = $tw.utils.generateTiddlerFileInfo(tiddler,{\n\t\tdirectory: path.resolve(this.wikiFolderPath,directory),\n\t\twiki: this.wiki\n\t});\n\t$tw.utils.saveTiddlerToFileSync(tiddler,fileInfo);\n};\n\nWikiFolderMaker.prototype.saveJSONFile = function(filename,json) {\n\tthis.saveTextFile(filename,JSON.stringify(json,null,$tw.config.preferences.jsonSpaces));\n};\n\nWikiFolderMaker.prototype.saveTextFile = function(filename,data) {\n\tthis.saveFile(filename,\&quot;utf8\&quot;,data);\n};\n\nWikiFolderMaker.prototype.saveFile = function(filename,encoding,data) {\n\tvar filepath = path.resolve(this.wikiFolderPath,filename);\n\t$tw.utils.createFileDirectories(filepath);\n\tfs.writeFileSync(filepath,data,encoding);\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/server.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/server.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/server.js\ntype: application/javascript\nmodule-type: command\n\nDeprecated legacy command for serving tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Server = require(\&quot;$:/core/modules/server/server.js\&quot;).Server;\n\nexports.info = {\n\tname: \&quot;server\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tvar self = this;\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(!$tw.boot.wikiTiddlersPath) {\n\t\t$tw.utils.warning(\&quot;Warning: Wiki folder '\&quot; + $tw.boot.wikiPath + \&quot;' does not exist or is missing a tiddlywiki.info file\&quot;);\n\t}\n\t// Set up server\n\tthis.server = new Server({\n\t\twiki: this.commander.wiki,\n\t\tvariables: {\n\t\t\tport: this.params[0],\n\t\t\thost: this.params[6],\n\t\t\t\&quot;root-tiddler\&quot;: this.params[1],\n\t\t\t\&quot;root-render-type\&quot;: this.params[2],\n\t\t\t\&quot;root-serve-type\&quot;: this.params[3],\n\t\t\tusername: this.params[4],\n\t\t\tpassword: this.params[5],\n\t\t\t\&quot;path-prefix\&quot;: this.params[7],\n\t\t\t\&quot;debug-level\&quot;: this.params[8]\n\t\t}\n\t});\n\tvar nodeServer = this.server.listen();\n\t$tw.hooks.invokeHook(\&quot;th-server-command-post-start\&quot;,this.server,nodeServer,\&quot;tiddlywiki\&quot;);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/setfield.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/setfield.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/setfield.js\ntype: application/javascript\nmodule-type: command\n\nCommand to modify selected tiddlers to set a field to the text of a template tiddler that has been wikified with the selected tiddler as the current tiddler.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;);\n\nexports.info = {\n\tname: \&quot;setfield\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 4) {\n\t\treturn \&quot;Missing parameters\&quot;;\n\t}\n\tvar self = this,\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\tfieldname = this.params[1] || \&quot;text\&quot;,\n\t\ttemplatetitle = this.params[2],\n\t\trendertype = this.params[3] || \&quot;text/plain\&quot;,\n\t\ttiddlers = wiki.filterTiddlers(filter);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar parser = wiki.parseTiddler(templatetitle),\n\t\t\tnewFields = {},\n\t\t\ttiddler = wiki.getTiddler(title);\n\t\tif(parser) {\n\t\t\tvar widgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}});\n\t\t\tvar container = $tw.fakeDocument.createElement(\&quot;div\&quot;);\n\t\t\twidgetNode.render(container,null);\n\t\t\tnewFields[fieldname] = rendertype === \&quot;text/html\&quot; ? container.innerHTML : container.textContent;\n\t\t} else {\n\t\t\tnewFields[fieldname] = undefined;\n\t\t}\n\t\twiki.addTiddler(new $tw.Tiddler(tiddler,newFields));\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/unpackplugin.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/unpackplugin.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/unpackplugin.js\ntype: application/javascript\nmodule-type: command\n\nCommand to extract the shadow tiddlers from within a plugin\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;unpackplugin\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length &lt; 1) {\n\t\treturn \&quot;Missing plugin name\&quot;;\n\t}\n\tvar self = this,\n\t\ttitle = this.params[0],\n\t\tpluginData = this.commander.wiki.getTiddlerDataCached(title);\n\tif(!pluginData) {\n\t\treturn \&quot;Plugin '\&quot; + title + \&quot;' not found\&quot;;\n\t}\n\t$tw.utils.each(pluginData.tiddlers,function(tiddler) {\n\t\tself.commander.wiki.addTiddler(new $tw.Tiddler(tiddler));\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/verbose.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/verbose.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/verbose.js\ntype: application/javascript\nmodule-type: command\n\nVerbose command\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;verbose\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\tthis.commander.verbose = true;\n\t// Output the boot message log\n\tthis.commander.streams.output.write(\&quot;Boot log:\\n \&quot; + $tw.boot.logMessages.join(\&quot;\\n \&quot;) + \&quot;\\n\&quot;);\n\treturn null; // No error\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/commands/version.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/commands/version.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/commands/version.js\ntype: application/javascript\nmodule-type: command\n\nVersion command\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.info = {\n\tname: \&quot;version\&quot;,\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\tthis.commander.streams.output.write($tw.version + \&quot;\\n\&quot;);\n\treturn null; // No error\n};\n\nexports.Command = Command;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;command&quot;
},
&quot;$:/core/modules/config.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/config.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/config.js\ntype: application/javascript\nmodule-type: config\n\nCore configuration constants\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.preferences = {};\n\nexports.preferences.notificationDuration = 3 * 1000;\nexports.preferences.jsonSpaces = 4;\n\nexports.textPrimitives = {\n\tupperLetter: \&quot;[A-Z\\u00c0-\\u00d6\\u00d8-\\u00de\\u0150\\u0170]\&quot;,\n\tlowerLetter: \&quot;[a-z\\u00df-\\u00f6\\u00f8-\\u00ff\\u0151\\u0171]\&quot;,\n\tanyLetter: \&quot;[A-Za-z0-9\\u00c0-\\u00d6\\u00d8-\\u00de\\u00df-\\u00f6\\u00f8-\\u00ff\\u0150\\u0170\\u0151\\u0171]\&quot;,\n\tblockPrefixLetters:\t\&quot;[A-Za-z0-9-_\\u00c0-\\u00d6\\u00d8-\\u00de\\u00df-\\u00f6\\u00f8-\\u00ff\\u0150\\u0170\\u0151\\u0171]\&quot;\n};\n\nexports.textPrimitives.unWikiLink = \&quot;~\&quot;;\nexports.textPrimitives.wikiLink = exports.textPrimitives.upperLetter + \&quot;+\&quot; +\n\texports.textPrimitives.lowerLetter + \&quot;+\&quot; +\n\texports.textPrimitives.upperLetter +\n\texports.textPrimitives.anyLetter + \&quot;*\&quot;;\n\nexports.htmlEntities = {quot:34, amp:38, apos:39, lt:60, gt:62, nbsp:160, iexcl:161, cent:162, pound:163, curren:164, yen:165, brvbar:166, sect:167, uml:168, copy:169, ordf:170, laquo:171, not:172, shy:173, reg:174, macr:175, deg:176, plusmn:177, sup2:178, sup3:179, acute:180, micro:181, para:182, middot:183, cedil:184, sup1:185, ordm:186, raquo:187, frac14:188, frac12:189, frac34:190, iquest:191, Agrave:192, Aacute:193, Acirc:194, Atilde:195, Auml:196, Aring:197, AElig:198, Ccedil:199, Egrave:200, Eacute:201, Ecirc:202, Euml:203, Igrave:204, Iacute:205, Icirc:206, Iuml:207, ETH:208, Ntilde:209, Ograve:210, Oacute:211, Ocirc:212, Otilde:213, Ouml:214, times:215, Oslash:216, Ugrave:217, Uacute:218, Ucirc:219, Uuml:220, Yacute:221, THORN:222, szlig:223, agrave:224, aacute:225, acirc:226, atilde:227, auml:228, aring:229, aelig:230, ccedil:231, egrave:232, eacute:233, ecirc:234, euml:235, igrave:236, iacute:237, icirc:238, iuml:239, eth:240, ntilde:241, ograve:242, oacute:243, ocirc:244, otilde:245, ouml:246, divide:247, oslash:248, ugrave:249, uacute:250, ucirc:251, uuml:252, yacute:253, thorn:254, yuml:255, OElig:338, oelig:339, Scaron:352, scaron:353, Yuml:376, fnof:402, circ:710, tilde:732, Alpha:913, Beta:914, Gamma:915, Delta:916, Epsilon:917, Zeta:918, Eta:919, Theta:920, Iota:921, Kappa:922, Lambda:923, Mu:924, Nu:925, Xi:926, Omicron:927, Pi:928, Rho:929, Sigma:931, Tau:932, Upsilon:933, Phi:934, Chi:935, Psi:936, Omega:937, alpha:945, beta:946, gamma:947, delta:948, epsilon:949, zeta:950, eta:951, theta:952, iota:953, kappa:954, lambda:955, mu:956, nu:957, xi:958, omicron:959, pi:960, rho:961, sigmaf:962, sigma:963, tau:964, upsilon:965, phi:966, chi:967, psi:968, omega:969, thetasym:977, upsih:978, piv:982, ensp:8194, emsp:8195, thinsp:8201, zwnj:8204, zwj:8205, lrm:8206, rlm:8207, ndash:8211, mdash:8212, lsquo:8216, rsquo:8217, sbquo:8218, ldquo:8220, rdquo:8221, bdquo:8222, dagger:8224, Dagger:8225, bull:8226, hellip:8230, permil:8240, prime:8242, Prime:8243, lsaquo:8249, rsaquo:8250, oline:8254, frasl:8260, euro:8364, image:8465, weierp:8472, real:8476, trade:8482, alefsym:8501, larr:8592, uarr:8593, rarr:8594, darr:8595, harr:8596, crarr:8629, lArr:8656, uArr:8657, rArr:8658, dArr:8659, hArr:8660, forall:8704, part:8706, exist:8707, empty:8709, nabla:8711, isin:8712, notin:8713, ni:8715, prod:8719, sum:8721, minus:8722, lowast:8727, radic:8730, prop:8733, infin:8734, ang:8736, and:8743, or:8744, cap:8745, cup:8746, int:8747, there4:8756, sim:8764, cong:8773, asymp:8776, ne:8800, equiv:8801, le:8804, ge:8805, sub:8834, sup:8835, nsub:8836, sube:8838, supe:8839, oplus:8853, otimes:8855, perp:8869, sdot:8901, lceil:8968, rceil:8969, lfloor:8970, rfloor:8971, lang:9001, rang:9002, loz:9674, spades:9824, clubs:9827, hearts:9829, diams:9830 };\n\nexports.htmlVoidElements = \&quot;area,base,br,col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr\&quot;.split(\&quot;,\&quot;);\n\nexports.htmlBlockElements = \&quot;address,article,aside,audio,blockquote,canvas,dd,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,li,noscript,ol,output,p,pre,section,table,tfoot,ul,video\&quot;.split(\&quot;,\&quot;);\n\nexports.htmlUnsafeElements = \&quot;script\&quot;.split(\&quot;,\&quot;);\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;config&quot;
},
&quot;$:/core/modules/deserializers.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/deserializers.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/deserializers.js\ntype: application/javascript\nmodule-type: tiddlerdeserializer\n\nFunctions to deserialise tiddlers from a block of text\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nUtility function to parse an old-style tiddler DIV in a *.tid file. It looks like this:\n\n&lt;div title=\&quot;Title\&quot; creator=\&quot;JoeBloggs\&quot; modifier=\&quot;JoeBloggs\&quot; created=\&quot;201102111106\&quot; modified=\&quot;201102111310\&quot; tags=\&quot;myTag [[my long tag]]\&quot;&gt;\n&lt;pre&gt;The text of the tiddler (without the expected HTML encoding).\n&lt;/pre&gt;\n&lt;/div&gt;\n\nNote that the field attributes are HTML encoded, but that the body of the &lt;PRE&gt; tag is not encoded.\n\nWhen these tiddler DIVs are encountered within a TiddlyWiki HTML file then the body is encoded in the usual way.\n*/\nvar parseTiddlerDiv = function(text /* [,fields] */) {\n\t// Slot together the default results\n\tvar result = {};\n\tif(arguments.length &gt; 1) {\n\t\tfor(var f=1; f&lt;arguments.length; f++) {\n\t\t\tvar fields = arguments[f];\n\t\t\tfor(var t in fields) {\n\t\t\t\tresult[t] = fields[t];\t\t\n\t\t\t}\n\t\t}\n\t}\n\t// Parse the DIV body\n\tvar startRegExp = /^\\s*&lt;div\\s+([^&gt;]*)&gt;(\\s*&lt;pre&gt;)?/gi,\n\t\tendRegExp,\n\t\tmatch = startRegExp.exec(text);\n\tif(match) {\n\t\t// Old-style DIVs don't have the &lt;pre&gt; tag\n\t\tif(match[2]) {\n\t\t\tendRegExp = /&lt;\\/pre&gt;\\s*&lt;\\/div&gt;\\s*$/gi;\n\t\t} else {\n\t\t\tendRegExp = /&lt;\\/div&gt;\\s*$/gi;\n\t\t}\n\t\tvar endMatch = endRegExp.exec(text);\n\t\tif(endMatch) {\n\t\t\t// Extract the text\n\t\t\tresult.text = text.substring(match.index + match[0].length,endMatch.index);\n\t\t\t// Process the attributes\n\t\t\tvar attrRegExp = /\\s*([^=\\s]+)\\s*=\\s*(?:\&quot;([^\&quot;]*)\&quot;|'([^']*)')/gi,\n\t\t\t\tattrMatch;\n\t\t\tdo {\n\t\t\t\tattrMatch = attrRegExp.exec(match[1]);\n\t\t\t\tif(attrMatch) {\n\t\t\t\t\tvar name = attrMatch[1];\n\t\t\t\t\tvar value = attrMatch[2] !== undefined ? attrMatch[2] : attrMatch[3];\n\t\t\t\t\tresult[name] = value;\n\t\t\t\t}\n\t\t\t} while(attrMatch);\n\t\t\treturn result;\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexports[\&quot;application/x-tiddler-html-div\&quot;] = function(text,fields) {\n\treturn [parseTiddlerDiv(text,fields)];\n};\n\nexports[\&quot;application/json\&quot;] = function(text,fields) {\n\tvar incoming,\n\t\tresults = [];\n\ttry {\n\t\tincoming = JSON.parse(text);\n\t} catch(e) {\n\t\tincoming = [{\n\t\t\ttitle: \&quot;JSON error: \&quot; + e,\n\t\t\ttext: \&quot;\&quot;\n\t\t}]\n\t}\n\tif(!$tw.utils.isArray(incoming)) {\n\t\tincoming = [incoming];\n\t}\n\tfor(var t=0; t&lt;incoming.length; t++) {\n\t\tvar incomingFields = incoming[t],\n\t\t\tfields = {};\n\t\tfor(var f in incomingFields) {\n\t\t\tif(typeof incomingFields[f] === \&quot;string\&quot;) {\n\t\t\t\tfields[f] = incomingFields[f];\n\t\t\t}\n\t\t}\n\t\tresults.push(fields);\n\t}\n\treturn results;\n};\n\n/*\nParse an HTML file into tiddlers. There are three possibilities:\n# A TiddlyWiki classic HTML file containing `text/x-tiddlywiki` tiddlers\n# A TiddlyWiki5 HTML file containing `text/vnd.tiddlywiki` tiddlers\n# An ordinary HTML file\n*/\nexports[\&quot;text/html\&quot;] = function(text,fields) {\n\t// Check if we've got a store area\n\tvar storeAreaMarkerRegExp = /&lt;div id=[\&quot;']?storeArea['\&quot;]?( style=[\&quot;']?display:none;[\&quot;']?)?&gt;/gi,\n\t\tmatch = storeAreaMarkerRegExp.exec(text);\n\tif(match) {\n\t\t// If so, it's either a classic TiddlyWiki file or an unencrypted TW5 file\n\t\t// First read the normal tiddlers\n\t\tvar results = deserializeTiddlyWikiFile(text,storeAreaMarkerRegExp.lastIndex,!!match[1],fields);\n\t\t// Then any system tiddlers\n\t\tvar systemAreaMarkerRegExp = /&lt;div id=[\&quot;']?systemArea['\&quot;]?( style=[\&quot;']?display:none;[\&quot;']?)?&gt;/gi,\n\t\t\tsysMatch = systemAreaMarkerRegExp.exec(text);\n\t\tif(sysMatch) {\n\t\t\tresults.push.apply(results,deserializeTiddlyWikiFile(text,systemAreaMarkerRegExp.lastIndex,!!sysMatch[1],fields));\n\t\t}\n\t\treturn results;\n\t} else {\n\t\t// Check whether we've got an encrypted file\n\t\tvar encryptedStoreArea = $tw.utils.extractEncryptedStoreArea(text);\n\t\tif(encryptedStoreArea) {\n\t\t\t// If so, attempt to decrypt it using the current password\n\t\t\treturn $tw.utils.decryptStoreArea(encryptedStoreArea);\n\t\t} else {\n\t\t\t// It's not a TiddlyWiki so we'll return the entire HTML file as a tiddler\n\t\t\treturn deserializeHtmlFile(text,fields);\n\t\t}\n\t}\n};\n\nfunction deserializeHtmlFile(text,fields) {\n\tvar result = {};\n\t$tw.utils.each(fields,function(value,name) {\n\t\tresult[name] = value;\n\t});\n\tresult.text = text;\n\tresult.type = \&quot;text/html\&quot;;\n\treturn [result];\n}\n\nfunction deserializeTiddlyWikiFile(text,storeAreaEnd,isTiddlyWiki5,fields) {\n\tvar results = [],\n\t\tendOfDivRegExp = /(&lt;\\/div&gt;\\s*)/gi,\n\t\tstartPos = storeAreaEnd,\n\t\tdefaultType = isTiddlyWiki5 ? undefined : \&quot;text/x-tiddlywiki\&quot;;\n\tendOfDivRegExp.lastIndex = startPos;\n\tvar match = endOfDivRegExp.exec(text);\n\twhile(match) {\n\t\tvar endPos = endOfDivRegExp.lastIndex,\n\t\t\ttiddlerFields = parseTiddlerDiv(text.substring(startPos,endPos),fields,{type: defaultType});\n\t\tif(!tiddlerFields) {\n\t\t\tbreak;\n\t\t}\n\t\t$tw.utils.each(tiddlerFields,function(value,name) {\n\t\t\tif(typeof value === \&quot;string\&quot;) {\n\t\t\t\ttiddlerFields[name] = $tw.utils.htmlDecode(value);\n\t\t\t}\n\t\t});\n\t\tif(tiddlerFields.text !== null) {\n\t\t\tresults.push(tiddlerFields);\n\t\t}\n\t\tstartPos = endPos;\n\t\tmatch = endOfDivRegExp.exec(text);\n\t}\n\treturn results;\n}\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;tiddlerdeserializer&quot;
},
&quot;$:/core/modules/editor/engines/framed.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/engines/framed.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/engines/framed.js\ntype: application/javascript\nmodule-type: library\n\nText editor engine based on a simple input or textarea within an iframe. This is done so that the selection is preserved even when clicking away from the textarea\n\n\\*/\n(function(){\n\n/*jslint node: true,browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar HEIGHT_VALUE_TITLE = \&quot;$:/config/TextEditor/EditorHeight/Height\&quot;;\n\nfunction FramedEngine(options) {\n\t// Save our options\n\toptions = options || {};\n\tthis.widget = options.widget;\n\tthis.value = options.value;\n\tthis.parentNode = options.parentNode;\n\tthis.nextSibling = options.nextSibling;\n\t// Create our hidden dummy text area for reading styles\n\tthis.dummyTextArea = this.widget.document.createElement(\&quot;textarea\&quot;);\n\tif(this.widget.editClass) {\n\t\tthis.dummyTextArea.className = this.widget.editClass;\n\t}\n\tthis.dummyTextArea.setAttribute(\&quot;hidden\&quot;,\&quot;true\&quot;);\n\tthis.parentNode.insertBefore(this.dummyTextArea,this.nextSibling);\n\tthis.widget.domNodes.push(this.dummyTextArea);\n\t// Create the iframe\n\tthis.iframeNode = this.widget.document.createElement(\&quot;iframe\&quot;);\n\tthis.parentNode.insertBefore(this.iframeNode,this.nextSibling);\n\tthis.iframeDoc = this.iframeNode.contentWindow.document;\n\t// (Firefox requires us to put some empty content in the iframe)\n\tthis.iframeDoc.open();\n\tthis.iframeDoc.write(\&quot;\&quot;);\n\tthis.iframeDoc.close();\n\t// Style the iframe\n\tthis.iframeNode.className = this.dummyTextArea.className;\n\tthis.iframeNode.style.border = \&quot;none\&quot;;\n\tthis.iframeNode.style.padding = \&quot;0\&quot;;\n\tthis.iframeNode.style.resize = \&quot;none\&quot;;\n\tthis.iframeDoc.body.style.margin = \&quot;0\&quot;;\n\tthis.iframeDoc.body.style.padding = \&quot;0\&quot;;\n\tthis.widget.domNodes.push(this.iframeNode);\n\t// Construct the textarea or input node\n\tvar tag = this.widget.editTag;\n\tif($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {\n\t\ttag = \&quot;input\&quot;;\n\t}\n\tthis.domNode = this.iframeDoc.createElement(tag);\n\t// Set the text\n\tif(this.widget.editTag === \&quot;textarea\&quot;) {\n\t\tthis.domNode.appendChild(this.iframeDoc.createTextNode(this.value));\n\t} else {\n\t\tthis.domNode.value = this.value;\n\t}\n\t// Set the attributes\n\tif(this.widget.editType) {\n\t\tthis.domNode.setAttribute(\&quot;type\&quot;,this.widget.editType);\n\t}\n\tif(this.widget.editPlaceholder) {\n\t\tthis.domNode.setAttribute(\&quot;placeholder\&quot;,this.widget.editPlaceholder);\n\t}\n\tif(this.widget.editSize) {\n\t\tthis.domNode.setAttribute(\&quot;size\&quot;,this.widget.editSize);\n\t}\n\tif(this.widget.editRows) {\n\t\tthis.domNode.setAttribute(\&quot;rows\&quot;,this.widget.editRows);\n\t}\n\tif(this.widget.editTabIndex) {\n\t\tthis.iframeNode.setAttribute(\&quot;tabindex\&quot;,this.widget.editTabIndex);\n\t}\n\tif(this.widget.editAutoComplete) {\n\t\tthis.domNode.setAttribute(\&quot;autocomplete\&quot;,this.widget.editAutoComplete);\n\t}\n\tif(this.widget.isDisabled === \&quot;yes\&quot;) {\n\t\tthis.domNode.setAttribute(\&quot;disabled\&quot;,true);\n\t}\t\n\t// Copy the styles from the dummy textarea\n\tthis.copyStyles();\n\t// Add event listeners\n\t$tw.utils.addEventListeners(this.domNode,[\n\t\t{name: \&quot;click\&quot;,handlerObject: this,handlerMethod: \&quot;handleClickEvent\&quot;},\n\t\t{name: \&quot;input\&quot;,handlerObject: this,handlerMethod: \&quot;handleInputEvent\&quot;},\n\t\t{name: \&quot;keydown\&quot;,handlerObject: this.widget,handlerMethod: \&quot;handleKeydownEvent\&quot;},\n\t\t{name: \&quot;focus\&quot;,handlerObject: this,handlerMethod: \&quot;handleFocusEvent\&quot;}\n\t]);\n\t// Insert the element into the DOM\n\tthis.iframeDoc.body.appendChild(this.domNode);\n}\n\n/*\nCopy styles from the dummy text area to the textarea in the iframe\n*/\nFramedEngine.prototype.copyStyles = function() {\n\t// Copy all styles\n\t$tw.utils.copyStyles(this.dummyTextArea,this.domNode);\n\t// Override the ones that should not be set the same as the dummy textarea\n\tthis.domNode.style.display = \&quot;block\&quot;;\n\tthis.domNode.style.width = \&quot;100%\&quot;;\n\tthis.domNode.style.margin = \&quot;0\&quot;;\n\t// In Chrome setting -webkit-text-fill-color overrides the placeholder text colour\n\tthis.domNode.style[\&quot;-webkit-text-fill-color\&quot;] = \&quot;currentcolor\&quot;;\n};\n\n/*\nSet the text of the engine if it doesn't currently have focus\n*/\nFramedEngine.prototype.setText = function(text,type) {\n\tif(!this.domNode.isTiddlyWikiFakeDom) {\n\t\tif(this.domNode.ownerDocument.activeElement !== this.domNode) {\n\t\t\tthis.updateDomNodeText(text);\n\t\t}\n\t\t// Fix the height if needed\n\t\tthis.fixHeight();\n\t}\n};\n\n/*\nUpdate the DomNode with the new text\n*/\nFramedEngine.prototype.updateDomNodeText = function(text) {\n\tthis.domNode.value = text;\n};\n\n/*\nGet the text of the engine\n*/\nFramedEngine.prototype.getText = function() {\n\treturn this.domNode.value;\n};\n\n/*\nFix the height of textarea to fit content\n*/\nFramedEngine.prototype.fixHeight = function() {\n\t// Make sure styles are updated\n\tthis.copyStyles();\n\t// Adjust height\n\tif(this.widget.editTag === \&quot;textarea\&quot;) {\n\t\tif(this.widget.editAutoHeight) {\n\t\t\tif(this.domNode &amp;&amp; !this.domNode.isTiddlyWikiFakeDom) {\n\t\t\t\tvar newHeight = $tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight);\n\t\t\t\tthis.iframeNode.style.height = (newHeight + 14) + \&quot;px\&quot;; // +14 for the border on the textarea\n\t\t\t}\n\t\t} else {\n\t\t\tvar fixedHeight = parseInt(this.widget.wiki.getTiddlerText(HEIGHT_VALUE_TITLE,\&quot;400px\&quot;),10);\n\t\t\tfixedHeight = Math.max(fixedHeight,20);\n\t\t\tthis.domNode.style.height = fixedHeight + \&quot;px\&quot;;\n\t\t\tthis.iframeNode.style.height = (fixedHeight + 14) + \&quot;px\&quot;;\n\t\t}\n\t}\n};\n\n/*\nFocus the engine node\n*/\nFramedEngine.prototype.focus = function() {\n\tif(this.domNode.focus &amp;&amp; this.domNode.select) {\n\t\tthis.domNode.focus();\n\t\tthis.domNode.select();\n\t}\n};\n\n/*\nHandle a focus event\n*/\nFramedEngine.prototype.handleFocusEvent = function(event) {\n\tif(this.widget.editCancelPopups) {\n\t\t$tw.popup.cancel(0);\t\n\t}\n};\n\n/*\nHandle a click\n*/\nFramedEngine.prototype.handleClickEvent = function(event) {\n\tthis.fixHeight();\n\treturn true;\n};\n\n/*\nHandle a dom \&quot;input\&quot; event which occurs when the text has changed\n*/\nFramedEngine.prototype.handleInputEvent = function(event) {\n\tthis.widget.saveChanges(this.getText());\n\tthis.fixHeight();\n\tif(this.widget.editInputActions) {\n\t\tthis.widget.invokeActionString(this.widget.editInputActions);\n\t}\n\treturn true;\n};\n\n/*\nCreate a blank structure representing a text operation\n*/\nFramedEngine.prototype.createTextOperation = function() {\n\tvar operation = {\n\t\ttext: this.domNode.value,\n\t\tselStart: this.domNode.selectionStart,\n\t\tselEnd: this.domNode.selectionEnd,\n\t\tcutStart: null,\n\t\tcutEnd: null,\n\t\treplacement: null,\n\t\tnewSelStart: null,\n\t\tnewSelEnd: null\n\t};\n\toperation.selection = operation.text.substring(operation.selStart,operation.selEnd);\n\treturn operation;\n};\n\n/*\nExecute a text operation\n*/\nFramedEngine.prototype.executeTextOperation = function(operation) {\n\t// Perform the required changes to the text area and the underlying tiddler\n\tvar newText = operation.text;\n\tif(operation.replacement !== null) {\n\t\tnewText = operation.text.substring(0,operation.cutStart) + operation.replacement + operation.text.substring(operation.cutEnd);\n\t\t// Attempt to use a execCommand to modify the value of the control\n\t\tif(this.iframeDoc.queryCommandSupported(\&quot;insertText\&quot;) &amp;&amp; this.iframeDoc.queryCommandSupported(\&quot;delete\&quot;) &amp;&amp; !$tw.browser.isFirefox) {\n\t\t\tthis.domNode.focus();\n\t\t\tthis.domNode.setSelectionRange(operation.cutStart,operation.cutEnd);\n\t\t\tif(operation.replacement === \&quot;\&quot;) {\n\t\t\t\tthis.iframeDoc.execCommand(\&quot;delete\&quot;,false,\&quot;\&quot;);\n\t\t\t} else {\n\t\t\t\tthis.iframeDoc.execCommand(\&quot;insertText\&quot;,false,operation.replacement);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.domNode.value = newText;\n\t\t}\n\t\tthis.domNode.focus();\n\t\tthis.domNode.setSelectionRange(operation.newSelStart,operation.newSelEnd);\n\t}\n\tthis.domNode.focus();\n\treturn newText;\n};\n\nexports.FramedEngine = FramedEngine;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;library&quot;
},
&quot;$:/core/modules/editor/engines/simple.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/engines/simple.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/engines/simple.js\ntype: application/javascript\nmodule-type: library\n\nText editor engine based on a simple input or textarea tag\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar HEIGHT_VALUE_TITLE = \&quot;$:/config/TextEditor/EditorHeight/Height\&quot;;\n\nfunction SimpleEngine(options) {\n\t// Save our options\n\toptions = options || {};\n\tthis.widget = options.widget;\n\tthis.value = options.value;\n\tthis.parentNode = options.parentNode;\n\tthis.nextSibling = options.nextSibling;\n\t// Construct the textarea or input node\n\tvar tag = this.widget.editTag;\n\tif($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {\n\t\ttag = \&quot;input\&quot;;\n\t}\n\tthis.domNode = this.widget.document.createElement(tag);\n\t// Set the text\n\tif(this.widget.editTag === \&quot;textarea\&quot;) {\n\t\tthis.domNode.appendChild(this.widget.document.createTextNode(this.value));\n\t} else {\n\t\tthis.domNode.value = this.value;\n\t}\n\t// Set the attributes\n\tif(this.widget.editType) {\n\t\tthis.domNode.setAttribute(\&quot;type\&quot;,this.widget.editType);\n\t}\n\tif(this.widget.editPlaceholder) {\n\t\tthis.domNode.setAttribute(\&quot;placeholder\&quot;,this.widget.editPlaceholder);\n\t}\n\tif(this.widget.editSize) {\n\t\tthis.domNode.setAttribute(\&quot;size\&quot;,this.widget.editSize);\n\t}\n\tif(this.widget.editRows) {\n\t\tthis.domNode.setAttribute(\&quot;rows\&quot;,this.widget.editRows);\n\t}\n\tif(this.widget.editClass) {\n\t\tthis.domNode.className = this.widget.editClass;\n\t}\n\tif(this.widget.editTabIndex) {\n\t\tthis.domNode.setAttribute(\&quot;tabindex\&quot;,this.widget.editTabIndex);\n\t}\n\tif(this.widget.editAutoComplete) {\n\t\tthis.domNode.setAttribute(\&quot;autocomplete\&quot;,this.widget.editAutoComplete);\n\t}\n\tif(this.widget.isDisabled === \&quot;yes\&quot;) {\n\t\tthis.domNode.setAttribute(\&quot;disabled\&quot;,true);\n\t}\n\t// Add an input event handler\n\t$tw.utils.addEventListeners(this.domNode,[\n\t\t{name: \&quot;focus\&quot;, handlerObject: this, handlerMethod: \&quot;handleFocusEvent\&quot;},\n\t\t{name: \&quot;input\&quot;, handlerObject: this, handlerMethod: \&quot;handleInputEvent\&quot;}\n\t]);\n\t// Insert the element into the DOM\n\tthis.parentNode.insertBefore(this.domNode,this.nextSibling);\n\tthis.widget.domNodes.push(this.domNode);\n}\n\n/*\nSet the text of the engine if it doesn't currently have focus\n*/\nSimpleEngine.prototype.setText = function(text,type) {\n\tif(!this.domNode.isTiddlyWikiFakeDom) {\n\t\tif(this.domNode.ownerDocument.activeElement !== this.domNode || text === \&quot;\&quot;) {\n\t\t\tthis.updateDomNodeText(text);\n\t\t}\n\t\t// Fix the height if needed\n\t\tthis.fixHeight();\n\t}\n};\n\n/*\nUpdate the DomNode with the new text\n*/\nSimpleEngine.prototype.updateDomNodeText = function(text) {\n\tthis.domNode.value = text;\n};\n\n/*\nGet the text of the engine\n*/\nSimpleEngine.prototype.getText = function() {\n\treturn this.domNode.value;\n};\n\n/*\nFix the height of textarea to fit content\n*/\nSimpleEngine.prototype.fixHeight = function() {\n\tif(this.widget.editTag === \&quot;textarea\&quot;) {\n\t\tif(this.widget.editAutoHeight) {\n\t\t\tif(this.domNode &amp;&amp; !this.domNode.isTiddlyWikiFakeDom) {\n\t\t\t\t$tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight);\n\t\t\t}\n\t\t} else {\n\t\t\tvar fixedHeight = parseInt(this.widget.wiki.getTiddlerText(HEIGHT_VALUE_TITLE,\&quot;400px\&quot;),10);\n\t\t\tfixedHeight = Math.max(fixedHeight,20);\n\t\t\tthis.domNode.style.height = fixedHeight + \&quot;px\&quot;;\n\t\t}\n\t}\n};\n\n/*\nFocus the engine node\n*/\nSimpleEngine.prototype.focus = function() {\n\tif(this.domNode.focus &amp;&amp; this.domNode.select) {\n\t\tthis.domNode.focus();\n\t\tthis.domNode.select();\n\t}\n};\n\n/*\nHandle a dom \&quot;input\&quot; event which occurs when the text has changed\n*/\nSimpleEngine.prototype.handleInputEvent = function(event) {\n\tthis.widget.saveChanges(this.getText());\n\tthis.fixHeight();\n\tif(this.widget.editInputActions) {\n\t\tthis.widget.invokeActionString(this.widget.editInputActions);\n\t}\n\treturn true;\n};\n\n/*\nHandle a dom \&quot;focus\&quot; event\n*/\nSimpleEngine.prototype.handleFocusEvent = function(event) {\n\tif(this.widget.editCancelPopups) {\n\t\t$tw.popup.cancel(0);\n\t}\n\tif(this.widget.editFocusPopup) {\n\t\t$tw.popup.triggerPopup({\n\t\t\tdomNode: this.domNode,\n\t\t\ttitle: this.widget.editFocusPopup,\n\t\t\twiki: this.widget.wiki,\n\t\t\tforce: true\n\t\t});\n\t}\n\treturn true;\n};\n\n/*\nCreate a blank structure representing a text operation\n*/\nSimpleEngine.prototype.createTextOperation = function() {\n\treturn null;\n};\n\n/*\nExecute a text operation\n*/\nSimpleEngine.prototype.executeTextOperation = function(operation) {\n};\n\nexports.SimpleEngine = SimpleEngine;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;library&quot;
},
&quot;$:/core/modules/editor/factory.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/factory.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/factory.js\ntype: application/javascript\nmodule-type: library\n\nFactory for constructing text editor widgets with specified engines for the toolbar and non-toolbar cases\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar DEFAULT_MIN_TEXT_AREA_HEIGHT = \&quot;100px\&quot;; // Minimum height of textareas in pixels\n\n// Configuration tiddlers\nvar HEIGHT_MODE_TITLE = \&quot;$:/config/TextEditor/EditorHeight/Mode\&quot;;\nvar ENABLE_TOOLBAR_TITLE = \&quot;$:/config/TextEditor/EnableToolbar\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nfunction editTextWidgetFactory(toolbarEngine,nonToolbarEngine) {\n\n\tvar EditTextWidget = function(parseTreeNode,options) {\n\t\t// Initialise the editor operations if they've not been done already\n\t\tif(!this.editorOperations) {\n\t\t\tEditTextWidget.prototype.editorOperations = {};\n\t\t\t$tw.modules.applyMethods(\&quot;texteditoroperation\&quot;,this.editorOperations);\n\t\t}\n\t\tthis.initialise(parseTreeNode,options);\n\t};\n\n\t/*\n\tInherit from the base widget class\n\t*/\n\tEditTextWidget.prototype = new Widget();\n\n\t/*\n\tRender this widget into the DOM\n\t*/\n\tEditTextWidget.prototype.render = function(parent,nextSibling) {\n\t\t// Save the parent dom node\n\t\tthis.parentDomNode = parent;\n\t\t// Compute our attributes\n\t\tthis.computeAttributes();\n\t\t// Execute our logic\n\t\tthis.execute();\n\t\t// Create the wrapper for the toolbar and render its content\n\t\tif(this.editShowToolbar) {\n\t\t\tthis.toolbarNode = this.document.createElement(\&quot;div\&quot;);\n\t\t\tthis.toolbarNode.className = \&quot;tc-editor-toolbar\&quot;;\n\t\t\tparent.insertBefore(this.toolbarNode,nextSibling);\n\t\t\tthis.renderChildren(this.toolbarNode,null);\n\t\t\tthis.domNodes.push(this.toolbarNode);\n\t\t}\n\t\t// Create our element\n\t\tvar editInfo = this.getEditInfo(),\n\t\t\tEngine = this.editShowToolbar ? toolbarEngine : nonToolbarEngine;\n\t\tthis.engine = new Engine({\n\t\t\t\twidget: this,\n\t\t\t\tvalue: editInfo.value,\n\t\t\t\ttype: editInfo.type,\n\t\t\t\tparentNode: parent,\n\t\t\t\tnextSibling: nextSibling\n\t\t\t});\n\t\t// Call the postRender hook\n\t\tif(this.postRender) {\n\t\t\tthis.postRender();\n\t\t}\n\t\t// Fix height\n\t\tthis.engine.fixHeight();\n\t\t// Focus if required\n\t\tif(this.editFocus === \&quot;true\&quot; || this.editFocus === \&quot;yes\&quot;) {\n\t\t\tthis.engine.focus();\n\t\t}\n\t\t// Add widget message listeners\n\t\tthis.addEventListeners([\n\t\t\t{type: \&quot;tm-edit-text-operation\&quot;, handler: \&quot;handleEditTextOperationMessage\&quot;}\n\t\t]);\n\t};\n\n\t/*\n\tGet the tiddler being edited and current value\n\t*/\n\tEditTextWidget.prototype.getEditInfo = function() {\n\t\t// Get the edit value\n\t\tvar self = this,\n\t\t\tvalue,\n\t\t\ttype = \&quot;text/plain\&quot;,\n\t\t\tupdate;\n\t\tif(this.editIndex) {\n\t\t\tvalue = this.wiki.extractTiddlerDataItem(this.editTitle,this.editIndex,this.editDefault);\n\t\t\tupdate = function(value) {\n\t\t\t\tvar data = self.wiki.getTiddlerData(self.editTitle,{});\n\t\t\t\tif(data[self.editIndex] !== value) {\n\t\t\t\t\tdata[self.editIndex] = value;\n\t\t\t\t\tself.wiki.setTiddlerData(self.editTitle,data);\n\t\t\t\t}\n\t\t\t};\n\t\t} else {\n\t\t\t// Get the current tiddler and the field name\n\t\t\tvar tiddler = this.wiki.getTiddler(this.editTitle);\n\t\t\tif(tiddler) {\n\t\t\t\t// If we've got a tiddler, the value to display is the field string value\n\t\t\t\tvalue = tiddler.getFieldString(this.editField);\n\t\t\t\tif(this.editField === \&quot;text\&quot;) {\n\t\t\t\t\ttype = tiddler.fields.type || \&quot;text/vnd.tiddlywiki\&quot;;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Otherwise, we need to construct a default value for the editor\n\t\t\t\tswitch(this.editField) {\n\t\t\t\t\tcase \&quot;text\&quot;:\n\t\t\t\t\t\tvalue = \&quot;Type the text for the tiddler '\&quot; + this.editTitle + \&quot;'\&quot;;\n\t\t\t\t\t\ttype = \&quot;text/vnd.tiddlywiki\&quot;;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \&quot;title\&quot;:\n\t\t\t\t\t\tvalue = this.editTitle;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tvalue = \&quot;\&quot;;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(this.editDefault !== undefined) {\n\t\t\t\t\tvalue = this.editDefault;\n\t\t\t\t}\n\t\t\t}\n\t\t\tupdate = function(value) {\n\t\t\t\tvar tiddler = self.wiki.getTiddler(self.editTitle),\n\t\t\t\t\tupdateFields = {\n\t\t\t\t\t\ttitle: self.editTitle\n\t\t\t\t\t};\n\t\t\t\tupdateFields[self.editField] = value;\n\t\t\t\tself.wiki.addTiddler(new $tw.Tiddler(self.wiki.getCreationFields(),tiddler,updateFields,self.wiki.getModificationFields()));\n\t\t\t};\n\t\t}\n\t\tif(this.editType) {\n\t\t\ttype = this.editType;\n\t\t}\n\t\treturn {value: value || \&quot;\&quot;, type: type, update: update};\n\t};\n\n\t/*\n\tHandle an edit text operation message from the toolbar\n\t*/\n\tEditTextWidget.prototype.handleEditTextOperationMessage = function(event) {\n\t\t// Prepare information about the operation\n\t\tvar operation = this.engine.createTextOperation();\n\t\t// Invoke the handler for the selected operation\n\t\tvar handler = this.editorOperations[event.param];\n\t\tif(handler) {\n\t\t\thandler.call(this,event,operation);\n\t\t}\n\t\t// Execute the operation via the engine\n\t\tvar newText = this.engine.executeTextOperation(operation);\n\t\t// Fix the tiddler height and save changes\n\t\tthis.engine.fixHeight();\n\t\tthis.saveChanges(newText);\n\t};\n\n\t/*\n\tCompute the internal state of the widget\n\t*/\n\tEditTextWidget.prototype.execute = function() {\n\t\t// Get our parameters\n\t\tthis.editTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\t\tthis.editField = this.getAttribute(\&quot;field\&quot;,\&quot;text\&quot;);\n\t\tthis.editIndex = this.getAttribute(\&quot;index\&quot;);\n\t\tthis.editDefault = this.getAttribute(\&quot;default\&quot;);\n\t\tthis.editClass = this.getAttribute(\&quot;class\&quot;);\n\t\tthis.editPlaceholder = this.getAttribute(\&quot;placeholder\&quot;);\n\t\tthis.editSize = this.getAttribute(\&quot;size\&quot;);\n\t\tthis.editRows = this.getAttribute(\&quot;rows\&quot;);\n\t\tthis.editAutoHeight = this.wiki.getTiddlerText(HEIGHT_MODE_TITLE,\&quot;auto\&quot;);\n\t\tthis.editAutoHeight = this.getAttribute(\&quot;autoHeight\&quot;,this.editAutoHeight === \&quot;auto\&quot; ? \&quot;yes\&quot; : \&quot;no\&quot;) === \&quot;yes\&quot;;\n\t\tthis.editMinHeight = this.getAttribute(\&quot;minHeight\&quot;,DEFAULT_MIN_TEXT_AREA_HEIGHT);\n\t\tthis.editFocusPopup = this.getAttribute(\&quot;focusPopup\&quot;);\n\t\tthis.editFocus = this.getAttribute(\&quot;focus\&quot;);\n\t\tthis.editTabIndex = this.getAttribute(\&quot;tabindex\&quot;);\n\t\tthis.editCancelPopups = this.getAttribute(\&quot;cancelPopups\&quot;,\&quot;\&quot;) === \&quot;yes\&quot;;\n\t\tthis.editInputActions = this.getAttribute(\&quot;inputActions\&quot;);\n\t\tthis.editRefreshTitle = this.getAttribute(\&quot;refreshTitle\&quot;);\n\t\tthis.editAutoComplete = this.getAttribute(\&quot;autocomplete\&quot;);\n\t\tthis.isDisabled = this.getAttribute(\&quot;disabled\&quot;,\&quot;no\&quot;);\n\t\t// Get the default editor element tag and type\n\t\tvar tag,type;\n\t\tif(this.editField === \&quot;text\&quot;) {\n\t\t\ttag = \&quot;textarea\&quot;;\n\t\t} else {\n\t\t\ttag = \&quot;input\&quot;;\n\t\t\tvar fieldModule = $tw.Tiddler.fieldModules[this.editField];\n\t\t\tif(fieldModule &amp;&amp; fieldModule.editTag) {\n\t\t\t\ttag = fieldModule.editTag;\n\t\t\t}\n\t\t\tif(fieldModule &amp;&amp; fieldModule.editType) {\n\t\t\t\ttype = fieldModule.editType;\n\t\t\t}\n\t\t\ttype = type || \&quot;text\&quot;;\n\t\t}\n\t\t// Get the rest of our parameters\n\t\tthis.editTag = this.getAttribute(\&quot;tag\&quot;,tag) || \&quot;input\&quot;;\n\t\tthis.editType = this.getAttribute(\&quot;type\&quot;,type);\n\t\t// Make the child widgets\n\t\tthis.makeChildWidgets();\n\t\t// Determine whether to show the toolbar\n\t\tthis.editShowToolbar = this.wiki.getTiddlerText(ENABLE_TOOLBAR_TITLE,\&quot;yes\&quot;);\n\t\tthis.editShowToolbar = (this.editShowToolbar === \&quot;yes\&quot;) &amp;&amp; !!(this.children &amp;&amp; this.children.length &gt; 0) &amp;&amp; (!this.document.isTiddlyWikiFakeDom);\n\t};\n\n\t/*\n\tSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n\t*/\n\tEditTextWidget.prototype.refresh = function(changedTiddlers) {\n\t\tvar changedAttributes = this.computeAttributes();\n\t\t// Completely rerender if any of our attributes have changed\n\t\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes[\&quot;default\&quot;] || changedAttributes[\&quot;class\&quot;] || changedAttributes.placeholder || changedAttributes.size || changedAttributes.autoHeight || changedAttributes.minHeight || changedAttributes.focusPopup || changedAttributes.rows || changedAttributes.tabindex || changedAttributes.cancelPopups || changedAttributes.inputActions || changedAttributes.refreshTitle || changedAttributes.autocomplete || changedTiddlers[HEIGHT_MODE_TITLE] || changedTiddlers[ENABLE_TOOLBAR_TITLE] || changedAttributes.disabled) {\n\t\t\tthis.refreshSelf();\n\t\t\treturn true;\n\t\t} else if (changedTiddlers[this.editRefreshTitle]) {\n\t\t\tthis.engine.updateDomNodeText(this.getEditInfo().value);\n\t\t} else if(changedTiddlers[this.editTitle]) {\n\t\t\tvar editInfo = this.getEditInfo();\n\t\t\tthis.updateEditor(editInfo.value,editInfo.type);\n\t\t}\n\t\tthis.engine.fixHeight();\n\t\tif(this.editShowToolbar) {\n\t\t\treturn this.refreshChildren(changedTiddlers);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\t/*\n\tUpdate the editor with new text. This method is separate from updateEditorDomNode()\n\tso that subclasses can override updateEditor() and still use updateEditorDomNode()\n\t*/\n\tEditTextWidget.prototype.updateEditor = function(text,type) {\n\t\tthis.updateEditorDomNode(text,type);\n\t};\n\n\t/*\n\tUpdate the editor dom node with new text\n\t*/\n\tEditTextWidget.prototype.updateEditorDomNode = function(text,type) {\n\t\tthis.engine.setText(text,type);\n\t};\n\n\t/*\n\tSave changes back to the tiddler store\n\t*/\n\tEditTextWidget.prototype.saveChanges = function(text) {\n\t\tvar editInfo = this.getEditInfo();\n\t\tif(text !== editInfo.value) {\n\t\t\teditInfo.update(text);\n\t\t}\n\t};\n\n\t/*\n\tHandle a dom \&quot;keydown\&quot; event, which we'll bubble up to our container for the keyboard widgets benefit\n\t*/\n\tEditTextWidget.prototype.handleKeydownEvent = function(event) {\n\t\t// Check for a keyboard shortcut\n\t\tif(this.toolbarNode) {\n\t\t\tvar shortcutElements = this.toolbarNode.querySelectorAll(\&quot;[data-tw-keyboard-shortcut]\&quot;);\n\t\t\tfor(var index=0; index&lt;shortcutElements.length; index++) {\n\t\t\t\tvar el = shortcutElements[index],\n\t\t\t\t\tshortcutData = el.getAttribute(\&quot;data-tw-keyboard-shortcut\&quot;),\n\t\t\t\t\tkeyInfoArray = $tw.keyboardManager.parseKeyDescriptors(shortcutData,{\n\t\t\t\t\t\twiki: this.wiki\n\t\t\t\t\t});\n\t\t\t\tif($tw.keyboardManager.checkKeyDescriptors(event,keyInfoArray)) {\n\t\t\t\t\tvar clickEvent = this.document.createEvent(\&quot;Events\&quot;);\n\t\t\t\t clickEvent.initEvent(\&quot;click\&quot;,true,false);\n\t\t\t\t el.dispatchEvent(clickEvent);\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Propogate the event to the container\n\t\tif(this.propogateKeydownEvent(event)) {\n\t\t\t// Ignore the keydown if it was already handled\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t\treturn true;\n\t\t}\n\t\t// Otherwise, process the keydown normally\n\t\treturn false;\n\t};\n\n\t/*\n\tPropogate keydown events to our container for the keyboard widgets benefit\n\t*/\n\tEditTextWidget.prototype.propogateKeydownEvent = function(event) {\n\t\tvar newEvent = this.document.createEventObject ? this.document.createEventObject() : this.document.createEvent(\&quot;Events\&quot;);\n\t\tif(newEvent.initEvent) {\n\t\t\tnewEvent.initEvent(\&quot;keydown\&quot;, true, true);\n\t\t}\n\t\tnewEvent.keyCode = event.keyCode;\n\t\tnewEvent.which = event.which;\n\t\tnewEvent.metaKey = event.metaKey;\n\t\tnewEvent.ctrlKey = event.ctrlKey;\n\t\tnewEvent.altKey = event.altKey;\n\t\tnewEvent.shiftKey = event.shiftKey;\n\t\treturn !this.parentDomNode.dispatchEvent(newEvent);\n\t};\n\n\treturn EditTextWidget;\n\n}\n\nexports.editTextWidgetFactory = editTextWidgetFactory;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;library&quot;
},
&quot;$:/core/modules/editor/operations/bitmap/clear.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/operations/bitmap/clear.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/operations/bitmap/clear.js\ntype: application/javascript\nmodule-type: bitmapeditoroperation\n\nBitmap editor operation to clear the image\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports[\&quot;clear\&quot;] = function(event) {\n\tvar ctx = this.canvasDomNode.getContext(\&quot;2d\&quot;);\n\tctx.globalAlpha = 1;\n\tctx.fillStyle = event.paramObject.colour || \&quot;white\&quot;;\n\tctx.fillRect(0,0,this.canvasDomNode.width,this.canvasDomNode.height);\n\t// Save changes\n\tthis.strokeEnd();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;bitmapeditoroperation&quot;
},
&quot;$:/core/modules/editor/operations/bitmap/resize.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/operations/bitmap/resize.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/operations/bitmap/resize.js\ntype: application/javascript\nmodule-type: bitmapeditoroperation\n\nBitmap editor operation to resize the image\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports[\&quot;resize\&quot;] = function(event) {\n\t// Get the new width\n\tvar newWidth = parseInt(event.paramObject.width || this.canvasDomNode.width,10),\n\t\tnewHeight = parseInt(event.paramObject.height || this.canvasDomNode.height,10);\n\t// Update if necessary\n\tif(newWidth &gt; 0 &amp;&amp; newHeight &gt; 0 &amp;&amp; !(newWidth === this.currCanvas.width &amp;&amp; newHeight === this.currCanvas.height)) {\n\t\tthis.changeCanvasSize(newWidth,newHeight);\n\t}\n\t// Update the input controls\n\tthis.refreshToolbar();\n\t// Save the image into the tiddler\n\tthis.saveChanges();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;bitmapeditoroperation&quot;
},
&quot;$:/core/modules/editor/operations/bitmap/rotate-left.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/operations/bitmap/rotate-left.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/operations/bitmap/rotate-left.js\ntype: application/javascript\nmodule-type: bitmapeditoroperation\n\nBitmap editor operation to rotate the image left by 90 degrees\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports[\&quot;rotate-left\&quot;] = function(event) {\n\t// Rotate the canvas left by 90 degrees\n\tthis.rotateCanvasLeft();\n\t// Update the input controls\n\tthis.refreshToolbar();\n\t// Save the image into the tiddler\n\tthis.saveChanges();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;bitmapeditoroperation&quot;
},
&quot;$:/core/modules/editor/operations/text/excise.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/operations/text/excise.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/operations/text/excise.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to excise the selection to a new tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports[\&quot;excise\&quot;] = function(event,operation) {\n\tvar editTiddler = this.wiki.getTiddler(this.editTitle),\n\t\teditTiddlerTitle = this.editTitle;\n\tif(editTiddler &amp;&amp; editTiddler.fields[\&quot;draft.of\&quot;]) {\n\t\teditTiddlerTitle = editTiddler.fields[\&quot;draft.of\&quot;];\n\t}\n\tvar excisionTitle = event.paramObject.title || this.wiki.generateNewTitle(\&quot;New Excision\&quot;);\n\tthis.wiki.addTiddler(new $tw.Tiddler(\n\t\tthis.wiki.getCreationFields(),\n\t\tthis.wiki.getModificationFields(),\n\t\t{\n\t\t\ttitle: excisionTitle,\n\t\t\ttext: operation.selection,\n\t\t\ttags: event.paramObject.tagnew === \&quot;yes\&quot; ? [editTiddlerTitle] : []\n\t\t}\n\t));\n\toperation.replacement = excisionTitle;\n\tswitch(event.paramObject.type || \&quot;transclude\&quot;) {\n\t\tcase \&quot;transclude\&quot;:\n\t\t\toperation.replacement = \&quot;{{\&quot; + operation.replacement+ \&quot;}}\&quot;;\n\t\t\tbreak;\n\t\tcase \&quot;link\&quot;:\n\t\t\toperation.replacement = \&quot;[[\&quot; + operation.replacement+ \&quot;]]\&quot;;\n\t\t\tbreak;\n\t\tcase \&quot;macro\&quot;:\n\t\t\toperation.replacement = \&quot;&lt;&lt;\&quot; + (event.paramObject.macro || \&quot;translink\&quot;) + \&quot; \\\&quot;\\\&quot;\\\&quot;\&quot; + operation.replacement + \&quot;\\\&quot;\\\&quot;\\\&quot;&gt;&gt;\&quot;;\n\t\t\tbreak;\n\t}\n\toperation.cutStart = operation.selStart;\n\toperation.cutEnd = operation.selEnd;\n\toperation.newSelStart = operation.selStart;\n\toperation.newSelEnd = operation.selStart + operation.replacement.length;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;texteditoroperation&quot;
},
&quot;$:/core/modules/editor/operations/text/make-link.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/operations/text/make-link.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/operations/text/make-link.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to make a link\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports[\&quot;make-link\&quot;] = function(event,operation) {\n\tif(operation.selection) {\n\t\toperation.replacement = \&quot;[[\&quot; + operation.selection + \&quot;|\&quot; + event.paramObject.text + \&quot;]]\&quot;;\n\t\toperation.cutStart = operation.selStart;\n\t\toperation.cutEnd = operation.selEnd;\n\t} else {\n\t\toperation.replacement = \&quot;[[\&quot; + event.paramObject.text + \&quot;]]\&quot;;\n\t\toperation.cutStart = operation.selStart;\n\t\toperation.cutEnd = operation.selEnd;\n\t}\n\toperation.newSelStart = operation.selStart + operation.replacement.length;\n\toperation.newSelEnd = operation.newSelStart;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;texteditoroperation&quot;
},
&quot;$:/core/modules/editor/operations/text/prefix-lines.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/operations/text/prefix-lines.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/operations/text/prefix-lines.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to add a prefix to the selected lines\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports[\&quot;prefix-lines\&quot;] = function(event,operation) {\n\tvar targetCount = parseInt(event.paramObject.count + \&quot;\&quot;,10);\n\t// Cut just past the preceding line break, or the start of the text\n\toperation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);\n\t// Cut to just past the following line break, or to the end of the text\n\toperation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd);\n\t// Compose the required prefix\n\tvar prefix = $tw.utils.repeat(event.paramObject.character,targetCount);\n\t// Process each line\n\tvar lines = operation.text.substring(operation.cutStart,operation.cutEnd).split(/\\r?\\n/mg);\n\t$tw.utils.each(lines,function(line,index) {\n\t\t// Remove and count any existing prefix characters\n\t\tvar count = 0;\n\t\twhile(line.charAt(0) === event.paramObject.character) {\n\t\t\tline = line.substring(1);\n\t\t\tcount++;\n\t\t}\n\t\t// Remove any whitespace\n\t\twhile(line.charAt(0) === \&quot; \&quot;) {\n\t\t\tline = line.substring(1);\n\t\t}\n\t\t// We're done if we removed the exact required prefix, otherwise add it\n\t\tif(count !== targetCount) {\n\t\t\t// Apply the prefix\n\t\t\tline = prefix + \&quot; \&quot; + line;\n\t\t}\n\t\t// Save the modified line\n\t\tlines[index] = line;\n\t});\n\t// Stitch the replacement text together and set the selection\n\toperation.replacement = lines.join(\&quot;\\n\&quot;);\n\tif(lines.length === 1) {\n\t\toperation.newSelStart = operation.cutStart + operation.replacement.length;\n\t\toperation.newSelEnd = operation.newSelStart;\n\t} else {\n\t\toperation.newSelStart = operation.cutStart;\n\t\toperation.newSelEnd = operation.newSelStart + operation.replacement.length;\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;texteditoroperation&quot;
},
&quot;$:/core/modules/editor/operations/text/replace-all.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/operations/text/replace-all.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/operations/text/replace-all.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to replace the entire text\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports[\&quot;replace-all\&quot;] = function(event,operation) {\n\toperation.cutStart = 0;\n\toperation.cutEnd = operation.text.length;\n\toperation.replacement = event.paramObject.text;\n\toperation.newSelStart = 0;\n\toperation.newSelEnd = operation.replacement.length;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;texteditoroperation&quot;
},
&quot;$:/core/modules/editor/operations/text/replace-selection.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/operations/text/replace-selection.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/operations/text/replace-selection.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to replace the selection\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports[\&quot;replace-selection\&quot;] = function(event,operation) {\n\toperation.replacement = event.paramObject.text;\n\toperation.cutStart = operation.selStart;\n\toperation.cutEnd = operation.selEnd;\n\toperation.newSelStart = operation.selStart;\n\toperation.newSelEnd = operation.selStart + operation.replacement.length;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;texteditoroperation&quot;
},
&quot;$:/core/modules/editor/operations/text/save-selection.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/operations/text/save-selection.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/operations/text/save-selection.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to save the current selection in a specified tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports[\&quot;save-selection\&quot;] = function(event,operation) {\n\tvar tiddler = event.paramObject.tiddler,\n\t\tfield = event.paramObject.field || \&quot;text\&quot;;\n\tif(tiddler &amp;&amp; field) {\n\t\tthis.wiki.setText(tiddler,field,null,operation.text.substring(operation.selStart,operation.selEnd));\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;texteditoroperation&quot;
},
&quot;$:/core/modules/editor/operations/text/wrap-lines.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/operations/text/wrap-lines.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/operations/text/wrap-lines.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to wrap the selected lines with a prefix and suffix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports[\&quot;wrap-lines\&quot;] = function(event,operation) {\n\t// Cut just past the preceding line break, or the start of the text\n\toperation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);\n\t// Cut to just past the following line break, or to the end of the text\n\toperation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd);\n\t// Add the prefix and suffix\n\toperation.replacement = event.paramObject.prefix + \&quot;\\n\&quot; +\n\t\t\t\toperation.text.substring(operation.cutStart,operation.cutEnd) + \&quot;\\n\&quot; +\n\t\t\t\tevent.paramObject.suffix + \&quot;\\n\&quot;;\n\toperation.newSelStart = operation.cutStart + event.paramObject.prefix.length + 1;\n\toperation.newSelEnd = operation.newSelStart + (operation.cutEnd - operation.cutStart);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;texteditoroperation&quot;
},
&quot;$:/core/modules/editor/operations/text/wrap-selection.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/editor/operations/text/wrap-selection.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/editor/operations/text/wrap-selection.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to wrap the selection with the specified prefix and suffix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports[\&quot;wrap-selection\&quot;] = function(event,operation) {\n\tif(operation.selStart === operation.selEnd) {\n\t\t// No selection; check if we're within the prefix/suffix\n\t\tif(operation.text.substring(operation.selStart - event.paramObject.prefix.length,operation.selStart + event.paramObject.suffix.length) === event.paramObject.prefix + event.paramObject.suffix) {\n\t\t\t// Remove the prefix and suffix\n\t\t\toperation.cutStart = operation.selStart - event.paramObject.prefix.length;\n\t\t\toperation.cutEnd = operation.selEnd + event.paramObject.suffix.length;\n\t\t\toperation.replacement = \&quot;\&quot;;\n\t\t\toperation.newSelStart = operation.cutStart;\n\t\t\toperation.newSelEnd = operation.newSelStart;\n\t\t} else {\n\t\t\t// Wrap the cursor instead\n\t\t\toperation.cutStart = operation.selStart;\n\t\t\toperation.cutEnd = operation.selEnd;\n\t\t\toperation.replacement = event.paramObject.prefix + event.paramObject.suffix;\n\t\t\toperation.newSelStart = operation.selStart + event.paramObject.prefix.length;\n\t\t\toperation.newSelEnd = operation.newSelStart;\n\t\t}\n\t} else if(operation.text.substring(operation.selStart,operation.selStart + event.paramObject.prefix.length) === event.paramObject.prefix &amp;&amp; operation.text.substring(operation.selEnd - event.paramObject.suffix.length,operation.selEnd) === event.paramObject.suffix) {\n\t\t// Prefix and suffix are already present, so remove them\n\t\toperation.cutStart = operation.selStart;\n\t\toperation.cutEnd = operation.selEnd;\n\t\toperation.replacement = operation.selection.substring(event.paramObject.prefix.length,operation.selection.length - event.paramObject.suffix.length);\n\t\toperation.newSelStart = operation.selStart;\n\t\toperation.newSelEnd = operation.selStart + operation.replacement.length;\n\t} else {\n\t\t// Add the prefix and suffix\n\t\toperation.cutStart = operation.selStart;\n\t\toperation.cutEnd = operation.selEnd;\n\t\toperation.replacement = event.paramObject.prefix + operation.selection + event.paramObject.suffix;\n\t\toperation.newSelStart = operation.selStart;\n\t\toperation.newSelEnd = operation.selStart + operation.replacement.length;\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;texteditoroperation&quot;
},
&quot;$:/core/modules/filterrunprefixes/all.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filterrunprefixes/all.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filterrunprefixes/all.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nUnion of sets without de-duplication.\nEquivalent to = filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter prefix function\n*/\nexports.all = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tresults.push.apply(results, operationSubFunction(source,widget));\n\t};\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filterrunprefix&quot;
},
&quot;$:/core/modules/filterrunprefixes/and.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filterrunprefixes/and.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filterrunprefixes/and.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nIntersection of sets.\nEquivalent to + filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter prefix function\n*/\nexports.and = function(operationSubFunction,options) {\n\treturn function(results,source,widget) {\n\t\t// This replaces all the elements of the array, but keeps the actual array so that references to it are preserved\n\t\tsource = options.wiki.makeTiddlerIterator(results.toArray());\n\t\tresults.clear();\n\t\tresults.pushTop(operationSubFunction(source,widget));\n\t};\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filterrunprefix&quot;
},
&quot;$:/core/modules/filterrunprefixes/else.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filterrunprefixes/else.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filterrunprefixes/else.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nEquivalent to ~ filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter prefix function\n*/\nexports.else = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tif(results.length === 0) {\n\t\t\t// Main result so far is empty\n\t\t\tresults.pushTop(operationSubFunction(source,widget));\n\t\t}\n\t};\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filterrunprefix&quot;
},
&quot;$:/core/modules/filterrunprefixes/except.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filterrunprefixes/except.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filterrunprefixes/except.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nDifference of sets.\nEquivalent to - filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter prefix function\n*/\nexports.except = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tresults.remove(operationSubFunction(source,widget));\n\t};\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filterrunprefix&quot;
},
&quot;$:/core/modules/filterrunprefixes/filter.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filterrunprefixes/filter.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filterrunprefixes/filter.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.filter = function(operationSubFunction,options) {\n\treturn function(results,source,widget) {\n\t\tif(results.length &gt; 0) {\n\t\t\tvar resultsToRemove = [];\n\t\t\tresults.each(function(result) {\n\t\t\t\tvar filtered = operationSubFunction(options.wiki.makeTiddlerIterator([result]),widget);\n\t\t\t\tif(filtered.length === 0) {\n\t\t\t\t\tresultsToRemove.push(result);\n\t\t\t\t}\n\t\t\t});\n\t\t\tresults.remove(resultsToRemove);\n\t\t}\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filterrunprefix&quot;
},
&quot;$:/core/modules/filterrunprefixes/intersection.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filterrunprefixes/intersection.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filterrunprefixes/intersection.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter prefix function\n*/\nexports.intersection = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tif(results.length !== 0) {\n\t\t\tvar secondRunResults = operationSubFunction(source,widget);\n\t\t\tvar firstRunResults = results.toArray();\n\t\t\tresults.clear();\n\t\t\t$tw.utils.each(firstRunResults,function(title) {\n\t\t\t\tif(secondRunResults.indexOf(title) !== -1) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filterrunprefix&quot;
},
&quot;$:/core/modules/filterrunprefixes/or.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filterrunprefixes/or.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filterrunprefixes/or.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nEquivalent to a filter run with no prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter prefix function\n*/\nexports.or = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tresults.pushTop(operationSubFunction(source,widget));\n\t};\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filterrunprefix&quot;
},
&quot;$:/core/modules/filterrunprefixes/reduce.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filterrunprefixes/reduce.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filterrunprefixes/reduce.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter prefix function\n*/\nexports.reduce = function(operationSubFunction,options) {\n\treturn function(results,source,widget) {\n\t\tif(results.length &gt; 0) {\n\t\t\tvar accumulator = \&quot;\&quot;;\n\t\t\tvar index = 0;\n\t\t\tresults.each(function(title) {\n\t\t\t\tvar list = operationSubFunction(options.wiki.makeTiddlerIterator([title]),{\n\t\t\t\t\t\tgetVariable: function(name) {\n\t\t\t\t\t\t\tswitch(name) {\n\t\t\t\t\t\t\t\tcase \&quot;currentTiddler\&quot;:\n\t\t\t\t\t\t\t\t\treturn \&quot;\&quot; + title;\n\t\t\t\t\t\t\t\tcase \&quot;accumulator\&quot;:\n\t\t\t\t\t\t\t\t\treturn \&quot;\&quot; + accumulator;\n\t\t\t\t\t\t\t\tcase \&quot;index\&quot;:\n\t\t\t\t\t\t\t\t\treturn \&quot;\&quot; + index;\n\t\t\t\t\t\t\t\tcase \&quot;revIndex\&quot;:\n\t\t\t\t\t\t\t\t\treturn \&quot;\&quot; + (results.length - 1 - index);\n\t\t\t\t\t\t\t\tcase \&quot;length\&quot;:\n\t\t\t\t\t\t\t\t\treturn \&quot;\&quot; + results.length;\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn widget.getVariable(name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\tif(list.length &gt; 0) {\n\t\t\t\t\taccumulator = \&quot;\&quot; + list[0];\n\t\t\t\t}\n\t\t\t\t++index;\n\t\t\t});\n\t\t\tresults.clear();\n\t\t\tresults.push(accumulator);\t\n\t\t}\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filterrunprefix&quot;
},
&quot;$:/core/modules/filters/addprefix.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/addprefix.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/addprefix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for adding a prefix to each title in the list. This is\nespecially useful in contexts where only a filter expression is allowed\nand macro substitution isn't available.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.addprefix = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(operator.operand + title);\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/addsuffix.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/addsuffix.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/addsuffix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for adding a suffix to each title in the list. This is\nespecially useful in contexts where only a filter expression is allowed\nand macro substitution isn't available.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.addsuffix = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title + operator.operand);\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/after.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/after.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/after.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the tiddler from the current list that is after the tiddler named in the operand.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.after = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\tvar index = results.indexOf(operator.operand);\n\tif(index === -1 || index &gt; (results.length - 2)) {\n\t\treturn [];\n\t} else {\n\t\treturn [results[index + 1]];\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/all/current.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/all/current.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/all/current.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[current]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.current = function(source,prefix,options) {\n\tvar currTiddlerTitle = options.widget &amp;&amp; options.widget.getVariable(\&quot;currentTiddler\&quot;);\n\tif(currTiddlerTitle) {\n\t\treturn [currTiddlerTitle];\n\t} else {\n\t\treturn [];\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;allfilteroperator&quot;
},
&quot;$:/core/modules/filters/all/missing.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/all/missing.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/all/missing.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[missing]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.missing = function(source,prefix,options) {\n\treturn options.wiki.getMissingTitles();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;allfilteroperator&quot;
},
&quot;$:/core/modules/filters/all/orphans.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/all/orphans.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/all/orphans.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[orphans]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.orphans = function(source,prefix,options) {\n\treturn options.wiki.getOrphanTitles();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;allfilteroperator&quot;
},
&quot;$:/core/modules/filters/all/shadows.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/all/shadows.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/all/shadows.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[shadows]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.shadows = function(source,prefix,options) {\n\treturn options.wiki.allShadowTitles();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;allfilteroperator&quot;
},
&quot;$:/core/modules/filters/all/tags.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/all/tags.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/all/tags.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[tags]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.tags = function(source,prefix,options) {\n\treturn Object.keys(options.wiki.getTagMap());\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;allfilteroperator&quot;
},
&quot;$:/core/modules/filters/all/tiddlers.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/all/tiddlers.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/all/tiddlers.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[tiddlers]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.tiddlers = function(source,prefix,options) {\n\treturn options.wiki.allTitles();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;allfilteroperator&quot;
},
&quot;$:/core/modules/filters/all.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/all.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/all.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for selecting tiddlers\n\n[all[shadows+tiddlers]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar allFilterOperators;\n\nfunction getAllFilterOperators() {\n\tif(!allFilterOperators) {\n\t\tallFilterOperators = {};\n\t\t$tw.modules.applyMethods(\&quot;allfilteroperator\&quot;,allFilterOperators);\n\t}\n\treturn allFilterOperators;\n}\n\n/*\nExport our filter function\n*/\nexports.all = function(source,operator,options) {\n\t// Get our suboperators\n\tvar allFilterOperators = getAllFilterOperators();\n\t// Cycle through the suboperators accumulating their results\n\tvar results = [],\n\t\tsubops = operator.operand.split(\&quot;+\&quot;);\n\t// Check for common optimisations\n\tif(subops.length === 1 &amp;&amp; subops[0] === \&quot;\&quot;) {\n\t\treturn source;\n\t} else if(subops.length === 1 &amp;&amp; subops[0] === \&quot;tiddlers\&quot;) {\n\t\treturn options.wiki.each;\n\t} else if(subops.length === 1 &amp;&amp; subops[0] === \&quot;shadows\&quot;) {\n\t\treturn options.wiki.eachShadow;\n\t} else if(subops.length === 2 &amp;&amp; subops[0] === \&quot;tiddlers\&quot; &amp;&amp; subops[1] === \&quot;shadows\&quot;) {\n\t\treturn options.wiki.eachTiddlerPlusShadows;\n\t} else if(subops.length === 2 &amp;&amp; subops[0] === \&quot;shadows\&quot; &amp;&amp; subops[1] === \&quot;tiddlers\&quot;) {\n\t\treturn options.wiki.eachShadowPlusTiddlers;\n\t}\n\t// Do it the hard way\n\tfor(var t=0; t&lt;subops.length; t++) {\n\t\tvar subop = allFilterOperators[subops[t]];\n\t\tif(subop) {\n\t\t\t$tw.utils.pushTop(results,subop(source,operator.prefix,options));\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/backlinks.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/backlinks.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/backlinks.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning all the backlinks from a tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.backlinks = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t$tw.utils.pushTop(results,options.wiki.getTiddlerBacklinks(title));\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/before.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/before.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/before.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the tiddler from the current list that is before the tiddler named in the operand.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.before = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\tvar index = results.indexOf(operator.operand);\n\tif(index &lt;= 0) {\n\t\treturn [];\n\t} else {\n\t\treturn [results[index - 1]];\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/commands.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/commands.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/commands.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the commands available in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.commands = function(source,operator,options) {\n\tvar results = [];\n\t$tw.utils.each($tw.commands,function(commandInfo,name) {\n\t\tresults.push(name);\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/compare.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/compare.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/compare.js\ntype: application/javascript\nmodule-type: filteroperator\n\nGeneral purpose comparison operator\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.compare = function(source,operator,options) {\n\tvar suffixes = operator.suffixes || [],\n\t\ttype = (suffixes[0] || [])[0],\n\t\tmode = (suffixes[1] || [])[0],\n\t\ttypeFn = $tw.utils.makeCompareFunction(type,{defaultType: \&quot;number\&quot;}),\n\t\tmodeFn = modes[mode] || modes.eq,\n\t\tinvert = operator.prefix === \&quot;!\&quot;,\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tif(modeFn(typeFn(title,operator.operand)) !== invert) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\nvar modes = {\n\t\&quot;eq\&quot;: function(value) {return value === 0;},\n\t\&quot;ne\&quot;: function(value) {return value !== 0;},\n\t\&quot;gteq\&quot;: function(value) {return value &gt;= 0;},\n\t\&quot;gt\&quot;: function(value) {return value &gt; 0;},\n\t\&quot;lteq\&quot;: function(value) {return value &lt;= 0;},\n\t\&quot;lt\&quot;: function(value) {return value &lt; 0;}\n}\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/contains.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/contains.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/contains.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for finding values in array fields\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.contains = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldname = (operator.suffix || \&quot;list\&quot;).toLowerCase();\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler) {\n\t\t\t\tvar list = tiddler.getFieldList(fieldname);\n\t\t\t\tif(list.indexOf(operator.operand) === -1) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler) {\n\t\t\t\tvar list = tiddler.getFieldList(fieldname);\n\t\t\t\tif(list.indexOf(operator.operand) !== -1) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/count.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/count.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/count.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the number of entries in the current list.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.count = function(source,operator,options) {\n\tvar count = 0;\n\tsource(function(tiddler,title) {\n\t\tcount++;\n\t});\n\treturn [count + \&quot;\&quot;];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/days.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/days.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/days.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that selects tiddlers with a specified date field within a specified date interval.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.days = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldName = operator.suffix || \&quot;modified\&quot;,\n\t\tdayInterval = (parseInt(operator.operand,10)||0),\n\t\tdayIntervalSign = $tw.utils.sign(dayInterval),\n\t\ttargetTimeStamp = (new Date()).setHours(0,0,0,0) + 1000*60*60*24*dayInterval,\n\t\tisWithinDays = function(dateField) {\n\t\t\tvar sign = $tw.utils.sign(targetTimeStamp - (new Date(dateField)).setHours(0,0,0,0));\n\t\t\treturn sign === 0 || sign === dayIntervalSign;\n\t\t};\n\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\ttargetTimeStamp = targetTimeStamp - 1000*60*60*24*dayIntervalSign;\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler &amp;&amp; tiddler.fields[fieldName]) {\n\t\t\t\tif(!isWithinDays($tw.utils.parseDate(tiddler.fields[fieldName]))) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler &amp;&amp; tiddler.fields[fieldName]) {\n\t\t\t\tif(isWithinDays($tw.utils.parseDate(tiddler.fields[fieldName]))) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/duplicateslugs.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/duplicateslugs.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/duplicateslugs.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter function for [duplicateslugs[]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.duplicateslugs = function(source,operator,options) {\n\tvar slugs = Object.create(null), // Hashmap by slug of title, replaced with \&quot;true\&quot; if the duplicate title has already been output\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tvar slug = options.wiki.slugify(title);\n\t\tif(slug in slugs) {\n\t\t\tif(slugs[slug] !== true) {\n\t\t\t\tresults.push(slugs[slug]);\n\t\t\t\tslugs[slug] = true;\n\t\t\t}\n\t\t\tresults.push(title);\n\t\t} else {\n\t\t\tslugs[slug] = title;\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/each.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/each.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/each.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that selects one tiddler for each unique value of the specified field.\nWith suffix \&quot;list\&quot;, selects all tiddlers that are values in a specified list field.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.each = function(source,operator,options) {\n\tvar results =[] ,\n\tvalue,values = {},\n\tfield = operator.operand || \&quot;title\&quot;;\n\tif(operator.suffix === \&quot;value\&quot; &amp;&amp; field === \&quot;title\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!$tw.utils.hop(values,title)) {\n\t\t\t\tvalues[title] = true;\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else if(operator.suffix !== \&quot;list-item\&quot;) {\n\t\tif(field === \&quot;title\&quot;) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler &amp;&amp; !$tw.utils.hop(values,title)) {\n\t\t\t\t\tvalues[title] = true;\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvalue = tiddler.getFieldString(field);\n\t\t\t\t\tif(!$tw.utils.hop(values,value)) {\n\t\t\t\t\t\tvalues[value] = true;\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler) {\n\t\t\t\t$tw.utils.each(\n\t\t\t\t\toptions.wiki.getTiddlerList(title,field),\n\t\t\t\t\tfunction(value) {\n\t\t\t\t\t\tif(!$tw.utils.hop(values,value)) {\n\t\t\t\t\t\t\tvalues[value] = true;\n\t\t\t\t\t\t\tresults.push(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/eachday.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/eachday.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/eachday.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that selects one tiddler for each unique day covered by the specified date field\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.eachday = function(source,operator,options) {\n\tvar results = [],\n\t\tvalues = [],\n\t\tfieldName = operator.operand || \&quot;modified\&quot;;\n\t// Function to convert a date/time to a date integer\n\tvar toDate = function(value) {\n\t\tvalue = (new Date(value)).setHours(0,0,0,0);\n\t\treturn value+0;\n\t};\n\tsource(function(tiddler,title) {\n\t\tif(tiddler &amp;&amp; tiddler.fields[fieldName]) {\n\t\t\tvar value = toDate($tw.utils.parseDate(tiddler.fields[fieldName]));\n\t\t\tif(values.indexOf(value) === -1) {\n\t\t\t\tvalues.push(value);\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/editiondescription.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/editiondescription.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/editiondescription.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the descriptions of the specified edition names\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.editiondescription = function(source,operator,options) {\n\tvar results = [];\n\tif($tw.node) {\n\t\tvar editionInfo = $tw.utils.getEditionInfo();\n\t\tif(editionInfo) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif($tw.utils.hop(editionInfo,title)) {\n\t\t\t\t\tresults.push(editionInfo[title].description || \&quot;\&quot;);\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/editions.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/editions.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/editions.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the available editions in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.editions = function(source,operator,options) {\n\tvar results = [];\n\tif($tw.node) {\n\t\tvar editionInfo = $tw.utils.getEditionInfo();\n\t\tif(editionInfo) {\n\t\t\t$tw.utils.each(editionInfo,function(info,name) {\n\t\t\t\tresults.push(name);\n\t\t\t});\n\t\t}\n\t\tresults.sort();\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/else.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/else.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/else.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing an empty input list with a constant, passing a non-empty input list straight through\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.else = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\tif(results.length === 0) {\n\t\treturn [operator.operand];\n\t} else {\n\t\treturn results;\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/decodeuricomponent.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/decodeuricomponent.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/decodeuricomponent.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for applying decodeURIComponent() to each item.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter functions\n*/\n\nexports.decodeuricomponent = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar value = title;\n\t\ttry {\n\t\t\tvalue = decodeURIComponent(title);\n\t\t} catch(e) {\n\t\t}\n\t\tresults.push(value);\n\t});\n\treturn results;\n};\n\nexports.encodeuricomponent = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(encodeURIComponent(title));\n\t});\n\treturn results;\n};\n\nexports.decodeuri = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar value = title;\n\t\ttry {\n\t\t\tvalue = decodeURI(title);\n\t\t} catch(e) {\n\t\t}\n\t\tresults.push(value);\n\t});\n\treturn results;\n};\n\nexports.encodeuri = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(encodeURI(title));\n\t});\n\treturn results;\n};\n\nexports.decodehtml = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.htmlDecode(title));\n\t});\n\treturn results;\n};\n\nexports.encodehtml = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.htmlEncode(title));\n\t});\n\treturn results;\n};\n\nexports.stringify = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.stringify(title,(operator.suffix === \&quot;rawunicode\&quot;)));\n\t});\n\treturn results;\n};\n\nexports.jsonstringify = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.jsonStringify(title,(operator.suffix === \&quot;rawunicode\&quot;)));\n\t});\n\treturn results;\n};\n\nexports.escaperegexp = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.escapeRegExp(title));\n\t});\n\treturn results;\n};\n\nexports.escapecss = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t// escape any character with a special meaning in CSS using CSS.escape()\n\t\tresults.push(CSS.escape(title));\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/enlist.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/enlist.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/enlist.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning its operand parsed as a list\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.enlist = function(source,operator,options) {\n\tvar allowDuplicates = false;\n\tswitch(operator.suffix) {\n\t\tcase \&quot;raw\&quot;:\n\t\t\tallowDuplicates = true;\n\t\t\tbreak;\n\t\tcase \&quot;dedupe\&quot;:\n\t\t\tallowDuplicates = false;\n\t\t\tbreak;\n\t}\n\tvar list = $tw.utils.parseStringArray(operator.operand,allowDuplicates);\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tvar results = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tif(list.indexOf(title) === -1) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t\treturn results;\n\t} else {\n\t\treturn list;\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/field.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/field.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/field.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for comparing fields for equality\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.field = function(source,operator,options) {\n\tvar results = [],indexedResults,\n\t\tfieldname = (operator.suffix || operator.operator || \&quot;title\&quot;).toLowerCase();\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tif(operator.regexp) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvar text = tiddler.getFieldString(fieldname);\n\t\t\t\t\tif(text !== null &amp;&amp; !operator.regexp.exec(text)) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvar text = tiddler.getFieldString(fieldname);\n\t\t\t\t\tif(text !== null &amp;&amp; text !== operator.operand) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} else {\n\t\tif(operator.regexp) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvar text = tiddler.getFieldString(fieldname);\n\t\t\t\t\tif(text !== null &amp;&amp; !!operator.regexp.exec(text)) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tif(source.byField &amp;&amp; operator.operand) {\n\t\t\t\tindexedResults = source.byField(fieldname,operator.operand);\n\t\t\t\tif(indexedResults) {\n\t\t\t\t\treturn indexedResults\n\t\t\t\t}\n\t\t\t}\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvar text = tiddler.getFieldString(fieldname);\n\t\t\t\t\tif(text !== null &amp;&amp; text === operator.operand) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/fields.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/fields.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/fields.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the fields on the selected tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.fields = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldName,\n\t\tsuffixes = (operator.suffixes || [])[0] || [],\n\t\toperand = $tw.utils.parseStringArray(operator.operand);\n\t\n\tsource(function(tiddler,title) {\n\t\tif(tiddler) {\n\t\t\tif(suffixes.indexOf(\&quot;include\&quot;) !== -1) {\n\t\t\t\tfor(fieldName in tiddler.fields) {\n\t\t\t\t\t(operand.indexOf(fieldName) !== -1) ? $tw.utils.pushTop(results,fieldName) : \&quot;\&quot;;\n\t\t\t\t}\n\t\t\t} else if (suffixes.indexOf(\&quot;exclude\&quot;) !== -1) {\n\t\t\t\tfor(fieldName in tiddler.fields) {\n\t\t\t\t\t(operand.indexOf(fieldName) !== -1) ? \&quot;\&quot; : $tw.utils.pushTop(results,fieldName);\n\t\t\t\t}\n\t\t\t} // else if\n\t\t\telse {\n\t\t\t\tfor(fieldName in tiddler.fields) {\n\t\t\t\t\t$tw.utils.pushTop(results,fieldName);\n\t\t\t\t}\n\t\t\t} // else\n\t\t} // if (tiddler)\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/filter.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/filter.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/filter.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning those input titles that pass a subfilter\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.filter = function(source,operator,options) {\n\tvar filterFn = options.wiki.compileFilter(operator.operand),\n\t\tresults = [],\n\t\ttarget = operator.prefix !== \&quot;!\&quot;;\n\tsource(function(tiddler,title) {\n\t\tvar list = filterFn.call(options.wiki,options.wiki.makeTiddlerIterator([title]));\n\t\tif((list.length &gt; 0) === target) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/format/date.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/format/date.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/format/date.js\ntype: application/javascript\nmodule-type: formatfilteroperator\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.date = function(source,operand,options) {\n\tvar results = [];\t\n\tsource(function(tiddler,title) {\n\t\tvar value = $tw.utils.parseDate(title);\n\t\tif(value &amp;&amp; $tw.utils.isDate(value) &amp;&amp; value.toString() !== \&quot;Invalid Date\&quot;) {\n\t\t\tresults.push($tw.utils.formatDateString(value,operand || \&quot;YYYY MM DD 0hh:0mm\&quot;));\n\t\t}\n\t});\t\n\treturn results;\n};\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;formatfilteroperator&quot;
},
&quot;$:/core/modules/filters/format/relativedate.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/format/relativedate.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/format/relativedate.js\ntype: application/javascript\nmodule-type: formatfilteroperator\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.relativedate = function(source,operand,options) {\n\tvar results = [];\t\n\tsource(function(tiddler,title) {\n\t\tvar value = $tw.utils.parseDate(title);\n\t\tif(value &amp;&amp; $tw.utils.isDate(value) &amp;&amp; value.toString() !== \&quot;Invalid Date\&quot;) {\n\t\t\tresults.push($tw.utils.getRelativeDate((new Date()) - (new Date(value))).description);\n\t\t}\n\t});\t\n\treturn results;\n};\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;formatfilteroperator&quot;
},
&quot;$:/core/modules/filters/format.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/format.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/format.js\ntype: application/javascript\nmodule-type: filteroperator\nFilter operator for formatting strings\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar formatFilterOperators;\n\nfunction getFormatFilterOperators() {\n\tif(!formatFilterOperators) {\n\t\tformatFilterOperators = {};\n\t\t$tw.modules.applyMethods(\&quot;formatfilteroperator\&quot;,formatFilterOperators);\n\t}\n\treturn formatFilterOperators;\n}\n\n/*\nExport our filter function\n*/\nexports.format = function(source,operator,options) {\n\t// Dispatch to the correct formatfilteroperator\n\tvar formatFilterOperators = getFormatFilterOperators();\n\tif(operator.suffix) {\n\t\tvar formatFilterOperator = formatFilterOperators[operator.suffix];\n\t\tif(formatFilterOperator) {\n\t\t\treturn formatFilterOperator(source,operator.operand,options);\n\t\t} else {\n\t\t\treturn [$tw.language.getString(\&quot;Error/FormatFilterOperator\&quot;)];\n\t\t}\n\t} else {\n\t\t// Return all unchanged if the suffix is missing\n\t\tvar results = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.push(title);\n\t\t});\n\t\treturn results;\n\t}\n};\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/get.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/get.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/get.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing tiddler titles by the value of the field specified in the operand.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.get = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tif(tiddler) {\n\t\t\tvar value = tiddler.getFieldString(operator.operand);\n\t\t\tif(value) {\n\t\t\t\tresults.push(value);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/getindex.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/getindex.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/getindex.js\ntype: application/javascript\nmodule-type: filteroperator\n\nreturns the value at a given index of datatiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.getindex = function(source,operator,options) {\n\tvar data,title,results = [];\n\tif(operator.operand){\n\t\tsource(function(tiddler,title) {\n\t\t\ttitle = tiddler ? tiddler.fields.title : title;\n\t\t\tdata = options.wiki.extractTiddlerDataItem(tiddler,operator.operand);\n\t\t\tif(data) {\n\t\t\t\tresults.push(data);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/getvariable.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/getvariable.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/getvariable.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing input values by the value of the variable with the same name, or blank if the variable is missing\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.getvariable = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(options.widget.getVariable(title) || \&quot;\&quot;);\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/has.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/has.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/has.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a tiddler has the specified field or index\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.has = function(source,operator,options) {\n\tvar results = [],\n\t\tinvert = operator.prefix === \&quot;!\&quot;;\n\n\tif(operator.suffix === \&quot;field\&quot;) {\n\t\tif(invert) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(!tiddler || (tiddler &amp;&amp; (!$tw.utils.hop(tiddler.fields,operator.operand)))) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler &amp;&amp; $tw.utils.hop(tiddler.fields,operator.operand)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\telse if(operator.suffix === \&quot;index\&quot;) {\n\t\tif(invert) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(!tiddler || (tiddler &amp;&amp; (!$tw.utils.hop(options.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)))) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler &amp;&amp; $tw.utils.hop(options.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\telse {\n\t\tif(invert) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(!tiddler || !$tw.utils.hop(tiddler.fields,operator.operand) || (tiddler.fields[operator.operand].length === 0)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler &amp;&amp; $tw.utils.hop(tiddler.fields,operator.operand) &amp;&amp; (tiddler.fields[operator.operand].length !== 0)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\t\t\t\t\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/haschanged.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/haschanged.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/haschanged.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returns tiddlers from the list that have a non-zero changecount.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.haschanged = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.getChangeCount(title) === 0) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.getChangeCount(title) &gt; 0) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/indexes.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/indexes.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/indexes.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the indexes of a data tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.indexes = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar data = options.wiki.getTiddlerDataCached(title);\n\t\tif(data) {\n\t\t\t$tw.utils.pushTop(results,Object.keys(data));\n\t\t}\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/insertbefore.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/insertbefore.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/insertbefore.js\ntype: application/javascript\nmodule-type: filteroperator\n\nInsert an item before another item in a list\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nOrder a list\n*/\nexports.insertbefore = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\tvar target = options.widget &amp;&amp; options.widget.getVariable(operator.suffix || \&quot;currentTiddler\&quot;);\n\tif(target !== operator.operand) {\n\t\t// Remove the entry from the list if it is present\n\t\tvar pos = results.indexOf(operator.operand);\n\t\tif(pos !== -1) {\n\t\t\tresults.splice(pos,1);\n\t\t}\n\t\t// Insert the entry before the target marker\n\t\tpos = results.indexOf(target);\n\t\tif(pos !== -1) {\n\t\t\tresults.splice(pos,0,operator.operand);\n\t\t} else {\n\t\t\tresults.push(operator.operand);\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/is/binary.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/binary.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/binary.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[binary]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.binary = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.isBinaryTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.isBinaryTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is/blank.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/blank.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/blank.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[blank]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.blank = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!title) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is/current.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/current.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/current.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[current]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.current = function(source,prefix,options) {\n\tvar results = [],\n\t\tcurrTiddlerTitle = options.widget &amp;&amp; options.widget.getVariable(\&quot;currentTiddler\&quot;);\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title !== currTiddlerTitle) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title === currTiddlerTitle) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is/draft.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/draft.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/draft.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[draft]] analagous to [has[draft.of]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.draft = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!tiddler || !$tw.utils.hop(tiddler.fields,\&quot;draft.of\&quot;)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler &amp;&amp; $tw.utils.hop(tiddler.fields,\&quot;draft.of\&quot;) &amp;&amp; (tiddler.fields[\&quot;draft.of\&quot;].length !== 0)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\t\t\t\t\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is/image.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/image.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/image.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[image]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.image = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.isImageTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.isImageTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is/missing.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/missing.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/missing.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[missing]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.missing = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.tiddlerExists(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.tiddlerExists(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is/orphan.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/orphan.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/orphan.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[orphan]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.orphan = function(source,prefix,options) {\n\tvar results = [],\n\t\torphanTitles = options.wiki.getOrphanTitles();\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(orphanTitles.indexOf(title) === -1) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(orphanTitles.indexOf(title) !== -1) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is/shadow.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/shadow.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/shadow.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[shadow]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.shadow = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.isShadowTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.isShadowTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is/system.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/system.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/system.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[system]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.system = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.isSystemTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.isSystemTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is/tag.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/tag.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/tag.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[tag]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.tag = function(source,prefix,options) {\n\tvar results = [],\n\t\ttagMap = options.wiki.getTagMap();\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!$tw.utils.hop(tagMap,title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif($tw.utils.hop(tagMap,title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is/tiddler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/tiddler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/tiddler.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[tiddler]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.tiddler = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.tiddlerExists(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.tiddlerExists(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is/variable.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is/variable.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is/variable.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[variable]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.variable = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!(title in options.widget.variables)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title in options.widget.variables) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;isfilteroperator&quot;
},
&quot;$:/core/modules/filters/is.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/is.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/is.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking tiddler properties\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar isFilterOperators;\n\nfunction getIsFilterOperators() {\n\tif(!isFilterOperators) {\n\t\tisFilterOperators = {};\n\t\t$tw.modules.applyMethods(\&quot;isfilteroperator\&quot;,isFilterOperators);\n\t}\n\treturn isFilterOperators;\n}\n\n/*\nExport our filter function\n*/\nexports.is = function(source,operator,options) {\n\t// Dispatch to the correct isfilteroperator\n\tvar isFilterOperators = getIsFilterOperators();\n\tif(operator.operand) {\n\t\tvar isFilterOperator = isFilterOperators[operator.operand];\n\t\tif(isFilterOperator) {\n\t\t\treturn isFilterOperator(source,operator.prefix,options);\n\t\t} else {\n\t\t\treturn [$tw.language.getString(\&quot;Error/IsFilterOperator\&quot;)];\n\t\t}\n\t} else {\n\t\t// Return all tiddlers if the operand is missing\n\t\tvar results = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.push(title);\n\t\t});\n\t\treturn results;\n\t}\n};\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/limit.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/limit.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/limit.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for chopping the results to a specified maximum number of entries\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.limit = function(source,operator,options) {\n\tvar results = [];\n\t// Convert to an array\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\t// Slice the array if necessary\n\tvar limit = Math.min(results.length,parseInt(operator.operand,10));\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tresults = results.slice(-limit);\n\t} else {\n\t\tresults = results.slice(0,limit);\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/links.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/links.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/links.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning all the links from a tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.links = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t$tw.utils.pushTop(results,options.wiki.getTiddlerLinks(title));\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/list.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/list.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/list.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the tiddlers whose title is listed in the operand tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.list = function(source,operator,options) {\n\tvar results = [],\n\t\ttr = $tw.utils.parseTextReference(operator.operand),\n\t\tcurrTiddlerTitle = options.widget &amp;&amp; options.widget.getVariable(\&quot;currentTiddler\&quot;),\n\t\tlist = options.wiki.getTiddlerList(tr.title || currTiddlerTitle,tr.field,tr.index);\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(list.indexOf(title) === -1) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tresults = list;\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/listed.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/listed.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/listed.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning all tiddlers that have the selected tiddlers in a list\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.listed = function(source,operator,options) {\n\tvar field = operator.operand || \&quot;list\&quot;,\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\t$tw.utils.pushTop(results,options.wiki.findListingsOfTiddler(title,field));\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/listops.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/listops.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/listops.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operators for manipulating the current selection list\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nOrder a list\n*/\nexports.order = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.operand.toLowerCase() === \&quot;reverse\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.unshift(title);\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.push(title);\n\t\t});\n\t}\n\treturn results;\n};\n\n/*\nReverse list\n*/\nexports.reverse = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.unshift(title);\n\t});\n\treturn results;\n};\n\n/*\nFirst entry/entries in list\n*/\nexports.first = function(source,operator,options) {\n\tvar count = $tw.utils.getInt(operator.operand,1),\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results.slice(0,count);\n};\n\n/*\nLast entry/entries in list\n*/\nexports.last = function(source,operator,options) {\n\tvar count = $tw.utils.getInt(operator.operand,1),\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results.slice(-count);\n};\n\n/*\nAll but the first entry/entries of the list\n*/\nexports.rest = function(source,operator,options) {\n\tvar count = $tw.utils.getInt(operator.operand,1),\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results.slice(count);\n};\nexports.butfirst = exports.rest;\nexports.bf = exports.rest;\n\n/*\nAll but the last entry/entries of the list\n*/\nexports.butlast = function(source,operator,options) {\n\tvar count = $tw.utils.getInt(operator.operand,1),\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results.slice(0,-count);\n};\nexports.bl = exports.butlast;\n\n/*\nThe nth member of the list\n*/\nexports.nth = function(source,operator,options) {\n\tvar count = $tw.utils.getInt(operator.operand,1),\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results.slice(count - 1,count);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/lookup.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/lookup.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/lookup.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that looks up values via a title prefix\n\n[lookup:&lt;field&gt;[&lt;prefix&gt;]]\n\nPrepends the prefix to the selected items and returns the specified field value\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.lookup = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(options.wiki.getTiddlerText(operator.operand + title) || operator.suffix);\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/match.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/match.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/match.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a title matches a string\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.match = function(source,operator,options) {\n\tvar results = [],\n\t\tsuffixes = (operator.suffixes || [])[0] || [];\n\tif(suffixes.indexOf(\&quot;caseinsensitive\&quot;) !== -1) {\n\t\tif(operator.prefix === \&quot;!\&quot;) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title.toLowerCase() !== (operator.operand || \&quot;\&quot;).toLowerCase()) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title.toLowerCase() === (operator.operand || \&quot;\&quot;).toLowerCase()) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} else {\n\t\tif(operator.prefix === \&quot;!\&quot;) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title !== operator.operand) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title === operator.operand) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/math.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/math.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/math.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operators for math. Unary/binary operators work on each item in turn, and return a new item list.\n\nSum/product/maxall/minall operate on the entire list, returning a single item.\n\nNote that strings are converted to numbers automatically. Trailing non-digits are ignored.\n\n* \&quot;\&quot; converts to 0\n* \&quot;12kk\&quot; converts to 12\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.negate = makeNumericBinaryOperator(\n\tfunction(a) {return -a}\n);\n\nexports.abs = makeNumericBinaryOperator(\n\tfunction(a) {return Math.abs(a)}\n);\n\nexports.ceil = makeNumericBinaryOperator(\n\tfunction(a) {return Math.ceil(a)}\n);\n\nexports.floor = makeNumericBinaryOperator(\n\tfunction(a) {return Math.floor(a)}\n);\n\nexports.round = makeNumericBinaryOperator(\n\tfunction(a) {return Math.round(a)}\n);\n\nexports.trunc = makeNumericBinaryOperator(\n\tfunction(a) {return Math.trunc(a)}\n);\n\nexports.untrunc = makeNumericBinaryOperator(\n\tfunction(a) {return Math.ceil(Math.abs(a)) * Math.sign(a)}\n);\n\nexports.sign = makeNumericBinaryOperator(\n\tfunction(a) {return Math.sign(a)}\n);\n\nexports.add = makeNumericBinaryOperator(\n\tfunction(a,b) {return a + b;}\n);\n\nexports.subtract = makeNumericBinaryOperator(\n\tfunction(a,b) {return a - b;}\n);\n\nexports.multiply = makeNumericBinaryOperator(\n\tfunction(a,b) {return a * b;}\n);\n\nexports.divide = makeNumericBinaryOperator(\n\tfunction(a,b) {return a / b;}\n);\n\nexports.remainder = makeNumericBinaryOperator(\n\tfunction(a,b) {return a % b;}\n);\n\nexports.max = makeNumericBinaryOperator(\n\tfunction(a,b) {return Math.max(a,b);}\n);\n\nexports.min = makeNumericBinaryOperator(\n\tfunction(a,b) {return Math.min(a,b);}\n);\n\nexports.fixed = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toFixed.call(a,Math.min(Math.max(b,0),100));}\n);\n\nexports.precision = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toPrecision.call(a,Math.min(Math.max(b,1),100));}\n);\n\nexports.exponential = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toExponential.call(a,Math.min(Math.max(b,0),100));}\n);\n\nexports.power = makeNumericBinaryOperator(\n\tfunction(a,b) {return Math.pow(a,b);}\n);\n\nexports.log = makeNumericBinaryOperator(\n\tfunction(a,b) {\n\t\tif(b) {\n\t\t\treturn Math.log(a)/Math.log(b);\n\t\t} else {\n\t\t\treturn Math.log(a);\n\t\t}\n\t}\n);\n\nexports.sum = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return accumulator + value},\n\t0 // Initial value\n);\n\nexports.product = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return accumulator * value},\n\t1 // Initial value\n);\n\nexports.maxall = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return Math.max(accumulator,value)},\n\t-Infinity // Initial value\n);\n\nexports.minall = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return Math.min(accumulator,value)},\n\tInfinity // Initial value\n);\n\nfunction makeNumericBinaryOperator(fnCalc) {\n\treturn function(source,operator,options) {\n\t\tvar result = [],\n\t\t\tnumOperand = $tw.utils.parseNumber(operator.operand);\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push($tw.utils.stringifyNumber(fnCalc($tw.utils.parseNumber(title),numOperand)));\n\t\t});\n\t\treturn result;\n\t};\n}\n\nfunction makeNumericReducingOperator(fnCalc,initialValue) {\n\tinitialValue = initialValue || 0;\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push(title);\n\t\t});\n\t\treturn [$tw.utils.stringifyNumber(result.reduce(function(accumulator,currentValue) {\n\t\t\treturn fnCalc(accumulator,$tw.utils.parseNumber(currentValue));\n\t\t},initialValue))];\n\t};\n}\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/minlength.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/minlength.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/minlength.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for filtering out titles that don't meet the minimum length in the operand\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.minlength = function(source,operator,options) {\n\tvar results = [],\n\t\tminLength = parseInt(operator.operand || \&quot;\&quot;,10) || 0;\n\tsource(function(tiddler,title) {\n\t\tif(title.length &gt;= minLength) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/modules.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/modules.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/modules.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the titles of the modules of a given type in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.modules = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t$tw.utils.each($tw.modules.types[title],function(moduleInfo,moduleName) {\n\t\t\tresults.push(moduleName);\n\t\t});\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/moduletypes.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/moduletypes.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/moduletypes.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the module types in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.moduletypes = function(source,operator,options) {\n\tvar results = [];\n\t$tw.utils.each($tw.modules.types,function(moduleInfo,type) {\n\t\tresults.push(type);\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/next.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/next.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/next.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the tiddler whose title occurs next in the list supplied in the operand tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.next = function(source,operator,options) {\n\tvar results = [],\n\t\tlist = options.wiki.getTiddlerList(operator.operand);\n\tsource(function(tiddler,title) {\n\t\tvar match = list.indexOf(title);\n\t\t// increment match and then test if result is in range\n\t\tmatch++;\n\t\tif(match &gt; 0 &amp;&amp; match &lt; list.length) {\n\t\t\tresults.push(list[match]);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/plugintiddlers.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/plugintiddlers.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/plugintiddlers.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the titles of the shadow tiddlers within a plugin\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.plugintiddlers = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar pluginInfo = options.wiki.getPluginInfo(title) || options.wiki.getTiddlerDataCached(title,{tiddlers:[]});\n\t\tif(pluginInfo &amp;&amp; pluginInfo.tiddlers) {\n\t\t\t$tw.utils.each(pluginInfo.tiddlers,function(fields,title) {\n\t\t\t\tresults.push(title);\n\t\t\t});\n\t\t}\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/prefix.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/prefix.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/prefix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a title starts with a prefix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.prefix = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title.substr(0,operator.operand.length) !== operator.operand) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title.substr(0,operator.operand.length) === operator.operand) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/previous.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/previous.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/previous.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the tiddler whose title occurs immediately prior in the list supplied in the operand tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.previous = function(source,operator,options) {\n\tvar results = [],\n\t\tlist = options.wiki.getTiddlerList(operator.operand);\n\tsource(function(tiddler,title) {\n\t\tvar match = list.indexOf(title);\n\t\t// increment match and then test if result is in range\n\t\tmatch--;\n\t\tif(match &gt;= 0) {\n\t\t\tresults.push(list[match]);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/range.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/range.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/range.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for generating a numeric range.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.range = function(source,operator,options) {\n\tvar results = [];\n\t// Split the operand into numbers delimited by these symbols\n\tvar parts = operator.operand.split(/[,:;]/g),\n\t\tbeg, end, inc, i, fixed = 0;\n\tfor (i=0; i&lt;parts.length; i++) {\n\t\t// Validate real number\n\t\tif(!/^\\s*[+-]?((\\d+(\\.\\d*)?)|(\\.\\d+))\\s*$/.test(parts[i])) {\n\t\t\treturn [\&quot;range: bad number \\\&quot;\&quot; + parts[i] + \&quot;\\\&quot;\&quot;];\n\t\t}\n\t\t// Count digits; the most precise number determines decimal places in output.\n\t\tvar frac = /\\.\\d+/.exec(parts[i]);\n\t\tif(frac) {\n\t\t\tfixed = Math.max(fixed,frac[0].length-1);\n\t\t}\n\t\tparts[i] = parseFloat(parts[i]);\n\t}\n\tswitch(parts.length) {\n\t\tcase 1:\n\t\t\tend = parts[0];\n\t\t\tif (end &gt;= 1) {\n\t\t\t\tbeg = 1;\n\t\t\t}\n\t\t\telse if (end &lt;= -1) {\n\t\t\t\tbeg = -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn [];\n\t\t\t}\n\t\t\tinc = 1;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tbeg = parts[0];\n\t\t\tend = parts[1];\n\t\t\tinc = 1;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tbeg = parts[0];\n\t\t\tend = parts[1];\n\t\t\tinc = Math.abs(parts[2]);\n\t\t\tbreak;\n\t}\n\tif(inc === 0) {\n\t\treturn [\&quot;range: increment 0 causes infinite loop\&quot;];\n\t}\n\t// May need to count backwards\n\tvar direction = ((end &lt; beg) ? -1 : 1);\n\tinc *= direction;\n\t// Estimate number of resulting elements\n\tif((end - beg) / inc &gt; 10000) {\n\t\treturn [\&quot;range: too many steps (over 10K)\&quot;];\n\t}\n\t// Avoid rounding error on last step\n\tend += direction * 0.5 * Math.pow(0.1,fixed);\n\tvar safety = 10010;\n\t// Enumerate the range\n\tif (end&lt;beg) {\n\t\tfor(i=beg; i&gt;end; i+=inc) {\n\t\t\tresults.push(i.toFixed(fixed));\n\t\t\tif(--safety&lt;0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tfor(i=beg; i&lt;end; i+=inc) {\n\t\t\tresults.push(i.toFixed(fixed));\n\t\t\tif(--safety&lt;0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(safety&lt;0) {\n\t\treturn [\&quot;range: unexpectedly large output\&quot;];\n\t}\n\t// Reverse?\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tresults.reverse();\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/reduce.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/reduce.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/reduce.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator evaluates a subfilter for each item, making the running total available in the variable `accumulator`, and the current index available in the variable `index`\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.reduce = function(source,operator,options) {\n\t// Accumulate the list\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\t// Run the filter over each item\n\tvar filterFn = options.wiki.compileFilter(operator.operand),\n\t\taccumulator = operator.operands[1] || \&quot;\&quot;;\n\tfor(var index=0; index&lt;results.length; index++) {\n\t\tvar title = results[index],\n\t\t\tlist = filterFn.call(options.wiki,options.wiki.makeTiddlerIterator([title]),{\n\t\t\t\tgetVariable: function(name) {\n\t\t\t\t\tswitch(name) {\n\t\t\t\t\t\tcase \&quot;currentTiddler\&quot;:\n\t\t\t\t\t\t\treturn \&quot;\&quot; + title;\n\t\t\t\t\t\tcase \&quot;accumulator\&quot;:\n\t\t\t\t\t\t\treturn \&quot;\&quot; + accumulator;\n\t\t\t\t\t\tcase \&quot;index\&quot;:\n\t\t\t\t\t\t\treturn \&quot;\&quot; + index;\n\t\t\t\t\t\tcase \&quot;revIndex\&quot;:\n\t\t\t\t\t\t\treturn \&quot;\&quot; + (results.length - 1 - index);\n\t\t\t\t\t\tcase \&quot;length\&quot;:\n\t\t\t\t\t\t\treturn \&quot;\&quot; + results.length;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\treturn options.widget.getVariable(name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\tif(list.length &gt; 0) {\n\t\t\taccumulator = \&quot;\&quot; + list[0];\n\t\t}\n\t}\n\tif(results.length &gt; 0) {\n\t\treturn [accumulator];\n\t} else {\n\t\treturn [];\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/regexp.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/regexp.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/regexp.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for regexp matching\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.regexp = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldname = (operator.suffix || \&quot;title\&quot;).toLowerCase(),\n\t\tregexpString, regexp, flags = \&quot;\&quot;, match,\n\t\tgetFieldString = function(tiddler,title) {\n\t\t\tif(tiddler) {\n\t\t\t\treturn tiddler.getFieldString(fieldname);\n\t\t\t} else if(fieldname === \&quot;title\&quot;) {\n\t\t\t\treturn title;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t// Process flags and construct regexp\n\tregexpString = operator.operand;\n\tmatch = /^\\(\\?([gim]+)\\)/.exec(regexpString);\n\tif(match) {\n\t\tflags = match[1];\n\t\tregexpString = regexpString.substr(match[0].length);\n\t} else {\n\t\tmatch = /\\(\\?([gim]+)\\)$/.exec(regexpString);\n\t\tif(match) {\n\t\t\tflags = match[1];\n\t\t\tregexpString = regexpString.substr(0,regexpString.length - match[0].length);\n\t\t}\n\t}\n\ttry {\n\t\tregexp = new RegExp(regexpString,flags);\n\t} catch(e) {\n\t\treturn [\&quot;\&quot; + e];\n\t}\n\t// Process the incoming tiddlers\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tvar text = getFieldString(tiddler,title);\n\t\t\tif(text !== null) {\n\t\t\t\tif(!regexp.exec(text)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tvar text = getFieldString(tiddler,title);\n\t\t\tif(text !== null) {\n\t\t\t\tif(!!regexp.exec(text)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/removeprefix.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/removeprefix.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/removeprefix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for removing a prefix from each title in the list. Titles that do not start with the prefix are removed.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.removeprefix = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tif(title.substr(0,operator.operand.length) === operator.operand) {\n\t\t\tresults.push(title.substr(operator.operand.length));\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/removesuffix.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/removesuffix.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/removesuffix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for removing a suffix from each title in the list. Titles that do not end with the suffix are removed.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.removesuffix = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tif(title &amp;&amp; title.substr(-operator.operand.length) === operator.operand) {\n\t\t\tresults.push(title.substr(0,title.length - operator.operand.length));\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/sameday.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/sameday.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/sameday.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that selects tiddlers with a modified date field on the same day as the provided value.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.sameday = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldName = operator.suffix || \&quot;modified\&quot;,\n\t\ttargetDate = (new Date($tw.utils.parseDate(operator.operand))).setHours(0,0,0,0);\n\t// Function to convert a date/time to a date integer\n\tsource(function(tiddler,title) {\n\t\tif(tiddler) {\n\t\t\tif(tiddler.getFieldDay(fieldName) === targetDate) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/search.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/search.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/search.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for searching for the text in the operand tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.search = function(source,operator,options) {\n\tvar invert = operator.prefix === \&quot;!\&quot;;\n\tif(operator.suffixes) {\n\t\tvar hasFlag = function(flag) {\n\t\t\t\treturn (operator.suffixes[1] || []).indexOf(flag) !== -1;\n\t\t\t},\n\t\t\texcludeFields = false,\n\t\t\tfieldList = operator.suffixes[0] || [],\n\t\t\tfirstField = fieldList[0] || \&quot;\&quot;, \n\t\t\tfirstChar = firstField.charAt(0),\n\t\t\tfields;\n\t\tif(firstChar === \&quot;-\&quot;) {\n\t\t\tfields = [firstField.slice(1)].concat(fieldList.slice(1));\n\t\t\texcludeFields = true;\n\t\t} else if(fieldList[0] === \&quot;*\&quot;){\n\t\t\tfields = [];\n\t\t\texcludeFields = true;\n\t\t} else {\n\t\t\tfields = fieldList.slice(0);\n\t\t}\n\t\treturn options.wiki.search(operator.operand,{\n\t\t\tsource: source,\n\t\t\tinvert: invert,\n\t\t\tfield: fields,\n\t\t\texcludeField: excludeFields,\n\t\t\tcaseSensitive: hasFlag(\&quot;casesensitive\&quot;),\n\t\t\tliteral: hasFlag(\&quot;literal\&quot;),\n\t\t\twhitespace: hasFlag(\&quot;whitespace\&quot;),\n\t\t\tanchored: hasFlag(\&quot;anchored\&quot;),\n\t\t\tregexp: hasFlag(\&quot;regexp\&quot;),\n\t\t\twords: hasFlag(\&quot;words\&quot;)\n\t\t});\n\t} else {\n\t\treturn options.wiki.search(operator.operand,{\n\t\t\tsource: source,\n\t\t\tinvert: invert\n\t\t});\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/shadowsource.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/shadowsource.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/shadowsource.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the source plugins for shadow tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.shadowsource = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar source = options.wiki.getShadowSource(title);\n\t\tif(source) {\n\t\t\t$tw.utils.pushTop(results,source);\n\t\t}\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/slugify.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/slugify.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/slugify.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for slugifying a tiddler title\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.slugify = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(options.wiki.slugify(title));\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/sort.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/sort.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/sort.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for sorting\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.sort = function(source,operator,options) {\n\tvar results = prepare_results(source);\n\toptions.wiki.sortTiddlers(results,operator.operand || \&quot;title\&quot;,operator.prefix === \&quot;!\&quot;,false,false);\n\treturn results;\n};\n\nexports.nsort = function(source,operator,options) {\n\tvar results = prepare_results(source);\n\toptions.wiki.sortTiddlers(results,operator.operand || \&quot;title\&quot;,operator.prefix === \&quot;!\&quot;,false,true);\n\treturn results;\n};\n\nexports.sortan = function(source, operator, options) {\n\tvar results = prepare_results(source);\n\toptions.wiki.sortTiddlers(results, operator.operand || \&quot;title\&quot;, operator.prefix === \&quot;!\&quot;,false,false,true);\n\treturn results;\n};\n\nexports.sortcs = function(source,operator,options) {\n\tvar results = prepare_results(source);\n\toptions.wiki.sortTiddlers(results,operator.operand || \&quot;title\&quot;,operator.prefix === \&quot;!\&quot;,true,false);\n\treturn results;\n};\n\nexports.nsortcs = function(source,operator,options) {\n\tvar results = prepare_results(source);\n\toptions.wiki.sortTiddlers(results,operator.operand || \&quot;title\&quot;,operator.prefix === \&quot;!\&quot;,true,true);\n\treturn results;\n};\n\nvar prepare_results = function (source) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/sortsub.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/sortsub.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/sortsub.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for sorting by a subfilter\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.sortsub = function(source,operator,options) {\n\t// Compile the subfilter\n\tvar filterFn = options.wiki.compileFilter(operator.operand);\n\t// Collect the input titles and the corresponding sort keys\n\tvar inputTitles = [],\n\t\tsortKeys = [];\n\tsource(function(tiddler,title) {\n\t\tinputTitles.push(title);\n\t\tvar r = filterFn.call(options.wiki,function(iterator) {\n\t\t\titerator(options.wiki.getTiddler(title),title);\n\t\t},{\n\t\t\tgetVariable: function(name) {\n\t\t\t\tif(name === \&quot;currentTiddler\&quot;) {\n\t\t\t\t\treturn title;\n\t\t\t\t} else {\n\t\t\t\t\treturn options.widget.getVariable(name);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsortKeys.push(r[0] || \&quot;\&quot;);\n\t});\n\t// Rather than sorting the titles array, we'll sort the indexes so that we can consult both arrays\n\tvar indexes = new Array(inputTitles.length);\n\tfor(var t=0; t&lt;inputTitles.length; t++) {\n\t\tindexes[t] = t;\n\t}\n\t// Sort the indexes\n\tvar compareFn = $tw.utils.makeCompareFunction(operator.suffix,{defaultType: \&quot;string\&quot;,invert: operator.prefix === \&quot;!\&quot;});\n\tindexes = indexes.sort(function(a,b) {\n\t\treturn compareFn(sortKeys[a],sortKeys[b]);\n\t});\n\t// Make the results array in order\n\tvar results = [];\n\t$tw.utils.each(indexes,function(index) {\n\t\tresults.push(inputTitles[index]);\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/splitbefore.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/splitbefore.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/splitbefore.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that splits each result on the first occurance of the specified separator and returns the unique values.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.splitbefore = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar parts = title.split(operator.operand);\n\t\tif(parts.length === 1) {\n\t\t\t$tw.utils.pushTop(results,parts[0]);\n\t\t} else {\n\t\t\t$tw.utils.pushTop(results,parts[0] + operator.operand);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/storyviews.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/storyviews.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/storyviews.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the story views in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.storyviews = function(source,operator,options) {\n\tvar results = [],\n\t\tstoryviews = {};\n\t$tw.modules.applyMethods(\&quot;storyview\&quot;,storyviews);\n\t$tw.utils.each(storyviews,function(info,name) {\n\t\tresults.push(name);\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/strings.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/strings.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/strings.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operators for strings. Unary/binary operators work on each item in turn, and return a new item list.\n\nSum/product/maxall/minall operate on the entire list, returning a single item.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.length = makeStringBinaryOperator(\n\tfunction(a) {return [\&quot;\&quot; + (\&quot;\&quot; + a).length];}\n);\n\nexports.uppercase = makeStringBinaryOperator(\n\tfunction(a) {return [(\&quot;\&quot; + a).toUpperCase()];}\n);\n\nexports.lowercase = makeStringBinaryOperator(\n\tfunction(a) {return [(\&quot;\&quot; + a).toLowerCase()];}\n);\n\nexports.sentencecase = makeStringBinaryOperator(\n\tfunction(a) {return [$tw.utils.toSentenceCase(a)];}\n);\n\nexports.titlecase = makeStringBinaryOperator(\n\tfunction(a) {return [$tw.utils.toTitleCase(a)];}\n);\n\nexports.trim = function(source,operator,options) {\n\tvar result = [],\n\t\tsuffix = operator.suffix || \&quot;\&quot;,\n\t\toperand = (operator.operand || \&quot;\&quot;),\n\t\tfnCalc;\n\tif(suffix === \&quot;prefix\&quot;) {\n\t\tfnCalc = function(a,b) {return [$tw.utils.trimPrefix(a,b)];}\n\t} else if(suffix === \&quot;suffix\&quot;) {\n\t\tfnCalc = function(a,b) {return [$tw.utils.trimSuffix(a,b)];}\n\t} else {\n\t\tif(operand === \&quot;\&quot;) {\n\t\t\tfnCalc = function(a) {return [$tw.utils.trim(a)];}\n\t\t} else {\n\t\t\tfnCalc = function(a,b) {return [$tw.utils.trimSuffix($tw.utils.trimPrefix(a,b),b)];}\n\t\t}\n\t}\n\tsource(function(tiddler,title) {\n\t\tArray.prototype.push.apply(result,fnCalc(title,operand));\n\t});\n\treturn result;\n};\n\nexports.split = makeStringBinaryOperator(\n\tfunction(a,b) {return (\&quot;\&quot; + a).split(b);}\n);\n\nexports[\&quot;enlist-input\&quot;] = makeStringBinaryOperator(\n\tfunction(a,o,s) {return $tw.utils.parseStringArray(\&quot;\&quot; + a,(s === \&quot;raw\&quot;));}\n);\n\nexports.join = makeStringReducingOperator(\n\tfunction(accumulator,value,operand) {\n\t\tif(accumulator === null) {\n\t\t\treturn value;\n\t\t} else {\n\t\t\treturn accumulator + operand + value;\n\t\t}\n\t},null\n);\n\nfunction makeStringBinaryOperator(fnCalc) {\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tArray.prototype.push.apply(result,fnCalc(title,operator.operand || \&quot;\&quot;,operator.suffix || \&quot;\&quot;));\n\t\t});\n\t\treturn result;\n\t};\n}\n\nfunction makeStringReducingOperator(fnCalc,initialValue) {\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push(title);\n\t\t});\n\t\tif(result.length === 0) {\n\t\t\treturn [];\n\t\t}\n\t\treturn [result.reduce(function(accumulator,currentValue) {\n\t\t\treturn fnCalc(accumulator,currentValue,operator.operand || \&quot;\&quot;);\n\t\t},initialValue) || \&quot;\&quot;];\n\t};\n}\n\nexports.splitregexp = function(source,operator,options) {\n\tvar result = [],\n\t\tsuffix = operator.suffix || \&quot;\&quot;,\n\t\tflags = (suffix.indexOf(\&quot;m\&quot;) !== -1 ? \&quot;m\&quot; : \&quot;\&quot;) + (suffix.indexOf(\&quot;i\&quot;) !== -1 ? \&quot;i\&quot; : \&quot;\&quot;),\n\t\tregExp;\n\ttry {\n\t\tregExp = new RegExp(operator.operand || \&quot;\&quot;,flags);\t\t\n\t} catch(ex) {\n\t\treturn [\&quot;RegExp error: \&quot; + ex];\n\t}\n\tsource(function(tiddler,title) {\n\t\tArray.prototype.push.apply(result,title.split(regExp));\n\t});\t\t\n\treturn result;\n};\n\nexports[\&quot;search-replace\&quot;] = function(source,operator,options) {\n\tvar results = [],\n\t\tsuffixes = operator.suffixes || [],\n\t\tflagSuffix = (suffixes[0] ? (suffixes[0][0] || \&quot;\&quot;) : \&quot;\&quot;),\n\t\tflags = (flagSuffix.indexOf(\&quot;g\&quot;) !== -1 ? \&quot;g\&quot; : \&quot;\&quot;) + (flagSuffix.indexOf(\&quot;i\&quot;) !== -1 ? \&quot;i\&quot; : \&quot;\&quot;),\n\t\tisRegExp = (suffixes[1] &amp;&amp; suffixes[1][0] === \&quot;regexp\&quot;) ? true : false,\n\t\tsearchTerm,\n\t\tregExp;\n\t\n\tsource(function(tiddler,title) {\n\t\tif(title &amp;&amp; (operator.operands.length &gt; 1)) {\n\t\t\t//Escape regexp characters if the operand is not a regular expression\n\t\t\tsearchTerm = isRegExp ? operator.operand : $tw.utils.escapeRegExp(operator.operand);\n\t\t\ttry {\n\t\t\t\tregExp = new RegExp(searchTerm,flags);\n\t\t\t} catch(ex) {\n\t\t\t\treturn [\&quot;RegExp error: \&quot; + ex];\n\t\t\t}\n\t\t\tresults.push(\n\t\t\t\ttitle.replace(regExp,operator.operands[1])\n\t\t\t);\n\t\t} else {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\nexports.pad = function(source,operator,options) {\n\tvar results = [],\n\t\ttargetLength = operator.operand ? parseInt(operator.operand) : 0,\n\t\tfill = operator.operands[1] || \&quot;0\&quot;;\n\n\tsource(function(tiddler,title) {\n\t\tif(title &amp;&amp; title.length) {\n\t\t\tif(title.length &gt;= targetLength) {\n\t\t\t\tresults.push(title);\n\t\t\t} else {\n\t\t\t\tvar padString = \&quot;\&quot;,\n\t\t\t\t\tpadStringLength = targetLength - title.length;\n\t\t\t\twhile (padStringLength &gt; padString.length) {\n\t\t\t\t\tpadString += fill;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//make sure we do not exceed the specified length\n\t\t\t\tpadString = padString.slice(0,padStringLength);\n\t\t\t\tif(operator.suffix &amp;&amp; (operator.suffix === \&quot;suffix\&quot;)) {\n\t\t\t\t\ttitle = title + padString;\n\t\t\t\t} else {\n\t\t\t\t\ttitle = padString + title;\n\t\t\t\t}\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n}\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/subfilter.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/subfilter.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/subfilter.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning its operand evaluated as a filter\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.subfilter = function(source,operator,options) {\n\tvar list = options.wiki.filterTiddlers(operator.operand,options.widget,source);\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tvar results = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tif(list.indexOf(title) === -1) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t\treturn results;\n\t} else {\n\t\treturn list;\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/subtiddlerfields.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/subtiddlerfields.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/subtiddlerfields.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the fields on the selected subtiddlers of the plugin named in the operand\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.subtiddlerfields = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar subtiddler = options.wiki.getSubTiddler(operator.operand,title);\n\t\tif(subtiddler) {\n\t\t\tfor(var fieldName in subtiddler.fields) {\n\t\t\t\t$tw.utils.pushTop(results,fieldName);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/suffix.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/suffix.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/suffix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a title ends with a suffix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.suffix = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title.substr(-operator.operand.length) !== operator.operand) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title.substr(-operator.operand.length) === operator.operand) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/tag.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/tag.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/tag.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking for the presence of a tag\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.tag = function(source,operator,options) {\n\tvar results = [],indexedResults;\n\tif((operator.suffix || \&quot;\&quot;).toLowerCase() === \&quot;strict\&quot; &amp;&amp; !operator.operand) {\n\t\t// New semantics:\n\t\t// Always return copy of input if operator.operand is missing\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.push(title);\n\t\t});\n\t} else {\n\t\t// Old semantics:\n\t\tvar tiddlers;\n\t\tif(operator.prefix === \&quot;!\&quot;) {\n\t\t\t// Returns a copy of the input if operator.operand is missing\n\t\t\ttiddlers = options.wiki.getTiddlersWithTag(operator.operand);\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddlers.indexOf(title) === -1) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\t// Returns empty results if operator.operand is missing\n\t\t\tif(source.byTag) {\n\t\t\t\tindexedResults = source.byTag(operator.operand);\n\t\t\t\tif(indexedResults) {\n\t\t\t\t\treturn indexedResults;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttiddlers = options.wiki.getTiddlersWithTag(operator.operand);\n\t\t\t\tsource(function(tiddler,title) {\n\t\t\t\t\tif(tiddlers.indexOf(title) !== -1) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tresults = options.wiki.sortByList(results,operator.operand);\n\t\t\t}\n\t\t}\t\t\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/tagging.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/tagging.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/tagging.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning all tiddlers that are tagged with the selected tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.tagging = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t$tw.utils.pushTop(results,options.wiki.getTiddlersWithTag(title));\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/tags.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/tags.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/tags.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning all the tags of the selected tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.tags = function(source,operator,options) {\n\tvar tags = {};\n\tsource(function(tiddler,title) {\n\t\tvar t, length;\n\t\tif(tiddler &amp;&amp; tiddler.fields.tags) {\n\t\t\tfor(t=0, length=tiddler.fields.tags.length; t&lt;length; t++) {\n\t\t\t\ttags[tiddler.fields.tags[t]] = true;\n\t\t\t}\n\t\t}\n\t});\n\treturn Object.keys(tags);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/then.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/then.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/then.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing any titles with a constant\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.then = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(operator.operand);\n\t});\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/title.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/title.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/title.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for comparing title fields for equality\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.title = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler &amp;&amp; tiddler.fields.title !== operator.operand) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tresults.push(operator.operand);\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/untagged.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/untagged.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/untagged.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning all the selected tiddlers that are untagged\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.untagged = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \&quot;!\&quot;) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler &amp;&amp; $tw.utils.isArray(tiddler.fields.tags) &amp;&amp; tiddler.fields.tags.length &gt; 0) {\n\t\t\t\t$tw.utils.pushTop(results,title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!tiddler || !tiddler.hasField(\&quot;tags\&quot;) || ($tw.utils.isArray(tiddler.fields.tags) &amp;&amp; tiddler.fields.tags.length === 0)) {\n\t\t\t\t$tw.utils.pushTop(results,title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/variables.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/variables.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/variables.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the active variables\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.variables = function(source,operator,options) {\n\tvar names = [];\n\tfor(var variable in options.widget.variables) {\n\t\tnames.push(variable);\n\t}\n\treturn names.sort();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/wikiparserrules.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/wikiparserrules.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/wikiparserrules.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the wiki parser rules in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.wikiparserrules = function(source,operator,options) {\n\tvar results = [],\n\t\toperand = operator.operand;\n\t$tw.utils.each($tw.modules.types.wikirule,function(mod) {\n\t\tvar exp = mod.exports;\n\t\tif(!operand || exp.types[operand]) {\n\t\t\tresults.push(exp.name);\n\t\t}\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters/x-listops.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters/x-listops.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/x-listops.js\ntype: application/javascript\nmodule-type: filteroperator\n\nExtended filter operators to manipulate the current list.\n\n\\*/\n(function () {\n\n\t/*jslint node: true, browser: true */\n\t/*global $tw: false */\n\t\&quot;use strict\&quot;;\n\n\t/*\n\tFetch titles from the current list\n\t*/\n\tvar prepare_results = function (source) {\n\tvar results = [];\n\t\tsource(function (tiddler, title) {\n\t\t\tresults.push(title);\n\t\t});\n\t\treturn results;\n\t};\n\n\t/*\n\tMoves a number of items from the tail of the current list before the item named in the operand\n\t*/\n\texports.putbefore = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn (index === -1) ?\n\t\t\tresults.slice(0, -1) :\n\t\t\tresults.slice(0, index).concat(results.slice(-count)).concat(results.slice(index, -count));\n\t};\n\n\t/*\n\tMoves a number of items from the tail of the current list after the item named in the operand\n\t*/\n\texports.putafter = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn (index === -1) ?\n\t\t\tresults.slice(0, -1) :\n\t\t\tresults.slice(0, index + 1).concat(results.slice(-count)).concat(results.slice(index + 1, -count));\n\t};\n\n\t/*\n\tReplaces the item named in the operand with a number of items from the tail of the current list\n\t*/\n\texports.replace = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn (index === -1) ?\n\t\t\tresults.slice(0, -count) :\n\t\t\tresults.slice(0, index).concat(results.slice(-count)).concat(results.slice(index + 1, -count));\n\t};\n\n\t/*\n\tMoves a number of items from the tail of the current list to the head of the list\n\t*/\n\texports.putfirst = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn results.slice(-count).concat(results.slice(0, -count));\n\t};\n\n\t/*\n\tMoves a number of items from the head of the current list to the tail of the list\n\t*/\n\texports.putlast = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn results.slice(count).concat(results.slice(0, count));\n\t};\n\n\t/*\n\tMoves the item named in the operand a number of places forward or backward in the list\n\t*/\n\texports.move = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1),\n\t\t\tmarker = results.splice(index, 1),\n\t\t\toffset = (index + count) &gt; 0 ? index + count : 0;\n\t\treturn results.slice(0, offset).concat(marker).concat(results.slice(offset));\n\t};\n\n\t/*\n\tReturns the items from the current list that are after the item named in the operand\n\t*/\n\texports.allafter = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand);\n\t\treturn (index === -1) ? [] :\n\t\t\t(operator.suffix) ? results.slice(index) :\n\t\t\tresults.slice(index + 1);\n\t};\n\n\t/*\n\tReturns the items from the current list that are before the item named in the operand\n\t*/\n\texports.allbefore = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand);\n\t\treturn (index === -1) ? [] :\n\t\t\t(operator.suffix) ? results.slice(0, index + 1) :\n\t\t\tresults.slice(0, index);\n\t};\n\n\t/*\n\tAppends the items listed in the operand array to the tail of the current list\n\t*/\n\texports.append = function (source, operator) {\n\t\tvar append = $tw.utils.parseStringArray(operator.operand, \&quot;true\&quot;),\n\t\t\tresults = prepare_results(source),\n\t\t\tcount = parseInt(operator.suffix) || append.length;\n\t\treturn (append.length === 0) ? results :\n\t\t\t(operator.prefix) ? results.concat(append.slice(-count)) :\n\t\t\tresults.concat(append.slice(0, count));\n\t};\n\n\t/*\n\tPrepends the items listed in the operand array to the head of the current list\n\t*/\n\texports.prepend = function (source, operator) {\n\t\tvar prepend = $tw.utils.parseStringArray(operator.operand, \&quot;true\&quot;),\n\t\t\tresults = prepare_results(source),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,prepend.length);\n\t\treturn (prepend.length === 0) ? results :\n\t\t\t(operator.prefix) ? prepend.slice(-count).concat(results) :\n\t\t\tprepend.slice(0, count).concat(results);\n\t};\n\n\t/*\n\tReturns all items from the current list except the items listed in the operand array\n\t*/\n\texports.remove = function (source, operator) {\n\t\tvar array = $tw.utils.parseStringArray(operator.operand, \&quot;true\&quot;),\n\t\t\tresults = prepare_results(source),\n\t\t\tcount = parseInt(operator.suffix) || array.length,\n\t\t\tp,\n\t\t\tlen,\n\t\t\tindex;\n\t\tlen = array.length - 1;\n\t\tfor (p = 0; p &lt; count; ++p) {\n\t\t\tif (operator.prefix) {\n\t\t\t\tindex = results.indexOf(array[len - p]);\n\t\t\t} else {\n\t\t\t\tindex = results.indexOf(array[p]);\n\t\t\t}\n\t\t\tif (index !== -1) {\n\t\t\t\tresults.splice(index, 1);\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t};\n\n\t/*\n\tReturns all items from the current list sorted in the order of the items in the operand array\n\t*/\n\texports.sortby = function (source, operator) {\n\t\tvar results = prepare_results(source);\n\t\tif (!results || results.length &lt; 2) {\n\t\t\treturn results;\n\t\t}\n\t\tvar lookup = $tw.utils.parseStringArray(operator.operand, \&quot;true\&quot;);\n\t\tresults.sort(function (a, b) {\n\t\t\treturn lookup.indexOf(a) - lookup.indexOf(b);\n\t\t});\n\t\treturn results;\n\t};\n\n\t/*\n\tRemoves all duplicate items from the current list\n\t*/\n\texports.unique = function (source, operator) {\n\t\tvar results = prepare_results(source);\n\t\tvar set = results.reduce(function (a, b) {\n\t\t\tif (a.indexOf(b) &lt; 0) {\n\t\t\t\ta.push(b);\n\t\t\t}\n\t\t\treturn a;\n\t\t}, []);\n\t\treturn set;\n\t};\n\n\tvar cycleValueInArray = function(results,operands,stepSize) {\n\t\tvar resultsIndex,\n\t\t\tstep = stepSize || 1,\n\t\t\ti = 0,\n\t\t\topLength = operands.length,\n\t\t\tnextOperandIndex;\t\t\n\t\tfor(i; i &lt; opLength; i++) {\n\t\t\tresultsIndex = results.indexOf(operands[i]);\n\t\t\tif(resultsIndex !== -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(resultsIndex !== -1) {\n\t\t\ti = i + step;\n\t\t\tnextOperandIndex = (i &lt; opLength ? i : i - opLength);\n\t\t\tif(operands.length &gt; 1) {\n\t\t\t\tresults.splice(resultsIndex,1,operands[nextOperandIndex]);\n\t\t\t} else {\n\t\t\t\tresults.splice(resultsIndex,1);\n\t\t\t}\n\t\t} else {\n\t\t\tresults.push(operands[0]);\n\t\t}\n\t\treturn results;\t\t\n\t}\n\n\t/*\n\tToggles an item in the current list.\n\t*/\t\n\texports.toggle = function(source,operator) {\n\t\treturn cycleValueInArray(prepare_results(source),operator.operands);\n\t}\n\n\texports.cycle = function(source,operator) {\n\t\tvar results = prepare_results(source),\n\t\t\toperands = (operator.operand.length ? $tw.utils.parseStringArray(operator.operand, \&quot;true\&quot;) : [\&quot;\&quot;]),\n\t\t\tstep = $tw.utils.getInt(operator.operands[1]||\&quot;\&quot;,1);\n\t\tif(step &lt; 0) {\n\t\t\toperands.reverse();\n\t\t\tstep = Math.abs(step);\n\t\t}\t\n\t\treturn cycleValueInArray(results,operands,step);\n\t}\n\t\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;
},
&quot;$:/core/modules/filters.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/filters.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters.js\ntype: application/javascript\nmodule-type: wikimethod\n\nAdds tiddler filtering methods to the $tw.Wiki object.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nParses an operation (i.e. a run) within a filter string\n\toperators: Array of array of operator nodes into which results should be inserted\n\tfilterString: filter string\n\tp: start position within the string\nReturns the new start position, after the parsed operation\n*/\nfunction parseFilterOperation(operators,filterString,p) {\n\tvar nextBracketPos, operator;\n\t// Skip the starting square bracket\n\tif(filterString.charAt(p++) !== \&quot;[\&quot;) {\n\t\tthrow \&quot;Missing [ in filter expression\&quot;;\n\t}\n\t// Process each operator in turn\n\tdo {\n\t\toperator = {};\n\t\t// Check for an operator prefix\n\t\tif(filterString.charAt(p) === \&quot;!\&quot;) {\n\t\t\toperator.prefix = filterString.charAt(p++);\n\t\t}\n\t\t// Get the operator name\n\t\tnextBracketPos = filterString.substring(p).search(/[\\[\\{&lt;\\/]/);\n\t\tif(nextBracketPos === -1) {\n\t\t\tthrow \&quot;Missing [ in filter expression\&quot;;\n\t\t}\n\t\tnextBracketPos += p;\n\t\tvar bracket = filterString.charAt(nextBracketPos);\n\t\toperator.operator = filterString.substring(p,nextBracketPos);\n\t\t// Any suffix?\n\t\tvar colon = operator.operator.indexOf(':');\n\t\tif(colon &gt; -1) {\n\t\t\t// The raw suffix for older filters\n\t\t\toperator.suffix = operator.operator.substring(colon + 1);\n\t\t\toperator.operator = operator.operator.substring(0,colon) || \&quot;field\&quot;;\n\t\t\t// The processed suffix for newer filters\n\t\t\toperator.suffixes = [];\n\t\t\t$tw.utils.each(operator.suffix.split(\&quot;:\&quot;),function(subsuffix) {\n\t\t\t\toperator.suffixes.push([]);\n\t\t\t\t$tw.utils.each(subsuffix.split(\&quot;,\&quot;),function(entry) {\n\t\t\t\t\tentry = $tw.utils.trim(entry);\n\t\t\t\t\tif(entry) {\n\t\t\t\t\t\toperator.suffixes[operator.suffixes.length - 1].push(entry); \n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t\t// Empty operator means: title\n\t\telse if(operator.operator === \&quot;\&quot;) {\n\t\t\toperator.operator = \&quot;title\&quot;;\n\t\t}\n\t\toperator.operands = [];\n\t\tfunction parseOperand(bracketType) {\n\t\t\tvar operand = {};\n\t\t\tswitch (bracketType) {\n\t\t\t\tcase \&quot;{\&quot;: // Curly brackets\n\t\t\t\t\toperand.indirect = true;\n\t\t\t\t\tnextBracketPos = filterString.indexOf(\&quot;}\&quot;,p);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \&quot;[\&quot;: // Square brackets\n\t\t\t\t\tnextBracketPos = filterString.indexOf(\&quot;]\&quot;,p);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \&quot;&lt;\&quot;: // Angle brackets\n\t\t\t\t\toperand.variable = true;\n\t\t\t\t\tnextBracketPos = filterString.indexOf(\&quot;&gt;\&quot;,p);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \&quot;/\&quot;: // regexp brackets\n\t\t\t\t\tvar rex = /^((?:[^\\\\\\/]*|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g,\n\t\t\t\t\t\trexMatch = rex.exec(filterString.substring(p));\n\t\t\t\t\tif(rexMatch) {\n\t\t\t\t\t\toperator.regexp = new RegExp(rexMatch[1], rexMatch[2]);\n\t// DEPRECATION WARNING\n\tconsole.log(\&quot;WARNING: Filter\&quot;,operator.operator,\&quot;has a deprecated regexp operand\&quot;,operator.regexp);\n\t\t\t\t\t\tnextBracketPos = p + rex.lastIndex - 1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthrow \&quot;Unterminated regular expression in filter expression\&quot;;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(nextBracketPos === -1) {\n\t\t\t\tthrow \&quot;Missing closing bracket in filter expression\&quot;;\n\t\t\t}\n\t\t\tif(!operator.regexp) {\n\t\t\t\toperand.text = filterString.substring(p,nextBracketPos);\n\t\t\t\toperator.operands.push(operand);\n\t\t\t}\n\t\t\tp = nextBracketPos + 1;\n\t\t}\n\t\t\n\t\tp = nextBracketPos + 1;\n\t\tparseOperand(bracket);\n\t\t\n\t\t// Check for multiple operands\n\t\twhile(filterString.charAt(p) === \&quot;,\&quot;) {\n\t\t\tp++;\n\t\t\tif(/^[\\[\\{&lt;\\/]/.test(filterString.substring(p))) {\n\t\t\t\tnextBracketPos = p;\n\t\t\t\tp++;\n\t\t\t\tparseOperand(filterString.charAt(nextBracketPos));\n\t\t\t} else {\n\t\t\t\tthrow \&quot;Missing [ in filter expression\&quot;;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Push this operator\n\t\toperators.push(operator);\n\t} while(filterString.charAt(p) !== \&quot;]\&quot;);\n\t// Skip the ending square bracket\n\tif(filterString.charAt(p++) !== \&quot;]\&quot;) {\n\t\tthrow \&quot;Missing ] in filter expression\&quot;;\n\t}\n\t// Return the parsing position\n\treturn p;\n}\n\n/*\nParse a filter string\n*/\nexports.parseFilter = function(filterString) {\n\tfilterString = filterString || \&quot;\&quot;;\n\tvar results = [], // Array of arrays of operator nodes {operator:,operand:}\n\t\tp = 0, // Current position in the filter string\n\t\tmatch;\n\tvar whitespaceRegExp = /(\\s+)/mg,\n\t\toperandRegExp = /((?:\\+|\\-|~|=|\\:(\\w+))?)(?:(\\[)|(?:\&quot;([^\&quot;]*)\&quot;)|(?:'([^']*)')|([^\\s\\[\\]]+))/mg;\n\twhile(p &lt; filterString.length) {\n\t\t// Skip any whitespace\n\t\twhitespaceRegExp.lastIndex = p;\n\t\tmatch = whitespaceRegExp.exec(filterString);\n\t\tif(match &amp;&amp; match.index === p) {\n\t\t\tp = p + match[0].length;\n\t\t}\n\t\t// Match the start of the operation\n\t\tif(p &lt; filterString.length) {\n\t\t\toperandRegExp.lastIndex = p;\n\t\t\tmatch = operandRegExp.exec(filterString);\n\t\t\tif(!match || match.index !== p) {\n\t\t\t\tthrow $tw.language.getString(\&quot;Error/FilterSyntax\&quot;);\n\t\t\t}\n\t\t\tvar operation = {\n\t\t\t\tprefix: \&quot;\&quot;,\n\t\t\t\toperators: []\n\t\t\t};\n\t\t\tif(match[1]) {\n\t\t\t\toperation.prefix = match[1];\n\t\t\t\tp = p + operation.prefix.length;\n\t\t\t\tif(match[2]) {\n\t\t\t\t\toperation.namedPrefix = match[2];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(match[3]) { // Opening square bracket\n\t\t\t\tp = parseFilterOperation(operation.operators,filterString,p);\n\t\t\t} else {\n\t\t\t\tp = match.index + match[0].length;\n\t\t\t}\n\t\t\tif(match[4] || match[5] || match[6]) { // Double quoted string, single quoted string or unquoted title\n\t\t\t\toperation.operators.push(\n\t\t\t\t\t{operator: \&quot;title\&quot;, operands: [{text: match[4] || match[5] || match[6]}]}\n\t\t\t\t);\n\t\t\t}\n\t\t\tresults.push(operation);\n\t\t}\n\t}\n\treturn results;\n};\n\nexports.getFilterOperators = function() {\n\tif(!this.filterOperators) {\n\t\t$tw.Wiki.prototype.filterOperators = {};\n\t\t$tw.modules.applyMethods(\&quot;filteroperator\&quot;,this.filterOperators);\n\t}\n\treturn this.filterOperators;\n};\n\nexports.getFilterRunPrefixes = function() {\n\tif(!this.filterRunPrefixes) {\n\t\t$tw.Wiki.prototype.filterRunPrefixes = {};\n\t\t$tw.modules.applyMethods(\&quot;filterrunprefix\&quot;,this.filterRunPrefixes);\n\t}\n\treturn this.filterRunPrefixes;\n}\n\nexports.filterTiddlers = function(filterString,widget,source) {\n\tvar fn = this.compileFilter(filterString);\n\treturn fn.call(this,source,widget);\n};\n\n/*\nCompile a filter into a function with the signature fn(source,widget) where:\nsource: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)\nwidget: an optional widget node for retrieving the current tiddler etc.\n*/\nexports.compileFilter = function(filterString) {\n\tvar filterParseTree;\n\ttry {\n\t\tfilterParseTree = this.parseFilter(filterString);\n\t} catch(e) {\n\t\treturn function(source,widget) {\n\t\t\treturn [$tw.language.getString(\&quot;Error/Filter\&quot;) + \&quot;: \&quot; + e];\n\t\t};\n\t}\n\t// Get the hashmap of filter operator functions\n\tvar filterOperators = this.getFilterOperators();\n\t// Assemble array of functions, one for each operation\n\tvar operationFunctions = [];\n\t// Step through the operations\n\tvar self = this;\n\t$tw.utils.each(filterParseTree,function(operation) {\n\t\t// Create a function for the chain of operators in the operation\n\t\tvar operationSubFunction = function(source,widget) {\n\t\t\tvar accumulator = source,\n\t\t\t\tresults = [],\n\t\t\t\tcurrTiddlerTitle = widget &amp;&amp; widget.getVariable(\&quot;currentTiddler\&quot;);\n\t\t\t$tw.utils.each(operation.operators,function(operator) {\n\t\t\t\tvar operands = [],\n\t\t\t\t\toperatorFunction;\n\t\t\t\tif(!operator.operator) {\n\t\t\t\t\toperatorFunction = filterOperators.title;\n\t\t\t\t} else if(!filterOperators[operator.operator]) {\n\t\t\t\t\toperatorFunction = filterOperators.field;\n\t\t\t\t} else {\n\t\t\t\t\toperatorFunction = filterOperators[operator.operator];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$tw.utils.each(operator.operands,function(operand) {\n\t\t\t\t\tif(operand.indirect) {\n\t\t\t\t\t\toperand.value = self.getTextReference(operand.text,\&quot;\&quot;,currTiddlerTitle);\n\t\t\t\t\t} else if(operand.variable) {\n\t\t\t\t\t\toperand.value = widget.getVariable(operand.text,{defaultValue: \&quot;\&quot;});\n\t\t\t\t\t} else {\n\t\t\t\t\t\toperand.value = operand.text;\n\t\t\t\t\t}\n\t\t\t\t\toperands.push(operand.value);\n\t\t\t\t});\n\n\t\t\t\t// Invoke the appropriate filteroperator module\n\t\t\t\tresults = operatorFunction(accumulator,{\n\t\t\t\t\t\t\toperator: operator.operator,\n\t\t\t\t\t\t\toperand: operands.length &gt; 0 ? operands[0] : undefined,\n\t\t\t\t\t\t\toperands: operands,\n\t\t\t\t\t\t\tprefix: operator.prefix,\n\t\t\t\t\t\t\tsuffix: operator.suffix,\n\t\t\t\t\t\t\tsuffixes: operator.suffixes,\n\t\t\t\t\t\t\tregexp: operator.regexp\n\t\t\t\t\t\t},{\n\t\t\t\t\t\t\twiki: self,\n\t\t\t\t\t\t\twidget: widget\n\t\t\t\t\t\t});\n\t\t\t\tif($tw.utils.isArray(results)) {\n\t\t\t\t\taccumulator = self.makeTiddlerIterator(results);\n\t\t\t\t} else {\n\t\t\t\t\taccumulator = results;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif($tw.utils.isArray(results)) {\n\t\t\t\treturn results;\n\t\t\t} else {\n\t\t\t\tvar resultArray = [];\n\t\t\t\tresults(function(tiddler,title) {\n\t\t\t\t\tresultArray.push(title);\n\t\t\t\t});\n\t\t\t\treturn resultArray;\n\t\t\t}\n\t\t};\n\t\tvar filterRunPrefixes = self.getFilterRunPrefixes();\n\t\t// Wrap the operator functions in a wrapper function that depends on the prefix\n\t\toperationFunctions.push((function() {\n\t\t\tvar options = {wiki: self};\n\t\t\tswitch(operation.prefix || \&quot;\&quot;) {\n\t\t\t\tcase \&quot;\&quot;: // No prefix means that the operation is unioned into the result\n\t\t\t\t\treturn filterRunPrefixes[\&quot;or\&quot;](operationSubFunction, options);\n\t\t\t\tcase \&quot;=\&quot;: // The results of the operation are pushed into the result without deduplication\n\t\t\t\t\treturn filterRunPrefixes[\&quot;all\&quot;](operationSubFunction, options);\n\t\t\t\tcase \&quot;-\&quot;: // The results of this operation are removed from the main result\n\t\t\t\t\treturn filterRunPrefixes[\&quot;except\&quot;](operationSubFunction, options);\n\t\t\t\tcase \&quot;+\&quot;: // This operation is applied to the main results so far\n\t\t\t\t\treturn filterRunPrefixes[\&quot;and\&quot;](operationSubFunction, options);\n\t\t\t\tcase \&quot;~\&quot;: // This operation is unioned into the result only if the main result so far is empty\n\t\t\t\t\treturn filterRunPrefixes[\&quot;else\&quot;](operationSubFunction, options);\n\t\t\t\tdefault: \n\t\t\t\t\tif(operation.namedPrefix &amp;&amp; filterRunPrefixes[operation.namedPrefix]) {\n\t\t\t\t\t\treturn filterRunPrefixes[operation.namedPrefix](operationSubFunction, options);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn function(results,source,widget) {\n\t\t\t\t\t\t\tresults.clear();\n\t\t\t\t\t\t\tresults.push($tw.language.getString(\&quot;Error/FilterRunPrefix\&quot;));\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t}\n\t\t})());\n\t});\n\t// Return a function that applies the operations to a source iterator of tiddler titles\n\treturn $tw.perf.measure(\&quot;filter: \&quot; + filterString,function filterFunction(source,widget) {\n\t\tif(!source) {\n\t\t\tsource = self.each;\n\t\t} else if(typeof source === \&quot;object\&quot;) { // Array or hashmap\n\t\t\tsource = self.makeTiddlerIterator(source);\n\t\t}\n\t\tvar results = new $tw.utils.LinkedList();\n\t\t$tw.utils.each(operationFunctions,function(operationFunction) {\n\t\t\toperationFunction(results,source,widget);\n\t\t});\n\t\treturn results.toArray();\n\t});\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikimethod&quot;
},
&quot;$:/core/modules/indexers/backlinks-indexer.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/indexers/backlinks-indexer.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/indexers/backlinks-indexer.js\ntype: application/javascript\nmodule-type: indexer\n\nIndexes the tiddlers' backlinks\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global modules: false */\n\&quot;use strict\&quot;;\n\n\nfunction BacklinksIndexer(wiki) {\n\tthis.wiki = wiki;\n}\n\nBacklinksIndexer.prototype.init = function() {\n\tthis.index = null;\n}\n\nBacklinksIndexer.prototype.rebuild = function() {\n\tthis.index = null;\n}\n\nBacklinksIndexer.prototype._getLinks = function(tiddler) {\n\tvar parser = this.wiki.parseText(tiddler.fields.type, tiddler.fields.text, {});\n\tif(parser) {\n\t\treturn this.wiki.extractLinks(parser.tree);\n\t}\n\treturn [];\n}\n\nBacklinksIndexer.prototype.update = function(updateDescriptor) {\n\tif(!this.index) {\n\t\treturn;\n\t}\n\tvar newLinks = [],\n\t oldLinks = [],\n\t self = this;\n\tif(updateDescriptor.old.exists) {\n\t\toldLinks = this._getLinks(updateDescriptor.old.tiddler);\n\t}\n\tif(updateDescriptor.new.exists) {\n\t\tnewLinks = this._getLinks(updateDescriptor.new.tiddler);\n\t}\n\n\t$tw.utils.each(oldLinks,function(link) {\n\t\tif(self.index[link]) {\n\t\t\tdelete self.index[link][updateDescriptor.old.tiddler.fields.title];\n\t\t}\n\t});\n\t$tw.utils.each(newLinks,function(link) {\n\t\tif(!self.index[link]) {\n\t\t\tself.index[link] = Object.create(null);\n\t\t}\n\t\tself.index[link][updateDescriptor.new.tiddler.fields.title] = true;\n\t});\n}\n\nBacklinksIndexer.prototype.lookup = function(title) {\n\tif(!this.index) {\n\t\tthis.index = Object.create(null);\n\t\tvar self = this;\n\t\tthis.wiki.forEachTiddler(function(title,tiddler) {\n\t\t\tvar links = self._getLinks(tiddler);\n\t\t\t$tw.utils.each(links, function(link) {\n\t\t\t\tif(!self.index[link]) {\n\t\t\t\t\tself.index[link] = Object.create(null);\n\t\t\t\t}\n\t\t\t\tself.index[link][title] = true;\n\t\t\t});\n\t\t});\n\t}\n\tif(this.index[title]) {\n\t\treturn Object.keys(this.index[title]);\n\t} else {\n\t\treturn [];\n\t}\n}\n\nexports.BacklinksIndexer = BacklinksIndexer;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;indexer&quot;
},
&quot;$:/core/modules/indexers/field-indexer.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/indexers/field-indexer.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/indexers/field-indexer.js\ntype: application/javascript\nmodule-type: indexer\n\nIndexes the tiddlers with each field value\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global modules: false */\n\&quot;use strict\&quot;;\n\nvar DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH = 128;\n\nfunction FieldIndexer(wiki) {\n\tthis.wiki = wiki;\n}\n\nFieldIndexer.prototype.init = function() {\n\tthis.index = null;\n\tthis.maxIndexedValueLength = DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH;\n\tthis.addIndexMethods();\n}\n\n// Provided for testing\nFieldIndexer.prototype.setMaxIndexedValueLength = function(length) {\n\tthis.index = null;\n\tthis.maxIndexedValueLength = length;\n};\n\nFieldIndexer.prototype.addIndexMethods = function() {\n\tvar self = this;\n\tthis.wiki.each.byField = function(name,value) {\n\t\tvar titles = self.wiki.allTitles(),\n\t\t\tlookup = self.lookup(name,value);\n\t\treturn lookup &amp;&amp; lookup.filter(function(title) {\n\t\t\treturn titles.indexOf(title) !== -1;\n\t\t});\n\t};\n\tthis.wiki.eachShadow.byField = function(name,value) {\n\t\tvar titles = self.wiki.allShadowTitles(),\n\t\t\tlookup = self.lookup(name,value);\n\t\treturn lookup &amp;&amp; lookup.filter(function(title) {\n\t\t\treturn titles.indexOf(title) !== -1;\n\t\t});\n\t};\n\tthis.wiki.eachTiddlerPlusShadows.byField = function(name,value) {\n\t\tvar lookup = self.lookup(name,value);\n\t\treturn lookup ? lookup.slice(0) : null;\n\t};\n\tthis.wiki.eachShadowPlusTiddlers.byField = function(name,value) {\n\t\tvar lookup = self.lookup(name,value);\n\t\treturn lookup ? lookup.slice(0) : null;\n\t};\n};\n\n/*\nTear down and then rebuild the index as if all tiddlers have changed\n*/\nFieldIndexer.prototype.rebuild = function() {\n\t// Invalidate the index so that it will be rebuilt when it is next used\n\tthis.index = null;\n};\n\n/*\nBuild the index for a particular field\n*/\nFieldIndexer.prototype.buildIndexForField = function(name) {\n\tvar self = this;\n\t// Hashmap by field name of hashmap by field value of array of tiddler titles\n\tthis.index = this.index || Object.create(null);\n\tthis.index[name] = Object.create(null);\n\tvar baseIndex = this.index[name];\n\t// Update the index for each tiddler\n\tthis.wiki.eachTiddlerPlusShadows(function(tiddler,title) {\n\t\tif(name in tiddler.fields) {\n\t\t\tvar value = tiddler.getFieldString(name);\n\t\t\t// Skip any values above the maximum length\n\t\t\tif(value.length &lt; self.maxIndexedValueLength) {\n\t\t\t\tbaseIndex[value] = baseIndex[value] || [];\n\t\t\t\tbaseIndex[value].push(title);\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\nUpdate the index in the light of a tiddler value changing; note that the title must be identical. (Renames are handled as a separate delete and create)\nupdateDescriptor: {old: {tiddler: &lt;tiddler&gt;, shadow: &lt;boolean&gt;, exists: &lt;boolean&gt;},new: {tiddler: &lt;tiddler&gt;, shadow: &lt;boolean&gt;, exists: &lt;boolean&gt;}}\n*/\nFieldIndexer.prototype.update = function(updateDescriptor) {\n\tvar self = this;\n\t// Don't do anything if the index hasn't been built yet\n\tif(this.index === null) {\n\t\treturn;\n\t}\n\t// Remove the old tiddler from the index\n\tif(updateDescriptor.old.tiddler) {\n\t\t$tw.utils.each(this.index,function(indexEntry,name) {\n\t\t\tif(name in updateDescriptor.old.tiddler.fields) {\n\t\t\t\tvar value = updateDescriptor.old.tiddler.getFieldString(name),\n\t\t\t\t\ttiddlerList = indexEntry[value];\n\t\t\t\tif(tiddlerList) {\n\t\t\t\t\tvar index = tiddlerList.indexOf(updateDescriptor.old.tiddler.fields.title);\n\t\t\t\t\tif(index !== -1) {\n\t\t\t\t\t\ttiddlerList.splice(index,1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\t// Add the new tiddler to the index\n\tif(updateDescriptor[\&quot;new\&quot;].tiddler) {\n\t\t$tw.utils.each(this.index,function(indexEntry,name) {\n\t\t\tif(name in updateDescriptor[\&quot;new\&quot;].tiddler.fields) {\n\t\t\t\tvar value = updateDescriptor[\&quot;new\&quot;].tiddler.getFieldString(name);\n\t\t\t\tif(value.length &lt; self.maxIndexedValueLength) {\n\t\t\t\t\tindexEntry[value] = indexEntry[value] || [];\n\t\t\t\t\tindexEntry[value].push(updateDescriptor[\&quot;new\&quot;].tiddler.fields.title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}\n};\n\n// Lookup the given field returning a list of tiddler titles\nFieldIndexer.prototype.lookup = function(name,value) {\n\t// Fail the lookup if the value is too long\n\tif(value.length &gt;= this.maxIndexedValueLength) {\n\t\treturn null;\n\t}\n\t// Update the index if it has yet to be built\n\tif(this.index === null || !this.index[name]) {\n\t\tthis.buildIndexForField(name);\n\t}\n\treturn this.index[name][value] || [];\n};\n\nexports.FieldIndexer = FieldIndexer;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;indexer&quot;
},
&quot;$:/core/modules/indexers/tag-indexer.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/indexers/tag-indexer.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/indexers/tag-indexer.js\ntype: application/javascript\nmodule-type: indexer\n\nIndexes the tiddlers with each tag\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global modules: false */\n\&quot;use strict\&quot;;\n\nfunction TagIndexer(wiki) {\n\tthis.wiki = wiki;\n}\n\nTagIndexer.prototype.init = function() {\n\tthis.subIndexers = [\n\t\tnew TagSubIndexer(this,\&quot;each\&quot;),\n\t\tnew TagSubIndexer(this,\&quot;eachShadow\&quot;),\n\t\tnew TagSubIndexer(this,\&quot;eachTiddlerPlusShadows\&quot;),\n\t\tnew TagSubIndexer(this,\&quot;eachShadowPlusTiddlers\&quot;)\n\t];\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.addIndexMethod();\n\t});\n};\n\nTagIndexer.prototype.rebuild = function() {\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.rebuild();\n\t});\n};\n\nTagIndexer.prototype.update = function(updateDescriptor) {\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.update(updateDescriptor);\n\t});\n};\n\nfunction TagSubIndexer(indexer,iteratorMethod) {\n\tthis.indexer = indexer;\n\tthis.iteratorMethod = iteratorMethod;\n\tthis.index = null; // Hashmap of tag title to {isSorted: bool, titles: [array]} or null if not yet initialised\n}\n\nTagSubIndexer.prototype.addIndexMethod = function() {\n\tvar self = this;\n\tthis.indexer.wiki[this.iteratorMethod].byTag = function(tag) {\n\t\treturn self.lookup(tag).slice(0);\n\t};\n};\n\nTagSubIndexer.prototype.rebuild = function() {\n\tvar self = this;\n\t// Hashmap by tag of array of {isSorted:, titles:[]}\n\tthis.index = Object.create(null);\n\t// Add all the tags\n\tthis.indexer.wiki[this.iteratorMethod](function(tiddler,title) {\n\t\t$tw.utils.each(tiddler.fields.tags,function(tag) {\n\t\t\tif(!self.index[tag]) {\n\t\t\t\tself.index[tag] = {isSorted: false, titles: [title]};\n\t\t\t} else {\n\t\t\t\tself.index[tag].titles.push(title);\n\t\t\t}\n\t\t});\t\t\n\t});\n};\n\nTagSubIndexer.prototype.update = function(updateDescriptor) {\n\tthis.index = null;\n};\n\nTagSubIndexer.prototype.lookup = function(tag) {\n\t// Update the index if it has yet to be built\n\tif(this.index === null) {\n\t\tthis.rebuild();\n\t}\n\tvar indexRecord = this.index[tag];\n\tif(indexRecord) {\n\t\tif(!indexRecord.isSorted) {\n\t\t\tif(this.indexer.wiki.sortByList) {\n\t\t\t\tindexRecord.titles = this.indexer.wiki.sortByList(indexRecord.titles,tag);\n\t\t\t}\t\t\t\n\t\t\tindexRecord.isSorted = true;\n\t\t}\n\t\treturn indexRecord.titles;\n\t} else {\n\t\treturn [];\n\t}\n};\n\n\nexports.TagIndexer = TagIndexer;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;indexer&quot;
},
&quot;$:/core/modules/info/platform.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/info/platform.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/info/platform.js\ntype: application/javascript\nmodule-type: info\n\nInitialise basic platform $:/info/ tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.getInfoTiddlerFields = function(updateInfoTiddlersCallback) {\n\tvar mapBoolean = function(value) {return value ? \&quot;yes\&quot; : \&quot;no\&quot;;},\n\t\tinfoTiddlerFields = [];\n\t// Basics\n\tinfoTiddlerFields.push({title: \&quot;$:/info/browser\&quot;, text: mapBoolean(!!$tw.browser)});\n\tinfoTiddlerFields.push({title: \&quot;$:/info/node\&quot;, text: mapBoolean(!!$tw.node)});\n\tinfoTiddlerFields.push({title: \&quot;$:/info/startup-timestamp\&quot;, text: $tw.utils.stringifyDate(new Date())});\n\tif($tw.browser) {\n\t\t// Document location\n\t\tvar setLocationProperty = function(name,value) {\n\t\t\t\tinfoTiddlerFields.push({title: \&quot;$:/info/url/\&quot; + name, text: value});\t\t\t\n\t\t\t},\n\t\t\tlocation = document.location;\n\t\tsetLocationProperty(\&quot;full\&quot;, (location.toString()).split(\&quot;#\&quot;)[0]);\n\t\tsetLocationProperty(\&quot;host\&quot;, location.host);\n\t\tsetLocationProperty(\&quot;hostname\&quot;, location.hostname);\n\t\tsetLocationProperty(\&quot;protocol\&quot;, location.protocol);\n\t\tsetLocationProperty(\&quot;port\&quot;, location.port);\n\t\tsetLocationProperty(\&quot;pathname\&quot;, location.pathname);\n\t\tsetLocationProperty(\&quot;search\&quot;, location.search);\n\t\tsetLocationProperty(\&quot;origin\&quot;, location.origin);\n\t\t// Screen size\n\t\tinfoTiddlerFields.push({title: \&quot;$:/info/browser/screen/width\&quot;, text: window.screen.width.toString()});\n\t\tinfoTiddlerFields.push({title: \&quot;$:/info/browser/screen/height\&quot;, text: window.screen.height.toString()});\n \t\t// Dark mode through event listener on MediaQueryList\n \t\tvar mqList = window.matchMedia(\&quot;(prefers-color-scheme: dark)\&quot;),\n \t\t\tgetDarkModeTiddler = function() {return {title: \&quot;$:/info/darkmode\&quot;, text: mqList.matches ? \&quot;yes\&quot; : \&quot;no\&quot;};};\n \t\tinfoTiddlerFields.push(getDarkModeTiddler());\n \t\tmqList.addListener(function(event) {\n \t\t\tupdateInfoTiddlersCallback([getDarkModeTiddler()]);\n \t\t});\n\t\t// Language\n\t\tinfoTiddlerFields.push({title: \&quot;$:/info/browser/language\&quot;, text: navigator.language || \&quot;\&quot;});\n\t}\n\treturn infoTiddlerFields;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;info&quot;
},
&quot;$:/core/modules/keyboard.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/keyboard.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/keyboard.js\ntype: application/javascript\nmodule-type: global\n\nKeyboard handling utilities\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar namedKeys = {\n\t\&quot;cancel\&quot;: 3,\n\t\&quot;help\&quot;: 6,\n\t\&quot;backspace\&quot;: 8,\n\t\&quot;tab\&quot;: 9,\n\t\&quot;clear\&quot;: 12,\n\t\&quot;return\&quot;: 13,\n\t\&quot;enter\&quot;: 13,\n\t\&quot;pause\&quot;: 19,\n\t\&quot;escape\&quot;: 27,\n\t\&quot;space\&quot;: 32,\n\t\&quot;page_up\&quot;: 33,\n\t\&quot;page_down\&quot;: 34,\n\t\&quot;end\&quot;: 35,\n\t\&quot;home\&quot;: 36,\n\t\&quot;left\&quot;: 37,\n\t\&quot;up\&quot;: 38,\n\t\&quot;right\&quot;: 39,\n\t\&quot;down\&quot;: 40,\n\t\&quot;printscreen\&quot;: 44,\n\t\&quot;insert\&quot;: 45,\n\t\&quot;delete\&quot;: 46,\n\t\&quot;0\&quot;: 48,\n\t\&quot;1\&quot;: 49,\n\t\&quot;2\&quot;: 50,\n\t\&quot;3\&quot;: 51,\n\t\&quot;4\&quot;: 52,\n\t\&quot;5\&quot;: 53,\n\t\&quot;6\&quot;: 54,\n\t\&quot;7\&quot;: 55,\n\t\&quot;8\&quot;: 56,\n\t\&quot;9\&quot;: 57,\n\t\&quot;firefoxsemicolon\&quot;: 59,\n\t\&quot;firefoxequals\&quot;: 61,\n\t\&quot;a\&quot;: 65,\n\t\&quot;b\&quot;: 66,\n\t\&quot;c\&quot;: 67,\n\t\&quot;d\&quot;: 68,\n\t\&quot;e\&quot;: 69,\n\t\&quot;f\&quot;: 70,\n\t\&quot;g\&quot;: 71,\n\t\&quot;h\&quot;: 72,\n\t\&quot;i\&quot;: 73,\n\t\&quot;j\&quot;: 74,\n\t\&quot;k\&quot;: 75,\n\t\&quot;l\&quot;: 76,\n\t\&quot;m\&quot;: 77,\n\t\&quot;n\&quot;: 78,\n\t\&quot;o\&quot;: 79,\n\t\&quot;p\&quot;: 80,\n\t\&quot;q\&quot;: 81,\n\t\&quot;r\&quot;: 82,\n\t\&quot;s\&quot;: 83,\n\t\&quot;t\&quot;: 84,\n\t\&quot;u\&quot;: 85,\n\t\&quot;v\&quot;: 86,\n\t\&quot;w\&quot;: 87,\n\t\&quot;x\&quot;: 88,\n\t\&quot;y\&quot;: 89,\n\t\&quot;z\&quot;: 90,\n\t\&quot;numpad0\&quot;: 96,\n\t\&quot;numpad1\&quot;: 97,\n\t\&quot;numpad2\&quot;: 98,\n\t\&quot;numpad3\&quot;: 99,\n\t\&quot;numpad4\&quot;: 100,\n\t\&quot;numpad5\&quot;: 101,\n\t\&quot;numpad6\&quot;: 102,\n\t\&quot;numpad7\&quot;: 103,\n\t\&quot;numpad8\&quot;: 104,\n\t\&quot;numpad9\&quot;: 105,\n\t\&quot;multiply\&quot;: 106,\n\t\&quot;add\&quot;: 107,\n\t\&quot;separator\&quot;: 108,\n\t\&quot;subtract\&quot;: 109,\n\t\&quot;decimal\&quot;: 110,\n\t\&quot;divide\&quot;: 111,\n\t\&quot;f1\&quot;: 112,\n\t\&quot;f2\&quot;: 113,\n\t\&quot;f3\&quot;: 114,\n\t\&quot;f4\&quot;: 115,\n\t\&quot;f5\&quot;: 116,\n\t\&quot;f6\&quot;: 117,\n\t\&quot;f7\&quot;: 118,\n\t\&quot;f8\&quot;: 119,\n\t\&quot;f9\&quot;: 120,\n\t\&quot;f10\&quot;: 121,\n\t\&quot;f11\&quot;: 122,\n\t\&quot;f12\&quot;: 123,\n\t\&quot;f13\&quot;: 124,\n\t\&quot;f14\&quot;: 125,\n\t\&quot;f15\&quot;: 126,\n\t\&quot;f16\&quot;: 127,\n\t\&quot;f17\&quot;: 128,\n\t\&quot;f18\&quot;: 129,\n\t\&quot;f19\&quot;: 130,\n\t\&quot;f20\&quot;: 131,\n\t\&quot;f21\&quot;: 132,\n\t\&quot;f22\&quot;: 133,\n\t\&quot;f23\&quot;: 134,\n\t\&quot;f24\&quot;: 135,\n\t\&quot;firefoxminus\&quot;: 173,\n\t\&quot;semicolon\&quot;: 186,\n\t\&quot;equals\&quot;: 187,\n\t\&quot;comma\&quot;: 188,\n\t\&quot;dash\&quot;: 189,\n\t\&quot;period\&quot;: 190,\n\t\&quot;slash\&quot;: 191,\n\t\&quot;backquote\&quot;: 192,\n\t\&quot;openbracket\&quot;: 219,\n\t\&quot;backslash\&quot;: 220,\n\t\&quot;closebracket\&quot;: 221,\n\t\&quot;quote\&quot;: 222\n};\n\nfunction KeyboardManager(options) {\n\tvar self = this;\n\toptions = options || \&quot;\&quot;;\n\t// Save the named key hashmap\n\tthis.namedKeys = namedKeys;\n\t// Create a reverse mapping of code to keyname\n\tthis.keyNames = [];\n\t$tw.utils.each(namedKeys,function(keyCode,name) {\n\t\tself.keyNames[keyCode] = name.substr(0,1).toUpperCase() + name.substr(1);\n\t});\n\t// Save the platform-specific name of the \&quot;meta\&quot; key\n\tthis.metaKeyName = $tw.platform.isMac ? \&quot;cmd-\&quot; : \&quot;win-\&quot;;\n\tthis.shortcutKeysList = [], // Stores the shortcut-key descriptors\n\tthis.shortcutActionList = [], // Stores the corresponding action strings\n\tthis.shortcutParsedList = []; // Stores the parsed key descriptors\n\tthis.lookupNames = [\&quot;shortcuts\&quot;];\n\tthis.lookupNames.push($tw.platform.isMac ? \&quot;shortcuts-mac\&quot; : \&quot;shortcuts-not-mac\&quot;)\n\tthis.lookupNames.push($tw.platform.isWindows ? \&quot;shortcuts-windows\&quot; : \&quot;shortcuts-not-windows\&quot;);\n\tthis.lookupNames.push($tw.platform.isLinux ? \&quot;shortcuts-linux\&quot; : \&quot;shortcuts-not-linux\&quot;);\n\tthis.updateShortcutLists(this.getShortcutTiddlerList());\n\t$tw.wiki.addEventListener(\&quot;change\&quot;,function(changes) {\n\t\tself.handleShortcutChanges(changes);\n\t});\n}\n\n/*\nReturn an array of keycodes for the modifier keys ctrl, shift, alt, meta\n*/\nKeyboardManager.prototype.getModifierKeys = function() {\n\treturn [\n\t\t16, // Shift\n\t\t17, // Ctrl\n\t\t18, // Alt\n\t\t20, // CAPS LOCK\n\t\t91, // Meta (left)\n\t\t93, // Meta (right)\n\t\t224 // Meta (Firefox)\n\t]\n};\n\n/*\nParses a key descriptor into the structure:\n{\n\tkeyCode: numeric keycode\n\tshiftKey: boolean\n\taltKey: boolean\n\tctrlKey: boolean\n\tmetaKey: boolean\n}\nKey descriptors have the following format:\n\tctrl+enter\n\tctrl+shift+alt+A\n*/\nKeyboardManager.prototype.parseKeyDescriptor = function(keyDescriptor) {\n\tvar components = keyDescriptor.split(/\\+|\\-/),\n\t\tinfo = {\n\t\t\tkeyCode: 0,\n\t\t\tshiftKey: false,\n\t\t\taltKey: false,\n\t\t\tctrlKey: false,\n\t\t\tmetaKey: false\n\t\t};\n\tfor(var t=0; t&lt;components.length; t++) {\n\t\tvar s = components[t].toLowerCase(),\n\t\t\tc = s.charCodeAt(0);\n\t\t// Look for modifier keys\n\t\tif(s === \&quot;ctrl\&quot;) {\n\t\t\tinfo.ctrlKey = true;\n\t\t} else if(s === \&quot;shift\&quot;) {\n\t\t\tinfo.shiftKey = true;\n\t\t} else if(s === \&quot;alt\&quot;) {\n\t\t\tinfo.altKey = true;\n\t\t} else if(s === \&quot;meta\&quot; || s === \&quot;cmd\&quot; || s === \&quot;win\&quot;) {\n\t\t\tinfo.metaKey = true;\n\t\t}\n\t\t// Replace named keys with their code\n\t\tif(this.namedKeys[s]) {\n\t\t\tinfo.keyCode = this.namedKeys[s];\n\t\t}\n\t}\n\tif(info.keyCode) {\n\t\treturn info;\n\t} else {\n\t\treturn null;\n\t}\n};\n\n/*\nParse a list of key descriptors into an array of keyInfo objects. The key descriptors can be passed as an array of strings or a space separated string\n*/\nKeyboardManager.prototype.parseKeyDescriptors = function(keyDescriptors,options) {\n\tvar self = this;\n\toptions = options || {};\n\toptions.stack = options.stack || [];\n\tvar wiki = options.wiki || $tw.wiki;\n\tif(typeof keyDescriptors === \&quot;string\&quot; &amp;&amp; keyDescriptors === \&quot;\&quot;) {\n\t\treturn [];\n\t}\n\tif(!$tw.utils.isArray(keyDescriptors)) {\n\t\tkeyDescriptors = keyDescriptors.split(\&quot; \&quot;);\n\t}\n\tvar result = [];\n\t$tw.utils.each(keyDescriptors,function(keyDescriptor) {\n\t\t// Look for a named shortcut\n\t\tif(keyDescriptor.substr(0,2) === \&quot;((\&quot; &amp;&amp; keyDescriptor.substr(-2,2) === \&quot;))\&quot;) {\n\t\t\tif(options.stack.indexOf(keyDescriptor) === -1) {\n\t\t\t\toptions.stack.push(keyDescriptor);\n\t\t\t\tvar name = keyDescriptor.substring(2,keyDescriptor.length - 2),\n\t\t\t\t\tlookupName = function(configName) {\n\t\t\t\t\t\tvar keyDescriptors = wiki.getTiddlerText(\&quot;$:/config/\&quot; + configName + \&quot;/\&quot; + name);\n\t\t\t\t\t\tif(keyDescriptors) {\n\t\t\t\t\t\t\tresult.push.apply(result,self.parseKeyDescriptors(keyDescriptors,options));\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t$tw.utils.each(self.lookupNames,function(platformDescriptor) {\n\t\t\t\t\tlookupName(platformDescriptor);\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tresult.push(self.parseKeyDescriptor(keyDescriptor));\n\t\t}\n\t});\n\treturn result;\n};\n\nKeyboardManager.prototype.getPrintableShortcuts = function(keyInfoArray) {\n\tvar self = this,\n\t\tresult = [];\n\t$tw.utils.each(keyInfoArray,function(keyInfo) {\n\t\tif(keyInfo) {\n\t\t\tresult.push((keyInfo.ctrlKey ? \&quot;ctrl-\&quot; : \&quot;\&quot;) + \n\t\t\t\t (keyInfo.shiftKey ? \&quot;shift-\&quot; : \&quot;\&quot;) + \n\t\t\t\t (keyInfo.altKey ? \&quot;alt-\&quot; : \&quot;\&quot;) + \n\t\t\t\t (keyInfo.metaKey ? self.metaKeyName : \&quot;\&quot;) + \n\t\t\t\t (self.keyNames[keyInfo.keyCode]));\n\t\t}\n\t});\n\treturn result;\n}\n\nKeyboardManager.prototype.checkKeyDescriptor = function(event,keyInfo) {\n\treturn keyInfo &amp;&amp;\n\t\t\tevent.keyCode === keyInfo.keyCode &amp;&amp; \n\t\t\tevent.shiftKey === keyInfo.shiftKey &amp;&amp; \n\t\t\tevent.altKey === keyInfo.altKey &amp;&amp; \n\t\t\tevent.ctrlKey === keyInfo.ctrlKey &amp;&amp; \n\t\t\tevent.metaKey === keyInfo.metaKey;\n};\n\nKeyboardManager.prototype.checkKeyDescriptors = function(event,keyInfoArray) {\n\tfor(var t=0; t&lt;keyInfoArray.length; t++) {\n\t\tif(this.checkKeyDescriptor(event,keyInfoArray[t])) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\nKeyboardManager.prototype.getEventModifierKeyDescriptor = function(event) {\n\treturn event.ctrlKey &amp;&amp; !event.shiftKey &amp;&amp; !event.altKey &amp;&amp; !event.metaKey ? \&quot;ctrl\&quot; : \n\t\tevent.shiftKey &amp;&amp; !event.ctrlKey &amp;&amp; !event.altKey &amp;&amp; !event.metaKey ? \&quot;shift\&quot; : \n\t\tevent.ctrlKey &amp;&amp; event.shiftKey &amp;&amp; !event.altKey &amp;&amp; !event.metaKey ? \&quot;ctrl-shift\&quot; : \n\t\tevent.altKey &amp;&amp; !event.shiftKey &amp;&amp; !event.ctrlKey &amp;&amp; !event.metaKey ? \&quot;alt\&quot; : \n\t\tevent.altKey &amp;&amp; event.shiftKey &amp;&amp; !event.ctrlKey &amp;&amp; !event.metaKey ? \&quot;alt-shift\&quot; : \n\t\tevent.altKey &amp;&amp; event.ctrlKey &amp;&amp; !event.shiftKey &amp;&amp; !event.metaKey ? \&quot;ctrl-alt\&quot; : \n\t\tevent.altKey &amp;&amp; event.shiftKey &amp;&amp; event.ctrlKey &amp;&amp; !event.metaKey ? \&quot;ctrl-alt-shift\&quot; : \n\t\tevent.metaKey &amp;&amp; !event.ctrlKey &amp;&amp; !event.shiftKey &amp;&amp; !event.altKey ? \&quot;meta\&quot; : \n\t\tevent.metaKey &amp;&amp; event.ctrlKey &amp;&amp; !event.shiftKey &amp;&amp; !event.altKey ? \&quot;meta-ctrl\&quot; :\n\t\tevent.metaKey &amp;&amp; event.ctrlKey &amp;&amp; event.shiftKey &amp;&amp; !event.altKey ? \&quot;meta-ctrl-shift\&quot; :\n\t\tevent.metaKey &amp;&amp; event.ctrlKey &amp; event.shiftKey &amp;&amp; event.altKey ? \&quot;meta-ctrl-alt-shift\&quot; : \&quot;normal\&quot;;\n};\n\nKeyboardManager.prototype.getShortcutTiddlerList = function() {\n\treturn $tw.wiki.getTiddlersWithTag(\&quot;$:/tags/KeyboardShortcut\&quot;);\n};\n\nKeyboardManager.prototype.updateShortcutLists = function(tiddlerList) {\n\tthis.shortcutTiddlers = tiddlerList;\n\tfor(var i=0; i&lt;tiddlerList.length; i++) {\n\t\tvar title = tiddlerList[i],\n\t\t\ttiddlerFields = $tw.wiki.getTiddler(title).fields;\n\t\tthis.shortcutKeysList[i] = tiddlerFields.key !== undefined ? tiddlerFields.key : undefined;\n\t\tthis.shortcutActionList[i] = tiddlerFields.text;\n\t\tthis.shortcutParsedList[i] = this.shortcutKeysList[i] !== undefined ? this.parseKeyDescriptors(this.shortcutKeysList[i]) : undefined;\n\t}\n};\n\nKeyboardManager.prototype.handleKeydownEvent = function(event) {\n\tvar key, action;\n\tfor(var i=0; i&lt;this.shortcutTiddlers.length; i++) {\n\t\tif(this.shortcutParsedList[i] !== undefined &amp;&amp; this.checkKeyDescriptors(event,this.shortcutParsedList[i])) {\n\t\t\tkey = this.shortcutParsedList[i];\n\t\t\taction = this.shortcutActionList[i];\n\t\t}\n\t}\n\tif(key !== undefined) {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\t$tw.rootWidget.invokeActionString(action,$tw.rootWidget);\n\t\treturn true;\n\t}\n\treturn false;\n};\n\nKeyboardManager.prototype.detectNewShortcuts = function(changedTiddlers) {\n\tvar shortcutConfigTiddlers = [],\n\t\thandled = false;\n\t$tw.utils.each(this.lookupNames,function(platformDescriptor) {\n\t\tvar descriptorString = \&quot;$:/config/\&quot; + platformDescriptor + \&quot;/\&quot;;\n\t\tObject.keys(changedTiddlers).forEach(function(configTiddler) {\n\t\t\tvar configString = configTiddler.substr(0, configTiddler.lastIndexOf(\&quot;/\&quot;) + 1);\n\t\t\tif(configString === descriptorString) {\n\t\t\t\tshortcutConfigTiddlers.push(configTiddler);\n\t\t\t\thandled = true;\n\t\t\t}\n\t\t});\n\t});\n\tif(handled) {\n\t\treturn $tw.utils.hopArray(changedTiddlers,shortcutConfigTiddlers);\n\t} else {\n\t\treturn false;\n\t}\n};\n\nKeyboardManager.prototype.handleShortcutChanges = function(changedTiddlers) {\n\tvar newList = this.getShortcutTiddlerList();\n\tvar hasChanged = $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers) ? true :\n\t\t($tw.utils.hopArray(changedTiddlers,newList) ? true :\n\t\t(this.detectNewShortcuts(changedTiddlers))\n\t);\n\t// Re-cache shortcuts if something changed\n\tif(hasChanged) {\n\t\tthis.updateShortcutLists(newList);\n\t}\n};\n\nexports.KeyboardManager = KeyboardManager;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;global&quot;
},
&quot;$:/core/modules/language.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/language.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/language.js\ntype: application/javascript\nmodule-type: global\n\nThe $tw.Language() manages translateable strings\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nCreate an instance of the language manager. Options include:\nwiki: wiki from which to retrieve translation tiddlers\n*/\nfunction Language(options) {\n\toptions = options || \&quot;\&quot;;\n\tthis.wiki = options.wiki || $tw.wiki;\n}\n\n/*\nReturn a wikified translateable string. The title is automatically prefixed with \&quot;$:/language/\&quot;\nOptions include:\nvariables: optional hashmap of variables to supply to the language wikification\n*/\nLanguage.prototype.getString = function(title,options) {\n\toptions = options || {};\n\ttitle = \&quot;$:/language/\&quot; + title;\n\treturn this.wiki.renderTiddler(\&quot;text/plain\&quot;,title,{variables: options.variables});\n};\n\n/*\nReturn a raw, unwikified translateable string. The title is automatically prefixed with \&quot;$:/language/\&quot;\n*/\nLanguage.prototype.getRawString = function(title) {\n\ttitle = \&quot;$:/language/\&quot; + title;\n\treturn this.wiki.getTiddlerText(title);\n};\n\nexports.Language = Language;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;global&quot;
},
&quot;$:/core/modules/macros/changecount.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/changecount.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/changecount.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to return the changecount for the current tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInformation about this macro\n*/\n\nexports.name = \&quot;changecount\&quot;;\n\nexports.params = [];\n\n/*\nRun the macro\n*/\nexports.run = function() {\n\treturn this.wiki.getChangeCount(this.getVariable(\&quot;currentTiddler\&quot;)) + \&quot;\&quot;;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/macros/contrastcolour.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/contrastcolour.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/contrastcolour.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to choose which of two colours has the highest contrast with a base colour\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInformation about this macro\n*/\n\nexports.name = \&quot;contrastcolour\&quot;;\n\nexports.params = [\n\t{name: \&quot;target\&quot;},\n\t{name: \&quot;fallbackTarget\&quot;},\n\t{name: \&quot;colourA\&quot;},\n\t{name: \&quot;colourB\&quot;}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(target,fallbackTarget,colourA,colourB) {\n\tvar rgbTarget = $tw.utils.parseCSSColor(target) || $tw.utils.parseCSSColor(fallbackTarget);\n\tif(!rgbTarget) {\n\t\treturn colourA;\n\t}\n\tvar rgbColourA = $tw.utils.parseCSSColor(colourA),\n\t\trgbColourB = $tw.utils.parseCSSColor(colourB);\n\tif(rgbColourA &amp;&amp; !rgbColourB) {\n\t\treturn rgbColourA;\n\t}\n\tif(rgbColourB &amp;&amp; !rgbColourA) {\n\t\treturn rgbColourB;\n\t}\n\tif(!rgbColourA &amp;&amp; !rgbColourB) {\n\t\t// If neither colour is readable, return a crude inverse of the target\n\t\treturn [255 - rgbTarget[0],255 - rgbTarget[1],255 - rgbTarget[2],rgbTarget[3]];\n\t}\n\t// Colour brightness formula derived from http://www.w3.org/WAI/ER/WD-AERT/#color-contrast\n\tvar brightnessTarget = rgbTarget[0] * 0.299 + rgbTarget[1] * 0.587 + rgbTarget[2] * 0.114,\n\t\tbrightnessA = rgbColourA[0] * 0.299 + rgbColourA[1] * 0.587 + rgbColourA[2] * 0.114,\n\t\tbrightnessB = rgbColourB[0] * 0.299 + rgbColourB[1] * 0.587 + rgbColourB[2] * 0.114;\n\treturn Math.abs(brightnessTarget - brightnessA) &gt; Math.abs(brightnessTarget - brightnessB) ? colourA : colourB;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/macros/csvtiddlers.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/csvtiddlers.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/csvtiddlers.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to output tiddlers matching a filter to CSV\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInformation about this macro\n*/\n\nexports.name = \&quot;csvtiddlers\&quot;;\n\nexports.params = [\n\t{name: \&quot;filter\&quot;},\n\t{name: \&quot;format\&quot;},\n];\n\n/*\nRun the macro\n*/\nexports.run = function(filter,format) {\n\tvar self = this,\n\t\ttiddlers = this.wiki.filterTiddlers(filter),\n\t\ttiddler,\n\t\tfields = [],\n\t\tt,f;\n\t// Collect all the fields\n\tfor(t=0;t&lt;tiddlers.length; t++) {\n\t\ttiddler = this.wiki.getTiddler(tiddlers[t]);\n\t\tfor(f in tiddler.fields) {\n\t\t\tif(fields.indexOf(f) === -1) {\n\t\t\t\tfields.push(f);\n\t\t\t}\n\t\t}\n\t}\n\t// Sort the fields and bring the standard ones to the front\n\tfields.sort();\n\t\&quot;title text modified modifier created creator\&quot;.split(\&quot; \&quot;).reverse().forEach(function(value,index) {\n\t\tvar p = fields.indexOf(value);\n\t\tif(p !== -1) {\n\t\t\tfields.splice(p,1);\n\t\t\tfields.unshift(value)\n\t\t}\n\t});\n\t// Output the column headings\n\tvar output = [], row = [];\n\tfields.forEach(function(value) {\n\t\trow.push(quoteAndEscape(value))\n\t});\n\toutput.push(row.join(\&quot;,\&quot;));\n\t// Output each tiddler\n\tfor(var t=0;t&lt;tiddlers.length; t++) {\n\t\trow = [];\n\t\ttiddler = this.wiki.getTiddler(tiddlers[t]);\n\t\t\tfor(f=0; f&lt;fields.length; f++) {\n\t\t\t\trow.push(quoteAndEscape(tiddler ? tiddler.getFieldString(fields[f]) || \&quot;\&quot; : \&quot;\&quot;));\n\t\t\t}\n\t\toutput.push(row.join(\&quot;,\&quot;));\n\t}\n\treturn output.join(\&quot;\\n\&quot;);\n};\n\nfunction quoteAndEscape(value) {\n\treturn \&quot;\\\&quot;\&quot; + value.replace(/\&quot;/mg,\&quot;\\\&quot;\\\&quot;\&quot;) + \&quot;\\\&quot;\&quot;;\n}\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/macros/displayshortcuts.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/displayshortcuts.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/displayshortcuts.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to display a list of keyboard shortcuts in human readable form. Notably, it resolves named shortcuts like `((bold))` to the underlying keystrokes.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInformation about this macro\n*/\n\nexports.name = \&quot;displayshortcuts\&quot;;\n\nexports.params = [\n\t{name: \&quot;shortcuts\&quot;},\n\t{name: \&quot;prefix\&quot;},\n\t{name: \&quot;separator\&quot;},\n\t{name: \&quot;suffix\&quot;}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(shortcuts,prefix,separator,suffix) {\n\tvar shortcutArray = $tw.keyboardManager.getPrintableShortcuts($tw.keyboardManager.parseKeyDescriptors(shortcuts,{\n\t\twiki: this.wiki\n\t}));\n\tif(shortcutArray.length &gt; 0) {\n\t\tshortcutArray.sort(function(a,b) {\n\t\t return a.toLowerCase().localeCompare(b.toLowerCase());\n\t\t})\n\t\treturn prefix + shortcutArray.join(separator) + suffix;\n\t} else {\n\t\treturn \&quot;\&quot;;\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/macros/jsontiddler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/jsontiddler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/jsontiddler.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to output a single tiddler to JSON\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInformation about this macro\n*/\n\nexports.name = \&quot;jsontiddler\&quot;;\n\nexports.params = [\n\t{name: \&quot;title\&quot;}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(title) {\n\ttitle = title || this.getVariable(\&quot;currentTiddler\&quot;);\n\tvar tiddler = !!title &amp;&amp; this.wiki.getTiddler(title),\n\t\tfields = new Object();\n\tif(tiddler) {\n\t\tfor(var field in tiddler.fields) {\n\t\t\tfields[field] = tiddler.getFieldString(field);\n\t\t}\n\t}\n\treturn JSON.stringify(fields,null,$tw.config.preferences.jsonSpaces);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/macros/jsontiddlers.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/jsontiddlers.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/jsontiddlers.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to output tiddlers matching a filter to JSON\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInformation about this macro\n*/\n\nexports.name = \&quot;jsontiddlers\&quot;;\n\nexports.params = [\n\t{name: \&quot;filter\&quot;},\n\t{name: \&quot;spaces\&quot;}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(filter,spaces) {\n\treturn this.wiki.getTiddlersAsJson(filter,$tw.utils.parseInt(spaces));\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/macros/makedatauri.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/makedatauri.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/makedatauri.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to convert a string of text to a data URI\n\n&lt;&lt;makedatauri text:\&quot;Text to be converted\&quot; type:\&quot;text/vnd.tiddlywiki\&quot;&gt;&gt;\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInformation about this macro\n*/\n\nexports.name = \&quot;makedatauri\&quot;;\n\nexports.params = [\n\t{name: \&quot;text\&quot;},\n\t{name: \&quot;type\&quot;},\n\t{name: \&quot;_canonical_uri\&quot;}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(text,type,_canonical_uri) {\n\treturn $tw.utils.makeDataUri(text,type,_canonical_uri);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/macros/now.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/now.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/now.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to return a formatted version of the current time\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInformation about this macro\n*/\n\nexports.name = \&quot;now\&quot;;\n\nexports.params = [\n\t{name: \&quot;format\&quot;}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(format) {\n\treturn $tw.utils.formatDateString(new Date(),format || \&quot;0hh:0mm, DDth MMM YYYY\&quot;);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/macros/qualify.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/qualify.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/qualify.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to qualify a state tiddler title according\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInformation about this macro\n*/\n\nexports.name = \&quot;qualify\&quot;;\n\nexports.params = [\n\t{name: \&quot;title\&quot;}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(title) {\n\treturn title + \&quot;-\&quot; + this.getStateQualifier();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/macros/resolvepath.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/resolvepath.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/resolvepath.js\ntype: application/javascript\nmodule-type: macro\n\nResolves a relative path for an absolute rootpath.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;resolvepath\&quot;;\n\nexports.params = [\n\t{name: \&quot;source\&quot;},\n\t{name: \&quot;root\&quot;}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(source, root) {\n\treturn $tw.utils.resolvePath(source, root);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/macros/unusedtitle.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/unusedtitle.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/unusedtitle.js\ntype: application/javascript\nmodule-type: macro\nMacro to return a new title that is unused in the wiki. It can be given a name as a base.\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInformation about this macro\n*/\n\nexports.name = \&quot;unusedtitle\&quot;;\n\nexports.params = [\n\t{name: \&quot;baseName\&quot;},\n\t{name: \&quot;options\&quot;}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(baseName, options) {\n\tif(!baseName) {\n\t\tbaseName = $tw.language.getString(\&quot;DefaultNewTiddlerTitle\&quot;);\n\t}\n\treturn this.wiki.generateNewTitle(baseName, options);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/macros/version.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/version.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/version.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to return the TiddlyWiki core version number\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInformation about this macro\n*/\n\nexports.name = \&quot;version\&quot;;\n\nexports.params = [];\n\n/*\nRun the macro\n*/\nexports.run = function() {\n\treturn $tw.version;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;macro&quot;
},
&quot;$:/core/modules/parsers/audioparser.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/audioparser.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/audioparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe audio parser parses an audio tiddler into an embeddable HTML element\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar AudioParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\ttag: \&quot;audio\&quot;,\n\t\t\tattributes: {\n\t\t\t\tcontrols: {type: \&quot;string\&quot;, value: \&quot;controls\&quot;},\n\t\t\t\tstyle: {type: \&quot;string\&quot;, value: \&quot;width: 100%; object-fit: contain\&quot;}\n\t\t\t}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \&quot;string\&quot;, value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \&quot;string\&quot;, value: \&quot;data:\&quot; + type + \&quot;;base64,\&quot; + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\&quot;audio/ogg\&quot;] = AudioParser;\nexports[\&quot;audio/mpeg\&quot;] = AudioParser;\nexports[\&quot;audio/mp3\&quot;] = AudioParser;\nexports[\&quot;audio/mp4\&quot;] = AudioParser;\n\n})();\n\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;parser&quot;
},
&quot;$:/core/modules/parsers/binaryparser.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/binaryparser.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/binaryparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe binary parser parses a binary tiddler into a warning message and download link\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar BINARY_WARNING_MESSAGE = \&quot;$:/core/ui/BinaryWarning\&quot;;\nvar EXPORT_BUTTON_IMAGE = \&quot;$:/core/images/export-button\&quot;;\n\nvar BinaryParser = function(type,text,options) {\n\t// Transclude the binary data tiddler warning message\n\tvar warn = {\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;p\&quot;,\n\t\tchildren: [{\n\t\t\ttype: \&quot;transclude\&quot;,\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \&quot;string\&quot;, value: BINARY_WARNING_MESSAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Create download link based on binary tiddler title\n\tvar link = {\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;a\&quot;,\n\t\tattributes: {\n\t\t\ttitle: {type: \&quot;indirect\&quot;, textReference: \&quot;!!title\&quot;},\n\t\t\tdownload: {type: \&quot;indirect\&quot;, textReference: \&quot;!!title\&quot;}\n\t\t},\n\t\tchildren: [{\n\t\t\ttype: \&quot;transclude\&quot;,\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \&quot;string\&quot;, value: EXPORT_BUTTON_IMAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Set the link href to external or internal data URI\n\tif(options._canonical_uri) {\n\t\tlink.attributes.href = {\n\t\t\ttype: \&quot;string\&quot;, \n\t\t\tvalue: options._canonical_uri\n\t\t};\n\t} else if(text) {\n\t\tlink.attributes.href = {\n\t\t\ttype: \&quot;string\&quot;, \n\t\t\tvalue: \&quot;data:\&quot; + type + \&quot;;base64,\&quot; + text\n\t\t};\n\t}\n\t// Combine warning message and download link in a div\n\tvar element = {\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;div\&quot;,\n\t\tattributes: {\n\t\t\tclass: {type: \&quot;string\&quot;, value: \&quot;tc-binary-warning\&quot;}\n\t\t},\n\t\tchildren: [warn, link]\n\t}\n\tthis.tree = [element];\n};\n\nexports[\&quot;application/octet-stream\&quot;] = BinaryParser;\n\n})();\n\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;parser&quot;
},
&quot;$:/core/modules/parsers/csvparser.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/csvparser.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/csvparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe CSV text parser processes CSV files into a table wrapped in a scrollable widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar CsvParser = function(type,text,options) {\n\t// Table framework\n\tthis.tree = [{\n\t\t\&quot;type\&quot;: \&quot;scrollable\&quot;, \&quot;children\&quot;: [{\n\t\t\t\&quot;type\&quot;: \&quot;element\&quot;, \&quot;tag\&quot;: \&quot;table\&quot;, \&quot;children\&quot;: [{\n\t\t\t\t\&quot;type\&quot;: \&quot;element\&quot;, \&quot;tag\&quot;: \&quot;tbody\&quot;, \&quot;children\&quot;: []\n\t\t\t}], \&quot;attributes\&quot;: {\n\t\t\t\t\&quot;class\&quot;: {\&quot;type\&quot;: \&quot;string\&quot;, \&quot;value\&quot;: \&quot;tc-csv-table\&quot;}\n\t\t\t}\n\t\t}]\n\t}];\n\t// Split the text into lines\n\tvar lines = text.split(/\\r?\\n/mg),\n\t\ttag = \&quot;th\&quot;;\n\tfor(var line=0; line&lt;lines.length; line++) {\n\t\tvar lineText = lines[line];\n\t\tif(lineText) {\n\t\t\tvar row = {\n\t\t\t\t\t\&quot;type\&quot;: \&quot;element\&quot;, \&quot;tag\&quot;: \&quot;tr\&quot;, \&quot;children\&quot;: []\n\t\t\t\t};\n\t\t\tvar columns = lineText.split(\&quot;,\&quot;);\n\t\t\tfor(var column=0; column&lt;columns.length; column++) {\n\t\t\t\trow.children.push({\n\t\t\t\t\t\t\&quot;type\&quot;: \&quot;element\&quot;, \&quot;tag\&quot;: tag, \&quot;children\&quot;: [{\n\t\t\t\t\t\t\t\&quot;type\&quot;: \&quot;text\&quot;,\n\t\t\t\t\t\t\t\&quot;text\&quot;: columns[column]\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t}\n\t\t\ttag = \&quot;td\&quot;;\n\t\t\tthis.tree[0].children[0].children[0].children.push(row);\n\t\t}\n\t}\n};\n\nexports[\&quot;text/csv\&quot;] = CsvParser;\n\n})();\n\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;parser&quot;
},
&quot;$:/core/modules/parsers/htmlparser.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/htmlparser.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/htmlparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe HTML parser displays text as raw HTML\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar HtmlParser = function(type,text,options) {\n\tvar src;\n\tif(options._canonical_uri) {\n\t\tsrc = options._canonical_uri;\n\t} else if(text) {\n\t\tsrc = \&quot;data:text/html;charset=utf-8,\&quot; + encodeURIComponent(text);\n\t}\n\tthis.tree = [{\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;iframe\&quot;,\n\t\tattributes: {\n\t\t\tsrc: {type: \&quot;string\&quot;, value: src},\n\t\t\tsandbox: {type: \&quot;string\&quot;, value: \&quot;\&quot;}\n\t\t}\n\t}];\n};\n\nexports[\&quot;text/html\&quot;] = HtmlParser;\n\n})();\n\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;parser&quot;
},
&quot;$:/core/modules/parsers/imageparser.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/imageparser.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/imageparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe image parser parses an image into an embeddable HTML element\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar ImageParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\ttag: \&quot;img\&quot;,\n\t\t\tattributes: {}\n\t\t};\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \&quot;string\&quot;, value: options._canonical_uri};\n\t} else if(text) {\n\t\tif(type === \&quot;image/svg+xml\&quot; || type === \&quot;.svg\&quot;) {\n\t\t\telement.attributes.src = {type: \&quot;string\&quot;, value: \&quot;data:image/svg+xml,\&quot; + encodeURIComponent(text)};\n\t\t} else {\n\t\t\telement.attributes.src = {type: \&quot;string\&quot;, value: \&quot;data:\&quot; + type + \&quot;;base64,\&quot; + text};\n\t\t}\n\t}\n\tthis.tree = [element];\n};\n\nexports[\&quot;image/svg+xml\&quot;] = ImageParser;\nexports[\&quot;image/jpg\&quot;] = ImageParser;\nexports[\&quot;image/jpeg\&quot;] = ImageParser;\nexports[\&quot;image/png\&quot;] = ImageParser;\nexports[\&quot;image/gif\&quot;] = ImageParser;\nexports[\&quot;image/webp\&quot;] = ImageParser;\nexports[\&quot;image/heic\&quot;] = ImageParser;\nexports[\&quot;image/heif\&quot;] = ImageParser;\nexports[\&quot;image/x-icon\&quot;] = ImageParser;\n\n})();\n\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;parser&quot;
},
&quot;$:/core/modules/utils/parseutils.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/parseutils.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/parseutils.js\ntype: application/javascript\nmodule-type: utils\n\nUtility functions concerned with parsing text into tokens.\n\nMost functions have the following pattern:\n\n* The parameters are:\n** `source`: the source string being parsed\n** `pos`: the current parse position within the string\n** Any further parameters are used to identify the token that is being parsed\n* The return value is:\n** null if the token was not found at the specified position\n** an object representing the token with the following standard fields:\n*** `type`: string indicating the type of the token\n*** `start`: start position of the token in the source string\n*** `end`: end position of the token in the source string\n*** Any further fields required to describe the token\n\nThe exception is `skipWhiteSpace`, which just returns the position after the whitespace.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nLook for a whitespace token. Returns null if not found, otherwise returns {type: \&quot;whitespace\&quot;, start:, end:,}\n*/\nexports.parseWhiteSpace = function(source,pos) {\n\tvar p = pos,c;\n\twhile(true) {\n\t\tc = source.charAt(p);\n\t\tif((c === \&quot; \&quot;) || (c === \&quot;\\f\&quot;) || (c === \&quot;\\n\&quot;) || (c === \&quot;\\r\&quot;) || (c === \&quot;\\t\&quot;) || (c === \&quot;\\v\&quot;) || (c === \&quot;\\u00a0\&quot;)) { // Ignores some obscure unicode spaces\n\t\t\tp++;\n\t\t} else {\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(p === pos) {\n\t\treturn null;\n\t} else {\n\t\treturn {\n\t\t\ttype: \&quot;whitespace\&quot;,\n\t\t\tstart: pos,\n\t\t\tend: p\n\t\t}\n\t}\n};\n\n/*\nConvenience wrapper for parseWhiteSpace. Returns the position after the whitespace\n*/\nexports.skipWhiteSpace = function(source,pos) {\n\tvar c;\n\twhile(true) {\n\t\tc = source.charAt(pos);\n\t\tif((c === \&quot; \&quot;) || (c === \&quot;\\f\&quot;) || (c === \&quot;\\n\&quot;) || (c === \&quot;\\r\&quot;) || (c === \&quot;\\t\&quot;) || (c === \&quot;\\v\&quot;) || (c === \&quot;\\u00a0\&quot;)) { // Ignores some obscure unicode spaces\n\t\t\tpos++;\n\t\t} else {\n\t\t\treturn pos;\n\t\t}\n\t}\n};\n\n/*\nLook for a given string token. Returns null if not found, otherwise returns {type: \&quot;token\&quot;, value:, start:, end:,}\n*/\nexports.parseTokenString = function(source,pos,token) {\n\tvar match = source.indexOf(token,pos) === pos;\n\tif(match) {\n\t\treturn {\n\t\t\ttype: \&quot;token\&quot;,\n\t\t\tvalue: token,\n\t\t\tstart: pos,\n\t\t\tend: pos + token.length\n\t\t};\n\t}\n\treturn null;\n};\n\n/*\nLook for a token matching a regex. Returns null if not found, otherwise returns {type: \&quot;regexp\&quot;, match:, start:, end:,}\n*/\nexports.parseTokenRegExp = function(source,pos,reToken) {\n\tvar node = {\n\t\ttype: \&quot;regexp\&quot;,\n\t\tstart: pos\n\t};\n\treToken.lastIndex = pos;\n\tnode.match = reToken.exec(source);\n\tif(node.match &amp;&amp; node.match.index === pos) {\n\t\tnode.end = pos + node.match[0].length;\n\t\treturn node;\n\t} else {\n\t\treturn null;\n\t}\n};\n\n/*\nLook for a string literal. Returns null if not found, otherwise returns {type: \&quot;string\&quot;, value:, start:, end:,}\n*/\nexports.parseStringLiteral = function(source,pos) {\n\tvar node = {\n\t\ttype: \&quot;string\&quot;,\n\t\tstart: pos\n\t};\n\tvar reString = /(?:\&quot;\&quot;\&quot;([\\s\\S]*?)\&quot;\&quot;\&quot;|\&quot;([^\&quot;]*)\&quot;)|(?:'([^']*)')/g;\n\treString.lastIndex = pos;\n\tvar match = reString.exec(source);\n\tif(match &amp;&amp; match.index === pos) {\n\t\tnode.value = match[1] !== undefined ? match[1] :(\n\t\t\tmatch[2] !== undefined ? match[2] : match[3] \n\t\t\t\t\t);\n\t\tnode.end = pos + match[0].length;\n\t\treturn node;\n\t} else {\n\t\treturn null;\n\t}\n};\n\n/*\nLook for a macro invocation parameter. Returns null if not found, or {type: \&quot;macro-parameter\&quot;, name:, value:, start:, end:}\n*/\nexports.parseMacroParameter = function(source,pos) {\n\tvar node = {\n\t\ttype: \&quot;macro-parameter\&quot;,\n\t\tstart: pos\n\t};\n\t// Define our regexp\n\tvar reMacroParameter = /(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\&quot;\&quot;\&quot;([\\s\\S]*?)\&quot;\&quot;\&quot;|\&quot;([^\&quot;]*)\&quot;|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\\s&gt;\&quot;'=]+)))/g;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for the parameter\n\tvar token = $tw.utils.parseTokenRegExp(source,pos,reMacroParameter);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Get the parameter details\n\tnode.value = token.match[2] !== undefined ? token.match[2] : (\n\t\t\t\t\ttoken.match[3] !== undefined ? token.match[3] : (\n\t\t\t\t\t\ttoken.match[4] !== undefined ? token.match[4] : (\n\t\t\t\t\t\t\ttoken.match[5] !== undefined ? token.match[5] : (\n\t\t\t\t\t\t\t\ttoken.match[6] !== undefined ? token.match[6] : (\n\t\t\t\t\t\t\t\t\t\&quot;\&quot;\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n\tif(token.match[1]) {\n\t\tnode.name = token.match[1];\n\t}\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n/*\nLook for a macro invocation. Returns null if not found, or {type: \&quot;macrocall\&quot;, name:, parameters:, start:, end:}\n*/\nexports.parseMacroInvocation = function(source,pos) {\n\tvar node = {\n\t\ttype: \&quot;macrocall\&quot;,\n\t\tstart: pos,\n\t\tparams: []\n\t};\n\t// Define our regexps\n\tvar reMacroName = /([^\\s&gt;\&quot;'=]+)/g;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for a double less than sign\n\tvar token = $tw.utils.parseTokenString(source,pos,\&quot;&lt;&lt;\&quot;);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Get the macro name\n\tvar name = $tw.utils.parseTokenRegExp(source,pos,reMacroName);\n\tif(!name) {\n\t\treturn null;\n\t}\n\tnode.name = name.match[1];\n\tpos = name.end;\n\t// Process parameters\n\tvar parameter = $tw.utils.parseMacroParameter(source,pos);\n\twhile(parameter) {\n\t\tnode.params.push(parameter);\n\t\tpos = parameter.end;\n\t\t// Get the next parameter\n\t\tparameter = $tw.utils.parseMacroParameter(source,pos);\n\t}\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for a double greater than sign\n\ttoken = $tw.utils.parseTokenString(source,pos,\&quot;&gt;&gt;\&quot;);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n/*\nLook for an HTML attribute definition. Returns null if not found, otherwise returns {type: \&quot;attribute\&quot;, name:, valueType: \&quot;string|indirect|macro\&quot;, value:, start:, end:,}\n*/\nexports.parseAttribute = function(source,pos) {\n\tvar node = {\n\t\tstart: pos\n\t};\n\t// Define our regexps\n\tvar reAttributeName = /([^\\/\\s&gt;\&quot;'=]+)/g,\n\t\treUnquotedAttribute = /([^\\/\\s&lt;&gt;\&quot;'=]+)/g,\n\t\treFilteredValue = /\\{\\{\\{(.+?)\\}\\}\\}/g,\n\t\treIndirectValue = /\\{\\{([^\\}]+)\\}\\}/g;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Get the attribute name\n\tvar name = $tw.utils.parseTokenRegExp(source,pos,reAttributeName);\n\tif(!name) {\n\t\treturn null;\n\t}\n\tnode.name = name.match[1];\n\tpos = name.end;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for an equals sign\n\tvar token = $tw.utils.parseTokenString(source,pos,\&quot;=\&quot;);\n\tif(token) {\n\t\tpos = token.end;\n\t\t// Skip whitespace\n\t\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t\t// Look for a string literal\n\t\tvar stringLiteral = $tw.utils.parseStringLiteral(source,pos);\n\t\tif(stringLiteral) {\n\t\t\tpos = stringLiteral.end;\n\t\t\tnode.type = \&quot;string\&quot;;\n\t\t\tnode.value = stringLiteral.value;\n\t\t} else {\n\t\t\t// Look for a filtered value\n\t\t\tvar filteredValue = $tw.utils.parseTokenRegExp(source,pos,reFilteredValue);\n\t\t\tif(filteredValue) {\n\t\t\t\tpos = filteredValue.end;\n\t\t\t\tnode.type = \&quot;filtered\&quot;;\n\t\t\t\tnode.filter = filteredValue.match[1];\n\t\t\t} else {\n\t\t\t\t// Look for an indirect value\n\t\t\t\tvar indirectValue = $tw.utils.parseTokenRegExp(source,pos,reIndirectValue);\n\t\t\t\tif(indirectValue) {\n\t\t\t\t\tpos = indirectValue.end;\n\t\t\t\t\tnode.type = \&quot;indirect\&quot;;\n\t\t\t\t\tnode.textReference = indirectValue.match[1];\n\t\t\t\t} else {\n\t\t\t\t\t// Look for a unquoted value\n\t\t\t\t\tvar unquotedValue = $tw.utils.parseTokenRegExp(source,pos,reUnquotedAttribute);\n\t\t\t\t\tif(unquotedValue) {\n\t\t\t\t\t\tpos = unquotedValue.end;\n\t\t\t\t\t\tnode.type = \&quot;string\&quot;;\n\t\t\t\t\t\tnode.value = unquotedValue.match[1];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Look for a macro invocation value\n\t\t\t\t\t\tvar macroInvocation = $tw.utils.parseMacroInvocation(source,pos);\n\t\t\t\t\t\tif(macroInvocation) {\n\t\t\t\t\t\t\tpos = macroInvocation.end;\n\t\t\t\t\t\t\tnode.type = \&quot;macro\&quot;;\n\t\t\t\t\t\t\tnode.value = macroInvocation;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnode.type = \&quot;string\&quot;;\n\t\t\t\t\t\t\tnode.value = \&quot;true\&quot;;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\tnode.type = \&quot;string\&quot;;\n\t\tnode.value = \&quot;true\&quot;;\n\t}\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/parsers/pdfparser.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/pdfparser.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/pdfparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe PDF parser embeds a PDF viewer\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar ImageParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\ttag: \&quot;embed\&quot;,\n\t\t\tattributes: {}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \&quot;string\&quot;, value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \&quot;string\&quot;, value: \&quot;data:application/pdf;base64,\&quot; + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\&quot;application/pdf\&quot;] = ImageParser;\n\n})();\n\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;parser&quot;
},
&quot;$:/core/modules/parsers/textparser.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/textparser.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/textparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe plain text parser processes blocks of source text into a degenerate parse tree consisting of a single text node\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar TextParser = function(type,text,options) {\n\tthis.tree = [{\n\t\ttype: \&quot;codeblock\&quot;,\n\t\tattributes: {\n\t\t\tcode: {type: \&quot;string\&quot;, value: text},\n\t\t\tlanguage: {type: \&quot;string\&quot;, value: type}\n\t\t}\n\t}];\n};\n\nexports[\&quot;text/plain\&quot;] = TextParser;\nexports[\&quot;text/x-tiddlywiki\&quot;] = TextParser;\nexports[\&quot;application/javascript\&quot;] = TextParser;\nexports[\&quot;application/json\&quot;] = TextParser;\nexports[\&quot;text/css\&quot;] = TextParser;\nexports[\&quot;application/x-tiddler-dictionary\&quot;] = TextParser;\n\n})();\n\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;parser&quot;
},
&quot;$:/core/modules/parsers/videoparser.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/videoparser.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/videoparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe video parser parses a video tiddler into an embeddable HTML element\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar VideoParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\ttag: \&quot;video\&quot;,\n\t\t\tattributes: {\n\t\t\t\tcontrols: {type: \&quot;string\&quot;, value: \&quot;controls\&quot;},\n\t\t\t\tstyle: {type: \&quot;string\&quot;, value: \&quot;width: 100%; object-fit: contain\&quot;}\n\t\t\t}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \&quot;string\&quot;, value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \&quot;string\&quot;, value: \&quot;data:\&quot; + type + \&quot;;base64,\&quot; + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\&quot;video/ogg\&quot;] = VideoParser;\nexports[\&quot;video/webm\&quot;] = VideoParser;\nexports[\&quot;video/mp4\&quot;] = VideoParser;\nexports[\&quot;video/quicktime\&quot;] = VideoParser;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;parser&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/codeblock.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/codeblock.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/codeblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for code blocks. For example:\n\n```\n\t```\n\tThis text will not be //wikified//\n\t```\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;codeblock\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match and get language if defined\n\tthis.matchRegExp = /```([\\w-]*)\\r?\\n/mg;\n};\n\nexports.parse = function() {\n\tvar reEnd = /(\\r?\\n```$)/mg;\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Look for the end of the block\n\treEnd.lastIndex = this.parser.pos;\n\tvar match = reEnd.exec(this.parser.source),\n\t\ttext;\n\t// Process the block\n\tif(match) {\n\t\ttext = this.parser.source.substring(this.parser.pos,match.index);\n\t\tthis.parser.pos = match.index + match[0].length;\n\t} else {\n\t\ttext = this.parser.source.substr(this.parser.pos);\n\t\tthis.parser.pos = this.parser.sourceLength;\n\t}\n\t// Return the $codeblock widget\n\treturn [{\n\t\t\ttype: \&quot;codeblock\&quot;,\n\t\t\tattributes: {\n\t\t\t\t\tcode: {type: \&quot;string\&quot;, value: text},\n\t\t\t\t\tlanguage: {type: \&quot;string\&quot;, value: this.match[1]}\n\t\t\t}\n\t}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/codeinline.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/codeinline.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/codeinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for code runs. For example:\n\n```\n\tThis is a `code run`.\n\tThis is another ``code run``\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;codeinline\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /(``?)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar reEnd = new RegExp(this.match[1], \&quot;mg\&quot;);\n\t// Look for the end marker\n\treEnd.lastIndex = this.parser.pos;\n\tvar match = reEnd.exec(this.parser.source),\n\t\ttext;\n\t// Process the text\n\tif(match) {\n\t\ttext = this.parser.source.substring(this.parser.pos,match.index);\n\t\tthis.parser.pos = match.index + match[0].length;\n\t} else {\n\t\ttext = this.parser.source.substr(this.parser.pos);\n\t\tthis.parser.pos = this.parser.sourceLength;\n\t}\n\treturn [{\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;code\&quot;,\n\t\tchildren: [{\n\t\t\ttype: \&quot;text\&quot;,\n\t\t\ttext: text\n\t\t}]\n\t}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/commentblock.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/commentblock.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/commentblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for HTML comments. For example:\n\n```\n&lt;!-- This is a comment --&gt;\n```\n\nNote that the syntax for comments is simplified to an opening \&quot;&lt;!--\&quot; sequence and a closing \&quot;--&gt;\&quot; sequence -- HTML itself implements a more complex format (see http://ostermiller.org/findhtmlcomment.html)\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;commentblock\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\tthis.matchRegExp = /&lt;!--/mg;\n\tthis.endMatchRegExp = /--&gt;/mg;\n};\n\nexports.findNextMatch = function(startPos) {\n\tthis.matchRegExp.lastIndex = startPos;\n\tthis.match = this.matchRegExp.exec(this.parser.source);\n\tif(this.match) {\n\t\tthis.endMatchRegExp.lastIndex = startPos + this.match[0].length;\n\t\tthis.endMatch = this.endMatchRegExp.exec(this.parser.source);\n\t\tif(this.endMatch) {\n\t\t\treturn this.match.index;\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.endMatchRegExp.lastIndex;\n\t// Don't return any elements\n\treturn [];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/commentinline.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/commentinline.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/commentinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for HTML comments. For example:\n\n```\n&lt;!-- This is a comment --&gt;\n```\n\nNote that the syntax for comments is simplified to an opening \&quot;&lt;!--\&quot; sequence and a closing \&quot;--&gt;\&quot; sequence -- HTML itself implements a more complex format (see http://ostermiller.org/findhtmlcomment.html)\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;commentinline\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\tthis.matchRegExp = /&lt;!--/mg;\n\tthis.endMatchRegExp = /--&gt;/mg;\n};\n\nexports.findNextMatch = function(startPos) {\n\tthis.matchRegExp.lastIndex = startPos;\n\tthis.match = this.matchRegExp.exec(this.parser.source);\n\tif(this.match) {\n\t\tthis.endMatchRegExp.lastIndex = startPos + this.match[0].length;\n\t\tthis.endMatch = this.endMatchRegExp.exec(this.parser.source);\n\t\tif(this.endMatch) {\n\t\t\treturn this.match.index;\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.endMatchRegExp.lastIndex;\n\t// Don't return any elements\n\treturn [];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/dash.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/dash.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/dash.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for dashes. For example:\n\n```\nThis is an en-dash: --\n\nThis is an em-dash: ---\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;dash\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /-{2,3}(?!-)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar dash = this.match[0].length === 2 ? \&quot;&amp;ndash;\&quot; : \&quot;&amp;mdash;\&quot;;\n\treturn [{\n\t\ttype: \&quot;entity\&quot;,\n\t\tentity: dash\n\t}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/emphasis/bold.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/emphasis/bold.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/bold.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - bold. For example:\n\n```\n\tThis is ''bold'' text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except bold \n\\rules only bold \n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;bold\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /''/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/''/mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;strong\&quot;,\n\t\tchildren: tree\n\t}];\n};\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/emphasis/italic.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/emphasis/italic.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/italic.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - italic. For example:\n\n```\n\tThis is //italic// text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except italic\n\\rules only italic\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;italic\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\/\\//mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/\\/\\//mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;em\&quot;,\n\t\tchildren: tree\n\t}];\n};\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - strikethrough. For example:\n\n```\n\tThis is ~~strikethrough~~ text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except strikethrough \n\\rules only strikethrough \n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;strikethrough\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /~~/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/~~/mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;strike\&quot;,\n\t\tchildren: tree\n\t}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - subscript. For example:\n\n```\n\tThis is ,,subscript,, text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except subscript \n\\rules only subscript \n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;subscript\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /,,/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/,,/mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;sub\&quot;,\n\t\tchildren: tree\n\t}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - superscript. For example:\n\n```\n\tThis is ^^superscript^^ text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except superscript \n\\rules only superscript \n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;superscript\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\^\\^/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/\\^\\^/mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;sup\&quot;,\n\t\tchildren: tree\n\t}];\n};\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - underscore. For example:\n\n```\n\tThis is __underscore__ text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except underscore \n\\rules only underscore\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;underscore\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /__/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/__/mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;u\&quot;,\n\t\tchildren: tree\n\t}];\n};\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/entity.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/entity.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/entity.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for HTML entities. For example:\n\n```\n\tThis is a copyright symbol: &amp;copy;\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;entity\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /(&amp;#?[a-zA-Z0-9]{2,8};)/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Get all the details of the match\n\tvar entityString = this.match[1];\n\t// Move past the macro call\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Return the entity\n\treturn [{type: \&quot;entity\&quot;, entity: this.match[0]}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/extlink.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/extlink.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/extlink.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for external links. For example:\n\n```\nAn external link: https://www.tiddlywiki.com/\n\nA suppressed external link: ~http://www.tiddlyspace.com/\n```\n\nExternal links can be suppressed by preceding them with `~`.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;extlink\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\\s&lt;&gt;{}\\[\\]`|\&quot;\\\\^]+(?:\\/|\\b)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Create the link unless it is suppressed\n\tif(this.match[0].substr(0,1) === \&quot;~\&quot;) {\n\t\treturn [{type: \&quot;text\&quot;, text: this.match[0].substr(1)}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\ttag: \&quot;a\&quot;,\n\t\t\tattributes: {\n\t\t\t\thref: {type: \&quot;string\&quot;, value: this.match[0]},\n\t\t\t\t\&quot;class\&quot;: {type: \&quot;string\&quot;, value: \&quot;tc-tiddlylink-external\&quot;},\n\t\t\t\ttarget: {type: \&quot;string\&quot;, value: \&quot;_blank\&quot;},\n\t\t\t\trel: {type: \&quot;string\&quot;, value: \&quot;noopener noreferrer\&quot;}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \&quot;text\&quot;, text: this.match[0]\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for block-level filtered transclusion. For example:\n\n```\n{{{ [tag[docs]] }}}\n{{{ [tag[docs]] |tooltip}}}\n{{{ [tag[docs]] ||TemplateTitle}}}\n{{{ [tag[docs]] |tooltip||TemplateTitle}}}\n{{{ [tag[docs]] }}width:40;height:50;}.class.class\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;filteredtranscludeblock\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\{\\{\\{([^\\|]+?)(?:\\|([^\\|\\{\\}]+))?(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}([^\\}]*)\\}(?:\\.(\\S+))?(?:\\r?\\n|$)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Get the match details\n\tvar filter = this.match[1],\n\t\ttooltip = this.match[2],\n\t\ttemplate = $tw.utils.trim(this.match[3]),\n\t\tstyle = this.match[4],\n\t\tclasses = this.match[5];\n\t// Return the list widget\n\tvar node = {\n\t\ttype: \&quot;list\&quot;,\n\t\tattributes: {\n\t\t\tfilter: {type: \&quot;string\&quot;, value: filter}\n\t\t},\n\t\tisBlock: true\n\t};\n\tif(tooltip) {\n\t\tnode.attributes.tooltip = {type: \&quot;string\&quot;, value: tooltip};\n\t}\n\tif(template) {\n\t\tnode.attributes.template = {type: \&quot;string\&quot;, value: template};\n\t}\n\tif(style) {\n\t\tnode.attributes.style = {type: \&quot;string\&quot;, value: style};\n\t}\n\tif(classes) {\n\t\tnode.attributes.itemClass = {type: \&quot;string\&quot;, value: classes.split(\&quot;.\&quot;).join(\&quot; \&quot;)};\n\t}\n\treturn [node];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for inline filtered transclusion. For example:\n\n```\n{{{ [tag[docs]] }}}\n{{{ [tag[docs]] |tooltip}}}\n{{{ [tag[docs]] ||TemplateTitle}}}\n{{{ [tag[docs]] |tooltip||TemplateTitle}}}\n{{{ [tag[docs]] }}width:40;height:50;}.class.class\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;filteredtranscludeinline\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\{\\{\\{([^\\|]+?)(?:\\|([^\\|\\{\\}]+))?(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}([^\\}]*)\\}(?:\\.(\\S+))?/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Get the match details\n\tvar filter = this.match[1],\n\t\ttooltip = this.match[2],\n\t\ttemplate = $tw.utils.trim(this.match[3]),\n\t\tstyle = this.match[4],\n\t\tclasses = this.match[5];\n\t// Return the list widget\n\tvar node = {\n\t\ttype: \&quot;list\&quot;,\n\t\tattributes: {\n\t\t\tfilter: {type: \&quot;string\&quot;, value: filter}\n\t\t}\n\t};\n\tif(tooltip) {\n\t\tnode.attributes.tooltip = {type: \&quot;string\&quot;, value: tooltip};\n\t}\n\tif(template) {\n\t\tnode.attributes.template = {type: \&quot;string\&quot;, value: template};\n\t}\n\tif(style) {\n\t\tnode.attributes.style = {type: \&quot;string\&quot;, value: style};\n\t}\n\tif(classes) {\n\t\tnode.attributes.itemClass = {type: \&quot;string\&quot;, value: classes.split(\&quot;.\&quot;).join(\&quot; \&quot;)};\n\t}\n\treturn [node];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for marking areas with hard line breaks. For example:\n\n```\n\&quot;\&quot;\&quot;\nThis is some text\nThat is set like\nIt is a Poem\nWhen it is\nClearly\nNot\n\&quot;\&quot;\&quot;\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;hardlinebreaks\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\&quot;\&quot;\&quot;(?:\\r?\\n)?/mg;\n};\n\nexports.parse = function() {\n\tvar reEnd = /(\&quot;\&quot;\&quot;)|(\\r?\\n)/mg,\n\t\ttree = [],\n\t\tmatch;\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tdo {\n\t\t// Parse the run up to the terminator\n\t\ttree.push.apply(tree,this.parser.parseInlineRun(reEnd,{eatTerminator: false}));\n\t\t// Redo the terminator match\n\t\treEnd.lastIndex = this.parser.pos;\n\t\tmatch = reEnd.exec(this.parser.source);\n\t\tif(match) {\n\t\t\tthis.parser.pos = reEnd.lastIndex;\n\t\t\t// Add a line break if the terminator was a line break\n\t\t\tif(match[2]) {\n\t\t\t\ttree.push({type: \&quot;element\&quot;, tag: \&quot;br\&quot;});\n\t\t\t}\n\t\t}\n\t} while(match &amp;&amp; !match[1]);\n\t// Return the nodes\n\treturn tree;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/heading.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/heading.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/heading.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for headings\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;heading\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /(!{1,6})/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Get all the details of the match\n\tvar headingLevel = this.match[1].length;\n\t// Move past the !s\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse any classes, whitespace and then the heading itself\n\tvar classes = this.parser.parseClasses();\n\tthis.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});\n\tvar tree = this.parser.parseInlineRun(/(\\r?\\n)/mg);\n\t// Return the heading\n\treturn [{\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;h\&quot; + headingLevel, \n\t\tattributes: {\n\t\t\t\&quot;class\&quot;: {type: \&quot;string\&quot;, value: classes.join(\&quot; \&quot;)}\n\t\t},\n\t\tchildren: tree\n\t}];\n};\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/horizrule.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/horizrule.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/horizrule.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for rules. For example:\n\n```\n---\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;horizrule\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /-{3,}\\r?(?:\\n|$)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\treturn [{type: \&quot;element\&quot;, tag: \&quot;hr\&quot;}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/html.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/html.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/html.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki rule for HTML elements and widgets. For example:\n\n{{{\n&lt;aside&gt;\nThis is an HTML5 aside element\n&lt;/aside&gt;\n\n&lt;$slider target=\&quot;MyTiddler\&quot;&gt;\nThis is a widget invocation\n&lt;/$slider&gt;\n\n}}}\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;html\&quot;;\nexports.types = {inline: true, block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n};\n\nexports.findNextMatch = function(startPos) {\n\t// Find the next tag\n\tthis.nextTag = this.findNextTag(this.parser.source,startPos,{\n\t\trequireLineBreak: this.is.block\n\t});\n\treturn this.nextTag ? this.nextTag.start : undefined;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Retrieve the most recent match so that recursive calls don't overwrite it\n\tvar tag = this.nextTag;\n\tthis.nextTag = null;\n\t// Advance the parser position to past the tag\n\tthis.parser.pos = tag.end;\n\t// Check for an immediately following double linebreak\n\tvar hasLineBreak = !tag.isSelfClosing &amp;&amp; !!$tw.utils.parseTokenRegExp(this.parser.source,this.parser.pos,/([^\\S\\n\\r]*\\r?\\n(?:[^\\S\\n\\r]*\\r?\\n|$))/g);\n\t// Set whether we're in block mode\n\ttag.isBlock = this.is.block || hasLineBreak;\n\t// Parse the body if we need to\n\tif(!tag.isSelfClosing &amp;&amp; $tw.config.htmlVoidElements.indexOf(tag.tag) === -1) {\n\t\t\tvar reEndString = \&quot;&lt;/\&quot; + $tw.utils.escapeRegExp(tag.tag) + \&quot;&gt;\&quot;,\n\t\t\t\treEnd = new RegExp(\&quot;(\&quot; + reEndString + \&quot;)\&quot;,\&quot;mg\&quot;);\n\t\tif(hasLineBreak) {\n\t\t\ttag.children = this.parser.parseBlocks(reEndString);\n\t\t} else {\n\t\t\ttag.children = this.parser.parseInlineRun(reEnd);\n\t\t}\n\t\treEnd.lastIndex = this.parser.pos;\n\t\tvar endMatch = reEnd.exec(this.parser.source);\n\t\tif(endMatch &amp;&amp; endMatch.index === this.parser.pos) {\n\t\t\tthis.parser.pos = endMatch.index + endMatch[0].length;\n\t\t}\n\t}\n\t// Return the tag\n\treturn [tag];\n};\n\n/*\nLook for an HTML tag. Returns null if not found, otherwise returns {type: \&quot;element\&quot;, name:, attributes: [], isSelfClosing:, start:, end:,}\n*/\nexports.parseTag = function(source,pos,options) {\n\toptions = options || {};\n\tvar token,\n\t\tnode = {\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\tstart: pos,\n\t\t\tattributes: {}\n\t\t};\n\t// Define our regexps\n\tvar reTagName = /([a-zA-Z0-9\\-\\$]+)/g;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for a less than sign\n\ttoken = $tw.utils.parseTokenString(source,pos,\&quot;&lt;\&quot;);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Get the tag name\n\ttoken = $tw.utils.parseTokenRegExp(source,pos,reTagName);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tnode.tag = token.match[1];\n\tif(node.tag.slice(1).indexOf(\&quot;$\&quot;) !== -1) {\n\t\treturn null;\n\t}\n\tif(node.tag.charAt(0) === \&quot;$\&quot;) {\n\t\tnode.type = node.tag.substr(1);\n\t}\n\tpos = token.end;\n\t// Check that the tag is terminated by a space, / or &gt;\n\tif(!$tw.utils.parseWhiteSpace(source,pos) &amp;&amp; !(source.charAt(pos) === \&quot;/\&quot;) &amp;&amp; !(source.charAt(pos) === \&quot;&gt;\&quot;) ) {\n\t\treturn null;\n\t}\n\t// Process attributes\n\tvar attribute = $tw.utils.parseAttribute(source,pos);\n\twhile(attribute) {\n\t\tnode.attributes[attribute.name] = attribute;\n\t\tpos = attribute.end;\n\t\t// Get the next attribute\n\t\tattribute = $tw.utils.parseAttribute(source,pos);\n\t}\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for a closing slash\n\ttoken = $tw.utils.parseTokenString(source,pos,\&quot;/\&quot;);\n\tif(token) {\n\t\tpos = token.end;\n\t\tnode.isSelfClosing = true;\n\t}\n\t// Look for a greater than sign\n\ttoken = $tw.utils.parseTokenString(source,pos,\&quot;&gt;\&quot;);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Check for a required line break\n\tif(options.requireLineBreak) {\n\t\ttoken = $tw.utils.parseTokenRegExp(source,pos,/([^\\S\\n\\r]*\\r?\\n(?:[^\\S\\n\\r]*\\r?\\n|$))/g);\n\t\tif(!token) {\n\t\t\treturn null;\n\t\t}\n\t}\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\nexports.findNextTag = function(source,pos,options) {\n\t// A regexp for finding candidate HTML tags\n\tvar reLookahead = /&lt;([a-zA-Z\\-\\$]+)/g;\n\t// Find the next candidate\n\treLookahead.lastIndex = pos;\n\tvar match = reLookahead.exec(source);\n\twhile(match) {\n\t\t// Try to parse the candidate as a tag\n\t\tvar tag = this.parseTag(source,match.index,options);\n\t\t// Return success\n\t\tif(tag &amp;&amp; this.isLegalTag(tag)) {\n\t\t\treturn tag;\n\t\t}\n\t\t// Look for the next match\n\t\treLookahead.lastIndex = match.index + 1;\n\t\tmatch = reLookahead.exec(source);\n\t}\n\t// Failed\n\treturn null;\n};\n\nexports.isLegalTag = function(tag) {\n\t// Widgets are always OK\n\tif(tag.type !== \&quot;element\&quot;) {\n\t\treturn true;\n\t// If it's an HTML tag that starts with a dash then it's not legal\n\t} else if(tag.tag.charAt(0) === \&quot;-\&quot;) {\n\t\treturn false;\n\t} else {\n\t\t// Otherwise it's OK\n\t\treturn true;\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/image.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/image.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/image.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for embedding images. For example:\n\n```\n[img[https://tiddlywiki.com/fractalveg.jpg]]\n[img width=23 height=24 [https://tiddlywiki.com/fractalveg.jpg]]\n[img width={{!!width}} height={{!!height}} [https://tiddlywiki.com/fractalveg.jpg]]\n[img[Description of image|https://tiddlywiki.com/fractalveg.jpg]]\n[img[TiddlerTitle]]\n[img[Description of image|TiddlerTitle]]\n```\n\nGenerates the `&lt;$image&gt;` widget.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;image\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n};\n\nexports.findNextMatch = function(startPos) {\n\t// Find the next tag\n\tthis.nextImage = this.findNextImage(this.parser.source,startPos);\n\treturn this.nextImage ? this.nextImage.start : undefined;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.nextImage.end;\n\tvar node = {\n\t\ttype: \&quot;image\&quot;,\n\t\tattributes: this.nextImage.attributes\n\t};\n\treturn [node];\n};\n\n/*\nFind the next image from the current position\n*/\nexports.findNextImage = function(source,pos) {\n\t// A regexp for finding candidate HTML tags\n\tvar reLookahead = /(\\[img)/g;\n\t// Find the next candidate\n\treLookahead.lastIndex = pos;\n\tvar match = reLookahead.exec(source);\n\twhile(match) {\n\t\t// Try to parse the candidate as a tag\n\t\tvar tag = this.parseImage(source,match.index);\n\t\t// Return success\n\t\tif(tag) {\n\t\t\treturn tag;\n\t\t}\n\t\t// Look for the next match\n\t\treLookahead.lastIndex = match.index + 1;\n\t\tmatch = reLookahead.exec(source);\n\t}\n\t// Failed\n\treturn null;\n};\n\n/*\nLook for an image at the specified position. Returns null if not found, otherwise returns {type: \&quot;image\&quot;, attributes: [], isSelfClosing:, start:, end:,}\n*/\nexports.parseImage = function(source,pos) {\n\tvar token,\n\t\tnode = {\n\t\t\ttype: \&quot;image\&quot;,\n\t\t\tstart: pos,\n\t\t\tattributes: {}\n\t\t};\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for the `[img`\n\ttoken = $tw.utils.parseTokenString(source,pos,\&quot;[img\&quot;);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Process attributes\n\tif(source.charAt(pos) !== \&quot;[\&quot;) {\n\t\tvar attribute = $tw.utils.parseAttribute(source,pos);\n\t\twhile(attribute) {\n\t\t\tnode.attributes[attribute.name] = attribute;\n\t\t\tpos = attribute.end;\n\t\t\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t\t\tif(source.charAt(pos) !== \&quot;[\&quot;) {\n\t\t\t\t// Get the next attribute\n\t\t\t\tattribute = $tw.utils.parseAttribute(source,pos);\n\t\t\t} else {\n\t\t\t\tattribute = null;\n\t\t\t}\n\t\t}\n\t}\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for the `[` after the attributes\n\ttoken = $tw.utils.parseTokenString(source,pos,\&quot;[\&quot;);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Get the source up to the terminating `]]`\n\ttoken = $tw.utils.parseTokenRegExp(source,pos,/(?:([^|\\]]*?)\\|)?([^\\]]+?)\\]\\]/g);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\tif(token.match[1]) {\n\t\tnode.attributes.tooltip = {type: \&quot;string\&quot;, value: token.match[1].trim()};\n\t}\n\tnode.attributes.source = {type: \&quot;string\&quot;, value: (token.match[2] || \&quot;\&quot;).trim()};\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/import.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/import.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/import.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki pragma rule for importing variable definitions\n\n```\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;import\&quot;;\nexports.types = {pragma: true};\n\n/*\nInstantiate parse rule\n*/\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /^\\\\import[^\\S\\n]/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\tvar self = this;\n\t// Move past the pragma invocation\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse the filter terminated by a line break\n\tvar reMatch = /(.*)(\\r?\\n)|$/mg;\n\treMatch.lastIndex = this.parser.pos;\n\tvar match = reMatch.exec(this.parser.source);\n\tthis.parser.pos = reMatch.lastIndex;\n\t// Parse tree nodes to return\n\treturn [{\n\t\ttype: \&quot;importvariables\&quot;,\n\t\tattributes: {\n\t\t\tfilter: {type: \&quot;string\&quot;, value: match[1]}\n\t\t},\n\t\tchildren: []\n\t}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/list.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/list.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/list.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for lists. For example:\n\n```\n* This is an unordered list\n* It has two items\n\n# This is a numbered list\n## With a subitem\n# And a third item\n\n; This is a term that is being defined\n: This is the definition of that term\n```\n\nNote that lists can be nested arbitrarily:\n\n```\n#** One\n#* Two\n#** Three\n#**** Four\n#**# Five\n#**## Six\n## Seven\n### Eight\n## Nine\n```\n\nA CSS class can be applied to a list item as follows:\n\n```\n* List item one\n*.active List item two has the class `active`\n* List item three\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;list\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /([\\*#;:&gt;]+)/mg;\n};\n\nvar listTypes = {\n\t\&quot;*\&quot;: {listTag: \&quot;ul\&quot;, itemTag: \&quot;li\&quot;},\n\t\&quot;#\&quot;: {listTag: \&quot;ol\&quot;, itemTag: \&quot;li\&quot;},\n\t\&quot;;\&quot;: {listTag: \&quot;dl\&quot;, itemTag: \&quot;dt\&quot;},\n\t\&quot;:\&quot;: {listTag: \&quot;dl\&quot;, itemTag: \&quot;dd\&quot;},\n\t\&quot;&gt;\&quot;: {listTag: \&quot;blockquote\&quot;, itemTag: \&quot;div\&quot;}\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Array of parse tree nodes for the previous row of the list\n\tvar listStack = [];\n\t// Cycle through the items in the list\n\twhile(true) {\n\t\t// Match the list marker\n\t\tvar reMatch = /([\\*#;:&gt;]+)/mg;\n\t\treMatch.lastIndex = this.parser.pos;\n\t\tvar match = reMatch.exec(this.parser.source);\n\t\tif(!match || match.index !== this.parser.pos) {\n\t\t\tbreak;\n\t\t}\n\t\t// Check whether the list type of the top level matches\n\t\tvar listInfo = listTypes[match[0].charAt(0)];\n\t\tif(listStack.length &gt; 0 &amp;&amp; listStack[0].tag !== listInfo.listTag) {\n\t\t\tbreak;\n\t\t}\n\t\t// Move past the list marker\n\t\tthis.parser.pos = match.index + match[0].length;\n\t\t// Walk through the list markers for the current row\n\t\tfor(var t=0; t&lt;match[0].length; t++) {\n\t\t\tlistInfo = listTypes[match[0].charAt(t)];\n\t\t\t// Remove any stacked up element if we can't re-use it because the list type doesn't match\n\t\t\tif(listStack.length &gt; t &amp;&amp; listStack[t].tag !== listInfo.listTag) {\n\t\t\t\tlistStack.splice(t,listStack.length - t);\n\t\t\t}\n\t\t\t// Construct the list element or reuse the previous one at this level\n\t\t\tif(listStack.length &lt;= t) {\n\t\t\t\tvar listElement = {type: \&quot;element\&quot;, tag: listInfo.listTag, children: [\n\t\t\t\t\t{type: \&quot;element\&quot;, tag: listInfo.itemTag, children: []}\n\t\t\t\t]};\n\t\t\t\t// Link this list element into the last child item of the parent list item\n\t\t\t\tif(t) {\n\t\t\t\t\tvar prevListItem = listStack[t-1].children[listStack[t-1].children.length-1];\n\t\t\t\t\tprevListItem.children.push(listElement);\n\t\t\t\t}\n\t\t\t\t// Save this element in the stack\n\t\t\t\tlistStack[t] = listElement;\n\t\t\t} else if(t === (match[0].length - 1)) {\n\t\t\t\tlistStack[t].children.push({type: \&quot;element\&quot;, tag: listInfo.itemTag, children: []});\n\t\t\t}\n\t\t}\n\t\tif(listStack.length &gt; match[0].length) {\n\t\t\tlistStack.splice(match[0].length,listStack.length - match[0].length);\n\t\t}\n\t\t// Process the body of the list item into the last list item\n\t\tvar lastListChildren = listStack[listStack.length-1].children,\n\t\t\tlastListItem = lastListChildren[lastListChildren.length-1],\n\t\t\tclasses = this.parser.parseClasses();\n\t\tthis.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});\n\t\tvar tree = this.parser.parseInlineRun(/(\\r?\\n)/mg);\n\t\tlastListItem.children.push.apply(lastListItem.children,tree);\n\t\tif(classes.length &gt; 0) {\n\t\t\t$tw.utils.addClassToParseTreeNode(lastListItem,classes.join(\&quot; \&quot;));\n\t\t}\n\t\t// Consume any whitespace following the list item\n\t\tthis.parser.skipWhitespace();\n\t}\n\t// Return the root element of the list\n\treturn [listStack[0]];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/macrocallblock.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/macrocallblock.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/macrocallblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki rule for block macro calls\n\n```\n&lt;&lt;name value value2&gt;&gt;\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;macrocallblock\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /&lt;&lt;([^&gt;\\s]+)(?:\\s*)((?:[^&gt;]|(?:&gt;(?!&gt;)))*?)&gt;&gt;(?:\\r?\\n|$)/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Get all the details of the match\n\tvar macroName = this.match[1],\n\t\tparamString = this.match[2];\n\t// Move past the macro call\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar params = [],\n\t\treParam = /\\s*(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\&quot;\&quot;\&quot;([\\s\\S]*?)\&quot;\&quot;\&quot;|\&quot;([^\&quot;]*)\&quot;|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\&quot;'\\s]+)))/mg,\n\t\tparamMatch = reParam.exec(paramString);\n\twhile(paramMatch) {\n\t\t// Process this parameter\n\t\tvar paramInfo = {\n\t\t\tvalue: paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5] || paramMatch[6]\n\t\t};\n\t\tif(paramMatch[1]) {\n\t\t\tparamInfo.name = paramMatch[1];\n\t\t}\n\t\tparams.push(paramInfo);\n\t\t// Find the next match\n\t\tparamMatch = reParam.exec(paramString);\n\t}\n\treturn [{\n\t\ttype: \&quot;macrocall\&quot;,\n\t\tname: macroName,\n\t\tparams: params,\n\t\tisBlock: true\n\t}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/macrocallinline.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/macrocallinline.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/macrocallinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki rule for macro calls\n\n```\n&lt;&lt;name value value2&gt;&gt;\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;macrocallinline\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /&lt;&lt;([^\\s&gt;]+)\\s*([\\s\\S]*?)&gt;&gt;/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Get all the details of the match\n\tvar macroName = this.match[1],\n\t\tparamString = this.match[2];\n\t// Move past the macro call\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar params = [],\n\t\treParam = /\\s*(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\&quot;\&quot;\&quot;([\\s\\S]*?)\&quot;\&quot;\&quot;|\&quot;([^\&quot;]*)\&quot;|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\&quot;'\\s]+)))/mg,\n\t\tparamMatch = reParam.exec(paramString);\n\twhile(paramMatch) {\n\t\t// Process this parameter\n\t\tvar paramInfo = {\n\t\t\tvalue: paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5]|| paramMatch[6]\n\t\t};\n\t\tif(paramMatch[1]) {\n\t\t\tparamInfo.name = paramMatch[1];\n\t\t}\n\t\tparams.push(paramInfo);\n\t\t// Find the next match\n\t\tparamMatch = reParam.exec(paramString);\n\t}\n\treturn [{\n\t\ttype: \&quot;macrocall\&quot;,\n\t\tname: macroName,\n\t\tparams: params\n\t}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/macrodef.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/macrodef.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/macrodef.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki pragma rule for macro definitions\n\n```\n\\define name(param:defaultvalue,param2:defaultvalue)\ndefinition text, including $param$ markers\n\\end\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;macrodef\&quot;;\nexports.types = {pragma: true};\n\n/*\nInstantiate parse rule\n*/\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /^\\\\define\\s+([^(\\s]+)\\(\\s*([^)]*)\\)(\\s*\\r?\\n)?/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Move past the macro name and parameters\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse the parameters\n\tvar paramString = this.match[2],\n\t\tparams = [];\n\tif(paramString !== \&quot;\&quot;) {\n\t\tvar reParam = /\\s*([A-Za-z0-9\\-_]+)(?:\\s*:\\s*(?:\&quot;\&quot;\&quot;([\\s\\S]*?)\&quot;\&quot;\&quot;|\&quot;([^\&quot;]*)\&quot;|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\&quot;'\\s]+)))?/mg,\n\t\t\tparamMatch = reParam.exec(paramString);\n\t\twhile(paramMatch) {\n\t\t\t// Save the parameter details\n\t\t\tvar paramInfo = {name: paramMatch[1]},\n\t\t\t\tdefaultValue = paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5] || paramMatch[6];\n\t\t\tif(defaultValue) {\n\t\t\t\tparamInfo[\&quot;default\&quot;] = defaultValue;\n\t\t\t}\n\t\t\tparams.push(paramInfo);\n\t\t\t// Look for the next parameter\n\t\t\tparamMatch = reParam.exec(paramString);\n\t\t}\n\t}\n\t// Is this a multiline definition?\n\tvar reEnd;\n\tif(this.match[3]) {\n\t\t// If so, the end of the body is marked with \\end\n\t\treEnd = /(\\r?\\n\\\\end[^\\S\\n\\r]*(?:$|\\r?\\n))/mg;\n\t} else {\n\t\t// Otherwise, the end of the definition is marked by the end of the line\n\t\treEnd = /($|\\r?\\n)/mg;\n\t\t// Move past any whitespace\n\t\tthis.parser.pos = $tw.utils.skipWhiteSpace(this.parser.source,this.parser.pos);\n\t}\n\t// Find the end of the definition\n\treEnd.lastIndex = this.parser.pos;\n\tvar text,\n\t\tendMatch = reEnd.exec(this.parser.source);\n\tif(endMatch) {\n\t\ttext = this.parser.source.substring(this.parser.pos,endMatch.index);\n\t\tthis.parser.pos = endMatch.index + endMatch[0].length;\n\t} else {\n\t\t// We didn't find the end of the definition, so we'll make it blank\n\t\ttext = \&quot;\&quot;;\n\t}\n\t// Save the macro definition\n\treturn [{\n\t\ttype: \&quot;set\&quot;,\n\t\tattributes: {\n\t\t\tname: {type: \&quot;string\&quot;, value: this.match[1]},\n\t\t\tvalue: {type: \&quot;string\&quot;, value: text}\n\t\t},\n\t\tchildren: [],\n\t\tparams: params,\n\t\tisMacroDefinition: true\n\t}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/prettyextlink.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/prettyextlink.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/prettyextlink.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for external links. For example:\n\n```\n[ext[https://tiddlywiki.com/fractalveg.jpg]]\n[ext[Tooltip|https://tiddlywiki.com/fractalveg.jpg]]\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;prettyextlink\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n};\n\nexports.findNextMatch = function(startPos) {\n\t// Find the next tag\n\tthis.nextLink = this.findNextLink(this.parser.source,startPos);\n\treturn this.nextLink ? this.nextLink.start : undefined;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.nextLink.end;\n\treturn [this.nextLink];\n};\n\n/*\nFind the next link from the current position\n*/\nexports.findNextLink = function(source,pos) {\n\t// A regexp for finding candidate links\n\tvar reLookahead = /(\\[ext\\[)/g;\n\t// Find the next candidate\n\treLookahead.lastIndex = pos;\n\tvar match = reLookahead.exec(source);\n\twhile(match) {\n\t\t// Try to parse the candidate as a link\n\t\tvar link = this.parseLink(source,match.index);\n\t\t// Return success\n\t\tif(link) {\n\t\t\treturn link;\n\t\t}\n\t\t// Look for the next match\n\t\treLookahead.lastIndex = match.index + 1;\n\t\tmatch = reLookahead.exec(source);\n\t}\n\t// Failed\n\treturn null;\n};\n\n/*\nLook for an link at the specified position. Returns null if not found, otherwise returns {type: \&quot;element\&quot;, tag: \&quot;a\&quot;, attributes: [], isSelfClosing:, start:, end:,}\n*/\nexports.parseLink = function(source,pos) {\n\tvar token,\n\t\ttextNode = {\n\t\t\ttype: \&quot;text\&quot;\n\t\t},\n\t\tnode = {\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\ttag: \&quot;a\&quot;,\n\t\t\tstart: pos,\n\t\t\tattributes: {\n\t\t\t\t\&quot;class\&quot;: {type: \&quot;string\&quot;, value: \&quot;tc-tiddlylink-external\&quot;},\n\t\t\t},\n\t\t\tchildren: [textNode]\n\t\t};\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for the `[ext[`\n\ttoken = $tw.utils.parseTokenString(source,pos,\&quot;[ext[\&quot;);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Look ahead for the terminating `]]`\n\tvar closePos = source.indexOf(\&quot;]]\&quot;,pos);\n\tif(closePos === -1) {\n\t\treturn null;\n\t}\n\t// Look for a `|` separating the tooltip\n\tvar splitPos = source.indexOf(\&quot;|\&quot;,pos);\n\tif(splitPos === -1 || splitPos &gt; closePos) {\n\t\tsplitPos = null;\n\t}\n\t// Pull out the tooltip and URL\n\tvar tooltip, URL;\n\tif(splitPos) {\n\t\tURL = source.substring(splitPos + 1,closePos).trim();\n\t\ttextNode.text = source.substring(pos,splitPos).trim();\n\t} else {\n\t\tURL = source.substring(pos,closePos).trim();\n\t\ttextNode.text = URL;\n\t}\n\tnode.attributes.href = {type: \&quot;string\&quot;, value: URL};\n\tnode.attributes.target = {type: \&quot;string\&quot;, value: \&quot;_blank\&quot;};\n\tnode.attributes.rel = {type: \&quot;string\&quot;, value: \&quot;noopener noreferrer\&quot;};\n\t// Update the end position\n\tnode.end = closePos + 2;\n\treturn node;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/prettylink.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/prettylink.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/prettylink.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for pretty links. For example:\n\n```\n[[Introduction]]\n\n[[Link description|TiddlerTitle]]\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;prettylink\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\[\\[(.*?)(?:\\|(.*?))?\\]\\]/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Process the link\n\tvar text = this.match[1],\n\t\tlink = this.match[2] || text;\n\tif($tw.utils.isLinkExternal(link)) {\n\t\treturn [{\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\ttag: \&quot;a\&quot;,\n\t\t\tattributes: {\n\t\t\t\thref: {type: \&quot;string\&quot;, value: link},\n\t\t\t\t\&quot;class\&quot;: {type: \&quot;string\&quot;, value: \&quot;tc-tiddlylink-external\&quot;},\n\t\t\t\ttarget: {type: \&quot;string\&quot;, value: \&quot;_blank\&quot;},\n\t\t\t\trel: {type: \&quot;string\&quot;, value: \&quot;noopener noreferrer\&quot;}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \&quot;text\&quot;, text: text\n\t\t\t}]\n\t\t}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \&quot;link\&quot;,\n\t\t\tattributes: {\n\t\t\t\tto: {type: \&quot;string\&quot;, value: link}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \&quot;text\&quot;, text: text\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/quoteblock.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/quoteblock.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/quoteblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for quote blocks. For example:\n\n```\n\t&lt;&lt;&lt;.optionalClass(es) optional cited from\n\ta quote\n\t&lt;&lt;&lt;\n\t\n\t&lt;&lt;&lt;.optionalClass(es)\n\ta quote\n\t&lt;&lt;&lt; optional cited from\n```\n\nQuotes can be quoted by putting more &lt;s\n\n```\n\t&lt;&lt;&lt;\n\tQuote Level 1\n\t\n\t&lt;&lt;&lt;&lt;\n\tQuoteLevel 2\n\t&lt;&lt;&lt;&lt;\n\t\n\t&lt;&lt;&lt;\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;quoteblock\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /(&lt;&lt;&lt;+)/mg;\n};\n\nexports.parse = function() {\n\tvar classes = [\&quot;tc-quote\&quot;];\n\t// Get all the details of the match\n\tvar reEndString = \&quot;^\&quot; + this.match[1] + \&quot;(?!&lt;)\&quot;;\n\t// Move past the &lt;s\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t\n\t// Parse any classes, whitespace and then the optional cite itself\n\tclasses.push.apply(classes, this.parser.parseClasses());\n\tthis.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});\n\tvar cite = this.parser.parseInlineRun(/(\\r?\\n)/mg);\n\t// before handling the cite, parse the body of the quote\n\tvar tree= this.parser.parseBlocks(reEndString);\n\t// If we got a cite, put it before the text\n\tif(cite.length &gt; 0) {\n\t\ttree.unshift({\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\ttag: \&quot;cite\&quot;,\n\t\t\tchildren: cite\n\t\t});\n\t}\n\t// Parse any optional cite\n\tthis.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});\n\tcite = this.parser.parseInlineRun(/(\\r?\\n)/mg);\n\t// If we got a cite, push it\n\tif(cite.length &gt; 0) {\n\t\ttree.push({\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\ttag: \&quot;cite\&quot;,\n\t\t\tchildren: cite\n\t\t});\n\t}\n\t// Return the blockquote element\n\treturn [{\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;blockquote\&quot;,\n\t\tattributes: {\n\t\t\tclass: { type: \&quot;string\&quot;, value: classes.join(\&quot; \&quot;) },\n\t\t},\n\t\tchildren: tree\n\t}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/rules.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/rules.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/rules.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki pragma rule for rules specifications\n\n```\n\\rules except ruleone ruletwo rulethree\n\\rules only ruleone ruletwo rulethree\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;rules\&quot;;\nexports.types = {pragma: true};\n\n/*\nInstantiate parse rule\n*/\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /^\\\\rules[^\\S\\n]/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Move past the pragma invocation\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse whitespace delimited tokens terminated by a line break\n\tvar reMatch = /[^\\S\\n]*(\\S+)|(\\r?\\n)/mg,\n\t\ttokens = [];\n\treMatch.lastIndex = this.parser.pos;\n\tvar match = reMatch.exec(this.parser.source);\n\twhile(match &amp;&amp; match.index === this.parser.pos) {\n\t\tthis.parser.pos = reMatch.lastIndex;\n\t\t// Exit if we've got the line break\n\t\tif(match[2]) {\n\t\t\tbreak;\n\t\t}\n\t\t// Process the token\n\t\tif(match[1]) {\n\t\t\ttokens.push(match[1]);\n\t\t}\n\t\t// Match the next token\n\t\tmatch = reMatch.exec(this.parser.source);\n\t}\n\t// Process the tokens\n\tif(tokens.length &gt; 0) {\n\t\tthis.parser.amendRules(tokens[0],tokens.slice(1));\n\t}\n\t// No parse tree nodes to return\n\treturn [];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/styleblock.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/styleblock.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/styleblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for assigning styles and classes to paragraphs and other blocks. For example:\n\n```\n@@.myClass\n@@background-color:red;\nThis paragraph will have the CSS class `myClass`.\n\n* The `&lt;ul&gt;` around this list will also have the class `myClass`\n* List item 2\n\n@@\n```\n\nNote that classes and styles can be mixed subject to the rule that styles must precede classes. For example\n\n```\n@@.myFirstClass.mySecondClass\n@@width:100px;.myThirdClass\nThis is a paragraph\n@@\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;styleblock\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /@@((?:[^\\.\\r\\n\\s:]+:[^\\r\\n;]+;)+)?(?:\\.([^\\r\\n\\s]+))?\\r?\\n/mg;\n};\n\nexports.parse = function() {\n\tvar reEndString = \&quot;^@@(?:\\\\r?\\\\n)?\&quot;;\n\tvar classes = [], styles = [];\n\tdo {\n\t\t// Get the class and style\n\t\tif(this.match[1]) {\n\t\t\tstyles.push(this.match[1]);\n\t\t}\n\t\tif(this.match[2]) {\n\t\t\tclasses.push(this.match[2].split(\&quot;.\&quot;).join(\&quot; \&quot;));\n\t\t}\n\t\t// Move past the match\n\t\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t\t// Look for another line of classes and styles\n\t\tthis.match = this.matchRegExp.exec(this.parser.source);\n\t} while(this.match &amp;&amp; this.match.index === this.parser.pos);\n\t// Parse the body\n\tvar tree = this.parser.parseBlocks(reEndString);\n\tfor(var t=0; t&lt;tree.length; t++) {\n\t\tif(classes.length &gt; 0) {\n\t\t\t$tw.utils.addClassToParseTreeNode(tree[t],classes.join(\&quot; \&quot;));\n\t\t}\n\t\tif(styles.length &gt; 0) {\n\t\t\t$tw.utils.addAttributeToParseTreeNode(tree[t],\&quot;style\&quot;,styles.join(\&quot;\&quot;));\n\t\t}\n\t}\n\treturn tree;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/styleinline.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/styleinline.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/styleinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for assigning styles and classes to inline runs. For example:\n\n```\n@@.myClass This is some text with a class@@\n@@background-color:red;This is some text with a background colour@@\n@@width:100px;.myClass This is some text with a class and a width@@\n```\n\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;styleinline\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /@@((?:[^\\.\\r\\n\\s:]+:[^\\r\\n;]+;)+)?(\\.(?:[^\\r\\n\\s]+)\\s+)?/mg;\n};\n\nexports.parse = function() {\n\tvar reEnd = /@@/g;\n\t// Get the styles and class\n\tvar stylesString = this.match[1],\n\t\tclassString = this.match[2] ? this.match[2].split(\&quot;.\&quot;).join(\&quot; \&quot;) : undefined;\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse the run up to the terminator\n\tvar tree = this.parser.parseInlineRun(reEnd,{eatTerminator: true});\n\t// Return the classed span\n\tvar node = {\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;span\&quot;,\n\t\tattributes: {\n\t\t\t\&quot;class\&quot;: {type: \&quot;string\&quot;, value: \&quot;tc-inline-style\&quot;}\n\t\t},\n\t\tchildren: tree\n\t};\n\tif(classString) {\n\t\t$tw.utils.addClassToParseTreeNode(node,classString);\n\t}\n\tif(stylesString) {\n\t\t$tw.utils.addAttributeToParseTreeNode(node,\&quot;style\&quot;,stylesString);\n\t}\n\treturn [node];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/syslink.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/syslink.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/syslink.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for system tiddler links.\nCan be suppressed preceding them with `~`.\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;syslink\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = new RegExp(\n\t\t\&quot;~?\\\\$:\\\\/[\&quot; +\n\t\t$tw.config.textPrimitives.anyLetter.substr(1,$tw.config.textPrimitives.anyLetter.length - 2) +\n\t\t\&quot;\\/._-]+\&quot;,\n\t\t\&quot;mg\&quot;\n\t);\n};\n\nexports.parse = function() {\n\tvar match = this.match[0];\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Create the link unless it is suppressed\n\tif(match.substr(0,1) === \&quot;~\&quot;) {\n\t\treturn [{type: \&quot;text\&quot;, text: match.substr(1)}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \&quot;link\&quot;,\n\t\t\tattributes: {\n\t\t\t\tto: {type: \&quot;string\&quot;, value: match}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \&quot;text\&quot;,\n\t\t\t\ttext: match\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/table.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/table.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/table.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for tables.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;table\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /^\\|(?:[^\\n]*)\\|(?:[fhck]?)\\r?(?:\\n|$)/mg;\n};\n\nvar processRow = function(prevColumns) {\n\tvar cellRegExp = /(?:\\|([^\\n\\|]*)\\|)|(\\|[fhck]?\\r?(?:\\n|$))/mg,\n\t\tcellTermRegExp = /((?:\\x20*)\\|)/mg,\n\t\ttree = [],\n\t\tcol = 0,\n\t\tcolSpanCount = 1,\n\t\tprevCell,\n\t\tvAlign;\n\t// Match a single cell\n\tcellRegExp.lastIndex = this.parser.pos;\n\tvar cellMatch = cellRegExp.exec(this.parser.source);\n\twhile(cellMatch &amp;&amp; cellMatch.index === this.parser.pos) {\n\t\tif(cellMatch[1] === \&quot;~\&quot;) {\n\t\t\t// Rowspan\n\t\t\tvar last = prevColumns[col];\n\t\t\tif(last) {\n\t\t\t\tlast.rowSpanCount++;\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(last.element,\&quot;rowspan\&quot;,last.rowSpanCount);\n\t\t\t\tvAlign = $tw.utils.getAttributeValueFromParseTreeNode(last.element,\&quot;valign\&quot;,\&quot;center\&quot;);\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(last.element,\&quot;valign\&quot;,vAlign);\n\t\t\t\tif(colSpanCount &gt; 1) {\n\t\t\t\t\t$tw.utils.addAttributeToParseTreeNode(last.element,\&quot;colspan\&quot;,colSpanCount);\n\t\t\t\t\tcolSpanCount = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Move to just before the `|` terminating the cell\n\t\t\tthis.parser.pos = cellRegExp.lastIndex - 1;\n\t\t} else if(cellMatch[1] === \&quot;&gt;\&quot;) {\n\t\t\t// Colspan\n\t\t\tcolSpanCount++;\n\t\t\t// Move to just before the `|` terminating the cell\n\t\t\tthis.parser.pos = cellRegExp.lastIndex - 1;\n\t\t} else if(cellMatch[1] === \&quot;&lt;\&quot; &amp;&amp; prevCell) {\n\t\t\tcolSpanCount = 1 + $tw.utils.getAttributeValueFromParseTreeNode(prevCell,\&quot;colspan\&quot;,1);\n\t\t\t$tw.utils.addAttributeToParseTreeNode(prevCell,\&quot;colspan\&quot;,colSpanCount);\n\t\t\tcolSpanCount = 1;\n\t\t\t// Move to just before the `|` terminating the cell\n\t\t\tthis.parser.pos = cellRegExp.lastIndex - 1;\n\t\t} else if(cellMatch[2]) {\n\t\t\t// End of row\n\t\t\tif(prevCell &amp;&amp; colSpanCount &gt; 1) {\n\t\t\t\tif(prevCell.attributes &amp;&amp; prevCell.attributes &amp;&amp; prevCell.attributes.colspan) {\n\t\t\t\t\t\tcolSpanCount += prevCell.attributes.colspan.value;\n\t\t\t\t} else {\n\t\t\t\t\tcolSpanCount -= 1;\n\t\t\t\t}\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(prevCell,\&quot;colspan\&quot;,colSpanCount);\n\t\t\t}\n\t\t\tthis.parser.pos = cellRegExp.lastIndex - 1;\n\t\t\tbreak;\n\t\t} else {\n\t\t\t// For ordinary cells, step beyond the opening `|`\n\t\t\tthis.parser.pos++;\n\t\t\t// Look for a space at the start of the cell\n\t\t\tvar spaceLeft = false;\n\t\t\tvAlign = null;\n\t\t\tif(this.parser.source.substr(this.parser.pos).search(/^\\^([^\\^]|\\^\\^)/) === 0) {\n\t\t\t\tvAlign = \&quot;top\&quot;;\n\t\t\t} else if(this.parser.source.substr(this.parser.pos).search(/^,([^,]|,,)/) === 0) {\n\t\t\t\tvAlign = \&quot;bottom\&quot;;\n\t\t\t}\n\t\t\tif(vAlign) {\n\t\t\t\tthis.parser.pos++;\n\t\t\t}\n\t\t\tvar chr = this.parser.source.substr(this.parser.pos,1);\n\t\t\twhile(chr === \&quot; \&quot;) {\n\t\t\t\tspaceLeft = true;\n\t\t\t\tthis.parser.pos++;\n\t\t\t\tchr = this.parser.source.substr(this.parser.pos,1);\n\t\t\t}\n\t\t\t// Check whether this is a heading cell\n\t\t\tvar cell;\n\t\t\tif(chr === \&quot;!\&quot;) {\n\t\t\t\tthis.parser.pos++;\n\t\t\t\tcell = {type: \&quot;element\&quot;, tag: \&quot;th\&quot;, children: []};\n\t\t\t} else {\n\t\t\t\tcell = {type: \&quot;element\&quot;, tag: \&quot;td\&quot;, children: []};\n\t\t\t}\n\t\t\ttree.push(cell);\n\t\t\t// Record information about this cell\n\t\t\tprevCell = cell;\n\t\t\tprevColumns[col] = {rowSpanCount:1,element:cell};\n\t\t\t// Check for a colspan\n\t\t\tif(colSpanCount &gt; 1) {\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\&quot;colspan\&quot;,colSpanCount);\n\t\t\t\tcolSpanCount = 1;\n\t\t\t}\n\t\t\t// Parse the cell\n\t\t\tcell.children = this.parser.parseInlineRun(cellTermRegExp,{eatTerminator: true});\n\t\t\t// Set the alignment for the cell\n\t\t\tif(vAlign) {\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\&quot;valign\&quot;,vAlign);\n\t\t\t}\n\t\t\tif(this.parser.source.substr(this.parser.pos - 2,1) === \&quot; \&quot;) { // spaceRight\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\&quot;align\&quot;,spaceLeft ? \&quot;center\&quot; : \&quot;left\&quot;);\n\t\t\t} else if(spaceLeft) {\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\&quot;align\&quot;,\&quot;right\&quot;);\n\t\t\t}\n\t\t\t// Move back to the closing `|`\n\t\t\tthis.parser.pos--;\n\t\t}\n\t\tcol++;\n\t\tcellRegExp.lastIndex = this.parser.pos;\n\t\tcellMatch = cellRegExp.exec(this.parser.source);\n\t}\n\treturn tree;\n};\n\nexports.parse = function() {\n\tvar rowContainerTypes = {\&quot;c\&quot;:\&quot;caption\&quot;, \&quot;h\&quot;:\&quot;thead\&quot;, \&quot;\&quot;:\&quot;tbody\&quot;, \&quot;f\&quot;:\&quot;tfoot\&quot;},\n\t\ttable = {type: \&quot;element\&quot;, tag: \&quot;table\&quot;, children: []},\n\t\trowRegExp = /^\\|([^\\n]*)\\|([fhck]?)\\r?(?:\\n|$)/mg,\n\t\trowTermRegExp = /(\\|(?:[fhck]?)\\r?(?:\\n|$))/mg,\n\t\tprevColumns = [],\n\t\tcurrRowType,\n\t\trowContainer,\n\t\trowCount = 0;\n\t// Match the row\n\trowRegExp.lastIndex = this.parser.pos;\n\tvar rowMatch = rowRegExp.exec(this.parser.source);\n\twhile(rowMatch &amp;&amp; rowMatch.index === this.parser.pos) {\n\t\tvar rowType = rowMatch[2];\n\t\t// Check if it is a class assignment\n\t\tif(rowType === \&quot;k\&quot;) {\n\t\t\t$tw.utils.addClassToParseTreeNode(table,rowMatch[1]);\n\t\t\tthis.parser.pos = rowMatch.index + rowMatch[0].length;\n\t\t} else {\n\t\t\t// Otherwise, create a new row if this one is of a different type\n\t\t\tif(rowType !== currRowType) {\n\t\t\t\trowContainer = {type: \&quot;element\&quot;, tag: rowContainerTypes[rowType], children: []};\n\t\t\t\ttable.children.push(rowContainer);\n\t\t\t\tcurrRowType = rowType;\n\t\t\t}\n\t\t\t// Is this a caption row?\n\t\t\tif(currRowType === \&quot;c\&quot;) {\n\t\t\t\t// If so, move past the opening `|` of the row\n\t\t\t\tthis.parser.pos++;\n\t\t\t\t// Move the caption to the first row if it isn't already\n\t\t\t\tif(table.children.length !== 1) {\n\t\t\t\t\ttable.children.pop(); // Take rowContainer out of the children array\n\t\t\t\t\ttable.children.splice(0,0,rowContainer); // Insert it at the bottom\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// Set the alignment - TODO: figure out why TW did this\n//\t\t\t\trowContainer.attributes.align = rowCount === 0 ? \&quot;top\&quot; : \&quot;bottom\&quot;;\n\t\t\t\t// Parse the caption\n\t\t\t\trowContainer.children = this.parser.parseInlineRun(rowTermRegExp,{eatTerminator: true});\n\t\t\t} else {\n\t\t\t\t// Create the row\n\t\t\t\tvar theRow = {type: \&quot;element\&quot;, tag: \&quot;tr\&quot;, children: []};\n\t\t\t\t$tw.utils.addClassToParseTreeNode(theRow,rowCount%2 ? \&quot;oddRow\&quot; : \&quot;evenRow\&quot;);\n\t\t\t\trowContainer.children.push(theRow);\n\t\t\t\t// Process the row\n\t\t\t\ttheRow.children = processRow.call(this,prevColumns);\n\t\t\t\tthis.parser.pos = rowMatch.index + rowMatch[0].length;\n\t\t\t\t// Increment the row count\n\t\t\t\trowCount++;\n\t\t\t}\n\t\t}\n\t\trowMatch = rowRegExp.exec(this.parser.source);\n\t}\n\treturn [table];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/transcludeblock.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/transcludeblock.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/transcludeblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for block-level transclusion. For example:\n\n```\n{{MyTiddler}}\n{{MyTiddler||TemplateTitle}}\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;transcludeblock\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\{\\{([^\\{\\}\\|]*)(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}(?:\\r?\\n|$)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Get the match details\n\tvar template = $tw.utils.trim(this.match[2]),\n\t\ttextRef = $tw.utils.trim(this.match[1]);\n\t// Prepare the transclude widget\n\tvar transcludeNode = {\n\t\t\ttype: \&quot;transclude\&quot;,\n\t\t\tattributes: {},\n\t\t\tisBlock: true\n\t\t};\n\t// Prepare the tiddler widget\n\tvar tr, targetTitle, targetField, targetIndex, tiddlerNode;\n\tif(textRef) {\n\t\ttr = $tw.utils.parseTextReference(textRef);\n\t\ttargetTitle = tr.title;\n\t\ttargetField = tr.field;\n\t\ttargetIndex = tr.index;\n\t\ttiddlerNode = {\n\t\t\ttype: \&quot;tiddler\&quot;,\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \&quot;string\&quot;, value: targetTitle}\n\t\t\t},\n\t\t\tisBlock: true,\n\t\t\tchildren: [transcludeNode]\n\t\t};\n\t}\n\tif(template) {\n\t\ttranscludeNode.attributes.tiddler = {type: \&quot;string\&quot;, value: template};\n\t\tif(textRef) {\n\t\t\treturn [tiddlerNode];\n\t\t} else {\n\t\t\treturn [transcludeNode];\n\t\t}\n\t} else {\n\t\tif(textRef) {\n\t\t\ttranscludeNode.attributes.tiddler = {type: \&quot;string\&quot;, value: targetTitle};\n\t\t\tif(targetField) {\n\t\t\t\ttranscludeNode.attributes.field = {type: \&quot;string\&quot;, value: targetField};\n\t\t\t}\n\t\t\tif(targetIndex) {\n\t\t\t\ttranscludeNode.attributes.index = {type: \&quot;string\&quot;, value: targetIndex};\n\t\t\t}\n\t\t\treturn [tiddlerNode];\n\t\t} else {\n\t\t\treturn [transcludeNode];\n\t\t}\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/transcludeinline.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/transcludeinline.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/transcludeinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for inline-level transclusion. For example:\n\n```\n{{MyTiddler}}\n{{MyTiddler||TemplateTitle}}\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;transcludeinline\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\{\\{([^\\{\\}\\|]*)(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Get the match details\n\tvar template = $tw.utils.trim(this.match[2]),\n\t\ttextRef = $tw.utils.trim(this.match[1]);\n\t// Prepare the transclude widget\n\tvar transcludeNode = {\n\t\t\ttype: \&quot;transclude\&quot;,\n\t\t\tattributes: {}\n\t\t};\n\t// Prepare the tiddler widget\n\tvar tr, targetTitle, targetField, targetIndex, tiddlerNode;\n\tif(textRef) {\n\t\ttr = $tw.utils.parseTextReference(textRef);\n\t\ttargetTitle = tr.title;\n\t\ttargetField = tr.field;\n\t\ttargetIndex = tr.index;\n\t\ttiddlerNode = {\n\t\t\ttype: \&quot;tiddler\&quot;,\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \&quot;string\&quot;, value: targetTitle}\n\t\t\t},\n\t\t\tchildren: [transcludeNode]\n\t\t};\n\t}\n\tif(template) {\n\t\ttranscludeNode.attributes.tiddler = {type: \&quot;string\&quot;, value: template};\n\t\tif(textRef) {\n\t\t\treturn [tiddlerNode];\n\t\t} else {\n\t\t\treturn [transcludeNode];\n\t\t}\n\t} else {\n\t\tif(textRef) {\n\t\t\ttranscludeNode.attributes.tiddler = {type: \&quot;string\&quot;, value: targetTitle};\n\t\t\tif(targetField) {\n\t\t\t\ttranscludeNode.attributes.field = {type: \&quot;string\&quot;, value: targetField};\n\t\t\t}\n\t\t\tif(targetIndex) {\n\t\t\t\ttranscludeNode.attributes.index = {type: \&quot;string\&quot;, value: targetIndex};\n\t\t\t}\n\t\t\treturn [tiddlerNode];\n\t\t} else {\n\t\t\treturn [transcludeNode];\n\t\t}\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/typedblock.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/typedblock.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/typedblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for typed blocks. For example:\n\n```\n$$$.js\nThis will be rendered as JavaScript\n$$$\n\n$$$.svg\n&lt;svg xmlns=\&quot;http://www.w3.org/2000/svg\&quot; width=\&quot;150\&quot; height=\&quot;100\&quot;&gt;\n &lt;circle cx=\&quot;100\&quot; cy=\&quot;50\&quot; r=\&quot;40\&quot; stroke=\&quot;black\&quot; stroke-width=\&quot;2\&quot; fill=\&quot;red\&quot; /&gt;\n&lt;/svg&gt;\n$$$\n\n$$$text/vnd.tiddlywiki&gt;text/html\nThis will be rendered as an //HTML representation// of WikiText\n$$$\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;);\n\nexports.name = \&quot;typedblock\&quot;;\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\$\\$\\$([^ &gt;\\r\\n]*)(?: *&gt; *([^ \\r\\n]+))?\\r?\\n/mg;\n};\n\nexports.parse = function() {\n\tvar reEnd = /\\r?\\n\\$\\$\\$\\r?(?:\\n|$)/mg;\n\t// Save the type\n\tvar parseType = this.match[1],\n\t\trenderType = this.match[2];\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Look for the end of the block\n\treEnd.lastIndex = this.parser.pos;\n\tvar match = reEnd.exec(this.parser.source),\n\t\ttext;\n\t// Process the block\n\tif(match) {\n\t\ttext = this.parser.source.substring(this.parser.pos,match.index);\n\t\tthis.parser.pos = match.index + match[0].length;\n\t} else {\n\t\ttext = this.parser.source.substr(this.parser.pos);\n\t\tthis.parser.pos = this.parser.sourceLength;\n\t}\n\t// Parse the block according to the specified type\n\tvar parser = this.parser.wiki.parseText(parseType,text,{defaultType: \&quot;text/plain\&quot;});\n\t// If there's no render type, just return the parse tree\n\tif(!renderType) {\n\t\treturn parser.tree;\n\t} else {\n\t\t// Otherwise, render to the rendertype and return in a &lt;PRE&gt; tag\n\t\tvar widgetNode = this.parser.wiki.makeWidget(parser),\n\t\t\tcontainer = $tw.fakeDocument.createElement(\&quot;div\&quot;);\n\t\twidgetNode.render(container,null);\n\t\ttext = renderType === \&quot;text/html\&quot; ? container.innerHTML : container.textContent;\n\t\treturn [{\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\ttag: \&quot;pre\&quot;,\n\t\t\tchildren: [{\n\t\t\t\ttype: \&quot;text\&quot;,\n\t\t\t\ttext: text\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/whitespace.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/whitespace.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/whitespace.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki pragma rule for whitespace specifications\n\n```\n\\whitespace trim\n\\whitespace notrim\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;whitespace\&quot;;\nexports.types = {pragma: true};\n\n/*\nInstantiate parse rule\n*/\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /^\\\\whitespace[^\\S\\n]/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\tvar self = this;\n\t// Move past the pragma invocation\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse whitespace delimited tokens terminated by a line break\n\tvar reMatch = /[^\\S\\n]*(\\S+)|(\\r?\\n)/mg,\n\t\ttokens = [];\n\treMatch.lastIndex = this.parser.pos;\n\tvar match = reMatch.exec(this.parser.source);\n\twhile(match &amp;&amp; match.index === this.parser.pos) {\n\t\tthis.parser.pos = reMatch.lastIndex;\n\t\t// Exit if we've got the line break\n\t\tif(match[2]) {\n\t\t\tbreak;\n\t\t}\n\t\t// Process the token\n\t\tif(match[1]) {\n\t\t\ttokens.push(match[1]);\n\t\t}\n\t\t// Match the next token\n\t\tmatch = reMatch.exec(this.parser.source);\n\t}\n\t// Process the tokens\n\t$tw.utils.each(tokens,function(token) {\n\t\tswitch(token) {\n\t\t\tcase \&quot;trim\&quot;:\n\t\t\t\tself.parser.configTrimWhiteSpace = true;\n\t\t\t\tbreak;\n\t\t\tcase \&quot;notrim\&quot;:\n\t\t\t\tself.parser.configTrimWhiteSpace = false;\n\t\t\t\tbreak;\n\t\t}\n\t});\n\t// No parse tree nodes to return\n\treturn [];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/wikilink.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/wikilink.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/wikilink.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for wiki links. For example:\n\n```\nAWikiLink\nAnotherLink\n~SuppressedLink\n```\n\nPrecede a camel case word with `~` to prevent it from being recognised as a link.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = \&quot;wikilink\&quot;;\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = new RegExp($tw.config.textPrimitives.unWikiLink + \&quot;?\&quot; + $tw.config.textPrimitives.wikiLink,\&quot;mg\&quot;);\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Get the details of the match\n\tvar linkText = this.match[0];\n\t// Move past the macro call\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// If the link starts with the unwikilink character then just output it as plain text\n\tif(linkText.substr(0,1) === $tw.config.textPrimitives.unWikiLink) {\n\t\treturn [{type: \&quot;text\&quot;, text: linkText.substr(1)}];\n\t}\n\t// If the link has been preceded with a blocked letter then don't treat it as a link\n\tif(this.match.index &gt; 0) {\n\t\tvar preRegExp = new RegExp($tw.config.textPrimitives.blockPrefixLetters,\&quot;mg\&quot;);\n\t\tpreRegExp.lastIndex = this.match.index-1;\n\t\tvar preMatch = preRegExp.exec(this.parser.source);\n\t\tif(preMatch &amp;&amp; preMatch.index === this.match.index-1) {\n\t\t\treturn [{type: \&quot;text\&quot;, text: linkText}];\n\t\t}\n\t}\n\treturn [{\n\t\ttype: \&quot;link\&quot;,\n\t\tattributes: {\n\t\t\tto: {type: \&quot;string\&quot;, value: linkText}\n\t\t},\n\t\tchildren: [{\n\t\t\ttype: \&quot;text\&quot;,\n\t\t\ttext: linkText\n\t\t}]\n\t}];\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;
},
&quot;$:/core/modules/parsers/wikiparser/wikiparser.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/wikiparser.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/wikiparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe wiki text parser processes blocks of source text into a parse tree.\n\nThe parse tree is made up of nested arrays of these JavaScript objects:\n\n\t{type: \&quot;element\&quot;, tag: &lt;string&gt;, attributes: {}, children: []} - an HTML element\n\t{type: \&quot;text\&quot;, text: &lt;string&gt;} - a text node\n\t{type: \&quot;entity\&quot;, value: &lt;string&gt;} - an entity\n\t{type: \&quot;raw\&quot;, html: &lt;string&gt;} - raw HTML\n\nAttributes are stored as hashmaps of the following objects:\n\n\t{type: \&quot;string\&quot;, value: &lt;string&gt;} - literal string\n\t{type: \&quot;indirect\&quot;, textReference: &lt;textReference&gt;} - indirect through a text reference\n\t{type: \&quot;macro\&quot;, macro: &lt;TBD&gt;} - indirect through a macro invocation\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar WikiParser = function(type,text,options) {\n\tthis.wiki = options.wiki;\n\tvar self = this;\n\t// Check for an externally linked tiddler\n\tif($tw.browser &amp;&amp; (text || \&quot;\&quot;) === \&quot;\&quot; &amp;&amp; options._canonical_uri) {\n\t\tthis.loadRemoteTiddler(options._canonical_uri);\n\t\ttext = $tw.language.getRawString(\&quot;LazyLoadingWarning\&quot;);\n\t}\n\t// Initialise the classes if we don't have them already\n\tif(!this.pragmaRuleClasses) {\n\t\tWikiParser.prototype.pragmaRuleClasses = $tw.modules.createClassesFromModules(\&quot;wikirule\&quot;,\&quot;pragma\&quot;,$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.pragmaRuleClasses,\&quot;$:/config/WikiParserRules/Pragmas/\&quot;);\n\t}\n\tif(!this.blockRuleClasses) {\n\t\tWikiParser.prototype.blockRuleClasses = $tw.modules.createClassesFromModules(\&quot;wikirule\&quot;,\&quot;block\&quot;,$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.blockRuleClasses,\&quot;$:/config/WikiParserRules/Block/\&quot;);\n\t}\n\tif(!this.inlineRuleClasses) {\n\t\tWikiParser.prototype.inlineRuleClasses = $tw.modules.createClassesFromModules(\&quot;wikirule\&quot;,\&quot;inline\&quot;,$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.inlineRuleClasses,\&quot;$:/config/WikiParserRules/Inline/\&quot;);\n\t}\n\t// Save the parse text\n\tthis.type = type || \&quot;text/vnd.tiddlywiki\&quot;;\n\tthis.source = text || \&quot;\&quot;;\n\tthis.sourceLength = this.source.length;\n\t// Flag for ignoring whitespace\n\tthis.configTrimWhiteSpace = false;\n\t// Set current parse position\n\tthis.pos = 0;\n\t// Instantiate the pragma parse rules\n\tthis.pragmaRules = this.instantiateRules(this.pragmaRuleClasses,\&quot;pragma\&quot;,0);\n\t// Instantiate the parser block and inline rules\n\tthis.blockRules = this.instantiateRules(this.blockRuleClasses,\&quot;block\&quot;,0);\n\tthis.inlineRules = this.instantiateRules(this.inlineRuleClasses,\&quot;inline\&quot;,0);\n\t// Parse any pragmas\n\tthis.tree = [];\n\tvar topBranch = this.parsePragmas();\n\t// Parse the text into inline runs or blocks\n\tif(options.parseAsInline) {\n\t\ttopBranch.push.apply(topBranch,this.parseInlineRun());\n\t} else {\n\t\ttopBranch.push.apply(topBranch,this.parseBlocks());\n\t}\n\t// Return the parse tree\n};\n\n/*\n*/\nWikiParser.prototype.loadRemoteTiddler = function(url) {\n\tvar self = this;\n\t$tw.utils.httpRequest({\n\t\turl: url,\n\t\ttype: \&quot;GET\&quot;,\n\t\tcallback: function(err,data) {\n\t\t\tif(!err) {\n\t\t\t\tvar tiddlers = self.wiki.deserializeTiddlers(\&quot;.tid\&quot;,data,self.wiki.getCreationFields());\n\t\t\t\t$tw.utils.each(tiddlers,function(tiddler) {\n\t\t\t\t\ttiddler[\&quot;_canonical_uri\&quot;] = url;\n\t\t\t\t});\n\t\t\t\tif(tiddlers) {\n\t\t\t\t\tself.wiki.addTiddlers(tiddlers);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\n*/\nWikiParser.prototype.setupRules = function(proto,configPrefix) {\n\tvar self = this;\n\tif(!$tw.safemode) {\n\t\t$tw.utils.each(proto,function(object,name) {\n\t\t\tif(self.wiki.getTiddlerText(configPrefix + name,\&quot;enable\&quot;) !== \&quot;enable\&quot;) {\n\t\t\t\tdelete proto[name];\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nInstantiate an array of parse rules\n*/\nWikiParser.prototype.instantiateRules = function(classes,type,startPos) {\n\tvar rulesInfo = [],\n\t\tself = this;\n\t$tw.utils.each(classes,function(RuleClass) {\n\t\t// Instantiate the rule\n\t\tvar rule = new RuleClass(self);\n\t\trule.is = {};\n\t\trule.is[type] = true;\n\t\trule.init(self);\n\t\tvar matchIndex = rule.findNextMatch(startPos);\n\t\tif(matchIndex !== undefined) {\n\t\t\trulesInfo.push({\n\t\t\t\trule: rule,\n\t\t\t\tmatchIndex: matchIndex\n\t\t\t});\n\t\t}\n\t});\n\treturn rulesInfo;\n};\n\n/*\nSkip any whitespace at the current position. Options are:\n\ttreatNewlinesAsNonWhitespace: true if newlines are NOT to be treated as whitespace\n*/\nWikiParser.prototype.skipWhitespace = function(options) {\n\toptions = options || {};\n\tvar whitespaceRegExp = options.treatNewlinesAsNonWhitespace ? /([^\\S\\n]+)/mg : /(\\s+)/mg;\n\twhitespaceRegExp.lastIndex = this.pos;\n\tvar whitespaceMatch = whitespaceRegExp.exec(this.source);\n\tif(whitespaceMatch &amp;&amp; whitespaceMatch.index === this.pos) {\n\t\tthis.pos = whitespaceRegExp.lastIndex;\n\t}\n};\n\n/*\nGet the next match out of an array of parse rule instances\n*/\nWikiParser.prototype.findNextMatch = function(rules,startPos) {\n\t// Find the best matching rule by finding the closest match position\n\tvar matchingRule,\n\t\tmatchingRulePos = this.sourceLength;\n\t// Step through each rule\n\tfor(var t=0; t&lt;rules.length; t++) {\n\t\tvar ruleInfo = rules[t];\n\t\t// Ask the rule to get the next match if we've moved past the current one\n\t\tif(ruleInfo.matchIndex !== undefined &amp;&amp; ruleInfo.matchIndex &lt; startPos) {\n\t\t\truleInfo.matchIndex = ruleInfo.rule.findNextMatch(startPos);\n\t\t}\n\t\t// Adopt this match if it's closer than the current best match\n\t\tif(ruleInfo.matchIndex !== undefined &amp;&amp; ruleInfo.matchIndex &lt;= matchingRulePos) {\n\t\t\tmatchingRule = ruleInfo;\n\t\t\tmatchingRulePos = ruleInfo.matchIndex;\n\t\t}\n\t}\n\treturn matchingRule;\n};\n\n/*\nParse any pragmas at the beginning of a block of parse text\n*/\nWikiParser.prototype.parsePragmas = function() {\n\tvar currentTreeBranch = this.tree;\n\twhile(true) {\n\t\t// Skip whitespace\n\t\tthis.skipWhitespace();\n\t\t// Check for the end of the text\n\t\tif(this.pos &gt;= this.sourceLength) {\n\t\t\tbreak;\n\t\t}\n\t\t// Check if we've arrived at a pragma rule match\n\t\tvar nextMatch = this.findNextMatch(this.pragmaRules,this.pos);\n\t\t// If not, just exit\n\t\tif(!nextMatch || nextMatch.matchIndex !== this.pos) {\n\t\t\tbreak;\n\t\t}\n\t\t// Process the pragma rule\n\t\tvar subTree = nextMatch.rule.parse();\n\t\tif(subTree.length &gt; 0) {\n\t\t\t// Quick hack; we only cope with a single parse tree node being returned, which is true at the moment\n\t\t\tcurrentTreeBranch.push.apply(currentTreeBranch,subTree);\n\t\t\tsubTree[0].children = [];\n\t\t\tcurrentTreeBranch = subTree[0].children;\n\t\t}\n\t}\n\treturn currentTreeBranch;\n};\n\n/*\nParse a block from the current position\n\tterminatorRegExpString: optional regular expression string that identifies the end of plain paragraphs. Must not include capturing parenthesis\n*/\nWikiParser.prototype.parseBlock = function(terminatorRegExpString) {\n\tvar terminatorRegExp = terminatorRegExpString ? new RegExp(\&quot;(\&quot; + terminatorRegExpString + \&quot;|\\\\r?\\\\n\\\\r?\\\\n)\&quot;,\&quot;mg\&quot;) : /(\\r?\\n\\r?\\n)/mg;\n\tthis.skipWhitespace();\n\tif(this.pos &gt;= this.sourceLength) {\n\t\treturn [];\n\t}\n\t// Look for a block rule that applies at the current position\n\tvar nextMatch = this.findNextMatch(this.blockRules,this.pos);\n\tif(nextMatch &amp;&amp; nextMatch.matchIndex === this.pos) {\n\t\treturn nextMatch.rule.parse();\n\t}\n\t// Treat it as a paragraph if we didn't find a block rule\n\treturn [{type: \&quot;element\&quot;, tag: \&quot;p\&quot;, children: this.parseInlineRun(terminatorRegExp)}];\n};\n\n/*\nParse a series of blocks of text until a terminating regexp is encountered or the end of the text\n\tterminatorRegExpString: terminating regular expression\n*/\nWikiParser.prototype.parseBlocks = function(terminatorRegExpString) {\n\tif(terminatorRegExpString) {\n\t\treturn this.parseBlocksTerminated(terminatorRegExpString);\n\t} else {\n\t\treturn this.parseBlocksUnterminated();\n\t}\n};\n\n/*\nParse a block from the current position to the end of the text\n*/\nWikiParser.prototype.parseBlocksUnterminated = function() {\n\tvar tree = [];\n\twhile(this.pos &lt; this.sourceLength) {\n\t\ttree.push.apply(tree,this.parseBlock());\n\t}\n\treturn tree;\n};\n\n/*\nParse blocks of text until a terminating regexp is encountered\n*/\nWikiParser.prototype.parseBlocksTerminated = function(terminatorRegExpString) {\n\tvar terminatorRegExp = new RegExp(\&quot;(\&quot; + terminatorRegExpString + \&quot;)\&quot;,\&quot;mg\&quot;),\n\t\ttree = [];\n\t// Skip any whitespace\n\tthis.skipWhitespace();\n\t// Check if we've got the end marker\n\tterminatorRegExp.lastIndex = this.pos;\n\tvar match = terminatorRegExp.exec(this.source);\n\t// Parse the text into blocks\n\twhile(this.pos &lt; this.sourceLength &amp;&amp; !(match &amp;&amp; match.index === this.pos)) {\n\t\tvar blocks = this.parseBlock(terminatorRegExpString);\n\t\ttree.push.apply(tree,blocks);\n\t\t// Skip any whitespace\n\t\tthis.skipWhitespace();\n\t\t// Check if we've got the end marker\n\t\tterminatorRegExp.lastIndex = this.pos;\n\t\tmatch = terminatorRegExp.exec(this.source);\n\t}\n\tif(match &amp;&amp; match.index === this.pos) {\n\t\tthis.pos = match.index + match[0].length;\n\t}\n\treturn tree;\n};\n\n/*\nParse a run of text at the current position\n\tterminatorRegExp: a regexp at which to stop the run\n\toptions: see below\nOptions available:\n\teatTerminator: move the parse position past any encountered terminator (default false)\n*/\nWikiParser.prototype.parseInlineRun = function(terminatorRegExp,options) {\n\tif(terminatorRegExp) {\n\t\treturn this.parseInlineRunTerminated(terminatorRegExp,options);\n\t} else {\n\t\treturn this.parseInlineRunUnterminated(options);\n\t}\n};\n\nWikiParser.prototype.parseInlineRunUnterminated = function(options) {\n\tvar tree = [];\n\t// Find the next occurrence of an inline rule\n\tvar nextMatch = this.findNextMatch(this.inlineRules,this.pos);\n\t// Loop around the matches until we've reached the end of the text\n\twhile(this.pos &lt; this.sourceLength &amp;&amp; nextMatch) {\n\t\t// Process the text preceding the run rule\n\t\tif(nextMatch.matchIndex &gt; this.pos) {\n\t\t\tthis.pushTextWidget(tree,this.source.substring(this.pos,nextMatch.matchIndex));\n\t\t\tthis.pos = nextMatch.matchIndex;\n\t\t}\n\t\t// Process the run rule\n\t\ttree.push.apply(tree,nextMatch.rule.parse());\n\t\t// Look for the next run rule\n\t\tnextMatch = this.findNextMatch(this.inlineRules,this.pos);\n\t}\n\t// Process the remaining text\n\tif(this.pos &lt; this.sourceLength) {\n\t\tthis.pushTextWidget(tree,this.source.substr(this.pos));\n\t}\n\tthis.pos = this.sourceLength;\n\treturn tree;\n};\n\nWikiParser.prototype.parseInlineRunTerminated = function(terminatorRegExp,options) {\n\toptions = options || {};\n\tvar tree = [];\n\t// Find the next occurrence of the terminator\n\tterminatorRegExp.lastIndex = this.pos;\n\tvar terminatorMatch = terminatorRegExp.exec(this.source);\n\t// Find the next occurrence of a inlinerule\n\tvar inlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos);\n\t// Loop around until we've reached the end of the text\n\twhile(this.pos &lt; this.sourceLength &amp;&amp; (terminatorMatch || inlineRuleMatch)) {\n\t\t// Return if we've found the terminator, and it precedes any inline rule match\n\t\tif(terminatorMatch) {\n\t\t\tif(!inlineRuleMatch || inlineRuleMatch.matchIndex &gt;= terminatorMatch.index) {\n\t\t\t\tif(terminatorMatch.index &gt; this.pos) {\n\t\t\t\t\tthis.pushTextWidget(tree,this.source.substring(this.pos,terminatorMatch.index));\n\t\t\t\t}\n\t\t\t\tthis.pos = terminatorMatch.index;\n\t\t\t\tif(options.eatTerminator) {\n\t\t\t\t\tthis.pos += terminatorMatch[0].length;\n\t\t\t\t}\n\t\t\t\treturn tree;\n\t\t\t}\n\t\t}\n\t\t// Process any inline rule, along with the text preceding it\n\t\tif(inlineRuleMatch) {\n\t\t\t// Preceding text\n\t\t\tif(inlineRuleMatch.matchIndex &gt; this.pos) {\n\t\t\t\tthis.pushTextWidget(tree,this.source.substring(this.pos,inlineRuleMatch.matchIndex));\n\t\t\t\tthis.pos = inlineRuleMatch.matchIndex;\n\t\t\t}\n\t\t\t// Process the inline rule\n\t\t\ttree.push.apply(tree,inlineRuleMatch.rule.parse());\n\t\t\t// Look for the next inline rule\n\t\t\tinlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos);\n\t\t\t// Look for the next terminator match\n\t\t\tterminatorRegExp.lastIndex = this.pos;\n\t\t\tterminatorMatch = terminatorRegExp.exec(this.source);\n\t\t}\n\t}\n\t// Process the remaining text\n\tif(this.pos &lt; this.sourceLength) {\n\t\tthis.pushTextWidget(tree,this.source.substr(this.pos));\n\t}\n\tthis.pos = this.sourceLength;\n\treturn tree;\n};\n\n/*\nPush a text widget onto an array, respecting the configTrimWhiteSpace setting\n*/\nWikiParser.prototype.pushTextWidget = function(array,text) {\n\tif(this.configTrimWhiteSpace) {\n\t\ttext = $tw.utils.trim(text);\n\t}\n\tif(text) {\n\t\tarray.push({type: \&quot;text\&quot;, text: text});\t\t\n\t}\n};\n\n/*\nParse zero or more class specifiers `.classname`\n*/\nWikiParser.prototype.parseClasses = function() {\n\tvar classRegExp = /\\.([^\\s\\.]+)/mg,\n\t\tclassNames = [];\n\tclassRegExp.lastIndex = this.pos;\n\tvar match = classRegExp.exec(this.source);\n\twhile(match &amp;&amp; match.index === this.pos) {\n\t\tthis.pos = match.index + match[0].length;\n\t\tclassNames.push(match[1]);\n\t\tmatch = classRegExp.exec(this.source);\n\t}\n\treturn classNames;\n};\n\n/*\nAmend the rules used by this instance of the parser\n\ttype: `only` keeps just the named rules, `except` keeps all but the named rules\n\tnames: array of rule names\n*/\nWikiParser.prototype.amendRules = function(type,names) {\n\tnames = names || [];\n\t// Define the filter function\n\tvar target;\n\tif(type === \&quot;only\&quot;) {\n\t\ttarget = true;\n\t} else if(type === \&quot;except\&quot;) {\n\t\ttarget = false;\n\t} else {\n\t\treturn;\n\t}\n\t// Define a function to process each of our rule arrays\n\tvar processRuleArray = function(ruleArray) {\n\t\tfor(var t=ruleArray.length-1; t&gt;=0; t--) {\n\t\t\tif((names.indexOf(ruleArray[t].rule.name) === -1) === target) {\n\t\t\t\truleArray.splice(t,1);\n\t\t\t}\n\t\t}\n\t};\n\t// Process each rule array\n\tprocessRuleArray(this.pragmaRules);\n\tprocessRuleArray(this.blockRules);\n\tprocessRuleArray(this.inlineRules);\n};\n\nexports[\&quot;text/vnd.tiddlywiki\&quot;] = WikiParser;\n\n})();\n\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;parser&quot;
},
&quot;$:/core/modules/parsers/wikiparser/rules/wikirulebase.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/parsers/wikiparser/rules/wikirulebase.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/wikirulebase.js\ntype: application/javascript\nmodule-type: global\n\nBase class for wiki parser rules\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nThis constructor is always overridden with a blank constructor, and so shouldn't be used\n*/\nvar WikiRuleBase = function() {\n};\n\n/*\nTo be overridden by individual rules\n*/\nWikiRuleBase.prototype.init = function(parser) {\n\tthis.parser = parser;\n};\n\n/*\nDefault implementation of findNextMatch uses RegExp matching\n*/\nWikiRuleBase.prototype.findNextMatch = function(startPos) {\n\tthis.matchRegExp.lastIndex = startPos;\n\tthis.match = this.matchRegExp.exec(this.parser.source);\n\treturn this.match ? this.match.index : undefined;\n};\n\nexports.WikiRuleBase = WikiRuleBase;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;global&quot;
},
&quot;$:/core/modules/pluginswitcher.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/pluginswitcher.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/pluginswitcher.js\ntype: application/javascript\nmodule-type: global\n\nManages switching plugins for themes and languages.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\noptions:\nwiki: wiki store to be used\npluginType: type of plugin to be switched\ncontrollerTitle: title of tiddler used to control switching of this resource\ndefaultPlugins: array of default plugins to be used if nominated plugin isn't found\nonSwitch: callback when plugin is switched (single parameter is array of plugin titles)\n*/\nfunction PluginSwitcher(options) {\n\tthis.wiki = options.wiki;\n\tthis.pluginType = options.pluginType;\n\tthis.controllerTitle = options.controllerTitle;\n\tthis.defaultPlugins = options.defaultPlugins || [];\n\tthis.onSwitch = options.onSwitch;\n\t// Switch to the current plugin\n\tthis.switchPlugins();\n\t// Listen for changes to the selected plugin\n\tvar self = this;\n\tthis.wiki.addEventListener(\&quot;change\&quot;,function(changes) {\n\t\tif($tw.utils.hop(changes,self.controllerTitle)) {\n\t\t\tself.switchPlugins();\n\t\t}\n\t});\n}\n\nPluginSwitcher.prototype.switchPlugins = function() {\n\t// Get the name of the current theme\n\tvar selectedPluginTitle = this.wiki.getTiddlerText(this.controllerTitle);\n\t// If it doesn't exist, then fallback to one of the default themes\n\tvar index = 0;\n\twhile(!this.wiki.getTiddler(selectedPluginTitle) &amp;&amp; index &lt; this.defaultPlugins.length) {\n\t\tselectedPluginTitle = this.defaultPlugins[index++];\n\t}\n\t// Accumulate the titles of the plugins that we need to load\n\tvar plugins = [],\n\t\tself = this,\n\t\taccumulatePlugin = function(title) {\n\t\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\t\tif(tiddler &amp;&amp; tiddler.isPlugin() &amp;&amp; plugins.indexOf(title) === -1) {\n\t\t\t\tplugins.push(title);\n\t\t\t\tvar pluginInfo = JSON.parse(self.wiki.getTiddlerText(title)),\n\t\t\t\t\tdependents = $tw.utils.parseStringArray(tiddler.fields.dependents || \&quot;\&quot;);\n\t\t\t\t$tw.utils.each(dependents,function(title) {\n\t\t\t\t\taccumulatePlugin(title);\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\taccumulatePlugin(selectedPluginTitle);\n\t// Read the plugin info for the incoming plugins\n\tvar changes = $tw.wiki.readPluginInfo(plugins);\n\t// Unregister any existing theme tiddlers\n\tvar unregisteredTiddlers = $tw.wiki.unregisterPluginTiddlers(this.pluginType);\n\t// Register any new theme tiddlers\n\tvar registeredTiddlers = $tw.wiki.registerPluginTiddlers(this.pluginType,plugins);\n\t// Unpack the current theme tiddlers\n\t$tw.wiki.unpackPluginTiddlers();\n\t// Call the switch handler\n\tif(this.onSwitch) {\n\t\tthis.onSwitch(plugins);\n\t}\n};\n\nexports.PluginSwitcher = PluginSwitcher;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;global&quot;
},
&quot;$:/core/modules/saver-handler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/saver-handler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/saver-handler.js\ntype: application/javascript\nmodule-type: global\n\nThe saver handler tracks changes to the store and handles saving the entire wiki via saver modules.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nInstantiate the saver handler with the following options:\nwiki: wiki to be synced\ndirtyTracking: true if dirty tracking should be performed\n*/\nfunction SaverHandler(options) {\n\tvar self = this;\n\tthis.wiki = options.wiki;\n\tthis.dirtyTracking = options.dirtyTracking;\n\tthis.preloadDirty = options.preloadDirty || [];\n\tthis.pendingAutoSave = false;\n\t// Make a logger\n\tthis.logger = new $tw.utils.Logger(\&quot;saver-handler\&quot;);\n\t// Initialise our savers\n\tif($tw.browser) {\n\t\tthis.initSavers();\n\t}\n\t// Only do dirty tracking if required\n\tif($tw.browser &amp;&amp; this.dirtyTracking) {\n\t\t// Compile the dirty tiddler filter\n\t\tthis.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));\n\t\t// Count of changes that have not yet been saved\n\t\tvar filteredChanges = self.filterFn.call(self.wiki,function(iterator) {\n\t\t\t\t$tw.utils.each(self.preloadDirty,function(title) {\n\t\t\t\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\t\t\t\titerator(tiddler,title);\n\t\t\t\t});\n\t\t});\n\t\tthis.numChanges = filteredChanges.length;\n\t\t// Listen out for changes to tiddlers\n\t\tthis.wiki.addEventListener(\&quot;change\&quot;,function(changes) {\n\t\t\t// Filter the changes so that we only count changes to tiddlers that we care about\n\t\t\tvar filteredChanges = self.filterFn.call(self.wiki,function(iterator) {\n\t\t\t\t$tw.utils.each(changes,function(change,title) {\n\t\t\t\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\t\t\t\titerator(tiddler,title);\n\t\t\t\t});\n\t\t\t});\n\t\t\t// Adjust the number of changes\n\t\t\tself.numChanges += filteredChanges.length;\n\t\t\tself.updateDirtyStatus();\n\t\t\t// Do any autosave if one is pending and there's no more change events\n\t\t\tif(self.pendingAutoSave &amp;&amp; self.wiki.getSizeOfTiddlerEventQueue() === 0) {\n\t\t\t\t// Check if we're dirty\n\t\t\t\tif(self.numChanges &gt; 0) {\n\t\t\t\t\tself.saveWiki({\n\t\t\t\t\t\tmethod: \&quot;autosave\&quot;,\n\t\t\t\t\t\tdownloadType: \&quot;text/plain\&quot;\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tself.pendingAutoSave = false;\n\t\t\t}\n\t\t});\n\t\t// Listen for the autosave event\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-auto-save-wiki\&quot;,function(event) {\n\t\t\t// Do the autosave unless there are outstanding tiddler change events\n\t\t\tif(self.wiki.getSizeOfTiddlerEventQueue() === 0) {\n\t\t\t\t// Check if we're dirty\n\t\t\t\tif(self.numChanges &gt; 0) {\n\t\t\t\t\tself.saveWiki({\n\t\t\t\t\t\tmethod: \&quot;autosave\&quot;,\n\t\t\t\t\t\tdownloadType: \&quot;text/plain\&quot;\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Otherwise put ourselves in the \&quot;pending autosave\&quot; state and wait for the change event before we do the autosave\n\t\t\t\tself.pendingAutoSave = true;\n\t\t\t}\n\t\t});\n\t\t// Set up our beforeunload handler\n\t\t$tw.addUnloadTask(function(event) {\n\t\t\tvar confirmationMessage;\n\t\t\tif(self.isDirty()) {\n\t\t\t\tconfirmationMessage = $tw.language.getString(\&quot;UnsavedChangesWarning\&quot;);\n\t\t\t\tevent.returnValue = confirmationMessage; // Gecko\n\t\t\t}\n\t\t\treturn confirmationMessage;\n\t\t});\n\t}\n\t// Install the save action handlers\n\tif($tw.browser) {\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-save-wiki\&quot;,function(event) {\n\t\t\tself.saveWiki({\n\t\t\t\ttemplate: event.param,\n\t\t\t\tdownloadType: \&quot;text/plain\&quot;,\n\t\t\t\tvariables: event.paramObject\n\t\t\t});\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-download-file\&quot;,function(event) {\n\t\t\tself.saveWiki({\n\t\t\t\tmethod: \&quot;download\&quot;,\n\t\t\t\ttemplate: event.param,\n\t\t\t\tdownloadType: \&quot;text/plain\&quot;,\n\t\t\t\tvariables: event.paramObject\n\t\t\t});\n\t\t});\n\t}\n}\n\nSaverHandler.prototype.titleSyncFilter = \&quot;$:/config/SaverFilter\&quot;;\nSaverHandler.prototype.titleAutoSave = \&quot;$:/config/AutoSave\&quot;;\nSaverHandler.prototype.titleSavedNotification = \&quot;$:/language/Notifications/Save/Done\&quot;;\n\n/*\nSelect the appropriate saver modules and set them up\n*/\nSaverHandler.prototype.initSavers = function(moduleType) {\n\tmoduleType = moduleType || \&quot;saver\&quot;;\n\t// Instantiate the available savers\n\tthis.savers = [];\n\tvar self = this;\n\t$tw.modules.forEachModuleOfType(moduleType,function(title,module) {\n\t\tif(module.canSave(self)) {\n\t\t\tself.savers.push(module.create(self.wiki));\n\t\t}\n\t});\n\t// Sort the savers into priority order\n\tthis.savers.sort(function(a,b) {\n\t\tif(a.info.priority &lt; b.info.priority) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif(a.info.priority &gt; b.info.priority) {\n\t\t\t\treturn +1;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\nSave the wiki contents. Options are:\n\tmethod: \&quot;save\&quot;, \&quot;autosave\&quot; or \&quot;download\&quot;\n\ttemplate: the tiddler containing the template to save\n\tdownloadType: the content type for the saved file\n*/\nSaverHandler.prototype.saveWiki = function(options) {\n\toptions = options || {};\n\tvar self = this,\n\t\tmethod = options.method || \&quot;save\&quot;;\n\t// Ignore autosave if disabled\n\tif(method === \&quot;autosave\&quot; &amp;&amp; ($tw.config.disableAutoSave || this.wiki.getTiddlerText(this.titleAutoSave,\&quot;yes\&quot;) !== \&quot;yes\&quot;)) {\n\t\treturn false;\n\t}\n\tvar\tvariables = options.variables || {},\n\t\ttemplate = options.template || \&quot;$:/core/save/all\&quot;,\n\t\tdownloadType = options.downloadType || \&quot;text/plain\&quot;,\n\t\ttext = this.wiki.renderTiddler(downloadType,template,options),\n\t\tcallback = function(err) {\n\t\t\tif(err) {\n\t\t\t\talert($tw.language.getString(\&quot;Error/WhileSaving\&quot;) + \&quot;:\\n\\n\&quot; + err);\n\t\t\t} else {\n\t\t\t\t// Clear the task queue if we're saving (rather than downloading)\n\t\t\t\tif(method !== \&quot;download\&quot;) {\n\t\t\t\t\tself.numChanges = 0;\n\t\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t}\n\t\t\t\t$tw.notifier.display(self.titleSavedNotification);\n\t\t\t\tif(options.callback) {\n\t\t\t\t\toptions.callback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t// Call the highest priority saver that supports this method\n\tfor(var t=this.savers.length-1; t&gt;=0; t--) {\n\t\tvar saver = this.savers[t];\n\t\tif(saver.info.capabilities.indexOf(method) !== -1 &amp;&amp; saver.save(text,method,callback,{variables: {filename: variables.filename}})) {\n\t\t\tthis.logger.log(\&quot;Saving wiki with method\&quot;,method,\&quot;through saver\&quot;,saver.info.name);\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\n/*\nChecks whether the wiki is dirty (ie the window shouldn't be closed)\n*/\nSaverHandler.prototype.isDirty = function() {\n\treturn this.numChanges &gt; 0;\n};\n\n/*\nUpdate the document body with the class \&quot;tc-dirty\&quot; if the wiki has unsaved/unsynced changes\n*/\nSaverHandler.prototype.updateDirtyStatus = function() {\n\tvar self = this;\n\tif($tw.browser) {\n\t\t$tw.utils.toggleClass(document.body,\&quot;tc-dirty\&quot;,this.isDirty());\n\t\t$tw.utils.each($tw.windows,function(win) {\n\t\t\t$tw.utils.toggleClass(win.document.body,\&quot;tc-dirty\&quot;,self.isDirty());\n\t\t});\n\t}\n};\n\nexports.SaverHandler = SaverHandler;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;global&quot;
},
&quot;$:/core/modules/savers/andtidwiki.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/andtidwiki.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/andtidwiki.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via the AndTidWiki Android app\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false, netscape: false, Components: false */\n\&quot;use strict\&quot;;\n\nvar AndTidWiki = function(wiki) {\n};\n\nAndTidWiki.prototype.save = function(text,method,callback,options) {\n\tvar filename = options &amp;&amp; options.variables ? options.variables.filename : null;\n\tif (method === \&quot;download\&quot;) {\n\t\t// Support download\n\t\tif (window.twi.saveDownload) {\n\t\t\ttry {\n\t\t\t\twindow.twi.saveDownload(text,filename);\n\t\t\t} catch(err) {\n\t\t\t\tif (err.message === \&quot;Method not found\&quot;) {\n\t\t\t\t\twindow.twi.saveDownload(text);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tvar link = document.createElement(\&quot;a\&quot;);\n\t\t\tlink.setAttribute(\&quot;href\&quot;,\&quot;data:text/plain,\&quot; + encodeURIComponent(text));\n\t\t\tif (filename) {\n\t\t\t link.setAttribute(\&quot;download\&quot;,filename);\n\t\t\t}\n\t\t\tdocument.body.appendChild(link);\n\t\t\tlink.click();\n\t\t\tdocument.body.removeChild(link);\n\t\t}\n\t} else if (window.twi.saveWiki) {\n\t\t// Direct save in Tiddloid\n\t\twindow.twi.saveWiki(text);\n\t} else {\n\t\t// Get the pathname of this document\n\t\tvar pathname = decodeURIComponent(document.location.toString().split(\&quot;#\&quot;)[0]);\n\t\t// Strip the file://\n\t\tif(pathname.indexOf(\&quot;file://\&quot;) === 0) {\n\t\t\tpathname = pathname.substr(7);\n\t\t}\n\t\t// Strip any query or location part\n\t\tvar p = pathname.indexOf(\&quot;?\&quot;);\n\t\tif(p !== -1) {\n\t\t\tpathname = pathname.substr(0,p);\n\t\t}\n\t\tp = pathname.indexOf(\&quot;#\&quot;);\n\t\tif(p !== -1) {\n\t\t\tpathname = pathname.substr(0,p);\n\t\t}\n\t\t// Save the file\n\t\twindow.twi.saveFile(pathname,text);\n\t}\n\t// Call the callback\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nAndTidWiki.prototype.info = {\n\tname: \&quot;andtidwiki\&quot;,\n\tpriority: 1600,\n\tcapabilities: [\&quot;save\&quot;, \&quot;autosave\&quot;, \&quot;download\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.twi &amp;&amp; !!window.twi.saveFile;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new AndTidWiki(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/beaker.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/beaker.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/beaker.js\ntype: application/javascript\nmodule-type: saver\n\nSaves files using the Beaker browser's (https://beakerbrowser.com) Dat protocol (https://datproject.org/)\nCompatible with beaker &gt;= V0.7.2\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nSet up the saver\n*/\nvar BeakerSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nBeakerSaver.prototype.save = function(text,method,callback) {\n\tvar dat = new DatArchive(\&quot;\&quot; + window.location),\n\t\tpathname = (\&quot;\&quot; + window.location.pathname).split(\&quot;#\&quot;)[0];\n\tdat.stat(pathname).then(function(value) {\n\t\tif(value.isDirectory()) {\n\t\t\tpathname = pathname + \&quot;/index.html\&quot;;\n\t\t}\n\t\tdat.writeFile(pathname,text,\&quot;utf8\&quot;).then(function(value) {\n\t\t\tcallback(null);\n\t\t},function(reason) {\n\t\t\tcallback(\&quot;Beaker Saver Write Error: \&quot; + reason);\n\t\t});\n\t},function(reason) {\n\t\tcallback(\&quot;Beaker Saver Stat Error: \&quot; + reason);\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nBeakerSaver.prototype.info = {\n\tname: \&quot;beaker\&quot;,\n\tpriority: 3000,\n\tcapabilities: [\&quot;save\&quot;, \&quot;autosave\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.DatArchive &amp;&amp; location.protocol===\&quot;dat:\&quot;;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new BeakerSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/custom.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/custom.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/custom.js\ntype: application/javascript\nmodule-type: saver\n\nLooks for `window.$tw.customSaver` first on the current window, then\non the parent window (of an iframe). If present, the saver must define\n\tsave: function(text,method,callback) { ... }\nand the saver may define\n\tpriority: number\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar findSaver = function(window) {\n\ttry {\n\t\treturn window &amp;&amp; window.$tw &amp;&amp; window.$tw.customSaver;\n\t} catch (err) {\n\t\t// Catching the exception is the most reliable way to detect cross-origin iframe errors.\n\t\t// For example, instead of saying that `window.parent.$tw` is undefined, Firefox will throw\n\t\t// Uncaught DOMException: Permission denied to access property \&quot;$tw\&quot; on cross-origin object\n\t\tconsole.log({ msg: \&quot;custom saver is disabled\&quot;, reason: err });\n\t\treturn null;\n\t}\n}\nvar saver = findSaver(window) || findSaver(window.parent) || {};\n\nvar CustomSaver = function(wiki) {\n};\n\nCustomSaver.prototype.save = function(text,method,callback) {\n\treturn saver.save(text, method, callback);\n};\n\n/*\nInformation about this saver\n*/\nCustomSaver.prototype.info = {\n\tname: \&quot;custom\&quot;,\n\tpriority: saver.priority || 4000,\n\tcapabilities: [\&quot;save\&quot;,\&quot;autosave\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!(saver.save);\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new CustomSaver(wiki);\n};\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/download.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/download.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/download.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via HTML5's download APIs\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar DownloadSaver = function(wiki) {\n};\n\nDownloadSaver.prototype.save = function(text,method,callback,options) {\n\toptions = options || {};\n\t// Get the current filename\n\tvar filename = options.variables.filename;\n\tif(!filename) {\n\t\tvar p = document.location.pathname.lastIndexOf(\&quot;/\&quot;);\n\t\tif(p !== -1) {\n\t\t\t// We decode the pathname because document.location is URL encoded by the browser\n\t\t\tfilename = decodeURIComponent(document.location.pathname.substr(p+1));\n\t\t}\n\t}\n\tif(!filename) {\n\t\tfilename = \&quot;tiddlywiki.html\&quot;;\n\t}\n\t// Set up the link\n\tvar link = document.createElement(\&quot;a\&quot;);\n\tif(Blob !== undefined) {\n\t\tvar blob = new Blob([text], {type: \&quot;text/html\&quot;});\n\t\tlink.setAttribute(\&quot;href\&quot;, URL.createObjectURL(blob));\n\t} else {\n\t\tlink.setAttribute(\&quot;href\&quot;,\&quot;data:text/html,\&quot; + encodeURIComponent(text));\n\t}\n\tlink.setAttribute(\&quot;download\&quot;,filename);\n\tdocument.body.appendChild(link);\n\tlink.click();\n\tdocument.body.removeChild(link);\n\t// Callback that we succeeded\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nDownloadSaver.prototype.info = {\n\tname: \&quot;download\&quot;,\n\tpriority: 100\n};\n\nObject.defineProperty(DownloadSaver.prototype.info, \&quot;capabilities\&quot;, {\n\tget: function() {\n\t\tvar capabilities = [\&quot;save\&quot;, \&quot;download\&quot;];\n\t\tif(($tw.wiki.getTextReference(\&quot;$:/config/DownloadSaver/AutoSave\&quot;) || \&quot;\&quot;).toLowerCase() === \&quot;yes\&quot;) {\n\t\t\tcapabilities.push(\&quot;autosave\&quot;);\n\t\t}\n\t\treturn capabilities;\n\t}\n});\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn document.createElement(\&quot;a\&quot;).download !== undefined;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new DownloadSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/fsosaver.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/fsosaver.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/fsosaver.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via MS FileSystemObject ActiveXObject\n\nNote: Since TiddlyWiki's markup contains the MOTW, the FileSystemObject normally won't be available. \nHowever, if the wiki is loaded as an .HTA file (Windows HTML Applications) then the FSO can be used.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar FSOSaver = function(wiki) {\n};\n\nFSOSaver.prototype.save = function(text,method,callback) {\n\t// Get the pathname of this document\n\tvar pathname = unescape(document.location.pathname);\n\t// Test for a Windows path of the form /x:\\blah...\n\tif(/^\\/[A-Z]\\:\\\\[^\\\\]+/i.test(pathname)) {\t// ie: ^/[a-z]:/[^/]+\n\t\t// Remove the leading slash\n\t\tpathname = pathname.substr(1);\n\t} else if(document.location.hostname !== \&quot;\&quot; &amp;&amp; /^\\/\\\\[^\\\\]+\\\\[^\\\\]+/i.test(pathname)) {\t// test for \\\\server\\share\\blah... - ^/[^/]+/[^/]+\n\t\t// Remove the leading slash\n\t\tpathname = pathname.substr(1);\n\t\t// reconstruct UNC path\n\t\tpathname = \&quot;\\\\\\\\\&quot; + document.location.hostname + pathname;\n\t} else {\n\t\treturn false;\n\t}\n\t// Save the file (as UTF-16)\n\tvar fso = new ActiveXObject(\&quot;Scripting.FileSystemObject\&quot;);\n\tvar file = fso.OpenTextFile(pathname,2,-1,-1);\n\tfile.Write(text);\n\tfile.Close();\n\t// Callback that we succeeded\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nFSOSaver.prototype.info = {\n\tname: \&quot;FSOSaver\&quot;,\n\tpriority: 120,\n\tcapabilities: [\&quot;save\&quot;, \&quot;autosave\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\ttry {\n\t\treturn (window.location.protocol === \&quot;file:\&quot;) &amp;&amp; !!(new ActiveXObject(\&quot;Scripting.FileSystemObject\&quot;));\n\t} catch(e) { return false; }\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new FSOSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/gitea.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/gitea.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/gitea.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by pushing a commit to the gitea\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar GiteaSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nGiteaSaver.prototype.save = function(text,method,callback) {\n\tvar self = this,\n\t\tusername = this.wiki.getTiddlerText(\&quot;$:/Gitea/Username\&quot;),\n\t\tpassword = $tw.utils.getPassword(\&quot;Gitea\&quot;),\n\t\trepo = this.wiki.getTiddlerText(\&quot;$:/Gitea/Repo\&quot;),\n\t\tpath = this.wiki.getTiddlerText(\&quot;$:/Gitea/Path\&quot;,\&quot;\&quot;),\n\t\tfilename = this.wiki.getTiddlerText(\&quot;$:/Gitea/Filename\&quot;),\n\t\tbranch = this.wiki.getTiddlerText(\&quot;$:/Gitea/Branch\&quot;) || \&quot;master\&quot;,\n\t\tendpoint = this.wiki.getTiddlerText(\&quot;$:/Gitea/ServerURL\&quot;) || \&quot;https://gitea\&quot;,\n\t\theaders = {\n\t\t\t\&quot;Accept\&quot;: \&quot;application/json\&quot;,\n\t\t\t\&quot;Content-Type\&quot;: \&quot;application/json;charset=UTF-8\&quot;,\n\t\t\t\&quot;Authorization\&quot;: \&quot;token \&quot; + password\n\t\t};\n\t// Bail if we don't have everything we need\n\tif(!username || !password || !repo || !filename) {\n\t\treturn false;\n\t}\n\t// Make sure the path start and ends with a slash\n\tif(path.substring(0,1) !== \&quot;/\&quot;) {\n\t\tpath = \&quot;/\&quot; + path;\n\t}\n\tif(path.substring(path.length - 1) !== \&quot;/\&quot;) {\n\t\tpath = path + \&quot;/\&quot;;\n\t}\n\t// Compose the base URI\n\tvar uri = endpoint + \&quot;/repos/\&quot; + repo + \&quot;/contents\&quot; + path;\n\t// Perform a get request to get the details (inc shas) of files in the same path as our file\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: \&quot;GET\&quot;,\n\t\theaders: headers,\n\t\tdata: {\n\t\t\tref: branch\n\t\t},\n\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\tvar getResponseData,sha = \&quot;\&quot;;\n\t\t\tif(err &amp;&amp; xhr.status !== 404) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tvar use_put = true;\n\t\t\tif(xhr.status !== 404) {\n\t\t\t\tgetResponseData = JSON.parse(getResponseDataJson);\n\t\t\t\t$tw.utils.each(getResponseData,function(details) {\n\t\t\t\t\tif(details.name === filename) {\n\t\t\t\t\t\tsha = details.sha;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif(sha === \&quot;\&quot;){\n\t\t\t\t\tuse_put = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\tmessage: $tw.language.getRawString(\&quot;ControlPanel/Saving/GitService/CommitMessage\&quot;),\n\t\t\t\tcontent: $tw.utils.base64Encode(text),\n\t\t\t\tsha: sha\n\t\t\t};\n\t\t\t$tw.utils.httpRequest({\n\t\t\t\turl: endpoint + \&quot;/repos/\&quot; + repo + \&quot;/branches/\&quot; + branch,\n\t\t\t\ttype: \&quot;GET\&quot;,\n\t\t\t\theaders: headers,\n\t\t\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\t\t\tif(xhr.status === 404) {\n\t\t\t\t\t\tcallback(\&quot;Please ensure the branch in the Gitea repo exists\&quot;);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdata[\&quot;branch\&quot;] = branch;\n\t\t\t\t\t\tself.upload(uri + filename, use_put?\&quot;PUT\&quot;:\&quot;POST\&quot;, headers, data, callback);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\treturn true;\n};\n\nGiteaSaver.prototype.upload = function(uri,method,headers,data,callback) {\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: method,\n\t\theaders: headers,\n\t\tdata: JSON.stringify(data),\n\t\tcallback: function(err,putResponseDataJson,xhr) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tvar putResponseData = JSON.parse(putResponseDataJson);\n\t\t\tcallback(null);\n\t\t}\n\t});\n};\n\n/*\nInformation about this saver\n*/\nGiteaSaver.prototype.info = {\n\tname: \&quot;Gitea\&quot;,\n\tpriority: 2000,\n\tcapabilities: [\&quot;save\&quot;, \&quot;autosave\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new GiteaSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/github.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/github.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/github.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by pushing a commit to the GitHub v3 REST API\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar GitHubSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nGitHubSaver.prototype.save = function(text,method,callback) {\n\tvar self = this,\n\t\tusername = this.wiki.getTiddlerText(\&quot;$:/GitHub/Username\&quot;),\n\t\tpassword = $tw.utils.getPassword(\&quot;github\&quot;),\n\t\trepo = this.wiki.getTiddlerText(\&quot;$:/GitHub/Repo\&quot;),\n\t\tpath = this.wiki.getTiddlerText(\&quot;$:/GitHub/Path\&quot;,\&quot;\&quot;),\n\t\tfilename = this.wiki.getTiddlerText(\&quot;$:/GitHub/Filename\&quot;),\n\t\tbranch = this.wiki.getTiddlerText(\&quot;$:/GitHub/Branch\&quot;) || \&quot;main\&quot;,\n\t\tendpoint = this.wiki.getTiddlerText(\&quot;$:/GitHub/ServerURL\&quot;) || \&quot;https://api.github.com\&quot;,\n\t\theaders = {\n\t\t\t\&quot;Accept\&quot;: \&quot;application/vnd.github.v3+json\&quot;,\n\t\t\t\&quot;Content-Type\&quot;: \&quot;application/json;charset=UTF-8\&quot;,\n\t\t\t\&quot;Authorization\&quot;: \&quot;Basic \&quot; + window.btoa(username + \&quot;:\&quot; + password),\n\t\t\t\&quot;If-None-Match\&quot;: \&quot;\&quot;\n\t\t};\n\t// Bail if we don't have everything we need\n\tif(!username || !password || !repo || !filename) {\n\t\treturn false;\n\t}\n\t// Make sure the path start and ends with a slash\n\tif(path.substring(0,1) !== \&quot;/\&quot;) {\n\t\tpath = \&quot;/\&quot; + path;\n\t}\n\tif(path.substring(path.length - 1) !== \&quot;/\&quot;) {\n\t\tpath = path + \&quot;/\&quot;;\n\t}\n\t// Compose the base URI\n\tvar uri = endpoint + \&quot;/repos/\&quot; + repo + \&quot;/contents\&quot; + path;\n\t// Perform a get request to get the details (inc shas) of files in the same path as our file\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: \&quot;GET\&quot;,\n\t\theaders: headers,\n\t\tdata: {\n\t\t\tref: branch\n\t\t},\n\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\tvar getResponseData,sha = \&quot;\&quot;;\n\t\t\tif(err &amp;&amp; xhr.status !== 404) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tif(xhr.status !== 404) {\n\t\t\t\tgetResponseData = JSON.parse(getResponseDataJson);\n\t\t\t\t$tw.utils.each(getResponseData,function(details) {\n\t\t\t\t\tif(details.name === filename) {\n\t\t\t\t\t\tsha = details.sha;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\tmessage: $tw.language.getRawString(\&quot;ControlPanel/Saving/GitService/CommitMessage\&quot;),\n\t\t\t\tcontent: $tw.utils.base64Encode(text),\n\t\t\t\tbranch: branch,\n\t\t\t\tsha: sha\n\t\t\t};\n\t\t\t// Perform a PUT request to save the file\n\t\t\t$tw.utils.httpRequest({\n\t\t\t\turl: uri + filename,\n\t\t\t\ttype: \&quot;PUT\&quot;,\n\t\t\t\theaders: headers,\n\t\t\t\tdata: JSON.stringify(data),\n\t\t\t\tcallback: function(err,putResponseDataJson,xhr) {\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\treturn callback(err);\n\t\t\t\t\t}\n\t\t\t\t\tvar putResponseData = JSON.parse(putResponseDataJson);\n\t\t\t\t\tcallback(null);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nGitHubSaver.prototype.info = {\n\tname: \&quot;github\&quot;,\n\tpriority: 2000,\n\tcapabilities: [\&quot;save\&quot;, \&quot;autosave\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new GitHubSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/gitlab.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/gitlab.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/gitlab.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by pushing a commit to the GitLab REST API\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: true */\n\&quot;use strict\&quot;;\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar GitLabSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nGitLabSaver.prototype.save = function(text,method,callback) {\n\t/* See https://docs.gitlab.com/ee/api/repository_files.html */\n\tvar self = this,\n\t\tusername = this.wiki.getTiddlerText(\&quot;$:/GitLab/Username\&quot;),\n\t\tpassword = $tw.utils.getPassword(\&quot;gitlab\&quot;),\n\t\trepo = this.wiki.getTiddlerText(\&quot;$:/GitLab/Repo\&quot;),\n\t\tpath = this.wiki.getTiddlerText(\&quot;$:/GitLab/Path\&quot;,\&quot;\&quot;),\n\t\tfilename = this.wiki.getTiddlerText(\&quot;$:/GitLab/Filename\&quot;),\n\t\tbranch = this.wiki.getTiddlerText(\&quot;$:/GitLab/Branch\&quot;) || \&quot;master\&quot;,\n\t\tendpoint = this.wiki.getTiddlerText(\&quot;$:/GitLab/ServerURL\&quot;) || \&quot;https://gitlab.com/api/v4\&quot;,\n\t\theaders = {\n\t\t\t\&quot;Content-Type\&quot;: \&quot;application/json;charset=UTF-8\&quot;,\n\t\t\t\&quot;Private-Token\&quot;: password\n\t\t};\n\t// Bail if we don't have everything we need\n\tif(!username || !password || !repo || !filename) {\n\t\treturn false;\n\t}\n\t// Make sure the path start and ends with a slash\n\tif(path.substring(0,1) !== \&quot;/\&quot;) {\n\t\tpath = \&quot;/\&quot; + path;\n\t}\n\tif(path.substring(path.length - 1) !== \&quot;/\&quot;) {\n\t\tpath = path + \&quot;/\&quot;;\n\t}\n\t// Compose the base URI\n\tvar uri = endpoint + \&quot;/projects/\&quot; + encodeURIComponent(repo) + \&quot;/repository/\&quot;;\n\t// Perform a get request to get the details (inc shas) of files in the same path as our file\n\t$tw.utils.httpRequest({\n\t\turl: uri + \&quot;tree/?path=\&quot; + encodeURIComponent(path.replace(/^\\/+|\\/$/g, '')) + \&quot;&amp;branch=\&quot; + encodeURIComponent(branch.replace(/^\\/+|\\/$/g, '')),\n\t\ttype: \&quot;GET\&quot;,\n\t\theaders: headers,\n\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\tvar getResponseData,sha = \&quot;\&quot;;\n\t\t\tif(err &amp;&amp; xhr.status !== 404) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tvar requestType = \&quot;POST\&quot;;\n\t\t\tif(xhr.status !== 404) {\n\t\t\t\tgetResponseData = JSON.parse(getResponseDataJson);\n\t\t\t\t$tw.utils.each(getResponseData,function(details) {\n\t\t\t\t\tif(details.name === filename) {\n\t\t\t\t\t\trequestType = \&quot;PUT\&quot;;\n\t\t\t\t\t\tsha = details.sha;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\tcommit_message: $tw.language.getRawString(\&quot;ControlPanel/Saving/GitService/CommitMessage\&quot;),\n\t\t\t\tcontent: text,\n\t\t\t\tbranch: branch,\n\t\t\t\tsha: sha\n\t\t\t};\n\t\t\t// Perform a request to save the file\n\t\t\t$tw.utils.httpRequest({\n\t\t\t\turl: uri + \&quot;files/\&quot; + encodeURIComponent(path.replace(/^\\/+/, '') + filename),\n\t\t\t\ttype: requestType,\n\t\t\t\theaders: headers,\n\t\t\t\tdata: JSON.stringify(data),\n\t\t\t\tcallback: function(err,putResponseDataJson,xhr) {\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\treturn callback(err);\n\t\t\t\t\t}\n\t\t\t\t\tvar putResponseData = JSON.parse(putResponseDataJson);\n\t\t\t\t\tcallback(null);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nGitLabSaver.prototype.info = {\n\tname: \&quot;gitlab\&quot;,\n\tpriority: 2000,\n\tcapabilities: [\&quot;save\&quot;, \&quot;autosave\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new GitLabSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/hyperdrive.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/hyperdrive.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/hyperdrive.js\ntype: application/javascript\nmodule-type: saver\n\nSaves files using the Hyperdrive Protocol (https://hypercore-protocol.org/#hyperdrive) Beaker browser beta-1.0 and later (https://beakerbrowser.com)\nCompatible with beaker &gt;= V1.0.0\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nSet up the saver\n*/\nvar HyperdriveSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nHyperdriveSaver.prototype.save = function(text,method,callback) {\n\tvar dat = beaker.hyperdrive.drive(\&quot;\&quot; + window.location),\n\t\tpathname = (\&quot;\&quot; + window.location.pathname).split(\&quot;#\&quot;)[0];\n\tdat.stat(pathname).then(function(value) {\n\t\tif(value.isDirectory()) {\n\t\t\tpathname = pathname + \&quot;/index.html\&quot;;\n\t\t}\n\t\tdat.writeFile(pathname,text,\&quot;utf8\&quot;).then(function(value) {\n\t\t\tcallback(null);\n\t\t},function(reason) {\n\t\t\tcallback(\&quot;Hyperdrive Saver Write Error: \&quot; + reason);\n\t\t});\n\t},function(reason) {\n\t\tcallback(\&quot;Hyperdrive Saver Stat Error: \&quot; + reason);\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nHyperdriveSaver.prototype.info = {\n\tname: \&quot;beaker-1.x\&quot;,\n\tpriority: 3000,\n\tcapabilities: [\&quot;save\&quot;, \&quot;autosave\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.beaker &amp;&amp; !!beaker.hyperdrive &amp;&amp; location.protocol===\&quot;hyper:\&quot;;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new HyperdriveSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/manualdownload.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/manualdownload.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/manualdownload.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via HTML5's download APIs\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Title of the tiddler containing the download message\nvar downloadInstructionsTitle = \&quot;$:/language/Modals/Download\&quot;;\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar ManualDownloadSaver = function(wiki) {\n};\n\nManualDownloadSaver.prototype.save = function(text,method,callback) {\n\t$tw.modal.display(downloadInstructionsTitle,{\n\t\tdownloadLink: \&quot;data:text/html,\&quot; + encodeURIComponent(text)\n\t});\n\t// Callback that we succeeded\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nManualDownloadSaver.prototype.info = {\n\tname: \&quot;manualdownload\&quot;,\n\tpriority: 0,\n\tcapabilities: [\&quot;save\&quot;, \&quot;download\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new ManualDownloadSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/msdownload.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/msdownload.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/msdownload.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via window.navigator.msSaveBlob()\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar MsDownloadSaver = function(wiki) {\n};\n\nMsDownloadSaver.prototype.save = function(text,method,callback) {\n\t// Get the current filename\n\tvar filename = \&quot;tiddlywiki.html\&quot;,\n\t\tp = document.location.pathname.lastIndexOf(\&quot;/\&quot;);\n\tif(p !== -1) {\n\t\tfilename = document.location.pathname.substr(p+1);\n\t}\n\t// Set up the link\n\tvar blob = new Blob([text], {type: \&quot;text/html\&quot;});\n\twindow.navigator.msSaveBlob(blob,filename);\n\t// Callback that we succeeded\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nMsDownloadSaver.prototype.info = {\n\tname: \&quot;msdownload\&quot;,\n\tpriority: 110,\n\tcapabilities: [\&quot;save\&quot;, \&quot;download\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.navigator.msSaveBlob;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new MsDownloadSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/put.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/put.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/put.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by performing a PUT request to the server\n\nWorks with any server which accepts a PUT request\nto the current URL, such as a WebDAV server.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nRetrieve ETag if available\n*/\nvar retrieveETag = function(self) {\n\tvar headers = {\n\t\tAccept: \&quot;*/*;charset=UTF-8\&quot;\n\t};\n\t$tw.utils.httpRequest({\n\t\turl: self.uri(),\n\t\ttype: \&quot;HEAD\&quot;,\n\t\theaders: headers,\n\t\tcallback: function(err,data,xhr) {\n\t\t\tif(err) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar etag = xhr.getResponseHeader(\&quot;ETag\&quot;);\n\t\t\tif(!etag) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tself.etag = etag.replace(/^W\\//,\&quot;\&quot;);\n\t\t}\n\t});\n};\n\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar PutSaver = function(wiki) {\n\tthis.wiki = wiki;\n\tvar self = this;\n\tvar uri = this.uri();\n\t// Async server probe. Until probe finishes, save will fail fast\n\t// See also https://github.com/Jermolene/TiddlyWiki5/issues/2276\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: \&quot;OPTIONS\&quot;,\n\t\tcallback: function(err,data,xhr) {\n\t\t\t// Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1\n\t\t\tif(!err) {\n\t\t\t\tself.serverAcceptsPuts = xhr.status === 200 &amp;&amp; !!xhr.getResponseHeader(\&quot;dav\&quot;);\n\t\t\t}\n\t\t}\n\t});\n\tretrieveETag(this);\n};\n\nPutSaver.prototype.uri = function() {\n\treturn document.location.toString().split(\&quot;#\&quot;)[0];\n};\n\n// TODO: in case of edit conflict\n// Prompt: Do you want to save over this? Y/N\n// Merging would be ideal, and may be possible using future generic merge flow\nPutSaver.prototype.save = function(text,method,callback) {\n\tif(!this.serverAcceptsPuts) {\n\t\treturn false;\n\t}\n\tvar self = this;\n\tvar headers = {\n\t\t\&quot;Content-Type\&quot;: \&quot;text/html;charset=UTF-8\&quot;\n\t};\n\tif(this.etag) {\n\t\theaders[\&quot;If-Match\&quot;] = this.etag;\n\t}\n\t$tw.utils.httpRequest({\n\t\turl: this.uri(),\n\t\ttype: \&quot;PUT\&quot;,\n\t\theaders: headers,\n\t\tdata: text,\n\t\tcallback: function(err,data,xhr) {\n\t\t\tif(err) {\n\t\t\t\t// response is textual: \&quot;XMLHttpRequest error code: 412\&quot;\n\t\t\t\tvar status = Number(err.substring(err.indexOf(':') + 2, err.length))\n\t\t\t\tif(status === 412) { // edit conflict\n\t\t\t\t\tvar message = $tw.language.getString(\&quot;Error/EditConflict\&quot;);\n\t\t\t\t\tcallback(message);\n\t\t\t\t} else {\n\t\t\t\t\tcallback(err); // fail\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tself.etag = xhr.getResponseHeader(\&quot;ETag\&quot;);\n\t\t\t\tif(self.etag == null) {\n\t\t\t\t\tretrieveETag(self);\n\t\t\t\t}\n\t\t\t\tcallback(null); // success\n\t\t\t}\n\t\t}\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nPutSaver.prototype.info = {\n\tname: \&quot;put\&quot;,\n\tpriority: 2000,\n\tcapabilities: [\&quot;save\&quot;,\&quot;autosave\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn /^https?:/.test(location.protocol);\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new PutSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/tiddlyfox.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/tiddlyfox.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/tiddlyfox.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via the TiddlyFox file extension\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false, netscape: false, Components: false */\n\&quot;use strict\&quot;;\n\nvar TiddlyFoxSaver = function(wiki) {\n};\n\nTiddlyFoxSaver.prototype.save = function(text,method,callback) {\n\tvar messageBox = document.getElementById(\&quot;tiddlyfox-message-box\&quot;);\n\tif(messageBox) {\n\t\t// Get the pathname of this document\n\t\tvar pathname = document.location.toString().split(\&quot;#\&quot;)[0];\n\t\t// Replace file://localhost/ with file:///\n\t\tif(pathname.indexOf(\&quot;file://localhost/\&quot;) === 0) {\n\t\t\tpathname = \&quot;file://\&quot; + pathname.substr(16);\n\t\t}\n\t\t// Windows path file:///x:/blah/blah --&gt; x:\\blah\\blah\n\t\tif(/^file\\:\\/\\/\\/[A-Z]\\:\\//i.test(pathname)) {\n\t\t\t// Remove the leading slash and convert slashes to backslashes\n\t\t\tpathname = pathname.substr(8).replace(/\\//g,\&quot;\\\\\&quot;);\n\t\t// Firefox Windows network path file://///server/share/blah/blah --&gt; //server/share/blah/blah\n\t\t} else if(pathname.indexOf(\&quot;file://///\&quot;) === 0) {\n\t\t\tpathname = \&quot;\\\\\\\\\&quot; + unescape(pathname.substr(10)).replace(/\\//g,\&quot;\\\\\&quot;);\n\t\t// Mac/Unix local path file:///path/path --&gt; /path/path\n\t\t} else if(pathname.indexOf(\&quot;file:///\&quot;) === 0) {\n\t\t\tpathname = unescape(pathname.substr(7));\n\t\t// Mac/Unix local path file:/path/path --&gt; /path/path\n\t\t} else if(pathname.indexOf(\&quot;file:/\&quot;) === 0) {\n\t\t\tpathname = unescape(pathname.substr(5));\n\t\t// Otherwise Windows networth path file://server/share/path/path --&gt; \\\\server\\share\\path\\path\n\t\t} else {\n\t\t\tpathname = \&quot;\\\\\\\\\&quot; + unescape(pathname.substr(7)).replace(new RegExp(\&quot;/\&quot;,\&quot;g\&quot;),\&quot;\\\\\&quot;);\n\t\t}\n\t\t// Create the message element and put it in the message box\n\t\tvar message = document.createElement(\&quot;div\&quot;);\n\t\tmessage.setAttribute(\&quot;data-tiddlyfox-path\&quot;,decodeURIComponent(pathname));\n\t\tmessage.setAttribute(\&quot;data-tiddlyfox-content\&quot;,text);\n\t\tmessageBox.appendChild(message);\n\t\t// Add an event handler for when the file has been saved\n\t\tmessage.addEventListener(\&quot;tiddlyfox-have-saved-file\&quot;,function(event) {\n\t\t\tcallback(null);\n\t\t}, false);\n\t\t// Create and dispatch the custom event to the extension\n\t\tvar event = document.createEvent(\&quot;Events\&quot;);\n\t\tevent.initEvent(\&quot;tiddlyfox-save-file\&quot;,true,false);\n\t\tmessage.dispatchEvent(event);\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n};\n\n/*\nInformation about this saver\n*/\nTiddlyFoxSaver.prototype.info = {\n\tname: \&quot;tiddlyfox\&quot;,\n\tpriority: 1500,\n\tcapabilities: [\&quot;save\&quot;, \&quot;autosave\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new TiddlyFoxSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/tiddlyie.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/tiddlyie.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/tiddlyie.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via Internet Explorer BHO extenion (TiddlyIE)\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar TiddlyIESaver = function(wiki) {\n};\n\nTiddlyIESaver.prototype.save = function(text,method,callback) {\n\t// Check existence of TiddlyIE BHO extension (note: only works after document is complete)\n\tif(typeof(window.TiddlyIE) != \&quot;undefined\&quot;) {\n\t\t// Get the pathname of this document\n\t\tvar pathname = unescape(document.location.pathname);\n\t\t// Test for a Windows path of the form /x:/blah...\n\t\tif(/^\\/[A-Z]\\:\\/[^\\/]+/i.test(pathname)) {\t// ie: ^/[a-z]:/[^/]+ (is this better?: ^/[a-z]:/[^/]+(/[^/]+)*\\.[^/]+ )\n\t\t\t// Remove the leading slash\n\t\t\tpathname = pathname.substr(1);\n\t\t\t// Convert slashes to backslashes\n\t\t\tpathname = pathname.replace(/\\//g,\&quot;\\\\\&quot;);\n\t\t} else if(document.hostname !== \&quot;\&quot; &amp;&amp; /^\\/[^\\/]+\\/[^\\/]+/i.test(pathname)) {\t// test for \\\\server\\share\\blah... - ^/[^/]+/[^/]+\n\t\t\t// Convert slashes to backslashes\n\t\t\tpathname = pathname.replace(/\\//g,\&quot;\\\\\&quot;);\n\t\t\t// reconstruct UNC path\n\t\t\tpathname = \&quot;\\\\\\\\\&quot; + document.location.hostname + pathname;\n\t\t} else return false;\n\t\t// Prompt the user to save the file\n\t\twindow.TiddlyIE.save(pathname, text);\n\t\t// Callback that we succeeded\n\t\tcallback(null);\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n};\n\n/*\nInformation about this saver\n*/\nTiddlyIESaver.prototype.info = {\n\tname: \&quot;tiddlyiesaver\&quot;,\n\tpriority: 1500,\n\tcapabilities: [\&quot;save\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn (window.location.protocol === \&quot;file:\&quot;);\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new TiddlyIESaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/twedit.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/twedit.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/twedit.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via the TWEdit iOS app\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false, netscape: false, Components: false */\n\&quot;use strict\&quot;;\n\nvar TWEditSaver = function(wiki) {\n};\n\nTWEditSaver.prototype.save = function(text,method,callback) {\n\t// Bail if we're not running under TWEdit\n\tif(typeof DeviceInfo !== \&quot;object\&quot;) {\n\t\treturn false;\n\t}\n\t// Get the pathname of this document\n\tvar pathname = decodeURIComponent(document.location.pathname);\n\t// Strip any query or location part\n\tvar p = pathname.indexOf(\&quot;?\&quot;);\n\tif(p !== -1) {\n\t\tpathname = pathname.substr(0,p);\n\t}\n\tp = pathname.indexOf(\&quot;#\&quot;);\n\tif(p !== -1) {\n\t\tpathname = pathname.substr(0,p);\n\t}\n\t// Remove the leading \&quot;/Documents\&quot; from path\n\tvar prefix = \&quot;/Documents\&quot;;\n\tif(pathname.indexOf(prefix) === 0) {\n\t\tpathname = pathname.substr(prefix.length);\n\t}\n\t// Error handler\n\tvar errorHandler = function(event) {\n\t\t// Error\n\t\tcallback($tw.language.getString(\&quot;Error/SavingToTWEdit\&quot;) + \&quot;: \&quot; + event.target.error.code);\n\t};\n\t// Get the file system\n\twindow.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(fileSystem) {\n\t\t// Now we've got the filesystem, get the fileEntry\n\t\tfileSystem.root.getFile(pathname, {create: true}, function(fileEntry) {\n\t\t\t// Now we've got the fileEntry, create the writer\n\t\t\tfileEntry.createWriter(function(writer) {\n\t\t\t\twriter.onerror = errorHandler;\n\t\t\t\twriter.onwrite = function() {\n\t\t\t\t\tcallback(null);\n\t\t\t\t};\n\t\t\t\twriter.position = 0;\n\t\t\t\twriter.write(text);\n\t\t\t},errorHandler);\n\t\t}, errorHandler);\n\t}, errorHandler);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nTWEditSaver.prototype.info = {\n\tname: \&quot;twedit\&quot;,\n\tpriority: 1600,\n\tcapabilities: [\&quot;save\&quot;, \&quot;autosave\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new TWEditSaver(wiki);\n};\n\n/////////////////////////// Hack\n// HACK: This ensures that TWEdit recognises us as a TiddlyWiki document\nif($tw.browser) {\n\twindow.version = {title: \&quot;TiddlyWiki\&quot;};\n}\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/savers/upload.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/savers/upload.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/savers/upload.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via upload to a server.\n\nDesigned to be compatible with BidiX's UploadPlugin at http://tiddlywiki.bidix.info/#UploadPlugin\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar UploadSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nUploadSaver.prototype.save = function(text,method,callback) {\n\t// Get the various parameters we need\n\tvar backupDir = this.wiki.getTextReference(\&quot;$:/UploadBackupDir\&quot;) || \&quot;.\&quot;,\n\t\tusername = this.wiki.getTextReference(\&quot;$:/UploadName\&quot;),\n\t\tpassword = $tw.utils.getPassword(\&quot;upload\&quot;),\n\t\tuploadDir = this.wiki.getTextReference(\&quot;$:/UploadDir\&quot;) || \&quot;.\&quot;,\n\t\tuploadFilename = this.wiki.getTextReference(\&quot;$:/UploadFilename\&quot;) || \&quot;index.html\&quot;,\n\t\turl = this.wiki.getTextReference(\&quot;$:/UploadURL\&quot;);\n\t// Bail out if we don't have the bits we need\n\tif(!username || username.toString().trim() === \&quot;\&quot; || !password || password.toString().trim() === \&quot;\&quot;) {\n\t\treturn false;\n\t}\n\t// Construct the url if not provided\n\tif(!url) {\n\t\turl = \&quot;http://\&quot; + username + \&quot;.tiddlyspot.com/store.cgi\&quot;;\n\t}\n\t// Assemble the header\n\tvar boundary = \&quot;---------------------------\&quot; + \&quot;AaB03x\&quot;;\t\n\tvar uploadFormName = \&quot;UploadPlugin\&quot;;\n\tvar head = [];\n\thead.push(\&quot;--\&quot; + boundary + \&quot;\\r\\nContent-disposition: form-data; name=\\\&quot;UploadPlugin\\\&quot;\\r\\n\&quot;);\n\thead.push(\&quot;backupDir=\&quot; + backupDir + \&quot;;user=\&quot; + username + \&quot;;password=\&quot; + password + \&quot;;uploaddir=\&quot; + uploadDir + \&quot;;;\&quot;); \n\thead.push(\&quot;\\r\\n\&quot; + \&quot;--\&quot; + boundary);\n\thead.push(\&quot;Content-disposition: form-data; name=\\\&quot;userfile\\\&quot;; filename=\\\&quot;\&quot; + uploadFilename + \&quot;\\\&quot;\&quot;);\n\thead.push(\&quot;Content-Type: text/html;charset=UTF-8\&quot;);\n\thead.push(\&quot;Content-Length: \&quot; + text.length + \&quot;\\r\\n\&quot;);\n\thead.push(\&quot;\&quot;);\n\t// Assemble the tail and the data itself\n\tvar tail = \&quot;\\r\\n--\&quot; + boundary + \&quot;--\\r\\n\&quot;,\n\t\tdata = head.join(\&quot;\\r\\n\&quot;) + text + tail;\n\t// Do the HTTP post\n\tvar http = new XMLHttpRequest();\n\thttp.open(\&quot;POST\&quot;,url,true,username,password);\n\thttp.setRequestHeader(\&quot;Content-Type\&quot;,\&quot;multipart/form-data; charset=UTF-8; boundary=\&quot; + boundary);\n\thttp.onreadystatechange = function() {\n\t\tif(http.readyState == 4 &amp;&amp; http.status == 200) {\n\t\t\tif(http.responseText.substr(0,4) === \&quot;0 - \&quot;) {\n\t\t\t\tcallback(null);\n\t\t\t} else {\n\t\t\t\tcallback(http.responseText);\n\t\t\t}\n\t\t}\n\t};\n\ttry {\n\t\thttp.send(data);\n\t} catch(ex) {\n\t\treturn callback($tw.language.getString(\&quot;Error/Caption\&quot;) + \&quot;:\&quot; + ex);\n\t}\n\t$tw.notifier.display(\&quot;$:/language/Notifications/Save/Starting\&quot;);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nUploadSaver.prototype.info = {\n\tname: \&quot;upload\&quot;,\n\tpriority: 2000,\n\tcapabilities: [\&quot;save\&quot;, \&quot;autosave\&quot;]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new UploadSaver(wiki);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;saver&quot;
},
&quot;$:/core/modules/server/authenticators/basic.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/authenticators/basic.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/authenticators/basic.js\ntype: application/javascript\nmodule-type: authenticator\n\nAuthenticator for WWW basic authentication\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nif($tw.node) {\n\tvar util = require(\&quot;util\&quot;),\n\t\tfs = require(\&quot;fs\&quot;),\n\t\turl = require(\&quot;url\&quot;),\n\t\tpath = require(\&quot;path\&quot;);\n}\n\nfunction BasicAuthenticator(server) {\n\tthis.server = server;\n\tthis.credentialsData = [];\n}\n\n/*\nReturns true if the authenticator is active, false if it is inactive, or a string if there is an error\n*/\nBasicAuthenticator.prototype.init = function() {\n\t// Read the credentials data\n\tthis.credentialsFilepath = this.server.get(\&quot;credentials\&quot;);\n\tif(this.credentialsFilepath) {\n\t\tvar resolveCredentialsFilepath = path.resolve(this.server.boot.wikiPath,this.credentialsFilepath);\n\t\tif(fs.existsSync(resolveCredentialsFilepath) &amp;&amp; !fs.statSync(resolveCredentialsFilepath).isDirectory()) {\n\t\t\tvar credentialsText = fs.readFileSync(resolveCredentialsFilepath,\&quot;utf8\&quot;),\n\t\t\t\tcredentialsData = $tw.utils.parseCsvStringWithHeader(credentialsText);\n\t\t\tif(typeof credentialsData === \&quot;string\&quot;) {\n\t\t\t\treturn \&quot;Error: \&quot; + credentialsData + \&quot; reading credentials from '\&quot; + resolveCredentialsFilepath + \&quot;'\&quot;;\n\t\t\t} else {\n\t\t\t\tthis.credentialsData = credentialsData;\n\t\t\t}\n\t\t} else {\n\t\t\treturn \&quot;Error: Unable to load user credentials from '\&quot; + resolveCredentialsFilepath + \&quot;'\&quot;;\n\t\t}\n\t}\n\t// Add the hardcoded username and password if specified\n\tif(this.server.get(\&quot;username\&quot;) &amp;&amp; this.server.get(\&quot;password\&quot;)) {\n\t\tthis.credentialsData = this.credentialsData || [];\n\t\tthis.credentialsData.push({\n\t\t\tusername: this.server.get(\&quot;username\&quot;),\n\t\t\tpassword: this.server.get(\&quot;password\&quot;)\n\t\t});\n\t}\n\treturn this.credentialsData.length &gt; 0;\n};\n\n/*\nReturns true if the request is authenticated and assigns the \&quot;authenticatedUsername\&quot; state variable.\nReturns false if the request couldn't be authenticated having sent an appropriate response to the browser\n*/\nBasicAuthenticator.prototype.authenticateRequest = function(request,response,state) {\n\t// Extract the incoming username and password from the request\n\tvar header = request.headers.authorization || \&quot;\&quot;;\n\tif(!header &amp;&amp; state.allowAnon) {\n\t\t// If there's no header and anonymous access is allowed then we don't set authenticatedUsername\n\t\treturn true;\n\t}\n\tvar token = header.split(/\\s+/).pop() || \&quot;\&quot;,\n\t\tauth = $tw.utils.base64Decode(token),\n\t\tparts = auth.split(/:/),\n\t\tincomingUsername = parts[0],\n\t\tincomingPassword = parts[1];\n\t// Check that at least one of the credentials matches\n\tvar matchingCredentials = this.credentialsData.find(function(credential) {\n\t\treturn credential.username === incomingUsername &amp;&amp; credential.password === incomingPassword;\n\t});\n\tif(matchingCredentials) {\n\t\t// If so, add the authenticated username to the request state\n\t\tstate.authenticatedUsername = incomingUsername;\n\t\treturn true;\n\t} else {\n\t\t// If not, return an authentication challenge\n\t\tresponse.writeHead(401,\&quot;Authentication required\&quot;,{\n\t\t\t\&quot;WWW-Authenticate\&quot;: 'Basic realm=\&quot;Please provide your username and password to login to ' + state.server.servername + '\&quot;'\n\t\t});\n\t\tresponse.end();\n\t\treturn false;\n\t}\n};\n\nexports.AuthenticatorClass = BasicAuthenticator;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;authenticator&quot;
},
&quot;$:/core/modules/server/authenticators/header.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/authenticators/header.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/authenticators/header.js\ntype: application/javascript\nmodule-type: authenticator\n\nAuthenticator for trusted header authentication\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nfunction HeaderAuthenticator(server) {\n\tthis.server = server;\n\tthis.header = server.get(\&quot;authenticated-user-header\&quot;) ? server.get(\&quot;authenticated-user-header\&quot;).toLowerCase() : undefined;\n}\n\n/*\nReturns true if the authenticator is active, false if it is inactive, or a string if there is an error\n*/\nHeaderAuthenticator.prototype.init = function() {\n\treturn !!this.header;\n};\n\n/*\nReturns true if the request is authenticated and assigns the \&quot;authenticatedUsername\&quot; state variable.\nReturns false if the request couldn't be authenticated having sent an appropriate response to the browser\n*/\nHeaderAuthenticator.prototype.authenticateRequest = function(request,response,state) {\n\t// Otherwise, authenticate as the username in the specified header\n\tvar username = request.headers[this.header];\n\tif(!username &amp;&amp; !state.allowAnon) {\n\t\tresponse.writeHead(401,\&quot;Authorization header required to login to '\&quot; + state.server.servername + \&quot;'\&quot;);\n\t\tresponse.end();\n\t\treturn false;\n\t} else {\n\t\t// authenticatedUsername will be undefined for anonymous users\n\t\tstate.authenticatedUsername = username;\n\t\treturn true;\n\t}\n};\n\nexports.AuthenticatorClass = HeaderAuthenticator;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;authenticator&quot;
},
&quot;$:/core/modules/server/routes/delete-tiddler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/routes/delete-tiddler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/routes/delete-tiddler.js\ntype: application/javascript\nmodule-type: route\n\nDELETE /recipes/default/tiddlers/:title\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.method = \&quot;DELETE\&quot;;\n\nexports.path = /^\\/bags\\/default\\/tiddlers\\/(.+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar title = decodeURIComponent(state.params[0]);\n\tstate.wiki.deleteTiddler(title);\n\tresponse.writeHead(204, \&quot;OK\&quot;, {\n\t\t\&quot;Content-Type\&quot;: \&quot;text/plain\&quot;\n\t});\n\tresponse.end();\n};\n\n}());\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;route&quot;
},
&quot;$:/core/modules/server/routes/get-favicon.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/routes/get-favicon.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/routes/get-favicon.js\ntype: application/javascript\nmodule-type: route\n\nGET /favicon.ico\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.method = \&quot;GET\&quot;;\n\nexports.path = /^\\/favicon.ico$/;\n\nexports.handler = function(request,response,state) {\n\tresponse.writeHead(200, {\&quot;Content-Type\&quot;: \&quot;image/x-icon\&quot;});\n\tvar buffer = state.wiki.getTiddlerText(\&quot;$:/favicon.ico\&quot;,\&quot;\&quot;);\n\tresponse.end(buffer,\&quot;base64\&quot;);\n};\n\n}());\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;route&quot;
},
&quot;$:/core/modules/server/routes/get-file.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/routes/get-file.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/routes/get-file.js\ntype: application/javascript\nmodule-type: route\n\nGET /files/:filepath\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.method = \&quot;GET\&quot;;\n\nexports.path = /^\\/files\\/(.+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar path = require(\&quot;path\&quot;),\n\t\tfs = require(\&quot;fs\&quot;),\n\t\tutil = require(\&quot;util\&quot;),\n\t\tsuppliedFilename = decodeURIComponent(state.params[0]),\n\t\tfilename = path.resolve(state.boot.wikiPath,\&quot;files\&quot;,suppliedFilename),\n\t\textension = path.extname(filename);\n\tfs.readFile(filename,function(err,content) {\n\t\tvar status,content,type = \&quot;text/plain\&quot;;\n\t\tif(err) {\n\t\t\tconsole.log(\&quot;Error accessing file \&quot; + filename + \&quot;: \&quot; + err.toString());\n\t\t\tstatus = 404;\n\t\t\tcontent = \&quot;File '\&quot; + suppliedFilename + \&quot;' not found\&quot;;\n\t\t} else {\n\t\t\tstatus = 200;\n\t\t\tcontent = content;\n\t\t\ttype = ($tw.config.fileExtensionInfo[extension] ? $tw.config.fileExtensionInfo[extension].type : \&quot;application/octet-stream\&quot;);\n\t\t}\n\t\tresponse.writeHead(status,{\n\t\t\t\&quot;Content-Type\&quot;: type\n\t\t});\n\t\tresponse.end(content);\n\t});\n};\n\n}());\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;route&quot;
},
&quot;$:/core/modules/server/routes/get-index.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/routes/get-index.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/routes/get-index.js\ntype: application/javascript\nmodule-type: route\n\nGET /\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar zlib = require(\&quot;zlib\&quot;);\n\nexports.method = \&quot;GET\&quot;;\n\nexports.path = /^\\/$/;\n\nexports.handler = function(request,response,state) {\n\tvar acceptEncoding = request.headers[\&quot;accept-encoding\&quot;];\n\tif(!acceptEncoding) {\n\t\tacceptEncoding = \&quot;\&quot;;\n\t}\n\tvar text = state.wiki.renderTiddler(state.server.get(\&quot;root-render-type\&quot;),state.server.get(\&quot;root-tiddler\&quot;)),\n\t\tresponseHeaders = {\n\t\t\&quot;Content-Type\&quot;: state.server.get(\&quot;root-serve-type\&quot;)\n\t};\n\t/*\n\tIf the gzip=yes flag for `listen` is set, check if the user agent permits\n\tcompression. If so, compress our response. Note that we use the synchronous\n\tfunctions from zlib to stay in the imperative style. The current `Server`\n\tdoesn't depend on this, and we may just as well use the async versions.\n\t*/\n\tif(state.server.enableGzip) {\n\t\tif (/\\bdeflate\\b/.test(acceptEncoding)) {\n\t\t\tresponseHeaders[\&quot;Content-Encoding\&quot;] = \&quot;deflate\&quot;;\n\t\t\ttext = zlib.deflateSync(text);\n\t\t} else if (/\\bgzip\\b/.test(acceptEncoding)) {\n\t\t\tresponseHeaders[\&quot;Content-Encoding\&quot;] = \&quot;gzip\&quot;;\n\t\t\ttext = zlib.gzipSync(text);\n\t\t}\n\t}\n\tresponse.writeHead(200,responseHeaders);\n\tresponse.end(text);\n};\n\n}());\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;route&quot;
},
&quot;$:/core/modules/server/routes/get-login-basic.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/routes/get-login-basic.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/routes/get-login-basic.js\ntype: application/javascript\nmodule-type: route\n\nGET /login-basic -- force a Basic Authentication challenge\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.method = \&quot;GET\&quot;;\n\nexports.path = /^\\/login-basic$/;\n\nexports.handler = function(request,response,state) {\n\tif(!state.authenticatedUsername) {\n\t\t// Challenge if there's no username\n\t\tresponse.writeHead(401,{\n\t\t\t\&quot;WWW-Authenticate\&quot;: 'Basic realm=\&quot;Please provide your username and password to login to ' + state.server.servername + '\&quot;'\n\t\t});\n\t\tresponse.end();\t\t\n\t} else {\n\t\t// Redirect to the root wiki if login worked\n\t\tresponse.writeHead(302,{\n\t\t\tLocation: \&quot;/\&quot;\n\t\t});\n\t\tresponse.end();\n\t}\n};\n\n}());\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;route&quot;
},
&quot;$:/core/modules/server/routes/get-status.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/routes/get-status.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/routes/get-status.js\ntype: application/javascript\nmodule-type: route\n\nGET /status\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.method = \&quot;GET\&quot;;\n\nexports.path = /^\\/status$/;\n\nexports.handler = function(request,response,state) {\n\tresponse.writeHead(200, {\&quot;Content-Type\&quot;: \&quot;application/json\&quot;});\n\tvar text = JSON.stringify({\n\t\tusername: state.authenticatedUsername || state.server.get(\&quot;anon-username\&quot;) || \&quot;\&quot;,\n\t\tanonymous: !state.authenticatedUsername,\n\t\tread_only: !state.server.isAuthorized(\&quot;writers\&quot;,state.authenticatedUsername),\n\t\tspace: {\n\t\t\trecipe: \&quot;default\&quot;\n\t\t},\n\t\ttiddlywiki_version: $tw.version\n\t});\n\tresponse.end(text,\&quot;utf8\&quot;);\n};\n\n}());\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;route&quot;
},
&quot;$:/core/modules/server/routes/get-tiddler-html.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/routes/get-tiddler-html.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/routes/get-tiddler-html.js\ntype: application/javascript\nmodule-type: route\n\nGET /:title\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.method = \&quot;GET\&quot;;\n\nexports.path = /^\\/([^\\/]+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar title = decodeURIComponent(state.params[0]),\n\t\ttiddler = state.wiki.getTiddler(title);\n\tif(tiddler) {\n\t\tvar renderType = tiddler.getFieldString(\&quot;_render_type\&quot;),\n\t\t\trenderTemplate = tiddler.getFieldString(\&quot;_render_template\&quot;);\n\t\t// Tiddler fields '_render_type' and '_render_template' overwrite\n\t\t// system wide settings for render type and template\n\t\tif(state.wiki.isSystemTiddler(title)) {\n\t\t\trenderType = renderType || state.server.get(\&quot;system-tiddler-render-type\&quot;);\n\t\t\trenderTemplate = renderTemplate || state.server.get(\&quot;system-tiddler-render-template\&quot;);\n\t\t} else {\n\t\t\trenderType = renderType || state.server.get(\&quot;tiddler-render-type\&quot;);\n\t\t\trenderTemplate = renderTemplate || state.server.get(\&quot;tiddler-render-template\&quot;);\n\t\t}\n\t\tvar text = state.wiki.renderTiddler(renderType,renderTemplate,{parseAsInline: true, variables: {currentTiddler: title}});\n\t\t// Naughty not to set a content-type, but it's the easiest way to ensure the browser will see HTML pages as HTML, and accept plain text tiddlers as CSS or JS\n\t\tresponse.writeHead(200);\n\t\tresponse.end(text,\&quot;utf8\&quot;);\n\t} else {\n\t\tresponse.writeHead(404);\n\t\tresponse.end();\n\t}\n};\n\n}());\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;route&quot;
},
&quot;$:/core/modules/server/routes/get-tiddler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/routes/get-tiddler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/routes/get-tiddler.js\ntype: application/javascript\nmodule-type: route\n\nGET /recipes/default/tiddlers/:title\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.method = \&quot;GET\&quot;;\n\nexports.path = /^\\/recipes\\/default\\/tiddlers\\/(.+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar title = decodeURIComponent(state.params[0]),\n\t\ttiddler = state.wiki.getTiddler(title),\n\t\ttiddlerFields = {},\n\t\tknownFields = [\n\t\t\t\&quot;bag\&quot;, \&quot;created\&quot;, \&quot;creator\&quot;, \&quot;modified\&quot;, \&quot;modifier\&quot;, \&quot;permissions\&quot;, \&quot;recipe\&quot;, \&quot;revision\&quot;, \&quot;tags\&quot;, \&quot;text\&quot;, \&quot;title\&quot;, \&quot;type\&quot;, \&quot;uri\&quot;\n\t\t];\n\tif(tiddler) {\n\t\t$tw.utils.each(tiddler.fields,function(field,name) {\n\t\t\tvar value = tiddler.getFieldString(name);\n\t\t\tif(knownFields.indexOf(name) !== -1) {\n\t\t\t\ttiddlerFields[name] = value;\n\t\t\t} else {\n\t\t\t\ttiddlerFields.fields = tiddlerFields.fields || {};\n\t\t\t\ttiddlerFields.fields[name] = value;\n\t\t\t}\n\t\t});\n\t\ttiddlerFields.revision = state.wiki.getChangeCount(title);\n\t\ttiddlerFields.bag = \&quot;default\&quot;;\n\t\ttiddlerFields.type = tiddlerFields.type || \&quot;text/vnd.tiddlywiki\&quot;;\n\t\tresponse.writeHead(200, {\&quot;Content-Type\&quot;: \&quot;application/json\&quot;});\n\t\tresponse.end(JSON.stringify(tiddlerFields),\&quot;utf8\&quot;);\n\t} else {\n\t\tresponse.writeHead(404);\n\t\tresponse.end();\n\t}\n};\n\n}());\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;route&quot;
},
&quot;$:/core/modules/server/routes/get-tiddlers-json.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/routes/get-tiddlers-json.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/routes/get-tiddlers-json.js\ntype: application/javascript\nmodule-type: route\n\nGET /recipes/default/tiddlers.json?filter=&lt;filter&gt;\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar DEFAULT_FILTER = \&quot;[all[tiddlers]!is[system]sort[title]]\&quot;;\n\nexports.method = \&quot;GET\&quot;;\n\nexports.path = /^\\/recipes\\/default\\/tiddlers.json$/;\n\nexports.handler = function(request,response,state) {\n\tvar filter = state.queryParameters.filter || DEFAULT_FILTER;\n\tif(state.wiki.getTiddlerText(\&quot;$:/config/Server/AllowAllExternalFilters\&quot;) !== \&quot;yes\&quot;) {\n\t\tif(state.wiki.getTiddlerText(\&quot;$:/config/Server/ExternalFilters/\&quot; + filter) !== \&quot;yes\&quot;) {\n\t\t\tconsole.log(\&quot;Blocked attempt to GET /recipes/default/tiddlers.json with filter: \&quot; + filter);\n\t\t\tresponse.writeHead(403);\n\t\t\tresponse.end();\n\t\t\treturn;\n\t\t}\n\t}\n\tif(state.wiki.getTiddlerText(\&quot;$:/config/SyncSystemTiddlersFromServer\&quot;) === \&quot;no\&quot;) {\n\t\tfilter += \&quot;+[!is[system]]\&quot;;\n\t}\n\tvar excludeFields = (state.queryParameters.exclude || \&quot;text\&quot;).split(\&quot;,\&quot;),\n\t\ttitles = state.wiki.filterTiddlers(filter);\n\tresponse.writeHead(200, {\&quot;Content-Type\&quot;: \&quot;application/json\&quot;});\n\tvar tiddlers = [];\n\t$tw.utils.each(titles,function(title) {\n\t\tvar tiddler = state.wiki.getTiddler(title);\n\t\tif(tiddler) {\n\t\t\tvar tiddlerFields = tiddler.getFieldStrings({exclude: excludeFields});\n\t\t\ttiddlerFields.revision = state.wiki.getChangeCount(title);\n\t\t\ttiddlerFields.type = tiddlerFields.type || \&quot;text/vnd.tiddlywiki\&quot;;\n\t\t\ttiddlers.push(tiddlerFields);\n\t\t}\n\t});\n\tvar text = JSON.stringify(tiddlers);\n\tresponse.end(text,\&quot;utf8\&quot;);\n};\n\n}());\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;route&quot;
},
&quot;$:/core/modules/server/routes/put-tiddler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/routes/put-tiddler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/routes/put-tiddler.js\ntype: application/javascript\nmodule-type: route\n\nPUT /recipes/default/tiddlers/:title\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.method = \&quot;PUT\&quot;;\n\nexports.path = /^\\/recipes\\/default\\/tiddlers\\/(.+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar title = decodeURIComponent(state.params[0]),\n\tfields = JSON.parse(state.data);\n\t// Pull up any subfields in the `fields` object\n\tif(fields.fields) {\n\t\t$tw.utils.each(fields.fields,function(field,name) {\n\t\t\tfields[name] = field;\n\t\t});\n\t\tdelete fields.fields;\n\t}\n\t// Remove any revision field\n\tif(fields.revision) {\n\t\tdelete fields.revision;\n\t}\n\tstate.wiki.addTiddler(new $tw.Tiddler(state.wiki.getCreationFields(),fields,{title: title},state.wiki.getModificationFields()));\n\tvar changeCount = state.wiki.getChangeCount(title).toString();\n\tresponse.writeHead(204, \&quot;OK\&quot;,{\n\t\tEtag: \&quot;\\\&quot;default/\&quot; + encodeURIComponent(title) + \&quot;/\&quot; + changeCount + \&quot;:\\\&quot;\&quot;,\n\t\t\&quot;Content-Type\&quot;: \&quot;text/plain\&quot;\n\t});\n\tresponse.end();\n};\n\n}());\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;route&quot;
},
&quot;$:/core/modules/server/server.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/server/server.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/server/server.js\ntype: application/javascript\nmodule-type: library\n\nServe tiddlers over http\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nif($tw.node) {\n\tvar util = require(\&quot;util\&quot;),\n\t\tfs = require(\&quot;fs\&quot;),\n\t\turl = require(\&quot;url\&quot;),\n\t\tpath = require(\&quot;path\&quot;),\n\t\tquerystring = require(\&quot;querystring\&quot;);\n}\n\n/*\nA simple HTTP server with regexp-based routes\noptions: variables - optional hashmap of variables to set (a misnomer - they are really constant parameters)\n\t\t routes - optional array of routes to use\n\t\t wiki - reference to wiki object\n*/\nfunction Server(options) {\n\tvar self = this;\n\tthis.routes = options.routes || [];\n\tthis.authenticators = options.authenticators || [];\n\tthis.wiki = options.wiki;\n\tthis.boot = options.boot || $tw.boot;\n\tthis.servername = $tw.utils.transliterateToSafeASCII(this.wiki.getTiddlerText(\&quot;$:/SiteTitle\&quot;) || \&quot;TiddlyWiki5\&quot;);\n\t// Initialise the variables\n\tthis.variables = $tw.utils.extend({},this.defaultVariables);\n\tif(options.variables) {\n\t\tfor(var variable in options.variables) {\n\t\t\tif(options.variables[variable]) {\n\t\t\t\tthis.variables[variable] = options.variables[variable];\n\t\t\t}\n\t\t}\t\t\n\t}\n\t$tw.utils.extend({},this.defaultVariables,options.variables);\n\t// Initialise CSRF\n\tthis.csrfDisable = this.get(\&quot;csrf-disable\&quot;) === \&quot;yes\&quot;;\n\t// Initialize Gzip compression\n\tthis.enableGzip = this.get(\&quot;gzip\&quot;) === \&quot;yes\&quot;;\n\t// Initialise authorization\n\tvar authorizedUserName = (this.get(\&quot;username\&quot;) &amp;&amp; this.get(\&quot;password\&quot;)) ? this.get(\&quot;username\&quot;) : \&quot;(anon)\&quot;;\n\tthis.authorizationPrincipals = {\n\t\treaders: (this.get(\&quot;readers\&quot;) || authorizedUserName).split(\&quot;,\&quot;).map($tw.utils.trim),\n\t\twriters: (this.get(\&quot;writers\&quot;) || authorizedUserName).split(\&quot;,\&quot;).map($tw.utils.trim)\n\t}\n\t// Load and initialise authenticators\n\t$tw.modules.forEachModuleOfType(\&quot;authenticator\&quot;, function(title,authenticatorDefinition) {\n\t\t// console.log(\&quot;Loading server route \&quot; + title);\n\t\tself.addAuthenticator(authenticatorDefinition.AuthenticatorClass);\n\t});\n\t// Load route handlers\n\t$tw.modules.forEachModuleOfType(\&quot;route\&quot;, function(title,routeDefinition) {\n\t\t// console.log(\&quot;Loading server route \&quot; + title);\n\t\tself.addRoute(routeDefinition);\n\t});\n\t// Initialise the http vs https\n\tthis.listenOptions = null;\n\tthis.protocol = \&quot;http\&quot;;\n\tvar tlsKeyFilepath = this.get(\&quot;tls-key\&quot;),\n\t\ttlsCertFilepath = this.get(\&quot;tls-cert\&quot;);\n\tif(tlsCertFilepath &amp;&amp; tlsKeyFilepath) {\n\t\tthis.listenOptions = {\n\t\t\tkey: fs.readFileSync(path.resolve(this.boot.wikiPath,tlsKeyFilepath),\&quot;utf8\&quot;),\n\t\t\tcert: fs.readFileSync(path.resolve(this.boot.wikiPath,tlsCertFilepath),\&quot;utf8\&quot;)\n\t\t};\n\t\tthis.protocol = \&quot;https\&quot;;\n\t}\n\tthis.transport = require(this.protocol);\n}\n\nServer.prototype.defaultVariables = {\n\tport: \&quot;8080\&quot;,\n\thost: \&quot;127.0.0.1\&quot;,\n\t\&quot;root-tiddler\&quot;: \&quot;$:/core/save/all\&quot;,\n\t\&quot;root-render-type\&quot;: \&quot;text/plain\&quot;,\n\t\&quot;root-serve-type\&quot;: \&quot;text/html\&quot;,\n\t\&quot;tiddler-render-type\&quot;: \&quot;text/html\&quot;,\n\t\&quot;tiddler-render-template\&quot;: \&quot;$:/core/templates/server/static.tiddler.html\&quot;,\n\t\&quot;system-tiddler-render-type\&quot;: \&quot;text/plain\&quot;,\n\t\&quot;system-tiddler-render-template\&quot;: \&quot;$:/core/templates/wikified-tiddler\&quot;,\n\t\&quot;debug-level\&quot;: \&quot;none\&quot;,\n\t\&quot;gzip\&quot;: \&quot;no\&quot;\n};\n\nServer.prototype.get = function(name) {\n\treturn this.variables[name];\n};\n\nServer.prototype.addRoute = function(route) {\n\tthis.routes.push(route);\n};\n\nServer.prototype.addAuthenticator = function(AuthenticatorClass) {\n\t// Instantiate and initialise the authenticator\n\tvar authenticator = new AuthenticatorClass(this),\n\t\tresult = authenticator.init();\n\tif(typeof result === \&quot;string\&quot;) {\n\t\t$tw.utils.error(\&quot;Error: \&quot; + result);\n\t} else if(result) {\n\t\t// Only use the authenticator if it initialised successfully\n\t\tthis.authenticators.push(authenticator);\n\t}\n};\n\nServer.prototype.findMatchingRoute = function(request,state) {\n\tfor(var t=0; t&lt;this.routes.length; t++) {\n\t\tvar potentialRoute = this.routes[t],\n\t\t\tpathRegExp = potentialRoute.path,\n\t\t\tpathname = state.urlInfo.pathname,\n\t\t\tmatch;\n\t\tif(state.pathPrefix) {\n\t\t\tif(pathname.substr(0,state.pathPrefix.length) === state.pathPrefix) {\n\t\t\t\tpathname = pathname.substr(state.pathPrefix.length) || \&quot;/\&quot;;\n\t\t\t\tmatch = potentialRoute.path.exec(pathname);\n\t\t\t} else {\n\t\t\t\tmatch = false;\n\t\t\t}\n\t\t} else {\n\t\t\tmatch = potentialRoute.path.exec(pathname);\n\t\t}\n\t\tif(match &amp;&amp; request.method === potentialRoute.method) {\n\t\t\tstate.params = [];\n\t\t\tfor(var p=1; p&lt;match.length; p++) {\n\t\t\t\tstate.params.push(match[p]);\n\t\t\t}\n\t\t\treturn potentialRoute;\n\t\t}\n\t}\n\treturn null;\n};\n\nServer.prototype.methodMappings = {\n\t\&quot;GET\&quot;: \&quot;readers\&quot;,\n\t\&quot;OPTIONS\&quot;: \&quot;readers\&quot;,\n\t\&quot;HEAD\&quot;: \&quot;readers\&quot;,\n\t\&quot;PUT\&quot;: \&quot;writers\&quot;,\n\t\&quot;POST\&quot;: \&quot;writers\&quot;,\n\t\&quot;DELETE\&quot;: \&quot;writers\&quot;\n};\n\n/*\nCheck whether a given user is authorized for the specified authorizationType (\&quot;readers\&quot; or \&quot;writers\&quot;). Pass null or undefined as the username to check for anonymous access\n*/\nServer.prototype.isAuthorized = function(authorizationType,username) {\n\tvar principals = this.authorizationPrincipals[authorizationType] || [];\n\treturn principals.indexOf(\&quot;(anon)\&quot;) !== -1 || (username &amp;&amp; (principals.indexOf(\&quot;(authenticated)\&quot;) !== -1 || principals.indexOf(username) !== -1));\n}\n\nServer.prototype.requestHandler = function(request,response,options) {\n\toptions = options || {};\n\t// Compose the state object\n\tvar self = this;\n\tvar state = {};\n\tstate.wiki = options.wiki || self.wiki;\n\tstate.boot = options.boot || self.boot;\n\tstate.server = self;\n\tstate.urlInfo = url.parse(request.url);\n\tstate.queryParameters = querystring.parse(state.urlInfo.query);\n\tstate.pathPrefix = options.pathPrefix || this.get(\&quot;path-prefix\&quot;) || \&quot;\&quot;;\n\t// Get the principals authorized to access this resource\n\tvar authorizationType = this.methodMappings[request.method] || \&quot;readers\&quot;;\n\t// Check for the CSRF header if this is a write\n\tif(!this.csrfDisable &amp;&amp; authorizationType === \&quot;writers\&quot; &amp;&amp; request.headers[\&quot;x-requested-with\&quot;] !== \&quot;TiddlyWiki\&quot;) {\n\t\tresponse.writeHead(403,\&quot;'X-Requested-With' header required to login to '\&quot; + this.servername + \&quot;'\&quot;);\n\t\tresponse.end();\n\t\treturn;\t\t\n\t}\n\t// Check whether anonymous access is granted\n\tstate.allowAnon = this.isAuthorized(authorizationType,null);\n\t// Authenticate with the first active authenticator\n\tif(this.authenticators.length &gt; 0) {\n\t\tif(!this.authenticators[0].authenticateRequest(request,response,state)) {\n\t\t\t// Bail if we failed (the authenticator will have sent the response)\n\t\t\treturn;\n\t\t}\t\t\n\t}\n\t// Authorize with the authenticated username\n\tif(!this.isAuthorized(authorizationType,state.authenticatedUsername)) {\n\t\tresponse.writeHead(401,\&quot;'\&quot; + state.authenticatedUsername + \&quot;' is not authorized to access '\&quot; + this.servername + \&quot;'\&quot;);\n\t\tresponse.end();\n\t\treturn;\n\t}\n\t// Find the route that matches this path\n\tvar route = self.findMatchingRoute(request,state);\n\t// Optionally output debug info\n\tif(self.get(\&quot;debug-level\&quot;) !== \&quot;none\&quot;) {\n\t\tconsole.log(\&quot;Request path:\&quot;,JSON.stringify(state.urlInfo));\n\t\tconsole.log(\&quot;Request headers:\&quot;,JSON.stringify(request.headers));\n\t\tconsole.log(\&quot;authenticatedUsername:\&quot;,state.authenticatedUsername);\n\t}\n\t// Return a 404 if we didn't find a route\n\tif(!route) {\n\t\tresponse.writeHead(404);\n\t\tresponse.end();\n\t\treturn;\n\t}\n\t// Receive the request body if necessary and hand off to the route handler\n\tif(route.bodyFormat === \&quot;stream\&quot; || request.method === \&quot;GET\&quot; || request.method === \&quot;HEAD\&quot;) {\n\t\t// Let the route handle the request stream itself\n\t\troute.handler(request,response,state);\n\t} else if(route.bodyFormat === \&quot;string\&quot; || !route.bodyFormat) {\n\t\t// Set the encoding for the incoming request\n\t\trequest.setEncoding(\&quot;utf8\&quot;);\n\t\tvar data = \&quot;\&quot;;\n\t\trequest.on(\&quot;data\&quot;,function(chunk) {\n\t\t\tdata += chunk.toString();\n\t\t});\n\t\trequest.on(\&quot;end\&quot;,function() {\n\t\t\tstate.data = data;\n\t\t\troute.handler(request,response,state);\n\t\t});\n\t} else if(route.bodyFormat === \&quot;buffer\&quot;) {\n\t\tvar data = [];\n\t\trequest.on(\&quot;data\&quot;,function(chunk) {\n\t\t\tdata.push(chunk);\n\t\t});\n\t\trequest.on(\&quot;end\&quot;,function() {\n\t\t\tstate.data = Buffer.concat(data);\n\t\t\troute.handler(request,response,state);\n\t\t})\n\t} else {\n\t\tresponse.writeHead(400,\&quot;Invalid bodyFormat \&quot; + route.bodyFormat + \&quot; in route \&quot; + route.method + \&quot; \&quot; + route.path.source);\n\t\tresponse.end();\n\t}\n};\n\n/*\nListen for requests\nport: optional port number (falls back to value of \&quot;port\&quot; variable)\nhost: optional host address (falls back to value of \&quot;host\&quot; variable)\nprefix: optional prefix (falls back to value of \&quot;path-prefix\&quot; variable)\n*/\nServer.prototype.listen = function(port,host,prefix) {\n\tvar self = this;\n\t// Handle defaults for port and host\n\tport = port || this.get(\&quot;port\&quot;);\n\thost = host || this.get(\&quot;host\&quot;);\n\tprefix = prefix || this.get(\&quot;path-prefix\&quot;) || \&quot;\&quot;;\n\t// Check for the port being a string and look it up as an environment variable\n\tif(parseInt(port,10).toString() !== port) {\n\t\tport = process.env[port] || 8080;\n\t}\n\t// Warn if required plugins are missing\n\tif(!this.wiki.getTiddler(\&quot;$:/plugins/tiddlywiki/tiddlyweb\&quot;) || !this.wiki.getTiddler(\&quot;$:/plugins/tiddlywiki/filesystem\&quot;)) {\n\t\t$tw.utils.warning(\&quot;Warning: Plugins required for client-server operation (\\\&quot;tiddlywiki/filesystem\\\&quot; and \\\&quot;tiddlywiki/tiddlyweb\\\&quot;) are missing from tiddlywiki.info file\&quot;);\n\t}\n\t// Create the server\n\tvar server;\n\tif(this.listenOptions) {\n\t\tserver = this.transport.createServer(this.listenOptions,this.requestHandler.bind(this));\n\t} else {\n\t\tserver = this.transport.createServer(this.requestHandler.bind(this));\n\t}\n\t// Display the port number after we've started listening (the port number might have been specified as zero, in which case we will get an assigned port)\n\tserver.on(\&quot;listening\&quot;,function() {\n\t\tvar address = server.address();\n\t\t$tw.utils.log(\&quot;Serving on \&quot; + self.protocol + \&quot;://\&quot; + address.address + \&quot;:\&quot; + address.port + prefix,\&quot;brown/orange\&quot;);\n\t\t$tw.utils.log(\&quot;(press ctrl-C to exit)\&quot;,\&quot;red\&quot;);\n\t});\n\t// Listen\n\treturn server.listen(port,host);\n};\n\nexports.Server = Server;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;library&quot;
},
&quot;$:/core/modules/browser-messaging.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/browser-messaging.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/browser-messaging.js\ntype: application/javascript\nmodule-type: startup\n\nBrowser message handling\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;browser-messaging\&quot;;\nexports.platforms = [\&quot;browser\&quot;];\nexports.after = [\&quot;startup\&quot;];\nexports.synchronous = true;\n\n/*\nLoad a specified url as an iframe and call the callback when it is loaded. If the url is already loaded then the existing iframe instance is used\n*/\nfunction loadIFrame(url,callback) {\n\t// Check if iframe already exists\n\tvar iframeInfo = $tw.browserMessaging.iframeInfoMap[url];\n\tif(iframeInfo) {\n\t\t// We've already got the iframe\n\t\tcallback(null,iframeInfo);\n\t} else {\n\t\t// Create the iframe and save it in the list\n\t\tvar iframe = document.createElement(\&quot;iframe\&quot;);\n\t\tiframeInfo = {\n\t\t\turl: url,\n\t\t\tstatus: \&quot;loading\&quot;,\n\t\t\tdomNode: iframe\n\t\t};\n\t\t$tw.browserMessaging.iframeInfoMap[url] = iframeInfo;\n\t\tsaveIFrameInfoTiddler(iframeInfo);\n\t\t// Add the iframe to the DOM and hide it\n\t\tiframe.style.display = \&quot;none\&quot;;\n\t\tiframe.setAttribute(\&quot;library\&quot;,\&quot;true\&quot;);\n\t\tdocument.body.appendChild(iframe);\n\t\t// Set up onload\n\t\tiframe.onload = function() {\n\t\t\tiframeInfo.status = \&quot;loaded\&quot;;\n\t\t\tsaveIFrameInfoTiddler(iframeInfo);\n\t\t\tcallback(null,iframeInfo);\n\t\t};\n\t\tiframe.onerror = function() {\n\t\t\tcallback(\&quot;Cannot load iframe\&quot;);\n\t\t};\n\t\ttry {\n\t\t\tiframe.src = url;\n\t\t} catch(ex) {\n\t\t\tcallback(ex);\n\t\t}\n\t}\n}\n\n/*\nUnload library iframe for given url\n*/\nfunction unloadIFrame(url){\n\t$tw.utils.each(document.getElementsByTagName('iframe'), function(iframe) {\n\t\tif(iframe.getAttribute(\&quot;library\&quot;) === \&quot;true\&quot; &amp;&amp;\n\t\t iframe.getAttribute(\&quot;src\&quot;) === url) {\n\t\t\tiframe.parentNode.removeChild(iframe);\n\t\t}\n\t});\n}\n\nfunction saveIFrameInfoTiddler(iframeInfo) {\n\t$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),{\n\t\ttitle: \&quot;$:/temp/ServerConnection/\&quot; + iframeInfo.url,\n\t\ttext: iframeInfo.status,\n\t\ttags: [\&quot;$:/tags/ServerConnection\&quot;],\n\t\turl: iframeInfo.url\n\t},$tw.wiki.getModificationFields()));\n}\n\nexports.startup = function() {\n\t// Initialise the store of iframes we've created\n\t$tw.browserMessaging = {\n\t\tiframeInfoMap: {} // Hashmap by URL of {url:,status:\&quot;loading/loaded\&quot;,domNode:}\n\t};\n\t// Listen for widget messages to control loading the plugin library\n\t$tw.rootWidget.addEventListener(\&quot;tm-load-plugin-library\&quot;,function(event) {\n\t\tvar paramObject = event.paramObject || {},\n\t\t\turl = paramObject.url;\n\t\tif(url) {\n\t\t\tloadIFrame(url,function(err,iframeInfo) {\n\t\t\t\tif(err) {\n\t\t\t\t\talert($tw.language.getString(\&quot;Error/LoadingPluginLibrary\&quot;) + \&quot;: \&quot; + url);\n\t\t\t\t} else {\n\t\t\t\t\tiframeInfo.domNode.contentWindow.postMessage({\n\t\t\t\t\t\tverb: \&quot;GET\&quot;,\n\t\t\t\t\t\turl: \&quot;recipes/library/tiddlers.json\&quot;,\n\t\t\t\t\t\tcookies: {\n\t\t\t\t\t\t\ttype: \&quot;save-info\&quot;,\n\t\t\t\t\t\t\tinfoTitlePrefix: paramObject.infoTitlePrefix || \&quot;$:/temp/RemoteAssetInfo/\&quot;,\n\t\t\t\t\t\t\turl: url\n\t\t\t\t\t\t}\n\t\t\t\t\t},\&quot;*\&quot;);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\t// Listen for widget messages to control unloading the plugin library\n\t$tw.rootWidget.addEventListener(\&quot;tm-unload-plugin-library\&quot;,function(event) {\n\t\tvar paramObject = event.paramObject || {},\n\t\t\turl = paramObject.url;\n\t\t$tw.browserMessaging.iframeInfoMap[url] = undefined;\n\t\tif(url) {\n\t\t\tunloadIFrame(url);\n\t\t\t$tw.utils.each(\n\t\t\t\t$tw.wiki.filterTiddlers(\&quot;[[$:/temp/ServerConnection/\&quot; + url + \&quot;]] [prefix[$:/temp/RemoteAssetInfo/\&quot; + url + \&quot;/]]\&quot;),\n\t\t\t\tfunction(title) {\n\t\t\t\t\t$tw.wiki.deleteTiddler(title);\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t});\n\t$tw.rootWidget.addEventListener(\&quot;tm-load-plugin-from-library\&quot;,function(event) {\n\t\tvar paramObject = event.paramObject || {},\n\t\t\turl = paramObject.url,\n\t\t\ttitle = paramObject.title;\n\t\tif(url &amp;&amp; title) {\n\t\t\tloadIFrame(url,function(err,iframeInfo) {\n\t\t\t\tif(err) {\n\t\t\t\t\talert($tw.language.getString(\&quot;Error/LoadingPluginLibrary\&quot;) + \&quot;: \&quot; + url);\n\t\t\t\t} else {\n\t\t\t\t\tiframeInfo.domNode.contentWindow.postMessage({\n\t\t\t\t\t\tverb: \&quot;GET\&quot;,\n\t\t\t\t\t\turl: \&quot;recipes/library/tiddlers/\&quot; + encodeURIComponent(title) + \&quot;.json\&quot;,\n\t\t\t\t\t\tcookies: {\n\t\t\t\t\t\t\ttype: \&quot;save-tiddler\&quot;,\n\t\t\t\t\t\t\turl: url\n\t\t\t\t\t\t}\n\t\t\t\t\t},\&quot;*\&quot;);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\t// Listen for window messages from other windows\n\twindow.addEventListener(\&quot;message\&quot;,function listener(event){\n\t\t// console.log(\&quot;browser-messaging: \&quot;,document.location.toString())\n\t\t// console.log(\&quot;browser-messaging: Received message from\&quot;,event.origin);\n\t\t// console.log(\&quot;browser-messaging: Message content\&quot;,event.data);\n\t\tswitch(event.data.verb) {\n\t\t\tcase \&quot;GET-RESPONSE\&quot;:\n\t\t\t\tif(event.data.status.charAt(0) === \&quot;2\&quot;) {\n\t\t\t\t\tif(event.data.cookies) {\n\t\t\t\t\t\tif(event.data.cookies.type === \&quot;save-info\&quot;) {\n\t\t\t\t\t\t\tvar tiddlers = JSON.parse(event.data.body);\n\t\t\t\t\t\t\t$tw.utils.each(tiddlers,function(tiddler) {\n\t\t\t\t\t\t\t\t$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),tiddler,{\n\t\t\t\t\t\t\t\t\ttitle: event.data.cookies.infoTitlePrefix + event.data.cookies.url + \&quot;/\&quot; + tiddler.title,\n\t\t\t\t\t\t\t\t\t\&quot;original-title\&quot;: tiddler.title,\n\t\t\t\t\t\t\t\t\ttext: \&quot;\&quot;,\n\t\t\t\t\t\t\t\t\ttype: \&quot;text/vnd.tiddlywiki\&quot;,\n\t\t\t\t\t\t\t\t\t\&quot;original-type\&quot;: tiddler.type,\n\t\t\t\t\t\t\t\t\t\&quot;plugin-type\&quot;: undefined,\n\t\t\t\t\t\t\t\t\t\&quot;original-plugin-type\&quot;: tiddler[\&quot;plugin-type\&quot;],\n\t\t\t\t\t\t\t\t\t\&quot;module-type\&quot;: undefined,\n\t\t\t\t\t\t\t\t\t\&quot;original-module-type\&quot;: tiddler[\&quot;module-type\&quot;],\n\t\t\t\t\t\t\t\t\ttags: [\&quot;$:/tags/RemoteAssetInfo\&quot;],\n\t\t\t\t\t\t\t\t\t\&quot;original-tags\&quot;: $tw.utils.stringifyList(tiddler.tags || []),\n\t\t\t\t\t\t\t\t\t\&quot;server-url\&quot;: event.data.cookies.url\n\t\t\t\t\t\t\t\t},$tw.wiki.getModificationFields()));\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else if(event.data.cookies.type === \&quot;save-tiddler\&quot;) {\n\t\t\t\t\t\t\tvar tiddler = JSON.parse(event.data.body);\n\t\t\t\t\t\t\t$tw.wiki.addTiddler(new $tw.Tiddler(tiddler));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t},false);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup/commands.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup/commands.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup/commands.js\ntype: application/javascript\nmodule-type: startup\n\nCommand processing\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;commands\&quot;;\nexports.platforms = [\&quot;node\&quot;];\nexports.after = [\&quot;story\&quot;];\nexports.synchronous = false;\n\nexports.startup = function(callback) {\n\t// On the server, start a commander with the command line arguments\n\tvar commander = new $tw.Commander(\n\t\t$tw.boot.argv,\n\t\tfunction(err) {\n\t\t\tif(err) {\n\t\t\t\treturn $tw.utils.error(\&quot;Error: \&quot; + err);\n\t\t\t}\n\t\t\tcallback();\n\t\t},\n\t\t$tw.wiki,\n\t\t{output: process.stdout, error: process.stderr}\n\t);\n\tcommander.execute();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup/CSSescape.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup/CSSescape.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup/CSSescape.js\ntype: application/javascript\nmodule-type: startup\n\nPolyfill for CSS.escape()\n\n\\*/\n(function(root,factory){\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;css-escape\&quot;;\nexports.platforms = [\&quot;browser\&quot;];\nexports.after = [\&quot;startup\&quot;];\nexports.synchronous = true;\n\n/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */\n// https://github.com/umdjs/umd/blob/master/returnExports.js\nexports.startup = factory(root);\n}(typeof global != 'undefined' ? global : this, function(root) {\n\n\tif (root.CSS &amp;&amp; root.CSS.escape) {\n\t\treturn;\n\t}\n\n\t// https://drafts.csswg.org/cssom/#serialize-an-identifier\n\tvar cssEscape = function(value) {\n\t\tif (arguments.length == 0) {\n\t\t\tthrow new TypeError('`CSS.escape` requires an argument.');\n\t\t}\n\t\tvar string = String(value);\n\t\tvar length = string.length;\n\t\tvar index = -1;\n\t\tvar codeUnit;\n\t\tvar result = '';\n\t\tvar firstCodeUnit = string.charCodeAt(0);\n\t\twhile (++index &lt; length) {\n\t\t\tcodeUnit = string.charCodeAt(index);\n\t\t\t// Note: theres no need to special-case astral symbols, surrogate\n\t\t\t// pairs, or lone surrogates.\n\n\t\t\t// If the character is NULL (U+0000), then the REPLACEMENT CHARACTER\n\t\t\t// (U+FFFD).\n\t\t\tif (codeUnit == 0x0000) {\n\t\t\t\tresult += '\\uFFFD';\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t// If the character is in the range [\\1-\\1F] (U+0001 to U+001F) or is\n\t\t\t\t// U+007F, […]\n\t\t\t\t(codeUnit &gt;= 0x0001 &amp;&amp; codeUnit &lt;= 0x001F) || codeUnit == 0x007F ||\n\t\t\t\t// If the character is the first character and is in the range [0-9]\n\t\t\t\t// (U+0030 to U+0039), […]\n\t\t\t\t(index == 0 &amp;&amp; codeUnit &gt;= 0x0030 &amp;&amp; codeUnit &lt;= 0x0039) ||\n\t\t\t\t// If the character is the second character and is in the range [0-9]\n\t\t\t\t// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]\n\t\t\t\t(\n\t\t\t\t\tindex == 1 &amp;&amp;\n\t\t\t\t\tcodeUnit &gt;= 0x0030 &amp;&amp; codeUnit &lt;= 0x0039 &amp;&amp;\n\t\t\t\t\tfirstCodeUnit == 0x002D\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\t// https://drafts.csswg.org/cssom/#escape-a-character-as-code-point\n\t\t\t\tresult += '\\\\' + codeUnit.toString(16) + ' ';\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t// If the character is the first character and is a `-` (U+002D), and\n\t\t\t\t// there is no second character, […]\n\t\t\t\tindex == 0 &amp;&amp;\n\t\t\t\tlength == 1 &amp;&amp;\n\t\t\t\tcodeUnit == 0x002D\n\t\t\t) {\n\t\t\t\tresult += '\\\\' + string.charAt(index);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the character is not handled by one of the above rules and is\n\t\t\t// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or\n\t\t\t// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to\n\t\t\t// U+005A), or [a-z] (U+0061 to U+007A), […]\n\t\t\tif (\n\t\t\t\tcodeUnit &gt;= 0x0080 ||\n\t\t\t\tcodeUnit == 0x002D ||\n\t\t\t\tcodeUnit == 0x005F ||\n\t\t\t\tcodeUnit &gt;= 0x0030 &amp;&amp; codeUnit &lt;= 0x0039 ||\n\t\t\t\tcodeUnit &gt;= 0x0041 &amp;&amp; codeUnit &lt;= 0x005A ||\n\t\t\t\tcodeUnit &gt;= 0x0061 &amp;&amp; codeUnit &lt;= 0x007A\n\t\t\t) {\n\t\t\t\t// the character itself\n\t\t\t\tresult += string.charAt(index);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Otherwise, the escaped character.\n\t\t\t// https://drafts.csswg.org/cssom/#escape-a-character\n\t\t\tresult += '\\\\' + string.charAt(index);\n\n\t\t}\n\t\treturn result;\n\t};\n\n\tif (!root.CSS) {\n\t\troot.CSS = {};\n\t}\n\n\troot.CSS.escape = cssEscape;\n\n}));\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup/favicon.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup/favicon.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup/favicon.js\ntype: application/javascript\nmodule-type: startup\n\nFavicon handling\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;favicon\&quot;;\nexports.platforms = [\&quot;browser\&quot;];\nexports.after = [\&quot;startup\&quot;];\nexports.synchronous = true;\n\t\t\n// Favicon tiddler\nvar FAVICON_TITLE = \&quot;$:/favicon.ico\&quot;;\n\nexports.startup = function() {\n\t// Set up the favicon\n\tsetFavicon();\n\t// Reset the favicon when the tiddler changes\n\t$tw.wiki.addEventListener(\&quot;change\&quot;,function(changes) {\n\t\tif($tw.utils.hop(changes,FAVICON_TITLE)) {\n\t\t\tsetFavicon();\n\t\t}\n\t});\n};\n\nfunction setFavicon() {\n\tvar tiddler = $tw.wiki.getTiddler(FAVICON_TITLE);\n\tif(tiddler) {\n\t\tvar faviconLink = document.getElementById(\&quot;faviconLink\&quot;);\n\t\tfaviconLink.setAttribute(\&quot;href\&quot;,$tw.utils.makeDataUri(tiddler.fields.text,tiddler.fields.type,tiddler.fields._canonical_uri));\n\t}\n}\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup/info.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup/info.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup/info.js\ntype: application/javascript\nmodule-type: startup\n\nInitialise $:/info tiddlers via $:/temp/info-plugin pseudo-plugin\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;info\&quot;;\nexports.before = [\&quot;startup\&quot;];\nexports.after = [\&quot;load-modules\&quot;];\nexports.synchronous = true;\n\nvar TITLE_INFO_PLUGIN = \&quot;$:/temp/info-plugin\&quot;;\n\nexports.startup = function() {\n\t// Function to bake the info plugin with new tiddlers\n\tvar updateInfoPlugin = function(tiddlerFieldsArray) {\n\t\t// Get the existing tiddlers\n\t\tvar json = $tw.wiki.getTiddlerData(TITLE_INFO_PLUGIN,{tiddlers: {}});\n\t\t// Add the new ones\n\t\t$tw.utils.each(tiddlerFieldsArray,function(fields) {\n\t\t\tif(fields &amp;&amp; fields.title) {\n\t\t\t\tjson.tiddlers[fields.title] = fields;\n\t\t\t}\n\t\t});\n\t\t// Bake the info tiddlers into a plugin. We use the non-standard plugin-type \&quot;info\&quot; because ordinary plugins are only registered asynchronously after being loaded dynamically\n\t\tvar fields = {\n\t\t\ttitle: TITLE_INFO_PLUGIN,\n\t\t\ttype: \&quot;application/json\&quot;,\n\t\t\t\&quot;plugin-type\&quot;: \&quot;info\&quot;,\n\t\t\ttext: JSON.stringify(json,null,$tw.config.preferences.jsonSpaces)\n\t\t};\n\t\t$tw.wiki.addTiddler(new $tw.Tiddler(fields));\n\n\t};\n\t// Collect up the info tiddlers\n\tvar tiddlerFieldsArray = [];\n\t// Give each info module a chance to provide as many info tiddlers as they want as an array, and give them a callback for dynamically updating them\n\t$tw.modules.forEachModuleOfType(\&quot;info\&quot;,function(title,moduleExports) {\n\t\tif(moduleExports &amp;&amp; moduleExports.getInfoTiddlerFields) {\n\t\t\tArray.prototype.push.apply(tiddlerFieldsArray,moduleExports.getInfoTiddlerFields(updateInfoPlugin));\n\t\t}\n\t});\n\tupdateInfoPlugin(tiddlerFieldsArray);\n\tvar changes = $tw.wiki.readPluginInfo([TITLE_INFO_PLUGIN]);\n\t$tw.wiki.registerPluginTiddlers(\&quot;info\&quot;,[TITLE_INFO_PLUGIN]);\n\t$tw.wiki.unpackPluginTiddlers();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup/load-modules.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup/load-modules.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup/load-modules.js\ntype: application/javascript\nmodule-type: startup\n\nLoad core modules\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;load-modules\&quot;;\nexports.synchronous = true;\n\nexports.startup = function() {\n\t// Load modules\n\t$tw.modules.applyMethods(\&quot;utils\&quot;,$tw.utils);\n\tif($tw.node) {\n\t\t$tw.modules.applyMethods(\&quot;utils-node\&quot;,$tw.utils);\n\t}\n\t$tw.modules.applyMethods(\&quot;global\&quot;,$tw);\n\t$tw.modules.applyMethods(\&quot;config\&quot;,$tw.config);\n\t$tw.Tiddler.fieldModules = $tw.modules.getModulesByTypeAsHashmap(\&quot;tiddlerfield\&quot;);\n\t$tw.modules.applyMethods(\&quot;tiddlermethod\&quot;,$tw.Tiddler.prototype);\n\t$tw.modules.applyMethods(\&quot;wikimethod\&quot;,$tw.Wiki.prototype);\n\t$tw.wiki.addIndexersToWiki();\n\t$tw.modules.applyMethods(\&quot;tiddlerdeserializer\&quot;,$tw.Wiki.tiddlerDeserializerModules);\n\t$tw.macros = $tw.modules.getModulesByTypeAsHashmap(\&quot;macro\&quot;);\n\t$tw.wiki.initParsers();\n\t$tw.Commander.initCommands();\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup/password.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup/password.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup/password.js\ntype: application/javascript\nmodule-type: startup\n\nPassword handling\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;password\&quot;;\nexports.platforms = [\&quot;browser\&quot;];\nexports.after = [\&quot;startup\&quot;];\nexports.synchronous = true;\n\nexports.startup = function() {\n\t$tw.rootWidget.addEventListener(\&quot;tm-set-password\&quot;,function(event) {\n\t\t$tw.passwordPrompt.createPrompt({\n\t\t\tserviceName: $tw.language.getString(\&quot;Encryption/PromptSetPassword\&quot;),\n\t\t\tnoUserName: true,\n\t\t\tsubmitText: $tw.language.getString(\&quot;Encryption/SetPassword\&quot;),\n\t\t\tcanCancel: true,\n\t\t\trepeatPassword: true,\n\t\t\tcallback: function(data) {\n\t\t\t\tif(data) {\n\t\t\t\t\t$tw.crypto.setPassword(data.password);\n\t\t\t\t}\n\t\t\t\treturn true; // Get rid of the password prompt\n\t\t\t}\n\t\t});\n\t});\n\t$tw.rootWidget.addEventListener(\&quot;tm-clear-password\&quot;,function(event) {\n\t\tif($tw.browser) {\n\t\t\tif(!confirm($tw.language.getString(\&quot;Encryption/ConfirmClearPassword\&quot;))) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t$tw.crypto.setPassword(null);\n\t});\n\t// Ensure that $:/isEncrypted is maintained properly\n\t$tw.wiki.addEventListener(\&quot;change\&quot;,function(changes) {\n\t\tif($tw.utils.hop(changes,\&quot;$:/isEncrypted\&quot;)) {\n\t\t\t$tw.crypto.updateCryptoStateTiddler();\n\t\t}\n\t});\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup/plugins.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup/plugins.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup/plugins.js\ntype: application/javascript\nmodule-type: startup\n\nStartup logic concerned with managing plugins\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;plugins\&quot;;\nexports.after = [\&quot;load-modules\&quot;];\nexports.synchronous = true;\n\nvar TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE = \&quot;$:/status/RequireReloadDueToPluginChange\&quot;;\n\nvar PREFIX_CONFIG_REGISTER_PLUGIN_TYPE = \&quot;$:/config/RegisterPluginType/\&quot;;\n\nexports.startup = function() {\n\t$tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: \&quot;no\&quot;});\n\t$tw.wiki.addEventListener(\&quot;change\&quot;,function(changes) {\n\t\t// Work out which of the changed tiddlers are plugins that we need to reregister\n\t\tvar changesToProcess = [],\n\t\t\trequireReloadDueToPluginChange = false;\n\t\t$tw.utils.each(Object.keys(changes),function(title) {\n\t\t\tvar tiddler = $tw.wiki.getTiddler(title),\n\t\t\t\trequiresReload = $tw.wiki.doesPluginRequireReload(title);\n\t\t\tif(requiresReload) {\n\t\t\t\trequireReloadDueToPluginChange = true;\n\t\t\t} else if(tiddler) {\n\t\t\t\tvar pluginType = tiddler.fields[\&quot;plugin-type\&quot;];\n\t\t\t\tif($tw.wiki.getTiddlerText(PREFIX_CONFIG_REGISTER_PLUGIN_TYPE + (tiddler.fields[\&quot;plugin-type\&quot;] || \&quot;\&quot;),\&quot;no\&quot;) === \&quot;yes\&quot;) {\n\t\t\t\t\tchangesToProcess.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// Issue warning if any of the tiddlers require a reload\n\t\tif(requireReloadDueToPluginChange) {\n\t\t\t$tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: \&quot;yes\&quot;});\n\t\t}\n\t\t// Read or delete the plugin info of the changed tiddlers\n\t\tif(changesToProcess.length &gt; 0) {\n\t\t\tvar changes = $tw.wiki.readPluginInfo(changesToProcess);\n\t\t\tif(changes.modifiedPlugins.length &gt; 0 || changes.deletedPlugins.length &gt; 0) {\n\t\t\t\tvar changedShadowTiddlers = {};\n\t\t\t\t// Collect the shadow tiddlers of any deleted plugins\n\t\t\t\t$tw.utils.each(changes.deletedPlugins,function(pluginTitle) {\n\t\t\t\t\tvar pluginInfo = $tw.wiki.getPluginInfo(pluginTitle);\n\t\t\t\t\tif(pluginInfo) {\n\t\t\t\t\t\t$tw.utils.each(Object.keys(pluginInfo.tiddlers),function(title) {\n\t\t\t\t\t\t\tchangedShadowTiddlers[title] = true;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t// Collect the shadow tiddlers of any modified plugins\n\t\t\t\t$tw.utils.each(changes.modifiedPlugins,function(pluginTitle) {\n\t\t\t\t\tvar pluginInfo = $tw.wiki.getPluginInfo(pluginTitle);\n\t\t\t\t\tif(pluginInfo) {\n\t\t\t\t\t\t$tw.utils.each(Object.keys(pluginInfo.tiddlers),function(title) {\n\t\t\t\t\t\t\tchangedShadowTiddlers[title] = false;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t// (Re-)register any modified plugins\n\t\t\t\t$tw.wiki.registerPluginTiddlers(null,changes.modifiedPlugins);\n\t\t\t\t// Unregister any deleted plugins\n\t\t\t\t$tw.wiki.unregisterPluginTiddlers(null,changes.deletedPlugins);\n\t\t\t\t// Unpack the shadow tiddlers\n\t\t\t\t$tw.wiki.unpackPluginTiddlers();\n\t\t\t\t// Queue change events for the changed shadow tiddlers\n\t\t\t\t$tw.utils.each(Object.keys(changedShadowTiddlers),function(title) {\n\t\t\t\t\t$tw.wiki.enqueueTiddlerEvent(title,changedShadowTiddlers[title]);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t});\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup/render.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup/render.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup/render.js\ntype: application/javascript\nmodule-type: startup\n\nTitle, stylesheet and page rendering\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;render\&quot;;\nexports.platforms = [\&quot;browser\&quot;];\nexports.after = [\&quot;story\&quot;];\nexports.synchronous = true;\n\n// Default story and history lists\nvar PAGE_TITLE_TITLE = \&quot;$:/core/wiki/title\&quot;;\nvar PAGE_STYLESHEET_TITLE = \&quot;$:/core/ui/PageStylesheet\&quot;;\nvar PAGE_TEMPLATE_TITLE = \&quot;$:/core/ui/RootTemplate\&quot;;\n\n// Time (in ms) that we defer refreshing changes to draft tiddlers\nvar DRAFT_TIDDLER_TIMEOUT_TITLE = \&quot;$:/config/Drafts/TypingTimeout\&quot;;\nvar THROTTLE_REFRESH_TIMEOUT = 400;\n\nexports.startup = function() {\n\t// Set up the title\n\t$tw.titleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TITLE_TITLE,{document: $tw.fakeDocument, parseAsInline: true});\n\t$tw.titleContainer = $tw.fakeDocument.createElement(\&quot;div\&quot;);\n\t$tw.titleWidgetNode.render($tw.titleContainer,null);\n\tdocument.title = $tw.titleContainer.textContent;\n\t$tw.wiki.addEventListener(\&quot;change\&quot;,function(changes) {\n\t\tif($tw.titleWidgetNode.refresh(changes,$tw.titleContainer,null)) {\n\t\t\tdocument.title = $tw.titleContainer.textContent;\n\t\t}\n\t});\n\t// Set up the styles\n\t$tw.styleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_STYLESHEET_TITLE,{document: $tw.fakeDocument});\n\t$tw.styleContainer = $tw.fakeDocument.createElement(\&quot;style\&quot;);\n\t$tw.styleWidgetNode.render($tw.styleContainer,null);\n\t$tw.styleElement = document.createElement(\&quot;style\&quot;);\n\t$tw.styleElement.innerHTML = $tw.styleContainer.textContent;\n\tdocument.head.insertBefore($tw.styleElement,document.head.firstChild);\n\t$tw.wiki.addEventListener(\&quot;change\&quot;,$tw.perf.report(\&quot;styleRefresh\&quot;,function(changes) {\n\t\tif($tw.styleWidgetNode.refresh(changes,$tw.styleContainer,null)) {\n\t\t\t$tw.styleElement.innerHTML = $tw.styleContainer.textContent;\n\t\t}\n\t}));\n\t// Display the $:/core/ui/PageTemplate tiddler to kick off the display\n\t$tw.perf.report(\&quot;mainRender\&quot;,function() {\n\t\t$tw.pageWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TEMPLATE_TITLE,{document: document, parentWidget: $tw.rootWidget, recursionMarker: \&quot;no\&quot;});\n\t\t$tw.pageContainer = document.createElement(\&quot;div\&quot;);\n\t\t$tw.utils.addClass($tw.pageContainer,\&quot;tc-page-container-wrapper\&quot;);\n\t\tdocument.body.insertBefore($tw.pageContainer,document.body.firstChild);\n\t\t$tw.pageWidgetNode.render($tw.pageContainer,null);\n \t\t$tw.hooks.invokeHook(\&quot;th-page-refreshed\&quot;);\n\t})();\n\t// Remove any splash screen elements\n\tvar removeList = document.querySelectorAll(\&quot;.tc-remove-when-wiki-loaded\&quot;);\n\t$tw.utils.each(removeList,function(removeItem) {\n\t\tif(removeItem.parentNode) {\n\t\t\tremoveItem.parentNode.removeChild(removeItem);\n\t\t}\n\t});\n\t// Prepare refresh mechanism\n\tvar deferredChanges = Object.create(null),\n\t\ttimerId;\n\tfunction refresh() {\n\t\t// Process the refresh\n\t\t$tw.hooks.invokeHook(\&quot;th-page-refreshing\&quot;);\n\t\t$tw.pageWidgetNode.refresh(deferredChanges);\n\t\tdeferredChanges = Object.create(null);\n\t\t$tw.hooks.invokeHook(\&quot;th-page-refreshed\&quot;);\n\t}\n\t// Add the change event handler\n\t$tw.wiki.addEventListener(\&quot;change\&quot;,$tw.perf.report(\&quot;mainRefresh\&quot;,function(changes) {\n\t\t// Check if only tiddlers that are throttled have changed\n\t\tvar onlyThrottledTiddlersHaveChanged = true;\n\t\tfor(var title in changes) {\n\t\t\tvar tiddler = $tw.wiki.getTiddler(title);\n\t\t\tif(!tiddler || !(tiddler.hasField(\&quot;draft.of\&quot;) || tiddler.hasField(\&quot;throttle.refresh\&quot;))) {\n\t\t\t\tonlyThrottledTiddlersHaveChanged = false;\n\t\t\t}\n\t\t}\n\t\t// Defer the change if only drafts have changed\n\t\tif(timerId) {\n\t\t\tclearTimeout(timerId);\n\t\t}\n\t\ttimerId = null;\n\t\tif(onlyThrottledTiddlersHaveChanged) {\n\t\t\tvar timeout = parseInt($tw.wiki.getTiddlerText(DRAFT_TIDDLER_TIMEOUT_TITLE,\&quot;\&quot;),10);\n\t\t\tif(isNaN(timeout)) {\n\t\t\t\ttimeout = THROTTLE_REFRESH_TIMEOUT;\n\t\t\t}\n\t\t\ttimerId = setTimeout(refresh,timeout);\n\t\t\t$tw.utils.extend(deferredChanges,changes);\n\t\t} else {\n\t\t\t$tw.utils.extend(deferredChanges,changes);\n\t\t\trefresh();\n\t\t}\n\t}));\n\t// Fix up the link between the root widget and the page container\n\t$tw.rootWidget.domNodes = [$tw.pageContainer];\n\t$tw.rootWidget.children = [$tw.pageWidgetNode];\n\t// Run any post-render startup actions\n\t$tw.rootWidget.invokeActionsByTag(\&quot;$:/tags/StartupAction/PostRender\&quot;);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup/rootwidget.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup/rootwidget.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup/rootwidget.js\ntype: application/javascript\nmodule-type: startup\n\nSetup the root widget and the core root widget handlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;rootwidget\&quot;;\nexports.platforms = [\&quot;browser\&quot;];\nexports.after = [\&quot;startup\&quot;];\nexports.before = [\&quot;story\&quot;];\nexports.synchronous = true;\n\nexports.startup = function() {\n\t// Install the modal message mechanism\n\t$tw.modal = new $tw.utils.Modal($tw.wiki);\n\t$tw.rootWidget.addEventListener(\&quot;tm-modal\&quot;,function(event) {\n\t\t$tw.modal.display(event.param,{variables: event.paramObject, event: event});\n\t});\n\t$tw.rootWidget.addEventListener(\&quot;tm-show-switcher\&quot;,function(event) {\n\t\t$tw.modal.display(\&quot;$:/core/ui/SwitcherModal\&quot;,{variables: event.paramObject, event: event});\n\t});\t\n\t// Install the notification mechanism\n\t$tw.notifier = new $tw.utils.Notifier($tw.wiki);\n\t$tw.rootWidget.addEventListener(\&quot;tm-notify\&quot;,function(event) {\n\t\t$tw.notifier.display(event.param,{variables: event.paramObject});\n\t});\n\t// Install the copy-to-clipboard mechanism\n\t$tw.rootWidget.addEventListener(\&quot;tm-copy-to-clipboard\&quot;,function(event) {\n\t\t$tw.utils.copyToClipboard(event.param);\n\t});\n\t// Install the tm-focus-selector message\n\t$tw.rootWidget.addEventListener(\&quot;tm-focus-selector\&quot;,function(event) {\n\t\tvar selector = event.param || \&quot;\&quot;,\n\t\t\telement;\n\t\ttry {\n\t\t\telement = document.querySelector(selector);\n\t\t} catch(e) {\n\t\t\tconsole.log(\&quot;Error in selector: \&quot;,selector)\n\t\t}\n\t\tif(element &amp;&amp; element.focus) {\n\t\t\telement.focus(event.paramObject);\n\t\t}\n\t});\n\t// Install the scroller\n\t$tw.pageScroller = new $tw.utils.PageScroller();\n\t$tw.rootWidget.addEventListener(\&quot;tm-scroll\&quot;,function(event) {\n\t\t$tw.pageScroller.handleEvent(event);\n\t});\n\tvar fullscreen = $tw.utils.getFullScreenApis();\n\tif(fullscreen) {\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-full-screen\&quot;,function(event) {\n\t\t\tvar fullScreenDocument = event.event ? event.event.target.ownerDocument : document;\n\t\t\tif(event.param === \&quot;enter\&quot;) {\n\t\t\t\tfullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);\n\t\t\t} else if(event.param === \&quot;exit\&quot;) {\n\t\t\t\tfullScreenDocument[fullscreen._exitFullscreen]();\n\t\t\t} else {\n\t\t\t\tif(fullScreenDocument[fullscreen._fullscreenElement]) {\n\t\t\t\t\tfullScreenDocument[fullscreen._exitFullscreen]();\n\t\t\t\t} else {\n\t\t\t\t\tfullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t}\n\t// If we're being viewed on a data: URI then give instructions for how to save\n\tif(document.location.protocol === \&quot;data:\&quot;) {\n\t\t$tw.rootWidget.dispatchEvent({\n\t\t\ttype: \&quot;tm-modal\&quot;,\n\t\t\tparam: \&quot;$:/language/Modals/SaveInstructions\&quot;\n\t\t});\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup.js\ntype: application/javascript\nmodule-type: startup\n\nMiscellaneous startup logic for both the client and server.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;startup\&quot;;\nexports.after = [\&quot;load-modules\&quot;];\nexports.synchronous = true;\n\n// Set to `true` to enable performance instrumentation\nvar PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE = \&quot;$:/config/Performance/Instrumentation\&quot;;\n\nvar widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;);\n\nexports.startup = function() {\n\tvar modules,n,m,f;\n\t// Minimal browser detection\n\tif($tw.browser) {\n\t\t$tw.browser.isIE = (/msie|trident/i.test(navigator.userAgent));\n\t\t$tw.browser.isFirefox = !!document.mozFullScreenEnabled;\n\t}\n\t// Platform detection\n\t$tw.platform = {};\n\tif($tw.browser) {\n\t\t$tw.platform.isMac = /Mac/.test(navigator.platform);\n\t\t$tw.platform.isWindows = /win/i.test(navigator.platform);\n\t\t$tw.platform.isLinux = /Linux/i.test(navigator.platform);\n\t} else {\n\t\tswitch(require(\&quot;os\&quot;).platform()) {\n\t\t\tcase \&quot;darwin\&quot;:\n\t\t\t\t$tw.platform.isMac = true;\n\t\t\t\tbreak;\n\t\t\tcase \&quot;win32\&quot;:\n\t\t\t\t$tw.platform.isWindows = true;\n\t\t\t\tbreak;\n\t\t\tcase \&quot;freebsd\&quot;:\n\t\t\t\t$tw.platform.isLinux = true;\n\t\t\t\tbreak;\n\t\t\tcase \&quot;linux\&quot;:\n\t\t\t\t$tw.platform.isLinux = true;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\t// Initialise version\n\t$tw.version = $tw.utils.extractVersionInfo();\n\t// Set up the performance framework\n\t$tw.perf = new $tw.Performance($tw.wiki.getTiddlerText(PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE,\&quot;no\&quot;) === \&quot;yes\&quot;);\n\t// Create a root widget for attaching event handlers. By using it as the parentWidget for another widget tree, one can reuse the event handlers\n\t$tw.rootWidget = new widget.widget({\n\t\ttype: \&quot;widget\&quot;,\n\t\tchildren: []\n\t},{\n\t\twiki: $tw.wiki,\n\t\tdocument: $tw.browser ? document : $tw.fakeDocument\n\t});\n\t// Execute any startup actions\n\t$tw.rootWidget.invokeActionsByTag(\&quot;$:/tags/StartupAction\&quot;);\n\tif($tw.browser) {\n\t\t$tw.rootWidget.invokeActionsByTag(\&quot;$:/tags/StartupAction/Browser\&quot;);\t\t\n\t}\n\tif($tw.node) {\n\t\t$tw.rootWidget.invokeActionsByTag(\&quot;$:/tags/StartupAction/Node\&quot;);\t\t\n\t}\n\t// Kick off the language manager and switcher\n\t$tw.language = new $tw.Language();\n\t$tw.languageSwitcher = new $tw.PluginSwitcher({\n\t\twiki: $tw.wiki,\n\t\tpluginType: \&quot;language\&quot;,\n\t\tcontrollerTitle: \&quot;$:/language\&quot;,\n\t\tdefaultPlugins: [\n\t\t\t\&quot;$:/languages/en-GB\&quot;\n\t\t],\n\t\tonSwitch: function(plugins) {\n\t\t\tif($tw.browser) {\n\t\t\t\tvar pluginTiddler = $tw.wiki.getTiddler(plugins[0]);\n\t\t\t\tif(pluginTiddler) {\n\t\t\t\t\tdocument.documentElement.setAttribute(\&quot;dir\&quot;,pluginTiddler.getFieldString(\&quot;text-direction\&quot;) || \&quot;auto\&quot;);\n\t\t\t\t} else {\n\t\t\t\t\tdocument.documentElement.removeAttribute(\&quot;dir\&quot;);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\t// Kick off the theme manager\n\t$tw.themeManager = new $tw.PluginSwitcher({\n\t\twiki: $tw.wiki,\n\t\tpluginType: \&quot;theme\&quot;,\n\t\tcontrollerTitle: \&quot;$:/theme\&quot;,\n\t\tdefaultPlugins: [\n\t\t\t\&quot;$:/themes/tiddlywiki/snowwhite\&quot;,\n\t\t\t\&quot;$:/themes/tiddlywiki/vanilla\&quot;\n\t\t]\n\t});\n\t// Kick off the keyboard manager\n\t$tw.keyboardManager = new $tw.KeyboardManager();\n\t// Listen for shortcuts\n\tif($tw.browser) {\n\t\t$tw.utils.addEventListeners(document,[{\n\t\t\tname: \&quot;keydown\&quot;,\n\t\t\thandlerObject: $tw.keyboardManager,\n\t\t\thandlerMethod: \&quot;handleKeydownEvent\&quot;\n\t\t}]);\n\t}\n\t// Clear outstanding tiddler store change events to avoid an unnecessary refresh cycle at startup\n\t$tw.wiki.clearTiddlerEventQueue();\n\t// Find a working syncadaptor\n\t$tw.syncadaptor = undefined;\n\t$tw.modules.forEachModuleOfType(\&quot;syncadaptor\&quot;,function(title,module) {\n\t\tif(!$tw.syncadaptor &amp;&amp; module.adaptorClass) {\n\t\t\t$tw.syncadaptor = new module.adaptorClass({wiki: $tw.wiki});\n\t\t}\n\t});\n\t// Set up the syncer object if we've got a syncadaptor\n\tif($tw.syncadaptor) {\n\t\t$tw.syncer = new $tw.Syncer({wiki: $tw.wiki, syncadaptor: $tw.syncadaptor});\n\t}\n\t// Setup the saver handler\n\t$tw.saverHandler = new $tw.SaverHandler({\n\t\twiki: $tw.wiki,\n\t\tdirtyTracking: !$tw.syncadaptor,\n\t\tpreloadDirty: $tw.boot.preloadDirty || []\n\t});\n\t// Host-specific startup\n\tif($tw.browser) {\n\t\t// Install the popup manager\n\t\t$tw.popup = new $tw.utils.Popup();\n\t\t// Install the animator\n\t\t$tw.anim = new $tw.utils.Animator();\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup/story.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup/story.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup/story.js\ntype: application/javascript\nmodule-type: startup\n\nLoad core modules\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;story\&quot;;\nexports.after = [\&quot;startup\&quot;];\nexports.synchronous = true;\n\n// Default story and history lists\nvar DEFAULT_STORY_TITLE = \&quot;$:/StoryList\&quot;;\nvar DEFAULT_HISTORY_TITLE = \&quot;$:/HistoryList\&quot;;\n\n// Default tiddlers\nvar DEFAULT_TIDDLERS_TITLE = \&quot;$:/DefaultTiddlers\&quot;;\n\n// Config\nvar CONFIG_UPDATE_ADDRESS_BAR = \&quot;$:/config/Navigation/UpdateAddressBar\&quot;; // Can be \&quot;no\&quot;, \&quot;permalink\&quot;, \&quot;permaview\&quot;\nvar CONFIG_UPDATE_HISTORY = \&quot;$:/config/Navigation/UpdateHistory\&quot;; // Can be \&quot;yes\&quot; or \&quot;no\&quot;\nvar CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD = \&quot;$:/config/Navigation/Permalinkview/CopyToClipboard\&quot;; // Can be \&quot;yes\&quot; (default) or \&quot;no\&quot;\nvar CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR = \&quot;$:/config/Navigation/Permalinkview/UpdateAddressBar\&quot;; // Can be \&quot;yes\&quot; (default) or \&quot;no\&quot;\n\n\n// Links to help, if there is no param\nvar HELP_OPEN_EXTERNAL_WINDOW = \&quot;http://tiddlywiki.com/#WidgetMessage%3A%20tm-open-external-window\&quot;;\n\nexports.startup = function() {\n\t// Open startup tiddlers\n\topenStartupTiddlers({\n\t\tdisableHistory: $tw.boot.disableStartupNavigation\n\t});\n\tif($tw.browser) {\n\t\t// Set up location hash update\n\t\t$tw.wiki.addEventListener(\&quot;change\&quot;,function(changes) {\n\t\t\tif($tw.utils.hop(changes,DEFAULT_STORY_TITLE) || $tw.utils.hop(changes,DEFAULT_HISTORY_TITLE)) {\n\t\t\t\tupdateLocationHash({\n\t\t\t\t\tupdateAddressBar: $tw.wiki.getTiddlerText(CONFIG_UPDATE_ADDRESS_BAR,\&quot;permaview\&quot;).trim(),\n\t\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\&quot;no\&quot;).trim()\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\t// Listen for changes to the browser location hash\n\t\twindow.addEventListener(\&quot;hashchange\&quot;,function() {\n\t\t\tvar hash = $tw.utils.getLocationHash();\n\t\t\tif(hash !== $tw.locationHash) {\n\t\t\t\t$tw.locationHash = hash;\n\t\t\t\topenStartupTiddlers({defaultToCurrentStory: true});\n\t\t\t}\n\t\t},false);\n\t\t// Listen for the tm-browser-refresh message\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-browser-refresh\&quot;,function(event) {\n\t\t\twindow.location.reload(true);\n\t\t});\n\t\t// Listen for tm-open-external-window message\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-open-external-window\&quot;,function(event) {\n\t\t\tvar paramObject = event.paramObject || {},\n\t\t\t\tstrUrl = event.param || HELP_OPEN_EXTERNAL_WINDOW,\n\t\t\t\tstrWindowName = paramObject.windowName,\n\t\t\t\tstrWindowFeatures = paramObject.windowFeatures;\n\t\t\twindow.open(strUrl, strWindowName, strWindowFeatures);\n\t\t});\n\t\t// Listen for the tm-print message\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-print\&quot;,function(event) {\n\t\t\t(event.event.view || window).print();\n\t\t});\n\t\t// Listen for the tm-home message\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-home\&quot;,function(event) {\n\t\t\twindow.location.hash = \&quot;\&quot;;\n\t\t\tvar storyFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE),\n\t\t\t\tstoryList = $tw.wiki.filterTiddlers(storyFilter);\n\t\t\t//invoke any hooks that might change the default story list\n\t\t\tstoryList = $tw.hooks.invokeHook(\&quot;th-opening-default-tiddlers-list\&quot;,storyList);\n\t\t\t$tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: \&quot;\&quot;, list: storyList},$tw.wiki.getModificationFields());\n\t\t\tif(storyList[0]) {\n\t\t\t\t$tw.wiki.addToHistory(storyList[0]);\n\t\t\t}\n\t\t});\n\t\t// Listen for the tm-permalink message\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-permalink\&quot;,function(event) {\n\t\t\tupdateLocationHash({\n\t\t\t\tupdateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,\&quot;yes\&quot;).trim() === \&quot;yes\&quot; ? \&quot;permalink\&quot; : \&quot;none\&quot;,\n\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\&quot;no\&quot;).trim(),\n\t\t\t\ttargetTiddler: event.param || event.tiddlerTitle,\n\t\t\t\tcopyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,\&quot;yes\&quot;).trim() === \&quot;yes\&quot; ? \&quot;permalink\&quot; : \&quot;none\&quot;\n\t\t\t});\n\t\t});\n\t\t// Listen for the tm-permaview message\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-permaview\&quot;,function(event) {\n\t\t\tupdateLocationHash({\n\t\t\t\tupdateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,\&quot;yes\&quot;).trim() === \&quot;yes\&quot; ? \&quot;permaview\&quot; : \&quot;none\&quot;,\n\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\&quot;no\&quot;).trim(),\n\t\t\t\ttargetTiddler: event.param || event.tiddlerTitle,\n\t\t\t\tcopyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,\&quot;yes\&quot;).trim() === \&quot;yes\&quot; ? \&quot;permaview\&quot; : \&quot;none\&quot;\n\t\t\t});\t\t\t\t\n\t\t});\n\t}\n};\n\n/*\nProcess the location hash to open the specified tiddlers. Options:\ndisableHistory: if true $:/History is NOT updated\ndefaultToCurrentStory: If true, the current story is retained as the default, instead of opening the default tiddlers\n*/\nfunction openStartupTiddlers(options) {\n\toptions = options || {};\n\t// Work out the target tiddler and the story filter. \&quot;null\&quot; means \&quot;unspecified\&quot;\n\tvar target = null,\n\t\tstoryFilter = null;\n\tif($tw.locationHash.length &gt; 1) {\n\t\tvar hash = $tw.locationHash.substr(1),\n\t\t\tsplit = hash.indexOf(\&quot;:\&quot;);\n\t\tif(split === -1) {\n\t\t\ttarget = decodeURIComponent(hash.trim());\n\t\t} else {\n\t\t\ttarget = decodeURIComponent(hash.substr(0,split).trim());\n\t\t\tstoryFilter = decodeURIComponent(hash.substr(split + 1).trim());\n\t\t}\n\t}\n\t// If the story wasn't specified use the current tiddlers or a blank story\n\tif(storyFilter === null) {\n\t\tif(options.defaultToCurrentStory) {\n\t\t\tvar currStoryList = $tw.wiki.getTiddlerList(DEFAULT_STORY_TITLE);\n\t\t\tstoryFilter = $tw.utils.stringifyList(currStoryList);\n\t\t} else {\n\t\t\tif(target &amp;&amp; target !== \&quot;\&quot;) {\n\t\t\t\tstoryFilter = \&quot;\&quot;;\n\t\t\t} else {\n\t\t\t\tstoryFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE);\n\t\t\t}\n\t\t}\n\t}\n\t// Process the story filter to get the story list\n\tvar storyList = $tw.wiki.filterTiddlers(storyFilter);\n\t// Invoke any hooks that want to change the default story list\n\tstoryList = $tw.hooks.invokeHook(\&quot;th-opening-default-tiddlers-list\&quot;,storyList);\n\t// If the target tiddler isn't included then splice it in at the top\n\tif(target &amp;&amp; storyList.indexOf(target) === -1) {\n\t\tstoryList.unshift(target);\n\t}\n\t// Save the story list\n\t$tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: \&quot;\&quot;, list: storyList},$tw.wiki.getModificationFields());\n\t// Update history\n\tvar story = new $tw.Story({\n\t\twiki: $tw.wiki,\n\t\tstoryTitle: DEFAULT_STORY_TITLE,\n\t\thistoryTitle: DEFAULT_HISTORY_TITLE\n\t});\n\tif(!options.disableHistory) {\n\t\t// If a target tiddler was specified add it to the history stack\n\t\tif(target &amp;&amp; target !== \&quot;\&quot;) {\n\t\t\t// The target tiddler doesn't need double square brackets, but we'll silently remove them if they're present\n\t\t\tif(target.indexOf(\&quot;[[\&quot;) === 0 &amp;&amp; target.substr(-2) === \&quot;]]\&quot;) {\n\t\t\t\ttarget = target.substr(2,target.length - 4);\n\t\t\t}\n\t\t\tstory.addToHistory(target);\n\t\t} else if(storyList.length &gt; 0) {\n\t\t\tstory.addToHistory(storyList[0]);\n\t\t}\t\t\n\t}\n}\n\n/*\noptions: See below\noptions.updateAddressBar: \&quot;permalink\&quot;, \&quot;permaview\&quot; or \&quot;no\&quot; (defaults to \&quot;permaview\&quot;)\noptions.updateHistory: \&quot;yes\&quot; or \&quot;no\&quot; (defaults to \&quot;no\&quot;)\noptions.copyToClipboard: \&quot;permalink\&quot;, \&quot;permaview\&quot; or \&quot;no\&quot; (defaults to \&quot;no\&quot;)\noptions.targetTiddler: optional title of target tiddler for permalink\n*/\nfunction updateLocationHash(options) {\n\t// Get the story and the history stack\n\tvar storyList = $tw.wiki.getTiddlerList(DEFAULT_STORY_TITLE),\n\t\thistoryList = $tw.wiki.getTiddlerData(DEFAULT_HISTORY_TITLE,[]),\n\t\ttargetTiddler = \&quot;\&quot;;\n\tif(options.targetTiddler) {\n\t\ttargetTiddler = options.targetTiddler;\n\t} else {\n\t\t// The target tiddler is the one at the top of the stack\n\t\tif(historyList.length &gt; 0) {\n\t\t\ttargetTiddler = historyList[historyList.length-1].title;\n\t\t}\n\t\t// Blank the target tiddler if it isn't present in the story\n\t\tif(storyList.indexOf(targetTiddler) === -1) {\n\t\t\ttargetTiddler = \&quot;\&quot;;\n\t\t}\n\t}\n\t// Assemble the location hash\n\tswitch(options.updateAddressBar) {\n\t\tcase \&quot;permalink\&quot;:\n\t\t\t$tw.locationHash = \&quot;#\&quot; + encodeURIComponent(targetTiddler);\n\t\t\tbreak;\n\t\tcase \&quot;permaview\&quot;:\n\t\t\t$tw.locationHash = \&quot;#\&quot; + encodeURIComponent(targetTiddler) + \&quot;:\&quot; + encodeURIComponent($tw.utils.stringifyList(storyList));\n\t\t\tbreak;\n\t}\n\t// Copy URL to the clipboard\n\tswitch(options.copyToClipboard) {\n\t\tcase \&quot;permalink\&quot;:\n\t\t\t$tw.utils.copyToClipboard($tw.utils.getLocationPath() + \&quot;#\&quot; + encodeURIComponent(targetTiddler));\n\t\t\tbreak;\n\t\tcase \&quot;permaview\&quot;:\n\t\t\t$tw.utils.copyToClipboard($tw.utils.getLocationPath() + \&quot;#\&quot; + encodeURIComponent(targetTiddler) + \&quot;:\&quot; + encodeURIComponent($tw.utils.stringifyList(storyList)));\n\t\t\tbreak;\n\t}\n\t// Only change the location hash if we must, thus avoiding unnecessary onhashchange events\n\tif($tw.utils.getLocationHash() !== $tw.locationHash) {\n\t\tif(options.updateHistory === \&quot;yes\&quot;) {\n\t\t\t// Assign the location hash so that history is updated\n\t\t\twindow.location.hash = $tw.locationHash;\n\t\t} else {\n\t\t\t// We use replace so that browser history isn't affected\n\t\t\twindow.location.replace(window.location.toString().split(\&quot;#\&quot;)[0] + $tw.locationHash);\n\t\t}\n\t}\n}\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/startup/windows.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/startup/windows.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/startup/windows.js\ntype: application/javascript\nmodule-type: startup\n\nSetup root widget handlers for the messages concerned with opening external browser windows\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Export name and synchronous status\nexports.name = \&quot;windows\&quot;;\nexports.platforms = [\&quot;browser\&quot;];\nexports.after = [\&quot;startup\&quot;];\nexports.synchronous = true;\n\n// Global to keep track of open windows (hashmap by title)\n$tw.windows = {};\n\nexports.startup = function() {\n\t// Handle open window message\n\t$tw.rootWidget.addEventListener(\&quot;tm-open-window\&quot;,function(event) {\n\t\t// Get the parameters\n\t\tvar refreshHandler,\n\t\t\ttitle = event.param || event.tiddlerTitle,\n\t\t\tparamObject = event.paramObject || {},\n\t\t\twindowTitle = paramObject.windowTitle || title,\n\t\t\ttemplate = paramObject.template || \&quot;$:/core/templates/single.tiddler.window\&quot;,\n\t\t\twidth = paramObject.width || \&quot;700\&quot;,\n\t\t\theight = paramObject.height || \&quot;600\&quot;,\n\t\t\tvariables = $tw.utils.extend({},paramObject,{currentTiddler: title});\n\t\t// Open the window\n\t\tvar srcWindow,\n\t\t srcDocument;\n\t\t// In case that popup blockers deny opening a new window\n\t\ttry {\n\t\t\tsrcWindow = window.open(\&quot;\&quot;,\&quot;external-\&quot; + title,\&quot;scrollbars,width=\&quot; + width + \&quot;,height=\&quot; + height),\n\t\t\tsrcDocument = srcWindow.document;\n\t\t}\n\t\tcatch(e) {\n\t\t\treturn;\n\t\t}\n\t\t$tw.windows[title] = srcWindow;\n\t\t// Check for reopening the same window\n\t\tif(srcWindow.haveInitialisedWindow) {\n\t\t\treturn;\n\t\t}\n\t\t// Initialise the document\n\t\tsrcDocument.write(\&quot;&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body class='tc-body tc-single-tiddler-window'&gt;&lt;/body&gt;&lt;/html&gt;\&quot;);\n\t\tsrcDocument.close();\n\t\tsrcDocument.title = windowTitle;\n\t\tsrcWindow.addEventListener(\&quot;beforeunload\&quot;,function(event) {\n\t\t\tdelete $tw.windows[title];\n\t\t\t$tw.wiki.removeEventListener(\&quot;change\&quot;,refreshHandler);\n\t\t},false);\n\t\t// Set up the styles\n\t\tvar styleWidgetNode = $tw.wiki.makeTranscludeWidget(\&quot;$:/core/ui/PageStylesheet\&quot;,{\n\t\t\t\tdocument: $tw.fakeDocument,\n\t\t\t\tvariables: variables,\n\t\t\t\timportPageMacros: true}),\n\t\t\tstyleContainer = $tw.fakeDocument.createElement(\&quot;style\&quot;);\n\t\tstyleWidgetNode.render(styleContainer,null);\n\t\tvar styleElement = srcDocument.createElement(\&quot;style\&quot;);\n\t\tstyleElement.innerHTML = styleContainer.textContent;\n\t\tsrcDocument.head.insertBefore(styleElement,srcDocument.head.firstChild);\n\t\t// Render the text of the tiddler\n\t\tvar parser = $tw.wiki.parseTiddler(template),\n\t\t\twidgetNode = $tw.wiki.makeWidget(parser,{document: srcDocument, parentWidget: $tw.rootWidget, variables: variables});\n\t\twidgetNode.render(srcDocument.body,srcDocument.body.firstChild);\n\t\t// Function to handle refreshes\n\t\trefreshHandler = function(changes) {\n\t\t\tif(styleWidgetNode.refresh(changes,styleContainer,null)) {\n\t\t\t\tstyleElement.innerHTML = styleContainer.textContent;\n\t\t\t}\n\t\t\twidgetNode.refresh(changes);\n\t\t};\n\t\t$tw.wiki.addEventListener(\&quot;change\&quot;,refreshHandler);\n\t\t// Listen for keyboard shortcuts\n\t\t$tw.utils.addEventListeners(srcDocument,[{\n\t\t\tname: \&quot;keydown\&quot;,\n\t\t\thandlerObject: $tw.keyboardManager,\n\t\t\thandlerMethod: \&quot;handleKeydownEvent\&quot;\n\t\t}]);\n\t\tsrcWindow.document.documentElement.addEventListener(\&quot;click\&quot;,$tw.popup,true);\n\t\tsrcWindow.haveInitialisedWindow = true;\n\t});\n\t// Close open windows when unloading main window\n\t$tw.addUnloadTask(function() {\n\t\t$tw.utils.each($tw.windows,function(win) {\n\t\t\twin.close();\n\t\t});\n\t});\n\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/core/modules/story.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/story.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/story.js\ntype: application/javascript\nmodule-type: global\n\nLightweight object for managing interactions with the story and history lists.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nConstruct Story object with options:\nwiki: reference to wiki object to use to resolve tiddler titles\nstoryTitle: title of story list tiddler\nhistoryTitle: title of history list tiddler\n*/\nfunction Story(options) {\n\toptions = options || {};\n\tthis.wiki = options.wiki || $tw.wiki;\n\tthis.storyTitle = options.storyTitle || \&quot;$:/StoryList\&quot;;\n\tthis.historyTitle = options.historyTitle || \&quot;$:/HistoryList\&quot;;\n};\n\nStory.prototype.navigateTiddler = function(navigateTo,navigateFromTitle,navigateFromClientRect) {\n\tthis.addToStory(navigateTo,navigateFromTitle);\n\tthis.addToHistory(navigateTo,navigateFromClientRect);\n};\n\nStory.prototype.getStoryList = function() {\n\treturn this.wiki.getTiddlerList(this.storyTitle) || [];\n};\n\nStory.prototype.addToStory = function(navigateTo,navigateFromTitle,options) {\n\toptions = options || {};\n\tvar storyList = this.getStoryList();\n\t// See if the tiddler is already there\n\tvar slot = storyList.indexOf(navigateTo);\n\t// Quit if it already exists in the story river\n\tif(slot &gt;= 0) {\n\t\treturn;\n\t}\n\t// First we try to find the position of the story element we navigated from\n\tvar fromIndex = storyList.indexOf(navigateFromTitle);\n\tif(fromIndex &gt;= 0) {\n\t\t// The tiddler is added from inside the river\n\t\t// Determine where to insert the tiddler; Fallback is \&quot;below\&quot;\n\t\tswitch(options.openLinkFromInsideRiver) {\n\t\t\tcase \&quot;top\&quot;:\n\t\t\t\tslot = 0;\n\t\t\t\tbreak;\n\t\t\tcase \&quot;bottom\&quot;:\n\t\t\t\tslot = storyList.length;\n\t\t\t\tbreak;\n\t\t\tcase \&quot;above\&quot;:\n\t\t\t\tslot = fromIndex;\n\t\t\t\tbreak;\n\t\t\tcase \&quot;below\&quot;: // Intentional fall-through\n\t\t\tdefault:\n\t\t\t\tslot = fromIndex + 1;\n\t\t\t\tbreak;\n\t\t}\n\t} else {\n\t\t// The tiddler is opened from outside the river. Determine where to insert the tiddler; default is \&quot;top\&quot;\n\t\tif(options.openLinkFromOutsideRiver === \&quot;bottom\&quot;) {\n\t\t\t// Insert at bottom\n\t\t\tslot = storyList.length;\n\t\t} else {\n\t\t\t// Insert at top\n\t\t\tslot = 0;\n\t\t}\n\t}\n\t// Add the tiddler\n\tstoryList.splice(slot,0,navigateTo);\n\t// Save the story\n\tthis.saveStoryList(storyList);\n};\n\nStory.prototype.saveStoryList = function(storyList) {\n\tvar storyTiddler = this.wiki.getTiddler(this.storyTitle);\n\tthis.wiki.addTiddler(new $tw.Tiddler(\n\t\tthis.wiki.getCreationFields(),\n\t\t{title: this.storyTitle},\n\t\tstoryTiddler,\n\t\t{list: storyList},\n\t\tthis.wiki.getModificationFields()\n\t));\n};\n\nStory.prototype.addToHistory = function(navigateTo,navigateFromClientRect) {\n\tvar titles = $tw.utils.isArray(navigateTo) ? navigateTo : [navigateTo];\n\t// Add a new record to the top of the history stack\n\tvar historyList = this.wiki.getTiddlerData(this.historyTitle,[]);\n\t$tw.utils.each(titles,function(title) {\n\t\thistoryList.push({title: title, fromPageRect: navigateFromClientRect});\n\t});\n\tthis.wiki.setTiddlerData(this.historyTitle,historyList,{\&quot;current-tiddler\&quot;: titles[titles.length-1]});\n};\n\nStory.prototype.storyCloseTiddler = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storyCloseAllTiddlers = function() {\n// TBD\n};\n\nStory.prototype.storyCloseOtherTiddlers = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storyEditTiddler = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storyDeleteTiddler = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storySaveTiddler = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storyCancelTiddler = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storyNewTiddler = function(targetTitle) {\n// TBD\n};\n\nexports.Story = Story;\n\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;global&quot;
},
&quot;$:/core/modules/storyviews/classic.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/storyviews/classic.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/storyviews/classic.js\ntype: application/javascript\nmodule-type: storyview\n\nViews the story as a linear sequence\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar easing = \&quot;cubic-bezier(0.645, 0.045, 0.355, 1)\&quot;; // From http://easings.net/#easeInOutCubic\n\nvar ClassicStoryView = function(listWidget) {\n\tthis.listWidget = listWidget;\n};\n\nClassicStoryView.prototype.navigateTo = function(historyInfo) {\n\tvar duration = $tw.utils.getAnimationDuration()\n\tvar listElementIndex = this.listWidget.findListItem(0,historyInfo.title);\n\tif(listElementIndex === undefined) {\n\t\treturn;\n\t}\n\tvar listItemWidget = this.listWidget.children[listElementIndex],\n\t\ttargetElement = listItemWidget.findFirstDomNode();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\tif(duration) {\n\t\t// Scroll the node into view\n\t\tthis.listWidget.dispatchEvent({type: \&quot;tm-scroll\&quot;, target: targetElement});\t\n\t} else {\n\t\ttargetElement.scrollIntoView();\n\t}\n};\n\nClassicStoryView.prototype.insert = function(widget) {\n\tvar duration = $tw.utils.getAnimationDuration();\n\tif(duration) {\n\t\tvar targetElement = widget.findFirstDomNode();\n\t\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\t\tif(!(targetElement instanceof Element)) {\n\t\t\treturn;\n\t\t}\n\t\t// Get the current height of the tiddler\n\t\tvar computedStyle = window.getComputedStyle(targetElement),\n\t\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\t\tcurrHeight = targetElement.offsetHeight + currMarginTop;\n\t\t// Reset the margin once the transition is over\n\t\tsetTimeout(function() {\n\t\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t\t{transition: \&quot;none\&quot;},\n\t\t\t\t{marginBottom: \&quot;\&quot;}\n\t\t\t]);\n\t\t},duration);\n\t\t// Set up the initial position of the element\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \&quot;none\&quot;},\n\t\t\t{marginBottom: (-currHeight) + \&quot;px\&quot;},\n\t\t\t{opacity: \&quot;0.0\&quot;}\n\t\t]);\n\t\t$tw.utils.forceLayout(targetElement);\n\t\t// Transition to the final position\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \&quot;opacity \&quot; + duration + \&quot;ms \&quot; + easing + \&quot;, \&quot; +\n\t\t\t\t\t\t\&quot;margin-bottom \&quot; + duration + \&quot;ms \&quot; + easing},\n\t\t\t{marginBottom: currMarginBottom + \&quot;px\&quot;},\n\t\t\t{opacity: \&quot;1.0\&quot;}\n\t]);\n\t}\n};\n\nClassicStoryView.prototype.remove = function(widget) {\n\tvar duration = $tw.utils.getAnimationDuration();\n\tif(duration) {\n\t\tvar targetElement = widget.findFirstDomNode(),\n\t\t\tremoveElement = function() {\n\t\t\t\twidget.removeChildDomNodes();\n\t\t\t};\n\t\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\t\tif(!(targetElement instanceof Element)) {\n\t\t\tremoveElement();\n\t\t\treturn;\n\t\t}\n\t\t// Get the current height of the tiddler\n\t\tvar currWidth = targetElement.offsetWidth,\n\t\t\tcomputedStyle = window.getComputedStyle(targetElement),\n\t\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\t\tcurrHeight = targetElement.offsetHeight + currMarginTop;\n\t\t// Remove the dom nodes of the widget at the end of the transition\n\t\tsetTimeout(removeElement,duration);\n\t\t// Animate the closure\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \&quot;none\&quot;},\n\t\t\t{transform: \&quot;translateX(0px)\&quot;},\n\t\t\t{marginBottom: currMarginBottom + \&quot;px\&quot;},\n\t\t\t{opacity: \&quot;1.0\&quot;}\n\t\t]);\n\t\t$tw.utils.forceLayout(targetElement);\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: $tw.utils.roundTripPropertyName(\&quot;transform\&quot;) + \&quot; \&quot; + duration + \&quot;ms \&quot; + easing + \&quot;, \&quot; +\n\t\t\t\t\t\t\&quot;opacity \&quot; + duration + \&quot;ms \&quot; + easing + \&quot;, \&quot; +\n\t\t\t\t\t\t\&quot;margin-bottom \&quot; + duration + \&quot;ms \&quot; + easing},\n\t\t\t{transform: \&quot;translateX(-\&quot; + currWidth + \&quot;px)\&quot;},\n\t\t\t{marginBottom: (-currHeight) + \&quot;px\&quot;},\n\t\t\t{opacity: \&quot;0.0\&quot;}\n\t\t]);\n\t} else {\n\t\twidget.removeChildDomNodes();\n\t}\n};\n\nexports.classic = ClassicStoryView;\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;storyview&quot;
},
&quot;$:/core/modules/storyviews/pop.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/storyviews/pop.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/storyviews/pop.js\ntype: application/javascript\nmodule-type: storyview\n\nAnimates list insertions and removals\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar PopStoryView = function(listWidget) {\n\tthis.listWidget = listWidget;\n};\n\nPopStoryView.prototype.navigateTo = function(historyInfo) {\n\tvar listElementIndex = this.listWidget.findListItem(0,historyInfo.title);\n\tif(listElementIndex === undefined) {\n\t\treturn;\n\t}\n\tvar listItemWidget = this.listWidget.children[listElementIndex],\n\t\ttargetElement = listItemWidget.findFirstDomNode();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\t// Scroll the node into view\n\tthis.listWidget.dispatchEvent({type: \&quot;tm-scroll\&quot;, target: targetElement});\n};\n\nPopStoryView.prototype.insert = function(widget) {\n\tvar targetElement = widget.findFirstDomNode(),\n\t\tduration = $tw.utils.getAnimationDuration();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\t// Reset once the transition is over\n\tsetTimeout(function() {\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \&quot;none\&quot;},\n\t\t\t{transform: \&quot;none\&quot;}\n\t\t]);\n\t\t$tw.utils.setStyle(widget.document.body,[\n\t\t\t{\&quot;overflow-x\&quot;: \&quot;\&quot;}\n\t\t]);\n\t},duration);\n\t// Prevent the page from overscrolling due to the zoom factor\n\t$tw.utils.setStyle(widget.document.body,[\n\t\t{\&quot;overflow-x\&quot;: \&quot;hidden\&quot;}\n\t]);\n\t// Set up the initial position of the element\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: \&quot;none\&quot;},\n\t\t{transform: \&quot;scale(2)\&quot;},\n\t\t{opacity: \&quot;0.0\&quot;}\n\t]);\n\t$tw.utils.forceLayout(targetElement);\n\t// Transition to the final position\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\&quot;transform\&quot;) + \&quot; \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;opacity \&quot; + duration + \&quot;ms ease-in-out\&quot;},\n\t\t{transform: \&quot;scale(1)\&quot;},\n\t\t{opacity: \&quot;1.0\&quot;}\n\t]);\n};\n\nPopStoryView.prototype.remove = function(widget) {\n\tvar targetElement = widget.findFirstDomNode(),\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t\tremoveElement = function() {\n\t\t\tif(targetElement &amp;&amp; targetElement.parentNode) {\n\t\t\t\twidget.removeChildDomNodes();\n\t\t\t}\n\t\t};\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\tremoveElement();\n\t\treturn;\n\t}\n\t// Remove the element at the end of the transition\n\tsetTimeout(removeElement,duration);\n\t// Animate the closure\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: \&quot;none\&quot;},\n\t\t{transform: \&quot;scale(1)\&quot;},\n\t\t{opacity: \&quot;1.0\&quot;}\n\t]);\n\t$tw.utils.forceLayout(targetElement);\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\&quot;transform\&quot;) + \&quot; \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;opacity \&quot; + duration + \&quot;ms ease-in-out\&quot;},\n\t\t{transform: \&quot;scale(0.1)\&quot;},\n\t\t{opacity: \&quot;0.0\&quot;}\n\t]);\n};\n\nexports.pop = PopStoryView;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;storyview&quot;
},
&quot;$:/core/modules/storyviews/zoomin.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/storyviews/zoomin.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/storyviews/zoomin.js\ntype: application/javascript\nmodule-type: storyview\n\nZooms between individual tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar easing = \&quot;cubic-bezier(0.645, 0.045, 0.355, 1)\&quot;; // From http://easings.net/#easeInOutCubic\n\nvar ZoominListView = function(listWidget) {\n\tvar self = this;\n\tthis.listWidget = listWidget;\n\t// Get the index of the tiddler that is at the top of the history\n\tvar history = this.listWidget.wiki.getTiddlerDataCached(this.listWidget.historyTitle,[]),\n\t\ttargetTiddler;\n\tif(history.length &gt; 0) {\n\t\ttargetTiddler = history[history.length-1].title;\n\t}\n\t// Make all the tiddlers position absolute, and hide all but the top (or first) one\n\t$tw.utils.each(this.listWidget.children,function(itemWidget,index) {\n\t\tvar domNode = itemWidget.findFirstDomNode();\n\t\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\t\tif(!(domNode instanceof Element)) {\n\t\t\treturn;\n\t\t}\n\t\tif((targetTiddler &amp;&amp; targetTiddler !== itemWidget.parseTreeNode.itemTitle) || (!targetTiddler &amp;&amp; index)) {\n\t\t\tdomNode.style.display = \&quot;none\&quot;;\n\t\t} else {\n\t\t\tself.currentTiddlerDomNode = domNode;\n\t\t}\n\t\t$tw.utils.addClass(domNode,\&quot;tc-storyview-zoomin-tiddler\&quot;);\n\t});\n};\n\nZoominListView.prototype.navigateTo = function(historyInfo) {\n\tvar duration = $tw.utils.getAnimationDuration(),\n\t\tlistElementIndex = this.listWidget.findListItem(0,historyInfo.title);\n\tif(listElementIndex === undefined) {\n\t\treturn;\n\t}\n\tvar listItemWidget = this.listWidget.children[listElementIndex],\n\t\ttargetElement = listItemWidget.findFirstDomNode();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\t// Make the new tiddler be position absolute and visible so that we can measure it\n\t$tw.utils.addClass(targetElement,\&quot;tc-storyview-zoomin-tiddler\&quot;);\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \&quot;block\&quot;},\n\t\t{transformOrigin: \&quot;0 0\&quot;},\n\t\t{transform: \&quot;translateX(0px) translateY(0px) scale(1)\&quot;},\n\t\t{transition: \&quot;none\&quot;},\n\t\t{opacity: \&quot;0.0\&quot;}\n\t]);\n\t// Get the position of the source node, or use the centre of the window as the source position\n\tvar sourceBounds = historyInfo.fromPageRect || {\n\t\t\tleft: window.innerWidth/2 - 2,\n\t\t\ttop: window.innerHeight/2 - 2,\n\t\t\twidth: window.innerWidth/8,\n\t\t\theight: window.innerHeight/8\n\t\t};\n\t// Try to find the title node in the target tiddler\n\tvar titleDomNode = findTitleDomNode(listItemWidget) || listItemWidget.findFirstDomNode(),\n\t\tzoomBounds = titleDomNode.getBoundingClientRect();\n\t// Compute the transform for the target tiddler to make the title lie over the source rectange\n\tvar targetBounds = targetElement.getBoundingClientRect(),\n\t\tscale = sourceBounds.width / zoomBounds.width,\n\t\tx = sourceBounds.left - targetBounds.left - (zoomBounds.left - targetBounds.left) * scale,\n\t\ty = sourceBounds.top - targetBounds.top - (zoomBounds.top - targetBounds.top) * scale;\n\t// Transform the target tiddler to its starting position\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transform: \&quot;translateX(\&quot; + x + \&quot;px) translateY(\&quot; + y + \&quot;px) scale(\&quot; + scale + \&quot;)\&quot;}\n\t]);\n\t// Force layout\n\t$tw.utils.forceLayout(targetElement);\n\t// Apply the ending transitions with a timeout to ensure that the previously applied transformations are applied first\n\tvar self = this,\n\t\tprevCurrentTiddler = this.currentTiddlerDomNode;\n\tthis.currentTiddlerDomNode = targetElement;\n\t// Transform the target tiddler to its natural size\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\&quot;transform\&quot;) + \&quot; \&quot; + duration + \&quot;ms \&quot; + easing + \&quot;, opacity \&quot; + duration + \&quot;ms \&quot; + easing},\n\t\t{opacity: \&quot;1.0\&quot;},\n\t\t{transform: \&quot;translateX(0px) translateY(0px) scale(1)\&quot;},\n\t\t{zIndex: \&quot;500\&quot;},\n\t]);\n\t// Transform the previous tiddler out of the way and then hide it\n\tif(prevCurrentTiddler &amp;&amp; prevCurrentTiddler !== targetElement) {\n\t\tscale = zoomBounds.width / sourceBounds.width;\n\t\tx = zoomBounds.left - targetBounds.left - (sourceBounds.left - targetBounds.left) * scale;\n\t\ty = zoomBounds.top - targetBounds.top - (sourceBounds.top - targetBounds.top) * scale;\n\t\t$tw.utils.setStyle(prevCurrentTiddler,[\n\t\t\t{transition: $tw.utils.roundTripPropertyName(\&quot;transform\&quot;) + \&quot; \&quot; + duration + \&quot;ms \&quot; + easing + \&quot;, opacity \&quot; + duration + \&quot;ms \&quot; + easing},\n\t\t\t{opacity: \&quot;0.0\&quot;},\n\t\t\t{transformOrigin: \&quot;0 0\&quot;},\n\t\t\t{transform: \&quot;translateX(\&quot; + x + \&quot;px) translateY(\&quot; + y + \&quot;px) scale(\&quot; + scale + \&quot;)\&quot;},\n\t\t\t{zIndex: \&quot;0\&quot;}\n\t\t]);\n\t\t// Hide the tiddler when the transition has finished\n\t\tsetTimeout(function() {\n\t\t\tif(self.currentTiddlerDomNode !== prevCurrentTiddler) {\n\t\t\t\tprevCurrentTiddler.style.display = \&quot;none\&quot;;\n\t\t\t}\n\t\t},duration);\n\t}\n\t// Scroll the target into view\n//\t$tw.pageScroller.scrollIntoView(targetElement);\n};\n\n/*\nFind the first child DOM node of a widget that has the class \&quot;tc-title\&quot;\n*/\nfunction findTitleDomNode(widget,targetClass) {\n\ttargetClass = targetClass || \&quot;tc-title\&quot;;\n\tvar domNode = widget.findFirstDomNode();\n\tif(domNode &amp;&amp; domNode.querySelector) {\n\t\treturn domNode.querySelector(\&quot;.\&quot; + targetClass);\n\t}\n\treturn null;\n}\n\nZoominListView.prototype.insert = function(widget) {\n\tvar targetElement = widget.findFirstDomNode();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\t// Make the newly inserted node position absolute and hidden\n\t$tw.utils.addClass(targetElement,\&quot;tc-storyview-zoomin-tiddler\&quot;);\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \&quot;none\&quot;}\n\t]);\n};\n\nZoominListView.prototype.remove = function(widget) {\n\tvar targetElement = widget.findFirstDomNode(),\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t\tremoveElement = function() {\n\t\t\twidget.removeChildDomNodes();\n\t\t};\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\tremoveElement();\n\t\treturn;\n\t}\n\t// Abandon if hidden\n\tif(targetElement.style.display != \&quot;block\&quot; ) {\n\t\tremoveElement();\n\t\treturn;\n\t}\n\t// Set up the tiddler that is being closed\n\t$tw.utils.addClass(targetElement,\&quot;tc-storyview-zoomin-tiddler\&quot;);\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \&quot;block\&quot;},\n\t\t{transformOrigin: \&quot;50% 50%\&quot;},\n\t\t{transform: \&quot;translateX(0px) translateY(0px) scale(1)\&quot;},\n\t\t{transition: \&quot;none\&quot;},\n\t\t{zIndex: \&quot;0\&quot;}\n\t]);\n\t// We'll move back to the previous or next element in the story\n\tvar toWidget = widget.previousSibling();\n\tif(!toWidget) {\n\t\ttoWidget = widget.nextSibling();\n\t}\n\tvar toWidgetDomNode = toWidget &amp;&amp; toWidget.findFirstDomNode();\n\t// Set up the tiddler we're moving back in\n\tif(toWidgetDomNode) {\n\t\t$tw.utils.addClass(toWidgetDomNode,\&quot;tc-storyview-zoomin-tiddler\&quot;);\n\t\t$tw.utils.setStyle(toWidgetDomNode,[\n\t\t\t{display: \&quot;block\&quot;},\n\t\t\t{transformOrigin: \&quot;50% 50%\&quot;},\n\t\t\t{transform: \&quot;translateX(0px) translateY(0px) scale(10)\&quot;},\n\t\t\t{transition: $tw.utils.roundTripPropertyName(\&quot;transform\&quot;) + \&quot; \&quot; + duration + \&quot;ms \&quot; + easing + \&quot;, opacity \&quot; + duration + \&quot;ms \&quot; + easing},\n\t\t\t{opacity: \&quot;0\&quot;},\n\t\t\t{zIndex: \&quot;500\&quot;}\n\t\t]);\n\t\tthis.currentTiddlerDomNode = toWidgetDomNode;\n\t}\n\t// Animate them both\n\t// Force layout\n\t$tw.utils.forceLayout(this.listWidget.parentDomNode);\n\t// First, the tiddler we're closing\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transformOrigin: \&quot;50% 50%\&quot;},\n\t\t{transform: \&quot;translateX(0px) translateY(0px) scale(0.1)\&quot;},\n\t\t{transition: $tw.utils.roundTripPropertyName(\&quot;transform\&quot;) + \&quot; \&quot; + duration + \&quot;ms \&quot; + easing + \&quot;, opacity \&quot; + duration + \&quot;ms \&quot; + easing},\n\t\t{opacity: \&quot;0\&quot;},\n\t\t{zIndex: \&quot;0\&quot;}\n\t]);\n\tsetTimeout(removeElement,duration);\n\t// Now the tiddler we're going back to\n\tif(toWidgetDomNode) {\n\t\t$tw.utils.setStyle(toWidgetDomNode,[\n\t\t\t{transform: \&quot;translateX(0px) translateY(0px) scale(1)\&quot;},\n\t\t\t{opacity: \&quot;1\&quot;}\n\t\t]);\n\t}\n\treturn true; // Indicate that we'll delete the DOM node\n};\n\nexports.zoomin = ZoominListView;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;storyview&quot;
},
&quot;$:/core/modules/syncer.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/syncer.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/syncer.js\ntype: application/javascript\nmodule-type: global\n\nThe syncer tracks changes to the store and synchronises them to a remote data store represented as a \&quot;sync adaptor\&quot;\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nDefaults\n*/\nSyncer.prototype.titleIsLoggedIn = \&quot;$:/status/IsLoggedIn\&quot;;\nSyncer.prototype.titleIsAnonymous = \&quot;$:/status/IsAnonymous\&quot;;\nSyncer.prototype.titleIsReadOnly = \&quot;$:/status/IsReadOnly\&quot;;\nSyncer.prototype.titleUserName = \&quot;$:/status/UserName\&quot;;\nSyncer.prototype.titleSyncFilter = \&quot;$:/config/SyncFilter\&quot;;\nSyncer.prototype.titleSyncPollingInterval = \&quot;$:/config/SyncPollingInterval\&quot;;\nSyncer.prototype.titleSyncDisableLazyLoading = \&quot;$:/config/SyncDisableLazyLoading\&quot;;\nSyncer.prototype.titleSavedNotification = \&quot;$:/language/Notifications/Save/Done\&quot;;\nSyncer.prototype.titleSyncThrottleInterval = \&quot;$:/config/SyncThrottleInterval\&quot;;\nSyncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync timer\nSyncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers if they've changed in the last 1s...\nSyncer.prototype.errorRetryInterval = 5 * 1000; // Interval to retry after an error\nSyncer.prototype.fallbackInterval = 10 * 1000; // Unless the task is older than 10s\nSyncer.prototype.pollTimerInterval = 60 * 1000; // Interval for polling for changes from the adaptor\n\n/*\nInstantiate the syncer with the following options:\nsyncadaptor: reference to syncadaptor to be used\nwiki: wiki to be synced\n*/\nfunction Syncer(options) {\n\tvar self = this;\n\tthis.wiki = options.wiki;\n\t// Save parameters\n\tthis.syncadaptor = options.syncadaptor;\n\tthis.disableUI = !!options.disableUI;\n\tthis.titleIsLoggedIn = options.titleIsLoggedIn || this.titleIsLoggedIn;\n\tthis.titleUserName = options.titleUserName || this.titleUserName;\n\tthis.titleSyncFilter = options.titleSyncFilter || this.titleSyncFilter;\n\tthis.titleSavedNotification = options.titleSavedNotification || this.titleSavedNotification;\n\tthis.taskTimerInterval = options.taskTimerInterval || this.taskTimerInterval;\n\tthis.throttleInterval = options.throttleInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncThrottleInterval,\&quot;\&quot;),10) || this.throttleInterval;\n\tthis.errorRetryInterval = options.errorRetryInterval || this.errorRetryInterval;\n\tthis.fallbackInterval = options.fallbackInterval || this.fallbackInterval;\n\tthis.pollTimerInterval = options.pollTimerInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncPollingInterval,\&quot;\&quot;),10) || this.pollTimerInterval;\n\tthis.logging = \&quot;logging\&quot; in options ? options.logging : true;\n\t// Make a logger\n\tthis.logger = new $tw.utils.Logger(\&quot;syncer\&quot; + ($tw.browser ? \&quot;-browser\&quot; : \&quot;\&quot;) + ($tw.node ? \&quot;-server\&quot; : \&quot;\&quot;) + (this.syncadaptor.name ? (\&quot;-\&quot; + this.syncadaptor.name) : \&quot;\&quot;),{\n\t\tcolour: \&quot;cyan\&quot;,\n\t\tenable: this.logging,\n\t\tsaveHistory: true\n\t});\n\t// Make another logger for connection errors\n\tthis.loggerConnection = new $tw.utils.Logger(\&quot;syncer\&quot; + ($tw.browser ? \&quot;-browser\&quot; : \&quot;\&quot;) + ($tw.node ? \&quot;-server\&quot; : \&quot;\&quot;) + (this.syncadaptor.name ? (\&quot;-\&quot; + this.syncadaptor.name) : \&quot;\&quot;) + \&quot;-connection\&quot;,{\n\t\tcolour: \&quot;cyan\&quot;,\n\t\tenable: this.logging\n\t});\n\t// Ask the syncadaptor to use the main logger\n\tif(this.syncadaptor.setLoggerSaveBuffer) {\n\t\tthis.syncadaptor.setLoggerSaveBuffer(this.logger);\n\t}\n\t// Compile the dirty tiddler filter\n\tthis.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));\n\t// Record information for known tiddlers\n\tthis.readTiddlerInfo();\n\tthis.titlesToBeLoaded = {}; // Hashmap of titles of tiddlers that need loading from the server\n\tthis.titlesHaveBeenLazyLoaded = {}; // Hashmap of titles of tiddlers that have already been lazily loaded from the server\n\t// Timers\n\tthis.taskTimerId = null; // Timer for task dispatch\n\tthis.pollTimerId = null; // Timer for polling server\n\t// Number of outstanding requests\n\tthis.numTasksInProgress = 0;\n\t// Listen out for changes to tiddlers\n\tthis.wiki.addEventListener(\&quot;change\&quot;,function(changes) {\n\t\t// Filter the changes to just include ones that are being synced\n\t\tvar filteredChanges = self.getSyncedTiddlers(function(callback) {\n\t\t\t$tw.utils.each(changes,function(change,title) {\n\t\t\t\tvar tiddler = self.wiki.tiddlerExists(title) &amp;&amp; self.wiki.getTiddler(title);\n\t\t\t\tcallback(tiddler,title);\n\t\t\t});\n\t\t});\n\t\tif(filteredChanges.length &gt; 0) {\n\t\t\tself.processTaskQueue();\n\t\t} else {\n\t\t\t// Look for deletions of tiddlers we're already syncing\t\n\t\t\tvar outstandingDeletion = false\n\t\t\t$tw.utils.each(changes,function(change,title,object) {\n\t\t\t\tif(change.deleted &amp;&amp; $tw.utils.hop(self.tiddlerInfo,title)) {\n\t\t\t\t\toutstandingDeletion = true;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif(outstandingDeletion) {\n\t\t\t\tself.processTaskQueue();\n\t\t\t}\n\t\t}\n\t});\n\t// Browser event handlers\n\tif($tw.browser &amp;&amp; !this.disableUI) {\n\t\t// Set up our beforeunload handler\n\t\t$tw.addUnloadTask(function(event) {\n\t\t\tvar confirmationMessage;\n\t\t\tif(self.isDirty()) {\n\t\t\t\tconfirmationMessage = $tw.language.getString(\&quot;UnsavedChangesWarning\&quot;);\n\t\t\t\tevent.returnValue = confirmationMessage; // Gecko\n\t\t\t}\n\t\t\treturn confirmationMessage;\n\t\t});\n\t\t// Listen out for login/logout/refresh events in the browser\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-login\&quot;,function(event) {\n\t\t\tvar username = event &amp;&amp; event.paramObject &amp;&amp; event.paramObject.username,\n\t\t\t\tpassword = event &amp;&amp; event.paramObject &amp;&amp; event.paramObject.password;\n\t\t\tif(username &amp;&amp; password) {\n\t\t\t\t// Login with username and password\n\t\t\t\tself.login(username,password,function() {});\n\t\t\t} else {\n\t\t\t\t// No username and password, so we display a prompt\n\t\t\t\tself.handleLoginEvent();\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-logout\&quot;,function() {\n\t\t\tself.handleLogoutEvent();\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-server-refresh\&quot;,function() {\n\t\t\tself.handleRefreshEvent();\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\&quot;tm-copy-syncer-logs-to-clipboard\&quot;,function() {\n\t\t\t$tw.utils.copyToClipboard($tw.utils.getSystemInfo() + \&quot;\\n\\nLog:\\n\&quot; + self.logger.getBuffer());\n\t\t});\n\t}\n\t// Listen out for lazyLoad events\n\tif(!this.disableUI &amp;&amp; this.wiki.getTiddlerText(this.titleSyncDisableLazyLoading) !== \&quot;yes\&quot;) {\n\t\tthis.wiki.addEventListener(\&quot;lazyLoad\&quot;,function(title) {\n\t\t\tself.handleLazyLoadEvent(title);\n\t\t});\t\t\n\t}\n\t// Get the login status\n\tthis.getStatus(function(err,isLoggedIn) {\n\t\t// Do a sync from the server\n\t\tself.syncFromServer();\n\t});\n}\n\n/*\nShow a generic network error alert\n*/\nSyncer.prototype.displayError = function(msg,err) {\n\tif(err === ($tw.language.getString(\&quot;Error/XMLHttpRequest\&quot;) + \&quot;: 0\&quot;)) {\n\t\tthis.loggerConnection.alert($tw.language.getString(\&quot;Error/NetworkErrorAlert\&quot;));\n\t\tthis.logger.log(msg + \&quot;:\&quot;,err);\n\t} else {\n\t\tthis.logger.alert(msg + \&quot;:\&quot;,err);\n\t}\n};\n\n/*\nReturn an array of the tiddler titles that are subjected to syncing\n*/\nSyncer.prototype.getSyncedTiddlers = function(source) {\n\treturn this.filterFn.call(this.wiki,source);\n};\n\n/*\nReturn an array of the tiddler titles that are subjected to syncing\n*/\nSyncer.prototype.getTiddlerRevision = function(title) {\n\tif(this.syncadaptor &amp;&amp; this.syncadaptor.getTiddlerRevision) {\n\t\treturn this.syncadaptor.getTiddlerRevision(title);\n\t} else {\n\t\treturn this.wiki.getTiddler(title).fields.revision;\t\n\t} \n};\n\n/*\nRead (or re-read) the latest tiddler info from the store\n*/\nSyncer.prototype.readTiddlerInfo = function() {\n\t// Hashmap by title of {revision:,changeCount:,adaptorInfo:}\n\t// \&quot;revision\&quot; is the revision of the tiddler last seen on the server, and \&quot;changecount\&quot; is the corresponding local changecount\n\tthis.tiddlerInfo = {};\n\t// Record information for known tiddlers\n\tvar self = this,\n\t\ttiddlers = this.getSyncedTiddlers();\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\tif(tiddler) {\n\t\t\tself.tiddlerInfo[title] = {\n\t\t\t\trevision: self.getTiddlerRevision(title),\n\t\t\t\tadaptorInfo: self.syncadaptor &amp;&amp; self.syncadaptor.getTiddlerInfo(tiddler),\n\t\t\t\tchangeCount: self.wiki.getChangeCount(title)\n\t\t\t};\n\t\t}\n\t});\n};\n\n/*\nChecks whether the wiki is dirty (ie the window shouldn't be closed)\n*/\nSyncer.prototype.isDirty = function() {\n\tthis.logger.log(\&quot;Checking dirty status\&quot;);\n\t// Check tiddlers that are in the store and included in the filter function\n\tvar titles = this.getSyncedTiddlers();\n\tfor(var index=0; index&lt;titles.length; index++) {\n\t\tvar title = titles[index],\n\t\t\ttiddlerInfo = this.tiddlerInfo[title];\n\t\tif(this.wiki.tiddlerExists(title)) {\n\t\t\tif(tiddlerInfo) {\n\t\t\t\t// If the tiddler is known on the server and has been modified locally then it needs to be saved to the server\n\t\t\t\tif(this.wiki.getChangeCount(title) &gt; tiddlerInfo.changeCount) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// If the tiddler isn't known on the server then it needs to be saved to the server\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\t// Check tiddlers that are known from the server but not currently in the store\n\ttitles = Object.keys(this.tiddlerInfo);\n\tfor(index=0; index&lt;titles.length; index++) {\n\t\tif(!this.wiki.tiddlerExists(titles[index])) {\n\t\t\t// There must be a pending delete\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\n/*\nUpdate the document body with the class \&quot;tc-dirty\&quot; if the wiki has unsaved/unsynced changes\n*/\nSyncer.prototype.updateDirtyStatus = function() {\n\tif($tw.browser &amp;&amp; !this.disableUI) {\n\t\tvar dirty = this.isDirty();\n\t\t$tw.utils.toggleClass(document.body,\&quot;tc-dirty\&quot;,dirty);\n\t\tif(!dirty) {\n\t\t\tthis.loggerConnection.clearAlerts();\n\t\t}\n\t}\n};\n\n/*\nSave an incoming tiddler in the store, and updates the associated tiddlerInfo\n*/\nSyncer.prototype.storeTiddler = function(tiddlerFields) {\n\t// Save the tiddler\n\tvar tiddler = new $tw.Tiddler(tiddlerFields);\n\tthis.wiki.addTiddler(tiddler);\n\t// Save the tiddler revision and changeCount details\n\tthis.tiddlerInfo[tiddlerFields.title] = {\n\t\trevision: this.getTiddlerRevision(tiddlerFields.title),\n\t\tadaptorInfo: this.syncadaptor.getTiddlerInfo(tiddler),\n\t\tchangeCount: this.wiki.getChangeCount(tiddlerFields.title)\n\t};\n};\n\nSyncer.prototype.getStatus = function(callback) {\n\tvar self = this;\n\t// Check if the adaptor supports getStatus()\n\tif(this.syncadaptor &amp;&amp; this.syncadaptor.getStatus) {\n\t\t// Mark us as not logged in\n\t\tthis.wiki.addTiddler({title: this.titleIsLoggedIn,text: \&quot;no\&quot;});\n\t\t// Get login status\n\t\tthis.syncadaptor.getStatus(function(err,isLoggedIn,username,isReadOnly,isAnonymous) {\n\t\t\tif(err) {\n\t\t\t\tself.logger.alert(err);\n\t\t\t} else {\n\t\t\t\t// Set the various status tiddlers\n\t\t\t\tself.wiki.addTiddler({title: self.titleIsReadOnly,text: isReadOnly ? \&quot;yes\&quot; : \&quot;no\&quot;});\n\t\t\t\tself.wiki.addTiddler({title: self.titleIsAnonymous,text: isAnonymous ? \&quot;yes\&quot; : \&quot;no\&quot;});\n\t\t\t\tself.wiki.addTiddler({title: self.titleIsLoggedIn,text: isLoggedIn ? \&quot;yes\&quot; : \&quot;no\&quot;});\n\t\t\t\tif(isLoggedIn) {\n\t\t\t\t\tself.wiki.addTiddler({title: self.titleUserName,text: username || \&quot;\&quot;});\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Invoke the callback\n\t\t\tif(callback) {\n\t\t\t\tcallback(err,isLoggedIn,username);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tcallback(null,true,\&quot;UNAUTHENTICATED\&quot;);\n\t}\n};\n\n/*\nSynchronise from the server by reading the skinny tiddler list and queuing up loads for any tiddlers that we don't already have up to date\n*/\nSyncer.prototype.syncFromServer = function() {\n\tvar self = this,\n\t\tcancelNextSync = function() {\n\t\t\tif(self.pollTimerId) {\n\t\t\t\tclearTimeout(self.pollTimerId);\n\t\t\t\tself.pollTimerId = null;\n\t\t\t}\n\t\t},\n\t\ttriggerNextSync = function() {\n\t\t\tself.pollTimerId = setTimeout(function() {\n\t\t\t\tself.pollTimerId = null;\n\t\t\t\tself.syncFromServer.call(self);\n\t\t\t},self.pollTimerInterval);\n\t\t},\n\t\tsyncSystemFromServer = (self.wiki.getTiddlerText(\&quot;$:/config/SyncSystemTiddlersFromServer\&quot;) === \&quot;yes\&quot; ? true : false);\n\tif(this.syncadaptor &amp;&amp; this.syncadaptor.getUpdatedTiddlers) {\n\t\tthis.logger.log(\&quot;Retrieving updated tiddler list\&quot;);\n\t\tcancelNextSync();\n\t\tthis.syncadaptor.getUpdatedTiddlers(self,function(err,updates) {\n\t\t\ttriggerNextSync();\n\t\t\tif(err) {\n\t\t\t\tself.displayError($tw.language.getString(\&quot;Error/RetrievingSkinny\&quot;),err);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(updates) {\n\t\t\t\t$tw.utils.each(updates.modifications,function(title) {\n\t\t\t\t\tself.titlesToBeLoaded[title] = true;\n\t\t\t\t});\n\t\t\t\t$tw.utils.each(updates.deletions,function(title) {\n\t\t\t\t\tif(syncSystemFromServer || !self.wiki.isSystemTiddler(title)) {\n\t\t\t\t\t\tdelete self.tiddlerInfo[title];\n\t\t\t\t\t\tself.logger.log(\&quot;Deleting tiddler missing from server:\&quot;,title);\n\t\t\t\t\t\tself.wiki.deleteTiddler(title);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif(updates.modifications.length &gt; 0 || updates.deletions.length &gt; 0) {\n\t\t\t\t\tself.processTaskQueue();\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t} else if(this.syncadaptor &amp;&amp; this.syncadaptor.getSkinnyTiddlers) {\n\t\tthis.logger.log(\&quot;Retrieving skinny tiddler list\&quot;);\n\t\tcancelNextSync();\n\t\tthis.syncadaptor.getSkinnyTiddlers(function(err,tiddlers) {\n\t\t\ttriggerNextSync();\n\t\t\t// Check for errors\n\t\t\tif(err) {\n\t\t\t\tself.displayError($tw.language.getString(\&quot;Error/RetrievingSkinny\&quot;),err);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Keep track of which tiddlers we already know about have been reported this time\n\t\t\tvar previousTitles = Object.keys(self.tiddlerInfo);\n\t\t\t// Process each incoming tiddler\n\t\t\tfor(var t=0; t&lt;tiddlers.length; t++) {\n\t\t\t\t// Get the incoming tiddler fields, and the existing tiddler\n\t\t\t\tvar tiddlerFields = tiddlers[t],\n\t\t\t\t\tincomingRevision = tiddlerFields.revision + \&quot;\&quot;,\n\t\t\t\t\ttiddler = self.wiki.tiddlerExists(tiddlerFields.title) &amp;&amp; self.wiki.getTiddler(tiddlerFields.title),\n\t\t\t\t\ttiddlerInfo = self.tiddlerInfo[tiddlerFields.title],\n\t\t\t\t\tcurrRevision = tiddlerInfo ? tiddlerInfo.revision : null,\n\t\t\t\t\tindexInPreviousTitles = previousTitles.indexOf(tiddlerFields.title);\n\t\t\t\tif(indexInPreviousTitles !== -1) {\n\t\t\t\t\tpreviousTitles.splice(indexInPreviousTitles,1);\n\t\t\t\t}\n\t\t\t\t// Ignore the incoming tiddler if it's the same as the revision we've already got\n\t\t\t\tif(currRevision !== incomingRevision) {\n\t\t\t\t\t// Only load the skinny version if we don't already have a fat version of the tiddler\n\t\t\t\t\tif(!tiddler || tiddler.fields.text === undefined) {\n\t\t\t\t\t\tself.storeTiddler(tiddlerFields);\n\t\t\t\t\t}\n\t\t\t\t\t// Do a full load of this tiddler\n\t\t\t\t\tself.titlesToBeLoaded[tiddlerFields.title] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Delete any tiddlers that were previously reported but missing this time\n\t\t\t$tw.utils.each(previousTitles,function(title) {\n\t\t\t\tif(syncSystemFromServer || !self.wiki.isSystemTiddler(title)) {\n\t\t\t\t\tdelete self.tiddlerInfo[title];\n\t\t\t\t\tself.logger.log(\&quot;Deleting tiddler missing from server:\&quot;,title);\n\t\t\t\t\tself.wiki.deleteTiddler(title);\n\t\t\t\t}\n\t\t\t});\n\t\t\tself.processTaskQueue();\n\t\t});\n\t}\n};\n\n/*\nForce load a tiddler from the server\n*/\nSyncer.prototype.enqueueLoadTiddler = function(title) {\n\tthis.titlesToBeLoaded[title] = true;\n\tthis.processTaskQueue();\n};\n\n/*\nLazily load a skinny tiddler if we can\n*/\nSyncer.prototype.handleLazyLoadEvent = function(title) {\n\t// Ignore if the syncadaptor doesn't handle it\n\tif(!this.syncadaptor.supportsLazyLoading) {\n\t\treturn;\n\t}\n\t// Don't lazy load the same tiddler twice\n\tif(!this.titlesHaveBeenLazyLoaded[title]) {\n\t\t// Don't lazy load if the tiddler isn't included in the sync filter\n\t\tif(this.getSyncedTiddlers().indexOf(title) !== -1) {\n\t\t\t// Mark the tiddler as needing loading, and having already been lazily loaded\n\t\t\tthis.titlesToBeLoaded[title] = true;\n\t\t\tthis.titlesHaveBeenLazyLoaded[title] = true;\n\t\t}\n\t}\n};\n\n/*\nDispay a password prompt and allow the user to login\n*/\nSyncer.prototype.handleLoginEvent = function() {\n\tvar self = this;\n\tthis.getStatus(function(err,isLoggedIn,username) {\n\t\tif(!err &amp;&amp; !isLoggedIn) {\n\t\t\tif(self.syncadaptor &amp;&amp; self.syncadaptor.displayLoginPrompt) {\n\t\t\t\tself.syncadaptor.displayLoginPrompt(self);\n\t\t\t} else {\n\t\t\t\tself.displayLoginPrompt();\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\nDispay a password prompt\n*/\nSyncer.prototype.displayLoginPrompt = function() {\n\tvar self = this;\n\tvar promptInfo = $tw.passwordPrompt.createPrompt({\n\t\tserviceName: $tw.language.getString(\&quot;LoginToTiddlySpace\&quot;),\n\t\tcallback: function(data) {\n\t\t\tself.login(data.username,data.password,function(err,isLoggedIn) {\n\t\t\t\tself.syncFromServer();\n\t\t\t});\n\t\t\treturn true; // Get rid of the password prompt\n\t\t}\n\t});\n};\n\n/*\nAttempt to login to TiddlyWeb.\n\tusername: username\n\tpassword: password\n\tcallback: invoked with arguments (err,isLoggedIn)\n*/\nSyncer.prototype.login = function(username,password,callback) {\n\tthis.logger.log(\&quot;Attempting to login as\&quot;,username);\n\tvar self = this;\n\tif(this.syncadaptor.login) {\n\t\tthis.syncadaptor.login(username,password,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tself.getStatus(function(err,isLoggedIn,username) {\n\t\t\t\tif(callback) {\n\t\t\t\t\tcallback(err,isLoggedIn);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t} else {\n\t\tcallback(null,true);\n\t}\n};\n\n/*\nAttempt to log out of TiddlyWeb\n*/\nSyncer.prototype.handleLogoutEvent = function() {\n\tthis.logger.log(\&quot;Attempting to logout\&quot;);\n\tvar self = this;\n\tif(this.syncadaptor.logout) {\n\t\tthis.syncadaptor.logout(function(err) {\n\t\t\tif(err) {\n\t\t\t\tself.logger.alert(err);\n\t\t\t} else {\n\t\t\t\tself.getStatus();\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nImmediately refresh from the server\n*/\nSyncer.prototype.handleRefreshEvent = function() {\n\tthis.syncFromServer();\n};\n\n/*\nProcess the next task\n*/\nSyncer.prototype.processTaskQueue = function() {\n\tvar self = this;\n\t// Only process a task if the sync adaptor is fully initialised and we're not already performing\n\t// a task. If we are already performing a task then we'll dispatch the next one when it completes\n\tif((!this.syncadaptor.isReady || this.syncadaptor.isReady()) &amp;&amp; this.numTasksInProgress === 0) {\n\t\t// Choose the next task to perform\n\t\tvar task = this.chooseNextTask();\n\t\t// Perform the task if we had one\n\t\tif(typeof task === \&quot;object\&quot; &amp;&amp; task !== null) {\n\t\t\tthis.numTasksInProgress += 1;\n\t\t\ttask.run(function(err) {\n\t\t\t\tself.numTasksInProgress -= 1;\n\t\t\t\tif(err) {\n\t\t\t\t\tself.displayError(\&quot;Sync error while processing \&quot; + task.type + \&quot; of '\&quot; + task.title + \&quot;'\&quot;,err);\n\t\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t\tself.triggerTimeout(self.errorRetryInterval);\n\t\t\t\t} else {\n\t\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t\t// Process the next task\n\t\t\t\t\tself.processTaskQueue.call(self);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\t// No task is ready so update the status\n\t\t\tthis.updateDirtyStatus();\n\t\t\t// And trigger a timeout if there is a pending task\n\t\t\tif(task === true) {\n\t\t\t\tthis.triggerTimeout();\t\t\t\t\n\t\t\t}\n\t\t}\n\t} else {\n\t\tthis.updateDirtyStatus();\t\t\n\t}\n};\n\nSyncer.prototype.triggerTimeout = function(interval) {\n\tvar self = this;\n\tif(!this.taskTimerId) {\n\t\tthis.taskTimerId = setTimeout(function() {\n\t\t\tself.taskTimerId = null;\n\t\t\tself.processTaskQueue.call(self);\n\t\t},interval || self.taskTimerInterval);\n\t}\n};\n\n/*\nChoose the next sync task. We prioritise saves, then deletes, then loads from the server\n\nReturns either a task object, null if there's no upcoming tasks, or the boolean true if there are pending tasks that aren't yet due\n*/\nSyncer.prototype.chooseNextTask = function() {\n\tvar thresholdLastSaved = (new Date()) - this.throttleInterval,\n\t\thavePending = null;\n\t// First we look for tiddlers that have been modified locally and need saving back to the server\n\tvar titles = this.getSyncedTiddlers();\n\tfor(var index=0; index&lt;titles.length; index++) {\n\t\tvar title = titles[index],\n\t\t\ttiddler = this.wiki.tiddlerExists(title) &amp;&amp; this.wiki.getTiddler(title),\n\t\t\ttiddlerInfo = this.tiddlerInfo[title];\n\t\tif(tiddler) {\n\t\t\t// If the tiddler is not known on the server, or has been modified locally no more recently than the threshold then it needs to be saved to the server\n\t\t\tvar hasChanged = !tiddlerInfo || this.wiki.getChangeCount(title) &gt; tiddlerInfo.changeCount,\n\t\t\t\tisReadyToSave = !tiddlerInfo || !tiddlerInfo.timestampLastSaved || tiddlerInfo.timestampLastSaved &lt; thresholdLastSaved;\n\t\t\tif(hasChanged) {\n\t\t\t\tif(isReadyToSave) {\n\t\t\t\t\treturn new SaveTiddlerTask(this,title); \t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\thavePending = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Second, we check tiddlers that are known from the server but not currently in the store, and so need deleting on the server\n\ttitles = Object.keys(this.tiddlerInfo);\n\tfor(index=0; index&lt;titles.length; index++) {\n\t\ttitle = titles[index];\n\t\ttiddlerInfo = this.tiddlerInfo[title];\n\t\ttiddler = this.wiki.tiddlerExists(title) &amp;&amp; this.wiki.getTiddler(title);\n\t\tif(!tiddler) {\n\t\t\treturn new DeleteTiddlerTask(this,title);\n\t\t}\n\t}\n\t// Check for tiddlers that need loading\n\ttitle = Object.keys(this.titlesToBeLoaded)[0];\n\tif(title) {\n\t\tdelete this.titlesToBeLoaded[title];\n\t\treturn new LoadTiddlerTask(this,title);\n\t}\n\t// No tasks are ready\n\treturn havePending;\n};\n\nfunction SaveTiddlerTask(syncer,title) {\n\tthis.syncer = syncer;\n\tthis.title = title;\n\tthis.type = \&quot;save\&quot;;\n}\n\nSaveTiddlerTask.prototype.run = function(callback) {\n\tvar self = this,\n\t\tchangeCount = this.syncer.wiki.getChangeCount(this.title),\n\t\ttiddler = this.syncer.wiki.tiddlerExists(this.title) &amp;&amp; this.syncer.wiki.getTiddler(this.title);\n\tthis.syncer.logger.log(\&quot;Dispatching 'save' task:\&quot;,this.title);\n\tif(tiddler) {\n\t\tthis.syncer.syncadaptor.saveTiddler(tiddler,function(err,adaptorInfo,revision) {\n\t\t\t// If there's an error, exit without changing any internal state\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\t// Adjust the info stored about this tiddler\n\t\t\tself.syncer.tiddlerInfo[self.title] = {\n\t\t\t\tchangeCount: changeCount,\n\t\t\t\tadaptorInfo: adaptorInfo,\n\t\t\t\trevision: revision,\n\t\t\t\ttimestampLastSaved: new Date()\n\t\t\t};\n\t\t\t// Invoke the callback\n\t\t\tcallback(null);\n\t\t},{\n\t\t\ttiddlerInfo: self.syncer.tiddlerInfo[self.title]\n\t\t});\n\t} else {\n\t\tthis.syncer.logger.log(\&quot; Not Dispatching 'save' task:\&quot;,this.title,\&quot;tiddler does not exist\&quot;);\n\t\t$tw.utils.nextTick(callback(null));\n\t}\n};\n\nfunction DeleteTiddlerTask(syncer,title) {\n\tthis.syncer = syncer;\n\tthis.title = title;\n\tthis.type = \&quot;delete\&quot;;\n}\n\nDeleteTiddlerTask.prototype.run = function(callback) {\n\tvar self = this;\n\tthis.syncer.logger.log(\&quot;Dispatching 'delete' task:\&quot;,this.title);\n\tthis.syncer.syncadaptor.deleteTiddler(this.title,function(err) {\n\t\t// If there's an error, exit without changing any internal state\n\t\tif(err) {\n\t\t\treturn callback(err);\n\t\t}\n\t\t// Remove the info stored about this tiddler\n\t\tdelete self.syncer.tiddlerInfo[self.title];\n\t\tif($tw.boot.files){\n\t\t\t// Remove the tiddler from $tw.boot.files\n\t\t\tdelete $tw.boot.files[self.title];\n\t\t}\n\t\t// Invoke the callback\n\t\tcallback(null);\n\t},{\n\t\ttiddlerInfo: self.syncer.tiddlerInfo[this.title]\n\t});\n};\n\nfunction LoadTiddlerTask(syncer,title) {\n\tthis.syncer = syncer;\n\tthis.title = title;\n\tthis.type = \&quot;load\&quot;;\n}\n\nLoadTiddlerTask.prototype.run = function(callback) {\n\tvar self = this;\n\tthis.syncer.logger.log(\&quot;Dispatching 'load' task:\&quot;,this.title);\n\tthis.syncer.syncadaptor.loadTiddler(this.title,function(err,tiddlerFields) {\n\t\t// If there's an error, exit without changing any internal state\n\t\tif(err) {\n\t\t\treturn callback(err);\n\t\t}\n\t\t// Update the info stored about this tiddler\n\t\tif(tiddlerFields) {\n\t\t\tself.syncer.storeTiddler(tiddlerFields);\n\t\t}\n\t\t// Invoke the callback\n\t\tcallback(null);\n\t});\n};\n\nexports.Syncer = Syncer;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;global&quot;
},
&quot;$:/core/modules/tiddler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/tiddler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/tiddler.js\ntype: application/javascript\nmodule-type: tiddlermethod\n\nExtension methods for the $tw.Tiddler object (constructor and methods required at boot time are in boot/boot.js)\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.hasTag = function(tag) {\n\treturn this.fields.tags &amp;&amp; this.fields.tags.indexOf(tag) !== -1;\n};\n\nexports.isPlugin = function() {\n\treturn this.fields.type === \&quot;application/json\&quot; &amp;&amp; this.hasField(\&quot;plugin-type\&quot;);\n};\n\nexports.isDraft = function() {\n\treturn this.hasField(\&quot;draft.of\&quot;);\n};\n\nexports.getFieldString = function(field) {\n\tvar value = this.fields[field];\n\t// Check for a missing field\n\tif(value === undefined || value === null) {\n\t\treturn \&quot;\&quot;;\n\t}\n\t// Parse the field with the associated module (if any)\n\tvar fieldModule = $tw.Tiddler.fieldModules[field];\n\tif(fieldModule &amp;&amp; fieldModule.stringify) {\n\t\treturn fieldModule.stringify.call(this,value);\n\t} else {\n\t\treturn value.toString();\n\t}\n};\n\n/*\nGet the value of a field as a list\n*/\nexports.getFieldList = function(field) {\n\tvar value = this.fields[field];\n\t// Check for a missing field\n\tif(value === undefined || value === null) {\n\t\treturn [];\n\t}\n\treturn $tw.utils.parseStringArray(value);\n};\n\n/*\nGet all the fields as a hashmap of strings. Options:\n\texclude: an array of field names to exclude\n*/\nexports.getFieldStrings = function(options) {\n\toptions = options || {};\n\tvar exclude = options.exclude || [];\n\tvar fields = {};\n\tfor(var field in this.fields) {\n\t\tif($tw.utils.hop(this.fields,field)) {\n\t\t\tif(exclude.indexOf(field) === -1) {\n\t\t\t\tfields[field] = this.getFieldString(field);\n\t\t\t}\n\t\t}\n\t}\n\treturn fields;\n};\n\n/*\nGet all the fields as a name:value block. Options:\n\texclude: an array of field names to exclude\n*/\nexports.getFieldStringBlock = function(options) {\n\toptions = options || {};\n\tvar exclude = options.exclude || [],\n\t\tfields = Object.keys(this.fields).sort(),\n\t\tresult = [];\n\tfor(var t=0; t&lt;fields.length; t++) {\n\t\tvar field = fields[t];\n\t\tif(exclude.indexOf(field) === -1) {\n\t\t\tresult.push(field + \&quot;: \&quot; + this.getFieldString(field));\n\t\t}\n\t}\n\treturn result.join(\&quot;\\n\&quot;);\n};\n\nexports.getFieldDay = function(field) {\n\tif(this.cache &amp;&amp; this.cache.day &amp;&amp; $tw.utils.hop(this.cache.day,field) ) {\n\t\treturn this.cache.day[field];\n\t}\n\tvar day = \&quot;\&quot;;\n\tif(this.fields[field]) {\n\t\tday = (new Date($tw.utils.parseDate(this.fields[field]))).setHours(0,0,0,0);\n\t}\n\tthis.cache.day = this.cache.day || {};\n\tthis.cache.day[field] = day;\n\treturn day;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;tiddlermethod&quot;
},
&quot;$:/core/modules/upgraders/plugins.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/upgraders/plugins.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/upgraders/plugins.js\ntype: application/javascript\nmodule-type: upgrader\n\nUpgrader module that checks that plugins are newer than any already installed version\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar UPGRADE_LIBRARY_TITLE = \&quot;$:/UpgradeLibrary\&quot;;\n\nvar BLOCKED_PLUGINS = {\n\t\&quot;$:/themes/tiddlywiki/stickytitles\&quot;: {\n\t\tversions: [\&quot;*\&quot;]\n\t},\n\t\&quot;$:/plugins/tiddlywiki/fullscreen\&quot;: {\n\t\tversions: [\&quot;*\&quot;]\n\t}\n};\n\nexports.upgrade = function(wiki,titles,tiddlers) {\n\tvar self = this,\n\t\tmessages = {},\n\t\tupgradeLibrary,\n\t\tgetLibraryTiddler = function(title) {\n\t\t\tif(!upgradeLibrary) {\n\t\t\t\tupgradeLibrary = wiki.getTiddlerData(UPGRADE_LIBRARY_TITLE,{});\n\t\t\t\tupgradeLibrary.tiddlers = upgradeLibrary.tiddlers || {};\n\t\t\t}\n\t\t\treturn upgradeLibrary.tiddlers[title];\n\t\t};\n\n\t// Go through all the incoming tiddlers\n\t$tw.utils.each(titles,function(title) {\n\t\tvar incomingTiddler = tiddlers[title];\n\t\t// Check if we're dealing with a plugin\n\t\tif(incomingTiddler &amp;&amp; incomingTiddler[\&quot;plugin-type\&quot;]) {\n\t\t\t// Check whether the plugin contains JS modules\n\t\t\tvar requiresReload = wiki.doesPluginInfoRequireReload(JSON.parse(incomingTiddler.text)) ? (wiki.getTiddlerText(\&quot;$:/language/ControlPanel/Plugins/PluginWillRequireReload\&quot;) + \&quot; \&quot;) : \&quot;\&quot;;\n\t\t\tmessages[title] = requiresReload;\n\t\t\tif(incomingTiddler.version) {\n\t\t\t\t// Upgrade the incoming plugin if it is in the upgrade library\n\t\t\t\tvar libraryTiddler = getLibraryTiddler(title);\n\t\t\t\tif(libraryTiddler &amp;&amp; libraryTiddler[\&quot;plugin-type\&quot;] &amp;&amp; libraryTiddler.version) {\n\t\t\t\t\ttiddlers[title] = libraryTiddler;\n\t\t\t\t\tmessages[title] = requiresReload + $tw.language.getString(\&quot;Import/Upgrader/Plugins/Upgraded\&quot;,{variables: {incoming: incomingTiddler.version, upgraded: libraryTiddler.version}});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// Suppress the incoming plugin if it is older than the currently installed one\n\t\t\t\tvar existingTiddler = wiki.getTiddler(title);\n\t\t\t\tif(existingTiddler &amp;&amp; existingTiddler.hasField(\&quot;plugin-type\&quot;) &amp;&amp; existingTiddler.hasField(\&quot;version\&quot;)) {\n\t\t\t\t\t// Reject the incoming plugin by blanking all its fields\n\t\t\t\t\tif($tw.utils.checkVersions(existingTiddler.fields.version,incomingTiddler.version)) {\n\t\t\t\t\t\ttiddlers[title] = Object.create(null);\n\t\t\t\t\t\tmessages[title] = $tw.language.getString(\&quot;Import/Upgrader/Plugins/Suppressed/Version\&quot;,{variables: {incoming: incomingTiddler.version, existing: existingTiddler.fields.version}});\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Check whether the plugin is on the blocked list\n\t\t\tvar blockInfo = BLOCKED_PLUGINS[title];\n\t\t\tif(blockInfo) {\n\t\t\t\tif(blockInfo.versions.indexOf(\&quot;*\&quot;) !== -1 || (incomingTiddler.version &amp;&amp; blockInfo.versions.indexOf(incomingTiddler.version) !== -1)) {\n\t\t\t\t\ttiddlers[title] = Object.create(null);\n\t\t\t\t\tmessages[title] = $tw.language.getString(\&quot;Import/Upgrader/Plugins/Suppressed/Incompatible\&quot;);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\treturn messages;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;upgrader&quot;
},
&quot;$:/core/modules/upgraders/system.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/upgraders/system.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/upgraders/system.js\ntype: application/javascript\nmodule-type: upgrader\n\nUpgrader module that suppresses certain system tiddlers that shouldn't be imported\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar DONT_IMPORT_LIST = [\&quot;$:/StoryList\&quot;,\&quot;$:/HistoryList\&quot;],\n\tDONT_IMPORT_PREFIX_LIST = [\&quot;$:/temp/\&quot;,\&quot;$:/state/\&quot;,\&quot;$:/Import\&quot;],\n\tWARN_IMPORT_PREFIX_LIST = [\&quot;$:/core/modules/\&quot;];\n\nexports.upgrade = function(wiki,titles,tiddlers) {\n\tvar self = this,\n\t\tmessages = {},\n\t\tshowAlert = false;\n\t// Check for tiddlers on our list\n\t$tw.utils.each(titles,function(title) {\n\t\tif(DONT_IMPORT_LIST.indexOf(title) !== -1) {\n\t\t\ttiddlers[title] = Object.create(null);\n\t\t\tmessages[title] = $tw.language.getString(\&quot;Import/Upgrader/System/Suppressed\&quot;);\n\t\t} else {\n\t\t\tfor(var t=0; t&lt;DONT_IMPORT_PREFIX_LIST.length; t++) {\n\t\t\t\tvar prefix = DONT_IMPORT_PREFIX_LIST[t];\n\t\t\t\tif(title.substr(0,prefix.length) === prefix) {\n\t\t\t\t\ttiddlers[title] = Object.create(null);\n\t\t\t\t\tmessages[title] = $tw.language.getString(\&quot;Import/Upgrader/State/Suppressed\&quot;);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(var t=0; t&lt;WARN_IMPORT_PREFIX_LIST.length; t++) {\n\t\t\t\tvar prefix = WARN_IMPORT_PREFIX_LIST[t];\n\t\t\t\tif(title.substr(0,prefix.length) === prefix &amp;&amp; wiki.isShadowTiddler(title)) {\n\t\t\t\t\tshowAlert = true;\n\t\t\t\t\tmessages[title] = $tw.language.getString(\&quot;Import/Upgrader/System/Warning\&quot;);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\tif(showAlert) {\n\t\tvar logger = new $tw.utils.Logger(\&quot;import\&quot;);\n\t\tlogger.alert($tw.language.getString(\&quot;Import/Upgrader/System/Alert\&quot;));\n\t}\n\treturn messages;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;upgrader&quot;
},
&quot;$:/core/modules/upgraders/themetweaks.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/upgraders/themetweaks.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/upgraders/themetweaks.js\ntype: application/javascript\nmodule-type: upgrader\n\nUpgrader module that handles the change in theme tweak storage introduced in 5.0.14-beta.\n\nPreviously, theme tweaks were stored in two data tiddlers:\n\n* $:/themes/tiddlywiki/vanilla/metrics\n* $:/themes/tiddlywiki/vanilla/settings\n\nNow, each tweak is stored in its own separate tiddler.\n\nThis upgrader copies any values from the old format to the new. The old data tiddlers are not deleted in case they have been used to store additional indexes.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar MAPPINGS = {\n\t\&quot;$:/themes/tiddlywiki/vanilla/metrics\&quot;: {\n\t\t\&quot;fontsize\&quot;: \&quot;$:/themes/tiddlywiki/vanilla/metrics/fontsize\&quot;,\n\t\t\&quot;lineheight\&quot;: \&quot;$:/themes/tiddlywiki/vanilla/metrics/lineheight\&quot;,\n\t\t\&quot;storyleft\&quot;: \&quot;$:/themes/tiddlywiki/vanilla/metrics/storyleft\&quot;,\n\t\t\&quot;storytop\&quot;: \&quot;$:/themes/tiddlywiki/vanilla/metrics/storytop\&quot;,\n\t\t\&quot;storyright\&quot;: \&quot;$:/themes/tiddlywiki/vanilla/metrics/storyright\&quot;,\n\t\t\&quot;storywidth\&quot;: \&quot;$:/themes/tiddlywiki/vanilla/metrics/storywidth\&quot;,\n\t\t\&quot;tiddlerwidth\&quot;: \&quot;$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\&quot;\n\t},\n\t\&quot;$:/themes/tiddlywiki/vanilla/settings\&quot;: {\n\t\t\&quot;fontfamily\&quot;: \&quot;$:/themes/tiddlywiki/vanilla/settings/fontfamily\&quot;\n\t}\n};\n\nexports.upgrade = function(wiki,titles,tiddlers) {\n\tvar self = this,\n\t\tmessages = {};\n\t// Check for tiddlers on our list\n\t$tw.utils.each(titles,function(title) {\n\t\tvar mapping = MAPPINGS[title];\n\t\tif(mapping) {\n\t\t\tvar tiddler = new $tw.Tiddler(tiddlers[title]),\n\t\t\t\ttiddlerData = wiki.getTiddlerDataCached(tiddler,{});\n\t\t\tfor(var index in mapping) {\n\t\t\t\tvar mappedTitle = mapping[index];\n\t\t\t\tif(!tiddlers[mappedTitle] || tiddlers[mappedTitle].title !== mappedTitle) {\n\t\t\t\t\ttiddlers[mappedTitle] = {\n\t\t\t\t\t\ttitle: mappedTitle,\n\t\t\t\t\t\ttext: tiddlerData[index]\n\t\t\t\t\t};\n\t\t\t\t\tmessages[mappedTitle] = $tw.language.getString(\&quot;Import/Upgrader/ThemeTweaks/Created\&quot;,{variables: {\n\t\t\t\t\t\tfrom: title + \&quot;##\&quot; + index\n\t\t\t\t\t}});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\treturn messages;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;upgrader&quot;
},
&quot;$:/core/modules/utils/base64-utf8/base64-utf8.module.js&quot;: {
&quot;text&quot;: &quot;(function(){// From https://gist.github.com/Nijikokun/5192472\n//\n// UTF8 Module\n//\n// Cleaner and modularized utf-8 encoding and decoding library for javascript.\n//\n// copyright: MIT\n// author: Nijiko Yonskai, @nijikokun, nijikokun@gmail.com\n!function(r,e,o,t){void 0!==o.module&amp;&amp;o.module.exports?o.module.exports=e.apply(o):void 0!==o.define&amp;&amp;\&quot;function\&quot;===o.define&amp;&amp;o.define.amd?define(\&quot;utf8\&quot;,[],e):o.utf8=e.apply(o)}(0,function(){return{encode:function(r){if(\&quot;string\&quot;!=typeof r)return r;r=r.replace(/\\r\\n/g,\&quot;\\n\&quot;);for(var e,o=\&quot;\&quot;,t=0;t&lt;r.length;t++)if((e=r.charCodeAt(t))&lt;128)o+=String.fromCharCode(e);else if(e&gt;127&amp;&amp;e&lt;2048)o+=String.fromCharCode(e&gt;&gt;6|192),o+=String.fromCharCode(63&amp;e|128);else if(e&gt;55295&amp;&amp;e&lt;57344&amp;&amp;r.length&gt;t+1){var i=e,n=r.charCodeAt(t+1);t++;var d=65536+(i-55296&lt;&lt;10|n-56320);o+=String.fromCharCode(d&gt;&gt;18|240),o+=String.fromCharCode(d&gt;&gt;12&amp;63|128),o+=String.fromCharCode(d&gt;&gt;6&amp;63|128),o+=String.fromCharCode(63&amp;d|128)}else o+=String.fromCharCode(e&gt;&gt;12|224),o+=String.fromCharCode(e&gt;&gt;6&amp;63|128),o+=String.fromCharCode(63&amp;e|128);return o},decode:function(r){if(\&quot;string\&quot;!=typeof r)return r;for(var e=\&quot;\&quot;,o=0,t=0;o&lt;r.length;)if((t=r.charCodeAt(o))&lt;128)e+=String.fromCharCode(t),o++;else if(t&gt;191&amp;&amp;t&lt;224)e+=String.fromCharCode((31&amp;t)&lt;&lt;6|63&amp;r.charCodeAt(o+1)),o+=2;else if(t&gt;223&amp;&amp;t&lt;240)e+=String.fromCharCode((15&amp;t)&lt;&lt;12|(63&amp;r.charCodeAt(o+1))&lt;&lt;6|63&amp;r.charCodeAt(o+2)),o+=3;else{var i=(7&amp;t)&lt;&lt;18|(63&amp;r.charCodeAt(o+1))&lt;&lt;12|(63&amp;r.charCodeAt(o+2))&lt;&lt;6|63&amp;r.charCodeAt(o+3);e+=String.fromCharCode(55296+(i-65536&gt;&gt;10))+String.fromCharCode(56320+(i-65536&amp;1023)),o+=4}return e}}},this),function(r,e,o,t){if(void 0!==o.module&amp;&amp;o.module.exports){if(t&amp;&amp;o.require)for(var i=0;i&lt;t.length;i++)o[t[i]]=o.require(t[i]);o.module.exports=e.apply(o)}else void 0!==o.define&amp;&amp;\&quot;function\&quot;===o.define&amp;&amp;o.define.amd?define(\&quot;base64\&quot;,t||[],e):o.base64=e.apply(o)}(0,function(r){var e=r||this.utf8,o=\&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\&quot;;return{encode:function(r){if(void 0===e)throw{error:\&quot;MissingMethod\&quot;,message:\&quot;UTF8 Module is missing.\&quot;};if(\&quot;string\&quot;!=typeof r)return r;r=e.encode(r);for(var t,i,n,d,f,a,h,C=\&quot;\&quot;,c=0;c&lt;r.length;)d=(t=r.charCodeAt(c++))&gt;&gt;2,f=(3&amp;t)&lt;&lt;4|(i=r.charCodeAt(c++))&gt;&gt;4,a=(15&amp;i)&lt;&lt;2|(n=r.charCodeAt(c++))&gt;&gt;6,h=63&amp;n,isNaN(i)?a=h=64:isNaN(n)&amp;&amp;(h=64),C+=o.charAt(d)+o.charAt(f)+o.charAt(a)+o.charAt(h);return C},decode:function(r){if(void 0===e)throw{error:\&quot;MissingMethod\&quot;,message:\&quot;UTF8 Module is missing.\&quot;};if(\&quot;string\&quot;!=typeof r)return r;r=r.replace(/[^A-Za-z0-9\\+\\/\\=]/g,\&quot;\&quot;);for(var t,i,n,d,f,a,h=\&quot;\&quot;,C=0;C&lt;r.length;)t=o.indexOf(r.charAt(C++))&lt;&lt;2|(d=o.indexOf(r.charAt(C++)))&gt;&gt;4,i=(15&amp;d)&lt;&lt;4|(f=o.indexOf(r.charAt(C++)))&gt;&gt;2,n=(3&amp;f)&lt;&lt;6|(a=o.indexOf(r.charAt(C++))),h+=String.fromCharCode(t),64!=f&amp;&amp;(h+=String.fromCharCode(i)),64!=a&amp;&amp;(h+=String.fromCharCode(n));return e.decode(h)}}},this,[\&quot;utf8\&quot;]);}).call(exports);&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;title&quot;: &quot;$:/core/modules/utils/base64-utf8/base64-utf8.module.js&quot;,
&quot;module-type&quot;: &quot;library&quot;
},
&quot;$:/core/modules/utils/crypto.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/crypto.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/crypto.js\ntype: application/javascript\nmodule-type: utils\n\nUtility functions related to crypto.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nLook for an encrypted store area in the text of a TiddlyWiki file\n*/\nexports.extractEncryptedStoreArea = function(text) {\n\tvar encryptedStoreAreaStartMarker = \&quot;&lt;pre id=\\\&quot;encryptedStoreArea\\\&quot; type=\\\&quot;text/plain\\\&quot; style=\\\&quot;display:none;\\\&quot;&gt;\&quot;,\n\t\tencryptedStoreAreaStart = text.indexOf(encryptedStoreAreaStartMarker);\n\tif(encryptedStoreAreaStart !== -1) {\n\t\tvar encryptedStoreAreaEnd = text.indexOf(\&quot;&lt;/pre&gt;\&quot;,encryptedStoreAreaStart);\n\t\tif(encryptedStoreAreaEnd !== -1) {\n\t\t\treturn $tw.utils.htmlDecode(text.substring(encryptedStoreAreaStart + encryptedStoreAreaStartMarker.length,encryptedStoreAreaEnd-1));\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nAttempt to extract the tiddlers from an encrypted store area using the current password. If the password is not provided then the password in the password store will be used\n*/\nexports.decryptStoreArea = function(encryptedStoreArea,password) {\n\tvar decryptedText = $tw.crypto.decrypt(encryptedStoreArea,password);\n\tif(decryptedText) {\n\t\tvar json = JSON.parse(decryptedText),\n\t\t\ttiddlers = [];\n\t\tfor(var title in json) {\n\t\t\tif(title !== \&quot;$:/isEncrypted\&quot;) {\n\t\t\t\ttiddlers.push(json[title]);\n\t\t\t}\n\t\t}\n\t\treturn tiddlers;\n\t} else {\n\t\treturn null;\n\t}\n};\n\n\n/*\nAttempt to extract the tiddlers from an encrypted store area using the current password. If that fails, the user is prompted for a password.\nencryptedStoreArea: text of the TiddlyWiki encrypted store area\ncallback: function(tiddlers) called with the array of decrypted tiddlers\n\nThe following configuration settings are supported:\n\n$tw.config.usePasswordVault: causes any password entered by the user to also be put into the system password vault\n*/\nexports.decryptStoreAreaInteractive = function(encryptedStoreArea,callback,options) {\n\t// Try to decrypt with the current password\n\tvar tiddlers = $tw.utils.decryptStoreArea(encryptedStoreArea);\n\tif(tiddlers) {\n\t\tcallback(tiddlers);\n\t} else {\n\t\t// Prompt for a new password and keep trying\n\t\t$tw.passwordPrompt.createPrompt({\n\t\t\tserviceName: \&quot;Enter a password to decrypt the imported TiddlyWiki\&quot;,\n\t\t\tnoUserName: true,\n\t\t\tcanCancel: true,\n\t\t\tsubmitText: \&quot;Decrypt\&quot;,\n\t\t\tcallback: function(data) {\n\t\t\t\t// Exit if the user cancelled\n\t\t\t\tif(!data) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t// Attempt to decrypt the tiddlers\n\t\t\t\tvar tiddlers = $tw.utils.decryptStoreArea(encryptedStoreArea,data.password);\n\t\t\t\tif(tiddlers) {\n\t\t\t\t\tif($tw.config.usePasswordVault) {\n\t\t\t\t\t\t$tw.crypto.setPassword(data.password);\n\t\t\t\t\t}\n\t\t\t\t\tcallback(tiddlers);\n\t\t\t\t\t// Exit and remove the password prompt\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\t// We didn't decrypt everything, so continue to prompt for password\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/csv.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/csv.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/csv.js\ntype: application/javascript\nmodule-type: utils\n\nA barebones CSV parser\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nParse a CSV string with a header row and return an array of hashmaps.\n*/\nexports.parseCsvStringWithHeader = function(text,options) {\n\toptions = options || {};\n\tvar separator = options.separator || \&quot;,\&quot;,\n\t\trows = text.split(/\\r?\\n/mg).map(function(row) {\n\t\t\treturn $tw.utils.trim(row);\n\t\t}).filter(function(row) {\n\t\t\treturn row !== \&quot;\&quot;;\n\t\t});\n\tif(rows.length &lt; 1) {\n\t\treturn \&quot;Missing header row\&quot;;\n\t}\n\tvar headings = rows[0].split(separator),\n\t\tresults = [];\n\tfor(var row=1; row&lt;rows.length; row++) {\n\t\tvar columns = rows[row].split(separator),\n\t\t\tcolumnResult = Object.create(null);\n\t\tif(columns.length !== headings.length) {\n\t\t\treturn \&quot;Malformed CSV row '\&quot; + rows[row] + \&quot;'\&quot;;\n\t\t}\n\t\tfor(var column=0; column&lt;columns.length; column++) {\n\t\t\tvar columnName = headings[column];\n\t\t\tcolumnResult[columnName] = $tw.utils.trim(columns[column] || \&quot;\&quot;);\n\t\t}\n\t\tresults.push(columnResult);\t\t\t\n\t}\n\treturn results;\n}\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/diff-match-patch/diff_match_patch.js&quot;: {
&quot;text&quot;: &quot;(function(){function diff_match_patch(){this.Diff_Timeout=1;this.Diff_EditCost=4;this.Match_Threshold=.5;this.Match_Distance=1E3;this.Patch_DeleteThreshold=.5;this.Patch_Margin=4;this.Match_MaxBits=32}var DIFF_DELETE=-1,DIFF_INSERT=1,DIFF_EQUAL=0;\ndiff_match_patch.prototype.diff_main=function(a,b,c,d){\&quot;undefined\&quot;==typeof d&amp;&amp;(d=0&gt;=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1E3*this.Diff_Timeout);if(null==a||null==b)throw Error(\&quot;Null input. (diff_main)\&quot;);if(a==b)return a?[[DIFF_EQUAL,a]]:[];\&quot;undefined\&quot;==typeof c&amp;&amp;(c=!0);var e=c,f=this.diff_commonPrefix(a,b);c=a.substring(0,f);a=a.substring(f);b=b.substring(f);f=this.diff_commonSuffix(a,b);var g=a.substring(a.length-f);a=a.substring(0,a.length-f);b=b.substring(0,b.length-f);a=this.diff_compute_(a,\nb,e,d);c&amp;&amp;a.unshift([DIFF_EQUAL,c]);g&amp;&amp;a.push([DIFF_EQUAL,g]);this.diff_cleanupMerge(a);return a};\ndiff_match_patch.prototype.diff_compute_=function(a,b,c,d){if(!a)return[[DIFF_INSERT,b]];if(!b)return[[DIFF_DELETE,a]];var e=a.length&gt;b.length?a:b,f=a.length&gt;b.length?b:a,g=e.indexOf(f);return-1!=g?(c=[[DIFF_INSERT,e.substring(0,g)],[DIFF_EQUAL,f],[DIFF_INSERT,e.substring(g+f.length)]],a.length&gt;b.length&amp;&amp;(c[0][0]=c[2][0]=DIFF_DELETE),c):1==f.length?[[DIFF_DELETE,a],[DIFF_INSERT,b]]:(e=this.diff_halfMatch_(a,b))?(b=e[1],f=e[3],a=e[4],e=this.diff_main(e[0],e[2],c,d),c=this.diff_main(b,f,c,d),e.concat([[DIFF_EQUAL,\na]],c)):c&amp;&amp;100&lt;a.length&amp;&amp;100&lt;b.length?this.diff_lineMode_(a,b,d):this.diff_bisect_(a,b,d)};\ndiff_match_patch.prototype.diff_lineMode_=function(a,b,c){var d=this.diff_linesToChars_(a,b);a=d.chars1;b=d.chars2;d=d.lineArray;a=this.diff_main(a,b,!1,c);this.diff_charsToLines_(a,d);this.diff_cleanupSemantic(a);a.push([DIFF_EQUAL,\&quot;\&quot;]);for(var e=d=b=0,f=\&quot;\&quot;,g=\&quot;\&quot;;b&lt;a.length;){switch(a[b][0]){case DIFF_INSERT:e++;g+=a[b][1];break;case DIFF_DELETE:d++;f+=a[b][1];break;case DIFF_EQUAL:if(1&lt;=d&amp;&amp;1&lt;=e){a.splice(b-d-e,d+e);b=b-d-e;d=this.diff_main(f,g,!1,c);for(e=d.length-1;0&lt;=e;e--)a.splice(b,0,d[e]);b+=\nd.length}d=e=0;g=f=\&quot;\&quot;}b++}a.pop();return a};\ndiff_match_patch.prototype.diff_bisect_=function(a,b,c){for(var d=a.length,e=b.length,f=Math.ceil((d+e)/2),g=2*f,h=Array(g),l=Array(g),k=0;k&lt;g;k++)h[k]=-1,l[k]=-1;h[f+1]=0;l[f+1]=0;k=d-e;for(var m=0!=k%2,p=0,x=0,w=0,q=0,t=0;t&lt;f&amp;&amp;!((new Date).getTime()&gt;c);t++){for(var v=-t+p;v&lt;=t-x;v+=2){var n=f+v;var r=v==-t||v!=t&amp;&amp;h[n-1]&lt;h[n+1]?h[n+1]:h[n-1]+1;for(var y=r-v;r&lt;d&amp;&amp;y&lt;e&amp;&amp;a.charAt(r)==b.charAt(y);)r++,y++;h[n]=r;if(r&gt;d)x+=2;else if(y&gt;e)p+=2;else if(m&amp;&amp;(n=f+k-v,0&lt;=n&amp;&amp;n&lt;g&amp;&amp;-1!=l[n])){var u=d-l[n];if(r&gt;=\nu)return this.diff_bisectSplit_(a,b,r,y,c)}}for(v=-t+w;v&lt;=t-q;v+=2){n=f+v;u=v==-t||v!=t&amp;&amp;l[n-1]&lt;l[n+1]?l[n+1]:l[n-1]+1;for(r=u-v;u&lt;d&amp;&amp;r&lt;e&amp;&amp;a.charAt(d-u-1)==b.charAt(e-r-1);)u++,r++;l[n]=u;if(u&gt;d)q+=2;else if(r&gt;e)w+=2;else if(!m&amp;&amp;(n=f+k-v,0&lt;=n&amp;&amp;n&lt;g&amp;&amp;-1!=h[n]&amp;&amp;(r=h[n],y=f+r-n,u=d-u,r&gt;=u)))return this.diff_bisectSplit_(a,b,r,y,c)}}return[[DIFF_DELETE,a],[DIFF_INSERT,b]]};\ndiff_match_patch.prototype.diff_bisectSplit_=function(a,b,c,d,e){var f=a.substring(0,c),g=b.substring(0,d);a=a.substring(c);b=b.substring(d);f=this.diff_main(f,g,!1,e);e=this.diff_main(a,b,!1,e);return f.concat(e)};\ndiff_match_patch.prototype.diff_linesToChars_=function(a,b){function c(a){for(var b=\&quot;\&quot;,c=0,f=-1,g=d.length;f&lt;a.length-1;){f=a.indexOf(\&quot;\\n\&quot;,c);-1==f&amp;&amp;(f=a.length-1);var h=a.substring(c,f+1);c=f+1;(e.hasOwnProperty?e.hasOwnProperty(h):void 0!==e[h])?b+=String.fromCharCode(e[h]):(b+=String.fromCharCode(g),e[h]=g,d[g++]=h)}return b}var d=[],e={};d[0]=\&quot;\&quot;;var f=c(a),g=c(b);return{chars1:f,chars2:g,lineArray:d}};\ndiff_match_patch.prototype.diff_charsToLines_=function(a,b){for(var c=0;c&lt;a.length;c++){for(var d=a[c][1],e=[],f=0;f&lt;d.length;f++)e[f]=b[d.charCodeAt(f)];a[c][1]=e.join(\&quot;\&quot;)}};diff_match_patch.prototype.diff_commonPrefix=function(a,b){if(!a||!b||a.charAt(0)!=b.charAt(0))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c&lt;e;)a.substring(f,e)==b.substring(f,e)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e};\ndiff_match_patch.prototype.diff_commonSuffix=function(a,b){if(!a||!b||a.charAt(a.length-1)!=b.charAt(b.length-1))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c&lt;e;)a.substring(a.length-e,a.length-f)==b.substring(b.length-e,b.length-f)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e};\ndiff_match_patch.prototype.diff_commonOverlap_=function(a,b){var c=a.length,d=b.length;if(0==c||0==d)return 0;c&gt;d?a=a.substring(c-d):c&lt;d&amp;&amp;(b=b.substring(0,c));c=Math.min(c,d);if(a==b)return c;d=0;for(var e=1;;){var f=a.substring(c-e);f=b.indexOf(f);if(-1==f)return d;e+=f;if(0==f||a.substring(c-e)==b.substring(0,e))d=e,e++}};\ndiff_match_patch.prototype.diff_halfMatch_=function(a,b){function c(a,b,c){for(var d=a.substring(c,c+Math.floor(a.length/4)),e=-1,g=\&quot;\&quot;,h,k,l,m;-1!=(e=b.indexOf(d,e+1));){var p=f.diff_commonPrefix(a.substring(c),b.substring(e)),u=f.diff_commonSuffix(a.substring(0,c),b.substring(0,e));g.length&lt;u+p&amp;&amp;(g=b.substring(e-u,e)+b.substring(e,e+p),h=a.substring(0,c-u),k=a.substring(c+p),l=b.substring(0,e-u),m=b.substring(e+p))}return 2*g.length&gt;=a.length?[h,k,l,m,g]:null}if(0&gt;=this.Diff_Timeout)return null;\nvar d=a.length&gt;b.length?a:b,e=a.length&gt;b.length?b:a;if(4&gt;d.length||2*e.length&lt;d.length)return null;var f=this,g=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));if(g||d)g=d?g?g[4].length&gt;d[4].length?g:d:d:g;else return null;if(a.length&gt;b.length){d=g[0];e=g[1];var h=g[2];var l=g[3]}else h=g[0],l=g[1],d=g[2],e=g[3];return[d,e,h,l,g[4]]};\ndiff_match_patch.prototype.diff_cleanupSemantic=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=0,h=0,l=0,k=0;f&lt;a.length;)a[f][0]==DIFF_EQUAL?(c[d++]=f,g=l,h=k,k=l=0,e=a[f][1]):(a[f][0]==DIFF_INSERT?l+=a[f][1].length:k+=a[f][1].length,e&amp;&amp;e.length&lt;=Math.max(g,h)&amp;&amp;e.length&lt;=Math.max(l,k)&amp;&amp;(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,d--,f=0&lt;d?c[d-1]:-1,k=l=h=g=0,e=null,b=!0)),f++;b&amp;&amp;this.diff_cleanupMerge(a);this.diff_cleanupSemanticLossless(a);for(f=1;f&lt;a.length;){if(a[f-1][0]==\nDIFF_DELETE&amp;&amp;a[f][0]==DIFF_INSERT){b=a[f-1][1];c=a[f][1];d=this.diff_commonOverlap_(b,c);e=this.diff_commonOverlap_(c,b);if(d&gt;=e){if(d&gt;=b.length/2||d&gt;=c.length/2)a.splice(f,0,[DIFF_EQUAL,c.substring(0,d)]),a[f-1][1]=b.substring(0,b.length-d),a[f+1][1]=c.substring(d),f++}else if(e&gt;=b.length/2||e&gt;=c.length/2)a.splice(f,0,[DIFF_EQUAL,b.substring(0,e)]),a[f-1][0]=DIFF_INSERT,a[f-1][1]=c.substring(0,c.length-e),a[f+1][0]=DIFF_DELETE,a[f+1][1]=b.substring(e),f++;f++}f++}};\ndiff_match_patch.prototype.diff_cleanupSemanticLossless=function(a){function b(a,b){if(!a||!b)return 6;var c=a.charAt(a.length-1),d=b.charAt(0),e=c.match(diff_match_patch.nonAlphaNumericRegex_),f=d.match(diff_match_patch.nonAlphaNumericRegex_),g=e&amp;&amp;c.match(diff_match_patch.whitespaceRegex_),h=f&amp;&amp;d.match(diff_match_patch.whitespaceRegex_);c=g&amp;&amp;c.match(diff_match_patch.linebreakRegex_);d=h&amp;&amp;d.match(diff_match_patch.linebreakRegex_);var k=c&amp;&amp;a.match(diff_match_patch.blanklineEndRegex_),l=d&amp;&amp;b.match(diff_match_patch.blanklineStartRegex_);\nreturn k||l?5:c||d?4:e&amp;&amp;!g&amp;&amp;h?3:g||h?2:e||f?1:0}for(var c=1;c&lt;a.length-1;){if(a[c-1][0]==DIFF_EQUAL&amp;&amp;a[c+1][0]==DIFF_EQUAL){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],g=this.diff_commonSuffix(d,e);if(g){var h=e.substring(e.length-g);d=d.substring(0,d.length-g);e=h+e.substring(0,e.length-g);f=h+f}g=d;h=e;for(var l=f,k=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+f.charAt(0);f=f.substring(1);var m=b(d,e)+b(e,f);m&gt;=k&amp;&amp;(k=m,g=d,h=e,l=f)}a[c-1][1]!=g&amp;&amp;(g?a[c-1][1]=g:(a.splice(c-\n1,1),c--),a[c][1]=h,l?a[c+1][1]=l:(a.splice(c+1,1),c--))}c++}};diff_match_patch.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;diff_match_patch.whitespaceRegex_=/\\s/;diff_match_patch.linebreakRegex_=/[\\r\\n]/;diff_match_patch.blanklineEndRegex_=/\\n\\r?\\n$/;diff_match_patch.blanklineStartRegex_=/^\\r?\\n\\r?\\n/;\ndiff_match_patch.prototype.diff_cleanupEfficiency=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=!1,h=!1,l=!1,k=!1;f&lt;a.length;)a[f][0]==DIFF_EQUAL?(a[f][1].length&lt;this.Diff_EditCost&amp;&amp;(l||k)?(c[d++]=f,g=l,h=k,e=a[f][1]):(d=0,e=null),l=k=!1):(a[f][0]==DIFF_DELETE?k=!0:l=!0,e&amp;&amp;(g&amp;&amp;h&amp;&amp;l&amp;&amp;k||e.length&lt;this.Diff_EditCost/2&amp;&amp;3==g+h+l+k)&amp;&amp;(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,e=null,g&amp;&amp;h?(l=k=!0,d=0):(d--,f=0&lt;d?c[d-1]:-1,l=k=!1),b=!0)),f++;b&amp;&amp;this.diff_cleanupMerge(a)};\ndiff_match_patch.prototype.diff_cleanupMerge=function(a){a.push([DIFF_EQUAL,\&quot;\&quot;]);for(var b=0,c=0,d=0,e=\&quot;\&quot;,f=\&quot;\&quot;,g;b&lt;a.length;)switch(a[b][0]){case DIFF_INSERT:d++;f+=a[b][1];b++;break;case DIFF_DELETE:c++;e+=a[b][1];b++;break;case DIFF_EQUAL:1&lt;c+d?(0!==c&amp;&amp;0!==d&amp;&amp;(g=this.diff_commonPrefix(f,e),0!==g&amp;&amp;(0&lt;b-c-d&amp;&amp;a[b-c-d-1][0]==DIFF_EQUAL?a[b-c-d-1][1]+=f.substring(0,g):(a.splice(0,0,[DIFF_EQUAL,f.substring(0,g)]),b++),f=f.substring(g),e=e.substring(g)),g=this.diff_commonSuffix(f,e),0!==g&amp;&amp;(a[b][1]=f.substring(f.length-\ng)+a[b][1],f=f.substring(0,f.length-g),e=e.substring(0,e.length-g))),0===c?a.splice(b-d,c+d,[DIFF_INSERT,f]):0===d?a.splice(b-c,c+d,[DIFF_DELETE,e]):a.splice(b-c-d,c+d,[DIFF_DELETE,e],[DIFF_INSERT,f]),b=b-c-d+(c?1:0)+(d?1:0)+1):0!==b&amp;&amp;a[b-1][0]==DIFF_EQUAL?(a[b-1][1]+=a[b][1],a.splice(b,1)):b++,c=d=0,f=e=\&quot;\&quot;}\&quot;\&quot;===a[a.length-1][1]&amp;&amp;a.pop();c=!1;for(b=1;b&lt;a.length-1;)a[b-1][0]==DIFF_EQUAL&amp;&amp;a[b+1][0]==DIFF_EQUAL&amp;&amp;(a[b][1].substring(a[b][1].length-a[b-1][1].length)==a[b-1][1]?(a[b][1]=a[b-1][1]+a[b][1].substring(0,\na[b][1].length-a[b-1][1].length),a[b+1][1]=a[b-1][1]+a[b+1][1],a.splice(b-1,1),c=!0):a[b][1].substring(0,a[b+1][1].length)==a[b+1][1]&amp;&amp;(a[b-1][1]+=a[b+1][1],a[b][1]=a[b][1].substring(a[b+1][1].length)+a[b+1][1],a.splice(b+1,1),c=!0)),b++;c&amp;&amp;this.diff_cleanupMerge(a)};\ndiff_match_patch.prototype.diff_xIndex=function(a,b){var c=0,d=0,e=0,f=0,g;for(g=0;g&lt;a.length;g++){a[g][0]!==DIFF_INSERT&amp;&amp;(c+=a[g][1].length);a[g][0]!==DIFF_DELETE&amp;&amp;(d+=a[g][1].length);if(c&gt;b)break;e=c;f=d}return a.length!=g&amp;&amp;a[g][0]===DIFF_DELETE?f:f+(b-e)};\ndiff_match_patch.prototype.diff_prettyHtml=function(a){for(var b=[],c=/&amp;/g,d=/&lt;/g,e=/&gt;/g,f=/\\n/g,g=0;g&lt;a.length;g++){var h=a[g][0],l=a[g][1].replace(c,\&quot;&amp;amp;\&quot;).replace(d,\&quot;&amp;lt;\&quot;).replace(e,\&quot;&amp;gt;\&quot;).replace(f,\&quot;&amp;para;&lt;br&gt;\&quot;);switch(h){case DIFF_INSERT:b[g]='&lt;ins style=\&quot;background:#e6ffe6;\&quot;&gt;'+l+\&quot;&lt;/ins&gt;\&quot;;break;case DIFF_DELETE:b[g]='&lt;del style=\&quot;background:#ffe6e6;\&quot;&gt;'+l+\&quot;&lt;/del&gt;\&quot;;break;case DIFF_EQUAL:b[g]=\&quot;&lt;span&gt;\&quot;+l+\&quot;&lt;/span&gt;\&quot;}}return b.join(\&quot;\&quot;)};\ndiff_match_patch.prototype.diff_text1=function(a){for(var b=[],c=0;c&lt;a.length;c++)a[c][0]!==DIFF_INSERT&amp;&amp;(b[c]=a[c][1]);return b.join(\&quot;\&quot;)};diff_match_patch.prototype.diff_text2=function(a){for(var b=[],c=0;c&lt;a.length;c++)a[c][0]!==DIFF_DELETE&amp;&amp;(b[c]=a[c][1]);return b.join(\&quot;\&quot;)};\ndiff_match_patch.prototype.diff_levenshtein=function(a){for(var b=0,c=0,d=0,e=0;e&lt;a.length;e++){var f=a[e][1];switch(a[e][0]){case DIFF_INSERT:c+=f.length;break;case DIFF_DELETE:d+=f.length;break;case DIFF_EQUAL:b+=Math.max(c,d),d=c=0}}return b+=Math.max(c,d)};\ndiff_match_patch.prototype.diff_toDelta=function(a){for(var b=[],c=0;c&lt;a.length;c++)switch(a[c][0]){case DIFF_INSERT:b[c]=\&quot;+\&quot;+encodeURI(a[c][1]);break;case DIFF_DELETE:b[c]=\&quot;-\&quot;+a[c][1].length;break;case DIFF_EQUAL:b[c]=\&quot;=\&quot;+a[c][1].length}return b.join(\&quot;\\t\&quot;).replace(/%20/g,\&quot; \&quot;)};\ndiff_match_patch.prototype.diff_fromDelta=function(a,b){for(var c=[],d=0,e=0,f=b.split(/\\t/g),g=0;g&lt;f.length;g++){var h=f[g].substring(1);switch(f[g].charAt(0)){case \&quot;+\&quot;:try{c[d++]=[DIFF_INSERT,decodeURI(h)]}catch(k){throw Error(\&quot;Illegal escape in diff_fromDelta: \&quot;+h);}break;case \&quot;-\&quot;:case \&quot;=\&quot;:var l=parseInt(h,10);if(isNaN(l)||0&gt;l)throw Error(\&quot;Invalid number in diff_fromDelta: \&quot;+h);h=a.substring(e,e+=l);\&quot;=\&quot;==f[g].charAt(0)?c[d++]=[DIFF_EQUAL,h]:c[d++]=[DIFF_DELETE,h];break;default:if(f[g])throw Error(\&quot;Invalid diff operation in diff_fromDelta: \&quot;+\nf[g]);}}if(e!=a.length)throw Error(\&quot;Delta length (\&quot;+e+\&quot;) does not equal source text length (\&quot;+a.length+\&quot;).\&quot;);return c};diff_match_patch.prototype.match_main=function(a,b,c){if(null==a||null==b||null==c)throw Error(\&quot;Null input. (match_main)\&quot;);c=Math.max(0,Math.min(c,a.length));return a==b?0:a.length?a.substring(c,c+b.length)==b?c:this.match_bitap_(a,b,c):-1};\ndiff_match_patch.prototype.match_bitap_=function(a,b,c){function d(a,d){var e=a/b.length,g=Math.abs(c-d);return f.Match_Distance?e+g/f.Match_Distance:g?1:e}if(b.length&gt;this.Match_MaxBits)throw Error(\&quot;Pattern too long for this browser.\&quot;);var e=this.match_alphabet_(b),f=this,g=this.Match_Threshold,h=a.indexOf(b,c);-1!=h&amp;&amp;(g=Math.min(d(0,h),g),h=a.lastIndexOf(b,c+b.length),-1!=h&amp;&amp;(g=Math.min(d(0,h),g)));var l=1&lt;&lt;b.length-1;h=-1;for(var k,m,p=b.length+a.length,x,w=0;w&lt;b.length;w++){k=0;for(m=p;k&lt;m;)d(w,\nc+m)&lt;=g?k=m:p=m,m=Math.floor((p-k)/2+k);p=m;k=Math.max(1,c-m+1);var q=Math.min(c+m,a.length)+b.length;m=Array(q+2);for(m[q+1]=(1&lt;&lt;w)-1;q&gt;=k;q--){var t=e[a.charAt(q-1)];m[q]=0===w?(m[q+1]&lt;&lt;1|1)&amp;t:(m[q+1]&lt;&lt;1|1)&amp;t|(x[q+1]|x[q])&lt;&lt;1|1|x[q+1];if(m[q]&amp;l&amp;&amp;(t=d(w,q-1),t&lt;=g))if(g=t,h=q-1,h&gt;c)k=Math.max(1,2*c-h);else break}if(d(w+1,c)&gt;g)break;x=m}return h};\ndiff_match_patch.prototype.match_alphabet_=function(a){for(var b={},c=0;c&lt;a.length;c++)b[a.charAt(c)]=0;for(c=0;c&lt;a.length;c++)b[a.charAt(c)]|=1&lt;&lt;a.length-c-1;return b};\ndiff_match_patch.prototype.patch_addContext_=function(a,b){if(0!=b.length){for(var c=b.substring(a.start2,a.start2+a.length1),d=0;b.indexOf(c)!=b.lastIndexOf(c)&amp;&amp;c.length&lt;this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)d+=this.Patch_Margin,c=b.substring(a.start2-d,a.start2+a.length1+d);d+=this.Patch_Margin;(c=b.substring(a.start2-d,a.start2))&amp;&amp;a.diffs.unshift([DIFF_EQUAL,c]);(d=b.substring(a.start2+a.length1,a.start2+a.length1+d))&amp;&amp;a.diffs.push([DIFF_EQUAL,d]);a.start1-=c.length;a.start2-=\nc.length;a.length1+=c.length+d.length;a.length2+=c.length+d.length}};\ndiff_match_patch.prototype.patch_make=function(a,b,c){if(\&quot;string\&quot;==typeof a&amp;&amp;\&quot;string\&quot;==typeof b&amp;&amp;\&quot;undefined\&quot;==typeof c){var d=a;b=this.diff_main(d,b,!0);2&lt;b.length&amp;&amp;(this.diff_cleanupSemantic(b),this.diff_cleanupEfficiency(b))}else if(a&amp;&amp;\&quot;object\&quot;==typeof a&amp;&amp;\&quot;undefined\&quot;==typeof b&amp;&amp;\&quot;undefined\&quot;==typeof c)b=a,d=this.diff_text1(b);else if(\&quot;string\&quot;==typeof a&amp;&amp;b&amp;&amp;\&quot;object\&quot;==typeof b&amp;&amp;\&quot;undefined\&quot;==typeof c)d=a;else if(\&quot;string\&quot;==typeof a&amp;&amp;\&quot;string\&quot;==typeof b&amp;&amp;c&amp;&amp;\&quot;object\&quot;==typeof c)d=a,b=c;else throw Error(\&quot;Unknown call format to patch_make.\&quot;);\nif(0===b.length)return[];c=[];a=new diff_match_patch.patch_obj;for(var e=0,f=0,g=0,h=d,l=0;l&lt;b.length;l++){var k=b[l][0],m=b[l][1];e||k===DIFF_EQUAL||(a.start1=f,a.start2=g);switch(k){case DIFF_INSERT:a.diffs[e++]=b[l];a.length2+=m.length;d=d.substring(0,g)+m+d.substring(g);break;case DIFF_DELETE:a.length1+=m.length;a.diffs[e++]=b[l];d=d.substring(0,g)+d.substring(g+m.length);break;case DIFF_EQUAL:m.length&lt;=2*this.Patch_Margin&amp;&amp;e&amp;&amp;b.length!=l+1?(a.diffs[e++]=b[l],a.length1+=m.length,a.length2+=m.length):\nm.length&gt;=2*this.Patch_Margin&amp;&amp;e&amp;&amp;(this.patch_addContext_(a,h),c.push(a),a=new diff_match_patch.patch_obj,e=0,h=d,f=g)}k!==DIFF_INSERT&amp;&amp;(f+=m.length);k!==DIFF_DELETE&amp;&amp;(g+=m.length)}e&amp;&amp;(this.patch_addContext_(a,h),c.push(a));return c};\ndiff_match_patch.prototype.patch_deepCopy=function(a){for(var b=[],c=0;c&lt;a.length;c++){var d=a[c],e=new diff_match_patch.patch_obj;e.diffs=[];for(var f=0;f&lt;d.diffs.length;f++)e.diffs[f]=d.diffs[f].slice();e.start1=d.start1;e.start2=d.start2;e.length1=d.length1;e.length2=d.length2;b[c]=e}return b};\ndiff_match_patch.prototype.patch_apply=function(a,b){if(0==a.length)return[b,[]];a=this.patch_deepCopy(a);var c=this.patch_addPadding(a);b=c+b+c;this.patch_splitMax(a);for(var d=0,e=[],f=0;f&lt;a.length;f++){var g=a[f].start2+d,h=this.diff_text1(a[f].diffs),l=-1;if(h.length&gt;this.Match_MaxBits){var k=this.match_main(b,h.substring(0,this.Match_MaxBits),g);-1!=k&amp;&amp;(l=this.match_main(b,h.substring(h.length-this.Match_MaxBits),g+h.length-this.Match_MaxBits),-1==l||k&gt;=l)&amp;&amp;(k=-1)}else k=this.match_main(b,h,\ng);if(-1==k)e[f]=!1,d-=a[f].length2-a[f].length1;else if(e[f]=!0,d=k-g,g=-1==l?b.substring(k,k+h.length):b.substring(k,l+this.Match_MaxBits),h==g)b=b.substring(0,k)+this.diff_text2(a[f].diffs)+b.substring(k+h.length);else if(g=this.diff_main(h,g,!1),h.length&gt;this.Match_MaxBits&amp;&amp;this.diff_levenshtein(g)/h.length&gt;this.Patch_DeleteThreshold)e[f]=!1;else{this.diff_cleanupSemanticLossless(g);h=0;var m;for(l=0;l&lt;a[f].diffs.length;l++){var p=a[f].diffs[l];p[0]!==DIFF_EQUAL&amp;&amp;(m=this.diff_xIndex(g,h));p[0]===\nDIFF_INSERT?b=b.substring(0,k+m)+p[1]+b.substring(k+m):p[0]===DIFF_DELETE&amp;&amp;(b=b.substring(0,k+m)+b.substring(k+this.diff_xIndex(g,h+p[1].length)));p[0]!==DIFF_DELETE&amp;&amp;(h+=p[1].length)}}}b=b.substring(c.length,b.length-c.length);return[b,e]};\ndiff_match_patch.prototype.patch_addPadding=function(a){for(var b=this.Patch_Margin,c=\&quot;\&quot;,d=1;d&lt;=b;d++)c+=String.fromCharCode(d);for(d=0;d&lt;a.length;d++)a[d].start1+=b,a[d].start2+=b;d=a[0];var e=d.diffs;if(0==e.length||e[0][0]!=DIFF_EQUAL)e.unshift([DIFF_EQUAL,c]),d.start1-=b,d.start2-=b,d.length1+=b,d.length2+=b;else if(b&gt;e[0][1].length){var f=b-e[0][1].length;e[0][1]=c.substring(e[0][1].length)+e[0][1];d.start1-=f;d.start2-=f;d.length1+=f;d.length2+=f}d=a[a.length-1];e=d.diffs;0==e.length||e[e.length-\n1][0]!=DIFF_EQUAL?(e.push([DIFF_EQUAL,c]),d.length1+=b,d.length2+=b):b&gt;e[e.length-1][1].length&amp;&amp;(f=b-e[e.length-1][1].length,e[e.length-1][1]+=c.substring(0,f),d.length1+=f,d.length2+=f);return c};\ndiff_match_patch.prototype.patch_splitMax=function(a){for(var b=this.Match_MaxBits,c=0;c&lt;a.length;c++)if(!(a[c].length1&lt;=b)){var d=a[c];a.splice(c--,1);for(var e=d.start1,f=d.start2,g=\&quot;\&quot;;0!==d.diffs.length;){var h=new diff_match_patch.patch_obj,l=!0;h.start1=e-g.length;h.start2=f-g.length;\&quot;\&quot;!==g&amp;&amp;(h.length1=h.length2=g.length,h.diffs.push([DIFF_EQUAL,g]));for(;0!==d.diffs.length&amp;&amp;h.length1&lt;b-this.Patch_Margin;){g=d.diffs[0][0];var k=d.diffs[0][1];g===DIFF_INSERT?(h.length2+=k.length,f+=k.length,h.diffs.push(d.diffs.shift()),\nl=!1):g===DIFF_DELETE&amp;&amp;1==h.diffs.length&amp;&amp;h.diffs[0][0]==DIFF_EQUAL&amp;&amp;k.length&gt;2*b?(h.length1+=k.length,e+=k.length,l=!1,h.diffs.push([g,k]),d.diffs.shift()):(k=k.substring(0,b-h.length1-this.Patch_Margin),h.length1+=k.length,e+=k.length,g===DIFF_EQUAL?(h.length2+=k.length,f+=k.length):l=!1,h.diffs.push([g,k]),k==d.diffs[0][1]?d.diffs.shift():d.diffs[0][1]=d.diffs[0][1].substring(k.length))}g=this.diff_text2(h.diffs);g=g.substring(g.length-this.Patch_Margin);k=this.diff_text1(d.diffs).substring(0,\nthis.Patch_Margin);\&quot;\&quot;!==k&amp;&amp;(h.length1+=k.length,h.length2+=k.length,0!==h.diffs.length&amp;&amp;h.diffs[h.diffs.length-1][0]===DIFF_EQUAL?h.diffs[h.diffs.length-1][1]+=k:h.diffs.push([DIFF_EQUAL,k]));l||a.splice(++c,0,h)}}};diff_match_patch.prototype.patch_toText=function(a){for(var b=[],c=0;c&lt;a.length;c++)b[c]=a[c];return b.join(\&quot;\&quot;)};\ndiff_match_patch.prototype.patch_fromText=function(a){var b=[];if(!a)return b;a=a.split(\&quot;\\n\&quot;);for(var c=0,d=/^@@ -(\\d+),?(\\d*) \\+(\\d+),?(\\d*) @@$/;c&lt;a.length;){var e=a[c].match(d);if(!e)throw Error(\&quot;Invalid patch string: \&quot;+a[c]);var f=new diff_match_patch.patch_obj;b.push(f);f.start1=parseInt(e[1],10);\&quot;\&quot;===e[2]?(f.start1--,f.length1=1):\&quot;0\&quot;==e[2]?f.length1=0:(f.start1--,f.length1=parseInt(e[2],10));f.start2=parseInt(e[3],10);\&quot;\&quot;===e[4]?(f.start2--,f.length2=1):\&quot;0\&quot;==e[4]?f.length2=0:(f.start2--,f.length2=\nparseInt(e[4],10));for(c++;c&lt;a.length;){e=a[c].charAt(0);try{var g=decodeURI(a[c].substring(1))}catch(h){throw Error(\&quot;Illegal escape in patch_fromText: \&quot;+g);}if(\&quot;-\&quot;==e)f.diffs.push([DIFF_DELETE,g]);else if(\&quot;+\&quot;==e)f.diffs.push([DIFF_INSERT,g]);else if(\&quot; \&quot;==e)f.diffs.push([DIFF_EQUAL,g]);else if(\&quot;@\&quot;==e)break;else if(\&quot;\&quot;!==e)throw Error('Invalid patch mode \&quot;'+e+'\&quot; in: '+g);c++}}return b};diff_match_patch.patch_obj=function(){this.diffs=[];this.start2=this.start1=null;this.length2=this.length1=0};\ndiff_match_patch.patch_obj.prototype.toString=function(){for(var a=[\&quot;@@ -\&quot;+(0===this.length1?this.start1+\&quot;,0\&quot;:1==this.length1?this.start1+1:this.start1+1+\&quot;,\&quot;+this.length1)+\&quot; +\&quot;+(0===this.length2?this.start2+\&quot;,0\&quot;:1==this.length2?this.start2+1:this.start2+1+\&quot;,\&quot;+this.length2)+\&quot; @@\\n\&quot;],b,c=0;c&lt;this.diffs.length;c++){switch(this.diffs[c][0]){case DIFF_INSERT:b=\&quot;+\&quot;;break;case DIFF_DELETE:b=\&quot;-\&quot;;break;case DIFF_EQUAL:b=\&quot; \&quot;}a[c+1]=b+encodeURI(this.diffs[c][1])+\&quot;\\n\&quot;}return a.join(\&quot;\&quot;).replace(/%20/g,\&quot; \&quot;)};\nthis.diff_match_patch=diff_match_patch;this.DIFF_DELETE=DIFF_DELETE;this.DIFF_INSERT=DIFF_INSERT;this.DIFF_EQUAL=DIFF_EQUAL;\n}).call(exports);&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;title&quot;: &quot;$:/core/modules/utils/diff-match-patch/diff_match_patch.js&quot;,
&quot;module-type&quot;: &quot;library&quot;
},
&quot;$:/core/modules/utils/dom/animations/slide.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom/animations/slide.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/dom/animations/slide.js\ntype: application/javascript\nmodule-type: animation\n\nA simple slide animation that varies the height of the element\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nfunction slideOpen(domNode,options) {\n\toptions = options || {};\n\tvar duration = options.duration || $tw.utils.getAnimationDuration();\n\t// Get the current height of the domNode\n\tvar computedStyle = window.getComputedStyle(domNode),\n\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\tcurrPaddingBottom = parseInt(computedStyle.paddingBottom,10),\n\t\tcurrPaddingTop = parseInt(computedStyle.paddingTop,10),\n\t\tcurrHeight = domNode.offsetHeight;\n\t// Reset the margin once the transition is over\n\tsetTimeout(function() {\n\t\t$tw.utils.setStyle(domNode,[\n\t\t\t{transition: \&quot;none\&quot;},\n\t\t\t{marginBottom: \&quot;\&quot;},\n\t\t\t{marginTop: \&quot;\&quot;},\n\t\t\t{paddingBottom: \&quot;\&quot;},\n\t\t\t{paddingTop: \&quot;\&quot;},\n\t\t\t{height: \&quot;auto\&quot;},\n\t\t\t{opacity: \&quot;\&quot;}\n\t\t]);\n\t\tif(options.callback) {\n\t\t\toptions.callback();\n\t\t}\n\t},duration);\n\t// Set up the initial position of the element\n\t$tw.utils.setStyle(domNode,[\n\t\t{transition: \&quot;none\&quot;},\n\t\t{marginTop: \&quot;0px\&quot;},\n\t\t{marginBottom: \&quot;0px\&quot;},\n\t\t{paddingTop: \&quot;0px\&quot;},\n\t\t{paddingBottom: \&quot;0px\&quot;},\n\t\t{height: \&quot;0px\&quot;},\n\t\t{opacity: \&quot;0\&quot;}\n\t]);\n\t$tw.utils.forceLayout(domNode);\n\t// Transition to the final position\n\t$tw.utils.setStyle(domNode,[\n\t\t{transition: \&quot;margin-top \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;margin-bottom \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;padding-top \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;padding-bottom \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;height \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;opacity \&quot; + duration + \&quot;ms ease-in-out\&quot;},\n\t\t{marginBottom: currMarginBottom + \&quot;px\&quot;},\n\t\t{marginTop: currMarginTop + \&quot;px\&quot;},\n\t\t{paddingBottom: currPaddingBottom + \&quot;px\&quot;},\n\t\t{paddingTop: currPaddingTop + \&quot;px\&quot;},\n\t\t{height: currHeight + \&quot;px\&quot;},\n\t\t{opacity: \&quot;1\&quot;}\n\t]);\n}\n\nfunction slideClosed(domNode,options) {\n\toptions = options || {};\n\tvar duration = options.duration || $tw.utils.getAnimationDuration(),\n\t\tcurrHeight = domNode.offsetHeight;\n\t// Clear the properties we've set when the animation is over\n\tsetTimeout(function() {\n\t\t$tw.utils.setStyle(domNode,[\n\t\t\t{transition: \&quot;none\&quot;},\n\t\t\t{marginBottom: \&quot;\&quot;},\n\t\t\t{marginTop: \&quot;\&quot;},\n\t\t\t{paddingBottom: \&quot;\&quot;},\n\t\t\t{paddingTop: \&quot;\&quot;},\n\t\t\t{height: \&quot;auto\&quot;},\n\t\t\t{opacity: \&quot;\&quot;}\n\t\t]);\n\t\tif(options.callback) {\n\t\t\toptions.callback();\n\t\t}\n\t},duration);\n\t// Set up the initial position of the element\n\t$tw.utils.setStyle(domNode,[\n\t\t{height: currHeight + \&quot;px\&quot;},\n\t\t{opacity: \&quot;1\&quot;}\n\t]);\n\t$tw.utils.forceLayout(domNode);\n\t// Transition to the final position\n\t$tw.utils.setStyle(domNode,[\n\t\t{transition: \&quot;margin-top \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;margin-bottom \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;padding-top \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;padding-bottom \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;height \&quot; + duration + \&quot;ms ease-in-out, \&quot; +\n\t\t\t\t\t\&quot;opacity \&quot; + duration + \&quot;ms ease-in-out\&quot;},\n\t\t{marginTop: \&quot;0px\&quot;},\n\t\t{marginBottom: \&quot;0px\&quot;},\n\t\t{paddingTop: \&quot;0px\&quot;},\n\t\t{paddingBottom: \&quot;0px\&quot;},\n\t\t{height: \&quot;0px\&quot;},\n\t\t{opacity: \&quot;0\&quot;}\n\t]);\n}\n\nexports.slide = {\n\topen: slideOpen,\n\tclose: slideClosed\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;animation&quot;
},
&quot;$:/core/modules/utils/dom/animator.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom/animator.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/dom/animator.js\ntype: application/javascript\nmodule-type: utils\n\nOrchestrates animations and transitions\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nfunction Animator() {\n\t// Get the registered animation modules\n\tthis.animations = {};\n\t$tw.modules.applyMethods(\&quot;animation\&quot;,this.animations);\n}\n\nAnimator.prototype.perform = function(type,domNode,options) {\n\toptions = options || {};\n\t// Find an animation that can handle this type\n\tvar chosenAnimation;\n\t$tw.utils.each(this.animations,function(animation,name) {\n\t\tif($tw.utils.hop(animation,type)) {\n\t\t\tchosenAnimation = animation[type];\n\t\t}\n\t});\n\tif(!chosenAnimation) {\n\t\tchosenAnimation = function(domNode,options) {\n\t\t\tif(options.callback) {\n\t\t\t\toptions.callback();\n\t\t\t}\n\t\t};\n\t}\n\t// Call the animation\n\tchosenAnimation(domNode,options);\n};\n\nexports.Animator = Animator;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/dom/browser.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom/browser.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/dom/browser.js\ntype: application/javascript\nmodule-type: utils\n\nBrowser feature detection\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nSet style properties of an element\n\telement: dom node\n\tstyles: ordered array of {name: value} pairs\n*/\nexports.setStyle = function(element,styles) {\n\tif(element.nodeType === 1) { // Element.ELEMENT_NODE\n\t\tfor(var t=0; t&lt;styles.length; t++) {\n\t\t\tfor(var styleName in styles[t]) {\n\t\t\t\telement.style[$tw.utils.convertStyleNameToPropertyName(styleName)] = styles[t][styleName];\n\t\t\t}\n\t\t}\n\t}\n};\n\n/*\nConverts a standard CSS property name into the local browser-specific equivalent. For example:\n\t\&quot;background-color\&quot; --&gt; \&quot;backgroundColor\&quot;\n\t\&quot;transition\&quot; --&gt; \&quot;webkitTransition\&quot;\n*/\n\nvar styleNameCache = {}; // We'll cache the style name conversions\n\nexports.convertStyleNameToPropertyName = function(styleName) {\n\t// Return from the cache if we can\n\tif(styleNameCache[styleName]) {\n\t\treturn styleNameCache[styleName];\n\t}\n\t// Convert it by first removing any hyphens\n\tvar propertyName = $tw.utils.unHyphenateCss(styleName);\n\t// Then check if it needs a prefix\n\tif($tw.browser &amp;&amp; document.body.style[propertyName] === undefined) {\n\t\tvar prefixes = [\&quot;O\&quot;,\&quot;MS\&quot;,\&quot;Moz\&quot;,\&quot;webkit\&quot;];\n\t\tfor(var t=0; t&lt;prefixes.length; t++) {\n\t\t\tvar prefixedName = prefixes[t] + propertyName.substr(0,1).toUpperCase() + propertyName.substr(1);\n\t\t\tif(document.body.style[prefixedName] !== undefined) {\n\t\t\t\tpropertyName = prefixedName;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t// Put it in the cache too\n\tstyleNameCache[styleName] = propertyName;\n\treturn propertyName;\n};\n\n/*\nConverts a JS format CSS property name back into the dashed form used in CSS declarations. For example:\n\t\&quot;backgroundColor\&quot; --&gt; \&quot;background-color\&quot;\n\t\&quot;webkitTransform\&quot; --&gt; \&quot;-webkit-transform\&quot;\n*/\nexports.convertPropertyNameToStyleName = function(propertyName) {\n\t// Rehyphenate the name\n\tvar styleName = $tw.utils.hyphenateCss(propertyName);\n\t// If there's a webkit prefix, add a dash (other browsers have uppercase prefixes, and so get the dash automatically)\n\tif(styleName.indexOf(\&quot;webkit\&quot;) === 0) {\n\t\tstyleName = \&quot;-\&quot; + styleName;\n\t} else if(styleName.indexOf(\&quot;-m-s\&quot;) === 0) {\n\t\tstyleName = \&quot;-ms\&quot; + styleName.substr(4);\n\t}\n\treturn styleName;\n};\n\n/*\nRound trip a stylename to a property name and back again. For example:\n\t\&quot;transform\&quot; --&gt; \&quot;webkitTransform\&quot; --&gt; \&quot;-webkit-transform\&quot;\n*/\nexports.roundTripPropertyName = function(propertyName) {\n\treturn $tw.utils.convertPropertyNameToStyleName($tw.utils.convertStyleNameToPropertyName(propertyName));\n};\n\n/*\nConverts a standard event name into the local browser specific equivalent. For example:\n\t\&quot;animationEnd\&quot; --&gt; \&quot;webkitAnimationEnd\&quot;\n*/\n\nvar eventNameCache = {}; // We'll cache the conversions\n\nvar eventNameMappings = {\n\t\&quot;transitionEnd\&quot;: {\n\t\tcorrespondingCssProperty: \&quot;transition\&quot;,\n\t\tmappings: {\n\t\t\ttransition: \&quot;transitionend\&quot;,\n\t\t\tOTransition: \&quot;oTransitionEnd\&quot;,\n\t\t\tMSTransition: \&quot;msTransitionEnd\&quot;,\n\t\t\tMozTransition: \&quot;transitionend\&quot;,\n\t\t\twebkitTransition: \&quot;webkitTransitionEnd\&quot;\n\t\t}\n\t},\n\t\&quot;animationEnd\&quot;: {\n\t\tcorrespondingCssProperty: \&quot;animation\&quot;,\n\t\tmappings: {\n\t\t\tanimation: \&quot;animationend\&quot;,\n\t\t\tOAnimation: \&quot;oAnimationEnd\&quot;,\n\t\t\tMSAnimation: \&quot;msAnimationEnd\&quot;,\n\t\t\tMozAnimation: \&quot;animationend\&quot;,\n\t\t\twebkitAnimation: \&quot;webkitAnimationEnd\&quot;\n\t\t}\n\t}\n};\n\nexports.convertEventName = function(eventName) {\n\tif(eventNameCache[eventName]) {\n\t\treturn eventNameCache[eventName];\n\t}\n\tvar newEventName = eventName,\n\t\tmappings = eventNameMappings[eventName];\n\tif(mappings) {\n\t\tvar convertedProperty = $tw.utils.convertStyleNameToPropertyName(mappings.correspondingCssProperty);\n\t\tif(mappings.mappings[convertedProperty]) {\n\t\t\tnewEventName = mappings.mappings[convertedProperty];\n\t\t}\n\t}\n\t// Put it in the cache too\n\teventNameCache[eventName] = newEventName;\n\treturn newEventName;\n};\n\n/*\nReturn the names of the fullscreen APIs\n*/\nexports.getFullScreenApis = function() {\n\tvar d = document,\n\t\tdb = d.body,\n\t\tresult = {\n\t\t\&quot;_requestFullscreen\&quot;: db.webkitRequestFullscreen !== undefined ? \&quot;webkitRequestFullscreen\&quot; :\n\t\t\t\t\t\t\tdb.mozRequestFullScreen !== undefined ? \&quot;mozRequestFullScreen\&quot; :\n\t\t\t\t\t\t\tdb.msRequestFullscreen !== undefined ? \&quot;msRequestFullscreen\&quot; :\n\t\t\t\t\t\t\tdb.requestFullscreen !== undefined ? \&quot;requestFullscreen\&quot; : \&quot;\&quot;,\n\t\t\&quot;_exitFullscreen\&quot;: d.webkitExitFullscreen !== undefined ? \&quot;webkitExitFullscreen\&quot; :\n\t\t\t\t\t\t\td.mozCancelFullScreen !== undefined ? \&quot;mozCancelFullScreen\&quot; :\n\t\t\t\t\t\t\td.msExitFullscreen !== undefined ? \&quot;msExitFullscreen\&quot; :\n\t\t\t\t\t\t\td.exitFullscreen !== undefined ? \&quot;exitFullscreen\&quot; : \&quot;\&quot;,\n\t\t\&quot;_fullscreenElement\&quot;: d.webkitFullscreenElement !== undefined ? \&quot;webkitFullscreenElement\&quot; :\n\t\t\t\t\t\t\td.mozFullScreenElement !== undefined ? \&quot;mozFullScreenElement\&quot; :\n\t\t\t\t\t\t\td.msFullscreenElement !== undefined ? \&quot;msFullscreenElement\&quot; :\n\t\t\t\t\t\t\td.fullscreenElement !== undefined ? \&quot;fullscreenElement\&quot; : \&quot;\&quot;,\n\t\t\&quot;_fullscreenChange\&quot;: d.webkitFullscreenElement !== undefined ? \&quot;webkitfullscreenchange\&quot; :\n\t\t\t\t\t\t\td.mozFullScreenElement !== undefined ? \&quot;mozfullscreenchange\&quot; :\n\t\t\t\t\t\t\td.msFullscreenElement !== undefined ? \&quot;MSFullscreenChange\&quot; :\n\t\t\t\t\t\t\td.fullscreenElement !== undefined ? \&quot;fullscreenchange\&quot; : \&quot;\&quot;\n\t};\n\tif(!result._requestFullscreen || !result._exitFullscreen || !result._fullscreenElement || !result._fullscreenChange) {\n\t\treturn null;\n\t} else {\n\t\treturn result;\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/dom/csscolorparser.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom/csscolorparser.js&quot;,
&quot;text&quot;: &quot;// (c) Dean McNamee &lt;dean@gmail.com&gt;, 2012.\n//\n// https://github.com/deanm/css-color-parser-js\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \&quot;Software\&quot;), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \&quot;AS IS\&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n// IN THE SOFTWARE.\n\n// http://www.w3.org/TR/css3-color/\nvar kCSSColorTable = {\n \&quot;transparent\&quot;: [0,0,0,0], \&quot;aliceblue\&quot;: [240,248,255,1],\n \&quot;antiquewhite\&quot;: [250,235,215,1], \&quot;aqua\&quot;: [0,255,255,1],\n \&quot;aquamarine\&quot;: [127,255,212,1], \&quot;azure\&quot;: [240,255,255,1],\n \&quot;beige\&quot;: [245,245,220,1], \&quot;bisque\&quot;: [255,228,196,1],\n \&quot;black\&quot;: [0,0,0,1], \&quot;blanchedalmond\&quot;: [255,235,205,1],\n \&quot;blue\&quot;: [0,0,255,1], \&quot;blueviolet\&quot;: [138,43,226,1],\n \&quot;brown\&quot;: [165,42,42,1], \&quot;burlywood\&quot;: [222,184,135,1],\n \&quot;cadetblue\&quot;: [95,158,160,1], \&quot;chartreuse\&quot;: [127,255,0,1],\n \&quot;chocolate\&quot;: [210,105,30,1], \&quot;coral\&quot;: [255,127,80,1],\n \&quot;cornflowerblue\&quot;: [100,149,237,1], \&quot;cornsilk\&quot;: [255,248,220,1],\n \&quot;crimson\&quot;: [220,20,60,1], \&quot;cyan\&quot;: [0,255,255,1],\n \&quot;darkblue\&quot;: [0,0,139,1], \&quot;darkcyan\&quot;: [0,139,139,1],\n \&quot;darkgoldenrod\&quot;: [184,134,11,1], \&quot;darkgray\&quot;: [169,169,169,1],\n \&quot;darkgreen\&quot;: [0,100,0,1], \&quot;darkgrey\&quot;: [169,169,169,1],\n \&quot;darkkhaki\&quot;: [189,183,107,1], \&quot;darkmagenta\&quot;: [139,0,139,1],\n \&quot;darkolivegreen\&quot;: [85,107,47,1], \&quot;darkorange\&quot;: [255,140,0,1],\n \&quot;darkorchid\&quot;: [153,50,204,1], \&quot;darkred\&quot;: [139,0,0,1],\n \&quot;darksalmon\&quot;: [233,150,122,1], \&quot;darkseagreen\&quot;: [143,188,143,1],\n \&quot;darkslateblue\&quot;: [72,61,139,1], \&quot;darkslategray\&quot;: [47,79,79,1],\n \&quot;darkslategrey\&quot;: [47,79,79,1], \&quot;darkturquoise\&quot;: [0,206,209,1],\n \&quot;darkviolet\&quot;: [148,0,211,1], \&quot;deeppink\&quot;: [255,20,147,1],\n \&quot;deepskyblue\&quot;: [0,191,255,1], \&quot;dimgray\&quot;: [105,105,105,1],\n \&quot;dimgrey\&quot;: [105,105,105,1], \&quot;dodgerblue\&quot;: [30,144,255,1],\n \&quot;firebrick\&quot;: [178,34,34,1], \&quot;floralwhite\&quot;: [255,250,240,1],\n \&quot;forestgreen\&quot;: [34,139,34,1], \&quot;fuchsia\&quot;: [255,0,255,1],\n \&quot;gainsboro\&quot;: [220,220,220,1], \&quot;ghostwhite\&quot;: [248,248,255,1],\n \&quot;gold\&quot;: [255,215,0,1], \&quot;goldenrod\&quot;: [218,165,32,1],\n \&quot;gray\&quot;: [128,128,128,1], \&quot;green\&quot;: [0,128,0,1],\n \&quot;greenyellow\&quot;: [173,255,47,1], \&quot;grey\&quot;: [128,128,128,1],\n \&quot;honeydew\&quot;: [240,255,240,1], \&quot;hotpink\&quot;: [255,105,180,1],\n \&quot;indianred\&quot;: [205,92,92,1], \&quot;indigo\&quot;: [75,0,130,1],\n \&quot;ivory\&quot;: [255,255,240,1], \&quot;khaki\&quot;: [240,230,140,1],\n \&quot;lavender\&quot;: [230,230,250,1], \&quot;lavenderblush\&quot;: [255,240,245,1],\n \&quot;lawngreen\&quot;: [124,252,0,1], \&quot;lemonchiffon\&quot;: [255,250,205,1],\n \&quot;lightblue\&quot;: [173,216,230,1], \&quot;lightcoral\&quot;: [240,128,128,1],\n \&quot;lightcyan\&quot;: [224,255,255,1], \&quot;lightgoldenrodyellow\&quot;: [250,250,210,1],\n \&quot;lightgray\&quot;: [211,211,211,1], \&quot;lightgreen\&quot;: [144,238,144,1],\n \&quot;lightgrey\&quot;: [211,211,211,1], \&quot;lightpink\&quot;: [255,182,193,1],\n \&quot;lightsalmon\&quot;: [255,160,122,1], \&quot;lightseagreen\&quot;: [32,178,170,1],\n \&quot;lightskyblue\&quot;: [135,206,250,1], \&quot;lightslategray\&quot;: [119,136,153,1],\n \&quot;lightslategrey\&quot;: [119,136,153,1], \&quot;lightsteelblue\&quot;: [176,196,222,1],\n \&quot;lightyellow\&quot;: [255,255,224,1], \&quot;lime\&quot;: [0,255,0,1],\n \&quot;limegreen\&quot;: [50,205,50,1], \&quot;linen\&quot;: [250,240,230,1],\n \&quot;magenta\&quot;: [255,0,255,1], \&quot;maroon\&quot;: [128,0,0,1],\n \&quot;mediumaquamarine\&quot;: [102,205,170,1], \&quot;mediumblue\&quot;: [0,0,205,1],\n \&quot;mediumorchid\&quot;: [186,85,211,1], \&quot;mediumpurple\&quot;: [147,112,219,1],\n \&quot;mediumseagreen\&quot;: [60,179,113,1], \&quot;mediumslateblue\&quot;: [123,104,238,1],\n \&quot;mediumspringgreen\&quot;: [0,250,154,1], \&quot;mediumturquoise\&quot;: [72,209,204,1],\n \&quot;mediumvioletred\&quot;: [199,21,133,1], \&quot;midnightblue\&quot;: [25,25,112,1],\n \&quot;mintcream\&quot;: [245,255,250,1], \&quot;mistyrose\&quot;: [255,228,225,1],\n \&quot;moccasin\&quot;: [255,228,181,1], \&quot;navajowhite\&quot;: [255,222,173,1],\n \&quot;navy\&quot;: [0,0,128,1], \&quot;oldlace\&quot;: [253,245,230,1],\n \&quot;olive\&quot;: [128,128,0,1], \&quot;olivedrab\&quot;: [107,142,35,1],\n \&quot;orange\&quot;: [255,165,0,1], \&quot;orangered\&quot;: [255,69,0,1],\n \&quot;orchid\&quot;: [218,112,214,1], \&quot;palegoldenrod\&quot;: [238,232,170,1],\n \&quot;palegreen\&quot;: [152,251,152,1], \&quot;paleturquoise\&quot;: [175,238,238,1],\n \&quot;palevioletred\&quot;: [219,112,147,1], \&quot;papayawhip\&quot;: [255,239,213,1],\n \&quot;peachpuff\&quot;: [255,218,185,1], \&quot;peru\&quot;: [205,133,63,1],\n \&quot;pink\&quot;: [255,192,203,1], \&quot;plum\&quot;: [221,160,221,1],\n \&quot;powderblue\&quot;: [176,224,230,1], \&quot;purple\&quot;: [128,0,128,1],\n \&quot;red\&quot;: [255,0,0,1], \&quot;rosybrown\&quot;: [188,143,143,1],\n \&quot;royalblue\&quot;: [65,105,225,1], \&quot;saddlebrown\&quot;: [139,69,19,1],\n \&quot;salmon\&quot;: [250,128,114,1], \&quot;sandybrown\&quot;: [244,164,96,1],\n \&quot;seagreen\&quot;: [46,139,87,1], \&quot;seashell\&quot;: [255,245,238,1],\n \&quot;sienna\&quot;: [160,82,45,1], \&quot;silver\&quot;: [192,192,192,1],\n \&quot;skyblue\&quot;: [135,206,235,1], \&quot;slateblue\&quot;: [106,90,205,1],\n \&quot;slategray\&quot;: [112,128,144,1], \&quot;slategrey\&quot;: [112,128,144,1],\n \&quot;snow\&quot;: [255,250,250,1], \&quot;springgreen\&quot;: [0,255,127,1],\n \&quot;steelblue\&quot;: [70,130,180,1], \&quot;tan\&quot;: [210,180,140,1],\n \&quot;teal\&quot;: [0,128,128,1], \&quot;thistle\&quot;: [216,191,216,1],\n \&quot;tomato\&quot;: [255,99,71,1], \&quot;turquoise\&quot;: [64,224,208,1],\n \&quot;violet\&quot;: [238,130,238,1], \&quot;wheat\&quot;: [245,222,179,1],\n \&quot;white\&quot;: [255,255,255,1], \&quot;whitesmoke\&quot;: [245,245,245,1],\n \&quot;yellow\&quot;: [255,255,0,1], \&quot;yellowgreen\&quot;: [154,205,50,1]}\n\nfunction clamp_css_byte(i) { // Clamp to integer 0 .. 255.\n i = Math.round(i); // Seems to be what Chrome does (vs truncation).\n return i &lt; 0 ? 0 : i &gt; 255 ? 255 : i;\n}\n\nfunction clamp_css_float(f) { // Clamp to float 0.0 .. 1.0.\n return f &lt; 0 ? 0 : f &gt; 1 ? 1 : f;\n}\n\nfunction parse_css_int(str) { // int or percentage.\n if (str[str.length - 1] === '%')\n return clamp_css_byte(parseFloat(str) / 100 * 255);\n return clamp_css_byte(parseInt(str));\n}\n\nfunction parse_css_float(str) { // float or percentage.\n if (str[str.length - 1] === '%')\n return clamp_css_float(parseFloat(str) / 100);\n return clamp_css_float(parseFloat(str));\n}\n\nfunction css_hue_to_rgb(m1, m2, h) {\n if (h &lt; 0) h += 1;\n else if (h &gt; 1) h -= 1;\n\n if (h * 6 &lt; 1) return m1 + (m2 - m1) * h * 6;\n if (h * 2 &lt; 1) return m2;\n if (h * 3 &lt; 2) return m1 + (m2 - m1) * (2/3 - h) * 6;\n return m1;\n}\n\nfunction parseCSSColor(css_str) {\n // Remove all whitespace, not compliant, but should just be more accepting.\n var str = css_str.replace(/ /g, '').toLowerCase();\n\n // Color keywords (and transparent) lookup.\n if (str in kCSSColorTable) return kCSSColorTable[str].slice(); // dup.\n\n // #abc and #abc123 syntax.\n if (str[0] === '#') {\n if (str.length === 4) {\n var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.\n if (!(iv &gt;= 0 &amp;&amp; iv &lt;= 0xfff)) return null; // Covers NaN.\n return [((iv &amp; 0xf00) &gt;&gt; 4) | ((iv &amp; 0xf00) &gt;&gt; 8),\n (iv &amp; 0xf0) | ((iv &amp; 0xf0) &gt;&gt; 4),\n (iv &amp; 0xf) | ((iv &amp; 0xf) &lt;&lt; 4),\n 1];\n } else if (str.length === 7) {\n var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.\n if (!(iv &gt;= 0 &amp;&amp; iv &lt;= 0xffffff)) return null; // Covers NaN.\n return [(iv &amp; 0xff0000) &gt;&gt; 16,\n (iv &amp; 0xff00) &gt;&gt; 8,\n iv &amp; 0xff,\n 1];\n }\n\n return null;\n }\n\n var op = str.indexOf('('), ep = str.indexOf(')');\n if (op !== -1 &amp;&amp; ep + 1 === str.length) {\n var fname = str.substr(0, op);\n var params = str.substr(op+1, ep-(op+1)).split(',');\n var alpha = 1; // To allow case fallthrough.\n switch (fname) {\n case 'rgba':\n if (params.length !== 4) return null;\n alpha = parse_css_float(params.pop());\n // Fall through.\n case 'rgb':\n if (params.length !== 3) return null;\n return [parse_css_int(params[0]),\n parse_css_int(params[1]),\n parse_css_int(params[2]),\n alpha];\n case 'hsla':\n if (params.length !== 4) return null;\n alpha = parse_css_float(params.pop());\n // Fall through.\n case 'hsl':\n if (params.length !== 3) return null;\n var h = (((parseFloat(params[0]) % 360) + 360) % 360) / 360; // 0 .. 1\n // NOTE(deanm): According to the CSS spec s/l should only be\n // percentages, but we don't bother and let float or percentage.\n var s = parse_css_float(params[1]);\n var l = parse_css_float(params[2]);\n var m2 = l &lt;= 0.5 ? l * (s + 1) : l + s - l * s;\n var m1 = l * 2 - m2;\n return [clamp_css_byte(css_hue_to_rgb(m1, m2, h+1/3) * 255),\n clamp_css_byte(css_hue_to_rgb(m1, m2, h) * 255),\n clamp_css_byte(css_hue_to_rgb(m1, m2, h-1/3) * 255),\n alpha];\n default:\n return null;\n }\n }\n\n return null;\n}\n\ntry { exports.parseCSSColor = parseCSSColor } catch(e) { }\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/dom.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/dom.js\ntype: application/javascript\nmodule-type: utils\n\nVarious static DOM-related utility functions.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nDetermines whether element 'a' contains element 'b'\nCode thanks to John Resig, http://ejohn.org/blog/comparing-document-position/\n*/\nexports.domContains = function(a,b) {\n\treturn a.contains ?\n\t\ta !== b &amp;&amp; a.contains(b) :\n\t\t!!(a.compareDocumentPosition(b) &amp; 16);\n};\n\nexports.removeChildren = function(node) {\n\twhile(node.hasChildNodes()) {\n\t\tnode.removeChild(node.firstChild);\n\t}\n};\n\nexports.hasClass = function(el,className) {\n\treturn el &amp;&amp; el.hasAttribute &amp;&amp; el.hasAttribute(\&quot;class\&quot;) &amp;&amp; el.getAttribute(\&quot;class\&quot;).split(\&quot; \&quot;).indexOf(className) !== -1;\n};\n\nexports.addClass = function(el,className) {\n\tvar c = (el.getAttribute(\&quot;class\&quot;) || \&quot;\&quot;).split(\&quot; \&quot;);\n\tif(c.indexOf(className) === -1) {\n\t\tc.push(className);\n\t\tel.setAttribute(\&quot;class\&quot;,c.join(\&quot; \&quot;));\n\t}\n};\n\nexports.removeClass = function(el,className) {\n\tvar c = (el.getAttribute(\&quot;class\&quot;) || \&quot;\&quot;).split(\&quot; \&quot;),\n\t\tp = c.indexOf(className);\n\tif(p !== -1) {\n\t\tc.splice(p,1);\n\t\tel.setAttribute(\&quot;class\&quot;,c.join(\&quot; \&quot;));\n\t}\n};\n\nexports.toggleClass = function(el,className,status) {\n\tif(status === undefined) {\n\t\tstatus = !exports.hasClass(el,className);\n\t}\n\tif(status) {\n\t\texports.addClass(el,className);\n\t} else {\n\t\texports.removeClass(el,className);\n\t}\n};\n\n/*\nGet the first parent element that has scrollbars or use the body as fallback.\n*/\nexports.getScrollContainer = function(el) {\n\tvar doc = el.ownerDocument;\n\twhile(el.parentNode) {\t\n\t\tel = el.parentNode;\n\t\tif(el.scrollTop) {\n\t\t\treturn el;\n\t\t}\n\t}\n\treturn doc.body;\n};\n\n/*\nGet the scroll position of the viewport\nReturns:\n\t{\n\t\tx: horizontal scroll position in pixels,\n\t\ty: vertical scroll position in pixels\n\t}\n*/\nexports.getScrollPosition = function(srcWindow) {\n\tvar scrollWindow = srcWindow || window;\n\tif(\&quot;scrollX\&quot; in scrollWindow) {\n\t\treturn {x: scrollWindow.scrollX, y: scrollWindow.scrollY};\n\t} else {\n\t\treturn {x: scrollWindow.document.documentElement.scrollLeft, y: scrollWindow.document.documentElement.scrollTop};\n\t}\n};\n\n/*\nAdjust the height of a textarea to fit its content, preserving scroll position, and return the height\n*/\nexports.resizeTextAreaToFit = function(domNode,minHeight) {\n\t// Get the scroll container and register the current scroll position\n\tvar container = $tw.utils.getScrollContainer(domNode),\n\t\tscrollTop = container.scrollTop;\n // Measure the specified minimum height\n\tdomNode.style.height = minHeight;\n\tvar measuredHeight = domNode.offsetHeight || parseInt(minHeight,10);\n\t// Set its height to auto so that it snaps to the correct height\n\tdomNode.style.height = \&quot;auto\&quot;;\n\t// Calculate the revised height\n\tvar newHeight = Math.max(domNode.scrollHeight + domNode.offsetHeight - domNode.clientHeight,measuredHeight);\n\t// Only try to change the height if it has changed\n\tif(newHeight !== domNode.offsetHeight) {\n\t\tdomNode.style.height = newHeight + \&quot;px\&quot;;\n\t\t// Make sure that the dimensions of the textarea are recalculated\n\t\t$tw.utils.forceLayout(domNode);\n\t\t// Set the container to the position we registered at the beginning\n\t\tcontainer.scrollTop = scrollTop;\n\t}\n\treturn newHeight;\n};\n\n/*\nGets the bounding rectangle of an element in absolute page coordinates\n*/\nexports.getBoundingPageRect = function(element) {\n\tvar scrollPos = $tw.utils.getScrollPosition(element.ownerDocument.defaultView),\n\t\tclientRect = element.getBoundingClientRect();\n\treturn {\n\t\tleft: clientRect.left + scrollPos.x,\n\t\twidth: clientRect.width,\n\t\tright: clientRect.right + scrollPos.x,\n\t\ttop: clientRect.top + scrollPos.y,\n\t\theight: clientRect.height,\n\t\tbottom: clientRect.bottom + scrollPos.y\n\t};\n};\n\n/*\nSaves a named password in the browser\n*/\nexports.savePassword = function(name,password) {\n\tvar done = false;\n\ttry {\n\t\twindow.localStorage.setItem(\&quot;tw5-password-\&quot; + name,password);\n\t\tdone = true;\n\t} catch(e) {\n\t}\n\tif(!done) {\n\t\t$tw.savedPasswords = $tw.savedPasswords || Object.create(null);\n\t\t$tw.savedPasswords[name] = password;\n\t}\n};\n\n/*\nRetrieve a named password from the browser\n*/\nexports.getPassword = function(name) {\n\tvar value;\n\ttry {\n\t\tvalue = window.localStorage.getItem(\&quot;tw5-password-\&quot; + name);\n\t} catch(e) {\n\t}\n\tif(value !== undefined) {\n\t\treturn value;\n\t} else {\n\t\treturn ($tw.savedPasswords || Object.create(null))[name] || \&quot;\&quot;;\n\t}\n};\n\n/*\nForce layout of a dom node and its descendents\n*/\nexports.forceLayout = function(element) {\n\tvar dummy = element.offsetWidth;\n};\n\n/*\nPulse an element for debugging purposes\n*/\nexports.pulseElement = function(element) {\n\t// Event handler to remove the class at the end\n\telement.addEventListener($tw.browser.animationEnd,function handler(event) {\n\t\telement.removeEventListener($tw.browser.animationEnd,handler,false);\n\t\t$tw.utils.removeClass(element,\&quot;pulse\&quot;);\n\t},false);\n\t// Apply the pulse class\n\t$tw.utils.removeClass(element,\&quot;pulse\&quot;);\n\t$tw.utils.forceLayout(element);\n\t$tw.utils.addClass(element,\&quot;pulse\&quot;);\n};\n\n/*\nAttach specified event handlers to a DOM node\ndomNode: where to attach the event handlers\nevents: array of event handlers to be added (see below)\nEach entry in the events array is an object with these properties:\nhandlerFunction: optional event handler function\nhandlerObject: optional event handler object\nhandlerMethod: optionally specifies object handler method name (defaults to `handleEvent`)\n*/\nexports.addEventListeners = function(domNode,events) {\n\t$tw.utils.each(events,function(eventInfo) {\n\t\tvar handler;\n\t\tif(eventInfo.handlerFunction) {\n\t\t\thandler = eventInfo.handlerFunction;\n\t\t} else if(eventInfo.handlerObject) {\n\t\t\tif(eventInfo.handlerMethod) {\n\t\t\t\thandler = function(event) {\n\t\t\t\t\teventInfo.handlerObject[eventInfo.handlerMethod].call(eventInfo.handlerObject,event);\n\t\t\t\t};\t\n\t\t\t} else {\n\t\t\t\thandler = eventInfo.handlerObject;\n\t\t\t}\n\t\t}\n\t\tdomNode.addEventListener(eventInfo.name,handler,false);\n\t});\n};\n\n/*\nGet the computed styles applied to an element as an array of strings of individual CSS properties\n*/\nexports.getComputedStyles = function(domNode) {\n\tvar textAreaStyles = window.getComputedStyle(domNode,null),\n\t\tstyleDefs = [],\n\t\tname;\n\tfor(var t=0; t&lt;textAreaStyles.length; t++) {\n\t\tname = textAreaStyles[t];\n\t\tstyleDefs.push(name + \&quot;: \&quot; + textAreaStyles.getPropertyValue(name) + \&quot;;\&quot;);\n\t}\n\treturn styleDefs;\n};\n\n/*\nApply a set of styles passed as an array of strings of individual CSS properties\n*/\nexports.setStyles = function(domNode,styleDefs) {\n\tdomNode.style.cssText = styleDefs.join(\&quot;\&quot;);\n};\n\n/*\nCopy the computed styles from a source element to a destination element\n*/\nexports.copyStyles = function(srcDomNode,dstDomNode) {\n\t$tw.utils.setStyles(dstDomNode,$tw.utils.getComputedStyles(srcDomNode));\n};\n\n/*\nCopy plain text to the clipboard on browsers that support it\n*/\nexports.copyToClipboard = function(text,options) {\n\toptions = options || {};\n\tvar textArea = document.createElement(\&quot;textarea\&quot;);\n\ttextArea.style.position = \&quot;fixed\&quot;;\n\ttextArea.style.top = 0;\n\ttextArea.style.left = 0;\n\ttextArea.style.fontSize = \&quot;12pt\&quot;;\n\ttextArea.style.width = \&quot;2em\&quot;;\n\ttextArea.style.height = \&quot;2em\&quot;;\n\ttextArea.style.padding = 0;\n\ttextArea.style.border = \&quot;none\&quot;;\n\ttextArea.style.outline = \&quot;none\&quot;;\n\ttextArea.style.boxShadow = \&quot;none\&quot;;\n\ttextArea.style.background = \&quot;transparent\&quot;;\n\ttextArea.value = text;\n\tdocument.body.appendChild(textArea);\n\ttextArea.select();\n\ttextArea.setSelectionRange(0,text.length);\n\tvar succeeded = false;\n\ttry {\n\t\tsucceeded = document.execCommand(\&quot;copy\&quot;);\n\t} catch (err) {\n\t}\n\tif(!options.doNotNotify) {\n\t\t$tw.notifier.display(succeeded ? \&quot;$:/language/Notifications/CopiedToClipboard/Succeeded\&quot; : \&quot;$:/language/Notifications/CopiedToClipboard/Failed\&quot;);\n\t}\n\tdocument.body.removeChild(textArea);\n};\n\nexports.getLocationPath = function() {\n\treturn window.location.toString().split(\&quot;#\&quot;)[0];\n};\n\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/dom/dragndrop.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom/dragndrop.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/dom/dragndrop.js\ntype: application/javascript\nmodule-type: utils\n\nBrowser data transfer utilities, used with the clipboard and drag and drop\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nOptions:\n\ndomNode: dom node to make draggable\ndragImageType: \&quot;pill\&quot; or \&quot;dom\&quot;\ndragTiddlerFn: optional function to retrieve the title of tiddler to drag\ndragFilterFn: optional function to retreive the filter defining a list of tiddlers to drag\nwidget: widget to use as the contect for the filter\n*/\nexports.makeDraggable = function(options) {\n\tvar dragImageType = options.dragImageType || \&quot;dom\&quot;,\n\t\tdragImage,\n\t\tdomNode = options.domNode;\n\t// Make the dom node draggable (not necessary for anchor tags)\n\tif((domNode.tagName || \&quot;\&quot;).toLowerCase() !== \&quot;a\&quot;) {\n\t\tdomNode.setAttribute(\&quot;draggable\&quot;,\&quot;true\&quot;);\t\t\n\t}\n\t// Add event handlers\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \&quot;dragstart\&quot;, handlerFunction: function(event) {\n\t\t\tif(event.dataTransfer === undefined) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// Collect the tiddlers being dragged\n\t\t\tvar dragTiddler = options.dragTiddlerFn &amp;&amp; options.dragTiddlerFn(),\n\t\t\t\tdragFilter = options.dragFilterFn &amp;&amp; options.dragFilterFn(),\n\t\t\t\ttitles = dragTiddler ? [dragTiddler] : [],\n\t\t\t \tstartActions = options.startActions;\n\t\t\tif(dragFilter) {\n\t\t\t\ttitles.push.apply(titles,options.widget.wiki.filterTiddlers(dragFilter,options.widget));\n\t\t\t}\n\t\t\tvar titleString = $tw.utils.stringifyList(titles);\n\t\t\t// Check that we've something to drag\n\t\t\tif(titles.length &gt; 0 &amp;&amp; event.target === domNode) {\n\t\t\t\t// Mark the drag in progress\n\t\t\t\t$tw.dragInProgress = domNode;\n\t\t\t\t// Set the dragging class on the element being dragged\n\t\t\t\t$tw.utils.addClass(event.target,\&quot;tc-dragging\&quot;);\n\t\t\t\t// Invoke drag-start actions if given\n\t\t\t\tif(startActions !== undefined) {\n\t\t\t\t\toptions.widget.invokeActionString(startActions,options.widget,event,{actionTiddler: titleString});\n\t\t\t\t}\n\t\t\t\t// Create the drag image elements\n\t\t\t\tdragImage = options.widget.document.createElement(\&quot;div\&quot;);\n\t\t\t\tdragImage.className = \&quot;tc-tiddler-dragger\&quot;;\n\t\t\t\tvar inner = options.widget.document.createElement(\&quot;div\&quot;);\n\t\t\t\tinner.className = \&quot;tc-tiddler-dragger-inner\&quot;;\n\t\t\t\tinner.appendChild(options.widget.document.createTextNode(\n\t\t\t\t\ttitles.length === 1 ? \n\t\t\t\t\t\ttitles[0] :\n\t\t\t\t\t\ttitles.length + \&quot; tiddlers\&quot;\n\t\t\t\t));\n\t\t\t\tdragImage.appendChild(inner);\n\t\t\t\toptions.widget.document.body.appendChild(dragImage);\n\t\t\t\t// Set the data transfer properties\n\t\t\t\tvar dataTransfer = event.dataTransfer;\n\t\t\t\t// Set up the image\n\t\t\t\tdataTransfer.effectAllowed = \&quot;all\&quot;;\n\t\t\t\tif(dataTransfer.setDragImage) {\n\t\t\t\t\tif(dragImageType === \&quot;pill\&quot;) {\n\t\t\t\t\t\tdataTransfer.setDragImage(dragImage.firstChild,-16,-16);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar r = domNode.getBoundingClientRect();\n\t\t\t\t\t\tdataTransfer.setDragImage(domNode,event.clientX-r.left,event.clientY-r.top);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Set up the data transfer\n\t\t\t\tif(dataTransfer.clearData) {\n\t\t\t\t\tdataTransfer.clearData();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tvar jsonData = [];\n\t\t\t\tif(titles.length &gt; 1) {\n\t\t\t\t\ttitles.forEach(function(title) {\n\t\t\t\t\t\tjsonData.push(options.widget.wiki.getTiddlerAsJson(title));\n\t\t\t\t\t});\n\t\t\t\t\tjsonData = \&quot;[\&quot; + jsonData.join(\&quot;,\&quot;) + \&quot;]\&quot;;\n\t\t\t\t} else {\n\t\t\t\t\tjsonData = options.widget.wiki.getTiddlerAsJson(titles[0]);\n\t\t\t\t}\n\t\t\t\t// IE doesn't like these content types\n\t\t\t\tif(!$tw.browser.isIE) {\n\t\t\t\t\tdataTransfer.setData(\&quot;text/vnd.tiddler\&quot;,jsonData);\n\t\t\t\t\tdataTransfer.setData(\&quot;text/plain\&quot;,titleString);\n\t\t\t\t\tdataTransfer.setData(\&quot;text/x-moz-url\&quot;,\&quot;data:text/vnd.tiddler,\&quot; + encodeURIComponent(jsonData));\n\t\t\t\t}\n\t\t\t\tdataTransfer.setData(\&quot;URL\&quot;,\&quot;data:text/vnd.tiddler,\&quot; + encodeURIComponent(jsonData));\n\t\t\t\tdataTransfer.setData(\&quot;Text\&quot;,titleString);\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\treturn false;\n\t\t}},\n\t\t{name: \&quot;dragend\&quot;, handlerFunction: function(event) {\n\t\t\tif(event.target === domNode) {\n\t\t\t\t// Collect the tiddlers being dragged\n\t\t\t\tvar dragTiddler = options.dragTiddlerFn &amp;&amp; options.dragTiddlerFn(),\n\t\t\t\t\tdragFilter = options.dragFilterFn &amp;&amp; options.dragFilterFn(),\n\t\t\t\t\ttitles = dragTiddler ? [dragTiddler] : [],\n\t\t\t \t\tendActions = options.endActions;\n\t\t\t\tif(dragFilter) {\n\t\t\t\t\ttitles.push.apply(titles,options.widget.wiki.filterTiddlers(dragFilter,options.widget));\n\t\t\t\t}\n\t\t\t\tvar titleString = $tw.utils.stringifyList(titles);\n\t\t\t\t$tw.dragInProgress = null;\n\t\t\t\t// Invoke drag-end actions if given\n\t\t\t\tif(endActions !== undefined) {\n\t\t\t\t\toptions.widget.invokeActionString(endActions,options.widget,event,{actionTiddler: titleString});\n\t\t\t\t}\n\t\t\t\t// Remove the dragging class on the element being dragged\n\t\t\t\t$tw.utils.removeClass(event.target,\&quot;tc-dragging\&quot;);\n\t\t\t\t// Delete the drag image element\n\t\t\t\tif(dragImage) {\n\t\t\t\t\tdragImage.parentNode.removeChild(dragImage);\n\t\t\t\t\tdragImage = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}}\n\t]);\n};\n\nexports.importDataTransfer = function(dataTransfer,fallbackTitle,callback) {\n\t// Try each provided data type in turn\n\tif($tw.log.IMPORT) {\n\t\tconsole.log(\&quot;Available data types:\&quot;);\n\t\tfor(var type=0; type&lt;dataTransfer.types.length; type++) {\n\t\t\tconsole.log(\&quot;type\&quot;,dataTransfer.types[type],dataTransfer.getData(dataTransfer.types[type]))\n\t\t}\n\t}\n\tfor(var t=0; t&lt;importDataTypes.length; t++) {\n\t\tif(!$tw.browser.isIE || importDataTypes[t].IECompatible) {\n\t\t\t// Get the data\n\t\t\tvar dataType = importDataTypes[t];\n\t\t\t\tvar data = dataTransfer.getData(dataType.type);\n\t\t\t// Import the tiddlers in the data\n\t\t\tif(data !== \&quot;\&quot; &amp;&amp; data !== null) {\n\t\t\t\tif($tw.log.IMPORT) {\n\t\t\t\t\tconsole.log(\&quot;Importing data type '\&quot; + dataType.type + \&quot;', data: '\&quot; + data + \&quot;'\&quot;)\n\t\t\t\t}\n\t\t\t\tvar tiddlerFields = dataType.toTiddlerFieldsArray(data,fallbackTitle);\n\t\t\t\tcallback(tiddlerFields);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n};\n\nvar importDataTypes = [\n\t{type: \&quot;text/vnd.tiddler\&quot;, IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn parseJSONTiddlers(data,fallbackTitle);\n\t}},\n\t{type: \&quot;URL\&quot;, IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\t// Check for tiddler data URI\n\t\tvar match = decodeURIComponent(data).match(/^data\\:text\\/vnd\\.tiddler,(.*)/i);\n\t\tif(match) {\n\t\t\treturn parseJSONTiddlers(match[1],fallbackTitle);\n\t\t} else {\n\t\t\treturn [{title: fallbackTitle, text: data}]; // As URL string\n\t\t}\n\t}},\n\t{type: \&quot;text/x-moz-url\&quot;, IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\t// Check for tiddler data URI\n\t\tvar match = decodeURIComponent(data).match(/^data\\:text\\/vnd\\.tiddler,(.*)/i);\n\t\tif(match) {\n\t\t\treturn parseJSONTiddlers(match[1],fallbackTitle);\n\t\t} else {\n\t\t\treturn [{title: fallbackTitle, text: data}]; // As URL string\n\t\t}\n\t}},\n\t{type: \&quot;text/html\&quot;, IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \&quot;text/plain\&quot;, IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \&quot;Text\&quot;, IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \&quot;text/uri-list\&quot;, IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}}\n];\n\nfunction parseJSONTiddlers(json,fallbackTitle) {\n\tvar data = JSON.parse(json);\n\tif(!$tw.utils.isArray(data)) {\n\t\tdata = [data];\n\t}\n\tdata.forEach(function(fields) {\n\t\tfields.title = fields.title || fallbackTitle;\n\t});\n\treturn data;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/dom/http.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom/http.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/dom/http.js\ntype: application/javascript\nmodule-type: utils\n\nBrowser HTTP support\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nA quick and dirty HTTP function; to be refactored later. Options are:\n\turl: URL to retrieve\n\theaders: hashmap of headers to send\n\ttype: GET, PUT, POST etc\n\tcallback: function invoked with (err,data,xhr)\n\treturnProp: string name of the property to return as first argument of callback\n*/\nexports.httpRequest = function(options) {\n\tvar type = options.type || \&quot;GET\&quot;,\n\t\turl = options.url,\n\t\theaders = options.headers || {accept: \&quot;application/json\&quot;},\n\t\thasHeader = function(targetHeader) {\n\t\t\ttargetHeader = targetHeader.toLowerCase();\n\t\t\tvar result = false;\n\t\t\t$tw.utils.each(headers,function(header,headerTitle,object) {\n\t\t\t\tif(headerTitle.toLowerCase() === targetHeader) {\n\t\t\t\t\tresult = true;\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn result;\n\t\t},\n\t\treturnProp = options.returnProp || \&quot;responseText\&quot;,\n\t\trequest = new XMLHttpRequest(),\n\t\tdata = \&quot;\&quot;,\n\t\tf,results;\n\t// Massage the data hashmap into a string\n\tif(options.data) {\n\t\tif(typeof options.data === \&quot;string\&quot;) { // Already a string\n\t\t\tdata = options.data;\n\t\t} else { // A hashmap of strings\n\t\t\tresults = [];\n\t\t\t$tw.utils.each(options.data,function(dataItem,dataItemTitle) {\n\t\t\t\tresults.push(dataItemTitle + \&quot;=\&quot; + encodeURIComponent(dataItem));\n\t\t\t});\n\t\t\tif(type === \&quot;GET\&quot; || type === \&quot;HEAD\&quot;) {\n\t\t\t\turl += \&quot;?\&quot; + results.join(\&quot;&amp;\&quot;);\n\t\t\t} else {\n\t\t\t\tdata = results.join(\&quot;&amp;\&quot;);\n\t\t\t}\n\t\t}\n\t}\n\t// Set up the state change handler\n\trequest.onreadystatechange = function() {\n\t\tif(this.readyState === 4) {\n\t\t\tif(this.status === 200 || this.status === 201 || this.status === 204) {\n\t\t\t\t// Success!\n\t\t\t\toptions.callback(null,this[returnProp],this);\n\t\t\t\treturn;\n\t\t\t}\n\t\t// Something went wrong\n\t\toptions.callback($tw.language.getString(\&quot;Error/XMLHttpRequest\&quot;) + \&quot;: \&quot; + this.status,null,this);\n\t\t}\n\t};\n\t// Make the request\n\trequest.open(type,url,true);\n\tif(headers) {\n\t\t$tw.utils.each(headers,function(header,headerTitle,object) {\n\t\t\trequest.setRequestHeader(headerTitle,header);\n\t\t});\n\t}\n\tif(data &amp;&amp; !hasHeader(\&quot;Content-Type\&quot;)) {\n\t\trequest.setRequestHeader(\&quot;Content-Type\&quot;,\&quot;application/x-www-form-urlencoded; charset=UTF-8\&quot;);\n\t}\n\tif(!hasHeader(\&quot;X-Requested-With\&quot;)) {\n\t\trequest.setRequestHeader(\&quot;X-Requested-With\&quot;,\&quot;TiddlyWiki\&quot;);\n\t}\n\ttry {\n\t\trequest.send(data);\n\t} catch(e) {\n\t\toptions.callback(e,null,this);\n\t}\n\treturn request;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/dom/keyboard.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom/keyboard.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/dom/keyboard.js\ntype: application/javascript\nmodule-type: utils\n\nKeyboard utilities; now deprecated. Instead, use $tw.keyboardManager\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n[\&quot;parseKeyDescriptor\&quot;,\&quot;checkKeyDescriptor\&quot;].forEach(function(method) {\n\texports[method] = function() {\n\t\tif($tw.keyboardManager) {\n\t\t\treturn $tw.keyboardManager[method].apply($tw.keyboardManager,Array.prototype.slice.call(arguments,0));\n\t\t} else {\n\t\t\treturn null\n\t\t}\n\t};\n});\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/dom/modal.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom/modal.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/dom/modal.js\ntype: application/javascript\nmodule-type: utils\n\nModal message mechanism\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;);\nvar navigator = require(\&quot;$:/core/modules/widgets/navigator.js\&quot;);\n\nvar Modal = function(wiki) {\n\tthis.wiki = wiki;\n\tthis.modalCount = 0;\n};\n\n/*\nDisplay a modal dialogue\n\ttitle: Title of tiddler to display\n\toptions: see below\nOptions include:\n\tdownloadLink: Text of a big download link to include\n*/\nModal.prototype.display = function(title,options) {\n\toptions = options || {};\n\tthis.srcDocument = options.variables &amp;&amp; (options.variables.rootwindow === \&quot;true\&quot; ||\n\t\t\t\toptions.variables.rootwindow === \&quot;yes\&quot;) ? document :\n\t\t\t\t(options.event.event &amp;&amp; options.event.event.target ? options.event.event.target.ownerDocument : document);\n\tthis.srcWindow = this.srcDocument.defaultView;\n\tvar self = this,\n\t\trefreshHandler,\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t\ttiddler = this.wiki.getTiddler(title);\n\t// Don't do anything if the tiddler doesn't exist\n\tif(!tiddler) {\n\t\treturn;\n\t}\n\t// Create the variables\n\tvar variables = $tw.utils.extend({\n\t\t\tcurrentTiddler: title,\n\t\t\t\&quot;tv-story-list\&quot;: (options.event &amp;&amp; options.event.widget ? options.event.widget.getVariable(\&quot;tv-story-list\&quot;) : \&quot;\&quot;),\n\t\t\t\&quot;tv-history-list\&quot;: (options.event &amp;&amp; options.event.widget ? options.event.widget.getVariable(\&quot;tv-history-list\&quot;) : \&quot;\&quot;)\n\t\t},options.variables);\n\n\t// Create the wrapper divs\n\tvar wrapper = this.srcDocument.createElement(\&quot;div\&quot;),\n\t\tmodalBackdrop = this.srcDocument.createElement(\&quot;div\&quot;),\n\t\tmodalWrapper = this.srcDocument.createElement(\&quot;div\&quot;),\n\t\tmodalHeader = this.srcDocument.createElement(\&quot;div\&quot;),\n\t\theaderTitle = this.srcDocument.createElement(\&quot;h3\&quot;),\n\t\tmodalBody = this.srcDocument.createElement(\&quot;div\&quot;),\n\t\tmodalLink = this.srcDocument.createElement(\&quot;a\&quot;),\n\t\tmodalFooter = this.srcDocument.createElement(\&quot;div\&quot;),\n\t\tmodalFooterHelp = this.srcDocument.createElement(\&quot;span\&quot;),\n\t\tmodalFooterButtons = this.srcDocument.createElement(\&quot;span\&quot;);\n\t// Up the modal count and adjust the body class\n\tthis.modalCount++;\n\tthis.adjustPageClass();\n\t// Add classes\n\t$tw.utils.addClass(wrapper,\&quot;tc-modal-wrapper\&quot;);\n\tif(tiddler.fields &amp;&amp; tiddler.fields.class) {\n\t\t$tw.utils.addClass(wrapper,tiddler.fields.class);\n\t}\n\t$tw.utils.addClass(modalBackdrop,\&quot;tc-modal-backdrop\&quot;);\n\t$tw.utils.addClass(modalWrapper,\&quot;tc-modal\&quot;);\n\t$tw.utils.addClass(modalHeader,\&quot;tc-modal-header\&quot;);\n\t$tw.utils.addClass(modalBody,\&quot;tc-modal-body\&quot;);\n\t$tw.utils.addClass(modalFooter,\&quot;tc-modal-footer\&quot;);\n\t// Join them together\n\twrapper.appendChild(modalBackdrop);\n\twrapper.appendChild(modalWrapper);\n\tmodalHeader.appendChild(headerTitle);\n\tmodalWrapper.appendChild(modalHeader);\n\tmodalWrapper.appendChild(modalBody);\n\tmodalFooter.appendChild(modalFooterHelp);\n\tmodalFooter.appendChild(modalFooterButtons);\n\tmodalWrapper.appendChild(modalFooter);\n\tvar navigatorTree = {\n\t\t\&quot;type\&quot;: \&quot;navigator\&quot;,\n\t\t\&quot;attributes\&quot;: {\n\t\t\t\&quot;story\&quot;: {\n\t\t\t\t\&quot;name\&quot;: \&quot;story\&quot;,\n\t\t\t\t\&quot;type\&quot;: \&quot;string\&quot;,\n\t\t\t\t\&quot;value\&quot;: variables[\&quot;tv-story-list\&quot;]\n\t\t\t},\n\t\t\t\&quot;history\&quot;: {\n\t\t\t\t\&quot;name\&quot;: \&quot;history\&quot;,\n\t\t\t\t\&quot;type\&quot;: \&quot;string\&quot;,\n\t\t\t\t\&quot;value\&quot;: variables[\&quot;tv-history-list\&quot;]\n\t\t\t}\n\t\t},\n\t\t\&quot;tag\&quot;: \&quot;$navigator\&quot;,\n\t\t\&quot;isBlock\&quot;: true,\n\t\t\&quot;children\&quot;: []\n\t};\n\tvar navigatorWidgetNode = new navigator.navigator(navigatorTree, {\n\t\twiki: this.wiki,\n\t\tdocument : this.srcDocument,\n\t\tparentWidget: $tw.rootWidget\n\t});\n\tnavigatorWidgetNode.render(modalBody,null);\n\t\n\t// Render the title of the message\n\tvar headerWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tfield: \&quot;subtitle\&quot;,\n\t\tmode: \&quot;inline\&quot;,\n\t\tchildren: [{\n\t\t\ttype: \&quot;text\&quot;,\n\t\t\tattributes: {\n\t\t\t\ttext: {\n\t\t\t\t\ttype: \&quot;string\&quot;,\n\t\t\t\t\tvalue: title\n\t\t}}}],\n\t\tparentWidget: navigatorWidgetNode,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\theaderWidgetNode.render(headerTitle,null);\n\t// Render the body of the message\n\tvar bodyWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tparentWidget: navigatorWidgetNode,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\n\tbodyWidgetNode.render(modalBody,null);\n\t// Setup the link if present\n\tif(options.downloadLink) {\n\t\tmodalLink.href = options.downloadLink;\n\t\tmodalLink.appendChild(this.srcDocument.createTextNode(\&quot;Right-click to save changes\&quot;));\n\t\tmodalBody.appendChild(modalLink);\n\t}\n\t// Render the footer of the message\n\tif(tiddler.fields &amp;&amp; tiddler.fields.help) {\n\t\tvar link = this.srcDocument.createElement(\&quot;a\&quot;);\n\t\tlink.setAttribute(\&quot;href\&quot;,tiddler.fields.help);\n\t\tlink.setAttribute(\&quot;target\&quot;,\&quot;_blank\&quot;);\n\t\tlink.setAttribute(\&quot;rel\&quot;,\&quot;noopener noreferrer\&quot;);\n\t\tlink.appendChild(this.srcDocument.createTextNode(\&quot;Help\&quot;));\n\t\tmodalFooterHelp.appendChild(link);\n\t\tmodalFooterHelp.style.float = \&quot;left\&quot;;\n\t}\n\tvar footerWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tfield: \&quot;footer\&quot;,\n\t\tmode: \&quot;inline\&quot;,\n\t\tchildren: [{\n\t\t\ttype: \&quot;button\&quot;,\n\t\t\tattributes: {\n\t\t\t\tmessage: {\n\t\t\t\t\ttype: \&quot;string\&quot;,\n\t\t\t\t\tvalue: \&quot;tm-close-tiddler\&quot;\n\t\t\t\t}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \&quot;text\&quot;,\n\t\t\t\tattributes: {\n\t\t\t\t\ttext: {\n\t\t\t\t\t\ttype: \&quot;string\&quot;,\n\t\t\t\t\t\tvalue: $tw.language.getString(\&quot;Buttons/Close/Caption\&quot;)\n\t\t\t}}}\n\t\t]}],\n\t\tparentWidget: navigatorWidgetNode,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\tfooterWidgetNode.render(modalFooterButtons,null);\n\t// Set up the refresh handler\n\trefreshHandler = function(changes) {\n\t\theaderWidgetNode.refresh(changes,modalHeader,null);\n\t\tbodyWidgetNode.refresh(changes,modalBody,null);\n\t\tfooterWidgetNode.refresh(changes,modalFooterButtons,null);\n\t};\n\tthis.wiki.addEventListener(\&quot;change\&quot;,refreshHandler);\n\t// Add the close event handler\n\tvar closeHandler = function(event) {\n\t\t// Remove our refresh handler\n\t\tself.wiki.removeEventListener(\&quot;change\&quot;,refreshHandler);\n\t\t// Decrease the modal count and adjust the body class\n\t\tself.modalCount--;\n\t\tself.adjustPageClass();\n\t\t// Force layout and animate the modal message away\n\t\t$tw.utils.forceLayout(modalBackdrop);\n\t\t$tw.utils.forceLayout(modalWrapper);\n\t\t$tw.utils.setStyle(modalBackdrop,[\n\t\t\t{opacity: \&quot;0\&quot;}\n\t\t]);\n\t\t$tw.utils.setStyle(modalWrapper,[\n\t\t\t{transform: \&quot;translateY(\&quot; + self.srcWindow.innerHeight + \&quot;px)\&quot;}\n\t\t]);\n\t\t// Set up an event for the transition end\n\t\tself.srcWindow.setTimeout(function() {\n\t\t\tif(wrapper.parentNode) {\n\t\t\t\t// Remove the modal message from the DOM\n\t\t\t\tself.srcDocument.body.removeChild(wrapper);\n\t\t\t}\n\t\t},duration);\n\t\t// Don't let anyone else handle the tm-close-tiddler message\n\t\treturn false;\n\t};\n\theaderWidgetNode.addEventListener(\&quot;tm-close-tiddler\&quot;,closeHandler,false);\n\tbodyWidgetNode.addEventListener(\&quot;tm-close-tiddler\&quot;,closeHandler,false);\n\tfooterWidgetNode.addEventListener(\&quot;tm-close-tiddler\&quot;,closeHandler,false);\n\t// Set the initial styles for the message\n\t$tw.utils.setStyle(modalBackdrop,[\n\t\t{opacity: \&quot;0\&quot;}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transformOrigin: \&quot;0% 0%\&quot;},\n\t\t{transform: \&quot;translateY(\&quot; + (-this.srcWindow.innerHeight) + \&quot;px)\&quot;}\n\t]);\n\t// Put the message into the document\n\tthis.srcDocument.body.appendChild(wrapper);\n\t// Set up animation for the styles\n\t$tw.utils.setStyle(modalBackdrop,[\n\t\t{transition: \&quot;opacity \&quot; + duration + \&quot;ms ease-out\&quot;}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\&quot;transform\&quot;) + \&quot; \&quot; + duration + \&quot;ms ease-in-out\&quot;}\n\t]);\n\t// Force layout\n\t$tw.utils.forceLayout(modalBackdrop);\n\t$tw.utils.forceLayout(modalWrapper);\n\t// Set final animated styles\n\t$tw.utils.setStyle(modalBackdrop,[\n\t\t{opacity: \&quot;0.7\&quot;}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transform: \&quot;translateY(0px)\&quot;}\n\t]);\n};\n\nModal.prototype.adjustPageClass = function() {\n\tvar windowContainer = $tw.pageContainer ? ($tw.pageContainer === this.srcDocument.body.firstChild ? $tw.pageContainer : this.srcDocument.body.firstChild) : null;\n\tif(windowContainer) {\n\t\t$tw.utils.toggleClass(windowContainer,\&quot;tc-modal-displayed\&quot;,this.modalCount &gt; 0);\n\t}\n};\n\nexports.Modal = Modal;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/dom/notifier.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom/notifier.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/dom/notifier.js\ntype: application/javascript\nmodule-type: utils\n\nNotifier mechanism\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;);\n\nvar Notifier = function(wiki) {\n\tthis.wiki = wiki;\n};\n\n/*\nDisplay a notification\n\ttitle: Title of tiddler containing the notification text\n\toptions: see below\nOptions include:\n*/\nNotifier.prototype.display = function(title,options) {\n\toptions = options || {};\n\t// Create the wrapper divs\n\tvar self = this,\n\t\tnotification = document.createElement(\&quot;div\&quot;),\n\t\ttiddler = this.wiki.getTiddler(title),\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t\trefreshHandler;\n\t// Don't do anything if the tiddler doesn't exist\n\tif(!tiddler) {\n\t\treturn;\n\t}\n\t// Add classes\n\t$tw.utils.addClass(notification,\&quot;tc-notification\&quot;);\n\t// Create the variables\n\tvar variables = $tw.utils.extend({currentTiddler: title},options.variables);\n\t// Render the body of the notification\n\tvar widgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tparentWidget: $tw.rootWidget,\n\t\tdocument: document,\n\t\tvariables: variables,\n\t\timportPageMacros: true});\n\twidgetNode.render(notification,null);\n\trefreshHandler = function(changes) {\n\t\twidgetNode.refresh(changes,notification,null);\n\t};\n\tthis.wiki.addEventListener(\&quot;change\&quot;,refreshHandler);\n\t// Set the initial styles for the notification\n\t$tw.utils.setStyle(notification,[\n\t\t{opacity: \&quot;0\&quot;},\n\t\t{transformOrigin: \&quot;0% 0%\&quot;},\n\t\t{transform: \&quot;translateY(\&quot; + (-window.innerHeight) + \&quot;px)\&quot;},\n\t\t{transition: \&quot;opacity \&quot; + duration + \&quot;ms ease-out, \&quot; + $tw.utils.roundTripPropertyName(\&quot;transform\&quot;) + \&quot; \&quot; + duration + \&quot;ms ease-in-out\&quot;}\n\t]);\n\t// Add the notification to the DOM\n\tdocument.body.appendChild(notification);\n\t// Force layout\n\t$tw.utils.forceLayout(notification);\n\t// Set final animated styles\n\t$tw.utils.setStyle(notification,[\n\t\t{opacity: \&quot;1.0\&quot;},\n\t\t{transform: \&quot;translateY(0px)\&quot;}\n\t]);\n\t// Set a timer to remove the notification\n\twindow.setTimeout(function() {\n\t\t// Remove our change event handler\n\t\tself.wiki.removeEventListener(\&quot;change\&quot;,refreshHandler);\n\t\t// Force layout and animate the notification away\n\t\t$tw.utils.forceLayout(notification);\n\t\t$tw.utils.setStyle(notification,[\n\t\t\t{opacity: \&quot;0.0\&quot;},\n\t\t\t{transform: \&quot;translateX(\&quot; + (notification.offsetWidth) + \&quot;px)\&quot;}\n\t\t]);\n\t\t// Remove the modal message from the DOM once the transition ends\n\t\tsetTimeout(function() {\n\t\t\tif(notification.parentNode) {\n\t\t\t\tdocument.body.removeChild(notification);\n\t\t\t}\n\t\t},duration);\n\t},$tw.config.preferences.notificationDuration);\n};\n\nexports.Notifier = Notifier;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/dom/popup.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom/popup.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/dom/popup.js\ntype: application/javascript\nmodule-type: utils\n\nModule that creates a $tw.utils.Popup object prototype that manages popups in the browser\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nCreates a Popup object with these options:\n\trootElement: the DOM element to which the popup zapper should be attached\n*/\nvar Popup = function(options) {\n\toptions = options || {};\n\tthis.rootElement = options.rootElement || document.documentElement;\n\tthis.popups = []; // Array of {title:,wiki:,domNode:} objects\n};\n\n/*\nTrigger a popup open or closed. Parameters are in a hashmap:\n\ttitle: title of the tiddler where the popup details are stored\n\tdomNode: dom node to which the popup will be positioned (one of domNode or domNodeRect is required)\n\tdomNodeRect: rectangle to which the popup will be positioned\n\twiki: wiki\n\tforce: if specified, forces the popup state to true or false (instead of toggling it)\n\tfloating: if true, skips registering the popup, meaning that it will need manually clearing\n*/\nPopup.prototype.triggerPopup = function(options) {\n\t// Check if this popup is already active\n\tvar index = this.findPopup(options.title);\n\t// Compute the new state\n\tvar state = index === -1;\n\tif(options.force !== undefined) {\n\t\tstate = options.force;\n\t}\n\t// Show or cancel the popup according to the new state\n\tif(state) {\n\t\tthis.show(options);\n\t} else {\n\t\tthis.cancel(index);\n\t}\n};\n\nPopup.prototype.findPopup = function(title) {\n\tvar index = -1;\n\tfor(var t=0; t&lt;this.popups.length; t++) {\n\t\tif(this.popups[t].title === title) {\n\t\t\tindex = t;\n\t\t}\n\t}\n\treturn index;\n};\n\nPopup.prototype.handleEvent = function(event) {\n\tif(event.type === \&quot;click\&quot;) {\n\t\t// Find out what was clicked on\n\t\tvar info = this.popupInfo(event.target),\n\t\t\tcancelLevel = info.popupLevel - 1;\n\t\t// Don't remove the level that was clicked on if we clicked on a handle\n\t\tif(info.isHandle) {\n\t\t\tcancelLevel++;\n\t\t}\n\t\t// Cancel\n\t\tthis.cancel(cancelLevel);\n\t}\n};\n\n/*\nFind the popup level containing a DOM node. Returns:\npopupLevel: count of the number of nested popups containing the specified element\nisHandle: true if the specified element is within a popup handle\n*/\nPopup.prototype.popupInfo = function(domNode) {\n\tvar isHandle = false,\n\t\tpopupCount = 0,\n\t\tnode = domNode;\n\t// First check ancestors to see if we're within a popup handle\n\twhile(node) {\n\t\tif($tw.utils.hasClass(node,\&quot;tc-popup-handle\&quot;)) {\n\t\t\tisHandle = true;\n\t\t\tpopupCount++;\n\t\t}\n\t\tif($tw.utils.hasClass(node,\&quot;tc-popup-keep\&quot;)) {\n\t\t\tisHandle = true;\n\t\t}\n\t\tnode = node.parentNode;\n\t}\n\t// Then count the number of ancestor popups\n\tnode = domNode;\n\twhile(node) {\n\t\tif($tw.utils.hasClass(node,\&quot;tc-popup\&quot;)) {\n\t\t\tpopupCount++;\n\t\t}\n\t\tnode = node.parentNode;\n\t}\n\tvar info = {\n\t\tpopupLevel: popupCount,\n\t\tisHandle: isHandle\n\t};\n\treturn info;\n};\n\n/*\nDisplay a popup by adding it to the stack\n*/\nPopup.prototype.show = function(options) {\n\t// Find out what was clicked on\n\tvar info = this.popupInfo(options.domNode);\n\t// Cancel any higher level popups\n\tthis.cancel(info.popupLevel);\n\n\t// Store the popup details if not already there\n\tif(!options.floating &amp;&amp; this.findPopup(options.title) === -1) {\n\t\tthis.popups.push({\n\t\t\ttitle: options.title,\n\t\t\twiki: options.wiki,\n\t\t\tdomNode: options.domNode,\n\t\t\tnoStateReference: options.noStateReference\n\t\t});\n\t}\n\t// Set the state tiddler\n\tvar rect;\n\tif(options.domNodeRect) {\n\t\trect = options.domNodeRect;\n\t} else {\n\t\trect = {\n\t\t\tleft: options.domNode.offsetLeft,\n\t\t\ttop: options.domNode.offsetTop,\n\t\t\twidth: options.domNode.offsetWidth,\n\t\t\theight: options.domNode.offsetHeight\n\t\t};\n\t}\n\tvar popupRect = \&quot;(\&quot; + rect.left + \&quot;,\&quot; + rect.top + \&quot;,\&quot; + \n\t\t\t\trect.width + \&quot;,\&quot; + rect.height + \&quot;)\&quot;;\n\tif(options.noStateReference) {\n\t\toptions.wiki.setText(options.title,\&quot;text\&quot;,undefined,popupRect);\n\t} else {\n\t\toptions.wiki.setTextReference(options.title,popupRect);\n\t}\n\t// Add the click handler if we have any popups\n\tif(this.popups.length &gt; 0) {\n\t\tthis.rootElement.addEventListener(\&quot;click\&quot;,this,true);\t\t\n\t}\n};\n\n/*\nCancel all popups at or above a specified level or DOM node\nlevel: popup level to cancel (0 cancels all popups)\n*/\nPopup.prototype.cancel = function(level) {\n\tvar numPopups = this.popups.length;\n\tlevel = Math.max(0,Math.min(level,numPopups));\n\tfor(var t=level; t&lt;numPopups; t++) {\n\t\tvar popup = this.popups.pop();\n\t\tif(popup.title) {\n\t\t\tif(popup.noStateReference) {\n\t\t\t\tpopup.wiki.deleteTiddler(popup.title);\n\t\t\t} else {\n\t\t\t\tpopup.wiki.deleteTiddler($tw.utils.parseTextReference(popup.title).title);\n \t\t}\n\t\t}\n\t}\n\tif(this.popups.length === 0) {\n\t\tthis.rootElement.removeEventListener(\&quot;click\&quot;,this,false);\n\t}\n};\n\n/*\nReturns true if the specified title and text identifies an active popup\n*/\nPopup.prototype.readPopupState = function(text) {\n\tvar popupLocationRegExp = /^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/;\n\treturn popupLocationRegExp.test(text);\n};\n\nexports.Popup = Popup;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/dom/scroller.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/dom/scroller.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/dom/scroller.js\ntype: application/javascript\nmodule-type: utils\n\nModule that creates a $tw.utils.Scroller object prototype that manages scrolling in the browser\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nEvent handler for when the `tm-scroll` event hits the document body\n*/\nvar PageScroller = function() {\n\tthis.idRequestFrame = null;\n\tthis.requestAnimationFrame = window.requestAnimationFrame ||\n\t\twindow.webkitRequestAnimationFrame ||\n\t\twindow.mozRequestAnimationFrame ||\n\t\tfunction(callback) {\n\t\t\treturn window.setTimeout(callback, 1000/60);\n\t\t};\n\tthis.cancelAnimationFrame = window.cancelAnimationFrame ||\n\t\twindow.webkitCancelAnimationFrame ||\n\t\twindow.webkitCancelRequestAnimationFrame ||\n\t\twindow.mozCancelAnimationFrame ||\n\t\twindow.mozCancelRequestAnimationFrame ||\n\t\tfunction(id) {\n\t\t\twindow.clearTimeout(id);\n\t\t};\n};\n\nPageScroller.prototype.isScrolling = function() {\n\treturn this.idRequestFrame !== null;\n}\n\nPageScroller.prototype.cancelScroll = function(srcWindow) {\n\tif(this.idRequestFrame) {\n\t\tthis.cancelAnimationFrame.call(srcWindow,this.idRequestFrame);\n\t\tthis.idRequestFrame = null;\n\t}\n};\n\n/*\nHandle an event\n*/\nPageScroller.prototype.handleEvent = function(event) {\n\tif(event.type === \&quot;tm-scroll\&quot;) {\n\t\tif(event.paramObject &amp;&amp; event.paramObject.selector) {\n\t\t\tthis.scrollSelectorIntoView(null,event.paramObject.selector);\n\t\t} else {\n\t\t\tthis.scrollIntoView(event.target);\t\t\t\n\t\t}\n\t\treturn false; // Event was handled\n\t}\n\treturn true;\n};\n\n/*\nHandle a scroll event hitting the page document\n*/\nPageScroller.prototype.scrollIntoView = function(element,callback) {\n\tvar self = this,\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t srcWindow = element ? element.ownerDocument.defaultView : window;\n\t// Now get ready to scroll the body\n\tthis.cancelScroll(srcWindow);\n\tthis.startTime = Date.now();\n\t// Get the height of any position:fixed toolbars\n\tvar toolbar = srcWindow.document.querySelector(\&quot;.tc-adjust-top-of-scroll\&quot;),\n\t\toffset = 0;\n\tif(toolbar) {\n\t\toffset = toolbar.offsetHeight;\n\t}\n\t// Get the client bounds of the element and adjust by the scroll position\n\tvar getBounds = function() {\n\t\t\tvar clientBounds = typeof callback === 'function' ? callback() : element.getBoundingClientRect(),\n\t\t\t\tscrollPosition = $tw.utils.getScrollPosition(srcWindow);\n\t\t\treturn {\n\t\t\t\tleft: clientBounds.left + scrollPosition.x,\n\t\t\t\ttop: clientBounds.top + scrollPosition.y - offset,\n\t\t\t\twidth: clientBounds.width,\n\t\t\t\theight: clientBounds.height\n\t\t\t};\n\t\t},\n\t\t// We'll consider the horizontal and vertical scroll directions separately via this function\n\t\t// targetPos/targetSize - position and size of the target element\n\t\t// currentPos/currentSize - position and size of the current scroll viewport\n\t\t// returns: new position of the scroll viewport\n\t\tgetEndPos = function(targetPos,targetSize,currentPos,currentSize) {\n\t\t\tvar newPos = targetPos;\n\t\t\t// If we are scrolling within 50 pixels of the top/left then snap to zero\n\t\t\tif(newPos &lt; 50) {\n\t\t\t\tnewPos = 0;\n\t\t\t}\n\t\t\treturn newPos;\n\t\t},\n\t\tdrawFrame = function drawFrame() {\n\t\t\tvar t;\n\t\t\tif(duration &lt;= 0) {\n\t\t\t\tt = 1;\n\t\t\t} else {\n\t\t\t\tt = ((Date.now()) - self.startTime) / duration;\t\n\t\t\t}\n\t\t\tif(t &gt;= 1) {\n\t\t\t\tself.cancelScroll(srcWindow);\n\t\t\t\tt = 1;\n\t\t\t}\n\t\t\tt = $tw.utils.slowInSlowOut(t);\n\t\t\tvar scrollPosition = $tw.utils.getScrollPosition(srcWindow),\n\t\t\t\tbounds = getBounds(),\n\t\t\t\tendX = getEndPos(bounds.left,bounds.width,scrollPosition.x,srcWindow.innerWidth),\n\t\t\t\tendY = getEndPos(bounds.top,bounds.height,scrollPosition.y,srcWindow.innerHeight);\n\t\t\tsrcWindow.scrollTo(scrollPosition.x + (endX - scrollPosition.x) * t,scrollPosition.y + (endY - scrollPosition.y) * t);\n\t\t\tif(t &lt; 1) {\n\t\t\t\tself.idRequestFrame = self.requestAnimationFrame.call(srcWindow,drawFrame);\n\t\t\t}\n\t\t};\n\tdrawFrame();\n};\n\nPageScroller.prototype.scrollSelectorIntoView = function(baseElement,selector,callback) {\n\tbaseElement = baseElement || document.body;\n\tvar element = baseElement.querySelector(selector);\n\tif(element) {\n\t\tthis.scrollIntoView(element,callback);\t\t\n\t}\n};\n\nexports.PageScroller = PageScroller;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/edition-info.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/edition-info.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/edition-info.js\ntype: application/javascript\nmodule-type: utils-node\n\nInformation about the available editions\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar fs = require(\&quot;fs\&quot;),\n\tpath = require(\&quot;path\&quot;);\n\nvar editionInfo;\n\nexports.getEditionInfo = function() {\n\tif(!editionInfo) {\n\t\t// Enumerate the edition paths\n\t\tvar editionPaths = $tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar);\n\t\teditionInfo = {};\n\t\tfor(var editionIndex=0; editionIndex&lt;editionPaths.length; editionIndex++) {\n\t\t\tvar editionPath = editionPaths[editionIndex];\n\t\t\t// Enumerate the folders\n\t\t\tvar entries = fs.readdirSync(editionPath);\n\t\t\tfor(var entryIndex=0; entryIndex&lt;entries.length; entryIndex++) {\n\t\t\t\tvar entry = entries[entryIndex];\n\t\t\t\t// Check if directories have a valid tiddlywiki.info\n\t\t\t\tif(!editionInfo[entry] &amp;&amp; $tw.utils.isDirectory(path.resolve(editionPath,entry))) {\n\t\t\t\t\tvar info;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinfo = JSON.parse(fs.readFileSync(path.resolve(editionPath,entry,\&quot;tiddlywiki.info\&quot;),\&quot;utf8\&quot;));\n\t\t\t\t\t} catch(ex) {\n\t\t\t\t\t}\n\t\t\t\t\tif(info) {\n\t\t\t\t\t\teditionInfo[entry] = info;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn editionInfo;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils-node&quot;
},
&quot;$:/core/modules/utils/fakedom.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/fakedom.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/fakedom.js\ntype: application/javascript\nmodule-type: global\n\nA barebones implementation of DOM interfaces needed by the rendering mechanism.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Sequence number used to enable us to track objects for testing\nvar sequenceNumber = null;\n\nvar bumpSequenceNumber = function(object) {\n\tif(sequenceNumber !== null) {\n\t\tobject.sequenceNumber = sequenceNumber++;\n\t}\n};\n\nvar TW_Node = function (){\n\tthrow TypeError(\&quot;Illegal constructor\&quot;);\n};\n\nObject.defineProperty(TW_Node.prototype, 'ELEMENT_NODE', {\n\tget: function() {\n\t\treturn 1;\n\t}\n});\n\nObject.defineProperty(TW_Node.prototype, 'TEXT_NODE', {\n\tget: function() {\n\t\treturn 3;\n\t}\n});\n\nvar TW_TextNode = function(text) {\n\tbumpSequenceNumber(this);\n\tthis.textContent = text + \&quot;\&quot;;\n};\n\nTW_TextNode.prototype = Object.create(TW_Node.prototype);\n\nObject.defineProperty(TW_TextNode.prototype, \&quot;nodeType\&quot;, {\n\tget: function() {\n\t\treturn this.TEXT_NODE;\n\t}\n});\n\nObject.defineProperty(TW_TextNode.prototype, \&quot;formattedTextContent\&quot;, {\n\tget: function() {\n\t\treturn this.textContent.replace(/(\\r?\\n)/g,\&quot;\&quot;);\n\t}\n});\n\nvar TW_Element = function(tag,namespace) {\n\tbumpSequenceNumber(this);\n\tthis.isTiddlyWikiFakeDom = true;\n\tthis.tag = tag;\n\tthis.attributes = {};\n\tthis.isRaw = false;\n\tthis.children = [];\n\tthis._style = {};\n\tthis.namespaceURI = namespace || \&quot;http://www.w3.org/1999/xhtml\&quot;;\n};\n\nTW_Element.prototype = Object.create(TW_Node.prototype);\n\nObject.defineProperty(TW_Element.prototype, \&quot;style\&quot;, {\n\tget: function() {\n\t\treturn this._style;\n\t},\n\tset: function(str) {\n\t\tvar self = this;\n\t\tstr = str || \&quot;\&quot;;\n\t\t$tw.utils.each(str.split(\&quot;;\&quot;),function(declaration) {\n\t\t\tvar parts = declaration.split(\&quot;:\&quot;),\n\t\t\t\tname = $tw.utils.trim(parts[0]),\n\t\t\t\tvalue = $tw.utils.trim(parts[1]);\n\t\t\tif(name &amp;&amp; value) {\n\t\t\t\tself._style[$tw.utils.convertStyleNameToPropertyName(name)] = value;\n\t\t\t}\n\t\t});\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \&quot;nodeType\&quot;, {\n\tget: function() {\n\t\treturn this.ELEMENT_NODE;\n\t}\n});\n\nTW_Element.prototype.getAttribute = function(name) {\n\tif(this.isRaw) {\n\t\tthrow \&quot;Cannot getAttribute on a raw TW_Element\&quot;;\n\t}\n\treturn this.attributes[name];\n};\n\nTW_Element.prototype.setAttribute = function(name,value) {\n\tif(this.isRaw) {\n\t\tthrow \&quot;Cannot setAttribute on a raw TW_Element\&quot;;\n\t}\n\tthis.attributes[name] = value + \&quot;\&quot;;\n};\n\nTW_Element.prototype.setAttributeNS = function(namespace,name,value) {\n\tthis.setAttribute(name,value);\n};\n\nTW_Element.prototype.removeAttribute = function(name) {\n\tif(this.isRaw) {\n\t\tthrow \&quot;Cannot removeAttribute on a raw TW_Element\&quot;;\n\t}\n\tif($tw.utils.hop(this.attributes,name)) {\n\t\tdelete this.attributes[name];\n\t}\n};\n\nTW_Element.prototype.appendChild = function(node) {\n\tthis.children.push(node);\n\tnode.parentNode = this;\n};\n\nTW_Element.prototype.insertBefore = function(node,nextSibling) {\n\tif(nextSibling) {\n\t\tvar p = this.children.indexOf(nextSibling);\n\t\tif(p !== -1) {\n\t\t\tthis.children.splice(p,0,node);\n\t\t\tnode.parentNode = this;\n\t\t} else {\n\t\t\tthis.appendChild(node);\n\t\t}\n\t} else {\n\t\tthis.appendChild(node);\n\t}\n};\n\nTW_Element.prototype.removeChild = function(node) {\n\tvar p = this.children.indexOf(node);\n\tif(p !== -1) {\n\t\tthis.children.splice(p,1);\n\t}\n};\n\nTW_Element.prototype.hasChildNodes = function() {\n\treturn !!this.children.length;\n};\n\nObject.defineProperty(TW_Element.prototype, \&quot;childNodes\&quot;, {\n\tget: function() {\n\t\treturn this.children;\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \&quot;firstChild\&quot;, {\n\tget: function() {\n\t\treturn this.children[0];\n\t}\n});\n\nTW_Element.prototype.addEventListener = function(type,listener,useCapture) {\n\t// Do nothing\n};\n\nObject.defineProperty(TW_Element.prototype, \&quot;tagName\&quot;, {\n\tget: function() {\n\t\treturn this.tag || \&quot;\&quot;;\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \&quot;className\&quot;, {\n\tget: function() {\n\t\treturn this.attributes[\&quot;class\&quot;] || \&quot;\&quot;;\n\t},\n\tset: function(value) {\n\t\tthis.attributes[\&quot;class\&quot;] = value + \&quot;\&quot;;\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \&quot;value\&quot;, {\n\tget: function() {\n\t\treturn this.attributes.value || \&quot;\&quot;;\n\t},\n\tset: function(value) {\n\t\tthis.attributes.value = value + \&quot;\&quot;;\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \&quot;outerHTML\&quot;, {\n\tget: function() {\n\t\tvar output = [],attr,a,v;\n\t\toutput.push(\&quot;&lt;\&quot;,this.tag);\n\t\tif(this.attributes) {\n\t\t\tattr = [];\n\t\t\tfor(a in this.attributes) {\n\t\t\t\tattr.push(a);\n\t\t\t}\n\t\t\tattr.sort();\n\t\t\tfor(a=0; a&lt;attr.length; a++) {\n\t\t\t\tv = this.attributes[attr[a]];\n\t\t\t\tif(v !== undefined) {\n\t\t\t\t\toutput.push(\&quot; \&quot;,attr[a],\&quot;=\\\&quot;\&quot;,$tw.utils.htmlEncode(v),\&quot;\\\&quot;\&quot;);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(this._style) {\n\t\t\tvar style = [];\n\t\t\tfor(var s in this._style) {\n\t\t\t\tstyle.push($tw.utils.convertPropertyNameToStyleName(s) + \&quot;:\&quot; + this._style[s] + \&quot;;\&quot;);\n\t\t\t}\n\t\t\tif(style.length &gt; 0) {\n\t\t\t\toutput.push(\&quot; style=\\\&quot;\&quot;,style.join(\&quot;\&quot;),\&quot;\\\&quot;\&quot;);\n\t\t\t}\n\t\t}\n\t\toutput.push(\&quot;&gt;\&quot;);\n\t\tif($tw.config.htmlVoidElements.indexOf(this.tag) === -1) {\n\t\t\toutput.push(this.innerHTML);\n\t\t\toutput.push(\&quot;&lt;/\&quot;,this.tag,\&quot;&gt;\&quot;);\n\t\t}\n\t\treturn output.join(\&quot;\&quot;);\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \&quot;innerHTML\&quot;, {\n\tget: function() {\n\t\tif(this.isRaw) {\n\t\t\treturn this.rawHTML;\n\t\t} else {\n\t\t\tvar b = [];\n\t\t\t$tw.utils.each(this.children,function(node) {\n\t\t\t\tif(node instanceof TW_Element) {\n\t\t\t\t\tb.push(node.outerHTML);\n\t\t\t\t} else if(node instanceof TW_TextNode) {\n\t\t\t\t\tb.push($tw.utils.htmlEncode(node.textContent));\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn b.join(\&quot;\&quot;);\n\t\t}\n\t},\n\tset: function(value) {\n\t\tthis.isRaw = true;\n\t\tthis.rawHTML = value;\n\t\tthis.rawTextContent = null;\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \&quot;textInnerHTML\&quot;, {\n\tset: function(value) {\n\t\tif(this.isRaw) {\n\t\t\tthis.rawTextContent = value;\n\t\t} else {\n\t\t\tthrow \&quot;Cannot set textInnerHTML of a non-raw TW_Element\&quot;;\n\t\t}\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \&quot;textContent\&quot;, {\n\tget: function() {\n\t\tif(this.isRaw) {\n\t\t\tif(this.rawTextContent === null) {\n\t\t\t\treturn \&quot;\&quot;;\n\t\t\t} else {\n\t\t\t\treturn this.rawTextContent;\n\t\t\t}\n\t\t} else {\n\t\t\tvar b = [];\n\t\t\t$tw.utils.each(this.children,function(node) {\n\t\t\t\tb.push(node.textContent);\n\t\t\t});\n\t\t\treturn b.join(\&quot;\&quot;);\n\t\t}\n\t},\n\tset: function(value) {\n\t\tthis.children = [new TW_TextNode(value)];\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \&quot;formattedTextContent\&quot;, {\n\tget: function() {\n\t\tif(this.isRaw) {\n\t\t\treturn \&quot;\&quot;;\n\t\t} else {\n\t\t\tvar b = [],\n\t\t\t\tisBlock = $tw.config.htmlBlockElements.indexOf(this.tag) !== -1;\n\t\t\tif(isBlock) {\n\t\t\t\tb.push(\&quot;\\n\&quot;);\n\t\t\t}\n\t\t\tif(this.tag === \&quot;li\&quot;) {\n\t\t\t\tb.push(\&quot;* \&quot;);\n\t\t\t}\n\t\t\t$tw.utils.each(this.children,function(node) {\n\t\t\t\tb.push(node.formattedTextContent);\n\t\t\t});\n\t\t\tif(isBlock) {\n\t\t\t\tb.push(\&quot;\\n\&quot;);\n\t\t\t}\n\t\t\treturn b.join(\&quot;\&quot;);\n\t\t}\n\t}\n});\n\nvar document = {\n\tsetSequenceNumber: function(value) {\n\t\tsequenceNumber = value;\n\t},\n\tcreateElementNS: function(namespace,tag) {\n\t\treturn new TW_Element(tag,namespace);\n\t},\n\tcreateElement: function(tag) {\n\t\treturn new TW_Element(tag);\n\t},\n\tcreateTextNode: function(text) {\n\t\treturn new TW_TextNode(text);\n\t},\n\tcompatMode: \&quot;CSS1Compat\&quot;, // For KaTeX to know that we're not a browser in quirks mode\n\tisTiddlyWikiFakeDom: true\n};\n\nexports.fakeDocument = document;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;global&quot;
},
&quot;$:/core/modules/utils/filesystem.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/filesystem.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/filesystem.js\ntype: application/javascript\nmodule-type: utils-node\n\nFile system utilities\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar fs = require(\&quot;fs\&quot;),\n\tpath = require(\&quot;path\&quot;);\n\n/*\nReturn the subdirectories of a path\n*/\nexports.getSubdirectories = function(dirPath) {\n\tif(!$tw.utils.isDirectory(dirPath)) {\n\t\treturn null;\n\t}\n\tvar subdirs = [];\n\t$tw.utils.each(fs.readdirSync(dirPath),function(item) {\n\t\tif($tw.utils.isDirectory(path.resolve(dirPath,item))) {\n\t\t\tsubdirs.push(item);\n\t\t}\n\t});\n\treturn subdirs;\n}\n\n/*\nRecursively (and synchronously) copy a directory and all its content\n*/\nexports.copyDirectory = function(srcPath,dstPath) {\n\t// Remove any trailing path separators\n\tsrcPath = path.resolve($tw.utils.removeTrailingSeparator(srcPath));\n\tdstPath = path.resolve($tw.utils.removeTrailingSeparator(dstPath));\n\t// Check that neither director is within the other\n\tif(srcPath.substring(0,dstPath.length) === dstPath || dstPath.substring(0,srcPath.length) === srcPath) {\n\t\treturn \&quot;Cannot copy nested directories\&quot;;\n\t}\n\t// Create the destination directory\n\tvar err = $tw.utils.createDirectory(dstPath);\n\tif(err) {\n\t\treturn err;\n\t}\n\t// Function to copy a folder full of files\n\tvar copy = function(srcPath,dstPath) {\n\t\tvar srcStats = fs.lstatSync(srcPath),\n\t\t\tdstExists = fs.existsSync(dstPath);\n\t\tif(srcStats.isFile()) {\n\t\t\t$tw.utils.copyFile(srcPath,dstPath);\n\t\t} else if(srcStats.isDirectory()) {\n\t\t\tvar items = fs.readdirSync(srcPath);\n\t\t\tfor(var t=0; t&lt;items.length; t++) {\n\t\t\t\tvar item = items[t],\n\t\t\t\t\terr = copy(srcPath + path.sep + item,dstPath + path.sep + item);\n\t\t\t\tif(err) {\n\t\t\t\t\treturn err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\tcopy(srcPath,dstPath);\n\treturn null;\n};\n\n/*\nCopy a file\n*/\nvar FILE_BUFFER_LENGTH = 64 * 1024,\n\tfileBuffer;\n\nexports.copyFile = function(srcPath,dstPath) {\n\t// Create buffer if required\n\tif(!fileBuffer) {\n\t\tfileBuffer = Buffer.alloc(FILE_BUFFER_LENGTH);\n\t}\n\t// Create any directories in the destination\n\t$tw.utils.createDirectory(path.dirname(dstPath));\n\t// Copy the file\n\tvar srcFile = fs.openSync(srcPath,\&quot;r\&quot;),\n\t\tdstFile = fs.openSync(dstPath,\&quot;w\&quot;),\n\t\tbytesRead = 1,\n\t\tpos = 0;\n\twhile (bytesRead &gt; 0) {\n\t\tbytesRead = fs.readSync(srcFile,fileBuffer,0,FILE_BUFFER_LENGTH,pos);\n\t\tfs.writeSync(dstFile,fileBuffer,0,bytesRead);\n\t\tpos += bytesRead;\n\t}\n\tfs.closeSync(srcFile);\n\tfs.closeSync(dstFile);\n\treturn null;\n};\n\n/*\nRemove trailing path separator\n*/\nexports.removeTrailingSeparator = function(dirPath) {\n\tvar len = dirPath.length;\n\tif(dirPath.charAt(len-1) === path.sep) {\n\t\tdirPath = dirPath.substr(0,len-1);\n\t}\n\treturn dirPath;\n};\n\n/*\nRecursively create a directory\n*/\nexports.createDirectory = function(dirPath) {\n\tif(dirPath.substr(dirPath.length-1,1) !== path.sep) {\n\t\tdirPath = dirPath + path.sep;\n\t}\n\tvar pos = 1;\n\tpos = dirPath.indexOf(path.sep,pos);\n\twhile(pos !== -1) {\n\t\tvar subDirPath = dirPath.substr(0,pos);\n\t\tif(!$tw.utils.isDirectory(subDirPath)) {\n\t\t\ttry {\n\t\t\t\tfs.mkdirSync(subDirPath);\n\t\t\t} catch(e) {\n\t\t\t\treturn \&quot;Error creating directory '\&quot; + subDirPath + \&quot;'\&quot;;\n\t\t\t}\n\t\t}\n\t\tpos = dirPath.indexOf(path.sep,pos + 1);\n\t}\n\treturn null;\n};\n\n/*\nRecursively create directories needed to contain a specified file\n*/\nexports.createFileDirectories = function(filePath) {\n\treturn $tw.utils.createDirectory(path.dirname(filePath));\n};\n\n/*\nRecursively delete a directory\n*/\nexports.deleteDirectory = function(dirPath) {\n\tif(fs.existsSync(dirPath)) {\n\t\tvar entries = fs.readdirSync(dirPath);\n\t\tfor(var entryIndex=0; entryIndex&lt;entries.length; entryIndex++) {\n\t\t\tvar currPath = dirPath + path.sep + entries[entryIndex];\n\t\t\tif(fs.lstatSync(currPath).isDirectory()) {\n\t\t\t\t$tw.utils.deleteDirectory(currPath);\n\t\t\t} else {\n\t\t\t\tfs.unlinkSync(currPath);\n\t\t\t}\n\t\t}\n\tfs.rmdirSync(dirPath);\n\t}\n\treturn null;\n};\n\n/*\nCheck if a path identifies a directory\n*/\nexports.isDirectory = function(dirPath) {\n\treturn fs.existsSync(dirPath) &amp;&amp; fs.statSync(dirPath).isDirectory();\n};\n\n/*\nCheck if a path identifies a directory that is empty\n*/\nexports.isDirectoryEmpty = function(dirPath) {\n\tif(!$tw.utils.isDirectory(dirPath)) {\n\t\treturn false;\n\t}\n\tvar files = fs.readdirSync(dirPath),\n\t\tempty = true;\n\t$tw.utils.each(files,function(file,index) {\n\t\tif(file.charAt(0) !== \&quot;.\&quot;) {\n\t\t\tempty = false;\n\t\t}\n\t});\n\treturn empty;\n};\n\n/*\nRecursively delete a tree of empty directories\n*/\nexports.deleteEmptyDirs = function(dirpath,callback) {\n\tvar self = this;\n\tfs.readdir(dirpath,function(err,files) {\n\t\tif(err) {\n\t\t\treturn callback(err);\n\t\t}\n\t\tif(files.length &gt; 0) {\n\t\t\treturn callback(null);\n\t\t}\n\t\tfs.rmdir(dirpath,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tself.deleteEmptyDirs(path.dirname(dirpath),callback);\n\t\t});\n\t});\n};\n\n/*\nCreate a fileInfo object for saving a tiddler:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file on disk (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\n\tisEditableFile: true if the tiddler was loaded via non-standard options &amp; marked editable\nOptions include:\n\tdirectory: absolute path of root directory to which we are saving\n\tpathFilters: optional array of filters to be used to generate the base path\n\textFilters: optional array of filters to be used to generate the base path\n\twiki: optional wiki for evaluating the pathFilters,\n\tfileInfo: an existing fileInfo to check against\n\toriginalpath: a preferred filepath if no pathFilters match\n*/\nexports.generateTiddlerFileInfo = function(tiddler,options) {\n\tvar fileInfo = {}, metaExt;\n\t// Propagate the isEditableFile flag\n\tif(options.fileInfo) {\n\t\tfileInfo.isEditableFile = options.fileInfo.isEditableFile || false;\n\t}\n\t// Check if the tiddler has any unsafe fields that can't be expressed in a .tid or .meta file: containing control characters, or leading/trailing whitespace\n\tvar hasUnsafeFields = false;\n\t$tw.utils.each(tiddler.getFieldStrings(),function(value,fieldName) {\n\t\tif(fieldName !== \&quot;text\&quot;) {\n\t\t\thasUnsafeFields = hasUnsafeFields || /[\\x00-\\x1F]/mg.test(value);\n\t\t\thasUnsafeFields = hasUnsafeFields || ($tw.utils.trim(value) !== value);\n\t\t}\n\t});\n\t// Check for field values \n\tif(hasUnsafeFields) {\n\t\t// Save as a JSON file\n\t\tfileInfo.type = \&quot;application/json\&quot;;\n\t\tfileInfo.hasMetaFile = false;\n\t} else {\n\t\t// Save as a .tid or a text/binary file plus a .meta file\n\t\tvar tiddlerType = tiddler.fields.type || \&quot;text/vnd.tiddlywiki\&quot;;\n\t\tif(tiddlerType === \&quot;text/vnd.tiddlywiki\&quot;) {\n\t\t\t// Save as a .tid file\n\t\t\tfileInfo.type = \&quot;application/x-tiddler\&quot;;\n\t\t\tfileInfo.hasMetaFile = false;\n\t\t} else {\n\t\t\t// Save as a text/binary file and a .meta file\n\t\t\tfileInfo.type = tiddlerType;\n\t\t\tfileInfo.hasMetaFile = true;\n\t\t}\n\t\tif(options.extFilters) {\n\t\t\t// Check for extension override\n\t\t\tmetaExt = $tw.utils.generateTiddlerExtension(tiddler.fields.title,{\n\t\t\t\textFilters: options.extFilters,\n\t\t\t\twiki: options.wiki\n\t\t\t});\n\t\t\tif(metaExt){\n\t\t\t\tif(metaExt === \&quot;.tid\&quot;) {\n\t\t\t\t\t// Overriding to the .tid extension needs special handling\n\t\t\t\t\tfileInfo.type = \&quot;application/x-tiddler\&quot;;\n\t\t\t\t\tfileInfo.hasMetaFile = false;\n\t\t\t\t} else if (metaExt === \&quot;.json\&quot;) {\n\t\t\t\t\t// Overriding to the .json extension needs special handling\n\t\t\t\t\tfileInfo.type = \&quot;application/json\&quot;;\n\t\t\t\t\tfileInfo.hasMetaFile = false;\n\t\t\t\t} else {\n\t\t\t\t\t//If the new type matches a known extention, use that MIME type's encoding\n\t\t\t\t\tvar extInfo = $tw.utils.getFileExtensionInfo(metaExt);\n\t\t\t\t\tfileInfo.type = extInfo ? extInfo.type : null;\n\t\t\t\t\tfileInfo.encoding = $tw.utils.getTypeEncoding(metaExt);\n\t\t\t\t\tfileInfo.hasMetaFile = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Take the file extension from the tiddler content type or metaExt\n\tvar contentTypeInfo = $tw.config.contentTypeInfo[fileInfo.type] || {extension: \&quot;\&quot;};\n\t// Generate the filepath\n\tfileInfo.filepath = $tw.utils.generateTiddlerFilepath(tiddler.fields.title,{\n\t\textension: metaExt || contentTypeInfo.extension,\n\t\tdirectory: options.directory,\n\t\tpathFilters: options.pathFilters,\n\t\twiki: options.wiki,\n\t\tfileInfo: options.fileInfo,\n\t\toriginalpath: options.originalpath\n\t});\n\treturn fileInfo;\n};\n\n/*\nGenerate the file extension for saving a tiddler\nOptions include:\n\textFilters: optional array of filters to be used to generate the extention\n\twiki: optional wiki for evaluating the extFilters\n*/\nexports.generateTiddlerExtension = function(title,options) {\n\tvar self = this,\n\t\textension;\n\t// Check if any of the extFilters applies\n\tif(options.extFilters &amp;&amp; options.wiki) { \n\t\t$tw.utils.each(options.extFilters,function(filter) {\n\t\t\tif(!extension) {\n\t\t\t\tvar source = options.wiki.makeTiddlerIterator([title]),\n\t\t\t\t\tresult = options.wiki.filterTiddlers(filter,null,source);\n\t\t\t\tif(result.length &gt; 0) {\n\t\t\t\t\textension = result[0];\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn extension;\n};\n\n/*\nGenerate the filepath for saving a tiddler\nOptions include:\n\textension: file extension to be added the finished filepath\n\tdirectory: absolute path of root directory to which we are saving\n\tpathFilters: optional array of filters to be used to generate the base path\n\twiki: optional wiki for evaluating the pathFilters\n\tfileInfo: an existing fileInfo object to check against\n*/\nexports.generateTiddlerFilepath = function(title,options) {\n\tvar self = this,\n\t\tdirectory = options.directory || \&quot;\&quot;,\n\t\textension = options.extension || \&quot;\&quot;,\n\t\toriginalpath = options.originalpath || \&quot;\&quot;,\n\t\tfilepath;\t\n\t// Check if any of the pathFilters applies\n\tif(options.pathFilters &amp;&amp; options.wiki) {\n\t\t$tw.utils.each(options.pathFilters,function(filter) {\n\t\t\tif(!filepath) {\n\t\t\t\tvar source = options.wiki.makeTiddlerIterator([title]),\n\t\t\t\t\tresult = options.wiki.filterTiddlers(filter,null,source);\n\t\t\t\tif(result.length &gt; 0) {\n\t\t\t\t\tfilepath = result[0];\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\tif(!filepath &amp;&amp; originalpath !== \&quot;\&quot;) {\n\t\t//Use the originalpath without the extension\n\t\tvar ext = path.extname(originalpath);\n\t\tfilepath = originalpath.substring(0,originalpath.length - ext.length);\n\t} else if(!filepath) {\n\t\tfilepath = title;\n\t\t// If the filepath already ends in the extension then remove it\n\t\tif(filepath.substring(filepath.length - extension.length) === extension) {\n\t\t\tfilepath = filepath.substring(0,filepath.length - extension.length);\n\t\t}\n\t\t// Remove any forward or backward slashes so we don't create directories\n\t\tfilepath = filepath.replace(/\\/|\\\\/g,\&quot;_\&quot;);\n\t}\n\t//If the path does not start with \&quot;.\&quot; or \&quot;..\&quot; and a path seperator, then\n\tif(!/^\\.{1,2}[/\\\\]/g.test(filepath)) {\n\t\t// Don't let the filename start with any dots because such files are invisible on *nix\n\t\tfilepath = filepath.replace(/^\\.+/g,\&quot;_\&quot;);\n\t}\n\t// Remove any characters that can't be used in cross-platform filenames\n\tfilepath = $tw.utils.transliterate(filepath.replace(/&lt;|&gt;|~|\\:|\\\&quot;|\\||\\?|\\*|\\^/g,\&quot;_\&quot;));\n\t// Truncate the filename if it is too long\n\tif(filepath.length &gt; 200) {\n\t\tfilepath = filepath.substr(0,200);\n\t}\n\t// If the resulting filename is blank (eg because the title is just punctuation characters)\n\tif(!filepath) {\n\t\t// ...then just use the character codes of the title\n\t\tfilepath = \&quot;\&quot;;\t\n\t\t$tw.utils.each(title.split(\&quot;\&quot;),function(char) {\n\t\t\tif(filepath) {\n\t\t\t\tfilepath += \&quot;-\&quot;;\n\t\t\t}\n\t\t\tfilepath += char.charCodeAt(0).toString();\n\t\t});\n\t}\n\t// Add a uniquifier if the file already exists\n\tvar fullPath, oldPath = (options.fileInfo) ? options.fileInfo.filepath : undefined,\n\t\tcount = 0;\n\tdo {\n\t\tfullPath = path.resolve(directory,filepath + (count ? \&quot;_\&quot; + count : \&quot;\&quot;) + extension);\n\t\tif(oldPath &amp;&amp; oldPath == fullPath) {\n\t\t\tbreak;\n\t\t}\n\t\tcount++;\n\t} while(fs.existsSync(fullPath));\n\t// If the last write failed with an error, or if path does not start with:\n\t//\tthe resolved options.directory, the resolved wikiPath directory, or the wikiTiddlersPath directory, \n\t//\tthen encodeURIComponent() and resolve to tiddler directory\n\tvar newPath = fullPath,\n\t\tencode = (options.fileInfo || {writeError: false}).writeError == true;\n\tif(!encode){\n\t\tencode = !(fullPath.indexOf(path.resolve(directory)) == 0 ||\n\t\t\tfullPath.indexOf(path.resolve($tw.boot.wikiPath)) == 0 ||\n\t\t\tfullPath.indexOf($tw.boot.wikiTiddlersPath) == 0);\n\t\t}\n\tif(encode){\n\t\tfullPath = path.resolve(directory, encodeURIComponent(fullPath));\n\t}\n\t// Call hook to allow plugins to modify the final path\n\tfullPath = $tw.hooks.invokeHook(\&quot;th-make-tiddler-path\&quot;, newPath, fullPath);\n\t// Return the full path to the file\n\treturn fullPath;\n};\n\n/*\nSave a tiddler to a file described by the fileInfo:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\n*/\nexports.saveTiddlerToFile = function(tiddler,fileInfo,callback) {\n\t$tw.utils.createDirectory(path.dirname(fileInfo.filepath));\n\tif(fileInfo.hasMetaFile) {\n\t\t// Save the tiddler as a separate body and meta file\n\t\tvar typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \&quot;text/plain\&quot;] || {encoding: \&quot;utf8\&quot;};\n\t\tfs.writeFile(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tfs.writeFile(fileInfo.filepath + \&quot;.meta\&quot;,tiddler.getFieldStringBlock({exclude: [\&quot;text\&quot;,\&quot;bag\&quot;]}),\&quot;utf8\&quot;,callback);\n\t\t});\n\t} else {\n\t\t// Save the tiddler as a self contained templated file\n\t\tif(fileInfo.type === \&quot;application/x-tiddler\&quot;) {\n\t\t\tfs.writeFile(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: [\&quot;text\&quot;,\&quot;bag\&quot;]}) + (!!tiddler.fields.text ? \&quot;\\n\\n\&quot; + tiddler.fields.text : \&quot;\&quot;),\&quot;utf8\&quot;,callback);\n\t\t} else {\n\t\t\tfs.writeFile(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: [\&quot;bag\&quot;]})],null,$tw.config.preferences.jsonSpaces),\&quot;utf8\&quot;,callback);\n\t\t}\n\t}\n};\n\n/*\nSave a tiddler to a file described by the fileInfo:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\n*/\nexports.saveTiddlerToFileSync = function(tiddler,fileInfo) {\n\t$tw.utils.createDirectory(path.dirname(fileInfo.filepath));\n\tif(fileInfo.hasMetaFile) {\n\t\t// Save the tiddler as a separate body and meta file\n\t\tvar typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \&quot;text/plain\&quot;] || {encoding: \&quot;utf8\&quot;};\n\t\tfs.writeFileSync(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding);\n\t\tfs.writeFileSync(fileInfo.filepath + \&quot;.meta\&quot;,tiddler.getFieldStringBlock({exclude: [\&quot;text\&quot;,\&quot;bag\&quot;]}),\&quot;utf8\&quot;);\n\t} else {\n\t\t// Save the tiddler as a self contained templated file\n\t\tif(fileInfo.type === \&quot;application/x-tiddler\&quot;) {\n\t\t\tfs.writeFileSync(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: [\&quot;text\&quot;,\&quot;bag\&quot;]}) + (!!tiddler.fields.text ? \&quot;\\n\\n\&quot; + tiddler.fields.text : \&quot;\&quot;),\&quot;utf8\&quot;);\n\t\t} else {\n\t\t\tfs.writeFileSync(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: [\&quot;bag\&quot;]})],null,$tw.config.preferences.jsonSpaces),\&quot;utf8\&quot;);\n\t\t}\n\t}\n};\n\n/*\nDelete a file described by the fileInfo if it exits\n*/\nexports.deleteTiddlerFile = function(fileInfo, callback) {\n\t//Only attempt to delete files that exist on disk\n\tif(!fileInfo.filepath || !fs.existsSync(fileInfo.filepath)) {\n\t\treturn callback(null);\n\t}\n\t// Delete the file\n\tfs.unlink(fileInfo.filepath,function(err) {\n\t\tif(err) {\n\t\t\treturn callback(err);\n\t\t}\t\n\t\t// Delete the metafile if present\n\t\tif(fileInfo.hasMetaFile &amp;&amp; fs.existsSync(fileInfo.filepath + \&quot;.meta\&quot;)) {\n\t\t\tfs.unlink(fileInfo.filepath + \&quot;.meta\&quot;,function(err) {\n\t\t\t\tif(err) {\n\t\t\t\t\treturn callback(err);\n\t\t\t\t}\n\t\t\t\treturn $tw.utils.deleteEmptyDirs(path.dirname(fileInfo.filepath),callback);\n\t\t\t});\n\t\t} else {\n\t\t\treturn $tw.utils.deleteEmptyDirs(path.dirname(fileInfo.filepath),callback);\n\t\t}\n\t});\n};\n\n/*\nCleanup old files on disk, by comparing the options values:\n\tadaptorInfo from $tw.syncer.tiddlerInfo\n\tbootInfo from $tw.boot.files\n*/\nexports.cleanupTiddlerFiles = function(options, callback) {\n\tvar adaptorInfo = options.adaptorInfo || {},\n\tbootInfo = options.bootInfo || {},\n\ttitle = options.title || \&quot;undefined\&quot;;\n\tif(adaptorInfo.filepath &amp;&amp; bootInfo.filepath &amp;&amp; adaptorInfo.filepath !== bootInfo.filepath) {\n\t\treturn $tw.utils.deleteTiddlerFile(adaptorInfo, function(err){\n\t\t\tif(err) {\n\t\t\t\tif ((err.code == \&quot;EPERM\&quot; || err.code == \&quot;EACCES\&quot;) &amp;&amp; err.syscall == \&quot;unlink\&quot;) {\n\t\t\t\t\t// Error deleting the previous file on disk, should fail gracefully\n\t\t\t\t\t$tw.syncer.displayError(\&quot;Server desynchronized. Error cleaning up previous file for tiddler: \&quot;+title, err);\n\t\t\t\t\treturn callback(null);\n\t\t\t\t} else {\n\t\t\t\t\treturn callback(err);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn callback(null);\n\t\t});\n\t} else {\n\t\treturn callback(null);\n\t}\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils-node&quot;
},
&quot;$:/core/modules/utils/linkedlist.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/linkedlist.js&quot;,
&quot;text&quot;: &quot;/*\\\nmodule-type: utils\ntitle: $:/core/modules/utils/linkedlist.js\ntype: application/javascript\n\nThis is a doubly-linked indexed list intended for manipulation, particularly\npushTop, which it does with significantly better performance than an array.\n\n\\*/\n(function(){\n\nfunction LinkedList() {\n\tthis.clear();\n};\n\nLinkedList.prototype.clear = function() {\n\tthis.index = Object.create(null);\n\t// LinkedList performs the duty of both the head and tail node\n\tthis.next = this;\n\tthis.prev = this;\n\tthis.length = 0;\n};\n\nLinkedList.prototype.remove = function(value) {\n\tif($tw.utils.isArray(value)) {\n\t\tfor(var t=0; t&lt;value.length; t++) {\n\t\t\t_removeOne(this,value[t]);\n\t\t}\n\t} else {\n\t\t_removeOne(this,value);\n\t}\n};\n\nLinkedList.prototype.push = function(/* values */) {\n\tfor(var i = 0; i &lt; arguments.length; i++) {\n\t\tvar value = arguments[i];\n\t\tvar node = {value: value};\n\t\tvar preexistingNode = this.index[value];\n\t\t_linkToEnd(this,node);\n\t\tif(preexistingNode) {\n\t\t\t// We want to keep pointing to the first instance, but we want\n\t\t\t// to have that instance (or chain of instances) point to the\n\t\t\t// new one.\n\t\t\twhile (preexistingNode.copy) {\n\t\t\t\tpreexistingNode = preexistingNode.copy;\n\t\t\t}\n\t\t\tpreexistingNode.copy = node;\n\t\t} else {\n\t\t\tthis.index[value] = node;\n\t\t}\n\t}\n};\n\nLinkedList.prototype.pushTop = function(value) {\n\tif($tw.utils.isArray(value)) {\n\t\tfor(var t=0; t&lt;value.length; t++) {\n\t\t\t_removeOne(this,value[t]);\n\t\t}\n\t\tthis.push.apply(this,value);\n\t} else {\n\t\tvar node = _removeOne(this,value);\n\t\tif(!node) {\n\t\t\tnode = {value: value};\n\t\t\tthis.index[value] = node;\n\t\t} else {\n\t\t\t// Put this node at the end of the copy chain.\n\t\t\tvar preexistingNode = node;\n\t\t\twhile(preexistingNode.copy) {\n\t\t\t\tpreexistingNode = preexistingNode.copy;\n\t\t\t}\n\t\t\t// The order of these three statements is important,\n\t\t\t// because sometimes preexistingNode == node.\n\t\t\tpreexistingNode.copy = node;\n\t\t\tthis.index[value] = node.copy;\n\t\t\tnode.copy = undefined;\n\t\t}\n\t\t_linkToEnd(this,node);\n\t}\n};\n\nLinkedList.prototype.each = function(callback) {\n\tfor(var ptr = this.next; ptr !== this; ptr = ptr.next) {\n\t\tcallback(ptr.value);\n\t}\n};\n\nLinkedList.prototype.toArray = function() {\n\tvar output = [];\n\tfor(var ptr = this.next; ptr !== this; ptr = ptr.next) {\n\t\toutput.push(ptr.value);\n\t}\n\treturn output;\n};\n\nfunction _removeOne(list,value) {\n\tvar node = list.index[value];\n\tif(node) {\n\t\tnode.prev.next = node.next;\n\t\tnode.next.prev = node.prev;\n\t\tlist.length -= 1;\n\t\t// Point index to the next instance of the same value, maybe nothing.\n\t\tlist.index[value] = node.copy;\n\t}\n\treturn node;\n};\n\nfunction _linkToEnd(list,node) {\n\t// Sticks the given node onto the end of the list.\n\tlist.prev.next = node;\n\tnode.prev = list.prev;\n\tlist.prev = node;\n\tnode.next = list;\n\tlist.length += 1;\n};\n\nexports.LinkedList = LinkedList;\n\n})();\n&quot;,
&quot;module-type&quot;: &quot;utils&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/core/modules/utils/logger.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/logger.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/logger.js\ntype: application/javascript\nmodule-type: utils\n\nA basic logging implementation\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar ALERT_TAG = \&quot;$:/tags/Alert\&quot;;\n\n/*\nMake a new logger\n*/\nfunction Logger(componentName,options) {\n\toptions = options || {};\n\tthis.componentName = componentName || \&quot;\&quot;;\n\tthis.colour = options.colour || \&quot;white\&quot;;\n\tthis.enable = \&quot;enable\&quot; in options ? options.enable : true;\n\tthis.save = \&quot;save\&quot; in options ? options.save : true;\n\tthis.saveLimit = options.saveLimit || 100 * 1024;\n\tthis.saveBufferLogger = this;\n\tthis.buffer = \&quot;\&quot;;\n\tthis.alertCount = 0;\n}\n\nLogger.prototype.setSaveBuffer = function(logger) {\n\tthis.saveBufferLogger = logger;\n};\n\n/*\nLog a message\n*/\nLogger.prototype.log = function(/* args */) {\n\tvar self = this;\n\tif(this.enable) {\n\t\tif(this.saveBufferLogger.save) {\n\t\t\tthis.saveBufferLogger.buffer += $tw.utils.formatDateString(new Date(),\&quot;YYYY MM DD 0hh:0mm:0ss.0XXX\&quot;) + \&quot;:\&quot;;\n\t\t\t$tw.utils.each(Array.prototype.slice.call(arguments,0),function(arg,index) {\n\t\t\t\tself.saveBufferLogger.buffer += \&quot; \&quot; + arg;\n\t\t\t});\n\t\t\tthis.saveBufferLogger.buffer += \&quot;\\n\&quot;;\n\t\t\tthis.saveBufferLogger.buffer = this.saveBufferLogger.buffer.slice(-this.saveBufferLogger.saveLimit);\t\t\t\n\t\t}\n\t\tif(console !== undefined &amp;&amp; console.log !== undefined) {\n\t\t\treturn Function.apply.call(console.log, console, [$tw.utils.terminalColour(this.colour),this.componentName + \&quot;:\&quot;].concat(Array.prototype.slice.call(arguments,0)).concat($tw.utils.terminalColour()));\n\t\t}\n\t} \n};\n\n/*\nRead the message buffer\n*/\nLogger.prototype.getBuffer = function() {\n\treturn this.saveBufferLogger.buffer;\n};\n\n/*\nLog a structure as a table\n*/\nLogger.prototype.table = function(value) {\n\t(console.table || console.log)(value);\n};\n\n/*\nAlert a message\n*/\nLogger.prototype.alert = function(/* args */) {\n\tif(this.enable) {\n\t\t// Prepare the text of the alert\n\t\tvar text = Array.prototype.join.call(arguments,\&quot; \&quot;);\n\t\t// Create alert tiddlers in the browser\n\t\tif($tw.browser) {\n\t\t\t// Check if there is an existing alert with the same text and the same component\n\t\t\tvar existingAlerts = $tw.wiki.getTiddlersWithTag(ALERT_TAG),\n\t\t\t\talertFields,\n\t\t\t\texistingCount,\n\t\t\t\tself = this;\n\t\t\t$tw.utils.each(existingAlerts,function(title) {\n\t\t\t\tvar tiddler = $tw.wiki.getTiddler(title);\n\t\t\t\tif(tiddler.fields.text === text &amp;&amp; tiddler.fields.component === self.componentName &amp;&amp; tiddler.fields.modified &amp;&amp; (!alertFields || tiddler.fields.modified &lt; alertFields.modified)) {\n\t\t\t\t\t\talertFields = $tw.utils.extend({},tiddler.fields);\n\t\t\t\t}\n\t\t\t});\n\t\t\tif(alertFields) {\n\t\t\t\texistingCount = alertFields.count || 1;\n\t\t\t} else {\n\t\t\t\talertFields = {\n\t\t\t\t\ttitle: $tw.wiki.generateNewTitle(\&quot;$:/temp/alerts/alert\&quot;,{prefix: \&quot;\&quot;}),\n\t\t\t\t\ttext: text,\n\t\t\t\t\ttags: [ALERT_TAG],\n\t\t\t\t\tcomponent: this.componentName\n\t\t\t\t};\n\t\t\t\texistingCount = 0;\n\t\t\t\tthis.alertCount += 1;\n\t\t\t}\n\t\t\talertFields.modified = new Date();\n\t\t\tif(++existingCount &gt; 1) {\n\t\t\t\talertFields.count = existingCount;\n\t\t\t} else {\n\t\t\t\talertFields.count = undefined;\n\t\t\t}\n\t\t\t$tw.wiki.addTiddler(new $tw.Tiddler(alertFields));\n\t\t\t// Log the alert as well\n\t\t\tthis.log.apply(this,Array.prototype.slice.call(arguments,0));\n\t\t} else {\n\t\t\t// Print an orange message to the console if not in the browser\n\t\t\tconsole.error(\&quot;\\x1b[1;33m\&quot; + text + \&quot;\\x1b[0m\&quot;);\n\t\t}\t\t\n\t}\n};\n\n/*\nClear outstanding alerts\n*/\nLogger.prototype.clearAlerts = function() {\n\tvar self = this;\n\tif($tw.browser &amp;&amp; this.alertCount &gt; 0) {\n\t\t$tw.utils.each($tw.wiki.getTiddlersWithTag(ALERT_TAG),function(title) {\n\t\t\tvar tiddler = $tw.wiki.getTiddler(title);\n\t\t\tif(tiddler.fields.component === self.componentName) {\n\t\t\t\t$tw.wiki.deleteTiddler(title);\n\t\t\t}\n\t\t});\n\t\tthis.alertCount = 0;\n\t}\n};\n\nexports.Logger = Logger;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/parsetree.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/parsetree.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/parsetree.js\ntype: application/javascript\nmodule-type: utils\n\nParse tree utility functions.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.addAttributeToParseTreeNode = function(node,name,value) {\n\tnode.attributes = node.attributes || {};\n\tnode.attributes[name] = {type: \&quot;string\&quot;, value: value};\n};\n\nexports.getAttributeValueFromParseTreeNode = function(node,name,defaultValue) {\n\tif(node.attributes &amp;&amp; node.attributes[name] &amp;&amp; node.attributes[name].value !== undefined) {\n\t\treturn node.attributes[name].value;\n\t}\n\treturn defaultValue;\n};\n\nexports.addClassToParseTreeNode = function(node,classString) {\n\tvar classes = [];\n\tnode.attributes = node.attributes || {};\n\tnode.attributes[\&quot;class\&quot;] = node.attributes[\&quot;class\&quot;] || {type: \&quot;string\&quot;, value: \&quot;\&quot;};\n\tif(node.attributes[\&quot;class\&quot;].type === \&quot;string\&quot;) {\n\t\tif(node.attributes[\&quot;class\&quot;].value !== \&quot;\&quot;) {\n\t\t\tclasses = node.attributes[\&quot;class\&quot;].value.split(\&quot; \&quot;);\n\t\t}\n\t\tif(classString !== \&quot;\&quot;) {\n\t\t\t$tw.utils.pushTop(classes,classString.split(\&quot; \&quot;));\n\t\t}\n\t\tnode.attributes[\&quot;class\&quot;].value = classes.join(\&quot; \&quot;);\n\t}\n};\n\nexports.addStyleToParseTreeNode = function(node,name,value) {\n\t\tnode.attributes = node.attributes || {};\n\t\tnode.attributes.style = node.attributes.style || {type: \&quot;string\&quot;, value: \&quot;\&quot;};\n\t\tif(node.attributes.style.type === \&quot;string\&quot;) {\n\t\t\tnode.attributes.style.value += name + \&quot;:\&quot; + value + \&quot;;\&quot;;\n\t\t}\n};\n\nexports.findParseTreeNode = function(nodeArray,search) {\n\tfor(var t=0; t&lt;nodeArray.length; t++) {\n\t\tif(nodeArray[t].type === search.type &amp;&amp; nodeArray[t].tag === search.tag) {\n\t\t\treturn nodeArray[t];\n\t\t}\n\t}\n\treturn undefined;\n};\n\n/*\nHelper to get the text of a parse tree node or array of nodes\n*/\nexports.getParseTreeText = function getParseTreeText(tree) {\n\tvar output = [];\n\tif($tw.utils.isArray(tree)) {\n\t\t$tw.utils.each(tree,function(node) {\n\t\t\toutput.push(getParseTreeText(node));\n\t\t});\n\t} else {\n\t\tif(tree.type === \&quot;text\&quot;) {\n\t\t\toutput.push(tree.text);\n\t\t}\n\t\tif(tree.children) {\n\t\t\treturn getParseTreeText(tree.children);\n\t\t}\n\t}\n\treturn output.join(\&quot;\&quot;);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/performance.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/performance.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/performance.js\ntype: application/javascript\nmodule-type: global\n\nPerformance measurement.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nfunction Performance(enabled) {\n\tthis.enabled = !!enabled;\n\tthis.measures = {}; // Hashmap by measurement name of {time:, invocations:}\n\tthis.logger = new $tw.utils.Logger(\&quot;performance\&quot;);\n\tthis.showGreeting();\n}\n\nPerformance.prototype.showGreeting = function() {\n\tif($tw.browser) {\n\t\tthis.logger.log(\&quot;Execute $tw.perf.log(); to see filter execution timings\&quot;);\t\t\n\t}\n};\n\n/*\nWrap performance reporting around a top level function\n*/\nPerformance.prototype.report = function(name,fn) {\n\tvar self = this;\n\tif(this.enabled) {\n\t\treturn function() {\n\t\t\tvar startTime = $tw.utils.timer(),\n\t\t\t\tresult = fn.apply(this,arguments);\n\t\t\tself.logger.log(name + \&quot;: \&quot; + $tw.utils.timer(startTime).toFixed(2) + \&quot;ms\&quot;);\n\t\t\treturn result;\n\t\t};\n\t} else {\n\t\treturn fn;\n\t}\n};\n\nPerformance.prototype.log = function() {\n\tvar self = this,\n\t\ttotalTime = 0,\n\t\torderedMeasures = Object.keys(this.measures).sort(function(a,b) {\n\t\t\tif(self.measures[a].time &gt; self.measures[b].time) {\n\t\t\t\treturn -1;\n\t\t\t} else if (self.measures[a].time &lt; self.measures[b].time) {\n\t\t\t\treturn + 1;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t$tw.utils.each(orderedMeasures,function(name) {\n\t\ttotalTime += self.measures[name].time;\n\t});\n\tvar results = []\n\t$tw.utils.each(orderedMeasures,function(name) {\n\t\tvar measure = self.measures[name];\n\t\tresults.push({name: name,invocations: measure.invocations, avgTime: measure.time / measure.invocations, totalTime: measure.time, percentTime: (measure.time / totalTime) * 100})\n\t});\n\tself.logger.table(results);\n};\n\n/*\nWrap performance measurements around a subfunction\n*/\nPerformance.prototype.measure = function(name,fn) {\n\tvar self = this;\n\tif(this.enabled) {\n\t\treturn function() {\n\t\t\tvar startTime = $tw.utils.timer(),\n\t\t\t\tresult = fn.apply(this,arguments);\n\t\t\tif(!(name in self.measures)) {\n\t\t\t\tself.measures[name] = {time: 0, invocations: 0};\n\t\t\t}\n\t\t\tself.measures[name].time += $tw.utils.timer(startTime);\n\t\t\tself.measures[name].invocations++;\n\t\t\treturn result;\n\t\t};\n\t} else {\n\t\treturn fn;\n\t}\n};\n\nexports.Performance = Performance;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;global&quot;
},
&quot;$:/core/modules/utils/pluginmaker.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/pluginmaker.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/pluginmaker.js\ntype: application/javascript\nmodule-type: utils\n\nA quick and dirty way to pack up plugins within the browser.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nRepack a plugin, and then delete any non-shadow payload tiddlers\n*/\nexports.repackPlugin = function(title,additionalTiddlers,excludeTiddlers) {\n\tadditionalTiddlers = additionalTiddlers || [];\n\texcludeTiddlers = excludeTiddlers || [];\n\t// Get the plugin tiddler\n\tvar pluginTiddler = $tw.wiki.getTiddler(title);\n\tif(!pluginTiddler) {\n\t\tthrow \&quot;No such tiddler as \&quot; + title;\n\t}\n\t// Extract the JSON\n\tvar jsonPluginTiddler;\n\ttry {\n\t\tjsonPluginTiddler = JSON.parse(pluginTiddler.fields.text);\n\t} catch(e) {\n\t\tthrow \&quot;Cannot parse plugin tiddler \&quot; + title + \&quot;\\n\&quot; + $tw.language.getString(\&quot;Error/Caption\&quot;) + \&quot;: \&quot; + e;\n\t}\n\t// Get the list of tiddlers\n\tvar tiddlers = Object.keys(jsonPluginTiddler.tiddlers);\n\t// Add the additional tiddlers\n\t$tw.utils.pushTop(tiddlers,additionalTiddlers);\n\t// Remove any excluded tiddlers\n\tfor(var t=tiddlers.length-1; t&gt;=0; t--) {\n\t\tif(excludeTiddlers.indexOf(tiddlers[t]) !== -1) {\n\t\t\ttiddlers.splice(t,1);\n\t\t}\n\t}\n\t// Pack up the tiddlers into a block of JSON\n\tvar plugins = {};\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = $tw.wiki.getTiddler(title),\n\t\t\tfields = {};\n\t\t$tw.utils.each(tiddler.fields,function (value,name) {\n\t\t\tfields[name] = tiddler.getFieldString(name);\n\t\t});\n\t\tplugins[title] = fields;\n\t});\n\t// Retrieve and bump the version number\n\tvar pluginVersion = $tw.utils.parseVersion(pluginTiddler.getFieldString(\&quot;version\&quot;) || \&quot;0.0.0\&quot;) || {\n\t\t\tmajor: \&quot;0\&quot;,\n\t\t\tminor: \&quot;0\&quot;,\n\t\t\tpatch: \&quot;0\&quot;\n\t\t};\n\tpluginVersion.patch++;\n\tvar version = pluginVersion.major + \&quot;.\&quot; + pluginVersion.minor + \&quot;.\&quot; + pluginVersion.patch;\n\tif(pluginVersion.prerelease) {\n\t\tversion += \&quot;-\&quot; + pluginVersion.prerelease;\n\t}\n\tif(pluginVersion.build) {\n\t\tversion += \&quot;+\&quot; + pluginVersion.build;\n\t}\n\t// Save the tiddler\n\t$tw.wiki.addTiddler(new $tw.Tiddler(pluginTiddler,{text: JSON.stringify({tiddlers: plugins},null,4), version: version}));\n\t// Delete any non-shadow constituent tiddlers\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tif($tw.wiki.tiddlerExists(title)) {\n\t\t\t$tw.wiki.deleteTiddler(title);\n\t\t}\n\t});\n\t// Trigger an autosave\n\t$tw.rootWidget.dispatchEvent({type: \&quot;tm-auto-save-wiki\&quot;});\n\t// Return a heartwarming confirmation\n\treturn \&quot;Plugin \&quot; + title + \&quot; successfully saved\&quot;;\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/transliterate.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/transliterate.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/transliterate.js\ntype: application/javascript\nmodule-type: utils\n\nTransliteration static utility functions.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nTransliterate string to ASCII\n\n(Some pairs taken from http://semplicewebsites.com/removing-accents-javascript)\n*/\nexports.transliterationPairs = {\n\t\&quot;Á\&quot;:\&quot;A\&quot;,\n\t\&quot;Ă\&quot;:\&quot;A\&quot;,\n\t\&quot;Ắ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ặ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ằ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ẳ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ẵ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ǎ\&quot;:\&quot;A\&quot;,\n\t\&quot;Â\&quot;:\&quot;A\&quot;,\n\t\&quot;Ấ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ậ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ầ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ẩ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ẫ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ä\&quot;:\&quot;A\&quot;,\n\t\&quot;Ǟ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ȧ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ǡ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ạ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ȁ\&quot;:\&quot;A\&quot;,\n\t\&quot;À\&quot;:\&quot;A\&quot;,\n\t\&quot;Ả\&quot;:\&quot;A\&quot;,\n\t\&quot;Ȃ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ā\&quot;:\&quot;A\&quot;,\n\t\&quot;Ą\&quot;:\&quot;A\&quot;,\n\t\&quot;Å\&quot;:\&quot;A\&quot;,\n\t\&quot;Ǻ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ḁ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ⱥ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ã\&quot;:\&quot;A\&quot;,\n\t\&quot;Ꜳ\&quot;:\&quot;AA\&quot;,\n\t\&quot;Æ\&quot;:\&quot;AE\&quot;,\n\t\&quot;Ǽ\&quot;:\&quot;AE\&quot;,\n\t\&quot;Ǣ\&quot;:\&quot;AE\&quot;,\n\t\&quot;Ꜵ\&quot;:\&quot;AO\&quot;,\n\t\&quot;Ꜷ\&quot;:\&quot;AU\&quot;,\n\t\&quot;Ꜹ\&quot;:\&quot;AV\&quot;,\n\t\&quot;Ꜻ\&quot;:\&quot;AV\&quot;,\n\t\&quot;Ꜽ\&quot;:\&quot;AY\&quot;,\n\t\&quot;Ḃ\&quot;:\&quot;B\&quot;,\n\t\&quot;Ḅ\&quot;:\&quot;B\&quot;,\n\t\&quot;Ɓ\&quot;:\&quot;B\&quot;,\n\t\&quot;Ḇ\&quot;:\&quot;B\&quot;,\n\t\&quot;Ƀ\&quot;:\&quot;B\&quot;,\n\t\&quot;Ƃ\&quot;:\&quot;B\&quot;,\n\t\&quot;Ć\&quot;:\&quot;C\&quot;,\n\t\&quot;Č\&quot;:\&quot;C\&quot;,\n\t\&quot;Ç\&quot;:\&quot;C\&quot;,\n\t\&quot;Ḉ\&quot;:\&quot;C\&quot;,\n\t\&quot;Ĉ\&quot;:\&quot;C\&quot;,\n\t\&quot;Ċ\&quot;:\&quot;C\&quot;,\n\t\&quot;Ƈ\&quot;:\&quot;C\&quot;,\n\t\&quot;Ȼ\&quot;:\&quot;C\&quot;,\n\t\&quot;Ď\&quot;:\&quot;D\&quot;,\n\t\&quot;Ḑ\&quot;:\&quot;D\&quot;,\n\t\&quot;Ḓ\&quot;:\&quot;D\&quot;,\n\t\&quot;Ḋ\&quot;:\&quot;D\&quot;,\n\t\&quot;Ḍ\&quot;:\&quot;D\&quot;,\n\t\&quot;Ɗ\&quot;:\&quot;D\&quot;,\n\t\&quot;Ḏ\&quot;:\&quot;D\&quot;,\n\t\&quot;Dz\&quot;:\&quot;D\&quot;,\n\t\&quot;Dž\&quot;:\&quot;D\&quot;,\n\t\&quot;Đ\&quot;:\&quot;D\&quot;,\n\t\&quot;Ƌ\&quot;:\&quot;D\&quot;,\n\t\&quot;DZ\&quot;:\&quot;DZ\&quot;,\n\t\&quot;DŽ\&quot;:\&quot;DZ\&quot;,\n\t\&quot;É\&quot;:\&quot;E\&quot;,\n\t\&quot;Ĕ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ě\&quot;:\&quot;E\&quot;,\n\t\&quot;Ȩ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ḝ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ê\&quot;:\&quot;E\&quot;,\n\t\&quot;Ế\&quot;:\&quot;E\&quot;,\n\t\&quot;Ệ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ề\&quot;:\&quot;E\&quot;,\n\t\&quot;Ể\&quot;:\&quot;E\&quot;,\n\t\&quot;Ễ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ḙ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ë\&quot;:\&quot;E\&quot;,\n\t\&quot;Ė\&quot;:\&quot;E\&quot;,\n\t\&quot;Ẹ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ȅ\&quot;:\&quot;E\&quot;,\n\t\&quot;È\&quot;:\&quot;E\&quot;,\n\t\&quot;Ẻ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ȇ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ē\&quot;:\&quot;E\&quot;,\n\t\&quot;Ḗ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ḕ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ę\&quot;:\&quot;E\&quot;,\n\t\&quot;Ɇ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ẽ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ḛ\&quot;:\&quot;E\&quot;,\n\t\&quot;\&quot;:\&quot;ET\&quot;,\n\t\&quot;Ḟ\&quot;:\&quot;F\&quot;,\n\t\&quot;Ƒ\&quot;:\&quot;F\&quot;,\n\t\&quot;Ǵ\&quot;:\&quot;G\&quot;,\n\t\&quot;Ğ\&quot;:\&quot;G\&quot;,\n\t\&quot;Ǧ\&quot;:\&quot;G\&quot;,\n\t\&quot;Ģ\&quot;:\&quot;G\&quot;,\n\t\&quot;Ĝ\&quot;:\&quot;G\&quot;,\n\t\&quot;Ġ\&quot;:\&quot;G\&quot;,\n\t\&quot;Ɠ\&quot;:\&quot;G\&quot;,\n\t\&quot;Ḡ\&quot;:\&quot;G\&quot;,\n\t\&quot;Ǥ\&quot;:\&quot;G\&quot;,\n\t\&quot;Ḫ\&quot;:\&quot;H\&quot;,\n\t\&quot;Ȟ\&quot;:\&quot;H\&quot;,\n\t\&quot;Ḩ\&quot;:\&quot;H\&quot;,\n\t\&quot;Ĥ\&quot;:\&quot;H\&quot;,\n\t\&quot;Ⱨ\&quot;:\&quot;H\&quot;,\n\t\&quot;Ḧ\&quot;:\&quot;H\&quot;,\n\t\&quot;Ḣ\&quot;:\&quot;H\&quot;,\n\t\&quot;Ḥ\&quot;:\&quot;H\&quot;,\n\t\&quot;Ħ\&quot;:\&quot;H\&quot;,\n\t\&quot;Í\&quot;:\&quot;I\&quot;,\n\t\&quot;Ĭ\&quot;:\&quot;I\&quot;,\n\t\&quot;Ǐ\&quot;:\&quot;I\&quot;,\n\t\&quot;Î\&quot;:\&quot;I\&quot;,\n\t\&quot;Ï\&quot;:\&quot;I\&quot;,\n\t\&quot;Ḯ\&quot;:\&quot;I\&quot;,\n\t\&quot;İ\&quot;:\&quot;I\&quot;,\n\t\&quot;Ị\&quot;:\&quot;I\&quot;,\n\t\&quot;Ȉ\&quot;:\&quot;I\&quot;,\n\t\&quot;Ì\&quot;:\&quot;I\&quot;,\n\t\&quot;Ỉ\&quot;:\&quot;I\&quot;,\n\t\&quot;Ȋ\&quot;:\&quot;I\&quot;,\n\t\&quot;Ī\&quot;:\&quot;I\&quot;,\n\t\&quot;Į\&quot;:\&quot;I\&quot;,\n\t\&quot;Ɨ\&quot;:\&quot;I\&quot;,\n\t\&quot;Ĩ\&quot;:\&quot;I\&quot;,\n\t\&quot;Ḭ\&quot;:\&quot;I\&quot;,\n\t\&quot;Ꝺ\&quot;:\&quot;D\&quot;,\n\t\&quot;Ꝼ\&quot;:\&quot;F\&quot;,\n\t\&quot;Ᵹ\&quot;:\&quot;G\&quot;,\n\t\&quot;Ꞃ\&quot;:\&quot;R\&quot;,\n\t\&quot;Ꞅ\&quot;:\&quot;S\&quot;,\n\t\&quot;Ꞇ\&quot;:\&quot;T\&quot;,\n\t\&quot;Ꝭ\&quot;:\&quot;IS\&quot;,\n\t\&quot;Ĵ\&quot;:\&quot;J\&quot;,\n\t\&quot;Ɉ\&quot;:\&quot;J\&quot;,\n\t\&quot;Ḱ\&quot;:\&quot;K\&quot;,\n\t\&quot;Ǩ\&quot;:\&quot;K\&quot;,\n\t\&quot;Ķ\&quot;:\&quot;K\&quot;,\n\t\&quot;Ⱪ\&quot;:\&quot;K\&quot;,\n\t\&quot;Ꝃ\&quot;:\&quot;K\&quot;,\n\t\&quot;Ḳ\&quot;:\&quot;K\&quot;,\n\t\&quot;Ƙ\&quot;:\&quot;K\&quot;,\n\t\&quot;Ḵ\&quot;:\&quot;K\&quot;,\n\t\&quot;Ꝁ\&quot;:\&quot;K\&quot;,\n\t\&quot;Ꝅ\&quot;:\&quot;K\&quot;,\n\t\&quot;Ĺ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ƚ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ľ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ļ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ḽ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ḷ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ḹ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ⱡ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ꝉ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ḻ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ŀ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ɫ\&quot;:\&quot;L\&quot;,\n\t\&quot;Lj\&quot;:\&quot;L\&quot;,\n\t\&quot;Ł\&quot;:\&quot;L\&quot;,\n\t\&quot;LJ\&quot;:\&quot;LJ\&quot;,\n\t\&quot;Ḿ\&quot;:\&quot;M\&quot;,\n\t\&quot;Ṁ\&quot;:\&quot;M\&quot;,\n\t\&quot;Ṃ\&quot;:\&quot;M\&quot;,\n\t\&quot;Ɱ\&quot;:\&quot;M\&quot;,\n\t\&quot;Ń\&quot;:\&quot;N\&quot;,\n\t\&quot;Ň\&quot;:\&quot;N\&quot;,\n\t\&quot;Ņ\&quot;:\&quot;N\&quot;,\n\t\&quot;Ṋ\&quot;:\&quot;N\&quot;,\n\t\&quot;Ṅ\&quot;:\&quot;N\&quot;,\n\t\&quot;Ṇ\&quot;:\&quot;N\&quot;,\n\t\&quot;Ǹ\&quot;:\&quot;N\&quot;,\n\t\&quot;Ɲ\&quot;:\&quot;N\&quot;,\n\t\&quot;Ṉ\&quot;:\&quot;N\&quot;,\n\t\&quot;Ƞ\&quot;:\&quot;N\&quot;,\n\t\&quot;Nj\&quot;:\&quot;N\&quot;,\n\t\&quot;Ñ\&quot;:\&quot;N\&quot;,\n\t\&quot;NJ\&quot;:\&quot;NJ\&quot;,\n\t\&quot;Ó\&quot;:\&quot;O\&quot;,\n\t\&quot;Ŏ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ǒ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ô\&quot;:\&quot;O\&quot;,\n\t\&quot;Ố\&quot;:\&quot;O\&quot;,\n\t\&quot;Ộ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ồ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ổ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ỗ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ö\&quot;:\&quot;O\&quot;,\n\t\&quot;Ȫ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ȯ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ȱ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ọ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ő\&quot;:\&quot;O\&quot;,\n\t\&quot;Ȍ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ò\&quot;:\&quot;O\&quot;,\n\t\&quot;Ỏ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ơ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ớ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ợ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ờ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ở\&quot;:\&quot;O\&quot;,\n\t\&quot;Ỡ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ȏ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ꝋ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ꝍ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ō\&quot;:\&quot;O\&quot;,\n\t\&quot;Ṓ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ṑ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ɵ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ǫ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ǭ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ø\&quot;:\&quot;O\&quot;,\n\t\&quot;Ǿ\&quot;:\&quot;O\&quot;,\n\t\&quot;Õ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ṍ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ṏ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ȭ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ƣ\&quot;:\&quot;OI\&quot;,\n\t\&quot;Ꝏ\&quot;:\&quot;OO\&quot;,\n\t\&quot;Ɛ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ɔ\&quot;:\&quot;O\&quot;,\n\t\&quot;Ȣ\&quot;:\&quot;OU\&quot;,\n\t\&quot;Ṕ\&quot;:\&quot;P\&quot;,\n\t\&quot;Ṗ\&quot;:\&quot;P\&quot;,\n\t\&quot;Ꝓ\&quot;:\&quot;P\&quot;,\n\t\&quot;Ƥ\&quot;:\&quot;P\&quot;,\n\t\&quot;Ꝕ\&quot;:\&quot;P\&quot;,\n\t\&quot;Ᵽ\&quot;:\&quot;P\&quot;,\n\t\&quot;Ꝑ\&quot;:\&quot;P\&quot;,\n\t\&quot;Ꝙ\&quot;:\&quot;Q\&quot;,\n\t\&quot;Ꝗ\&quot;:\&quot;Q\&quot;,\n\t\&quot;Ŕ\&quot;:\&quot;R\&quot;,\n\t\&quot;Ř\&quot;:\&quot;R\&quot;,\n\t\&quot;Ŗ\&quot;:\&quot;R\&quot;,\n\t\&quot;Ṙ\&quot;:\&quot;R\&quot;,\n\t\&quot;Ṛ\&quot;:\&quot;R\&quot;,\n\t\&quot;Ṝ\&quot;:\&quot;R\&quot;,\n\t\&quot;Ȑ\&quot;:\&quot;R\&quot;,\n\t\&quot;Ȓ\&quot;:\&quot;R\&quot;,\n\t\&quot;Ṟ\&quot;:\&quot;R\&quot;,\n\t\&quot;Ɍ\&quot;:\&quot;R\&quot;,\n\t\&quot;Ɽ\&quot;:\&quot;R\&quot;,\n\t\&quot;Ꜿ\&quot;:\&quot;C\&quot;,\n\t\&quot;Ǝ\&quot;:\&quot;E\&quot;,\n\t\&quot;Ś\&quot;:\&quot;S\&quot;,\n\t\&quot;Ṥ\&quot;:\&quot;S\&quot;,\n\t\&quot;Š\&quot;:\&quot;S\&quot;,\n\t\&quot;Ṧ\&quot;:\&quot;S\&quot;,\n\t\&quot;Ş\&quot;:\&quot;S\&quot;,\n\t\&quot;Ŝ\&quot;:\&quot;S\&quot;,\n\t\&quot;Ș\&quot;:\&quot;S\&quot;,\n\t\&quot;Ṡ\&quot;:\&quot;S\&quot;,\n\t\&quot;Ṣ\&quot;:\&quot;S\&quot;,\n\t\&quot;Ṩ\&quot;:\&quot;S\&quot;,\n\t\&quot;Ť\&quot;:\&quot;T\&quot;,\n\t\&quot;Ţ\&quot;:\&quot;T\&quot;,\n\t\&quot;Ṱ\&quot;:\&quot;T\&quot;,\n\t\&quot;Ț\&quot;:\&quot;T\&quot;,\n\t\&quot;Ⱦ\&quot;:\&quot;T\&quot;,\n\t\&quot;Ṫ\&quot;:\&quot;T\&quot;,\n\t\&quot;Ṭ\&quot;:\&quot;T\&quot;,\n\t\&quot;Ƭ\&quot;:\&quot;T\&quot;,\n\t\&quot;Ṯ\&quot;:\&quot;T\&quot;,\n\t\&quot;Ʈ\&quot;:\&quot;T\&quot;,\n\t\&quot;Ŧ\&quot;:\&quot;T\&quot;,\n\t\&quot;Ɐ\&quot;:\&quot;A\&quot;,\n\t\&quot;Ꞁ\&quot;:\&quot;L\&quot;,\n\t\&quot;Ɯ\&quot;:\&quot;M\&quot;,\n\t\&quot;Ʌ\&quot;:\&quot;V\&quot;,\n\t\&quot;Ꜩ\&quot;:\&quot;TZ\&quot;,\n\t\&quot;Ú\&quot;:\&quot;U\&quot;,\n\t\&quot;Ŭ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ǔ\&quot;:\&quot;U\&quot;,\n\t\&quot;Û\&quot;:\&quot;U\&quot;,\n\t\&quot;Ṷ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ü\&quot;:\&quot;U\&quot;,\n\t\&quot;Ǘ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ǚ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ǜ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ǖ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ṳ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ụ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ű\&quot;:\&quot;U\&quot;,\n\t\&quot;Ȕ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ù\&quot;:\&quot;U\&quot;,\n\t\&quot;Ủ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ư\&quot;:\&quot;U\&quot;,\n\t\&quot;Ứ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ự\&quot;:\&quot;U\&quot;,\n\t\&quot;Ừ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ử\&quot;:\&quot;U\&quot;,\n\t\&quot;Ữ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ȗ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ū\&quot;:\&quot;U\&quot;,\n\t\&quot;Ṻ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ų\&quot;:\&quot;U\&quot;,\n\t\&quot;Ů\&quot;:\&quot;U\&quot;,\n\t\&quot;Ũ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ṹ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ṵ\&quot;:\&quot;U\&quot;,\n\t\&quot;Ꝟ\&quot;:\&quot;V\&quot;,\n\t\&quot;Ṿ\&quot;:\&quot;V\&quot;,\n\t\&quot;Ʋ\&quot;:\&quot;V\&quot;,\n\t\&quot;Ṽ\&quot;:\&quot;V\&quot;,\n\t\&quot;Ꝡ\&quot;:\&quot;VY\&quot;,\n\t\&quot;Ẃ\&quot;:\&quot;W\&quot;,\n\t\&quot;Ŵ\&quot;:\&quot;W\&quot;,\n\t\&quot;Ẅ\&quot;:\&quot;W\&quot;,\n\t\&quot;Ẇ\&quot;:\&quot;W\&quot;,\n\t\&quot;Ẉ\&quot;:\&quot;W\&quot;,\n\t\&quot;Ẁ\&quot;:\&quot;W\&quot;,\n\t\&quot;Ⱳ\&quot;:\&quot;W\&quot;,\n\t\&quot;Ẍ\&quot;:\&quot;X\&quot;,\n\t\&quot;Ẋ\&quot;:\&quot;X\&quot;,\n\t\&quot;Ý\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ŷ\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ÿ\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ẏ\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ỵ\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ỳ\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ƴ\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ỷ\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ỿ\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ȳ\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ɏ\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ỹ\&quot;:\&quot;Y\&quot;,\n\t\&quot;Ź\&quot;:\&quot;Z\&quot;,\n\t\&quot;Ž\&quot;:\&quot;Z\&quot;,\n\t\&quot;Ẑ\&quot;:\&quot;Z\&quot;,\n\t\&quot;Ⱬ\&quot;:\&quot;Z\&quot;,\n\t\&quot;Ż\&quot;:\&quot;Z\&quot;,\n\t\&quot;Ẓ\&quot;:\&quot;Z\&quot;,\n\t\&quot;Ȥ\&quot;:\&quot;Z\&quot;,\n\t\&quot;Ẕ\&quot;:\&quot;Z\&quot;,\n\t\&quot;Ƶ\&quot;:\&quot;Z\&quot;,\n\t\&quot;IJ\&quot;:\&quot;IJ\&quot;,\n\t\&quot;Œ\&quot;:\&quot;OE\&quot;,\n\t\&quot;ᴀ\&quot;:\&quot;A\&quot;,\n\t\&quot;ᴁ\&quot;:\&quot;AE\&quot;,\n\t\&quot;ʙ\&quot;:\&quot;B\&quot;,\n\t\&quot;ᴃ\&quot;:\&quot;B\&quot;,\n\t\&quot;\&quot;:\&quot;C\&quot;,\n\t\&quot;ᴅ\&quot;:\&quot;D\&quot;,\n\t\&quot;ᴇ\&quot;:\&quot;E\&quot;,\n\t\&quot;ꜰ\&quot;:\&quot;F\&quot;,\n\t\&quot;ɢ\&quot;:\&quot;G\&quot;,\n\t\&quot;ʛ\&quot;:\&quot;G\&quot;,\n\t\&quot;ʜ\&quot;:\&quot;H\&quot;,\n\t\&quot;ɪ\&quot;:\&quot;I\&quot;,\n\t\&quot;ʁ\&quot;:\&quot;R\&quot;,\n\t\&quot;ᴊ\&quot;:\&quot;J\&quot;,\n\t\&quot;ᴋ\&quot;:\&quot;K\&quot;,\n\t\&quot;ʟ\&quot;:\&quot;L\&quot;,\n\t\&quot;ᴌ\&quot;:\&quot;L\&quot;,\n\t\&quot;ᴍ\&quot;:\&quot;M\&quot;,\n\t\&quot;ɴ\&quot;:\&quot;N\&quot;,\n\t\&quot;\&quot;:\&quot;O\&quot;,\n\t\&quot;ɶ\&quot;:\&quot;OE\&quot;,\n\t\&quot;ᴐ\&quot;:\&quot;O\&quot;,\n\t\&quot;ᴕ\&quot;:\&quot;OU\&quot;,\n\t\&quot;ᴘ\&quot;:\&quot;P\&quot;,\n\t\&quot;ʀ\&quot;:\&quot;R\&quot;,\n\t\&quot;ᴎ\&quot;:\&quot;N\&quot;,\n\t\&quot;ᴙ\&quot;:\&quot;R\&quot;,\n\t\&quot;\&quot;:\&quot;S\&quot;,\n\t\&quot;ᴛ\&quot;:\&quot;T\&quot;,\n\t\&quot;ⱻ\&quot;:\&quot;E\&quot;,\n\t\&quot;ᴚ\&quot;:\&quot;R\&quot;,\n\t\&quot;\&quot;:\&quot;U\&quot;,\n\t\&quot;\&quot;:\&quot;V\&quot;,\n\t\&quot;\&quot;:\&quot;W\&quot;,\n\t\&quot;ʏ\&quot;:\&quot;Y\&quot;,\n\t\&quot;\&quot;:\&quot;Z\&quot;,\n\t\&quot;á\&quot;:\&quot;a\&quot;,\n\t\&quot;ă\&quot;:\&quot;a\&quot;,\n\t\&quot;ắ\&quot;:\&quot;a\&quot;,\n\t\&quot;ặ\&quot;:\&quot;a\&quot;,\n\t\&quot;ằ\&quot;:\&quot;a\&quot;,\n\t\&quot;ẳ\&quot;:\&quot;a\&quot;,\n\t\&quot;ẵ\&quot;:\&quot;a\&quot;,\n\t\&quot;ǎ\&quot;:\&quot;a\&quot;,\n\t\&quot;â\&quot;:\&quot;a\&quot;,\n\t\&quot;ấ\&quot;:\&quot;a\&quot;,\n\t\&quot;ậ\&quot;:\&quot;a\&quot;,\n\t\&quot;ầ\&quot;:\&quot;a\&quot;,\n\t\&quot;ẩ\&quot;:\&quot;a\&quot;,\n\t\&quot;ẫ\&quot;:\&quot;a\&quot;,\n\t\&quot;ä\&quot;:\&quot;a\&quot;,\n\t\&quot;ǟ\&quot;:\&quot;a\&quot;,\n\t\&quot;ȧ\&quot;:\&quot;a\&quot;,\n\t\&quot;ǡ\&quot;:\&quot;a\&quot;,\n\t\&quot;ạ\&quot;:\&quot;a\&quot;,\n\t\&quot;ȁ\&quot;:\&quot;a\&quot;,\n\t\&quot;à\&quot;:\&quot;a\&quot;,\n\t\&quot;ả\&quot;:\&quot;a\&quot;,\n\t\&quot;ȃ\&quot;:\&quot;a\&quot;,\n\t\&quot;ā\&quot;:\&quot;a\&quot;,\n\t\&quot;ą\&quot;:\&quot;a\&quot;,\n\t\&quot;ᶏ\&quot;:\&quot;a\&quot;,\n\t\&quot;ẚ\&quot;:\&quot;a\&quot;,\n\t\&quot;å\&quot;:\&quot;a\&quot;,\n\t\&quot;ǻ\&quot;:\&quot;a\&quot;,\n\t\&quot;ḁ\&quot;:\&quot;a\&quot;,\n\t\&quot;ⱥ\&quot;:\&quot;a\&quot;,\n\t\&quot;ã\&quot;:\&quot;a\&quot;,\n\t\&quot;ꜳ\&quot;:\&quot;aa\&quot;,\n\t\&quot;æ\&quot;:\&quot;ae\&quot;,\n\t\&quot;ǽ\&quot;:\&quot;ae\&quot;,\n\t\&quot;ǣ\&quot;:\&quot;ae\&quot;,\n\t\&quot;ꜵ\&quot;:\&quot;ao\&quot;,\n\t\&quot;ꜷ\&quot;:\&quot;au\&quot;,\n\t\&quot;ꜹ\&quot;:\&quot;av\&quot;,\n\t\&quot;ꜻ\&quot;:\&quot;av\&quot;,\n\t\&quot;ꜽ\&quot;:\&quot;ay\&quot;,\n\t\&quot;ḃ\&quot;:\&quot;b\&quot;,\n\t\&quot;ḅ\&quot;:\&quot;b\&quot;,\n\t\&quot;ɓ\&quot;:\&quot;b\&quot;,\n\t\&quot;ḇ\&quot;:\&quot;b\&quot;,\n\t\&quot;ᵬ\&quot;:\&quot;b\&quot;,\n\t\&quot;ᶀ\&quot;:\&quot;b\&quot;,\n\t\&quot;ƀ\&quot;:\&quot;b\&quot;,\n\t\&quot;ƃ\&quot;:\&quot;b\&quot;,\n\t\&quot;ɵ\&quot;:\&quot;o\&quot;,\n\t\&quot;ć\&quot;:\&quot;c\&quot;,\n\t\&quot;č\&quot;:\&quot;c\&quot;,\n\t\&quot;ç\&quot;:\&quot;c\&quot;,\n\t\&quot;ḉ\&quot;:\&quot;c\&quot;,\n\t\&quot;ĉ\&quot;:\&quot;c\&quot;,\n\t\&quot;ɕ\&quot;:\&quot;c\&quot;,\n\t\&quot;ċ\&quot;:\&quot;c\&quot;,\n\t\&quot;ƈ\&quot;:\&quot;c\&quot;,\n\t\&quot;ȼ\&quot;:\&quot;c\&quot;,\n\t\&quot;ď\&quot;:\&quot;d\&quot;,\n\t\&quot;ḑ\&quot;:\&quot;d\&quot;,\n\t\&quot;ḓ\&quot;:\&quot;d\&quot;,\n\t\&quot;ȡ\&quot;:\&quot;d\&quot;,\n\t\&quot;ḋ\&quot;:\&quot;d\&quot;,\n\t\&quot;ḍ\&quot;:\&quot;d\&quot;,\n\t\&quot;ɗ\&quot;:\&quot;d\&quot;,\n\t\&quot;ᶑ\&quot;:\&quot;d\&quot;,\n\t\&quot;ḏ\&quot;:\&quot;d\&quot;,\n\t\&quot;ᵭ\&quot;:\&quot;d\&quot;,\n\t\&quot;ᶁ\&quot;:\&quot;d\&quot;,\n\t\&quot;đ\&quot;:\&quot;d\&quot;,\n\t\&quot;ɖ\&quot;:\&quot;d\&quot;,\n\t\&quot;ƌ\&quot;:\&quot;d\&quot;,\n\t\&quot;ı\&quot;:\&quot;i\&quot;,\n\t\&quot;ȷ\&quot;:\&quot;j\&quot;,\n\t\&quot;ɟ\&quot;:\&quot;j\&quot;,\n\t\&quot;ʄ\&quot;:\&quot;j\&quot;,\n\t\&quot;dz\&quot;:\&quot;dz\&quot;,\n\t\&quot;dž\&quot;:\&quot;dz\&quot;,\n\t\&quot;é\&quot;:\&quot;e\&quot;,\n\t\&quot;ĕ\&quot;:\&quot;e\&quot;,\n\t\&quot;ě\&quot;:\&quot;e\&quot;,\n\t\&quot;ȩ\&quot;:\&quot;e\&quot;,\n\t\&quot;ḝ\&quot;:\&quot;e\&quot;,\n\t\&quot;ê\&quot;:\&quot;e\&quot;,\n\t\&quot;ế\&quot;:\&quot;e\&quot;,\n\t\&quot;ệ\&quot;:\&quot;e\&quot;,\n\t\&quot;ề\&quot;:\&quot;e\&quot;,\n\t\&quot;ể\&quot;:\&quot;e\&quot;,\n\t\&quot;ễ\&quot;:\&quot;e\&quot;,\n\t\&quot;ḙ\&quot;:\&quot;e\&quot;,\n\t\&quot;ë\&quot;:\&quot;e\&quot;,\n\t\&quot;ė\&quot;:\&quot;e\&quot;,\n\t\&quot;ẹ\&quot;:\&quot;e\&quot;,\n\t\&quot;ȅ\&quot;:\&quot;e\&quot;,\n\t\&quot;è\&quot;:\&quot;e\&quot;,\n\t\&quot;ẻ\&quot;:\&quot;e\&quot;,\n\t\&quot;ȇ\&quot;:\&quot;e\&quot;,\n\t\&quot;ē\&quot;:\&quot;e\&quot;,\n\t\&quot;ḗ\&quot;:\&quot;e\&quot;,\n\t\&quot;ḕ\&quot;:\&quot;e\&quot;,\n\t\&quot;ⱸ\&quot;:\&quot;e\&quot;,\n\t\&quot;ę\&quot;:\&quot;e\&quot;,\n\t\&quot;ᶒ\&quot;:\&quot;e\&quot;,\n\t\&quot;ɇ\&quot;:\&quot;e\&quot;,\n\t\&quot;ẽ\&quot;:\&quot;e\&quot;,\n\t\&quot;ḛ\&quot;:\&quot;e\&quot;,\n\t\&quot;ꝫ\&quot;:\&quot;et\&quot;,\n\t\&quot;ḟ\&quot;:\&quot;f\&quot;,\n\t\&quot;ƒ\&quot;:\&quot;f\&quot;,\n\t\&quot;ᵮ\&quot;:\&quot;f\&quot;,\n\t\&quot;ᶂ\&quot;:\&quot;f\&quot;,\n\t\&quot;ǵ\&quot;:\&quot;g\&quot;,\n\t\&quot;ğ\&quot;:\&quot;g\&quot;,\n\t\&quot;ǧ\&quot;:\&quot;g\&quot;,\n\t\&quot;ģ\&quot;:\&quot;g\&quot;,\n\t\&quot;ĝ\&quot;:\&quot;g\&quot;,\n\t\&quot;ġ\&quot;:\&quot;g\&quot;,\n\t\&quot;ɠ\&quot;:\&quot;g\&quot;,\n\t\&quot;ḡ\&quot;:\&quot;g\&quot;,\n\t\&quot;\&quot;:\&quot;g\&quot;,\n\t\&quot;ǥ\&quot;:\&quot;g\&quot;,\n\t\&quot;ḫ\&quot;:\&quot;h\&quot;,\n\t\&quot;ȟ\&quot;:\&quot;h\&quot;,\n\t\&quot;ḩ\&quot;:\&quot;h\&quot;,\n\t\&quot;ĥ\&quot;:\&quot;h\&quot;,\n\t\&quot;ⱨ\&quot;:\&quot;h\&quot;,\n\t\&quot;ḧ\&quot;:\&quot;h\&quot;,\n\t\&quot;ḣ\&quot;:\&quot;h\&quot;,\n\t\&quot;ḥ\&quot;:\&quot;h\&quot;,\n\t\&quot;ɦ\&quot;:\&quot;h\&quot;,\n\t\&quot;ẖ\&quot;:\&quot;h\&quot;,\n\t\&quot;ħ\&quot;:\&quot;h\&quot;,\n\t\&quot;ƕ\&quot;:\&quot;hv\&quot;,\n\t\&quot;í\&quot;:\&quot;i\&quot;,\n\t\&quot;ĭ\&quot;:\&quot;i\&quot;,\n\t\&quot;ǐ\&quot;:\&quot;i\&quot;,\n\t\&quot;î\&quot;:\&quot;i\&quot;,\n\t\&quot;ï\&quot;:\&quot;i\&quot;,\n\t\&quot;ḯ\&quot;:\&quot;i\&quot;,\n\t\&quot;ị\&quot;:\&quot;i\&quot;,\n\t\&quot;ȉ\&quot;:\&quot;i\&quot;,\n\t\&quot;ì\&quot;:\&quot;i\&quot;,\n\t\&quot;ỉ\&quot;:\&quot;i\&quot;,\n\t\&quot;ȋ\&quot;:\&quot;i\&quot;,\n\t\&quot;ī\&quot;:\&quot;i\&quot;,\n\t\&quot;į\&quot;:\&quot;i\&quot;,\n\t\&quot;ᶖ\&quot;:\&quot;i\&quot;,\n\t\&quot;ɨ\&quot;:\&quot;i\&quot;,\n\t\&quot;ĩ\&quot;:\&quot;i\&quot;,\n\t\&quot;ḭ\&quot;:\&quot;i\&quot;,\n\t\&quot;ꝺ\&quot;:\&quot;d\&quot;,\n\t\&quot;ꝼ\&quot;:\&quot;f\&quot;,\n\t\&quot;ᵹ\&quot;:\&quot;g\&quot;,\n\t\&quot;ꞃ\&quot;:\&quot;r\&quot;,\n\t\&quot;ꞅ\&quot;:\&quot;s\&quot;,\n\t\&quot;ꞇ\&quot;:\&quot;t\&quot;,\n\t\&quot;ꝭ\&quot;:\&quot;is\&quot;,\n\t\&quot;ǰ\&quot;:\&quot;j\&quot;,\n\t\&quot;ĵ\&quot;:\&quot;j\&quot;,\n\t\&quot;ʝ\&quot;:\&quot;j\&quot;,\n\t\&quot;ɉ\&quot;:\&quot;j\&quot;,\n\t\&quot;ḱ\&quot;:\&quot;k\&quot;,\n\t\&quot;ǩ\&quot;:\&quot;k\&quot;,\n\t\&quot;ķ\&quot;:\&quot;k\&quot;,\n\t\&quot;ⱪ\&quot;:\&quot;k\&quot;,\n\t\&quot;ꝃ\&quot;:\&quot;k\&quot;,\n\t\&quot;ḳ\&quot;:\&quot;k\&quot;,\n\t\&quot;ƙ\&quot;:\&quot;k\&quot;,\n\t\&quot;ḵ\&quot;:\&quot;k\&quot;,\n\t\&quot;ᶄ\&quot;:\&quot;k\&quot;,\n\t\&quot;ꝁ\&quot;:\&quot;k\&quot;,\n\t\&quot;ꝅ\&quot;:\&quot;k\&quot;,\n\t\&quot;ĺ\&quot;:\&quot;l\&quot;,\n\t\&quot;ƚ\&quot;:\&quot;l\&quot;,\n\t\&quot;ɬ\&quot;:\&quot;l\&quot;,\n\t\&quot;ľ\&quot;:\&quot;l\&quot;,\n\t\&quot;ļ\&quot;:\&quot;l\&quot;,\n\t\&quot;ḽ\&quot;:\&quot;l\&quot;,\n\t\&quot;ȴ\&quot;:\&quot;l\&quot;,\n\t\&quot;ḷ\&quot;:\&quot;l\&quot;,\n\t\&quot;ḹ\&quot;:\&quot;l\&quot;,\n\t\&quot;ⱡ\&quot;:\&quot;l\&quot;,\n\t\&quot;ꝉ\&quot;:\&quot;l\&quot;,\n\t\&quot;ḻ\&quot;:\&quot;l\&quot;,\n\t\&quot;ŀ\&quot;:\&quot;l\&quot;,\n\t\&quot;ɫ\&quot;:\&quot;l\&quot;,\n\t\&quot;ᶅ\&quot;:\&quot;l\&quot;,\n\t\&quot;ɭ\&quot;:\&quot;l\&quot;,\n\t\&quot;ł\&quot;:\&quot;l\&quot;,\n\t\&quot;lj\&quot;:\&quot;lj\&quot;,\n\t\&quot;ſ\&quot;:\&quot;s\&quot;,\n\t\&quot;ẜ\&quot;:\&quot;s\&quot;,\n\t\&quot;ẛ\&quot;:\&quot;s\&quot;,\n\t\&quot;\&quot;:\&quot;s\&quot;,\n\t\&quot;ḿ\&quot;:\&quot;m\&quot;,\n\t\&quot;ṁ\&quot;:\&quot;m\&quot;,\n\t\&quot;ṃ\&quot;:\&quot;m\&quot;,\n\t\&quot;ɱ\&quot;:\&quot;m\&quot;,\n\t\&quot;ᵯ\&quot;:\&quot;m\&quot;,\n\t\&quot;ᶆ\&quot;:\&quot;m\&quot;,\n\t\&quot;ń\&quot;:\&quot;n\&quot;,\n\t\&quot;ň\&quot;:\&quot;n\&quot;,\n\t\&quot;ņ\&quot;:\&quot;n\&quot;,\n\t\&quot;ṋ\&quot;:\&quot;n\&quot;,\n\t\&quot;ȵ\&quot;:\&quot;n\&quot;,\n\t\&quot;ṅ\&quot;:\&quot;n\&quot;,\n\t\&quot;ṇ\&quot;:\&quot;n\&quot;,\n\t\&quot;ǹ\&quot;:\&quot;n\&quot;,\n\t\&quot;ɲ\&quot;:\&quot;n\&quot;,\n\t\&quot;ṉ\&quot;:\&quot;n\&quot;,\n\t\&quot;ƞ\&quot;:\&quot;n\&quot;,\n\t\&quot;ᵰ\&quot;:\&quot;n\&quot;,\n\t\&quot;ᶇ\&quot;:\&quot;n\&quot;,\n\t\&quot;ɳ\&quot;:\&quot;n\&quot;,\n\t\&quot;ñ\&quot;:\&quot;n\&quot;,\n\t\&quot;nj\&quot;:\&quot;nj\&quot;,\n\t\&quot;ó\&quot;:\&quot;o\&quot;,\n\t\&quot;ŏ\&quot;:\&quot;o\&quot;,\n\t\&quot;ǒ\&quot;:\&quot;o\&quot;,\n\t\&quot;ô\&quot;:\&quot;o\&quot;,\n\t\&quot;ố\&quot;:\&quot;o\&quot;,\n\t\&quot;ộ\&quot;:\&quot;o\&quot;,\n\t\&quot;ồ\&quot;:\&quot;o\&quot;,\n\t\&quot;ổ\&quot;:\&quot;o\&quot;,\n\t\&quot;ỗ\&quot;:\&quot;o\&quot;,\n\t\&quot;ö\&quot;:\&quot;o\&quot;,\n\t\&quot;ȫ\&quot;:\&quot;o\&quot;,\n\t\&quot;ȯ\&quot;:\&quot;o\&quot;,\n\t\&quot;ȱ\&quot;:\&quot;o\&quot;,\n\t\&quot;ọ\&quot;:\&quot;o\&quot;,\n\t\&quot;ő\&quot;:\&quot;o\&quot;,\n\t\&quot;ȍ\&quot;:\&quot;o\&quot;,\n\t\&quot;ò\&quot;:\&quot;o\&quot;,\n\t\&quot;ỏ\&quot;:\&quot;o\&quot;,\n\t\&quot;ơ\&quot;:\&quot;o\&quot;,\n\t\&quot;ớ\&quot;:\&quot;o\&quot;,\n\t\&quot;ợ\&quot;:\&quot;o\&quot;,\n\t\&quot;ờ\&quot;:\&quot;o\&quot;,\n\t\&quot;ở\&quot;:\&quot;o\&quot;,\n\t\&quot;ỡ\&quot;:\&quot;o\&quot;,\n\t\&quot;ȏ\&quot;:\&quot;o\&quot;,\n\t\&quot;ꝋ\&quot;:\&quot;o\&quot;,\n\t\&quot;ꝍ\&quot;:\&quot;o\&quot;,\n\t\&quot;ⱺ\&quot;:\&quot;o\&quot;,\n\t\&quot;ō\&quot;:\&quot;o\&quot;,\n\t\&quot;ṓ\&quot;:\&quot;o\&quot;,\n\t\&quot;ṑ\&quot;:\&quot;o\&quot;,\n\t\&quot;ǫ\&quot;:\&quot;o\&quot;,\n\t\&quot;ǭ\&quot;:\&quot;o\&quot;,\n\t\&quot;ø\&quot;:\&quot;o\&quot;,\n\t\&quot;ǿ\&quot;:\&quot;o\&quot;,\n\t\&quot;õ\&quot;:\&quot;o\&quot;,\n\t\&quot;ṍ\&quot;:\&quot;o\&quot;,\n\t\&quot;ṏ\&quot;:\&quot;o\&quot;,\n\t\&quot;ȭ\&quot;:\&quot;o\&quot;,\n\t\&quot;ƣ\&quot;:\&quot;oi\&quot;,\n\t\&quot;ꝏ\&quot;:\&quot;oo\&quot;,\n\t\&quot;ɛ\&quot;:\&quot;e\&quot;,\n\t\&quot;ᶓ\&quot;:\&quot;e\&quot;,\n\t\&quot;ɔ\&quot;:\&quot;o\&quot;,\n\t\&quot;ᶗ\&quot;:\&quot;o\&quot;,\n\t\&quot;ȣ\&quot;:\&quot;ou\&quot;,\n\t\&quot;ṕ\&quot;:\&quot;p\&quot;,\n\t\&quot;ṗ\&quot;:\&quot;p\&quot;,\n\t\&quot;ꝓ\&quot;:\&quot;p\&quot;,\n\t\&quot;ƥ\&quot;:\&quot;p\&quot;,\n\t\&quot;ᵱ\&quot;:\&quot;p\&quot;,\n\t\&quot;ᶈ\&quot;:\&quot;p\&quot;,\n\t\&quot;ꝕ\&quot;:\&quot;p\&quot;,\n\t\&quot;ᵽ\&quot;:\&quot;p\&quot;,\n\t\&quot;ꝑ\&quot;:\&quot;p\&quot;,\n\t\&quot;ꝙ\&quot;:\&quot;q\&quot;,\n\t\&quot;ʠ\&quot;:\&quot;q\&quot;,\n\t\&quot;ɋ\&quot;:\&quot;q\&quot;,\n\t\&quot;ꝗ\&quot;:\&quot;q\&quot;,\n\t\&quot;ŕ\&quot;:\&quot;r\&quot;,\n\t\&quot;ř\&quot;:\&quot;r\&quot;,\n\t\&quot;ŗ\&quot;:\&quot;r\&quot;,\n\t\&quot;ṙ\&quot;:\&quot;r\&quot;,\n\t\&quot;ṛ\&quot;:\&quot;r\&quot;,\n\t\&quot;ṝ\&quot;:\&quot;r\&quot;,\n\t\&quot;ȑ\&quot;:\&quot;r\&quot;,\n\t\&quot;ɾ\&quot;:\&quot;r\&quot;,\n\t\&quot;ᵳ\&quot;:\&quot;r\&quot;,\n\t\&quot;ȓ\&quot;:\&quot;r\&quot;,\n\t\&quot;ṟ\&quot;:\&quot;r\&quot;,\n\t\&quot;ɼ\&quot;:\&quot;r\&quot;,\n\t\&quot;ᵲ\&quot;:\&quot;r\&quot;,\n\t\&quot;ᶉ\&quot;:\&quot;r\&quot;,\n\t\&quot;ɍ\&quot;:\&quot;r\&quot;,\n\t\&quot;ɽ\&quot;:\&quot;r\&quot;,\n\t\&quot;ↄ\&quot;:\&quot;c\&quot;,\n\t\&quot;ꜿ\&quot;:\&quot;c\&quot;,\n\t\&quot;ɘ\&quot;:\&quot;e\&quot;,\n\t\&quot;ɿ\&quot;:\&quot;r\&quot;,\n\t\&quot;ś\&quot;:\&quot;s\&quot;,\n\t\&quot;ṥ\&quot;:\&quot;s\&quot;,\n\t\&quot;š\&quot;:\&quot;s\&quot;,\n\t\&quot;ṧ\&quot;:\&quot;s\&quot;,\n\t\&quot;ş\&quot;:\&quot;s\&quot;,\n\t\&quot;ŝ\&quot;:\&quot;s\&quot;,\n\t\&quot;ș\&quot;:\&quot;s\&quot;,\n\t\&quot;ṡ\&quot;:\&quot;s\&quot;,\n\t\&quot;ṣ\&quot;:\&quot;s\&quot;,\n\t\&quot;ṩ\&quot;:\&quot;s\&quot;,\n\t\&quot;ʂ\&quot;:\&quot;s\&quot;,\n\t\&quot;ᵴ\&quot;:\&quot;s\&quot;,\n\t\&quot;ᶊ\&quot;:\&quot;s\&quot;,\n\t\&quot;ȿ\&quot;:\&quot;s\&quot;,\n\t\&quot;ɡ\&quot;:\&quot;g\&quot;,\n\t\&quot;\&quot;:\&quot;o\&quot;,\n\t\&quot;ᴓ\&quot;:\&quot;o\&quot;,\n\t\&quot;ᴝ\&quot;:\&quot;u\&quot;,\n\t\&quot;ť\&quot;:\&quot;t\&quot;,\n\t\&quot;ţ\&quot;:\&quot;t\&quot;,\n\t\&quot;ṱ\&quot;:\&quot;t\&quot;,\n\t\&quot;ț\&quot;:\&quot;t\&quot;,\n\t\&quot;ȶ\&quot;:\&quot;t\&quot;,\n\t\&quot;ẗ\&quot;:\&quot;t\&quot;,\n\t\&quot;ⱦ\&quot;:\&quot;t\&quot;,\n\t\&quot;ṫ\&quot;:\&quot;t\&quot;,\n\t\&quot;ṭ\&quot;:\&quot;t\&quot;,\n\t\&quot;ƭ\&quot;:\&quot;t\&quot;,\n\t\&quot;ṯ\&quot;:\&quot;t\&quot;,\n\t\&quot;ᵵ\&quot;:\&quot;t\&quot;,\n\t\&quot;ƫ\&quot;:\&quot;t\&quot;,\n\t\&quot;ʈ\&quot;:\&quot;t\&quot;,\n\t\&quot;ŧ\&quot;:\&quot;t\&quot;,\n\t\&quot;ᵺ\&quot;:\&quot;th\&quot;,\n\t\&quot;ɐ\&quot;:\&quot;a\&quot;,\n\t\&quot;ᴂ\&quot;:\&quot;ae\&quot;,\n\t\&quot;ǝ\&quot;:\&quot;e\&quot;,\n\t\&quot;ᵷ\&quot;:\&quot;g\&quot;,\n\t\&quot;ɥ\&quot;:\&quot;h\&quot;,\n\t\&quot;ʮ\&quot;:\&quot;h\&quot;,\n\t\&quot;ʯ\&quot;:\&quot;h\&quot;,\n\t\&quot;ᴉ\&quot;:\&quot;i\&quot;,\n\t\&quot;ʞ\&quot;:\&quot;k\&quot;,\n\t\&quot;ꞁ\&quot;:\&quot;l\&quot;,\n\t\&quot;ɯ\&quot;:\&quot;m\&quot;,\n\t\&quot;ɰ\&quot;:\&quot;m\&quot;,\n\t\&quot;ᴔ\&quot;:\&quot;oe\&quot;,\n\t\&quot;ɹ\&quot;:\&quot;r\&quot;,\n\t\&quot;ɻ\&quot;:\&quot;r\&quot;,\n\t\&quot;ɺ\&quot;:\&quot;r\&quot;,\n\t\&quot;ⱹ\&quot;:\&quot;r\&quot;,\n\t\&quot;ʇ\&quot;:\&quot;t\&quot;,\n\t\&quot;ʌ\&quot;:\&quot;v\&quot;,\n\t\&quot;ʍ\&quot;:\&quot;w\&quot;,\n\t\&quot;ʎ\&quot;:\&quot;y\&quot;,\n\t\&quot;ꜩ\&quot;:\&quot;tz\&quot;,\n\t\&quot;ú\&quot;:\&quot;u\&quot;,\n\t\&quot;ŭ\&quot;:\&quot;u\&quot;,\n\t\&quot;ǔ\&quot;:\&quot;u\&quot;,\n\t\&quot;û\&quot;:\&quot;u\&quot;,\n\t\&quot;ṷ\&quot;:\&quot;u\&quot;,\n\t\&quot;ü\&quot;:\&quot;u\&quot;,\n\t\&quot;ǘ\&quot;:\&quot;u\&quot;,\n\t\&quot;ǚ\&quot;:\&quot;u\&quot;,\n\t\&quot;ǜ\&quot;:\&quot;u\&quot;,\n\t\&quot;ǖ\&quot;:\&quot;u\&quot;,\n\t\&quot;ṳ\&quot;:\&quot;u\&quot;,\n\t\&quot;ụ\&quot;:\&quot;u\&quot;,\n\t\&quot;ű\&quot;:\&quot;u\&quot;,\n\t\&quot;ȕ\&quot;:\&quot;u\&quot;,\n\t\&quot;ù\&quot;:\&quot;u\&quot;,\n\t\&quot;ủ\&quot;:\&quot;u\&quot;,\n\t\&quot;ư\&quot;:\&quot;u\&quot;,\n\t\&quot;ứ\&quot;:\&quot;u\&quot;,\n\t\&quot;ự\&quot;:\&quot;u\&quot;,\n\t\&quot;ừ\&quot;:\&quot;u\&quot;,\n\t\&quot;ử\&quot;:\&quot;u\&quot;,\n\t\&quot;ữ\&quot;:\&quot;u\&quot;,\n\t\&quot;ȗ\&quot;:\&quot;u\&quot;,\n\t\&quot;ū\&quot;:\&quot;u\&quot;,\n\t\&quot;ṻ\&quot;:\&quot;u\&quot;,\n\t\&quot;ų\&quot;:\&quot;u\&quot;,\n\t\&quot;ᶙ\&quot;:\&quot;u\&quot;,\n\t\&quot;ů\&quot;:\&quot;u\&quot;,\n\t\&quot;ũ\&quot;:\&quot;u\&quot;,\n\t\&quot;ṹ\&quot;:\&quot;u\&quot;,\n\t\&quot;ṵ\&quot;:\&quot;u\&quot;,\n\t\&quot;ᵫ\&quot;:\&quot;ue\&quot;,\n\t\&quot;\&quot;:\&quot;um\&quot;,\n\t\&quot;ⱴ\&quot;:\&quot;v\&quot;,\n\t\&quot;ꝟ\&quot;:\&quot;v\&quot;,\n\t\&quot;ṿ\&quot;:\&quot;v\&quot;,\n\t\&quot;ʋ\&quot;:\&quot;v\&quot;,\n\t\&quot;\&quot;:\&quot;v\&quot;,\n\t\&quot;ⱱ\&quot;:\&quot;v\&quot;,\n\t\&quot;ṽ\&quot;:\&quot;v\&quot;,\n\t\&quot;ꝡ\&quot;:\&quot;vy\&quot;,\n\t\&quot;ẃ\&quot;:\&quot;w\&quot;,\n\t\&quot;ŵ\&quot;:\&quot;w\&quot;,\n\t\&quot;ẅ\&quot;:\&quot;w\&quot;,\n\t\&quot;ẇ\&quot;:\&quot;w\&quot;,\n\t\&quot;ẉ\&quot;:\&quot;w\&quot;,\n\t\&quot;ẁ\&quot;:\&quot;w\&quot;,\n\t\&quot;ⱳ\&quot;:\&quot;w\&quot;,\n\t\&quot;ẘ\&quot;:\&quot;w\&quot;,\n\t\&quot;ẍ\&quot;:\&quot;x\&quot;,\n\t\&quot;ẋ\&quot;:\&quot;x\&quot;,\n\t\&quot;ᶍ\&quot;:\&quot;x\&quot;,\n\t\&quot;ý\&quot;:\&quot;y\&quot;,\n\t\&quot;ŷ\&quot;:\&quot;y\&quot;,\n\t\&quot;ÿ\&quot;:\&quot;y\&quot;,\n\t\&quot;ẏ\&quot;:\&quot;y\&quot;,\n\t\&quot;ỵ\&quot;:\&quot;y\&quot;,\n\t\&quot;ỳ\&quot;:\&quot;y\&quot;,\n\t\&quot;ƴ\&quot;:\&quot;y\&quot;,\n\t\&quot;ỷ\&quot;:\&quot;y\&quot;,\n\t\&quot;ỿ\&quot;:\&quot;y\&quot;,\n\t\&quot;ȳ\&quot;:\&quot;y\&quot;,\n\t\&quot;ẙ\&quot;:\&quot;y\&quot;,\n\t\&quot;ɏ\&quot;:\&quot;y\&quot;,\n\t\&quot;ỹ\&quot;:\&quot;y\&quot;,\n\t\&quot;ź\&quot;:\&quot;z\&quot;,\n\t\&quot;ž\&quot;:\&quot;z\&quot;,\n\t\&quot;ẑ\&quot;:\&quot;z\&quot;,\n\t\&quot;ʑ\&quot;:\&quot;z\&quot;,\n\t\&quot;ⱬ\&quot;:\&quot;z\&quot;,\n\t\&quot;ż\&quot;:\&quot;z\&quot;,\n\t\&quot;ẓ\&quot;:\&quot;z\&quot;,\n\t\&quot;ȥ\&quot;:\&quot;z\&quot;,\n\t\&quot;ẕ\&quot;:\&quot;z\&quot;,\n\t\&quot;ᵶ\&quot;:\&quot;z\&quot;,\n\t\&quot;ᶎ\&quot;:\&quot;z\&quot;,\n\t\&quot;ʐ\&quot;:\&quot;z\&quot;,\n\t\&quot;ƶ\&quot;:\&quot;z\&quot;,\n\t\&quot;ɀ\&quot;:\&quot;z\&quot;,\n\t\&quot;ff\&quot;:\&quot;ff\&quot;,\n\t\&quot;ffi\&quot;:\&quot;ffi\&quot;,\n\t\&quot;ffl\&quot;:\&quot;ffl\&quot;,\n\t\&quot;fi\&quot;:\&quot;fi\&quot;,\n\t\&quot;fl\&quot;:\&quot;fl\&quot;,\n\t\&quot;ij\&quot;:\&quot;ij\&quot;,\n\t\&quot;œ\&quot;:\&quot;oe\&quot;,\n\t\&quot;st\&quot;:\&quot;st\&quot;,\n\t\&quot;ₐ\&quot;:\&quot;a\&quot;,\n\t\&quot;ₑ\&quot;:\&quot;e\&quot;,\n\t\&quot;ᵢ\&quot;:\&quot;i\&quot;,\n\t\&quot;ⱼ\&quot;:\&quot;j\&quot;,\n\t\&quot;ₒ\&quot;:\&quot;o\&quot;,\n\t\&quot;ᵣ\&quot;:\&quot;r\&quot;,\n\t\&quot;ᵤ\&quot;:\&quot;u\&quot;,\n\t\&quot;ᵥ\&quot;:\&quot;v\&quot;,\n\t\&quot;ₓ\&quot;:\&quot;x\&quot;,\n\t\&quot;Ё\&quot;:\&quot;YO\&quot;,\n\t\&quot;Й\&quot;:\&quot;I\&quot;,\n\t\&quot;Ц\&quot;:\&quot;TS\&quot;,\n\t\&quot;У\&quot;:\&quot;U\&quot;,\n\t\&quot;К\&quot;:\&quot;K\&quot;,\n\t\&quot;Е\&quot;:\&quot;E\&quot;,\n\t\&quot;Н\&quot;:\&quot;N\&quot;,\n\t\&quot;Г\&quot;:\&quot;G\&quot;,\n\t\&quot;Ш\&quot;:\&quot;SH\&quot;,\n\t\&quot;Щ\&quot;:\&quot;SCH\&quot;,\n\t\&quot;З\&quot;:\&quot;Z\&quot;,\n\t\&quot;Х\&quot;:\&quot;H\&quot;,\n\t\&quot;Ъ\&quot;:\&quot;'\&quot;,\n\t\&quot;ё\&quot;:\&quot;yo\&quot;,\n\t\&quot;й\&quot;:\&quot;i\&quot;,\n\t\&quot;ц\&quot;:\&quot;ts\&quot;,\n\t\&quot;у\&quot;:\&quot;u\&quot;,\n\t\&quot;к\&quot;:\&quot;k\&quot;,\n\t\&quot;е\&quot;:\&quot;e\&quot;,\n\t\&quot;н\&quot;:\&quot;n\&quot;,\n\t\&quot;г\&quot;:\&quot;g\&quot;,\n\t\&quot;ш\&quot;:\&quot;sh\&quot;,\n\t\&quot;щ\&quot;:\&quot;sch\&quot;,\n\t\&quot;з\&quot;:\&quot;z\&quot;,\n\t\&quot;х\&quot;:\&quot;h\&quot;,\n\t\&quot;ъ\&quot;:\&quot;'\&quot;,\n\t\&quot;Ф\&quot;:\&quot;F\&quot;,\n\t\&quot;Ы\&quot;:\&quot;I\&quot;,\n\t\&quot;В\&quot;:\&quot;V\&quot;,\n\t\&quot;А\&quot;:\&quot;a\&quot;,\n\t\&quot;П\&quot;:\&quot;P\&quot;,\n\t\&quot;Р\&quot;:\&quot;R\&quot;,\n\t\&quot;О\&quot;:\&quot;O\&quot;,\n\t\&quot;Л\&quot;:\&quot;L\&quot;,\n\t\&quot;Д\&quot;:\&quot;D\&quot;,\n\t\&quot;Ж\&quot;:\&quot;ZH\&quot;,\n\t\&quot;Э\&quot;:\&quot;E\&quot;,\n\t\&quot;ф\&quot;:\&quot;f\&quot;,\n\t\&quot;ы\&quot;:\&quot;i\&quot;,\n\t\&quot;в\&quot;:\&quot;v\&quot;,\n\t\&quot;а\&quot;:\&quot;a\&quot;,\n\t\&quot;п\&quot;:\&quot;p\&quot;,\n\t\&quot;р\&quot;:\&quot;r\&quot;,\n\t\&quot;о\&quot;:\&quot;o\&quot;,\n\t\&quot;л\&quot;:\&quot;l\&quot;,\n\t\&quot;д\&quot;:\&quot;d\&quot;,\n\t\&quot;ж\&quot;:\&quot;zh\&quot;,\n\t\&quot;э\&quot;:\&quot;e\&quot;,\n\t\&quot;Я\&quot;:\&quot;Ya\&quot;,\n\t\&quot;Ч\&quot;:\&quot;CH\&quot;,\n\t\&quot;С\&quot;:\&quot;S\&quot;,\n\t\&quot;М\&quot;:\&quot;M\&quot;,\n\t\&quot;И\&quot;:\&quot;I\&quot;,\n\t\&quot;Т\&quot;:\&quot;T\&quot;,\n\t\&quot;Ь\&quot;:\&quot;'\&quot;,\n\t\&quot;Б\&quot;:\&quot;B\&quot;,\n\t\&quot;Ю\&quot;:\&quot;YU\&quot;,\n\t\&quot;я\&quot;:\&quot;ya\&quot;,\n\t\&quot;ч\&quot;:\&quot;ch\&quot;,\n\t\&quot;с\&quot;:\&quot;s\&quot;,\n\t\&quot;м\&quot;:\&quot;m\&quot;,\n\t\&quot;и\&quot;:\&quot;i\&quot;,\n\t\&quot;т\&quot;:\&quot;t\&quot;,\n\t\&quot;ь\&quot;:\&quot;'\&quot;,\n\t\&quot;б\&quot;:\&quot;b\&quot;,\n\t\&quot;ю\&quot;:\&quot;yu\&quot;\n};\n\nexports.transliterate = function(str) {\n\treturn str.replace(/[^A-Za-z0-9\\[\\] ]/g,function(ch) {\n\t\treturn exports.transliterationPairs[ch] || ch\n\t});\n};\n\nexports.transliterateToSafeASCII = function(str) {\n\treturn str.replace(/[^\\x00-\\x7F]/g,function(ch) {\n\t\treturn exports.transliterationPairs[ch] || \&quot;\&quot;\n\t});\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/utils/utils.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/utils/utils.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/utils/utils.js\ntype: application/javascript\nmodule-type: utils\n\nVarious static utility functions.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar base64utf8 = require(\&quot;$:/core/modules/utils/base64-utf8/base64-utf8.module.js\&quot;);\n\n/*\nDisplay a message, in colour if we're on a terminal\n*/\nexports.log = function(text,colour) {\n\tconsole.log($tw.node ? exports.terminalColour(colour) + text + exports.terminalColour() : text);\n};\n\nexports.terminalColour = function(colour) {\n\tif(!$tw.browser &amp;&amp; $tw.node &amp;&amp; process.stdout.isTTY) {\n\t\tif(colour) {\n\t\t\tvar code = exports.terminalColourLookup[colour];\n\t\t\tif(code) {\n\t\t\t\treturn \&quot;\\x1b[\&quot; + code + \&quot;m\&quot;;\n\t\t\t}\n\t\t} else {\n\t\t\treturn \&quot;\\x1b[0m\&quot;; // Cancel colour\n\t\t}\n\t}\n\treturn \&quot;\&quot;;\n};\n\nexports.terminalColourLookup = {\n\t\&quot;black\&quot;: \&quot;0;30\&quot;,\n\t\&quot;red\&quot;: \&quot;0;31\&quot;,\n\t\&quot;green\&quot;: \&quot;0;32\&quot;,\n\t\&quot;brown/orange\&quot;: \&quot;0;33\&quot;,\n\t\&quot;blue\&quot;: \&quot;0;34\&quot;,\n\t\&quot;purple\&quot;: \&quot;0;35\&quot;,\n\t\&quot;cyan\&quot;: \&quot;0;36\&quot;,\n\t\&quot;light gray\&quot;: \&quot;0;37\&quot;\n};\n\n/*\nDisplay a warning, in colour if we're on a terminal\n*/\nexports.warning = function(text) {\n\texports.log(text,\&quot;brown/orange\&quot;);\n};\n\n/*\nLog a table of name: value pairs\n*/\nexports.logTable = function(data) {\n\tif(console.table) {\n\t\tconsole.table(data);\n\t} else {\n\t\t$tw.utils.each(data,function(value,name) {\n\t\t\tconsole.log(name + \&quot;: \&quot; + value);\n\t\t});\n\t}\n}\n\n/*\nReturn the integer represented by the str (string).\nReturn the dflt (default) parameter if str is not a base-10 number.\n*/\nexports.getInt = function(str,deflt) {\n\tvar i = parseInt(str,10);\n\treturn isNaN(i) ? deflt : i;\n}\n\n/*\nRepeatedly replaces a substring within a string. Like String.prototype.replace, but without any of the default special handling of $ sequences in the replace string\n*/\nexports.replaceString = function(text,search,replace) {\n\treturn text.replace(search,function() {\n\t\treturn replace;\n\t});\n};\n\n/*\nRepeats a string\n*/\nexports.repeat = function(str,count) {\n\tvar result = \&quot;\&quot;;\n\tfor(var t=0;t&lt;count;t++) {\n\t\tresult += str;\n\t}\n\treturn result;\n};\n\n/*\nTrim whitespace from the start and end of a string\nThanks to Steven Levithan, http://blog.stevenlevithan.com/archives/faster-trim-javascript\n*/\nexports.trim = function(str) {\n\tif(typeof str === \&quot;string\&quot;) {\n\t\treturn str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n\t} else {\n\t\treturn str;\n\t}\n};\n\nexports.trimPrefix = function(str,unwanted) {\n\tif(typeof str === \&quot;string\&quot; &amp;&amp; typeof unwanted === \&quot;string\&quot;) {\n\t\tif(unwanted === \&quot;\&quot;) {\n\t\t\treturn str.replace(/^\\s\\s*/, '');\n\t\t} else {\n\t\t\t// Safely regexp-escape the unwanted text\n\t\t\tunwanted = unwanted.replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&amp;');\n\t\t\tvar regex = new RegExp('^(' + unwanted + ')+');\n\t\t\treturn str.replace(regex, '');\n\t\t}\n\t} else {\n\t\treturn str;\n\t}\n};\n\nexports.trimSuffix = function(str,unwanted) {\n\tif(typeof str === \&quot;string\&quot; &amp;&amp; typeof unwanted === \&quot;string\&quot;) {\n\t\tif(unwanted === \&quot;\&quot;) {\n\t\t\treturn str.replace(/\\s\\s*$/, '');\n\t\t} else {\n\t\t\t// Safely regexp-escape the unwanted text\n\t\t\tunwanted = unwanted.replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&amp;');\n\t\t\tvar regex = new RegExp('(' + unwanted + ')+$');\n\t\t\treturn str.replace(regex, '');\n\t\t}\n\t} else {\n\t\treturn str;\n\t}\n};\n\n/*\nConvert a string to sentence case (ie capitalise first letter)\n*/\nexports.toSentenceCase = function(str) {\n\treturn (str || \&quot;\&quot;).replace(/^\\S/, function(c) {return c.toUpperCase();});\n}\n\n/*\nConvert a string to title case (ie capitalise each initial letter)\n*/\nexports.toTitleCase = function(str) {\n\treturn (str || \&quot;\&quot;).replace(/(^|\\s)\\S/g, function(c) {return c.toUpperCase();});\n}\n\t\n/*\nFind the line break preceding a given position in a string\nReturns position immediately after that line break, or the start of the string\n*/\nexports.findPrecedingLineBreak = function(text,pos) {\n\tvar result = text.lastIndexOf(\&quot;\\n\&quot;,pos - 1);\n\tif(result === -1) {\n\t\tresult = 0;\n\t} else {\n\t\tresult++;\n\t\tif(text.charAt(result) === \&quot;\\r\&quot;) {\n\t\t\tresult++;\n\t\t}\n\t}\n\treturn result;\n};\n\n/*\nFind the line break following a given position in a string\n*/\nexports.findFollowingLineBreak = function(text,pos) {\n\t// Cut to just past the following line break, or to the end of the text\n\tvar result = text.indexOf(\&quot;\\n\&quot;,pos);\n\tif(result === -1) {\n\t\tresult = text.length;\n\t} else {\n\t\tif(text.charAt(result) === \&quot;\\r\&quot;) {\n\t\t\tresult++;\n\t\t}\n\t}\n\treturn result;\n};\n\n/*\nReturn the number of keys in an object\n*/\nexports.count = function(object) {\n\treturn Object.keys(object || {}).length;\n};\n\n/*\nDetermine whether an array-item is an object-property\n*/\nexports.hopArray = function(object,array) {\n\tfor(var i=0; i&lt;array.length; i++) {\n\t\tif($tw.utils.hop(object,array[i])) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\n/*\nRemove entries from an array\n\tarray: array to modify\n\tvalue: a single value to remove, or an array of values to remove\n*/\nexports.removeArrayEntries = function(array,value) {\n\tvar t,p;\n\tif($tw.utils.isArray(value)) {\n\t\tfor(t=0; t&lt;value.length; t++) {\n\t\t\tp = array.indexOf(value[t]);\n\t\t\tif(p !== -1) {\n\t\t\t\tarray.splice(p,1);\n\t\t\t}\n\t\t}\n\t} else {\n\t\tp = array.indexOf(value);\n\t\tif(p !== -1) {\n\t\t\tarray.splice(p,1);\n\t\t}\n\t}\n};\n\n/*\nCheck whether any members of a hashmap are present in another hashmap\n*/\nexports.checkDependencies = function(dependencies,changes) {\n\tvar hit = false;\n\t$tw.utils.each(changes,function(change,title) {\n\t\tif($tw.utils.hop(dependencies,title)) {\n\t\t\thit = true;\n\t\t}\n\t});\n\treturn hit;\n};\n\nexports.extend = function(object /* [, src] */) {\n\t$tw.utils.each(Array.prototype.slice.call(arguments, 1), function(source) {\n\t\tif(source) {\n\t\t\tfor(var property in source) {\n\t\t\t\tobject[property] = source[property];\n\t\t\t}\n\t\t}\n\t});\n\treturn object;\n};\n\nexports.deepCopy = function(object) {\n\tvar result,t;\n\tif($tw.utils.isArray(object)) {\n\t\t// Copy arrays\n\t\tresult = object.slice(0);\n\t} else if(typeof object === \&quot;object\&quot;) {\n\t\tresult = {};\n\t\tfor(t in object) {\n\t\t\tif(object[t] !== undefined) {\n\t\t\t\tresult[t] = $tw.utils.deepCopy(object[t]);\n\t\t\t}\n\t\t}\n\t} else {\n\t\tresult = object;\n\t}\n\treturn result;\n};\n\nexports.extendDeepCopy = function(object,extendedProperties) {\n\tvar result = $tw.utils.deepCopy(object),t;\n\tfor(t in extendedProperties) {\n\t\tif(extendedProperties[t] !== undefined) {\n\t\t\tresult[t] = $tw.utils.deepCopy(extendedProperties[t]);\n\t\t}\n\t}\n\treturn result;\n};\n\nexports.deepFreeze = function deepFreeze(object) {\n\tvar property, key;\n\tif(object) {\n\t\tObject.freeze(object);\n\t\tfor(key in object) {\n\t\t\tproperty = object[key];\n\t\t\tif($tw.utils.hop(object,key) &amp;&amp; (typeof property === \&quot;object\&quot;) &amp;&amp; !Object.isFrozen(property)) {\n\t\t\t\tdeepFreeze(property);\n\t\t\t}\n\t\t}\n\t}\n};\n\nexports.slowInSlowOut = function(t) {\n\treturn (1 - ((Math.cos(t * Math.PI) + 1) / 2));\n};\n\nexports.formatDateString = function(date,template) {\n\tvar result = \&quot;\&quot;,\n\t\tt = template,\n\t\tmatches = [\n\t\t\t[/^0hh12/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getHours12(date));\n\t\t\t}],\n\t\t\t[/^wYYYY/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getYearForWeekNo(date),4);\n\t\t\t}],\n\t\t\t[/^hh12/, function() {\n\t\t\t\treturn $tw.utils.getHours12(date);\n\t\t\t}],\n\t\t\t[/^DDth/, function() {\n\t\t\t\treturn date.getDate() + $tw.utils.getDaySuffix(date);\n\t\t\t}],\n\t\t\t[/^YYYY/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getFullYear(),4);\n\t\t\t}],\n\t\t\t[/^aYYYY/, function() {\n\t\t\t\treturn $tw.utils.pad(Math.abs(date.getFullYear()),4);\n\t\t\t}],\n\t\t\t[/^\\{era:([^,\\|}]*)\\|([^}\\|]*)\\|([^}]*)\\}/, function(match) {\n\t\t\t\tvar year = date.getFullYear();\n\t\t\t\treturn year === 0 ? match[2] : (year &lt; 0 ? match[1] : match[3]);\n\t\t\t}],\n\t\t\t[/^0hh/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getHours());\n\t\t\t}],\n\t\t\t[/^0mm/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMinutes());\n\t\t\t}],\n\t\t\t[/^0ss/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getSeconds());\n\t\t\t}],\n\t\t\t[/^0XXX/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMilliseconds(),3);\n\t\t\t}],\n\t\t\t[/^0DD/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getDate());\n\t\t\t}],\n\t\t\t[/^0MM/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMonth()+1);\n\t\t\t}],\n\t\t\t[/^0WW/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getWeek(date));\n\t\t\t}],\n\t\t\t[/^ddd/, function() {\n\t\t\t\treturn $tw.language.getString(\&quot;Date/Short/Day/\&quot; + date.getDay());\n\t\t\t}],\n\t\t\t[/^mmm/, function() {\n\t\t\t\treturn $tw.language.getString(\&quot;Date/Short/Month/\&quot; + (date.getMonth() + 1));\n\t\t\t}],\n\t\t\t[/^DDD/, function() {\n\t\t\t\treturn $tw.language.getString(\&quot;Date/Long/Day/\&quot; + date.getDay());\n\t\t\t}],\n\t\t\t[/^MMM/, function() {\n\t\t\t\treturn $tw.language.getString(\&quot;Date/Long/Month/\&quot; + (date.getMonth() + 1));\n\t\t\t}],\n\t\t\t[/^TZD/, function() {\n\t\t\t\tvar tz = date.getTimezoneOffset(),\n\t\t\t\tatz = Math.abs(tz);\n\t\t\t\treturn (tz &lt; 0 ? '+' : '-') + $tw.utils.pad(Math.floor(atz / 60)) + ':' + $tw.utils.pad(atz % 60);\n\t\t\t}],\n\t\t\t[/^wYY/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getYearForWeekNo(date) - 2000);\n\t\t\t}],\n\t\t\t[/^[ap]m/, function() {\n\t\t\t\treturn $tw.utils.getAmPm(date).toLowerCase();\n\t\t\t}],\n\t\t\t[/^hh/, function() {\n\t\t\t\treturn date.getHours();\n\t\t\t}],\n\t\t\t[/^mm/, function() {\n\t\t\t\treturn date.getMinutes();\n\t\t\t}],\n\t\t\t[/^ss/, function() {\n\t\t\t\treturn date.getSeconds();\n\t\t\t}],\n\t\t\t[/^XXX/, function() {\n\t\t\t\treturn date.getMilliseconds();\n\t\t\t}],\n\t\t\t[/^[AP]M/, function() {\n\t\t\t\treturn $tw.utils.getAmPm(date).toUpperCase();\n\t\t\t}],\n\t\t\t[/^DD/, function() {\n\t\t\t\treturn date.getDate();\n\t\t\t}],\n\t\t\t[/^MM/, function() {\n\t\t\t\treturn date.getMonth() + 1;\n\t\t\t}],\n\t\t\t[/^WW/, function() {\n\t\t\t\treturn $tw.utils.getWeek(date);\n\t\t\t}],\n\t\t\t[/^YY/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getFullYear() - 2000);\n\t\t\t}]\n\t\t];\n\t// If the user wants everything in UTC, shift the datestamp\n\t// Optimize for format string that essentially means\n\t// 'return raw UTC (tiddlywiki style) date string.'\n\tif(t.indexOf(\&quot;[UTC]\&quot;) == 0 ) {\n\t\tif(t == \&quot;[UTC]YYYY0MM0DD0hh0mm0ssXXX\&quot;)\n\t\t\treturn $tw.utils.stringifyDate(new Date());\n\t\tvar offset = date.getTimezoneOffset() ; // in minutes\n\t\tdate = new Date(date.getTime()+offset*60*1000) ;\n\t\tt = t.substr(5) ;\n\t}\n\twhile(t.length){\n\t\tvar matchString = \&quot;\&quot;;\n\t\t$tw.utils.each(matches, function(m) {\n\t\t\tvar match = m[0].exec(t);\n\t\t\tif(match) {\n\t\t\t\tmatchString = m[1].call(null,match);\n\t\t\t\tt = t.substr(match[0].length);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\tif(matchString) {\n\t\t\tresult += matchString;\n\t\t} else {\n\t\t\tresult += t.charAt(0);\n\t\t\tt = t.substr(1);\n\t\t}\n\t}\n\tresult = result.replace(/\\\\(.)/g,\&quot;$1\&quot;);\n\treturn result;\n};\n\nexports.getAmPm = function(date) {\n\treturn $tw.language.getString(\&quot;Date/Period/\&quot; + (date.getHours() &gt;= 12 ? \&quot;pm\&quot; : \&quot;am\&quot;));\n};\n\nexports.getDaySuffix = function(date) {\n\treturn $tw.language.getString(\&quot;Date/DaySuffix/\&quot; + date.getDate());\n};\n\nexports.getWeek = function(date) {\n\tvar dt = new Date(date.getTime());\n\tvar d = dt.getDay();\n\tif(d === 0) {\n\t\td = 7; // JavaScript Sun=0, ISO Sun=7\n\t}\n\tdt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week to calculate weekNo\n\tvar x = new Date(dt.getFullYear(),0,1);\n\tvar n = Math.floor((dt.getTime() - x.getTime()) / 86400000);\n\treturn Math.floor(n / 7) + 1;\n};\n\nexports.getYearForWeekNo = function(date) {\n\tvar dt = new Date(date.getTime());\n\tvar d = dt.getDay();\n\tif(d === 0) {\n\t\td = 7; // JavaScript Sun=0, ISO Sun=7\n\t}\n\tdt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week\n\treturn dt.getFullYear();\n};\n\nexports.getHours12 = function(date) {\n\tvar h = date.getHours();\n\treturn h &gt; 12 ? h-12 : ( h &gt; 0 ? h : 12 );\n};\n\n/*\nConvert a date delta in milliseconds into a string representation of \&quot;23 seconds ago\&quot;, \&quot;27 minutes ago\&quot; etc.\n\tdelta: delta in milliseconds\nReturns an object with these members:\n\tdescription: string describing the delta period\n\tupdatePeriod: time in millisecond until the string will be inaccurate\n*/\nexports.getRelativeDate = function(delta) {\n\tvar futurep = false;\n\tif(delta &lt; 0) {\n\t\tdelta = -1 * delta;\n\t\tfuturep = true;\n\t}\n\tvar units = [\n\t\t{name: \&quot;Years\&quot;, duration: 365 * 24 * 60 * 60 * 1000},\n\t\t{name: \&quot;Months\&quot;, duration: (365/12) * 24 * 60 * 60 * 1000},\n\t\t{name: \&quot;Days\&quot;, duration: 24 * 60 * 60 * 1000},\n\t\t{name: \&quot;Hours\&quot;, duration: 60 * 60 * 1000},\n\t\t{name: \&quot;Minutes\&quot;, duration: 60 * 1000},\n\t\t{name: \&quot;Seconds\&quot;, duration: 1000}\n\t];\n\tfor(var t=0; t&lt;units.length; t++) {\n\t\tvar result = Math.floor(delta / units[t].duration);\n\t\tif(result &gt;= 2) {\n\t\t\treturn {\n\t\t\t\tdelta: delta,\n\t\t\t\tdescription: $tw.language.getString(\n\t\t\t\t\t\&quot;RelativeDate/\&quot; + (futurep ? \&quot;Future\&quot; : \&quot;Past\&quot;) + \&quot;/\&quot; + units[t].name,\n\t\t\t\t\t{variables:\n\t\t\t\t\t\t{period: result.toString()}\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t\tupdatePeriod: units[t].duration\n\t\t\t};\n\t\t}\n\t}\n\treturn {\n\t\tdelta: delta,\n\t\tdescription: $tw.language.getString(\n\t\t\t\&quot;RelativeDate/\&quot; + (futurep ? \&quot;Future\&quot; : \&quot;Past\&quot;) + \&quot;/Second\&quot;,\n\t\t\t{variables:\n\t\t\t\t{period: \&quot;1\&quot;}\n\t\t\t}\n\t\t),\n\t\tupdatePeriod: 1000\n\t};\n};\n\n// Convert &amp; to \&quot;&amp;amp;\&quot;, &lt; to \&quot;&amp;lt;\&quot;, &gt; to \&quot;&amp;gt;\&quot;, \&quot; to \&quot;&amp;quot;\&quot;\nexports.htmlEncode = function(s) {\n\tif(s) {\n\t\treturn s.toString().replace(/&amp;/mg,\&quot;&amp;amp;\&quot;).replace(/&lt;/mg,\&quot;&amp;lt;\&quot;).replace(/&gt;/mg,\&quot;&amp;gt;\&quot;).replace(/\\\&quot;/mg,\&quot;&amp;quot;\&quot;);\n\t} else {\n\t\treturn \&quot;\&quot;;\n\t}\n};\n\n// Converts all HTML entities to their character equivalents\nexports.entityDecode = function(s) {\n\tvar converter = String.fromCodePoint || String.fromCharCode,\n\t\te = s.substr(1,s.length-2), // Strip the &amp; and the ;\n\t\tc;\n\tif(e.charAt(0) === \&quot;#\&quot;) {\n\t\tif(e.charAt(1) === \&quot;x\&quot; || e.charAt(1) === \&quot;X\&quot;) {\n\t\t\tc = parseInt(e.substr(2),16);\n\t\t} else {\n\t\t\tc = parseInt(e.substr(1),10);\n\t\t}\n\t\tif(isNaN(c)) {\n\t\t\treturn s;\n\t\t} else {\n\t\t\treturn converter(c);\n\t\t}\n\t} else {\n\t\tc = $tw.config.htmlEntities[e];\n\t\tif(c) {\n\t\t\treturn converter(c);\n\t\t} else {\n\t\t\treturn s; // Couldn't convert it as an entity, just return it raw\n\t\t}\n\t}\n};\n\nexports.unescapeLineBreaks = function(s) {\n\treturn s.replace(/\\\\n/mg,\&quot;\\n\&quot;).replace(/\\\\b/mg,\&quot; \&quot;).replace(/\\\\s/mg,\&quot;\\\\\&quot;).replace(/\\r/mg,\&quot;\&quot;);\n};\n\n/*\n * Returns an escape sequence for given character. Uses \\x for characters &lt;=\n * 0xFF to save space, \\u for the rest.\n *\n * The code needs to be in sync with th code template in the compilation\n * function for \&quot;action\&quot; nodes.\n */\n// Copied from peg.js, thanks to David Majda\nexports.escape = function(ch) {\n\tvar charCode = ch.charCodeAt(0);\n\tif(charCode &lt;= 0xFF) {\n\t\treturn '\\\\x' + $tw.utils.pad(charCode.toString(16).toUpperCase());\n\t} else {\n\t\treturn '\\\\u' + $tw.utils.pad(charCode.toString(16).toUpperCase(),4);\n\t}\n};\n\n// Turns a string into a legal JavaScript string\n// Copied from peg.js, thanks to David Majda\nexports.stringify = function(s, rawUnicode) {\n\t/*\n\t* ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a string\n\t* literal except for the closing quote character, backslash, carriage return,\n\t* line separator, paragraph separator, and line feed. Any character may\n\t* appear in the form of an escape sequence.\n\t*\n\t* For portability, we also escape all non-ASCII characters.\n\t*/\n\tvar regex = rawUnicode ? /[\\x00-\\x1f]/g : /[\\x00-\\x1f\\x80-\\uFFFF]/g;\n\treturn (s || \&quot;\&quot;)\n\t\t.replace(/\\\\/g, '\\\\\\\\') // backslash\n\t\t.replace(/\&quot;/g, '\\\\\&quot;') // double quote character\n\t\t.replace(/'/g, \&quot;\\\\'\&quot;) // single quote character\n\t\t.replace(/\\r/g, '\\\\r') // carriage return\n\t\t.replace(/\\n/g, '\\\\n') // line feed\n\t\t.replace(regex, exports.escape); // non-ASCII characters\n};\n\n// Turns a string into a legal JSON string\n// Derived from peg.js, thanks to David Majda\nexports.jsonStringify = function(s, rawUnicode) {\n\t// See http://www.json.org/\n\tvar regex = rawUnicode ? /[\\x00-\\x1f]/g : /[\\x00-\\x1f\\x80-\\uFFFF]/g;\n\treturn (s || \&quot;\&quot;)\n\t\t.replace(/\\\\/g, '\\\\\\\\') // backslash\n\t\t.replace(/\&quot;/g, '\\\\\&quot;') // double quote character\n\t\t.replace(/\\r/g, '\\\\r') // carriage return\n\t\t.replace(/\\n/g, '\\\\n') // line feed\n\t\t.replace(/\\x08/g, '\\\\b') // backspace\n\t\t.replace(/\\x0c/g, '\\\\f') // formfeed\n\t\t.replace(/\\t/g, '\\\\t') // tab\n\t\t.replace(regex,function(s) {\n\t\t\treturn '\\\\u' + $tw.utils.pad(s.charCodeAt(0).toString(16).toUpperCase(),4);\n\t\t}); // non-ASCII characters\n};\n\n/*\nEscape the RegExp special characters with a preceding backslash\n*/\nexports.escapeRegExp = function(s) {\n return s.replace(/[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}]/g, '\\\\$&amp;');\n};\n\n// Checks whether a link target is external, i.e. not a tiddler title\nexports.isLinkExternal = function(to) {\n\tvar externalRegExp = /^(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\\s&lt;&gt;{}\\[\\]`|\&quot;\\\\^]+(?:\\/|\\b)/i;\n\treturn externalRegExp.test(to);\n};\n\nexports.nextTick = function(fn) {\n/*global window: false */\n\tif(typeof process === \&quot;undefined\&quot;) {\n\t\t// Apparently it would be faster to use postMessage - http://dbaron.org/log/20100309-faster-timeouts\n\t\twindow.setTimeout(fn,4);\n\t} else {\n\t\tprocess.nextTick(fn);\n\t}\n};\n\n/*\nConvert a hyphenated CSS property name into a camel case one\n*/\nexports.unHyphenateCss = function(propName) {\n\treturn propName.replace(/-([a-z])/gi, function(match0,match1) {\n\t\treturn match1.toUpperCase();\n\t});\n};\n\n/*\nConvert a camelcase CSS property name into a dashed one (\&quot;backgroundColor\&quot; --&gt; \&quot;background-color\&quot;)\n*/\nexports.hyphenateCss = function(propName) {\n\treturn propName.replace(/([A-Z])/g, function(match0,match1) {\n\t\treturn \&quot;-\&quot; + match1.toLowerCase();\n\t});\n};\n\n/*\nParse a text reference of one of these forms:\n* title\n* !!field\n* title!!field\n* title##index\n* etc\nReturns an object with the following fields, all optional:\n* title: tiddler title\n* field: tiddler field name\n* index: JSON property index\n*/\nexports.parseTextReference = function(textRef) {\n\t// Separate out the title, field name and/or JSON indices\n\tvar reTextRef = /(?:(.*?)!!(.+))|(?:(.*?)##(.+))|(.*)/mg,\n\t\tmatch = reTextRef.exec(textRef),\n\t\tresult = {};\n\tif(match &amp;&amp; reTextRef.lastIndex === textRef.length) {\n\t\t// Return the parts\n\t\tif(match[1]) {\n\t\t\tresult.title = match[1];\n\t\t}\n\t\tif(match[2]) {\n\t\t\tresult.field = match[2];\n\t\t}\n\t\tif(match[3]) {\n\t\t\tresult.title = match[3];\n\t\t}\n\t\tif(match[4]) {\n\t\t\tresult.index = match[4];\n\t\t}\n\t\tif(match[5]) {\n\t\t\tresult.title = match[5];\n\t\t}\n\t} else {\n\t\t// If we couldn't parse it\n\t\tresult.title = textRef\n\t}\n\treturn result;\n};\n\n/*\nChecks whether a string is a valid fieldname\n*/\nexports.isValidFieldName = function(name) {\n\tif(!name || typeof name !== \&quot;string\&quot;) {\n\t\treturn false;\n\t}\n\tname = name.toLowerCase().trim();\n\tvar fieldValidatorRegEx = /^[a-z0-9\\-\\._]+$/mg;\n\treturn fieldValidatorRegEx.test(name);\n};\n\n/*\nExtract the version number from the meta tag or from the boot file\n*/\n\n// Browser version\nexports.extractVersionInfo = function() {\n\tif($tw.packageInfo) {\n\t\treturn $tw.packageInfo.version;\n\t} else {\n\t\tvar metatags = document.getElementsByTagName(\&quot;meta\&quot;);\n\t\tfor(var t=0; t&lt;metatags.length; t++) {\n\t\t\tvar m = metatags[t];\n\t\t\tif(m.name === \&quot;tiddlywiki-version\&quot;) {\n\t\t\t\treturn m.content;\n\t\t\t}\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nGet the animation duration in ms\n*/\nexports.getAnimationDuration = function() {\n\treturn parseInt($tw.wiki.getTiddlerText(\&quot;$:/config/AnimationDuration\&quot;,\&quot;400\&quot;),10) || 0;\n};\n\n/*\nHash a string to a number\nDerived from http://stackoverflow.com/a/15710692\n*/\nexports.hashString = function(str) {\n\treturn str.split(\&quot;\&quot;).reduce(function(a,b) {\n\t\ta = ((a &lt;&lt; 5) - a) + b.charCodeAt(0);\n\t\treturn a &amp; a;\n\t},0);\n};\n\n/*\nDecode a base64 string\n*/\nexports.base64Decode = function(string64) {\n\treturn base64utf8.base64.decode.call(base64utf8,string64);\n};\n\n/*\nEncode a string to base64\n*/\nexports.base64Encode = function(string64) {\n\treturn base64utf8.base64.encode.call(base64utf8,string64);\n};\n\n/*\nConvert a hashmap into a tiddler dictionary format sequence of name:value pairs\n*/\nexports.makeTiddlerDictionary = function(data) {\n\tvar output = [];\n\tfor(var name in data) {\n\t\toutput.push(name + \&quot;: \&quot; + data[name]);\n\t}\n\treturn output.join(\&quot;\\n\&quot;);\n};\n\n/*\nHigh resolution microsecond timer for profiling\n*/\nexports.timer = function(base) {\n\tvar m;\n\tif($tw.node) {\n\t\tvar r = process.hrtime();\n\t\tm = r[0] * 1e3 + (r[1] / 1e6);\n\t} else if(window.performance) {\n\t\tm = performance.now();\n\t} else {\n\t\tm = Date.now();\n\t}\n\tif(typeof base !== \&quot;undefined\&quot;) {\n\t\tm = m - base;\n\t}\n\treturn m;\n};\n\n/*\nConvert text and content type to a data URI\n*/\nexports.makeDataUri = function(text,type,_canonical_uri) {\n\ttype = type || \&quot;text/vnd.tiddlywiki\&quot;;\n\tvar typeInfo = $tw.config.contentTypeInfo[type] || $tw.config.contentTypeInfo[\&quot;text/plain\&quot;],\n\t\tisBase64 = typeInfo.encoding === \&quot;base64\&quot;,\n\t\tparts = [];\n\tif(_canonical_uri) {\n\t\tparts.push(_canonical_uri);\n\t} else {\n\t\tparts.push(\&quot;data:\&quot;);\n\t\tparts.push(type);\n\t\tparts.push(isBase64 ? \&quot;;base64\&quot; : \&quot;\&quot;);\n\t\tparts.push(\&quot;,\&quot;);\n\t\tparts.push(isBase64 ? text : encodeURIComponent(text));\t\t\n\t}\n\treturn parts.join(\&quot;\&quot;);\n};\n\n/*\nUseful for finding out the fully escaped CSS selector equivalent to a given tag. For example:\n\n$tw.utils.tagToCssSelector(\&quot;$:/tags/Stylesheet\&quot;) --&gt; tc-tagged-\\%24\\%3A\\%2Ftags\\%2FStylesheet\n*/\nexports.tagToCssSelector = function(tagName) {\n\treturn \&quot;tc-tagged-\&quot; + encodeURIComponent(tagName).replace(/[!\&quot;#$%&amp;'()*+,\\-./:;&lt;=&gt;?@[\\\\\\]^`{\\|}~,]/mg,function(c) {\n\t\treturn \&quot;\\\\\&quot; + c;\n\t});\n};\n\n/*\nIE does not have sign function\n*/\nexports.sign = Math.sign || function(x) {\n\tx = +x; // convert to a number\n\tif (x === 0 || isNaN(x)) {\n\t\treturn x;\n\t}\n\treturn x &gt; 0 ? 1 : -1;\n};\n\n/*\nIE does not have an endsWith function\n*/\nexports.strEndsWith = function(str,ending,position) {\n\tif(str.endsWith) {\n\t\treturn str.endsWith(ending,position);\n\t} else {\n\t\tif (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position &gt; str.length) {\n\t\t\tposition = str.length;\n\t\t}\n\t\tposition -= ending.length;\n\t\tvar lastIndex = str.indexOf(ending, position);\n\t\treturn lastIndex !== -1 &amp;&amp; lastIndex === position;\n\t}\n};\n\n/*\nReturn system information useful for debugging\n*/\nexports.getSystemInfo = function(str,ending,position) {\n\tvar results = [],\n\t\tsave = function(desc,value) {\n\t\t\tresults.push(desc + \&quot;: \&quot; + value);\n\t\t};\n\tif($tw.browser) {\n\t\tsave(\&quot;User Agent\&quot;,navigator.userAgent);\n\t\tsave(\&quot;Online Status\&quot;,window.navigator.onLine);\n\t}\n\tif($tw.node) {\n\t\tsave(\&quot;Node Version\&quot;,process.version);\n\t}\n\treturn results.join(\&quot;\\n\&quot;);\n};\n\nexports.parseNumber = function(str) {\n\treturn parseFloat(str) || 0;\n};\n\nexports.parseInt = function(str) {\n\treturn parseInt(str,10) || 0;\n};\n\nexports.stringifyNumber = function(num) {\n\treturn num + \&quot;\&quot;;\n};\n\nexports.makeCompareFunction = function(type,options) {\n\toptions = options || {};\n\tvar gt = options.invert ? -1 : +1,\n\t\tlt = options.invert ? +1 : -1,\n\t\tcompare = function(a,b) {\n\t\t\tif(a &gt; b) {\n\t\t\t\treturn gt ;\n\t\t\t} else if(a &lt; b) {\n\t\t\t\treturn lt;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t},\n\t\ttypes = {\n\t\t\t\&quot;number\&quot;: function(a,b) {\n\t\t\t\treturn compare($tw.utils.parseNumber(a),$tw.utils.parseNumber(b));\n\t\t\t},\n\t\t\t\&quot;integer\&quot;: function(a,b) {\n\t\t\t\treturn compare($tw.utils.parseInt(a),$tw.utils.parseInt(b));\n\t\t\t},\n\t\t\t\&quot;string\&quot;: function(a,b) {\n\t\t\t\treturn compare(\&quot;\&quot; + a,\&quot;\&quot; +b);\n\t\t\t},\n\t\t\t\&quot;date\&quot;: function(a,b) {\n\t\t\t\tvar dateA = $tw.utils.parseDate(a),\n\t\t\t\t\tdateB = $tw.utils.parseDate(b);\n\t\t\t\tif(!isFinite(dateA)) {\n\t\t\t\t\tdateA = new Date(0);\n\t\t\t\t}\n\t\t\t\tif(!isFinite(dateB)) {\n\t\t\t\t\tdateB = new Date(0);\n\t\t\t\t}\n\t\t\t\treturn compare(dateA,dateB);\n\t\t\t},\n\t\t\t\&quot;version\&quot;: function(a,b) {\n\t\t\t\treturn $tw.utils.compareVersions(a,b);\n\t\t\t}\n\t\t};\n\treturn (types[type] || types[options.defaultType] || types.number);\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&quot;
},
&quot;$:/core/modules/widgets/action-confirm.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/action-confirm.js&quot;,
&quot;text&quot;: &quot;/*\\\n\ntitle: $:/core/modules/widgets/action-confirm.js\ntype: application/javascript\nmodule-type: widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar ConfirmWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nConfirmWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nConfirmWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.parentDomNode = parent;\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nConfirmWidget.prototype.execute = function() {\n\tthis.message = this.getAttribute(\&quot;$message\&quot;,$tw.language.getString(\&quot;ConfirmAction\&quot;));\n\tthis.prompt = (this.getAttribute(\&quot;$prompt\&quot;,\&quot;yes\&quot;) == \&quot;no\&quot; ? false : true);\n\tthis.makeChildWidgets();\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nConfirmWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\&quot;$message\&quot;] || changedAttributes[\&quot;$prompt\&quot;]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nConfirmWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar invokeActions = true,\n\t\thandled = true;\n\tif(this.prompt) {\n\t\tinvokeActions = confirm(this.message);\n\t}\n\tif(invokeActions) {\n\t\thandled = this.invokeActions(triggeringWidget,event);\n\t}\n\treturn handled;\n};\n\nConfirmWidget.prototype.allowActionPropagation = function() {\n\treturn false;\n};\n\nexports[\&quot;action-confirm\&quot;] = ConfirmWidget;\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/action-createtiddler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/action-createtiddler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/action-createtiddler.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to create a new tiddler with a unique name and specified fields.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw:false, require:false, exports:false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar CreateTiddlerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nCreateTiddlerWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nCreateTiddlerWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nCreateTiddlerWidget.prototype.execute = function() {\n\tthis.actionBaseTitle = this.getAttribute(\&quot;$basetitle\&quot;);\n\tthis.hasBase = !!this.actionBaseTitle;\n\tthis.actionSaveTitle = this.getAttribute(\&quot;$savetitle\&quot;);\n\tthis.actionSaveDraftTitle = this.getAttribute(\&quot;$savedrafttitle\&quot;);\n\tthis.actionTimestamp = this.getAttribute(\&quot;$timestamp\&quot;,\&quot;yes\&quot;) === \&quot;yes\&quot;;\n\t//Following params are new since 5.1.22\n\tthis.actionTemplate = this.getAttribute(\&quot;$template\&quot;);\n\tthis.useTemplate = !!this.actionTemplate;\n\tthis.actionOverwrite = this.getAttribute(\&quot;$overwrite\&quot;,\&quot;no\&quot;);\n\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nCreateTiddlerWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif($tw.utils.count(changedAttributes) &gt; 0) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nCreateTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar title = this.wiki.getTiddlerText(\&quot;$:/language/DefaultNewTiddlerTitle\&quot;), // Get the initial new-tiddler title\n\t\tfields = {},\n\t\tcreationFields,\n\t\tmodificationFields;\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.charAt(0) !== \&quot;$\&quot;) {\n\t\t\tfields[name] = attribute;\n\t\t}\n\t});\n\tif(this.actionTimestamp) {\n\t\tcreationFields = this.wiki.getCreationFields();\n\t\tmodificationFields = this.wiki.getModificationFields();\n\t}\n\tif(this.hasBase &amp;&amp; this.actionOverwrite === \&quot;no\&quot;) {\n\t\ttitle = this.wiki.generateNewTitle(this.actionBaseTitle);\n\t} else if (this.hasBase &amp;&amp; this.actionOverwrite === \&quot;yes\&quot;) {\n\t\ttitle = this.actionBaseTitle\n\t}\n\t// NO $basetitle BUT $template parameter is available\n\t// the title MUST be unique, otherwise the template would be overwritten\n\tif (!this.hasBase &amp;&amp; this.useTemplate) {\n\t\ttitle = this.wiki.generateNewTitle(this.actionTemplate);\n\t} else if (!this.hasBase &amp;&amp; !this.useTemplate) {\n\t\t// If NO $basetitle AND NO $template use initial title\n\t\t// DON'T overwrite any stuff\n\t\ttitle = this.wiki.generateNewTitle(title);\n\t}\n\tvar templateTiddler = this.wiki.getTiddler(this.actionTemplate) || {};\n\tvar tiddler = this.wiki.addTiddler(new $tw.Tiddler(templateTiddler.fields,creationFields,fields,modificationFields,{title: title}));\n\tif(this.actionSaveTitle) {\n\t\tthis.wiki.setTextReference(this.actionSaveTitle,title,this.getVariable(\&quot;currentTiddler\&quot;));\n\t}\n\tif(this.actionSaveDraftTitle) {\n\t\tthis.wiki.setTextReference(this.actionSaveDraftTitle,this.wiki.generateDraftTitle(title),this.getVariable(\&quot;currentTiddler\&quot;));\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\&quot;action-createtiddler\&quot;] = CreateTiddlerWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/action-deletefield.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/action-deletefield.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/action-deletefield.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to delete fields of a tiddler.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar DeleteFieldWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDeleteFieldWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDeleteFieldWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nDeleteFieldWidget.prototype.execute = function() {\n\tthis.actionTiddler = this.getAttribute(\&quot;$tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tthis.actionField = this.getAttribute(\&quot;$field\&quot;);\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nDeleteFieldWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\&quot;$tiddler\&quot;]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nDeleteFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar self = this,\n\t\ttiddler = this.wiki.getTiddler(self.actionTiddler),\n\t\tremoveFields = {},\n\t\thasChanged = false;\n\tif(this.actionField &amp;&amp; tiddler) {\n\t\tremoveFields[this.actionField] = undefined;\n\t\tif(this.actionField in tiddler.fields) {\n\t\t\thasChanged = true;\n\t\t}\n\t}\n\tif(tiddler) {\n\t\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\t\tif(name.charAt(0) !== \&quot;$\&quot; &amp;&amp; name !== \&quot;title\&quot;) {\n\t\t\t\tremoveFields[name] = undefined;\n\t\t\t\thasChanged = true;\n\t\t\t}\n\t\t});\n\t\tif(hasChanged) {\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),tiddler,removeFields,this.wiki.getModificationFields()));\t\t\t\n\t\t}\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\&quot;action-deletefield\&quot;] = DeleteFieldWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/action-deletetiddler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/action-deletetiddler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/action-deletetiddler.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to delete a tiddler.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar DeleteTiddlerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDeleteTiddlerWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDeleteTiddlerWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nDeleteTiddlerWidget.prototype.execute = function() {\n\tthis.actionFilter = this.getAttribute(\&quot;$filter\&quot;);\n\tthis.actionTiddler = this.getAttribute(\&quot;$tiddler\&quot;);\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nDeleteTiddlerWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\&quot;$filter\&quot;] || changedAttributes[\&quot;$tiddler\&quot;]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nDeleteTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar tiddlers = [];\n\tif(this.actionFilter) {\n\t\ttiddlers = this.wiki.filterTiddlers(this.actionFilter,this);\n\t}\n\tif(this.actionTiddler) {\n\t\ttiddlers.push(this.actionTiddler);\n\t}\n\tfor(var t=0; t&lt;tiddlers.length; t++) {\n\t\tthis.wiki.deleteTiddler(tiddlers[t]);\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\&quot;action-deletetiddler\&quot;] = DeleteTiddlerWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/action-listops.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/action-listops.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/action-listops.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to apply list operations to any tiddler field (defaults to the 'list' field of the current tiddler)\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\nvar ActionListopsWidget = function(parseTreeNode, options) {\n\tthis.initialise(parseTreeNode, options);\n};\n/**\n * Inherit from the base widget class\n */\nActionListopsWidget.prototype = new Widget();\n/**\n * Render this widget into the DOM\n */\nActionListopsWidget.prototype.render = function(parent, nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n/**\n * Compute the internal state of the widget\n */\nActionListopsWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.target = this.getAttribute(\&quot;$tiddler\&quot;, this.getVariable(\n\t\t\&quot;currentTiddler\&quot;));\n\tthis.filter = this.getAttribute(\&quot;$filter\&quot;);\n\tthis.subfilter = this.getAttribute(\&quot;$subfilter\&quot;);\n\tthis.listField = this.getAttribute(\&quot;$field\&quot;, \&quot;list\&quot;);\n\tthis.listIndex = this.getAttribute(\&quot;$index\&quot;);\n\tthis.filtertags = this.getAttribute(\&quot;$tags\&quot;);\n};\n/**\n * \tRefresh the widget by ensuring our attributes are up to date\n */\nActionListopsWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.$tiddler || changedAttributes.$filter ||\n\t\tchangedAttributes.$subfilter || changedAttributes.$field ||\n\t\tchangedAttributes.$index || changedAttributes.$tags) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n/**\n * \tInvoke the action associated with this widget\n */\nActionListopsWidget.prototype.invokeAction = function(triggeringWidget,\n\tevent) {\n\t//Apply the specified filters to the lists\n\tvar field = this.listField,\n\t\tindex,\n\t\ttype = \&quot;!!\&quot;,\n\t\tlist = this.listField;\n\tif(this.listIndex) {\n\t\tfield = undefined;\n\t\tindex = this.listIndex;\n\t\ttype = \&quot;##\&quot;;\n\t\tlist = this.listIndex;\n\t}\n\tif(this.filter) {\n\t\tthis.wiki.setText(this.target, field, index, $tw.utils.stringifyList(\n\t\t\tthis.wiki\n\t\t\t.filterTiddlers(this.filter, this)));\n\t}\n\tif(this.subfilter) {\n\t\tvar subfilter = \&quot;[list[\&quot; + this.target + type + list + \&quot;]] \&quot; + this.subfilter;\n\t\tthis.wiki.setText(this.target, field, index, $tw.utils.stringifyList(\n\t\t\tthis.wiki\n\t\t\t.filterTiddlers(subfilter, this)));\n\t}\n\tif(this.filtertags) {\n\t\tvar tiddler = this.wiki.getTiddler(this.target),\n\t\t\toldtags = tiddler ? (tiddler.fields.tags || []).slice(0) : [],\n\t\t\ttagfilter = \&quot;[list[\&quot; + this.target + \&quot;!!tags]] \&quot; + this.filtertags,\n\t\t\tnewtags = this.wiki.filterTiddlers(tagfilter,this);\n\t\tif($tw.utils.stringifyList(oldtags.sort()) !== $tw.utils.stringifyList(newtags.sort())) {\n\t\t\tthis.wiki.setText(this.target,\&quot;tags\&quot;,undefined,$tw.utils.stringifyList(newtags));\t\t\t\n\t\t}\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\&quot;action-listops\&quot;] = ActionListopsWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/action-log.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/action-log.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/action-log.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to log debug messages\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar LogWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nLogWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nLogWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\nLogWidget.prototype.execute = function(){\n\tthis.message = this.getAttribute(\&quot;$$message\&quot;,\&quot;debug\&quot;);\n\tthis.logAll = this.getAttribute(\&quot;$$all\&quot;,\&quot;no\&quot;) === \&quot;yes\&quot; ? true : false;\n\tthis.filter = this.getAttribute(\&quot;$$filter\&quot;);\n}\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nLogWidget.prototype.refresh = function(changedTiddlers) {\n\tthis.refreshSelf();\n\treturn true;\n};\n\n/*\nInvoke the action associated with this widget\n*/\nLogWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tthis.log();\n\treturn true; // Action was invoked\n};\n\nLogWidget.prototype.log = function() {\n\tvar data = {},\n\t\tdataCount,\n\t\tallVars = {},\n\t\tfilteredVars;\n\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.substring(0,2) !== \&quot;$$\&quot;) {\n\t\t\tdata[name] = attribute;\n\t\t}\t\t\n\t});\n\n\tfor(var v in this.variables) {\n\t\tallVars[v] = this.getVariable(v,{defaultValue:\&quot;\&quot;});\n\t}\t\n\tif(this.filter) {\n\t\tfilteredVars = this.wiki.compileFilter(this.filter).call(this.wiki,this.wiki.makeTiddlerIterator(allVars));\n\t\t$tw.utils.each(filteredVars,function(name) {\n\t\t\tdata[name] = allVars[name];\n\t\t});\t\t\n\t}\n\tdataCount = $tw.utils.count(data);\n\n\tconsole.group(this.message);\n\tif(dataCount &gt; 0) {\n\t\t$tw.utils.logTable(data);\n\t}\n\tif(this.logAll || !dataCount) {\n\t\tconsole.groupCollapsed(\&quot;All variables\&quot;);\n\t\t$tw.utils.logTable(allVars);\n\t\tconsole.groupEnd();\n\t}\n\tconsole.groupEnd();\n}\n\nexports[\&quot;action-log\&quot;] = LogWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/action-navigate.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/action-navigate.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/action-navigate.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to navigate to a tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar NavigateWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nNavigateWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nNavigateWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nNavigateWidget.prototype.execute = function() {\n\tthis.actionTo = this.getAttribute(\&quot;$to\&quot;);\n\tthis.actionScroll = this.getAttribute(\&quot;$scroll\&quot;);\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nNavigateWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\&quot;$to\&quot;] || changedAttributes[\&quot;$scroll\&quot;]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nNavigateWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tevent = event || {};\n\tvar bounds = triggeringWidget &amp;&amp; triggeringWidget.getBoundingClientRect &amp;&amp; triggeringWidget.getBoundingClientRect(),\n\t\tsuppressNavigation = event.metaKey || event.ctrlKey || (event.button === 1);\n\tif(this.actionScroll === \&quot;yes\&quot;) {\n\t\tsuppressNavigation = false;\n\t} else if(this.actionScroll === \&quot;no\&quot;) {\n\t\tsuppressNavigation = true;\n\t}\n\tthis.dispatchEvent({\n\t\ttype: \&quot;tm-navigate\&quot;,\n\t\tnavigateTo: this.actionTo === undefined ? this.getVariable(\&quot;currentTiddler\&quot;) : this.actionTo,\n\t\tnavigateFromTitle: this.getVariable(\&quot;storyTiddler\&quot;),\n\t\tnavigateFromNode: triggeringWidget,\n\t\tnavigateFromClientRect: bounds &amp;&amp; { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height\n\t\t},\n\t\tnavigateSuppressNavigation: suppressNavigation\n\t});\n\treturn true; // Action was invoked\n};\n\nexports[\&quot;action-navigate\&quot;] = NavigateWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/action-popup.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/action-popup.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/action-popup.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to trigger a popup.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar ActionPopupWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nActionPopupWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nActionPopupWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nActionPopupWidget.prototype.execute = function() {\n\tthis.actionState = this.getAttribute(\&quot;$state\&quot;);\n\tthis.actionCoords = this.getAttribute(\&quot;$coords\&quot;);\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nActionPopupWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\&quot;$state\&quot;] || changedAttributes[\&quot;$coords\&quot;]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nActionPopupWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\t// Trigger the popup\n\tvar popupLocationRegExp = /^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/,\n\t\tmatch = popupLocationRegExp.exec(this.actionCoords || \&quot;\&quot;);\n\tif(match) {\n\t\t$tw.popup.triggerPopup({\n\t\t\tdomNode: null,\n\t\t\tdomNodeRect: {\n\t\t\t\tleft: parseFloat(match[1]),\n\t\t\t\ttop: parseFloat(match[2]),\n\t\t\t\twidth: parseFloat(match[3]),\n\t\t\t\theight: parseFloat(match[4])\n\t\t\t},\n\t\t\ttitle: this.actionState,\n\t\t\twiki: this.wiki\n\t\t});\n\t} else {\n\t\t$tw.popup.cancel(0);\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\&quot;action-popup\&quot;] = ActionPopupWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/action-sendmessage.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/action-sendmessage.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/action-sendmessage.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to send a message\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar SendMessageWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nSendMessageWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nSendMessageWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nSendMessageWidget.prototype.execute = function() {\n\tthis.actionMessage = this.getAttribute(\&quot;$message\&quot;);\n\tthis.actionParam = this.getAttribute(\&quot;$param\&quot;);\n\tthis.actionName = this.getAttribute(\&quot;$name\&quot;);\n\tthis.actionValue = this.getAttribute(\&quot;$value\&quot;,\&quot;\&quot;);\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nSendMessageWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(Object.keys(changedAttributes).length) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nSendMessageWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\t// Get the string parameter\n\tvar param = this.actionParam;\n\t// Assemble the attributes as a hashmap\n\tvar paramObject = Object.create(null);\n\tvar count = 0;\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.charAt(0) !== \&quot;$\&quot;) {\n\t\t\tparamObject[name] = attribute;\n\t\t\tcount++;\n\t\t}\n\t});\n\t// Add name/value pair if present\n\tif(this.actionName) {\n\t\tparamObject[this.actionName] = this.actionValue;\n\t}\n\t// Dispatch the message\n\tthis.dispatchEvent({\n\t\ttype: this.actionMessage,\n\t\tparam: param,\n\t\tparamObject: paramObject,\n\t\ttiddlerTitle: this.getVariable(\&quot;currentTiddler\&quot;),\n\t\tnavigateFromTitle: this.getVariable(\&quot;storyTiddler\&quot;),\n\t\tevent: event\n\t});\n\treturn true; // Action was invoked\n};\n\nexports[\&quot;action-sendmessage\&quot;] = SendMessageWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/action-setfield.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/action-setfield.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/action-setfield.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to set a single field or index on a tiddler.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar SetFieldWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nSetFieldWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nSetFieldWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nSetFieldWidget.prototype.execute = function() {\n\tthis.actionTiddler = this.getAttribute(\&quot;$tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tthis.actionField = this.getAttribute(\&quot;$field\&quot;);\n\tthis.actionIndex = this.getAttribute(\&quot;$index\&quot;);\n\tthis.actionValue = this.getAttribute(\&quot;$value\&quot;);\n\tthis.actionTimestamp = this.getAttribute(\&quot;$timestamp\&quot;,\&quot;yes\&quot;) === \&quot;yes\&quot;;\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nSetFieldWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\&quot;$tiddler\&quot;] || changedAttributes[\&quot;$field\&quot;] || changedAttributes[\&quot;$index\&quot;] || changedAttributes[\&quot;$value\&quot;]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nSetFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar self = this,\n\t\toptions = {};\n\toptions.suppressTimestamp = !this.actionTimestamp;\n\tif((typeof this.actionField == \&quot;string\&quot;) || (typeof this.actionIndex == \&quot;string\&quot;) || (typeof this.actionValue == \&quot;string\&quot;)) {\n\t\tthis.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue,options);\n\t}\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.charAt(0) !== \&quot;$\&quot;) {\n\t\t\tself.wiki.setText(self.actionTiddler,name,undefined,attribute,options);\n\t\t}\n\t});\n\treturn true; // Action was invoked\n};\n\nexports[\&quot;action-setfield\&quot;] = SetFieldWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/browse.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/browse.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/browse.js\ntype: application/javascript\nmodule-type: widget\n\nBrowse widget for browsing for files to import\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar BrowseWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nBrowseWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nBrowseWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\tvar domNode = this.document.createElement(\&quot;input\&quot;);\n\tdomNode.setAttribute(\&quot;type\&quot;,\&quot;file\&quot;);\n\tif(this.browseMultiple) {\n\t\tdomNode.setAttribute(\&quot;multiple\&quot;,\&quot;multiple\&quot;);\n\t}\n\tif(this.tooltip) {\n\t\tdomNode.setAttribute(\&quot;title\&quot;,this.tooltip);\n\t}\n\t// Nw.js supports \&quot;nwsaveas\&quot; to force a \&quot;save as\&quot; dialogue that allows a new or existing file to be selected\n\tif(this.nwsaveas) {\n\t\tdomNode.setAttribute(\&quot;nwsaveas\&quot;,this.nwsaveas);\n\t}\n\tif(this.accept) {\n\t\tdomNode.setAttribute(\&quot;accept\&quot;,this.accept);\n\t}\n\t// Nw.js supports \&quot;webkitdirectory\&quot; and \&quot;nwdirectory\&quot; to allow a directory to be selected\n\tif(this.webkitdirectory) {\n\t\tdomNode.setAttribute(\&quot;webkitdirectory\&quot;,this.webkitdirectory);\n\t}\n\tif(this.nwdirectory) {\n\t\tdomNode.setAttribute(\&quot;nwdirectory\&quot;,this.nwdirectory);\n\t}\n\t// Add a click event handler\n\tdomNode.addEventListener(\&quot;change\&quot;,function (event) {\n\t\tif(self.message) {\n\t\t\tself.dispatchEvent({type: self.message, param: self.param, files: event.target.files});\n\t\t} else {\n\t\t\tself.wiki.readFiles(event.target.files,{\n\t\t\t\tcallback: function(tiddlerFieldsArray) {\n\t\t\t\t\tself.dispatchEvent({type: \&quot;tm-import-tiddlers\&quot;, param: JSON.stringify(tiddlerFieldsArray)});\n\t\t\t\t},\n\t\t\t\tdeserializer: self.deserializer\n\t\t\t});\n\t\t}\n\t\treturn false;\n\t},false);\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nBrowseWidget.prototype.execute = function() {\n\tthis.browseMultiple = this.getAttribute(\&quot;multiple\&quot;);\n\tthis.deserializer = this.getAttribute(\&quot;deserializer\&quot;);\n\tthis.message = this.getAttribute(\&quot;message\&quot;);\n\tthis.param = this.getAttribute(\&quot;param\&quot;);\n\tthis.tooltip = this.getAttribute(\&quot;tooltip\&quot;);\n\tthis.nwsaveas = this.getAttribute(\&quot;nwsaveas\&quot;);\n\tthis.accept = this.getAttribute(\&quot;accept\&quot;);\n\tthis.webkitdirectory = this.getAttribute(\&quot;webkitdirectory\&quot;);\n\tthis.nwdirectory = this.getAttribute(\&quot;nwdirectory\&quot;);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nBrowseWidget.prototype.refresh = function(changedTiddlers) {\n\treturn false;\n};\n\nexports.browse = BrowseWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/button.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/button.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/button.js\ntype: application/javascript\nmodule-type: widget\n\nButton widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar ButtonWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nButtonWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nButtonWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this,\n\t\ttag = \&quot;button\&quot;,\n\t\tdomNode;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\tif(this.buttonTag &amp;&amp; $tw.config.htmlUnsafeElements.indexOf(this.buttonTag) === -1) {\n\t\ttag = this.buttonTag;\n\t}\n\tdomNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\t// Assign classes\n\tvar classes = this[\&quot;class\&quot;].split(\&quot; \&quot;) || [],\n\t\tisPoppedUp = (this.popup || this.popupTitle) &amp;&amp; this.isPoppedUp();\n\tif(this.selectedClass) {\n\t\tif((this.set || this.setTitle) &amp;&amp; this.setTo &amp;&amp; this.isSelected()) {\n\t\t\t$tw.utils.pushTop(classes,this.selectedClass.split(\&quot; \&quot;));\n\t\t}\n\t\tif(isPoppedUp) {\n\t\t\t$tw.utils.pushTop(classes,this.selectedClass.split(\&quot; \&quot;));\n\t\t}\n\t}\n\tif(isPoppedUp) {\n\t\t$tw.utils.pushTop(classes,\&quot;tc-popup-handle\&quot;);\n\t}\n\tdomNode.className = classes.join(\&quot; \&quot;);\n\t// Assign other attributes\n\tif(this.style) {\n\t\tdomNode.setAttribute(\&quot;style\&quot;,this.style);\n\t}\n\tif(this.tooltip) {\n\t\tdomNode.setAttribute(\&quot;title\&quot;,this.tooltip);\n\t}\n\tif(this[\&quot;aria-label\&quot;]) {\n\t\tdomNode.setAttribute(\&quot;aria-label\&quot;,this[\&quot;aria-label\&quot;]);\n\t}\n\t// Set the tabindex\n\tif(this.tabIndex) {\n\t\tdomNode.setAttribute(\&quot;tabindex\&quot;,this.tabIndex);\n\t}\n\tif(this.isDisabled === \&quot;yes\&quot;) {\n\t\tdomNode.setAttribute(\&quot;disabled\&quot;,true);\n\t}\n\t// Add a click event handler\n\tdomNode.addEventListener(\&quot;click\&quot;,function (event) {\n\t\tvar handled = false;\n\t\tif(self.invokeActions(self,event)) {\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.to) {\n\t\t\tself.navigateTo(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.message) {\n\t\t\tself.dispatchMessage(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.popup || self.popupTitle) {\n\t\t\tself.triggerPopup(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.set || self.setTitle) {\n\t\t\tself.setTiddler();\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.actions) {\n\t\t\tvar modifierKey = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\t\tself.invokeActionString(self.actions,self,event,{modifier: modifierKey});\n\t\t}\n\t\tif(handled) {\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\treturn handled;\n\t},false);\n\t// Make it draggable if required\n\tif(this.dragTiddler || this.dragFilter) {\n\t\t$tw.utils.makeDraggable({\n\t\t\tdomNode: domNode,\n\t\t\tdragTiddlerFn: function() {return self.dragTiddler;},\n\t\t\tdragFilterFn: function() {return self.dragFilter;},\n\t\t\twidget: this\n\t\t});\n\t}\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nWe don't allow actions to propagate because we trigger actions ourselves\n*/\nButtonWidget.prototype.allowActionPropagation = function() {\n\treturn false;\n};\n\nButtonWidget.prototype.getBoundingClientRect = function() {\n\treturn this.domNodes[0].getBoundingClientRect();\n};\n\nButtonWidget.prototype.isSelected = function() {\n return this.setTitle ? (this.setField ? this.wiki.getTiddler(this.setTitle).getFieldString(this.setField) === this.setTo :\n\t\t(this.setIndex ? this.wiki.extractTiddlerDataItem(this.setTitle,this.setIndex) === this.setTo :\n\t\t\tthis.wiki.getTiddlerText(this.setTitle))) || this.defaultSetValue || this.getVariable(\&quot;currentTiddler\&quot;) :\n\t\tthis.wiki.getTextReference(this.set,this.defaultSetValue,this.getVariable(\&quot;currentTiddler\&quot;)) === this.setTo;\n};\n\nButtonWidget.prototype.isPoppedUp = function() {\n\tvar tiddler = this.popupTitle ? this.wiki.getTiddler(this.popupTitle) : this.wiki.getTiddler(this.popup);\n\tvar result = tiddler &amp;&amp; tiddler.fields.text ? $tw.popup.readPopupState(tiddler.fields.text) : false;\n\treturn result;\n};\n\nButtonWidget.prototype.navigateTo = function(event) {\n\tvar bounds = this.getBoundingClientRect();\n\tthis.dispatchEvent({\n\t\ttype: \&quot;tm-navigate\&quot;,\n\t\tnavigateTo: this.to,\n\t\tnavigateFromTitle: this.getVariable(\&quot;storyTiddler\&quot;),\n\t\tnavigateFromNode: this,\n\t\tnavigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height\n\t\t},\n\t\tnavigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1),\n\t\tevent: event\n\t});\n};\n\nButtonWidget.prototype.dispatchMessage = function(event) {\n\tthis.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable(\&quot;currentTiddler\&quot;), event: event});\n};\n\nButtonWidget.prototype.triggerPopup = function(event) {\n\tif(this.popupTitle) {\n\t\t$tw.popup.triggerPopup({\n\t\t\tdomNode: this.domNodes[0],\n\t\t\ttitle: this.popupTitle,\n\t\t\twiki: this.wiki,\n\t\t\tnoStateReference: true\n\t\t});\n\t} else {\n\t\t$tw.popup.triggerPopup({\n\t\t\tdomNode: this.domNodes[0],\n\t\t\ttitle: this.popup,\n\t\t\twiki: this.wiki\n\t\t});\n\t}\n};\n\nButtonWidget.prototype.setTiddler = function() {\n\tif(this.setTitle) {\n\t\tthis.setField ? this.wiki.setText(this.setTitle,this.setField,undefined,this.setTo) :\n\t\t\t\t(this.setIndex ? this.wiki.setText(this.setTitle,undefined,this.setIndex,this.setTo) :\n\t\t\t\tthis.wiki.setText(this.setTitle,\&quot;text\&quot;,undefined,this.setTo));\n\t} else {\n\t\tthis.wiki.setTextReference(this.set,this.setTo,this.getVariable(\&quot;currentTiddler\&quot;));\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nButtonWidget.prototype.execute = function() {\n\t// Get attributes\n\tthis.actions = this.getAttribute(\&quot;actions\&quot;);\n\tthis.to = this.getAttribute(\&quot;to\&quot;);\n\tthis.message = this.getAttribute(\&quot;message\&quot;);\n\tthis.param = this.getAttribute(\&quot;param\&quot;);\n\tthis.set = this.getAttribute(\&quot;set\&quot;);\n\tthis.setTo = this.getAttribute(\&quot;setTo\&quot;);\n\tthis.popup = this.getAttribute(\&quot;popup\&quot;);\n\tthis.hover = this.getAttribute(\&quot;hover\&quot;);\n\tthis[\&quot;aria-label\&quot;] = this.getAttribute(\&quot;aria-label\&quot;);\n\tthis.tooltip = this.getAttribute(\&quot;tooltip\&quot;);\n\tthis.style = this.getAttribute(\&quot;style\&quot;);\n\tthis[\&quot;class\&quot;] = this.getAttribute(\&quot;class\&quot;,\&quot;\&quot;);\n\tthis.selectedClass = this.getAttribute(\&quot;selectedClass\&quot;);\n\tthis.defaultSetValue = this.getAttribute(\&quot;default\&quot;,\&quot;\&quot;);\n\tthis.buttonTag = this.getAttribute(\&quot;tag\&quot;);\n\tthis.dragTiddler = this.getAttribute(\&quot;dragTiddler\&quot;);\n\tthis.dragFilter = this.getAttribute(\&quot;dragFilter\&quot;);\n\tthis.setTitle = this.getAttribute(\&quot;setTitle\&quot;);\n\tthis.setField = this.getAttribute(\&quot;setField\&quot;);\n\tthis.setIndex = this.getAttribute(\&quot;setIndex\&quot;);\n\tthis.popupTitle = this.getAttribute(\&quot;popupTitle\&quot;);\n\tthis.tabIndex = this.getAttribute(\&quot;tabindex\&quot;);\n\tthis.isDisabled = this.getAttribute(\&quot;disabled\&quot;,\&quot;no\&quot;);\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\nButtonWidget.prototype.updateDomNodeClasses = function() {\n\tvar domNodeClasses = this.domNode.className.split(\&quot; \&quot;),\n\t\toldClasses = this.class.split(\&quot; \&quot;),\n\t\tnewClasses;\t\n\tthis[\&quot;class\&quot;] = this.getAttribute(\&quot;class\&quot;,\&quot;\&quot;);\n\tnewClasses = this.class.split(\&quot; \&quot;);\n\t//Remove classes assigned from the old value of class attribute\n\t$tw.utils.each(oldClasses,function(oldClass){\n\t\tvar i = domNodeClasses.indexOf(oldClass);\n\t\tif(i !== -1) {\n\t\t\tdomNodeClasses.splice(i,1);\n\t\t}\n\t});\n\t//Add new classes from updated class attribute.\n\t$tw.utils.pushTop(domNodeClasses,newClasses);\n\tthis.domNode.className = domNodeClasses.join(\&quot; \&quot;);\n}\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nButtonWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.actions || changedAttributes.to || changedAttributes.message || changedAttributes.param || changedAttributes.set || changedAttributes.setTo || changedAttributes.popup || changedAttributes.hover || changedAttributes.selectedClass || changedAttributes.style || changedAttributes.dragFilter || changedAttributes.dragTiddler || (this.set &amp;&amp; changedTiddlers[this.set]) || (this.popup &amp;&amp; changedTiddlers[this.popup]) || (this.popupTitle &amp;&amp; changedTiddlers[this.popupTitle]) || changedAttributes.setTitle || changedAttributes.setField || changedAttributes.setIndex || changedAttributes.popupTitle || changedAttributes.disabled) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedAttributes[\&quot;class\&quot;]) {\n\t\tthis.updateDomNodeClasses();\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.button = ButtonWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/checkbox.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/checkbox.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/checkbox.js\ntype: application/javascript\nmodule-type: widget\n\nCheckbox widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar CheckboxWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nCheckboxWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nCheckboxWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Create our elements\n\tthis.labelDomNode = this.document.createElement(\&quot;label\&quot;);\n\tthis.labelDomNode.setAttribute(\&quot;class\&quot;,this.checkboxClass);\n\tthis.inputDomNode = this.document.createElement(\&quot;input\&quot;);\n\tthis.inputDomNode.setAttribute(\&quot;type\&quot;,\&quot;checkbox\&quot;);\n\tif(this.getValue()) {\n\t\tthis.inputDomNode.setAttribute(\&quot;checked\&quot;,\&quot;true\&quot;);\n\t}\n\tif(this.isDisabled === \&quot;yes\&quot;) {\n\t\tthis.inputDomNode.setAttribute(\&quot;disabled\&quot;,true);\n\t}\n\tthis.labelDomNode.appendChild(this.inputDomNode);\n\tthis.spanDomNode = this.document.createElement(\&quot;span\&quot;);\n\tthis.labelDomNode.appendChild(this.spanDomNode);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name: \&quot;change\&quot;, handlerObject: this, handlerMethod: \&quot;handleChangeEvent\&quot;}\n\t]);\n\t// Insert the label into the DOM and render any children\n\tparent.insertBefore(this.labelDomNode,nextSibling);\n\tthis.renderChildren(this.spanDomNode,null);\n\tthis.domNodes.push(this.labelDomNode);\n};\n\nCheckboxWidget.prototype.getValue = function() {\n\tvar tiddler = this.wiki.getTiddler(this.checkboxTitle);\n\tif(tiddler) {\n\t\tif(this.checkboxTag) {\n\t\t\tif(this.checkboxInvertTag) {\n\t\t\t\treturn !tiddler.hasTag(this.checkboxTag);\n\t\t\t} else {\n\t\t\t\treturn tiddler.hasTag(this.checkboxTag);\n\t\t\t}\n\t\t}\n\t\tif(this.checkboxField) {\n\t\t\tvar value;\n\t\t\tif($tw.utils.hop(tiddler.fields,this.checkboxField)) {\n\t\t\t\tvalue = tiddler.fields[this.checkboxField] || \&quot;\&quot;;\n\t\t\t} else {\n\t\t\t\tvalue = this.checkboxDefault || \&quot;\&quot;;\n\t\t\t}\n\t\t\tif(value === this.checkboxChecked) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif(value === this.checkboxUnchecked) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif(this.checkboxIndex) {\n\t\t\tvar value = this.wiki.extractTiddlerDataItem(tiddler,this.checkboxIndex,this.checkboxDefault || \&quot;\&quot;);\n\t\t\tif(value === this.checkboxChecked) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif(value === this.checkboxUnchecked) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tif(this.checkboxTag) {\n\t\t\treturn false;\n\t\t}\n\t\tif(this.checkboxField) {\n\t\t\tif(this.checkboxDefault === this.checkboxChecked) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif(this.checkboxDefault === this.checkboxUnchecked) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\nCheckboxWidget.prototype.handleChangeEvent = function(event) {\n\tvar checked = this.inputDomNode.checked,\n\t\ttiddler = this.wiki.getTiddler(this.checkboxTitle),\n\t\tfallbackFields = {text: \&quot;\&quot;},\n\t\tnewFields = {title: this.checkboxTitle},\n\t\thasChanged = false,\n\t\ttagCheck = false,\n\t\thasTag = tiddler &amp;&amp; tiddler.hasTag(this.checkboxTag),\n\t\tvalue = checked ? this.checkboxChecked : this.checkboxUnchecked;\n\tif(this.checkboxTag &amp;&amp; this.checkboxInvertTag === \&quot;yes\&quot;) {\n\t\ttagCheck = hasTag === checked;\n\t} else {\n\t\ttagCheck = hasTag !== checked;\n\t}\n\t// Set the tag if specified\n\tif(this.checkboxTag &amp;&amp; (!tiddler || tagCheck)) {\n\t\tnewFields.tags = tiddler ? (tiddler.fields.tags || []).slice(0) : [];\n\t\tvar pos = newFields.tags.indexOf(this.checkboxTag);\n\t\tif(pos !== -1) {\n\t\t\tnewFields.tags.splice(pos,1);\n\t\t}\n\t\tif(this.checkboxInvertTag === \&quot;yes\&quot; &amp;&amp; !checked) {\n\t\t\tnewFields.tags.push(this.checkboxTag);\n\t\t} else if(this.checkboxInvertTag !== \&quot;yes\&quot; &amp;&amp; checked) {\n\t\t\tnewFields.tags.push(this.checkboxTag);\n\t\t}\n\t\thasChanged = true;\n\t}\n\t// Set the field if specified\n\tif(this.checkboxField) {\n\t\tif(!tiddler || tiddler.fields[this.checkboxField] !== value) {\n\t\t\tnewFields[this.checkboxField] = value;\n\t\t\thasChanged = true;\n\t\t}\n\t}\n\t// Set the index if specified\n\tif(this.checkboxIndex) {\n\t\tvar indexValue = this.wiki.extractTiddlerDataItem(this.checkboxTitle,this.checkboxIndex);\n\t\tif(!tiddler || indexValue !== value) {\n\t\t\thasChanged = true;\n\t\t}\n\t}\n\tif(hasChanged) {\n\t\tif(this.checkboxIndex) {\n\t\t\tthis.wiki.setText(this.checkboxTitle,\&quot;\&quot;,this.checkboxIndex,value);\n\t\t} else {\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),fallbackFields,tiddler,newFields,this.wiki.getModificationFields()));\n\t\t}\n\t}\n\t// Trigger actions\n\tif(this.checkboxActions) {\n\t\tthis.invokeActionString(this.checkboxActions,this,event);\n\t}\n\tif(this.checkboxCheckActions &amp;&amp; checked) {\n\t\tthis.invokeActionString(this.checkboxCheckActions,this,event);\n\t}\n\tif(this.checkboxUncheckActions &amp;&amp; !checked) {\n\t\tthis.invokeActionString(this.checkboxUncheckActions,this,event);\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nCheckboxWidget.prototype.execute = function() {\n\t// Get the parameters from the attributes\n\tthis.checkboxActions = this.getAttribute(\&quot;actions\&quot;);\n\tthis.checkboxCheckActions = this.getAttribute(\&quot;checkactions\&quot;);\n\tthis.checkboxUncheckActions = this.getAttribute(\&quot;uncheckactions\&quot;);\n\tthis.checkboxTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tthis.checkboxTag = this.getAttribute(\&quot;tag\&quot;);\n\tthis.checkboxField = this.getAttribute(\&quot;field\&quot;);\n\tthis.checkboxIndex = this.getAttribute(\&quot;index\&quot;);\n\tthis.checkboxChecked = this.getAttribute(\&quot;checked\&quot;);\n\tthis.checkboxUnchecked = this.getAttribute(\&quot;unchecked\&quot;);\n\tthis.checkboxDefault = this.getAttribute(\&quot;default\&quot;);\n\tthis.checkboxClass = this.getAttribute(\&quot;class\&quot;,\&quot;\&quot;);\n\tthis.checkboxInvertTag = this.getAttribute(\&quot;invertTag\&quot;,\&quot;\&quot;);\n\tthis.isDisabled = this.getAttribute(\&quot;disabled\&quot;,\&quot;no\&quot;);\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nCheckboxWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.tag || changedAttributes.invertTag || changedAttributes.field || changedAttributes.index || changedAttributes.checked || changedAttributes.unchecked || changedAttributes[\&quot;default\&quot;] || changedAttributes[\&quot;class\&quot;] || changedAttributes.disabled) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar refreshed = false;\n\t\tif(changedTiddlers[this.checkboxTitle]) {\n\t\t\tthis.inputDomNode.checked = this.getValue();\n\t\t\trefreshed = true;\n\t\t}\n\t\treturn this.refreshChildren(changedTiddlers) || refreshed;\n\t}\n};\n\nexports.checkbox = CheckboxWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/codeblock.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/codeblock.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/codeblock.js\ntype: application/javascript\nmodule-type: widget\n\nCode block node widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar CodeBlockWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nCodeBlockWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nCodeBlockWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar codeNode = this.document.createElement(\&quot;code\&quot;),\n\t\tdomNode = this.document.createElement(\&quot;pre\&quot;);\n\tcodeNode.appendChild(this.document.createTextNode(this.getAttribute(\&quot;code\&quot;)));\n\tdomNode.appendChild(codeNode);\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.domNodes.push(domNode);\n\tif(this.postRender) {\n\t\tthis.postRender();\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nCodeBlockWidget.prototype.execute = function() {\n\tthis.language = this.getAttribute(\&quot;language\&quot;);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nCodeBlockWidget.prototype.refresh = function(changedTiddlers) {\n\treturn false;\n};\n\nexports.codeblock = CodeBlockWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/count.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/count.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/count.js\ntype: application/javascript\nmodule-type: widget\n\nCount widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar CountWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nCountWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nCountWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar textNode = this.document.createTextNode(this.currentCount);\n\tparent.insertBefore(textNode,nextSibling);\n\tthis.domNodes.push(textNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nCountWidget.prototype.execute = function() {\n\t// Get parameters from our attributes\n\tthis.filter = this.getAttribute(\&quot;filter\&quot;);\n\t// Execute the filter\n\tif(this.filter) {\n\t\tthis.currentCount = this.wiki.filterTiddlers(this.filter,this).length;\n\t} else {\n\t\tthis.currentCount = \&quot;0\&quot;;\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nCountWidget.prototype.refresh = function(changedTiddlers) {\n\t// Re-execute the filter to get the count\n\tthis.computeAttributes();\n\tvar oldCount = this.currentCount;\n\tthis.execute();\n\tif(this.currentCount !== oldCount) {\n\t\t// Regenerate and rerender the widget and replace the existing DOM node\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n\n};\n\nexports.count = CountWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/diff-text.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/diff-text.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/diff-text.js\ntype: application/javascript\nmodule-type: widget\n\nWidget to display a diff between two texts\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget,\n\tdmp = require(\&quot;$:/core/modules/utils/diff-match-patch/diff_match_patch.js\&quot;);\n\nvar DiffTextWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDiffTextWidget.prototype = new Widget();\n\nDiffTextWidget.prototype.invisibleCharacters = {\n\t\&quot;\\n\&quot;: \&quot;↩︎\\n\&quot;,\n\t\&quot;\\r\&quot;: \&quot;⇠\&quot;,\n\t\&quot;\\t\&quot;: \&quot;⇥\\t\&quot;\n};\n\n/*\nRender this widget into the DOM\n*/\nDiffTextWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create the diff\n\tvar dmpObject = new dmp.diff_match_patch(),\n\t\tdiffs = dmpObject.diff_main(this.getAttribute(\&quot;source\&quot;),this.getAttribute(\&quot;dest\&quot;));\n\t// Apply required cleanup\n\tswitch(this.getAttribute(\&quot;cleanup\&quot;,\&quot;semantic\&quot;)) {\n\t\tcase \&quot;none\&quot;:\n\t\t\t// No cleanup\n\t\t\tbreak;\n\t\tcase \&quot;efficiency\&quot;:\n\t\t\tdmpObject.diff_cleanupEfficiency(diffs);\n\t\t\tbreak;\n\t\tdefault: // case \&quot;semantic\&quot;\n\t\t\tdmpObject.diff_cleanupSemantic(diffs);\n\t\t\tbreak;\n\t}\n\t// Create the elements\n\tvar domContainer = this.document.createElement(\&quot;div\&quot;), \n\t\tdomDiff = this.createDiffDom(diffs);\n\tparent.insertBefore(domContainer,nextSibling);\n\t// Set variables\n\tthis.setVariable(\&quot;diff-count\&quot;,diffs.reduce(function(acc,diff) {\n\t\tif(diff[0] !== dmp.DIFF_EQUAL) {\n\t\t\tacc++;\n\t\t}\n\t\treturn acc;\n\t},0).toString());\n\t// Render child widgets\n\tthis.renderChildren(domContainer,null);\n\t// Render the diff\n\tdomContainer.appendChild(domDiff);\n\t// Save our container\n\tthis.domNodes.push(domContainer);\n};\n\n/*\nCreate DOM elements representing a list of diffs\n*/\nDiffTextWidget.prototype.createDiffDom = function(diffs) {\n\tvar self = this;\n\t// Create the element and assign the attributes\n\tvar domPre = this.document.createElement(\&quot;pre\&quot;),\n\t\tdomCode = this.document.createElement(\&quot;code\&quot;);\n\t$tw.utils.each(diffs,function(diff) {\n\t\tvar tag = diff[0] === dmp.DIFF_INSERT ? \&quot;ins\&quot; : (diff[0] === dmp.DIFF_DELETE ? \&quot;del\&quot; : \&quot;span\&quot;),\n\t\t\tclassName = diff[0] === dmp.DIFF_INSERT ? \&quot;tc-diff-insert\&quot; : (diff[0] === dmp.DIFF_DELETE ? \&quot;tc-diff-delete\&quot; : \&quot;tc-diff-equal\&quot;),\n\t\t\tdom = self.document.createElement(tag),\n\t\t\ttext = diff[1],\n\t\t\tcurrPos = 0,\n\t\t\tre = /([\\x00-\\x1F])/mg,\n\t\t\tmatch = re.exec(text),\n\t\t\tspan,\n\t\t\tprintable;\n\t\tdom.className = className;\n\t\twhile(match) {\n\t\t\tif(currPos &lt; match.index) {\n\t\t\t\tdom.appendChild(self.document.createTextNode(text.slice(currPos,match.index)));\n\t\t\t}\n\t\t\tspan = self.document.createElement(\&quot;span\&quot;);\n\t\t\tspan.className = \&quot;tc-diff-invisible\&quot;;\n\t\t\tprintable = self.invisibleCharacters[match[0]] || (\&quot;[0x\&quot; + match[0].charCodeAt(0).toString(16) + \&quot;]\&quot;);\n\t\t\tspan.appendChild(self.document.createTextNode(printable));\n\t\t\tdom.appendChild(span);\n\t\t\tcurrPos = match.index + match[0].length;\n\t\t\tmatch = re.exec(text);\n\t\t}\n\t\tif(currPos &lt; text.length) {\n\t\t\tdom.appendChild(self.document.createTextNode(text.slice(currPos)));\n\t\t}\n\t\tdomCode.appendChild(dom);\n\t});\n\tdomPre.appendChild(domCode);\n\treturn domPre;\n};\n\n/*\nCompute the internal state of the widget\n*/\nDiffTextWidget.prototype.execute = function() {\n\t// Make child widgets\n\tvar parseTreeNodes;\n\tif(this.parseTreeNode &amp;&amp; this.parseTreeNode.children &amp;&amp; this.parseTreeNode.children.length &gt; 0) {\n\t\tparseTreeNodes = this.parseTreeNode.children;\n\t} else {\n\t\tparseTreeNodes = [{\n\t\t\ttype: \&quot;transclude\&quot;,\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \&quot;string\&quot;, value: \&quot;$:/language/Diffs/CountMessage\&quot;}\n\t\t\t}\n\t\t}];\n\t}\n\tthis.makeChildWidgets(parseTreeNodes);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDiffTextWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.source || changedAttributes.dest || changedAttributes.cleanup) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports[\&quot;diff-text\&quot;] = DiffTextWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/draggable.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/draggable.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/draggable.js\ntype: application/javascript\nmodule-type: widget\n\nDraggable widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar DraggableWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDraggableWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDraggableWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Sanitise the specified tag\n\tvar tag = this.draggableTag;\n\tif($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {\n\t\ttag = \&quot;div\&quot;;\n\t}\n\t// Create our element\n\tvar domNode = this.document.createElement(tag);\n\t// Assign classes\n\tvar classes = [\&quot;tc-draggable\&quot;];\n\tif(this.draggableClasses) {\n\t\tclasses.push(this.draggableClasses);\n\t}\n\tdomNode.setAttribute(\&quot;class\&quot;,classes.join(\&quot; \&quot;));\n\t// Add event handlers\n\t$tw.utils.makeDraggable({\n\t\tdomNode: domNode,\n\t\tdragTiddlerFn: function() {return self.getAttribute(\&quot;tiddler\&quot;);},\n\t\tdragFilterFn: function() {return self.getAttribute(\&quot;filter\&quot;);},\n\t\tstartActions: self.startActions,\n\t\tendActions: self.endActions,\n\t\twidget: this\n\t});\n\t// Insert the link into the DOM and render any children\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nDraggableWidget.prototype.execute = function() {\n\t// Pick up our attributes\n\tthis.draggableTag = this.getAttribute(\&quot;tag\&quot;,\&quot;div\&quot;);\n\tthis.draggableClasses = this.getAttribute(\&quot;class\&quot;);\n\tthis.startActions = this.getAttribute(\&quot;startactions\&quot;);\n\tthis.endActions = this.getAttribute(\&quot;endactions\&quot;);\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDraggableWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tag || changedAttributes[\&quot;class\&quot;]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.draggable = DraggableWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/droppable.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/droppable.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/droppable.js\ntype: application/javascript\nmodule-type: widget\n\nDroppable widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar DroppableWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDroppableWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDroppableWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this,\n\t\ttag = this.parseTreeNode.isBlock ? \&quot;div\&quot; : \&quot;span\&quot;,\n\t\tdomNode;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\tif(this.droppableTag &amp;&amp; $tw.config.htmlUnsafeElements.indexOf(this.droppableTag) === -1) {\n\t\ttag = this.droppableTag;\n\t}\n\t// Create element and assign classes\n\tdomNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\tthis.assignDomNodeClasses();\n\t// Add event handlers\n\tif(this.droppableEnable) {\n\t\t$tw.utils.addEventListeners(domNode,[\n\t\t\t{name: \&quot;dragenter\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragEnterEvent\&quot;},\n\t\t\t{name: \&quot;dragover\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragOverEvent\&quot;},\n\t\t\t{name: \&quot;dragleave\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragLeaveEvent\&quot;},\n\t\t\t{name: \&quot;drop\&quot;, handlerObject: this, handlerMethod: \&quot;handleDropEvent\&quot;}\n\t\t]);\t\t\n\t} else {\n\t\t$tw.utils.addClass(this.domNode,this.disabledClass);\n\t}\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n\t// Stack of outstanding enter/leave events\n\tthis.currentlyEntered = [];\n};\n\nDroppableWidget.prototype.enterDrag = function(event) {\n\tif(this.currentlyEntered.indexOf(event.target) === -1) {\n\t\tthis.currentlyEntered.push(event.target);\n\t}\n\t// If we're entering for the first time we need to apply highlighting\n\t$tw.utils.addClass(this.domNodes[0],\&quot;tc-dragover\&quot;);\n};\n\nDroppableWidget.prototype.leaveDrag = function(event) {\n\tvar pos = this.currentlyEntered.indexOf(event.target);\n\tif(pos !== -1) {\n\t\tthis.currentlyEntered.splice(pos,1);\n\t}\n\t// Remove highlighting if we're leaving externally. The hacky second condition is to resolve a problem with Firefox whereby there is an erroneous dragenter event if the node being dragged is within the dropzone\n\tif(this.currentlyEntered.length === 0 || (this.currentlyEntered.length === 1 &amp;&amp; this.currentlyEntered[0] === $tw.dragInProgress)) {\n\t\tthis.currentlyEntered = [];\n\t\tif(this.domNodes[0]) {\n\t\t\t$tw.utils.removeClass(this.domNodes[0],\&quot;tc-dragover\&quot;);\n\t\t}\n\t}\n};\n\nDroppableWidget.prototype.handleDragEnterEvent = function(event) {\n\tthis.enterDrag(event);\n\t// Tell the browser that we're ready to handle the drop\n\tevent.preventDefault();\n\t// Tell the browser not to ripple the drag up to any parent drop handlers\n\tevent.stopPropagation();\n\treturn false;\n};\n\nDroppableWidget.prototype.handleDragOverEvent = function(event) {\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\&quot;TEXTAREA\&quot;,\&quot;INPUT\&quot;].indexOf(event.target.tagName) !== -1) {\n\t\treturn false;\n\t}\n\t// Tell the browser that we're still interested in the drop\n\tevent.preventDefault();\n\t// Set the drop effect\n\tevent.dataTransfer.dropEffect = this.droppableEffect;\n\treturn false;\n};\n\nDroppableWidget.prototype.handleDragLeaveEvent = function(event) {\n\tthis.leaveDrag(event);\n\treturn false;\n};\n\nDroppableWidget.prototype.handleDropEvent = function(event) {\n\tvar self = this;\n\tthis.leaveDrag(event);\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\&quot;TEXTAREA\&quot;,\&quot;INPUT\&quot;].indexOf(event.target.tagName) !== -1) {\n\t\treturn false;\n\t}\n\tvar dataTransfer = event.dataTransfer;\n\t// Remove highlighting\n\t$tw.utils.removeClass(this.domNodes[0],\&quot;tc-dragover\&quot;);\n\t// Try to import the various data types we understand\n\t$tw.utils.importDataTransfer(dataTransfer,null,function(fieldsArray) {\n\t\tfieldsArray.forEach(function(fields) {\n\t\t\tself.performActions(fields.title || fields.text,event);\n\t\t});\n\t});\n\t// Tell the browser that we handled the drop\n\tevent.preventDefault();\n\t// Stop the drop ripple up to any parent handlers\n\tevent.stopPropagation();\n\treturn false;\n};\n\nDroppableWidget.prototype.performActions = function(title,event) {\n\tif(this.droppableActions) {\n\t\tvar modifierKey = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\tthis.invokeActionString(this.droppableActions,this,event,{actionTiddler: title, modifier: modifierKey});\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nDroppableWidget.prototype.execute = function() {\n\tthis.droppableActions = this.getAttribute(\&quot;actions\&quot;);\n\tthis.droppableEffect = this.getAttribute(\&quot;effect\&quot;,\&quot;copy\&quot;);\n\tthis.droppableTag = this.getAttribute(\&quot;tag\&quot;);\n\tthis.droppableEnable = (this.getAttribute(\&quot;enable\&quot;) || \&quot;yes\&quot;) === \&quot;yes\&quot;;\n\tthis.disabledClass = this.getAttribute(\&quot;disabledClass\&quot;,\&quot;\&quot;);\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\nDroppableWidget.prototype.assignDomNodeClasses = function() {\n\tvar classes = this.getAttribute(\&quot;class\&quot;,\&quot;\&quot;).split(\&quot; \&quot;);\n\tclasses.push(\&quot;tc-droppable\&quot;);\n\tthis.domNode.className = classes.join(\&quot; \&quot;);\t\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDroppableWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tag || changedAttributes.enable || changedAttributes.disabledClass || changedAttributes.actions || changedAttributes.effect) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedAttributes[\&quot;class\&quot;]) {\n\t\tthis.assignDomNodeClasses();\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.droppable = DroppableWidget;\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/dropzone.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/dropzone.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/dropzone.js\ntype: application/javascript\nmodule-type: widget\n\nDropzone widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar DropZoneWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDropZoneWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDropZoneWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\tvar domNode = this.document.createElement(\&quot;div\&quot;);\n\tdomNode.className = this.dropzoneClass || \&quot;tc-dropzone\&quot;;\n\t// Add event handlers\n\tif(this.dropzoneEnable) {\n\t\t$tw.utils.addEventListeners(domNode,[\n\t\t\t{name: \&quot;dragenter\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragEnterEvent\&quot;},\n\t\t\t{name: \&quot;dragover\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragOverEvent\&quot;},\n\t\t\t{name: \&quot;dragleave\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragLeaveEvent\&quot;},\n\t\t\t{name: \&quot;drop\&quot;, handlerObject: this, handlerMethod: \&quot;handleDropEvent\&quot;},\n\t\t\t{name: \&quot;paste\&quot;, handlerObject: this, handlerMethod: \&quot;handlePasteEvent\&quot;},\n\t\t\t{name: \&quot;dragend\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragEndEvent\&quot;}\n\t\t]);\t\t\n\t}\n\tdomNode.addEventListener(\&quot;click\&quot;,function (event) {\n\t},false);\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n\t// Stack of outstanding enter/leave events\n\tthis.currentlyEntered = [];\n};\n\nDropZoneWidget.prototype.enterDrag = function(event) {\n\tif(this.currentlyEntered.indexOf(event.target) === -1) {\n\t\tthis.currentlyEntered.push(event.target);\n\t}\n\t// If we're entering for the first time we need to apply highlighting\n\t$tw.utils.addClass(this.domNodes[0],\&quot;tc-dragover\&quot;);\n};\n\nDropZoneWidget.prototype.leaveDrag = function(event) {\n\tvar pos = this.currentlyEntered.indexOf(event.target);\n\tif(pos !== -1) {\n\t\tthis.currentlyEntered.splice(pos,1);\n\t}\n\t// Remove highlighting if we're leaving externally\n\tif(this.currentlyEntered.length === 0) {\n\t\t$tw.utils.removeClass(this.domNodes[0],\&quot;tc-dragover\&quot;);\n\t}\n};\n\nDropZoneWidget.prototype.handleDragEnterEvent = function(event) {\n\t// Check for this window being the source of the drag\n\tif($tw.dragInProgress) {\n\t\treturn false;\n\t}\n\tthis.enterDrag(event);\n\t// Tell the browser that we're ready to handle the drop\n\tevent.preventDefault();\n\t// Tell the browser not to ripple the drag up to any parent drop handlers\n\tevent.stopPropagation();\n};\n\nDropZoneWidget.prototype.handleDragOverEvent = function(event) {\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\&quot;TEXTAREA\&quot;,\&quot;INPUT\&quot;].indexOf(event.target.tagName) !== -1) {\n\t\treturn false;\n\t}\n\t// Check for this window being the source of the drag\n\tif($tw.dragInProgress) {\n\t\treturn false;\n\t}\n\t// Tell the browser that we're still interested in the drop\n\tevent.preventDefault();\n\tevent.dataTransfer.dropEffect = \&quot;copy\&quot;; // Explicitly show this is a copy\n};\n\nDropZoneWidget.prototype.handleDragLeaveEvent = function(event) {\n\tthis.leaveDrag(event);\n};\n\nDropZoneWidget.prototype.handleDragEndEvent = function(event) {\n\t$tw.utils.removeClass(this.domNodes[0],\&quot;tc-dragover\&quot;);\n};\n\nDropZoneWidget.prototype.handleDropEvent = function(event) {\n\tvar self = this,\n\t\treadFileCallback = function(tiddlerFieldsArray) {\n\t\t\tself.dispatchEvent({type: \&quot;tm-import-tiddlers\&quot;, param: JSON.stringify(tiddlerFieldsArray), autoOpenOnImport: self.autoOpenOnImport, importTitle: self.importTitle});\n\t\t};\n\tthis.leaveDrag(event);\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\&quot;TEXTAREA\&quot;,\&quot;INPUT\&quot;].indexOf(event.target.tagName) !== -1) {\n\t\treturn false;\n\t}\n\t// Check for this window being the source of the drag\n\tif($tw.dragInProgress) {\n\t\treturn false;\n\t}\n\tvar self = this,\n\t\tdataTransfer = event.dataTransfer;\n\t// Remove highlighting\n\t$tw.utils.removeClass(this.domNodes[0],\&quot;tc-dragover\&quot;);\n\t// Import any files in the drop\n\tvar numFiles = 0;\n\tif(dataTransfer.files) {\n\t\tnumFiles = this.wiki.readFiles(dataTransfer.files,{\n\t\t\tcallback: readFileCallback,\n\t\t\tdeserializer: this.dropzoneDeserializer\n\t\t});\n\t}\n\t// Try to import the various data types we understand\n\tif(numFiles === 0) {\n\t\t$tw.utils.importDataTransfer(dataTransfer,this.wiki.generateNewTitle(\&quot;Untitled\&quot;),readFileCallback);\n\t}\n\t// Tell the browser that we handled the drop\n\tevent.preventDefault();\n\t// Stop the drop ripple up to any parent handlers\n\tevent.stopPropagation();\n};\n\nDropZoneWidget.prototype.handlePasteEvent = function(event) {\n\tvar self = this,\n\t\treadFileCallback = function(tiddlerFieldsArray) {\n\t\t\tself.dispatchEvent({type: \&quot;tm-import-tiddlers\&quot;, param: JSON.stringify(tiddlerFieldsArray), autoOpenOnImport: self.autoOpenOnImport, importTitle: self.importTitle});\n\t\t};\n\t// Let the browser handle it if we're in a textarea or input box\n\tif([\&quot;TEXTAREA\&quot;,\&quot;INPUT\&quot;].indexOf(event.target.tagName) == -1 &amp;&amp; !event.target.isContentEditable) {\n\t\tvar self = this,\n\t\t\titems = event.clipboardData.items;\n\t\t// Enumerate the clipboard items\n\t\tfor(var t = 0; t&lt;items.length; t++) {\n\t\t\tvar item = items[t];\n\t\t\tif(item.kind === \&quot;file\&quot;) {\n\t\t\t\t// Import any files\n\t\t\t\tthis.wiki.readFile(item.getAsFile(),{\n\t\t\t\t\tcallback: readFileCallback,\n\t\t\t\t\tdeserializer: this.dropzoneDeserializer\n\t\t\t\t});\n\t\t\t} else if(item.kind === \&quot;string\&quot;) {\n\t\t\t\t// Create tiddlers from string items\n\t\t\t\tvar type = item.type;\n\t\t\t\titem.getAsString(function(str) {\n\t\t\t\t\tvar tiddlerFields = {\n\t\t\t\t\t\ttitle: self.wiki.generateNewTitle(\&quot;Untitled\&quot;),\n\t\t\t\t\t\ttext: str,\n\t\t\t\t\t\ttype: type\n\t\t\t\t\t};\n\t\t\t\t\tif($tw.log.IMPORT) {\n\t\t\t\t\t\tconsole.log(\&quot;Importing string '\&quot; + str + \&quot;', type: '\&quot; + type + \&quot;'\&quot;);\n\t\t\t\t\t}\n\t\t\t\t\tself.dispatchEvent({type: \&quot;tm-import-tiddlers\&quot;, param: JSON.stringify([tiddlerFields]), autoOpenOnImport: self.autoOpenOnImport, importTitle: self.importTitle});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\t// Tell the browser that we've handled the paste\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nDropZoneWidget.prototype.execute = function() {\n\tthis.dropzoneClass = this.getAttribute(\&quot;class\&quot;);\n\tthis.dropzoneDeserializer = this.getAttribute(\&quot;deserializer\&quot;);\n\tthis.dropzoneEnable = (this.getAttribute(\&quot;enable\&quot;) || \&quot;yes\&quot;) === \&quot;yes\&quot;;\n\tthis.autoOpenOnImport = this.getAttribute(\&quot;autoOpenOnImport\&quot;);\n\tthis.importTitle = this.getAttribute(\&quot;importTitle\&quot;);\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDropZoneWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.enable || changedAttributes.autoOpenOnImport || changedAttributes.importTitle || changedAttributes.deserializer || changedAttributes.class) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.dropzone = DropZoneWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/edit-binary.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/edit-binary.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/edit-binary.js\ntype: application/javascript\nmodule-type: widget\n\nEdit-binary widget; placeholder for editing binary tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar BINARY_WARNING_MESSAGE = \&quot;$:/core/ui/BinaryWarning\&quot;;\nvar EXPORT_BUTTON_IMAGE = \&quot;$:/core/images/export-button\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar EditBinaryWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEditBinaryWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEditBinaryWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nEditBinaryWidget.prototype.execute = function() {\n\t// Get our parameters\n\tvar editTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tvar tiddler = this.wiki.getTiddler(editTitle);\n\tvar type = tiddler.fields.type;\n\tvar text = tiddler.fields.text;\n\t// Transclude the binary data tiddler warning message\n\tvar warn = {\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;p\&quot;,\n\t\tchildren: [{\n\t\t\ttype: \&quot;transclude\&quot;,\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \&quot;string\&quot;, value: BINARY_WARNING_MESSAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Create download link based on draft tiddler title\n\tvar link = {\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;a\&quot;,\n\t\tattributes: {\n\t\t\ttitle: {type: \&quot;indirect\&quot;, textReference: \&quot;!!draft.title\&quot;},\n\t\t\tdownload: {type: \&quot;indirect\&quot;, textReference: \&quot;!!draft.title\&quot;}\n\t\t},\n\t\tchildren: [{\n\t\ttype: \&quot;transclude\&quot;,\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \&quot;string\&quot;, value: EXPORT_BUTTON_IMAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Set the link href to internal data URI (no external)\n\tif(text) {\n\t\tlink.attributes.href = {\n\t\t\ttype: \&quot;string\&quot;, \n\t\t\tvalue: \&quot;data:\&quot; + type + \&quot;;base64,\&quot; + text\n\t\t};\n\t}\n\t// Combine warning message and download link in a div\n\tvar element = {\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;div\&quot;,\n\t\tattributes: {\n\t\t\tclass: {type: \&quot;string\&quot;, value: \&quot;tc-binary-warning\&quot;}\n\t\t},\n\t\tchildren: [warn, link]\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets([element]);\n};\n\n/*\nRefresh by refreshing our child widget\n*/\nEditBinaryWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports[\&quot;edit-binary\&quot;] = EditBinaryWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/edit-bitmap.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/edit-bitmap.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/edit-bitmap.js\ntype: application/javascript\nmodule-type: widget\n\nEdit-bitmap widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n// Default image sizes\nvar DEFAULT_IMAGE_WIDTH = 600,\n\tDEFAULT_IMAGE_HEIGHT = 370,\n\tDEFAULT_IMAGE_TYPE = \&quot;image/png\&quot;;\n\n// Configuration tiddlers\nvar LINE_WIDTH_TITLE = \&quot;$:/config/BitmapEditor/LineWidth\&quot;,\n\tLINE_COLOUR_TITLE = \&quot;$:/config/BitmapEditor/Colour\&quot;,\n\tLINE_OPACITY_TITLE = \&quot;$:/config/BitmapEditor/Opacity\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar EditBitmapWidget = function(parseTreeNode,options) {\n\t// Initialise the editor operations if they've not been done already\n\tif(!this.editorOperations) {\n\t\tEditBitmapWidget.prototype.editorOperations = {};\n\t\t$tw.modules.applyMethods(\&quot;bitmapeditoroperation\&quot;,this.editorOperations);\n\t}\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEditBitmapWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEditBitmapWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Create the wrapper for the toolbar and render its content\n\tthis.toolbarNode = this.document.createElement(\&quot;div\&quot;);\n\tthis.toolbarNode.className = \&quot;tc-editor-toolbar\&quot;;\n\tparent.insertBefore(this.toolbarNode,nextSibling);\n\tthis.domNodes.push(this.toolbarNode);\n\t// Create the on-screen canvas\n\tthis.canvasDomNode = $tw.utils.domMaker(\&quot;canvas\&quot;,{\n\t\tdocument: this.document,\n\t\t\&quot;class\&quot;:\&quot;tc-edit-bitmapeditor\&quot;,\n\t\teventListeners: [{\n\t\t\tname: \&quot;touchstart\&quot;, handlerObject: this, handlerMethod: \&quot;handleTouchStartEvent\&quot;\n\t\t},{\n\t\t\tname: \&quot;touchmove\&quot;, handlerObject: this, handlerMethod: \&quot;handleTouchMoveEvent\&quot;\n\t\t},{\n\t\t\tname: \&quot;touchend\&quot;, handlerObject: this, handlerMethod: \&quot;handleTouchEndEvent\&quot;\n\t\t},{\n\t\t\tname: \&quot;mousedown\&quot;, handlerObject: this, handlerMethod: \&quot;handleMouseDownEvent\&quot;\n\t\t},{\n\t\t\tname: \&quot;mousemove\&quot;, handlerObject: this, handlerMethod: \&quot;handleMouseMoveEvent\&quot;\n\t\t},{\n\t\t\tname: \&quot;mouseup\&quot;, handlerObject: this, handlerMethod: \&quot;handleMouseUpEvent\&quot;\n\t\t}]\n\t});\n\t// Set the width and height variables\n\tthis.setVariable(\&quot;tv-bitmap-editor-width\&quot;,this.canvasDomNode.width + \&quot;px\&quot;);\n\tthis.setVariable(\&quot;tv-bitmap-editor-height\&quot;,this.canvasDomNode.height + \&quot;px\&quot;);\n\t// Render toolbar child widgets\n\tthis.renderChildren(this.toolbarNode,null);\n\t// // Insert the elements into the DOM\n\tparent.insertBefore(this.canvasDomNode,nextSibling);\n\tthis.domNodes.push(this.canvasDomNode);\n\t// Load the image into the canvas\n\tif($tw.browser) {\n\t\tthis.loadCanvas();\n\t}\n\t// Add widget message listeners\n\tthis.addEventListeners([\n\t\t{type: \&quot;tm-edit-bitmap-operation\&quot;, handler: \&quot;handleEditBitmapOperationMessage\&quot;}\n\t]);\n};\n\n/*\nHandle an edit bitmap operation message from the toolbar\n*/\nEditBitmapWidget.prototype.handleEditBitmapOperationMessage = function(event) {\n\t// Invoke the handler\n\tvar handler = this.editorOperations[event.param];\n\tif(handler) {\n\t\thandler.call(this,event);\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nEditBitmapWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.editTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nJust refresh the toolbar\n*/\nEditBitmapWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nSet the bitmap size variables and refresh the toolbar\n*/\nEditBitmapWidget.prototype.refreshToolbar = function() {\n\t// Set the width and height variables\n\tthis.setVariable(\&quot;tv-bitmap-editor-width\&quot;,this.canvasDomNode.width + \&quot;px\&quot;);\n\tthis.setVariable(\&quot;tv-bitmap-editor-height\&quot;,this.canvasDomNode.height + \&quot;px\&quot;);\n\t// Refresh each of our child widgets\n\t$tw.utils.each(this.children,function(childWidget) {\n\t\tchildWidget.refreshSelf();\n\t});\n};\n\nEditBitmapWidget.prototype.loadCanvas = function() {\n\tvar tiddler = this.wiki.getTiddler(this.editTitle),\n\t\tcurrImage = new Image();\n\t// Set up event handlers for loading the image\n\tvar self = this;\n\tcurrImage.onload = function() {\n\t\t// Copy the image to the on-screen canvas\n\t\tself.initCanvas(self.canvasDomNode,currImage.width,currImage.height,currImage);\n\t\t// And also copy the current bitmap to the off-screen canvas\n\t\tself.currCanvas = self.document.createElement(\&quot;canvas\&quot;);\n\t\tself.initCanvas(self.currCanvas,currImage.width,currImage.height,currImage);\n\t\t// Set the width and height input boxes\n\t\tself.refreshToolbar();\n\t};\n\tcurrImage.onerror = function() {\n\t\t// Set the on-screen canvas size and clear it\n\t\tself.initCanvas(self.canvasDomNode,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT);\n\t\t// Set the off-screen canvas size and clear it\n\t\tself.currCanvas = self.document.createElement(\&quot;canvas\&quot;);\n\t\tself.initCanvas(self.currCanvas,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT);\n\t\t// Set the width and height input boxes\n\t\tself.refreshToolbar();\n\t};\n\t// Get the current bitmap into an image object\n\tif(tiddler &amp;&amp; tiddler.fields.type &amp;&amp; tiddler.fields.text) {\n\t\tcurrImage.src = \&quot;data:\&quot; + tiddler.fields.type + \&quot;;base64,\&quot; + tiddler.fields.text;\t\t\n\t} else {\n\t\tcurrImage.width = DEFAULT_IMAGE_WIDTH;\n\t\tcurrImage.height = DEFAULT_IMAGE_HEIGHT;\n\t\tcurrImage.onerror();\n\t}\n};\n\nEditBitmapWidget.prototype.initCanvas = function(canvas,width,height,image) {\n\tcanvas.width = width;\n\tcanvas.height = height;\n\tvar ctx = canvas.getContext(\&quot;2d\&quot;);\n\tif(image) {\n\t\tctx.drawImage(image,0,0);\n\t} else {\n\t\tctx.fillStyle = \&quot;#fff\&quot;;\n\t\tctx.fillRect(0,0,canvas.width,canvas.height);\n\t}\n};\n\n/*\n** Change the size of the canvas, preserving the current image\n*/\nEditBitmapWidget.prototype.changeCanvasSize = function(newWidth,newHeight) {\n\t// Create and size a new canvas\n\tvar newCanvas = this.document.createElement(\&quot;canvas\&quot;);\n\tthis.initCanvas(newCanvas,newWidth,newHeight);\n\t// Copy the old image\n\tvar ctx = newCanvas.getContext(\&quot;2d\&quot;);\n\tctx.drawImage(this.currCanvas,0,0);\n\t// Set the new canvas as the current one\n\tthis.currCanvas = newCanvas;\n\t// Set the size of the onscreen canvas\n\tthis.canvasDomNode.width = newWidth;\n\tthis.canvasDomNode.height = newHeight;\n\t// Paint the onscreen canvas with the offscreen canvas\n\tctx = this.canvasDomNode.getContext(\&quot;2d\&quot;);\n\tctx.drawImage(this.currCanvas,0,0);\n};\n\n/*\n** Rotate the canvas left by 90 degrees\n*/\nEditBitmapWidget.prototype.rotateCanvasLeft = function() {\n\t// Get the current size of the image\n\tvar origWidth = this.currCanvas.width,\n\t\torigHeight = this.currCanvas.height;\n\t// Create and size a new canvas\n\tvar newCanvas = this.document.createElement(\&quot;canvas\&quot;),\n\t\tnewWidth = origHeight,\n\t\tnewHeight = origWidth;\n\tthis.initCanvas(newCanvas,newWidth,newHeight);\n\t// Copy the old image\n\tvar ctx = newCanvas.getContext(\&quot;2d\&quot;);\n\tctx.save();\n\tctx.translate(newWidth / 2,newHeight / 2);\n\tctx.rotate(-Math.PI / 2);\n\tctx.drawImage(this.currCanvas,-origWidth / 2,-origHeight / 2);\n\tctx.restore();\n\t// Set the new canvas as the current one\n\tthis.currCanvas = newCanvas;\n\t// Set the size of the onscreen canvas\n\tthis.canvasDomNode.width = newWidth;\n\tthis.canvasDomNode.height = newHeight;\n\t// Paint the onscreen canvas with the offscreen canvas\n\tctx = this.canvasDomNode.getContext(\&quot;2d\&quot;);\n\tctx.drawImage(this.currCanvas,0,0);\n};\n\nEditBitmapWidget.prototype.handleTouchStartEvent = function(event) {\n\tthis.brushDown = true;\n\tthis.strokeStart(event.touches[0].clientX,event.touches[0].clientY);\n\tevent.preventDefault();\n\tevent.stopPropagation();\n\treturn false;\n};\n\nEditBitmapWidget.prototype.handleTouchMoveEvent = function(event) {\n\tif(this.brushDown) {\n\t\tthis.strokeMove(event.touches[0].clientX,event.touches[0].clientY);\n\t}\n\tevent.preventDefault();\n\tevent.stopPropagation();\n\treturn false;\n};\n\nEditBitmapWidget.prototype.handleTouchEndEvent = function(event) {\n\tif(this.brushDown) {\n\t\tthis.brushDown = false;\n\t\tthis.strokeEnd();\n\t}\n\tevent.preventDefault();\n\tevent.stopPropagation();\n\treturn false;\n};\n\nEditBitmapWidget.prototype.handleMouseDownEvent = function(event) {\n\tthis.strokeStart(event.clientX,event.clientY);\n\tthis.brushDown = true;\n\tevent.preventDefault();\n\tevent.stopPropagation();\n\treturn false;\n};\n\nEditBitmapWidget.prototype.handleMouseMoveEvent = function(event) {\n\tif(this.brushDown) {\n\t\tthis.strokeMove(event.clientX,event.clientY);\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\treturn false;\n\t}\n\treturn true;\n};\n\nEditBitmapWidget.prototype.handleMouseUpEvent = function(event) {\n\tif(this.brushDown) {\n\t\tthis.brushDown = false;\n\t\tthis.strokeEnd();\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\treturn false;\n\t}\n\treturn true;\n};\n\nEditBitmapWidget.prototype.adjustCoordinates = function(x,y) {\n\tvar canvasRect = this.canvasDomNode.getBoundingClientRect(),\n\t\tscale = this.canvasDomNode.width/canvasRect.width;\n\treturn {x: (x - canvasRect.left) * scale, y: (y - canvasRect.top) * scale};\n};\n\nEditBitmapWidget.prototype.strokeStart = function(x,y) {\n\t// Start off a new stroke\n\tthis.stroke = [this.adjustCoordinates(x,y)];\n};\n\nEditBitmapWidget.prototype.strokeMove = function(x,y) {\n\tvar ctx = this.canvasDomNode.getContext(\&quot;2d\&quot;),\n\t\tt;\n\t// Add the new position to the end of the stroke\n\tthis.stroke.push(this.adjustCoordinates(x,y));\n\t// Redraw the previous image\n\tctx.drawImage(this.currCanvas,0,0);\n\t// Render the stroke\n\tctx.globalAlpha = parseFloat(this.wiki.getTiddlerText(LINE_OPACITY_TITLE,\&quot;1.0\&quot;));\n\tctx.strokeStyle = this.wiki.getTiddlerText(LINE_COLOUR_TITLE,\&quot;#ff0\&quot;);\n\tctx.lineWidth = parseFloat(this.wiki.getTiddlerText(LINE_WIDTH_TITLE,\&quot;3\&quot;));\n\tctx.lineCap = \&quot;round\&quot;;\n\tctx.lineJoin = \&quot;round\&quot;;\n\tctx.beginPath();\n\tctx.moveTo(this.stroke[0].x,this.stroke[0].y);\n\tfor(t=1; t&lt;this.stroke.length-1; t++) {\n\t\tvar s1 = this.stroke[t],\n\t\t\ts2 = this.stroke[t-1],\n\t\t\ttx = (s1.x + s2.x)/2,\n\t\t\tty = (s1.y + s2.y)/2;\n\t\tctx.quadraticCurveTo(s2.x,s2.y,tx,ty);\n\t}\n\tctx.stroke();\n};\n\nEditBitmapWidget.prototype.strokeEnd = function() {\n\t// Copy the bitmap to the off-screen canvas\n\tvar ctx = this.currCanvas.getContext(\&quot;2d\&quot;);\n\tctx.drawImage(this.canvasDomNode,0,0);\n\t// Save the image into the tiddler\n\tthis.saveChanges();\n};\n\nEditBitmapWidget.prototype.saveChanges = function() {\n\tvar tiddler = this.wiki.getTiddler(this.editTitle) || new $tw.Tiddler({title: this.editTitle,type: DEFAULT_IMAGE_TYPE});\n\t// data URIs look like \&quot;data:&lt;type&gt;;base64,&lt;text&gt;\&quot;\n\tvar dataURL = this.canvasDomNode.toDataURL(tiddler.fields.type),\n\t\tposColon = dataURL.indexOf(\&quot;:\&quot;),\n\t\tposSemiColon = dataURL.indexOf(\&quot;;\&quot;),\n\t\tposComma = dataURL.indexOf(\&quot;,\&quot;),\n\t\ttype = dataURL.substring(posColon+1,posSemiColon),\n\t\ttext = dataURL.substring(posComma+1);\n\tvar update = {type: type, text: text};\n\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getModificationFields(),tiddler,update,this.wiki.getCreationFields()));\n};\n\nexports[\&quot;edit-bitmap\&quot;] = EditBitmapWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/edit-shortcut.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/edit-shortcut.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/edit-shortcut.js\ntype: application/javascript\nmodule-type: widget\n\nWidget to display an editable keyboard shortcut\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar EditShortcutWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEditShortcutWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEditShortcutWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.inputNode = this.document.createElement(\&quot;input\&quot;);\n\t// Assign classes\n\tif(this.shortcutClass) {\n\t\tthis.inputNode.className = this.shortcutClass;\t\t\n\t}\n\t// Assign other attributes\n\tif(this.shortcutStyle) {\n\t\tthis.inputNode.setAttribute(\&quot;style\&quot;,this.shortcutStyle);\n\t}\n\tif(this.shortcutTooltip) {\n\t\tthis.inputNode.setAttribute(\&quot;title\&quot;,this.shortcutTooltip);\n\t}\n\tif(this.shortcutPlaceholder) {\n\t\tthis.inputNode.setAttribute(\&quot;placeholder\&quot;,this.shortcutPlaceholder);\n\t}\n\tif(this.shortcutAriaLabel) {\n\t\tthis.inputNode.setAttribute(\&quot;aria-label\&quot;,this.shortcutAriaLabel);\n\t}\n\t// Assign the current shortcut\n\tthis.updateInputNode();\n\t// Add event handlers\n\t$tw.utils.addEventListeners(this.inputNode,[\n\t\t{name: \&quot;keydown\&quot;, handlerObject: this, handlerMethod: \&quot;handleKeydownEvent\&quot;}\n\t]);\n\t// Link into the DOM\n\tparent.insertBefore(this.inputNode,nextSibling);\n\tthis.domNodes.push(this.inputNode);\n\t// Focus the input Node if focus === \&quot;yes\&quot; or focus === \&quot;true\&quot;\n\tif(this.shortcutFocus === \&quot;yes\&quot; || this.shortcutFocus === \&quot;true\&quot;) {\n\t\tthis.focus();\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nEditShortcutWidget.prototype.execute = function() {\n\tthis.shortcutTiddler = this.getAttribute(\&quot;tiddler\&quot;);\n\tthis.shortcutField = this.getAttribute(\&quot;field\&quot;);\n\tthis.shortcutIndex = this.getAttribute(\&quot;index\&quot;);\n\tthis.shortcutPlaceholder = this.getAttribute(\&quot;placeholder\&quot;);\n\tthis.shortcutDefault = this.getAttribute(\&quot;default\&quot;,\&quot;\&quot;);\n\tthis.shortcutClass = this.getAttribute(\&quot;class\&quot;);\n\tthis.shortcutStyle = this.getAttribute(\&quot;style\&quot;);\n\tthis.shortcutTooltip = this.getAttribute(\&quot;tooltip\&quot;);\n\tthis.shortcutAriaLabel = this.getAttribute(\&quot;aria-label\&quot;);\n\tthis.shortcutFocus = this.getAttribute(\&quot;focus\&quot;);\n};\n\n/*\nUpdate the value of the input node\n*/\nEditShortcutWidget.prototype.updateInputNode = function() {\n\tif(this.shortcutField) {\n\t\tvar tiddler = this.wiki.getTiddler(this.shortcutTiddler);\n\t\tif(tiddler &amp;&amp; $tw.utils.hop(tiddler.fields,this.shortcutField)) {\n\t\t\tthis.inputNode.value = tiddler.getFieldString(this.shortcutField);\n\t\t} else {\n\t\t\tthis.inputNode.value = this.shortcutDefault;\n\t\t}\n\t} else if(this.shortcutIndex) {\n\t\tthis.inputNode.value = this.wiki.extractTiddlerDataItem(this.shortcutTiddler,this.shortcutIndex,this.shortcutDefault);\n\t} else {\n\t\tthis.inputNode.value = this.wiki.getTiddlerText(this.shortcutTiddler,this.shortcutDefault);\n\t}\n};\n\n/*\nHandle a dom \&quot;keydown\&quot; event\n*/\nEditShortcutWidget.prototype.handleKeydownEvent = function(event) {\n\t// Ignore shift, ctrl, meta, alt\n\tif(event.keyCode &amp;&amp; $tw.keyboardManager.getModifierKeys().indexOf(event.keyCode) === -1) {\n\t\t// Get the shortcut text representation\n\t\tvar value = $tw.keyboardManager.getPrintableShortcuts([{\n\t\t\tctrlKey: event.ctrlKey,\n\t\t\tshiftKey: event.shiftKey,\n\t\t\taltKey: event.altKey,\n\t\t\tmetaKey: event.metaKey,\n\t\t\tkeyCode: event.keyCode\n\t\t}]);\n\t\tif(value.length &gt; 0) {\n\t\t\tthis.wiki.setText(this.shortcutTiddler,this.shortcutField,this.shortcutIndex,value[0]);\n\t\t}\n\t\t// Ignore the keydown if it was already handled\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\treturn true;\t\t\n\t} else {\n\t\treturn false;\n\t}\n};\n\n/*\nfocus the input node\n*/\nEditShortcutWidget.prototype.focus = function() {\n\tif(this.inputNode.focus &amp;&amp; this.inputNode.select) {\n\t\tthis.inputNode.focus();\n\t\tthis.inputNode.select();\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget needed re-rendering\n*/\nEditShortcutWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.placeholder || changedAttributes[\&quot;default\&quot;] || changedAttributes[\&quot;class\&quot;] || changedAttributes.style || changedAttributes.tooltip || changedAttributes[\&quot;aria-label\&quot;] || changedAttributes.focus) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedTiddlers[this.shortcutTiddler]) {\n\t\tthis.updateInputNode();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\n\t}\n};\n\nexports[\&quot;edit-shortcut\&quot;] = EditShortcutWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/edit-text.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/edit-text.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/edit-text.js\ntype: application/javascript\nmodule-type: widget\n\nEdit-text widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar editTextWidgetFactory = require(\&quot;$:/core/modules/editor/factory.js\&quot;).editTextWidgetFactory,\n\tFramedEngine = require(\&quot;$:/core/modules/editor/engines/framed.js\&quot;).FramedEngine,\n\tSimpleEngine = require(\&quot;$:/core/modules/editor/engines/simple.js\&quot;).SimpleEngine;\n\nexports[\&quot;edit-text\&quot;] = editTextWidgetFactory(FramedEngine,SimpleEngine);\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/edit.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/edit.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/edit.js\ntype: application/javascript\nmodule-type: widget\n\nEdit widget is a meta-widget chooses the appropriate actual editting widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar EditWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEditWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEditWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n// Mappings from content type to editor type are stored in tiddlers with this prefix\nvar EDITOR_MAPPING_PREFIX = \&quot;$:/config/EditorTypeMappings/\&quot;;\n\n/*\nCompute the internal state of the widget\n*/\nEditWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.editTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tthis.editField = this.getAttribute(\&quot;field\&quot;,\&quot;text\&quot;);\n\tthis.editIndex = this.getAttribute(\&quot;index\&quot;);\n\tthis.editClass = this.getAttribute(\&quot;class\&quot;);\n\tthis.editPlaceholder = this.getAttribute(\&quot;placeholder\&quot;);\n\tthis.editTabIndex = this.getAttribute(\&quot;tabindex\&quot;);\n\tthis.editFocus = this.getAttribute(\&quot;focus\&quot;,\&quot;\&quot;);\n\tthis.editCancelPopups = this.getAttribute(\&quot;cancelPopups\&quot;,\&quot;\&quot;);\n\tthis.editInputActions = this.getAttribute(\&quot;inputActions\&quot;);\n\tthis.editRefreshTitle = this.getAttribute(\&quot;refreshTitle\&quot;);\n\tthis.editAutoComplete = this.getAttribute(\&quot;autocomplete\&quot;);\n\t// Choose the appropriate edit widget\n\tthis.editorType = this.getEditorType();\n\t// Make the child widgets\n\tthis.makeChildWidgets([{\n\t\ttype: \&quot;edit-\&quot; + this.editorType,\n\t\tattributes: this.parseTreeNode.attributes,\n\t\tchildren: this.parseTreeNode.children\n\t}]);\n};\n\nEditWidget.prototype.getEditorType = function() {\n\t// Get the content type of the thing we're editing\n\tvar type;\n\tif(this.editField === \&quot;text\&quot;) {\n\t\tvar tiddler = this.wiki.getTiddler(this.editTitle);\n\t\tif(tiddler) {\n\t\t\ttype = tiddler.fields.type;\n\t\t}\n\t}\n\ttype = type || \&quot;text/vnd.tiddlywiki\&quot;;\n\tvar editorType = this.wiki.getTiddlerText(EDITOR_MAPPING_PREFIX + type);\n\tif(!editorType) {\n\t\tvar typeInfo = $tw.config.contentTypeInfo[type];\n\t\tif(typeInfo &amp;&amp; typeInfo.encoding === \&quot;base64\&quot;) {\n\t\t\teditorType = \&quot;binary\&quot;;\n\t\t} else {\n\t\t\teditorType = \&quot;text\&quot;;\n\t\t}\n\t}\n\treturn editorType;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nEditWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\t// Refresh if an attribute has changed, or the type associated with the target tiddler has changed\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.tabindex || changedAttributes.cancelPopups || changedAttributes.inputActions || changedAttributes.refreshTitle || changedAttributes.autocomplete || (changedTiddlers[this.editTitle] &amp;&amp; this.getEditorType() !== this.editorType)) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.edit = EditWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/element.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/element.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/element.js\ntype: application/javascript\nmodule-type: widget\n\nElement widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar ElementWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nElementWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nElementWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\t// Neuter blacklisted elements\n\tthis.tag = this.parseTreeNode.tag;\n\tif($tw.config.htmlUnsafeElements.indexOf(this.tag) !== -1) {\n\t\tthis.tag = \&quot;safe-\&quot; + this.tag;\n\t}\n\t// Adjust headings by the current base level\n\tvar headingLevel = [\&quot;h1\&quot;,\&quot;h2\&quot;,\&quot;h3\&quot;,\&quot;h4\&quot;,\&quot;h5\&quot;,\&quot;h6\&quot;].indexOf(this.tag);\n\tif(headingLevel !== -1) {\n\t\tvar baseLevel = parseInt(this.getVariable(\&quot;tv-adjust-heading-level\&quot;,\&quot;0\&quot;),10) || 0;\n\t\theadingLevel = Math.min(Math.max(headingLevel + 1 + baseLevel,1),6);\n\t\tthis.tag = \&quot;h\&quot; + headingLevel;\n\t}\n\t// Select the namespace for the tag\n\tvar tagNamespaces = {\n\t\t\tsvg: \&quot;http://www.w3.org/2000/svg\&quot;,\n\t\t\tmath: \&quot;http://www.w3.org/1998/Math/MathML\&quot;,\n\t\t\tbody: \&quot;http://www.w3.org/1999/xhtml\&quot;\n\t\t};\n\tthis.namespace = tagNamespaces[this.tag];\n\tif(this.namespace) {\n\t\tthis.setVariable(\&quot;namespace\&quot;,this.namespace);\n\t} else {\n\t\tthis.namespace = this.getVariable(\&quot;namespace\&quot;,{defaultValue: \&quot;http://www.w3.org/1999/xhtml\&quot;});\n\t}\n\t// Invoke the th-rendering-element hook\n\tvar parseTreeNodes = $tw.hooks.invokeHook(\&quot;th-rendering-element\&quot;,null,this);\n\tthis.isReplaced = !!parseTreeNodes;\n\tif(parseTreeNodes) {\n\t\t// Use the parse tree nodes provided by the hook\n\t\tthis.makeChildWidgets(parseTreeNodes);\n\t\tthis.renderChildren(this.parentDomNode,null);\n\t\treturn;\n\t}\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n\t// Create the DOM node and render children\n\tvar domNode = this.document.createElementNS(this.namespace,this.tag);\n\tthis.assignAttributes(domNode,{excludeEventAttributes: true});\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nElementWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes(),\n\t\thasChangedAttributes = $tw.utils.count(changedAttributes) &gt; 0;\n\tif(hasChangedAttributes) {\n\t\tif(!this.isReplaced) {\n\t\t\t// Update our attributes\n\t\t\tthis.assignAttributes(this.domNodes[0],{excludeEventAttributes: true});\t\t\t\n\t\t} else {\n\t\t\t// If we were replaced then completely refresh ourselves\n\t\t\treturn this.refreshSelf();\n\t\t}\n\t}\n\treturn this.refreshChildren(changedTiddlers) || hasChangedAttributes;\n};\n\nexports.element = ElementWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/encrypt.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/encrypt.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/encrypt.js\ntype: application/javascript\nmodule-type: widget\n\nEncrypt widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar EncryptWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEncryptWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEncryptWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar textNode = this.document.createTextNode(this.encryptedText);\n\tparent.insertBefore(textNode,nextSibling);\n\tthis.domNodes.push(textNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nEncryptWidget.prototype.execute = function() {\n\t// Get parameters from our attributes\n\tthis.filter = this.getAttribute(\&quot;filter\&quot;,\&quot;[!is[system]]\&quot;);\n\t// Encrypt the filtered tiddlers\n\tvar tiddlers = this.wiki.filterTiddlers(this.filter),\n\t\tjson = {},\n\t\tself = this;\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = self.wiki.getTiddler(title),\n\t\t\tjsonTiddler = {};\n\t\tfor(var f in tiddler.fields) {\n\t\t\tjsonTiddler[f] = tiddler.getFieldString(f);\n\t\t}\n\t\tjson[title] = jsonTiddler;\n\t});\n\tthis.encryptedText = $tw.utils.htmlEncode($tw.crypto.encrypt(JSON.stringify(json)));\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nEncryptWidget.prototype.refresh = function(changedTiddlers) {\n\t// We don't need to worry about refreshing because the encrypt widget isn't for interactive use\n\treturn false;\n};\n\nexports.encrypt = EncryptWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/entity.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/entity.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/entity.js\ntype: application/javascript\nmodule-type: widget\n\nHTML entity widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar EntityWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEntityWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEntityWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar entityString = this.getAttribute(\&quot;entity\&quot;,this.parseTreeNode.entity || \&quot;\&quot;),\n\t\ttextNode = this.document.createTextNode($tw.utils.entityDecode(entityString));\n\tparent.insertBefore(textNode,nextSibling);\n\tthis.domNodes.push(textNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nEntityWidget.prototype.execute = function() {\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nEntityWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.entity) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\n\t}\n};\n\nexports.entity = EntityWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/eventcatcher.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/eventcatcher.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/eventcatcher.js\ntype: application/javascript\nmodule-type: widget\n\nEvent handler widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar EventWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEventWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEventWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\tvar tag = this.parseTreeNode.isBlock ? \&quot;div\&quot; : \&quot;span\&quot;;\n\tif(this.elementTag &amp;&amp; $tw.config.htmlUnsafeElements.indexOf(this.elementTag) === -1) {\n\t\ttag = this.elementTag;\n\t}\t\n\tvar domNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\t// Assign classes\n\tthis.assignDomNodeClasses();\t\n\t// Add our event handler\n\t$tw.utils.each(this.types,function(type) {\n\t\tdomNode.addEventListener(type,function(event) {\n\t\t\tvar selector = self.getAttribute(\&quot;selector\&quot;),\n\t\t\t\tactions = self.getAttribute(\&quot;actions-\&quot;+type),\n\t\t\t\tselectedNode = event.target,\n\t\t\t\tselectedNodeRect,\n\t\t\t\tcatcherNodeRect,\n\t\t\t\tvariables = {};\n\t\t\tif(selector) {\n\t\t\t\t// Search ancestors for a node that matches the selector\n\t\t\t\twhile(!selectedNode.matches(selector) &amp;&amp; selectedNode !== domNode) {\n\t\t\t\t\tselectedNode = selectedNode.parentNode;\n\t\t\t\t}\n\t\t\t\t// If we found one, copy the attributes as variables, otherwise exit\n\t\t\t\tif(selectedNode.matches(selector)) {\n\t\t\t\t\t$tw.utils.each(selectedNode.attributes,function(attribute) {\n\t\t\t\t\t\tvariables[\&quot;dom-\&quot; + attribute.name] = attribute.value.toString();\n\t\t\t\t\t});\n\t\t\t\t\t//Add a variable with a popup coordinate string for the selected node\n\t\t\t\t\tvariables[\&quot;tv-popup-coords\&quot;] = \&quot;(\&quot; + selectedNode.offsetLeft + \&quot;,\&quot; + selectedNode.offsetTop +\&quot;,\&quot; + selectedNode.offsetWidth + \&quot;,\&quot; + selectedNode.offsetHeight + \&quot;)\&quot;;\n\t\t\t\t\t\n\t\t\t\t\t//Add variables for offset of selected node\n\t\t\t\t\tvariables[\&quot;tv-selectednode-posx\&quot;] = selectedNode.offsetLeft.toString();\n\t\t\t\t\tvariables[\&quot;tv-selectednode-posy\&quot;] = selectedNode.offsetTop.toString();\n\t\t\t\t\tvariables[\&quot;tv-selectednode-width\&quot;] = selectedNode.offsetWidth.toString();\n\t\t\t\t\tvariables[\&quot;tv-selectednode-height\&quot;] = selectedNode.offsetHeight.toString();\n\n\t\t\t\t\t//Add variables for event X and Y position relative to selected node\n\t\t\t\t\tselectedNodeRect = selectedNode.getBoundingClientRect();\t\t\t\t\n\t\t\t\t\tvariables[\&quot;event-fromselected-posx\&quot;] = (event.clientX - selectedNodeRect.left).toString();\n\t\t\t\t\tvariables[\&quot;event-fromselected-posy\&quot;] = (event.clientY - selectedNodeRect.top).toString();\n\n\t\t\t\t\t//Add variables for event X and Y position relative to event catcher node\n\t\t\t\t\tcatcherNodeRect = self.domNode.getBoundingClientRect();\n\t\t\t\t\tvariables[\&quot;event-fromcatcher-posx\&quot;] = (event.clientX - catcherNodeRect.left).toString();\n\t\t\t\t\tvariables[\&quot;event-fromcatcher-posy\&quot;] = (event.clientY - catcherNodeRect.top).toString();\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Execute our actions with the variables\n\t\t\tif(actions) {\n\t\t\t\t// Add a variable for the modifier key\n\t\t\t\tvariables.modifier = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\t\t\t// Add a variable for the mouse button\n\t\t\t\tif(\&quot;button\&quot; in event) {\n\t\t\t\t\tif(event.button === 0) {\n\t\t\t\t\t\tvariables[\&quot;event-mousebutton\&quot;] = \&quot;left\&quot;;\n\t\t\t\t\t} else if(event.button === 1) {\n\t\t\t\t\t\tvariables[\&quot;event-mousebutton\&quot;] = \&quot;middle\&quot;;\n\t\t\t\t\t} else if(event.button === 2) {\n\t\t\t\t\t\tvariables[\&quot;event-mousebutton\&quot;] = \&quot;right\&quot;;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tvariables[\&quot;event-type\&quot;] = event.type.toString();\n\t\t\t\tif(typeof event.detail === \&quot;object\&quot; &amp;&amp; !!event.detail) {\n\t\t\t\t\t$tw.utils.each(event.detail,function(detailValue,detail) {\n\t\t\t\t\t\tvariables[\&quot;event-detail-\&quot; + detail] = detailValue.toString();\n\t\t\t\t\t});\n\t\t\t\t} else if(!!event.detail) {\n\t\t\t\t\tvariables[\&quot;event-detail\&quot;] = event.detail.toString();\n\t\t\t\t}\n\t\t\t\tself.invokeActionString(actions,self,event,variables);\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t},false);\n\t});\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nEventWidget.prototype.execute = function() {\n\tvar self = this;\n\t// Get attributes that require a refresh on change\n\tthis.types = this.getAttribute(\&quot;events\&quot;,\&quot;\&quot;).split(\&quot; \&quot;);\n\tthis.elementTag = this.getAttribute(\&quot;tag\&quot;);\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\nEventWidget.prototype.assignDomNodeClasses = function() {\n\tvar classes = this.getAttribute(\&quot;class\&quot;,\&quot;\&quot;).split(\&quot; \&quot;);\n\tclasses.push(\&quot;tc-eventcatcher\&quot;);\n\tthis.domNode.className = classes.join(\&quot; \&quot;);\t\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nEventWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\&quot;events\&quot;] || changedAttributes[\&quot;tag\&quot;]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedAttributes[\&quot;class\&quot;]) {\n\t\tthis.assignDomNodeClasses();\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.eventcatcher = EventWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/fieldmangler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/fieldmangler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/fieldmangler.js\ntype: application/javascript\nmodule-type: widget\n\nField mangler widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar FieldManglerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \&quot;tm-remove-field\&quot;, handler: \&quot;handleRemoveFieldEvent\&quot;},\n\t\t{type: \&quot;tm-add-field\&quot;, handler: \&quot;handleAddFieldEvent\&quot;},\n\t\t{type: \&quot;tm-remove-tag\&quot;, handler: \&quot;handleRemoveTagEvent\&quot;},\n\t\t{type: \&quot;tm-add-tag\&quot;, handler: \&quot;handleAddTagEvent\&quot;}\n\t]);\n};\n\n/*\nInherit from the base widget class\n*/\nFieldManglerWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nFieldManglerWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nFieldManglerWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.mangleTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nFieldManglerWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\t\t\n\t}\n};\n\nFieldManglerWidget.prototype.handleRemoveFieldEvent = function(event) {\n\tvar tiddler = this.wiki.getTiddler(this.mangleTitle),\n\t\tdeletion = {};\n\tdeletion[event.param] = undefined;\n\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,deletion));\n\treturn true;\n};\n\nFieldManglerWidget.prototype.handleAddFieldEvent = function(event) {\n\tvar tiddler = this.wiki.getTiddler(this.mangleTitle),\n\t\taddition = this.wiki.getModificationFields(),\n\t\thadInvalidFieldName = false,\n\t\taddField = function(name,value) {\n\t\t\tvar trimmedName = name.toLowerCase().trim();\n\t\t\tif(!$tw.utils.isValidFieldName(trimmedName)) {\n\t\t\t\tif(!hadInvalidFieldName) {\n\t\t\t\t\talert($tw.language.getString(\n\t\t\t\t\t\t\&quot;InvalidFieldName\&quot;,\n\t\t\t\t\t\t{variables:\n\t\t\t\t\t\t\t{fieldName: trimmedName}\n\t\t\t\t\t\t}\n\t\t\t\t\t));\n\t\t\t\t\thadInvalidFieldName = true;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(!value &amp;&amp; tiddler) {\n\t\t\t\t\tvalue = tiddler.fields[trimmedName];\n\t\t\t\t}\n\t\t\t\taddition[trimmedName] = value || \&quot;\&quot;;\n\t\t\t}\n\t\t\treturn;\n\t\t};\n\taddition.title = this.mangleTitle;\n\tif(typeof event.param === \&quot;string\&quot;) {\n\t\taddField(event.param,\&quot;\&quot;);\n\t}\n\tif(typeof event.paramObject === \&quot;object\&quot;) {\n\t\tfor(var name in event.paramObject) {\n\t\t\taddField(name,event.paramObject[name]);\n\t\t}\n\t}\n\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,addition));\n\treturn true;\n};\n\nFieldManglerWidget.prototype.handleRemoveTagEvent = function(event) {\n\tvar tiddler = this.wiki.getTiddler(this.mangleTitle),\n\t\tmodification = this.wiki.getModificationFields();\n\tif(tiddler &amp;&amp; tiddler.fields.tags) {\n\t\tvar p = tiddler.fields.tags.indexOf(event.param);\n\t\tif(p !== -1) {\n\t\t\tmodification.tags = (tiddler.fields.tags || []).slice(0);\n\t\t\tmodification.tags.splice(p,1);\n\t\t\tif(modification.tags.length === 0) {\n\t\t\t\tmodification.tags = undefined;\n\t\t\t}\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,modification));\n\t\t}\n\t}\n\treturn true;\n};\n\nFieldManglerWidget.prototype.handleAddTagEvent = function(event) {\n\tvar tiddler = this.wiki.getTiddler(this.mangleTitle),\n\t\tmodification = this.wiki.getModificationFields();\n\tif(tiddler &amp;&amp; typeof event.param === \&quot;string\&quot;) {\n\t\tvar tag = event.param.trim();\n\t\tif(tag !== \&quot;\&quot;) {\n\t\t\tmodification.tags = (tiddler.fields.tags || []).slice(0);\n\t\t\t$tw.utils.pushTop(modification.tags,tag);\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,modification));\t\t\t\n\t\t}\n\t} else if(typeof event.param === \&quot;string\&quot; &amp;&amp; event.param.trim() !== \&quot;\&quot; &amp;&amp; this.mangleTitle.trim() !== \&quot;\&quot;) {\n\t\tvar tag = [];\n\t\ttag.push(event.param.trim());\n\t\tthis.wiki.addTiddler(new $tw.Tiddler({title: this.mangleTitle, tags: tag},modification));\n\t}\n\treturn true;\n};\n\nexports.fieldmangler = FieldManglerWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/fields.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/fields.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/fields.js\ntype: application/javascript\nmodule-type: widget\n\nFields widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar FieldsWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nFieldsWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nFieldsWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar textNode = this.document.createTextNode(this.text);\n\tparent.insertBefore(textNode,nextSibling);\n\tthis.domNodes.push(textNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nFieldsWidget.prototype.execute = function() {\n\t// Get parameters from our attributes\n\tthis.tiddlerTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tthis.template = this.getAttribute(\&quot;template\&quot;);\n\tthis.sort = this.getAttribute(\&quot;sort\&quot;,\&quot;yes\&quot;) === \&quot;yes\&quot;;\n\tthis.sortReverse = this.getAttribute(\&quot;sortReverse\&quot;,\&quot;no\&quot;) === \&quot;yes\&quot;;\n\tthis.exclude = this.getAttribute(\&quot;exclude\&quot;);\n\tthis.include = this.getAttribute(\&quot;include\&quot;,null);\n\tthis.stripTitlePrefix = this.getAttribute(\&quot;stripTitlePrefix\&quot;,\&quot;no\&quot;) === \&quot;yes\&quot;;\n\t// Get the value to display\n\tvar tiddler = this.wiki.getTiddler(this.tiddlerTitle);\n\n\t// Get the inclusion and exclusion list\n\tvar excludeArr = (this.exclude) ? this.exclude.split(\&quot; \&quot;) : [\&quot;text\&quot;];\n\t// Include takes precedence\n\tvar includeArr = (this.include) ? this.include.split(\&quot; \&quot;) : null;\n\n\t// Compose the template\n\tvar text = [];\n\tif(this.template &amp;&amp; tiddler) {\n\t\tvar fields = [];\n\t\tif (includeArr) { // Include takes precedence\n\t\t\tfor(var i=0; i&lt;includeArr.length; i++) {\n\t\t\t\tif(tiddler.fields[includeArr[i]]) {\n\t\t\t\t\tfields.push(includeArr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor(var fieldName in tiddler.fields) {\n\t\t\t\tif(excludeArr.indexOf(fieldName) === -1) {\n\t\t\t\t\tfields.push(fieldName);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this.sort) fields.sort();\n\t\tif (this.sortReverse) fields.reverse();\n\t\tfor(var f=0, fmax=fields.length; f&lt;fmax; f++) {\n\t\t\tfieldName = fields[f];\n\t\t\tvar row = this.template,\n\t\t\t\tvalue = tiddler.getFieldString(fieldName);\n\t\t\tif(this.stripTitlePrefix &amp;&amp; fieldName === \&quot;title\&quot;) {\n\t\t\t\tvar reStrip = /^\\{[^\\}]+\\}(.+)/mg,\n\t\t\t\t\treMatch = reStrip.exec(value);\n\t\t\t\tif(reMatch) {\n\t\t\t\t\tvalue = reMatch[1];\n\t\t\t\t}\n\t\t\t}\n\t\t\trow = $tw.utils.replaceString(row,\&quot;$name$\&quot;,fieldName);\n\t\t\trow = $tw.utils.replaceString(row,\&quot;$value$\&quot;,value);\n\t\t\trow = $tw.utils.replaceString(row,\&quot;$encoded_value$\&quot;,$tw.utils.htmlEncode(value));\n\t\t\ttext.push(row);\n\t\t}\n\t}\n\tthis.text = text.join(\&quot;\&quot;);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nFieldsWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif( changedAttributes.tiddler || changedAttributes.template || changedAttributes.exclude ||\n\t\tchangedAttributes.include || changedAttributes.sort || changedAttributes.sortReverse ||\n\t\tchangedTiddlers[this.tiddlerTitle] || changedAttributes.stripTitlePrefix) {\n\t\t\tthis.refreshSelf();\n\t\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n};\n\nexports.fields = FieldsWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/image.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/image.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/image.js\ntype: application/javascript\nmodule-type: widget\n\nThe image widget displays an image referenced with an external URI or with a local tiddler title.\n\n```\n&lt;$image src=\&quot;TiddlerTitle\&quot; width=\&quot;320\&quot; height=\&quot;400\&quot; class=\&quot;classnames\&quot;&gt;\n```\n\nThe image source can be the title of an existing tiddler or the URL of an external image.\n\nExternal images always generate an HTML `&lt;img&gt;` tag.\n\nTiddlers that have a _canonical_uri field generate an HTML `&lt;img&gt;` tag with the src attribute containing the URI.\n\nTiddlers that contain image data generate an HTML `&lt;img&gt;` tag with the src attribute containing a base64 representation of the image.\n\nTiddlers that contain wikitext could be rendered to a DIV of the usual size of a tiddler, and then transformed to the size requested.\n\nThe width and height attributes are interpreted as a number of pixels, and do not need to include the \&quot;px\&quot; suffix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar ImageWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nImageWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nImageWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\t// Determine what type of image it is\n\tvar tag = \&quot;img\&quot;, src = \&quot;\&quot;,\n\t\ttiddler = this.wiki.getTiddler(this.imageSource);\n\tif(!tiddler) {\n\t\t// The source isn't the title of a tiddler, so we'll assume it's a URL\n\t\tsrc = this.getVariable(\&quot;tv-get-export-image-link\&quot;,{params: [{name: \&quot;src\&quot;,value: this.imageSource}],defaultValue: this.imageSource});\n\t} else {\n\t\t// Check if it is an image tiddler\n\t\tif(this.wiki.isImageTiddler(this.imageSource)) {\n\t\t\tvar type = tiddler.fields.type,\n\t\t\t\ttext = tiddler.fields.text,\n\t\t\t\t_canonical_uri = tiddler.fields._canonical_uri;\n\t\t\t// If the tiddler has body text then it doesn't need to be lazily loaded\n\t\t\tif(text) {\n\t\t\t\t// Render the appropriate element for the image type\n\t\t\t\tswitch(type) {\n\t\t\t\t\tcase \&quot;application/pdf\&quot;:\n\t\t\t\t\t\ttag = \&quot;embed\&quot;;\n\t\t\t\t\t\tsrc = \&quot;data:application/pdf;base64,\&quot; + text;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \&quot;image/svg+xml\&quot;:\n\t\t\t\t\t\tsrc = \&quot;data:image/svg+xml,\&quot; + encodeURIComponent(text);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tsrc = \&quot;data:\&quot; + type + \&quot;;base64,\&quot; + text;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if(_canonical_uri) {\n\t\t\t\tswitch(type) {\n\t\t\t\t\tcase \&quot;application/pdf\&quot;:\n\t\t\t\t\t\ttag = \&quot;embed\&quot;;\n\t\t\t\t\t\tsrc = _canonical_uri;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \&quot;image/svg+xml\&quot;:\n\t\t\t\t\t\tsrc = _canonical_uri;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tsrc = _canonical_uri;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\t\n\t\t\t} else {\n\t\t\t\t// Just trigger loading of the tiddler\n\t\t\t\tthis.wiki.getTiddlerText(this.imageSource);\n\t\t\t}\n\t\t}\n\t}\n\t// Create the element and assign the attributes\n\tvar domNode = this.document.createElement(tag);\n\tdomNode.setAttribute(\&quot;src\&quot;,src);\n\tif(this.imageClass) {\n\t\tdomNode.setAttribute(\&quot;class\&quot;,this.imageClass);\t\t\n\t}\n\tif(this.imageWidth) {\n\t\tdomNode.setAttribute(\&quot;width\&quot;,this.imageWidth);\n\t}\n\tif(this.imageHeight) {\n\t\tdomNode.setAttribute(\&quot;height\&quot;,this.imageHeight);\n\t}\n\tif(this.imageTooltip) {\n\t\tdomNode.setAttribute(\&quot;title\&quot;,this.imageTooltip);\t\t\n\t}\n\tif(this.imageAlt) {\n\t\tdomNode.setAttribute(\&quot;alt\&quot;,this.imageAlt);\t\t\n\t}\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nImageWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.imageSource = this.getAttribute(\&quot;source\&quot;);\n\tthis.imageWidth = this.getAttribute(\&quot;width\&quot;);\n\tthis.imageHeight = this.getAttribute(\&quot;height\&quot;);\n\tthis.imageClass = this.getAttribute(\&quot;class\&quot;);\n\tthis.imageTooltip = this.getAttribute(\&quot;tooltip\&quot;);\n\tthis.imageAlt = this.getAttribute(\&quot;alt\&quot;);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nImageWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.source || changedAttributes.width || changedAttributes.height || changedAttributes[\&quot;class\&quot;] || changedAttributes.tooltip || changedTiddlers[this.imageSource]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\t\n\t}\n};\n\nexports.image = ImageWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/importvariables.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/importvariables.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/importvariables.js\ntype: application/javascript\nmodule-type: widget\n\nImport variable definitions from other tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar ImportVariablesWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nImportVariablesWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nImportVariablesWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nImportVariablesWidget.prototype.execute = function(tiddlerList) {\n\tvar widgetPointer = this;\n\t// Got to flush all the accumulated variables\n\tthis.variables = new this.variablesConstructor();\n\t// Get our parameters\n\tthis.filter = this.getAttribute(\&quot;filter\&quot;);\n\t// Compute the filter\n\tthis.tiddlerList = tiddlerList || this.wiki.filterTiddlers(this.filter,this);\n\t// Accumulate the &lt;$set&gt; widgets from each tiddler\n\t$tw.utils.each(this.tiddlerList,function(title) {\n\t\tvar parser = widgetPointer.wiki.parseTiddler(title);\n\t\tif(parser) {\n\t\t\tvar parseTreeNode = parser.tree[0];\n\t\t\twhile(parseTreeNode &amp;&amp; parseTreeNode.type === \&quot;set\&quot;) {\n\t\t\t\tvar node = {\n\t\t\t\t\ttype: \&quot;set\&quot;,\n\t\t\t\t\tattributes: parseTreeNode.attributes,\n\t\t\t\t\tparams: parseTreeNode.params,\n\t\t\t\t\tisMacroDefinition: parseTreeNode.isMacroDefinition\n\t\t\t\t};\n\t\t\t\tif (parseTreeNode.isMacroDefinition) {\n\t\t\t\t\t// Macro definitions can be folded into\n\t\t\t\t\t// current widget instead of adding\n\t\t\t\t\t// another link to the chain.\n\t\t\t\t\tvar widget = widgetPointer.makeChildWidget(node);\n\t\t\t\t\twidget.computeAttributes();\n\t\t\t\t\twidget.execute();\n\t\t\t\t\t// We SHALLOW copy over all variables\n\t\t\t\t\t// in widget. We can't use\n\t\t\t\t\t// $tw.utils.assign, because that copies\n\t\t\t\t\t// up the prototype chain, which we\n\t\t\t\t\t// don't want.\n\t\t\t\t\t$tw.utils.each(Object.keys(widget.variables), function(key) {\n\t\t\t\t\t\twidgetPointer.variables[key] = widget.variables[key];\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\twidgetPointer.children = [widgetPointer.makeChildWidget(node)];\n\t\t\t\t\t// No more regenerating children for\n\t\t\t\t\t// this widget. If it needs to refresh,\n\t\t\t\t\t// it'll do so along with the the whole\n\t\t\t\t\t// importvariable tree.\n\t\t\t\t\tif (widgetPointer != this) {\n\t\t\t\t\t\twidgetPointer.makeChildWidgets = function(){};\n\t\t\t\t\t}\n\t\t\t\t\twidgetPointer = widgetPointer.children[0];\n\t\t\t\t}\n\t\t\t\tparseTreeNode = parseTreeNode.children &amp;&amp; parseTreeNode.children[0];\n\t\t\t}\n\t\t} \n\t});\n\n\tif (widgetPointer != this) {\n\t\twidgetPointer.parseTreeNode.children = this.parseTreeNode.children;\n\t} else {\n\t\twidgetPointer.makeChildWidgets();\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nImportVariablesWidget.prototype.refresh = function(changedTiddlers) {\n\t// Recompute our attributes and the filter list\n\tvar changedAttributes = this.computeAttributes(),\n\t\ttiddlerList = this.wiki.filterTiddlers(this.getAttribute(\&quot;filter\&quot;),this);\n\t// Refresh if the filter has changed, or the list of tiddlers has changed, or any of the tiddlers in the list has changed\n\tfunction haveListedTiddlersChanged() {\n\t\tvar changed = false;\n\t\ttiddlerList.forEach(function(title) {\n\t\t\tif(changedTiddlers[title]) {\n\t\t\t\tchanged = true;\n\t\t\t}\n\t\t});\n\t\treturn changed;\n\t}\n\tif(changedAttributes.filter || !$tw.utils.isArrayEqual(this.tiddlerList,tiddlerList) || haveListedTiddlersChanged()) {\n\t\t// Compute the filter\n\t\tthis.removeChildDomNodes();\n\t\tthis.execute(tiddlerList);\n\t\tthis.renderChildren(this.parentDomNode,this.findNextSiblingDomNode());\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\t\t\n\t}\n};\n\nexports.importvariables = ImportVariablesWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/keyboard.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/keyboard.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/keyboard.js\ntype: application/javascript\nmodule-type: widget\n\nKeyboard shortcut widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar KeyboardWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nKeyboardWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nKeyboardWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar tag = this.parseTreeNode.isBlock ? \&quot;div\&quot; : \&quot;span\&quot;;\n\tif(this.tag &amp;&amp; $tw.config.htmlUnsafeElements.indexOf(this.tag) === -1) {\n\t\ttag = this.tag;\n\t}\n\t// Create element\n\tvar domNode = this.document.createElement(tag);\n\t// Assign classes\n\tvar classes = (this[\&quot;class\&quot;] || \&quot;\&quot;).split(\&quot; \&quot;);\n\tclasses.push(\&quot;tc-keyboard\&quot;);\n\tdomNode.className = classes.join(\&quot; \&quot;);\n\t// Add a keyboard event handler\n\tdomNode.addEventListener(\&quot;keydown\&quot;,function (event) {\n\t\tif($tw.keyboardManager.checkKeyDescriptors(event,self.keyInfoArray)) {\n\t\t\tvar handled = self.invokeActions(self,event);\n\t\t\tif(self.actions) {\n\t\t\t\tself.invokeActionString(self.actions,self,event);\n\t\t\t}\n\t\t\tself.dispatchMessage(event);\n\t\t\tif(handled || self.actions || self.message) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},false);\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\nKeyboardWidget.prototype.dispatchMessage = function(event) {\n\tthis.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable(\&quot;currentTiddler\&quot;)});\n};\n\n/*\nCompute the internal state of the widget\n*/\nKeyboardWidget.prototype.execute = function() {\n\tvar self = this;\n\t// Get attributes\n\tthis.actions = this.getAttribute(\&quot;actions\&quot;,\&quot;\&quot;);\n\tthis.message = this.getAttribute(\&quot;message\&quot;,\&quot;\&quot;);\n\tthis.param = this.getAttribute(\&quot;param\&quot;,\&quot;\&quot;);\n\tthis.key = this.getAttribute(\&quot;key\&quot;,\&quot;\&quot;);\n\tthis.tag = this.getAttribute(\&quot;tag\&quot;,\&quot;\&quot;);\n\tthis.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);\n\tthis[\&quot;class\&quot;] = this.getAttribute(\&quot;class\&quot;,\&quot;\&quot;);\n\tif(this.key.substr(0,2) === \&quot;((\&quot; &amp;&amp; this.key.substr(-2,2) === \&quot;))\&quot;) {\n\t\tthis.shortcutTiddlers = [];\n\t\tvar name = this.key.substring(2,this.key.length -2);\n\t\t$tw.utils.each($tw.keyboardManager.lookupNames,function(platformDescriptor) {\n\t\t\tself.shortcutTiddlers.push(\&quot;$:/config/\&quot; + platformDescriptor + \&quot;/\&quot; + name);\n\t\t});\n\t}\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nKeyboardWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.message || changedAttributes.param || changedAttributes.key || changedAttributes[\&quot;class\&quot;] || changedAttributes.tag) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\t// Update the keyInfoArray if one of its shortcut-config-tiddlers has changed\n\tif(this.shortcutTiddlers &amp;&amp; $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers)) {\n\t\tthis.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.keyboard = KeyboardWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/link.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/link.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/link.js\ntype: application/javascript\nmodule-type: widget\n\nLink widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar LinkWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nLinkWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nLinkWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Get the value of the tv-wikilinks configuration macro\n\tvar wikiLinksMacro = this.getVariable(\&quot;tv-wikilinks\&quot;),\n\t\tuseWikiLinks = wikiLinksMacro ? (wikiLinksMacro.trim() !== \&quot;no\&quot;) : true,\n\t\tmissingLinksEnabled = !(this.hideMissingLinks &amp;&amp; this.isMissing &amp;&amp; !this.isShadow);\n\t// Render the link if required\n\tif(useWikiLinks &amp;&amp; missingLinksEnabled) {\n\t\tthis.renderLink(parent,nextSibling);\n\t} else {\n\t\t// Just insert the link text\n\t\tvar domNode = this.document.createElement(\&quot;span\&quot;);\n\t\tparent.insertBefore(domNode,nextSibling);\n\t\tthis.renderChildren(domNode,null);\n\t\tthis.domNodes.push(domNode);\n\t}\n};\n\n/*\nRender this widget into the DOM\n*/\nLinkWidget.prototype.renderLink = function(parent,nextSibling) {\n\tvar self = this;\n\t// Sanitise the specified tag\n\tvar tag = this.linkTag;\n\tif($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {\n\t\ttag = \&quot;a\&quot;;\n\t}\n\t// Create our element\n\tvar namespace = this.getVariable(\&quot;namespace\&quot;,{defaultValue: \&quot;http://www.w3.org/1999/xhtml\&quot;}),\n\t\tdomNode = this.document.createElementNS(namespace,tag);\n\t// Assign classes\n\tvar classes = [];\n\tif(this.overrideClasses === undefined) {\n\t\tclasses.push(\&quot;tc-tiddlylink\&quot;);\n\t\tif(this.isShadow) {\n\t\t\tclasses.push(\&quot;tc-tiddlylink-shadow\&quot;);\n\t\t}\n\t\tif(this.isMissing &amp;&amp; !this.isShadow) {\n\t\t\tclasses.push(\&quot;tc-tiddlylink-missing\&quot;);\n\t\t} else {\n\t\t\tif(!this.isMissing) {\n\t\t\t\tclasses.push(\&quot;tc-tiddlylink-resolves\&quot;);\n\t\t\t}\n\t\t}\n\t\tif(this.linkClasses) {\n\t\t\tclasses.push(this.linkClasses);\t\t\t\n\t\t}\n\t} else if(this.overrideClasses !== \&quot;\&quot;) {\n\t\tclasses.push(this.overrideClasses)\n\t}\n\tif(classes.length &gt; 0) {\n\t\tdomNode.setAttribute(\&quot;class\&quot;,classes.join(\&quot; \&quot;));\n\t}\n\t// Set an href\n\tvar wikilinkTransformFilter = this.getVariable(\&quot;tv-filter-export-link\&quot;),\n\t\twikiLinkText;\n\tif(wikilinkTransformFilter) {\n\t\t// Use the filter to construct the href\n\t\twikiLinkText = this.wiki.filterTiddlers(wikilinkTransformFilter,this,function(iterator) {\n\t\t\titerator(self.wiki.getTiddler(self.to),self.to)\n\t\t})[0];\n\t} else {\n\t\t// Expand the tv-wikilink-template variable to construct the href\n\t\tvar wikiLinkTemplateMacro = this.getVariable(\&quot;tv-wikilink-template\&quot;),\n\t\t\twikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.trim() : \&quot;#$uri_encoded$\&quot;;\n\t\twikiLinkText = $tw.utils.replaceString(wikiLinkTemplate,\&quot;$uri_encoded$\&quot;,encodeURIComponent(this.to));\n\t\twikiLinkText = $tw.utils.replaceString(wikiLinkText,\&quot;$uri_doubleencoded$\&quot;,encodeURIComponent(encodeURIComponent(this.to)));\n\t}\n\t// Override with the value of tv-get-export-link if defined\n\twikiLinkText = this.getVariable(\&quot;tv-get-export-link\&quot;,{params: [{name: \&quot;to\&quot;,value: this.to}],defaultValue: wikiLinkText});\n\tif(tag === \&quot;a\&quot;) {\n\t\tvar namespaceHref = (namespace === \&quot;http://www.w3.org/2000/svg\&quot;) ? \&quot;http://www.w3.org/1999/xlink\&quot; : undefined;\n\t\tdomNode.setAttributeNS(namespaceHref,\&quot;href\&quot;,wikiLinkText);\n\t}\n\t// Set the tabindex\n\tif(this.tabIndex) {\n\t\tdomNode.setAttribute(\&quot;tabindex\&quot;,this.tabIndex);\n\t}\n\t// Set the tooltip\n\t// HACK: Performance issues with re-parsing the tooltip prevent us defaulting the tooltip to \&quot;&lt;$transclude field='tooltip'&gt;&lt;$transclude field='title'/&gt;&lt;/$transclude&gt;\&quot;\n\tvar tooltipWikiText = this.tooltip || this.getVariable(\&quot;tv-wikilink-tooltip\&quot;);\n\tif(tooltipWikiText) {\n\t\tvar tooltipText = this.wiki.renderText(\&quot;text/plain\&quot;,\&quot;text/vnd.tiddlywiki\&quot;,tooltipWikiText,{\n\t\t\t\tparseAsInline: true,\n\t\t\t\tvariables: {\n\t\t\t\t\tcurrentTiddler: this.to\n\t\t\t\t},\n\t\t\t\tparentWidget: this\n\t\t\t});\n\t\tdomNode.setAttribute(\&quot;title\&quot;,tooltipText);\n\t}\n\tif(this[\&quot;aria-label\&quot;]) {\n\t\tdomNode.setAttribute(\&quot;aria-label\&quot;,this[\&quot;aria-label\&quot;]);\n\t}\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \&quot;click\&quot;, handlerObject: this, handlerMethod: \&quot;handleClickEvent\&quot;},\n\t]);\n\t// Make the link draggable if required\n\tif(this.draggable === \&quot;yes\&quot;) {\n\t\t$tw.utils.makeDraggable({\n\t\t\tdomNode: domNode,\n\t\t\tdragTiddlerFn: function() {return self.to;},\n\t\t\twidget: this\n\t\t});\n\t}\n\t// Insert the link into the DOM and render any children\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\nLinkWidget.prototype.handleClickEvent = function(event) {\n\t// Send the click on its way as a navigate event\n\tvar bounds = this.domNodes[0].getBoundingClientRect();\n\tthis.dispatchEvent({\n\t\ttype: \&quot;tm-navigate\&quot;,\n\t\tnavigateTo: this.to,\n\t\tnavigateFromTitle: this.getVariable(\&quot;storyTiddler\&quot;),\n\t\tnavigateFromNode: this,\n\t\tnavigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height\n\t\t},\n\t\tnavigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1),\n\t\tmetaKey: event.metaKey,\n\t\tctrlKey: event.ctrlKey,\n\t\taltKey: event.altKey,\n\t\tshiftKey: event.shiftKey,\n\t\tevent: event\n\t});\n\tif(this.domNodes[0].hasAttribute(\&quot;href\&quot;)) {\n\t\tevent.preventDefault();\n\t}\n\tevent.stopPropagation();\n\treturn false;\n};\n\n/*\nCompute the internal state of the widget\n*/\nLinkWidget.prototype.execute = function() {\n\t// Pick up our attributes\n\tthis.to = this.getAttribute(\&quot;to\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tthis.tooltip = this.getAttribute(\&quot;tooltip\&quot;);\n\tthis[\&quot;aria-label\&quot;] = this.getAttribute(\&quot;aria-label\&quot;);\n\tthis.linkClasses = this.getAttribute(\&quot;class\&quot;);\n\tthis.overrideClasses = this.getAttribute(\&quot;overrideClass\&quot;);\n\tthis.tabIndex = this.getAttribute(\&quot;tabindex\&quot;);\n\tthis.draggable = this.getAttribute(\&quot;draggable\&quot;,\&quot;yes\&quot;);\n\tthis.linkTag = this.getAttribute(\&quot;tag\&quot;,\&quot;a\&quot;);\n\t// Determine the link characteristics\n\tthis.isMissing = !this.wiki.tiddlerExists(this.to);\n\tthis.isShadow = this.wiki.isShadowTiddler(this.to);\n\tthis.hideMissingLinks = (this.getVariable(\&quot;tv-show-missing-links\&quot;) || \&quot;yes\&quot;) === \&quot;no\&quot;;\n\t// Make the child widgets\n\tvar templateTree;\n\tif(this.parseTreeNode.children &amp;&amp; this.parseTreeNode.children.length &gt; 0) {\n\t\ttemplateTree = this.parseTreeNode.children;\n\t} else {\n\t\t// Default template is a link to the title\n\t\ttemplateTree = [{type: \&quot;text\&quot;, text: this.to}];\n\t}\n\tthis.makeChildWidgets(templateTree);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nLinkWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.to || changedTiddlers[this.to] || changedAttributes[\&quot;aria-label\&quot;] || changedAttributes.tooltip) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.link = LinkWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/linkcatcher.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/linkcatcher.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/linkcatcher.js\ntype: application/javascript\nmodule-type: widget\n\nLinkcatcher widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar LinkCatcherWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \&quot;tm-navigate\&quot;, handler: \&quot;handleNavigateEvent\&quot;}\n\t]);\n};\n\n/*\nInherit from the base widget class\n*/\nLinkCatcherWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nLinkCatcherWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nLinkCatcherWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.catchTo = this.getAttribute(\&quot;to\&quot;);\n\tthis.catchMessage = this.getAttribute(\&quot;message\&quot;);\n\tthis.catchSet = this.getAttribute(\&quot;set\&quot;);\n\tthis.catchSetTo = this.getAttribute(\&quot;setTo\&quot;);\n\tthis.catchActions = this.getAttribute(\&quot;actions\&quot;);\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n\t// When executing actions we avoid trapping navigate events, so that we don't trigger ourselves recursively\n\tthis.executingActions = false;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nLinkCatcherWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.to || changedAttributes.message || changedAttributes.set || changedAttributes.setTo) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\t\t\n\t}\n};\n\n/*\nHandle a tm-navigate event\n*/\nLinkCatcherWidget.prototype.handleNavigateEvent = function(event) {\n\tif(!this.executingActions) {\n\t\t// Execute the actions\n\t\tif(this.catchTo) {\n\t\t\tthis.wiki.setTextReference(this.catchTo,event.navigateTo,this.getVariable(\&quot;currentTiddler\&quot;));\n\t\t}\n\t\tif(this.catchMessage &amp;&amp; this.parentWidget) {\n\t\t\tthis.parentWidget.dispatchEvent({\n\t\t\t\ttype: this.catchMessage,\n\t\t\t\tparam: event.navigateTo,\n\t\t\t\tnavigateTo: event.navigateTo\n\t\t\t});\n\t\t}\n\t\tif(this.catchSet) {\n\t\t\tvar tiddler = this.wiki.getTiddler(this.catchSet);\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,{title: this.catchSet, text: this.catchSetTo}));\n\t\t}\n\t\tif(this.catchActions) {\n\t\t\tthis.executingActions = true;\n\t\t\tvar modifierKey = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\t\tthis.invokeActionString(this.catchActions,this,event,{navigateTo: event.navigateTo, modifier: modifierKey});\n\t\t\tthis.executingActions = false;\n\t\t}\n\t} else {\n\t\t// This is a navigate event generated by the actions of this linkcatcher, so we don't trap it again, but just pass it to the parent\n\t\tthis.parentWidget.dispatchEvent({\n\t\t\ttype: \&quot;tm-navigate\&quot;,\n\t\t\tparam: event.navigateTo,\n\t\t\tnavigateTo: event.navigateTo\n\t\t});\n\t}\n\treturn false;\n};\n\nexports.linkcatcher = LinkCatcherWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/list.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/list.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/list.js\ntype: application/javascript\nmodule-type: widget\n\nList and list item widgets\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\n/*\nThe list widget creates list element sub-widgets that reach back into the list widget for their configuration\n*/\n\nvar ListWidget = function(parseTreeNode,options) {\n\t// Initialise the storyviews if they've not been done already\n\tif(!this.storyViews) {\n\t\tListWidget.prototype.storyViews = {};\n\t\t$tw.modules.applyMethods(\&quot;storyview\&quot;,this.storyViews);\n\t}\n\t// Main initialisation inherited from widget.js\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nListWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nListWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n\t// Construct the storyview\n\tvar StoryView = this.storyViews[this.storyViewName];\n\tif(this.storyViewName &amp;&amp; !StoryView) {\n\t\tStoryView = this.storyViews[\&quot;classic\&quot;];\n\t}\n\tif(StoryView &amp;&amp; !this.document.isTiddlyWikiFakeDom) {\n\t\tthis.storyview = new StoryView(this);\n\t} else {\n\t\tthis.storyview = null;\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nListWidget.prototype.execute = function() {\n\t// Get our attributes\n\tthis.template = this.getAttribute(\&quot;template\&quot;);\n\tthis.editTemplate = this.getAttribute(\&quot;editTemplate\&quot;);\n\tthis.variableName = this.getAttribute(\&quot;variable\&quot;,\&quot;currentTiddler\&quot;);\n\tthis.storyViewName = this.getAttribute(\&quot;storyview\&quot;);\n\tthis.historyTitle = this.getAttribute(\&quot;history\&quot;);\n\t// Compose the list elements\n\tthis.list = this.getTiddlerList();\n\tvar members = [],\n\t\tself = this;\n\t// Check for an empty list\n\tif(this.list.length === 0) {\n\t\tmembers = this.getEmptyMessage();\n\t} else {\n\t\t$tw.utils.each(this.list,function(title,index) {\n\t\t\tmembers.push(self.makeItemTemplate(title));\n\t\t});\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets(members);\n\t// Clear the last history\n\tthis.history = [];\n};\n\nListWidget.prototype.getTiddlerList = function() {\n\tvar defaultFilter = \&quot;[!is[system]sort[title]]\&quot;;\n\treturn this.wiki.filterTiddlers(this.getAttribute(\&quot;filter\&quot;,defaultFilter),this);\n};\n\nListWidget.prototype.getEmptyMessage = function() {\n\tvar parser,\n\t\temptyMessage = this.getAttribute(\&quot;emptyMessage\&quot;,\&quot;\&quot;);\n\t// this.wiki.parseText() calls \n\t// new Parser(..), which should only be done, if needed, because it's heavy!\n\tif (emptyMessage === \&quot;\&quot;) {\n\t\treturn [];\n\t}\n\tparser = this.wiki.parseText(\&quot;text/vnd.tiddlywiki\&quot;,emptyMessage,{parseAsInline: true});\n\tif(parser) {\n\t\treturn parser.tree;\n\t} else {\n\t\treturn [];\n\t}\n};\n\n/*\nCompose the template for a list item\n*/\nListWidget.prototype.makeItemTemplate = function(title) {\n\t// Check if the tiddler is a draft\n\tvar tiddler = this.wiki.getTiddler(title),\n\t\tisDraft = tiddler &amp;&amp; tiddler.hasField(\&quot;draft.of\&quot;),\n\t\ttemplate = this.template,\n\t\ttemplateTree;\n\tif(isDraft &amp;&amp; this.editTemplate) {\n\t\ttemplate = this.editTemplate;\n\t}\n\t// Compose the transclusion of the template\n\tif(template) {\n\t\ttemplateTree = [{type: \&quot;transclude\&quot;, attributes: {tiddler: {type: \&quot;string\&quot;, value: template}}}];\n\t} else {\n\t\tif(this.parseTreeNode.children &amp;&amp; this.parseTreeNode.children.length &gt; 0) {\n\t\t\ttemplateTree = this.parseTreeNode.children;\n\t\t} else {\n\t\t\t// Default template is a link to the title\n\t\t\ttemplateTree = [{type: \&quot;element\&quot;, tag: this.parseTreeNode.isBlock ? \&quot;div\&quot; : \&quot;span\&quot;, children: [{type: \&quot;link\&quot;, attributes: {to: {type: \&quot;string\&quot;, value: title}}, children: [\n\t\t\t\t\t{type: \&quot;text\&quot;, text: title}\n\t\t\t]}]}];\n\t\t}\n\t}\n\t// Return the list item\n\treturn {type: \&quot;listitem\&quot;, itemTitle: title, variableName: this.variableName, children: templateTree};\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nListWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes(),\n\t\tresult;\n\t// Call the storyview\n\tif(this.storyview &amp;&amp; this.storyview.refreshStart) {\n\t\tthis.storyview.refreshStart(changedTiddlers,changedAttributes);\n\t}\n\t// Completely refresh if any of our attributes have changed\n\tif(changedAttributes.filter || changedAttributes.template || changedAttributes.editTemplate || changedAttributes.emptyMessage || changedAttributes.storyview || changedAttributes.history) {\n\t\tthis.refreshSelf();\n\t\tresult = true;\n\t} else {\n\t\t// Handle any changes to the list\n\t\tresult = this.handleListChanges(changedTiddlers);\n\t\t// Handle any changes to the history stack\n\t\tif(this.historyTitle &amp;&amp; changedTiddlers[this.historyTitle]) {\n\t\t\tthis.handleHistoryChanges();\n\t\t}\n\t}\n\t// Call the storyview\n\tif(this.storyview &amp;&amp; this.storyview.refreshEnd) {\n\t\tthis.storyview.refreshEnd(changedTiddlers,changedAttributes);\n\t}\n\treturn result;\n};\n\n/*\nHandle any changes to the history list\n*/\nListWidget.prototype.handleHistoryChanges = function() {\n\t// Get the history data\n\tvar newHistory = this.wiki.getTiddlerDataCached(this.historyTitle,[]);\n\t// Ignore any entries of the history that match the previous history\n\tvar entry = 0;\n\twhile(entry &lt; newHistory.length &amp;&amp; entry &lt; this.history.length &amp;&amp; newHistory[entry].title === this.history[entry].title) {\n\t\tentry++;\n\t}\n\t// Navigate forwards to each of the new tiddlers\n\twhile(entry &lt; newHistory.length) {\n\t\tif(this.storyview &amp;&amp; this.storyview.navigateTo) {\n\t\t\tthis.storyview.navigateTo(newHistory[entry]);\n\t\t}\n\t\tentry++;\n\t}\n\t// Update the history\n\tthis.history = newHistory;\n};\n\n/*\nProcess any changes to the list\n*/\nListWidget.prototype.handleListChanges = function(changedTiddlers) {\n\t// Get the new list\n\tvar prevList = this.list;\n\tthis.list = this.getTiddlerList();\n\t// Check for an empty list\n\tif(this.list.length === 0) {\n\t\t// Check if it was empty before\n\t\tif(prevList.length === 0) {\n\t\t\t// If so, just refresh the empty message\n\t\t\treturn this.refreshChildren(changedTiddlers);\n\t\t} else {\n\t\t\t// Replace the previous content with the empty message\n\t\t\tfor(t=this.children.length-1; t&gt;=0; t--) {\n\t\t\t\tthis.removeListItem(t);\n\t\t\t}\n\t\t\tvar nextSibling = this.findNextSiblingDomNode();\n\t\t\tthis.makeChildWidgets(this.getEmptyMessage());\n\t\t\tthis.renderChildren(this.parentDomNode,nextSibling);\n\t\t\treturn true;\n\t\t}\n\t} else {\n\t\t// If the list was empty then we need to remove the empty message\n\t\tif(prevList.length === 0) {\n\t\t\tthis.removeChildDomNodes();\n\t\t\tthis.children = [];\n\t\t}\n\t\t// Cycle through the list, inserting and removing list items as needed\n\t\tvar hasRefreshed = false;\n\t\tfor(var t=0; t&lt;this.list.length; t++) {\n\t\t\tvar index = this.findListItem(t,this.list[t]);\n\t\t\tif(index === undefined) {\n\t\t\t\t// The list item must be inserted\n\t\t\t\tthis.insertListItem(t,this.list[t]);\n\t\t\t\thasRefreshed = true;\n\t\t\t} else {\n\t\t\t\t// There are intervening list items that must be removed\n\t\t\t\tfor(var n=index-1; n&gt;=t; n--) {\n\t\t\t\t\tthis.removeListItem(n);\n\t\t\t\t\thasRefreshed = true;\n\t\t\t\t}\n\t\t\t\t// Refresh the item we're reusing\n\t\t\t\tvar refreshed = this.children[t].refresh(changedTiddlers);\n\t\t\t\thasRefreshed = hasRefreshed || refreshed;\n\t\t\t}\n\t\t}\n\t\t// Remove any left over items\n\t\tfor(t=this.children.length-1; t&gt;=this.list.length; t--) {\n\t\t\tthis.removeListItem(t);\n\t\t\thasRefreshed = true;\n\t\t}\n\t\treturn hasRefreshed;\n\t}\n};\n\n/*\nFind the list item with a given title, starting from a specified position\n*/\nListWidget.prototype.findListItem = function(startIndex,title) {\n\twhile(startIndex &lt; this.children.length) {\n\t\tif(this.children[startIndex].parseTreeNode.itemTitle === title) {\n\t\t\treturn startIndex;\n\t\t}\n\t\tstartIndex++;\n\t}\n\treturn undefined;\n};\n\n/*\nInsert a new list item at the specified index\n*/\nListWidget.prototype.insertListItem = function(index,title) {\n\t// Create, insert and render the new child widgets\n\tvar widget = this.makeChildWidget(this.makeItemTemplate(title));\n\twidget.parentDomNode = this.parentDomNode; // Hack to enable findNextSiblingDomNode() to work\n\tthis.children.splice(index,0,widget);\n\tvar nextSibling = widget.findNextSiblingDomNode();\n\twidget.render(this.parentDomNode,nextSibling);\n\t// Animate the insertion if required\n\tif(this.storyview &amp;&amp; this.storyview.insert) {\n\t\tthis.storyview.insert(widget);\n\t}\n\treturn true;\n};\n\n/*\nRemove the specified list item\n*/\nListWidget.prototype.removeListItem = function(index) {\n\tvar widget = this.children[index];\n\t// Animate the removal if required\n\tif(this.storyview &amp;&amp; this.storyview.remove) {\n\t\tthis.storyview.remove(widget);\n\t} else {\n\t\twidget.removeChildDomNodes();\n\t}\n\t// Remove the child widget\n\tthis.children.splice(index,1);\n};\n\nexports.list = ListWidget;\n\nvar ListItemWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nListItemWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nListItemWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nListItemWidget.prototype.execute = function() {\n\t// Set the current list item title\n\tthis.setVariable(this.parseTreeNode.variableName,this.parseTreeNode.itemTitle);\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nListItemWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.listitem = ListItemWidget;\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/log.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/log.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/log.js\ntype: application/javascript\nmodule-type: widget-subclass\n\nWidget to log debug messages\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.baseClass = \&quot;action-log\&quot;;\n\nexports.name = \&quot;log\&quot;;\n\nexports.constructor = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n}\n\nexports.prototype = {};\n\nexports.prototype.render = function(event) {\n\tObject.getPrototypeOf(Object.getPrototypeOf(this)).render.call(this,event);\t\n\tObject.getPrototypeOf(Object.getPrototypeOf(this)).log.call(this);\n}\n\n})();&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget-subclass&quot;
},
&quot;$:/core/modules/widgets/macrocall.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/macrocall.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/macrocall.js\ntype: application/javascript\nmodule-type: widget\n\nMacrocall widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar MacroCallWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nMacroCallWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nMacroCallWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nMacroCallWidget.prototype.execute = function() {\n\t// Get the parse type if specified\n\tthis.parseType = this.getAttribute(\&quot;$type\&quot;,\&quot;text/vnd.tiddlywiki\&quot;);\n\tthis.renderOutput = this.getAttribute(\&quot;$output\&quot;,\&quot;text/html\&quot;);\n\t// Merge together the parameters specified in the parse tree with the specified attributes\n\tvar params = this.parseTreeNode.params ? this.parseTreeNode.params.slice(0) : [];\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.charAt(0) !== \&quot;$\&quot;) {\n\t\t\tparams.push({name: name, value: attribute});\t\t\t\n\t\t}\n\t});\n\t// Get the macro value\n\tvar macroName = this.parseTreeNode.name || this.getAttribute(\&quot;$name\&quot;),\n\t\tvariableInfo = this.getVariableInfo(macroName,{params: params}),\n\t\ttext = variableInfo.text,\n\t\tparseTreeNodes;\n\t// Are we rendering to HTML?\n\tif(this.renderOutput === \&quot;text/html\&quot;) {\n\t\t// If so we'll return the parsed macro\n\t\t// Check if we've already cached parsing this macro\n\t\tvar mode = this.parseTreeNode.isBlock ? \&quot;blockParser\&quot; : \&quot;inlineParser\&quot;,\n\t\t\tparser;\n\t\tif(variableInfo.srcVariable &amp;&amp; variableInfo.srcVariable[mode]) {\n\t\t\tparser = variableInfo.srcVariable[mode];\n\t\t} else {\n\t\t\tparser = this.wiki.parseText(this.parseType,text,\n\t\t\t\t\t\t\t\t{parseAsInline: !this.parseTreeNode.isBlock});\n\t\t\tif(variableInfo.isCacheable &amp;&amp; variableInfo.srcVariable) {\n\t\t\t\tvariableInfo.srcVariable[mode] = parser;\n\t\t\t}\n\t\t}\n\t\tvar parseTreeNodes = parser ? parser.tree : [];\n\t\t// Wrap the parse tree in a vars widget assigning the parameters to variables named \&quot;__paramname__\&quot;\n\t\tvar attributes = {};\n\t\t$tw.utils.each(variableInfo.params,function(param) {\n\t\t\tvar name = \&quot;__\&quot; + param.name + \&quot;__\&quot;;\n\t\t\tattributes[name] = {\n\t\t\t\tname: name,\n\t\t\t\ttype: \&quot;string\&quot;,\n\t\t\t\tvalue: param.value\n\t\t\t};\n\t\t});\n\t\tparseTreeNodes = [{\n\t\t\ttype: \&quot;vars\&quot;,\n\t\t\tattributes: attributes,\n\t\t\tchildren: parseTreeNodes\n\t\t}];\n\t} else if(this.renderOutput === \&quot;text/raw\&quot;) {\n\t\tparseTreeNodes = [{type: \&quot;text\&quot;, text: text}];\n\t} else {\n\t\t// Otherwise, we'll render the text\n\t\tvar plainText = this.wiki.renderText(\&quot;text/plain\&quot;,this.parseType,text,{parentWidget: this});\n\t\tparseTreeNodes = [{type: \&quot;text\&quot;, text: plainText}];\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets(parseTreeNodes);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nMacroCallWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif($tw.utils.count(changedAttributes) &gt; 0) {\n\t\t// Rerender ourselves\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.macrocall = MacroCallWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/navigator.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/navigator.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/navigator.js\ntype: application/javascript\nmodule-type: widget\n\nNavigator widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar IMPORT_TITLE = \&quot;$:/Import\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar NavigatorWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \&quot;tm-navigate\&quot;, handler: \&quot;handleNavigateEvent\&quot;},\n\t\t{type: \&quot;tm-edit-tiddler\&quot;, handler: \&quot;handleEditTiddlerEvent\&quot;},\n\t\t{type: \&quot;tm-delete-tiddler\&quot;, handler: \&quot;handleDeleteTiddlerEvent\&quot;},\n\t\t{type: \&quot;tm-save-tiddler\&quot;, handler: \&quot;handleSaveTiddlerEvent\&quot;},\n\t\t{type: \&quot;tm-cancel-tiddler\&quot;, handler: \&quot;handleCancelTiddlerEvent\&quot;},\n\t\t{type: \&quot;tm-close-tiddler\&quot;, handler: \&quot;handleCloseTiddlerEvent\&quot;},\n\t\t{type: \&quot;tm-close-all-tiddlers\&quot;, handler: \&quot;handleCloseAllTiddlersEvent\&quot;},\n\t\t{type: \&quot;tm-close-other-tiddlers\&quot;, handler: \&quot;handleCloseOtherTiddlersEvent\&quot;},\n\t\t{type: \&quot;tm-new-tiddler\&quot;, handler: \&quot;handleNewTiddlerEvent\&quot;},\n\t\t{type: \&quot;tm-import-tiddlers\&quot;, handler: \&quot;handleImportTiddlersEvent\&quot;},\n\t\t{type: \&quot;tm-perform-import\&quot;, handler: \&quot;handlePerformImportEvent\&quot;},\n\t\t{type: \&quot;tm-fold-tiddler\&quot;, handler: \&quot;handleFoldTiddlerEvent\&quot;},\n\t\t{type: \&quot;tm-fold-other-tiddlers\&quot;, handler: \&quot;handleFoldOtherTiddlersEvent\&quot;},\n\t\t{type: \&quot;tm-fold-all-tiddlers\&quot;, handler: \&quot;handleFoldAllTiddlersEvent\&quot;},\n\t\t{type: \&quot;tm-unfold-all-tiddlers\&quot;, handler: \&quot;handleUnfoldAllTiddlersEvent\&quot;},\n\t\t{type: \&quot;tm-rename-tiddler\&quot;, handler: \&quot;handleRenameTiddlerEvent\&quot;}\n\t]);\n};\n\n/*\nInherit from the base widget class\n*/\nNavigatorWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nNavigatorWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nNavigatorWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.storyTitle = this.getAttribute(\&quot;story\&quot;);\n\tthis.historyTitle = this.getAttribute(\&quot;history\&quot;);\n\tthis.setVariable(\&quot;tv-story-list\&quot;,this.storyTitle);\n\tthis.setVariable(\&quot;tv-history-list\&quot;,this.historyTitle);\n\tthis.story = new $tw.Story({\n\t\twiki: this.wiki,\n\t\tstoryTitle: this.storyTitle,\n\t\thistoryTitle: this.historyTitle\n\t});\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nNavigatorWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.story || changedAttributes.history) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nNavigatorWidget.prototype.getStoryList = function() {\n\treturn this.storyTitle ? this.wiki.getTiddlerList(this.storyTitle) : null;\n};\n\nNavigatorWidget.prototype.saveStoryList = function(storyList) {\n\tif(this.storyTitle) {\n\t\tvar storyTiddler = this.wiki.getTiddler(this.storyTitle);\n\t\tthis.wiki.addTiddler(new $tw.Tiddler(\n\t\t\t{title: this.storyTitle},\n\t\t\tstoryTiddler,\n\t\t\t{list: storyList}\n\t\t));\t\t\n\t}\n};\n\nNavigatorWidget.prototype.removeTitleFromStory = function(storyList,title) {\n\tif(storyList) {\n\t\tvar p = storyList.indexOf(title);\n\t\twhile(p !== -1) {\n\t\t\tstoryList.splice(p,1);\n\t\t\tp = storyList.indexOf(title);\n\t\t}\t\t\n\t}\n};\n\nNavigatorWidget.prototype.replaceFirstTitleInStory = function(storyList,oldTitle,newTitle) {\n\tif(storyList) {\n\t\tvar pos = storyList.indexOf(oldTitle);\n\t\tif(pos !== -1) {\n\t\t\tstoryList[pos] = newTitle;\n\t\t\tdo {\n\t\t\t\tpos = storyList.indexOf(oldTitle,pos + 1);\n\t\t\t\tif(pos !== -1) {\n\t\t\t\t\tstoryList.splice(pos,1);\n\t\t\t\t}\n\t\t\t} while(pos !== -1);\n\t\t} else {\n\t\t\tstoryList.splice(0,0,newTitle);\n\t\t}\t\t\n\t}\n};\n\nNavigatorWidget.prototype.addToStory = function(title,fromTitle) {\n\tif(this.storyTitle) {\n\t\tthis.story.addToStory(title,fromTitle,{\n\t\t\topenLinkFromInsideRiver: this.getAttribute(\&quot;openLinkFromInsideRiver\&quot;,\&quot;top\&quot;),\n\t\t\topenLinkFromOutsideRiver: this.getAttribute(\&quot;openLinkFromOutsideRiver\&quot;,\&quot;top\&quot;)\n\t\t});\n\t}\n};\n\n/*\nAdd a new record to the top of the history stack\ntitle: a title string or an array of title strings\nfromPageRect: page coordinates of the origin of the navigation\n*/\nNavigatorWidget.prototype.addToHistory = function(title,fromPageRect) {\n\tthis.story.addToHistory(title,fromPageRect,this.historyTitle);\n};\n\n/*\nHandle a tm-navigate event\n*/\nNavigatorWidget.prototype.handleNavigateEvent = function(event) {\n\tevent = $tw.hooks.invokeHook(\&quot;th-navigating\&quot;,event);\n\tif(event.navigateTo) {\n\t\tthis.addToStory(event.navigateTo,event.navigateFromTitle);\n\t\tif(!event.navigateSuppressNavigation) {\n\t\t\tthis.addToHistory(event.navigateTo,event.navigateFromClientRect);\n\t\t}\n\t}\n\treturn false;\n};\n\n// Close a specified tiddler\nNavigatorWidget.prototype.handleCloseTiddlerEvent = function(event) {\n\tvar title = event.param || event.tiddlerTitle,\n\t\tstoryList = this.getStoryList();\n\t// Look for tiddlers with this title to close\n\tthis.removeTitleFromStory(storyList,title);\n\tthis.saveStoryList(storyList);\n\treturn false;\n};\n\n// Close all tiddlers\nNavigatorWidget.prototype.handleCloseAllTiddlersEvent = function(event) {\n\tthis.saveStoryList([]);\n\treturn false;\n};\n\n// Close other tiddlers\nNavigatorWidget.prototype.handleCloseOtherTiddlersEvent = function(event) {\n\tvar title = event.param || event.tiddlerTitle;\n\tthis.saveStoryList([title]);\n\treturn false;\n};\n\n// Place a tiddler in edit mode\nNavigatorWidget.prototype.handleEditTiddlerEvent = function(event) {\n\tvar editTiddler = $tw.hooks.invokeHook(\&quot;th-editing-tiddler\&quot;,event);\n\tif(!editTiddler) {\n\t\treturn false;\n\t}\n\tvar self = this;\n\tfunction isUnmodifiedShadow(title) {\n\t\treturn self.wiki.isShadowTiddler(title) &amp;&amp; !self.wiki.tiddlerExists(title);\n\t}\n\tfunction confirmEditShadow(title) {\n\t\treturn confirm($tw.language.getString(\n\t\t\t\&quot;ConfirmEditShadowTiddler\&quot;,\n\t\t\t{variables:\n\t\t\t\t{title: title}\n\t\t\t}\n\t\t));\n\t}\n\tvar title = event.param || event.tiddlerTitle;\n\tif(isUnmodifiedShadow(title) &amp;&amp; !confirmEditShadow(title)) {\n\t\treturn false;\n\t}\n\t// Replace the specified tiddler with a draft in edit mode\n\tvar draftTiddler = this.makeDraftTiddler(title);\n\t// Update the story and history if required\n\tif(!event.paramObject || event.paramObject.suppressNavigation !== \&quot;yes\&quot;) {\n\t\tvar draftTitle = draftTiddler.fields.title,\n\t\t\tstoryList = this.getStoryList();\n\t\tthis.removeTitleFromStory(storyList,draftTitle);\n\t\tthis.replaceFirstTitleInStory(storyList,title,draftTitle);\n\t\tthis.addToHistory(draftTitle,event.navigateFromClientRect);\n\t\tthis.saveStoryList(storyList);\n\t\treturn false;\n\t}\n};\n\n// Delete a tiddler\nNavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) {\n\t// Get the tiddler we're deleting\n\tvar title = event.param || event.tiddlerTitle,\n\t\ttiddler = this.wiki.getTiddler(title),\n\t\tstoryList = this.getStoryList(),\n\t\toriginalTitle = tiddler ? tiddler.fields[\&quot;draft.of\&quot;] : \&quot;\&quot;,\n\t\toriginalTiddler = originalTitle ? this.wiki.getTiddler(originalTitle) : undefined,\n\t\tconfirmationTitle;\n\tif(!tiddler) {\n\t\treturn false;\n\t}\n\t// Check if the tiddler we're deleting is in draft mode\n\tif(originalTitle) {\n\t\t// If so, we'll prompt for confirmation referencing the original tiddler\n\t\tconfirmationTitle = originalTitle;\n\t} else {\n\t\t// If not a draft, then prompt for confirmation referencing the specified tiddler\n\t\tconfirmationTitle = title;\n\t}\n\t// Seek confirmation\n\tif((this.wiki.getTiddler(originalTitle) || (tiddler.fields.text || \&quot;\&quot;) !== \&quot;\&quot;) &amp;&amp; !confirm($tw.language.getString(\n\t\t\t\t\&quot;ConfirmDeleteTiddler\&quot;,\n\t\t\t\t{variables:\n\t\t\t\t\t{title: confirmationTitle}\n\t\t\t\t}\n\t\t\t))) {\n\t\treturn false;\n\t}\n\t// Delete the original tiddler\n\tif(originalTitle) {\n\t\tif(originalTiddler) {\n\t\t\t$tw.hooks.invokeHook(\&quot;th-deleting-tiddler\&quot;,originalTiddler);\n\t\t}\n\t\tthis.wiki.deleteTiddler(originalTitle);\n\t\tthis.removeTitleFromStory(storyList,originalTitle);\n\t}\n\t// Invoke the hook function and delete this tiddler\n\t$tw.hooks.invokeHook(\&quot;th-deleting-tiddler\&quot;,tiddler);\n\tthis.wiki.deleteTiddler(title);\n\t// Remove the closed tiddler from the story\n\tthis.removeTitleFromStory(storyList,title);\n\tthis.saveStoryList(storyList);\n\t// Trigger an autosave\n\t$tw.rootWidget.dispatchEvent({type: \&quot;tm-auto-save-wiki\&quot;});\n\treturn false;\n};\n\n/*\nCreate/reuse the draft tiddler for a given title\n*/\nNavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) {\n\t// See if there is already a draft tiddler for this tiddler\n\tvar draftTitle = this.wiki.findDraft(targetTitle);\n\tif(draftTitle) {\n\t\treturn this.wiki.getTiddler(draftTitle);\n\t}\n\t// Get the current value of the tiddler we're editing\n\tvar tiddler = this.wiki.getTiddler(targetTitle);\n\t// Save the initial value of the draft tiddler\n\tdraftTitle = this.generateDraftTitle(targetTitle);\n\tvar draftTiddler = new $tw.Tiddler({\n\t\t\t\ttext: \&quot;\&quot;,\n\t\t\t},\n\t\t\ttiddler,\n\t\t\t{\n\t\t\t\ttitle: draftTitle,\n\t\t\t\t\&quot;draft.title\&quot;: targetTitle,\n\t\t\t\t\&quot;draft.of\&quot;: targetTitle\n\t\t\t},\n\t\t\tthis.wiki.getModificationFields()\n\t\t);\n\tthis.wiki.addTiddler(draftTiddler);\n\treturn draftTiddler;\n};\n\n/*\nGenerate a title for the draft of a given tiddler\n*/\nNavigatorWidget.prototype.generateDraftTitle = function(title) {\n\treturn this.wiki.generateDraftTitle(title);\n};\n\n// Take a tiddler out of edit mode, saving the changes\nNavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {\n\tvar title = event.param || event.tiddlerTitle,\n\t\ttiddler = this.wiki.getTiddler(title),\n\t\tstoryList = this.getStoryList();\n\t// Replace the original tiddler with the draft\n\tif(tiddler) {\n\t\tvar draftTitle = (tiddler.fields[\&quot;draft.title\&quot;] || \&quot;\&quot;).trim(),\n\t\t\tdraftOf = (tiddler.fields[\&quot;draft.of\&quot;] || \&quot;\&quot;).trim();\n\t\tif(draftTitle) {\n\t\t\tvar isRename = draftOf !== draftTitle,\n\t\t\t\tisConfirmed = true;\n\t\t\tif(isRename &amp;&amp; this.wiki.tiddlerExists(draftTitle)) {\n\t\t\t\tisConfirmed = confirm($tw.language.getString(\n\t\t\t\t\t\&quot;ConfirmOverwriteTiddler\&quot;,\n\t\t\t\t\t{variables:\n\t\t\t\t\t\t{title: draftTitle}\n\t\t\t\t\t}\n\t\t\t\t));\n\t\t\t}\n\t\t\tif(isConfirmed) {\n\t\t\t\t// Create the new tiddler and pass it through the th-saving-tiddler hook\n\t\t\t\tvar newTiddler = new $tw.Tiddler(this.wiki.getCreationFields(),tiddler,{\n\t\t\t\t\ttitle: draftTitle,\n\t\t\t\t\t\&quot;draft.title\&quot;: undefined,\n\t\t\t\t\t\&quot;draft.of\&quot;: undefined\n\t\t\t\t},this.wiki.getModificationFields());\n\t\t\t\tnewTiddler = $tw.hooks.invokeHook(\&quot;th-saving-tiddler\&quot;,newTiddler,tiddler);\n\t\t\t\tthis.wiki.addTiddler(newTiddler);\n\t\t\t\t// If enabled, relink references to renamed tiddler\n\t\t\t\tvar shouldRelink = this.getAttribute(\&quot;relinkOnRename\&quot;,\&quot;no\&quot;).toLowerCase().trim() === \&quot;yes\&quot;;\n\t\t\t\tif(isRename &amp;&amp; shouldRelink &amp;&amp; this.wiki.tiddlerExists(draftOf)) {\n\t\t\t\t\tthis.wiki.relinkTiddler(draftOf,draftTitle);\n\t\t\t\t}\n\t\t\t\t// Remove the draft tiddler\n\t\t\t\tthis.wiki.deleteTiddler(title);\n\t\t\t\t// Remove the original tiddler if we're renaming it\n\t\t\t\tif(isRename) {\n\t\t\t\t\tthis.wiki.deleteTiddler(draftOf);\n\t\t\t\t}\n\t\t\t\t// #2381 always remove new title &amp; old\n\t\t\t\tthis.removeTitleFromStory(storyList,draftTitle);\n\t\t\t\tthis.removeTitleFromStory(storyList,draftOf);\n\t\t\t\tif(!event.paramObject || event.paramObject.suppressNavigation !== \&quot;yes\&quot;) {\n\t\t\t\t\t// Replace the draft in the story with the original\n\t\t\t\t\tthis.replaceFirstTitleInStory(storyList,title,draftTitle);\n\t\t\t\t\tthis.addToHistory(draftTitle,event.navigateFromClientRect);\n\t\t\t\t\tif(draftTitle !== this.storyTitle) {\n\t\t\t\t\t\tthis.saveStoryList(storyList);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Trigger an autosave\n\t\t\t\t$tw.rootWidget.dispatchEvent({type: \&quot;tm-auto-save-wiki\&quot;});\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\n// Take a tiddler out of edit mode without saving the changes\nNavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) {\n\tevent = $tw.hooks.invokeHook(\&quot;th-cancelling-tiddler\&quot;, event);\n\t// Flip the specified tiddler from draft back to the original\n\tvar draftTitle = event.param || event.tiddlerTitle,\n\t\tdraftTiddler = this.wiki.getTiddler(draftTitle),\n\t\toriginalTitle = draftTiddler &amp;&amp; draftTiddler.fields[\&quot;draft.of\&quot;];\n\tif(draftTiddler &amp;&amp; originalTitle) {\n\t\t// Ask for confirmation if the tiddler text has changed\n\t\tvar isConfirmed = true,\n\t\t\toriginalTiddler = this.wiki.getTiddler(originalTitle),\n\t\t\tstoryList = this.getStoryList();\n\t\tif(this.wiki.isDraftModified(draftTitle)) {\n\t\t\tisConfirmed = confirm($tw.language.getString(\n\t\t\t\t\&quot;ConfirmCancelTiddler\&quot;,\n\t\t\t\t{variables:\n\t\t\t\t\t{title: draftTitle}\n\t\t\t\t}\n\t\t\t));\n\t\t}\n\t\t// Remove the draft tiddler\n\t\tif(isConfirmed) {\n\t\t\tthis.wiki.deleteTiddler(draftTitle);\n\t\t\tif(!event.paramObject || event.paramObject.suppressNavigation !== \&quot;yes\&quot;) {\n\t\t\t\tif(originalTiddler) {\n\t\t\t\t\tthis.replaceFirstTitleInStory(storyList,draftTitle,originalTitle);\n\t\t\t\t\tthis.addToHistory(originalTitle,event.navigateFromClientRect);\n\t\t\t\t} else {\n\t\t\t\t\tthis.removeTitleFromStory(storyList,draftTitle);\n\t\t\t\t}\n\t\t\t\tthis.saveStoryList(storyList);\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\n// Create a new draft tiddler\n// event.param can either be the title of a template tiddler, or a hashmap of fields.\n//\n// The title of the newly created tiddler follows these rules:\n// * If a hashmap was used and a title field was specified, use that title\n// * If a hashmap was used without a title field, use a default title, if necessary making it unique with a numeric suffix\n// * If a template tiddler was used, use the title of the template, if necessary making it unique with a numeric suffix\n//\n// If a draft of the target tiddler already exists then it is reused\nNavigatorWidget.prototype.handleNewTiddlerEvent = function(event) {\n\tevent = $tw.hooks.invokeHook(\&quot;th-new-tiddler\&quot;, event);\n\t// Get the story details\n\tvar storyList = this.getStoryList(),\n\t\ttemplateTiddler, additionalFields, title, draftTitle, existingTiddler;\n\t// Get the template tiddler (if any)\n\tif(typeof event.param === \&quot;string\&quot;) {\n\t\t// Get the template tiddler\n\t\ttemplateTiddler = this.wiki.getTiddler(event.param);\n\t\t// Generate a new title\n\t\ttitle = this.wiki.generateNewTitle(event.param || $tw.language.getString(\&quot;DefaultNewTiddlerTitle\&quot;));\n\t}\n\t// Get the specified additional fields\n\tif(typeof event.paramObject === \&quot;object\&quot;) {\n\t\tadditionalFields = event.paramObject;\n\t}\n\tif(typeof event.param === \&quot;object\&quot;) { // Backwards compatibility with 5.1.3\n\t\tadditionalFields = event.param;\n\t}\n\tif(additionalFields &amp;&amp; additionalFields.title) {\n\t\ttitle = additionalFields.title;\n\t}\n\t// Make a copy of the additional fields excluding any blank ones\n\tvar filteredAdditionalFields = $tw.utils.extend({},additionalFields);\n\tObject.keys(filteredAdditionalFields).forEach(function(fieldName) {\n\t\tif(filteredAdditionalFields[fieldName] === \&quot;\&quot;) {\n\t\t\tdelete filteredAdditionalFields[fieldName];\n\t\t}\n\t});\n\t// Generate a title if we don't have one\n\ttitle = title || this.wiki.generateNewTitle($tw.language.getString(\&quot;DefaultNewTiddlerTitle\&quot;));\n\t// Find any existing draft for this tiddler\n\tdraftTitle = this.wiki.findDraft(title);\n\t// Pull in any existing tiddler\n\tif(draftTitle) {\n\t\texistingTiddler = this.wiki.getTiddler(draftTitle);\n\t} else {\n\t\tdraftTitle = this.generateDraftTitle(title);\n\t\texistingTiddler = this.wiki.getTiddler(title);\n\t}\n\t// Merge the tags\n\tvar mergedTags = [];\n\tif(existingTiddler &amp;&amp; existingTiddler.fields.tags) {\n\t\t$tw.utils.pushTop(mergedTags,existingTiddler.fields.tags);\n\t}\n\tif(additionalFields &amp;&amp; additionalFields.tags) {\n\t\t// Merge tags\n\t\tmergedTags = $tw.utils.pushTop(mergedTags,$tw.utils.parseStringArray(additionalFields.tags));\n\t}\n\tif(templateTiddler &amp;&amp; templateTiddler.fields.tags) {\n\t\t// Merge tags\n\t\tmergedTags = $tw.utils.pushTop(mergedTags,templateTiddler.fields.tags);\n\t}\n\t// Save the draft tiddler\n\tvar draftTiddler = new $tw.Tiddler({\n\t\t\ttext: \&quot;\&quot;,\n\t\t\t\&quot;draft.title\&quot;: title\n\t\t},\n\t\ttemplateTiddler,\n\t\tadditionalFields,\n\t\tthis.wiki.getCreationFields(),\n\t\texistingTiddler,\n\t\tfilteredAdditionalFields,\n\t\t{\n\t\t\ttitle: draftTitle,\n\t\t\t\&quot;draft.of\&quot;: title,\n\t\t\ttags: mergedTags\n\t\t},this.wiki.getModificationFields());\n\tthis.wiki.addTiddler(draftTiddler);\n\t// Update the story to insert the new draft at the top and remove any existing tiddler\n\tif(storyList &amp;&amp; storyList.indexOf(draftTitle) === -1) {\n\t\tvar slot = storyList.indexOf(event.navigateFromTitle);\n\t\tif(slot === -1) {\n\t\t\tslot = this.getAttribute(\&quot;openLinkFromOutsideRiver\&quot;,\&quot;top\&quot;) === \&quot;bottom\&quot; ? storyList.length - 1 : slot;\n\t\t}\n\t\tstoryList.splice(slot + 1,0,draftTitle);\n\t}\n\tif(storyList &amp;&amp; storyList.indexOf(title) !== -1) {\n\t\tstoryList.splice(storyList.indexOf(title),1);\n\t}\n\tthis.saveStoryList(storyList);\n\t// Add a new record to the top of the history stack\n\tthis.addToHistory(draftTitle);\n\treturn false;\n};\n\n// Import JSON tiddlers into a pending import tiddler\nNavigatorWidget.prototype.handleImportTiddlersEvent = function(event) {\n\t// Get the tiddlers\n\tvar tiddlers = [];\n\ttry {\n\t\ttiddlers = JSON.parse(event.param);\n\t} catch(e) {\n\t}\n\t// Get the current $:/Import tiddler\n\tvar importTitle = event.importTitle ? event.importTitle : IMPORT_TITLE,\n\t\timportTiddler = this.wiki.getTiddler(importTitle),\n\t\timportData = this.wiki.getTiddlerData(importTitle,{}),\n\t\tnewFields = new Object({\n\t\t\ttitle: importTitle,\n\t\t\ttype: \&quot;application/json\&quot;,\n\t\t\t\&quot;plugin-type\&quot;: \&quot;import\&quot;,\n\t\t\t\&quot;status\&quot;: \&quot;pending\&quot;\n\t\t}),\n\t\tincomingTiddlers = [];\n\t// Process each tiddler\n\timportData.tiddlers = importData.tiddlers || {};\n\t$tw.utils.each(tiddlers,function(tiddlerFields) {\n\t\ttiddlerFields.title = $tw.utils.trim(tiddlerFields.title);\n\t\tvar title = tiddlerFields.title;\n\t\tif(title) {\n\t\t\tincomingTiddlers.push(title);\n\t\t\timportData.tiddlers[title] = tiddlerFields;\n\t\t}\n\t});\n\t// Give the active upgrader modules a chance to process the incoming tiddlers\n\tvar messages = this.wiki.invokeUpgraders(incomingTiddlers,importData.tiddlers);\n\t$tw.utils.each(messages,function(message,title) {\n\t\tnewFields[\&quot;message-\&quot; + title] = message;\n\t});\n\t// Deselect any suppressed tiddlers\n\t$tw.utils.each(importData.tiddlers,function(tiddler,title) {\n\t\tif($tw.utils.count(tiddler) === 0) {\n\t\t\tnewFields[\&quot;selection-\&quot; + title] = \&quot;unchecked\&quot;;\n\t\t\tnewFields[\&quot;suppressed-\&quot; + title] = \&quot;yes\&quot;;\n\t\t}\n\t});\n\t// Save the $:/Import tiddler\n\tnewFields.text = JSON.stringify(importData,null,$tw.config.preferences.jsonSpaces);\n\tthis.wiki.addTiddler(new $tw.Tiddler(importTiddler,newFields));\n\t// Update the story and history details\n\tvar autoOpenOnImport = event.autoOpenOnImport ? event.autoOpenOnImport : this.getVariable(\&quot;tv-auto-open-on-import\&quot;); \n\tif(autoOpenOnImport !== \&quot;no\&quot;) {\n\t\tvar storyList = this.getStoryList(),\n\t\t\thistory = [];\n\t\t// Add it to the story\n\t\tif(storyList &amp;&amp; storyList.indexOf(importTitle) === -1) {\n\t\t\tstoryList.unshift(importTitle);\n\t\t}\n\t\t// And to history\n\t\thistory.push(importTitle);\n\t\t// Save the updated story and history\n\t\tthis.saveStoryList(storyList);\n\t\tthis.addToHistory(history);\n\t}\n\treturn false;\n};\n\n//\nNavigatorWidget.prototype.handlePerformImportEvent = function(event) {\n\tvar self = this,\n\t\timportTiddler = this.wiki.getTiddler(event.param),\n\t\timportData = this.wiki.getTiddlerDataCached(event.param,{tiddlers: {}}),\n\t\timportReport = [];\n\t// Add the tiddlers to the store\n\timportReport.push($tw.language.getString(\&quot;Import/Imported/Hint\&quot;) + \&quot;\\n\&quot;);\n\t$tw.utils.each(importData.tiddlers,function(tiddlerFields) {\n\t\tvar title = tiddlerFields.title;\n\t\tif(title &amp;&amp; importTiddler &amp;&amp; importTiddler.fields[\&quot;selection-\&quot; + title] !== \&quot;unchecked\&quot;) {\n\t\t\tif($tw.utils.hop(importTiddler.fields,[\&quot;rename-\&quot; + title])) {\n\t\t\t\tvar tiddler = new $tw.Tiddler(tiddlerFields,{title : importTiddler.fields[\&quot;rename-\&quot; + title]});\n\t\t\t} else {\n\t\t\t\tvar tiddler = new $tw.Tiddler(tiddlerFields);\n\t\t\t}\n\t\t\ttiddler = $tw.hooks.invokeHook(\&quot;th-importing-tiddler\&quot;,tiddler);\n\t\t\tself.wiki.addTiddler(tiddler);\n\t\t\timportReport.push(\&quot;# [[\&quot; + tiddler.fields.title + \&quot;]]\&quot;);\n\t\t}\n\t});\n\t// Replace the $:/Import tiddler with an import report\n\tthis.wiki.addTiddler(new $tw.Tiddler({\n\t\ttitle: event.param,\n\t\ttext: importReport.join(\&quot;\\n\&quot;),\n\t\t\&quot;status\&quot;: \&quot;complete\&quot;\n\t}));\n\t// Navigate to the $:/Import tiddler\n\tthis.addToHistory([event.param]);\n\t// Trigger an autosave\n\t$tw.rootWidget.dispatchEvent({type: \&quot;tm-auto-save-wiki\&quot;});\n};\n\nNavigatorWidget.prototype.handleFoldTiddlerEvent = function(event) {\n\tvar paramObject = event.paramObject || {};\n\tif(paramObject.foldedState) {\n\t\tvar foldedState = this.wiki.getTiddlerText(paramObject.foldedState,\&quot;show\&quot;) === \&quot;show\&quot; ? \&quot;hide\&quot; : \&quot;show\&quot;;\n\t\tthis.wiki.setText(paramObject.foldedState,\&quot;text\&quot;,null,foldedState);\n\t}\n};\n\nNavigatorWidget.prototype.handleFoldOtherTiddlersEvent = function(event) {\n\tvar self = this,\n\t\tparamObject = event.paramObject || {},\n\t\tprefix = paramObject.foldedStatePrefix;\n\t$tw.utils.each(this.getStoryList(),function(title) {\n\t\tself.wiki.setText(prefix + title,\&quot;text\&quot;,null,event.param === title ? \&quot;show\&quot; : \&quot;hide\&quot;);\n\t});\n};\n\nNavigatorWidget.prototype.handleFoldAllTiddlersEvent = function(event) {\n\tvar self = this,\n\t\tparamObject = event.paramObject || {},\n\t\tprefix = paramObject.foldedStatePrefix || \&quot;$:/state/folded/\&quot;;\n\t$tw.utils.each(this.getStoryList(),function(title) {\n\t\tself.wiki.setText(prefix + title,\&quot;text\&quot;,null,\&quot;hide\&quot;);\n\t});\n};\n\nNavigatorWidget.prototype.handleUnfoldAllTiddlersEvent = function(event) {\n\tvar self = this,\n\t\tparamObject = event.paramObject || {},\n\t\tprefix = paramObject.foldedStatePrefix;\n\t$tw.utils.each(this.getStoryList(),function(title) {\n\t\tself.wiki.setText(prefix + title,\&quot;text\&quot;,null,\&quot;show\&quot;);\n\t});\n};\n\nNavigatorWidget.prototype.handleRenameTiddlerEvent = function(event) {\n\tvar options = {},\n\t\tparamObject = event.paramObject || {},\n\t\tfrom = paramObject.from || event.tiddlerTitle,\n\t\tto = paramObject.to;\n\toptions.dontRenameInTags = (paramObject.renameInTags === \&quot;false\&quot; || paramObject.renameInTags === \&quot;no\&quot;) ? true : false;\n\toptions.dontRenameInLists = (paramObject.renameInLists === \&quot;false\&quot; || paramObject.renameInLists === \&quot;no\&quot;) ? true : false;\n\tthis.wiki.renameTiddler(from,to,options);\n};\n\nexports.navigator = NavigatorWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/password.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/password.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/password.js\ntype: application/javascript\nmodule-type: widget\n\nPassword widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar PasswordWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nPasswordWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nPasswordWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Get the current password\n\tvar password = $tw.browser ? $tw.utils.getPassword(this.passwordName) || \&quot;\&quot; : \&quot;\&quot;;\n\t// Create our element\n\tvar domNode = this.document.createElement(\&quot;input\&quot;);\n\tdomNode.setAttribute(\&quot;type\&quot;,\&quot;password\&quot;);\n\tdomNode.setAttribute(\&quot;value\&quot;,password);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \&quot;change\&quot;, handlerObject: this, handlerMethod: \&quot;handleChangeEvent\&quot;}\n\t]);\n\t// Insert the label into the DOM and render any children\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\nPasswordWidget.prototype.handleChangeEvent = function(event) {\n\tvar password = this.domNodes[0].value;\n\treturn $tw.utils.savePassword(this.passwordName,password);\n};\n\n/*\nCompute the internal state of the widget\n*/\nPasswordWidget.prototype.execute = function() {\n\t// Get the parameters from the attributes\n\tthis.passwordName = this.getAttribute(\&quot;name\&quot;,\&quot;\&quot;);\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nPasswordWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.name) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.password = PasswordWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/qualify.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/qualify.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/qualify.js\ntype: application/javascript\nmodule-type: widget\n\nQualify text to a variable \n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar QualifyWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nQualifyWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nQualifyWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nQualifyWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.qualifyName = this.getAttribute(\&quot;name\&quot;);\n\tthis.qualifyTitle = this.getAttribute(\&quot;title\&quot;);\n\t// Set context variable\n\tif(this.qualifyName) {\n\t\tthis.setVariable(this.qualifyName,this.qualifyTitle + \&quot;-\&quot; + this.getStateQualifier());\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nQualifyWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.name || changedAttributes.title) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.qualify = QualifyWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/radio.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/radio.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/radio.js\ntype: application/javascript\nmodule-type: widget\n\nSet a field or index at a given tiddler via radio buttons\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\nvar RadioWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nRadioWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nRadioWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\tvar isChecked = this.getValue() === this.radioValue;\n\t// Create our elements\n\tthis.labelDomNode = this.document.createElement(\&quot;label\&quot;);\n\tthis.labelDomNode.setAttribute(\&quot;class\&quot;,\n\t\t\&quot;tc-radio \&quot; + this.radioClass + (isChecked ? \&quot; tc-radio-selected\&quot; : \&quot;\&quot;)\n\t);\n\tthis.inputDomNode = this.document.createElement(\&quot;input\&quot;);\n\tthis.inputDomNode.setAttribute(\&quot;type\&quot;,\&quot;radio\&quot;);\n\tif(isChecked) {\n\t\tthis.inputDomNode.setAttribute(\&quot;checked\&quot;,\&quot;true\&quot;);\n\t}\n\tif(this.isDisabled === \&quot;yes\&quot;) {\n\t\tthis.inputDomNode.setAttribute(\&quot;disabled\&quot;,true);\n\t}\n\tthis.labelDomNode.appendChild(this.inputDomNode);\n\tthis.spanDomNode = this.document.createElement(\&quot;span\&quot;);\n\tthis.labelDomNode.appendChild(this.spanDomNode);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name: \&quot;change\&quot;, handlerObject: this, handlerMethod: \&quot;handleChangeEvent\&quot;}\n\t]);\n\t// Insert the label into the DOM and render any children\n\tparent.insertBefore(this.labelDomNode,nextSibling);\n\tthis.renderChildren(this.spanDomNode,null);\n\tthis.domNodes.push(this.labelDomNode);\n};\n\nRadioWidget.prototype.getValue = function() {\n\tvar value,\n\t\ttiddler = this.wiki.getTiddler(this.radioTitle);\n\tif (this.radioIndex) {\n\t\tvalue = this.wiki.extractTiddlerDataItem(this.radioTitle,this.radioIndex);\n\t} else {\n\t\tvalue = tiddler &amp;&amp; tiddler.getFieldString(this.radioField);\n\t}\n\treturn value;\n};\n\nRadioWidget.prototype.setValue = function() {\n\tif(this.radioIndex) {\n\t\tthis.wiki.setText(this.radioTitle,\&quot;\&quot;,this.radioIndex,this.radioValue);\n\t} else {\n\t\tvar tiddler = this.wiki.getTiddler(this.radioTitle),\n\t\t\taddition = {};\n\t\taddition[this.radioField] = this.radioValue;\n\t\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),{title: this.radioTitle},tiddler,addition,this.wiki.getModificationFields()));\n\t}\n};\n\nRadioWidget.prototype.handleChangeEvent = function(event) {\n\tif(this.inputDomNode.checked) {\n\t\tthis.setValue();\n\t}\n\t// Trigger actions\n\tif(this.radioActions) {\n\t\tthis.invokeActionString(this.radioActions,this,event,{\&quot;actionValue\&quot;: this.radioValue});\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nRadioWidget.prototype.execute = function() {\n\t// Get the parameters from the attributes\n\tthis.radioTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tthis.radioField = this.getAttribute(\&quot;field\&quot;,\&quot;text\&quot;);\n\tthis.radioIndex = this.getAttribute(\&quot;index\&quot;);\n\tthis.radioValue = this.getAttribute(\&quot;value\&quot;);\n\tthis.radioClass = this.getAttribute(\&quot;class\&quot;,\&quot;\&quot;);\n\tthis.isDisabled = this.getAttribute(\&quot;disabled\&quot;,\&quot;no\&quot;);\n\tthis.radioActions = this.getAttribute(\&quot;actions\&quot;,\&quot;\&quot;);\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRadioWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(($tw.utils.count(changedAttributes) &gt; 0) || changedTiddlers[this.radioTitle]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.radio = RadioWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/range.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/range.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/range.js\ntype: application/javascript\nmodule-type: widget\n\nRange widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar RangeWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nRangeWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nRangeWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Create our elements\n\tthis.inputDomNode = this.document.createElement(\&quot;input\&quot;);\n\tthis.inputDomNode.setAttribute(\&quot;type\&quot;,\&quot;range\&quot;);\n\tthis.inputDomNode.setAttribute(\&quot;class\&quot;,this.elementClass);\n\tif(this.minValue){\n\t\tthis.inputDomNode.setAttribute(\&quot;min\&quot;, this.minValue);\n\t}\n\tif(this.maxValue){\n\t\tthis.inputDomNode.setAttribute(\&quot;max\&quot;, this.maxValue);\n\t}\n\tif(this.increment){\n\t\tthis.inputDomNode.setAttribute(\&quot;step\&quot;, this.increment);\n\t}\n\tif(this.isDisabled === \&quot;yes\&quot;) {\n\t\tthis.inputDomNode.setAttribute(\&quot;disabled\&quot;,true);\n\t}\n\tthis.inputDomNode.value = this.getValue();\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name:\&quot;mousedown\&quot;, handlerObject:this, handlerMethod:\&quot;handleMouseDownEvent\&quot;},\n\t\t{name:\&quot;mouseup\&quot;, handlerObject:this, handlerMethod:\&quot;handleMouseUpEvent\&quot;},\n\t\t{name:\&quot;change\&quot;, handlerObject:this, handlerMethod:\&quot;handleChangeEvent\&quot;},\n\t\t{name:\&quot;input\&quot;, handlerObject:this, handlerMethod:\&quot;handleInputEvent\&quot;},\n\t]);\n\t// Insert the label into the DOM and render any children\n\tparent.insertBefore(this.inputDomNode,nextSibling);\n\tthis.domNodes.push(this.inputDomNode);\n};\n\nRangeWidget.prototype.getValue = function() {\n\tvar tiddler = this.wiki.getTiddler(this.tiddlerTitle),\n\t\tfieldName = this.tiddlerField,\n\t\tvalue = this.defaultValue;\n\tif(tiddler) {\n\t\tif(this.tiddlerIndex) {\n\t\t\tvalue = this.wiki.extractTiddlerDataItem(tiddler,this.tiddlerIndex,this.defaultValue);\n\t\t} else {\n\t\t\tif($tw.utils.hop(tiddler.fields,fieldName)) {\n\t\t\t\tvalue = tiddler.fields[fieldName] || \&quot;\&quot;;\n\t\t\t} else {\n\t\t\t\tvalue = this.defaultValue;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\nRangeWidget.prototype.getActionVariables = function(options) {\n\toptions = options || {};\n\tvar hasChanged = (this.startValue !== this.inputDomNode.value) ? \&quot;yes\&quot; : \&quot;no\&quot;;\n\t// Trigger actions. Use variables = {key:value, key:value ...}\n\t// the \&quot;value\&quot; is needed.\n\treturn $tw.utils.extend({\&quot;actionValue\&quot;: this.inputDomNode.value, \&quot;actionValueHasChanged\&quot;: hasChanged}, options);\n}\n\n// actionsStart\nRangeWidget.prototype.handleMouseDownEvent = function(event) {\n\tthis.mouseDown = true; // TODO remove once IE is gone.\n\tthis.startValue = this.inputDomNode.value; // TODO remove this line once IE is gone!\n\tthis.handleEvent(event);\n\t// Trigger actions\n\tif(this.actionsMouseDown) {\n\t\tvar variables = this.getActionVariables() // TODO this line will go into the function call below.\n\t\tthis.invokeActionString(this.actionsMouseDown,this,event,variables);\n\t}\n}\n\n// actionsStop\nRangeWidget.prototype.handleMouseUpEvent = function(event) {\n\tthis.mouseDown = false; // TODO remove once IE is gone.\n\tthis.handleEvent(event);\n\t// Trigger actions\n\tif(this.actionsMouseUp) {\n\t\tvar variables = this.getActionVariables()\n\t\tthis.invokeActionString(this.actionsMouseUp,this,event,variables);\n\t}\n\t// TODO remove the following if() once IE is gone!\n\tif ($tw.browser.isIE) {\n\t\tif (this.startValue !== this.inputDomNode.value) {\n\t\t\tthis.handleChangeEvent(event);\n\t\t\tthis.startValue = this.inputDomNode.value;\n\t\t}\n\t}\n}\n\nRangeWidget.prototype.handleChangeEvent = function(event) {\n\tif (this.mouseDown) { // TODO refactor this function once IE is gone.\n\t\tthis.handleInputEvent(event);\n\t}\n};\n\nRangeWidget.prototype.handleInputEvent = function(event) {\n\tthis.handleEvent(event);\n\t// Trigger actions\n\tif(this.actionsInput) {\n\t\t// \&quot;tiddler\&quot; parameter may be missing. See .execute() below\n\t\tvar variables = this.getActionVariables({\&quot;actionValueHasChanged\&quot;: \&quot;yes\&quot;}) // TODO this line will go into the function call below.\n\t\tthis.invokeActionString(this.actionsInput,this,event,variables);\n\t}\n};\n\nRangeWidget.prototype.handleEvent = function(event) {\n\tif(this.getValue() !== this.inputDomNode.value) {\n\t\tif(this.tiddlerIndex) {\n\t\t\tthis.wiki.setText(this.tiddlerTitle,\&quot;\&quot;,this.tiddlerIndex,this.inputDomNode.value);\n\t\t} else {\n\t\t\tthis.wiki.setText(this.tiddlerTitle,this.tiddlerField,null,this.inputDomNode.value);\n\t\t}\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nRangeWidget.prototype.execute = function() {\n\t// TODO remove the next 1 lines once IE is gone!\n\tthis.mouseUp = true; // Needed for IE10\n\t// Get the parameters from the attributes\n\tthis.tiddlerTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tthis.tiddlerField = this.getAttribute(\&quot;field\&quot;,\&quot;text\&quot;);\n\tthis.tiddlerIndex = this.getAttribute(\&quot;index\&quot;);\n\tthis.minValue = this.getAttribute(\&quot;min\&quot;);\n\tthis.maxValue = this.getAttribute(\&quot;max\&quot;);\n\tthis.increment = this.getAttribute(\&quot;increment\&quot;);\n\tthis.defaultValue = this.getAttribute(\&quot;default\&quot;,\&quot;\&quot;);\n\tthis.elementClass = this.getAttribute(\&quot;class\&quot;,\&quot;\&quot;);\n\tthis.isDisabled = this.getAttribute(\&quot;disabled\&quot;,\&quot;no\&quot;);\n\t// Actions since 5.1.23\n\t// Next 2 only fire once!\n\tthis.actionsMouseDown = this.getAttribute(\&quot;actionsStart\&quot;,\&quot;\&quot;);\n\tthis.actionsMouseUp = this.getAttribute(\&quot;actionsStop\&quot;,\&quot;\&quot;);\n\t// Input fires very often!\n\tthis.actionsInput = this.getAttribute(\&quot;actions\&quot;,\&quot;\&quot;);\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRangeWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif($tw.utils.count(changedAttributes) &gt; 0) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar refreshed = false;\n\t\tif(changedTiddlers[this.tiddlerTitle]) {\n\t\t\tvar value = this.getValue();\n\t\t\tif(this.inputDomNode.value !== value) {\n\t\t\t\tthis.inputDomNode.value = value;\n\t\t\t}\n\t\t\trefreshed = true;\n\t\t}\n\t\treturn this.refreshChildren(changedTiddlers) || refreshed;\n\t}\n};\n\nexports.range = RangeWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/raw.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/raw.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/raw.js\ntype: application/javascript\nmodule-type: widget\n\nRaw widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar RawWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nRawWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nRawWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.execute();\n\tvar div = this.document.createElement(\&quot;div\&quot;);\n\tdiv.innerHTML=this.parseTreeNode.html;\n\tparent.insertBefore(div,nextSibling);\n\tthis.domNodes.push(div);\t\n};\n\n/*\nCompute the internal state of the widget\n*/\nRawWidget.prototype.execute = function() {\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRawWidget.prototype.refresh = function(changedTiddlers) {\n\treturn false;\n};\n\nexports.raw = RawWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/reveal.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/reveal.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/reveal.js\ntype: application/javascript\nmodule-type: widget\n\nReveal widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar RevealWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nRevealWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nRevealWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar tag = this.parseTreeNode.isBlock ? \&quot;div\&quot; : \&quot;span\&quot;;\n\tif(this.revealTag &amp;&amp; $tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) {\n\t\ttag = this.revealTag;\n\t}\n\tvar domNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\tthis.assignDomNodeClasses();\n\tif(this.style) {\n\t\tdomNode.setAttribute(\&quot;style\&quot;,this.style);\n\t}\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tif(!domNode.isTiddlyWikiFakeDom &amp;&amp; this.type === \&quot;popup\&quot; &amp;&amp; this.isOpen) {\n\t\tthis.positionPopup(domNode);\n\t\t$tw.utils.addClass(domNode,\&quot;tc-popup\&quot;); // Make sure that clicks don't dismiss popups within the revealed content\n\t}\n\tif(!this.isOpen) {\n\t\tdomNode.setAttribute(\&quot;hidden\&quot;,\&quot;true\&quot;);\n\t}\n\tthis.domNodes.push(domNode);\n};\n\nRevealWidget.prototype.positionPopup = function(domNode) {\n\tdomNode.style.position = \&quot;absolute\&quot;;\n\tdomNode.style.zIndex = \&quot;1000\&quot;;\n\tvar left,top;\n\tswitch(this.position) {\n\t\tcase \&quot;left\&quot;:\n\t\t\tleft = this.popup.left - domNode.offsetWidth;\n\t\t\ttop = this.popup.top;\n\t\t\tbreak;\n\t\tcase \&quot;above\&quot;:\n\t\t\tleft = this.popup.left;\n\t\t\ttop = this.popup.top - domNode.offsetHeight;\n\t\t\tbreak;\n\t\tcase \&quot;aboveright\&quot;:\n\t\t\tleft = this.popup.left + this.popup.width;\n\t\t\ttop = this.popup.top + this.popup.height - domNode.offsetHeight;\n\t\t\tbreak;\n\t\tcase \&quot;belowright\&quot;:\n\t\t\tleft = this.popup.left + this.popup.width;\n\t\t\ttop = this.popup.top + this.popup.height;\n\t\t\tbreak;\t\t\t\n\t\tcase \&quot;right\&quot;:\n\t\t\tleft = this.popup.left + this.popup.width;\n\t\t\ttop = this.popup.top;\n\t\t\tbreak;\n\t\tcase \&quot;belowleft\&quot;:\n\t\t\tleft = this.popup.left + this.popup.width - domNode.offsetWidth;\n\t\t\ttop = this.popup.top + this.popup.height;\n\t\t\tbreak;\n\t\tcase \&quot;aboveleft\&quot;:\n\t\t\tleft = this.popup.left - domNode.offsetWidth;\n\t\t\ttop = this.popup.top - domNode.offsetHeight;\n\t\t\tbreak;\t\t\t\n\t\tdefault: // Below\n\t\t\tleft = this.popup.left;\n\t\t\ttop = this.popup.top + this.popup.height;\n\t\t\tbreak;\n\t}\n\tif(!this.positionAllowNegative) {\n\t\tleft = Math.max(0,left);\n\t\ttop = Math.max(0,top);\n\t}\n\tdomNode.style.left = left + \&quot;px\&quot;;\n\tdomNode.style.top = top + \&quot;px\&quot;;\n};\n\n/*\nCompute the internal state of the widget\n*/\nRevealWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.state = this.getAttribute(\&quot;state\&quot;);\n\tthis.revealTag = this.getAttribute(\&quot;tag\&quot;);\n\tthis.type = this.getAttribute(\&quot;type\&quot;);\n\tthis.text = this.getAttribute(\&quot;text\&quot;);\n\tthis.position = this.getAttribute(\&quot;position\&quot;);\n\tthis.positionAllowNegative = this.getAttribute(\&quot;positionAllowNegative\&quot;) === \&quot;yes\&quot;;\n\t// class attribute handled in assignDomNodeClasses()\n\tthis.style = this.getAttribute(\&quot;style\&quot;,\&quot;\&quot;);\n\tthis[\&quot;default\&quot;] = this.getAttribute(\&quot;default\&quot;,\&quot;\&quot;);\n\tthis.animate = this.getAttribute(\&quot;animate\&quot;,\&quot;no\&quot;);\n\tthis.retain = this.getAttribute(\&quot;retain\&quot;,\&quot;no\&quot;);\n\tthis.openAnimation = this.animate === \&quot;no\&quot; ? undefined : \&quot;open\&quot;;\n\tthis.closeAnimation = this.animate === \&quot;no\&quot; ? undefined : \&quot;close\&quot;;\n\tthis.updatePopupPosition = this.getAttribute(\&quot;updatePopupPosition\&quot;,\&quot;no\&quot;) === \&quot;yes\&quot;;\n\t// Compute the title of the state tiddler and read it\n\tthis.stateTiddlerTitle = this.state;\n\tthis.stateTitle = this.getAttribute(\&quot;stateTitle\&quot;);\n\tthis.stateField = this.getAttribute(\&quot;stateField\&quot;);\n\tthis.stateIndex = this.getAttribute(\&quot;stateIndex\&quot;);\n\tthis.readState();\n\t// Construct the child widgets\n\tvar childNodes = this.isOpen ? this.parseTreeNode.children : [];\n\tthis.hasChildNodes = this.isOpen;\n\tthis.makeChildWidgets(childNodes);\n};\n\n/*\nRead the state tiddler\n*/\nRevealWidget.prototype.readState = function() {\n\t// Read the information from the state tiddler\n\tvar state,\n\t defaultState = this[\&quot;default\&quot;];\n\tif(this.stateTitle) {\n\t\tvar stateTitleTiddler = this.wiki.getTiddler(this.stateTitle);\n\t\tif(this.stateField) {\n\t\t\tstate = stateTitleTiddler ? stateTitleTiddler.getFieldString(this.stateField) || defaultState : defaultState;\n\t\t} else if(this.stateIndex) {\n\t\t\tstate = stateTitleTiddler ? this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex) || defaultState : defaultState;\n\t\t} else if(stateTitleTiddler) {\n\t\t\tstate = this.wiki.getTiddlerText(this.stateTitle) || defaultState;\n\t\t} else {\n\t\t\tstate = defaultState;\n\t\t}\n\t} else {\n\t\tstate = this.stateTiddlerTitle ? this.wiki.getTextReference(this.state,this[\&quot;default\&quot;],this.getVariable(\&quot;currentTiddler\&quot;)) : this[\&quot;default\&quot;];\n\t}\n\tif(state === null) {\n\t\tstate = this[\&quot;default\&quot;];\n\t}\n\tswitch(this.type) {\n\t\tcase \&quot;popup\&quot;:\n\t\t\tthis.readPopupState(state);\n\t\t\tbreak;\n\t\tcase \&quot;match\&quot;:\n\t\t\tthis.isOpen = this.text === state;\n\t\t\tbreak;\n\t\tcase \&quot;nomatch\&quot;:\n\t\t\tthis.isOpen = this.text !== state;\n\t\t\tbreak;\n\t\tcase \&quot;lt\&quot;:\n\t\t\tthis.isOpen = !!(this.compareStateText(state) &lt; 0);\n\t\t\tbreak;\n\t\tcase \&quot;gt\&quot;:\n\t\t\tthis.isOpen = !!(this.compareStateText(state) &gt; 0);\n\t\t\tbreak;\n\t\tcase \&quot;lteq\&quot;:\n\t\t\tthis.isOpen = !(this.compareStateText(state) &gt; 0);\n\t\t\tbreak;\n\t\tcase \&quot;gteq\&quot;:\n\t\t\tthis.isOpen = !(this.compareStateText(state) &lt; 0);\n\t\t\tbreak;\n\t}\n};\n\nRevealWidget.prototype.compareStateText = function(state) {\n\treturn state.localeCompare(this.text,undefined,{numeric: true,sensitivity: \&quot;case\&quot;});\n};\n\nRevealWidget.prototype.readPopupState = function(state) {\n\tvar popupLocationRegExp = /^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/,\n\t\tmatch = popupLocationRegExp.exec(state);\n\t// Check if the state matches the location regexp\n\tif(match) {\n\t\t// If so, we're open\n\t\tthis.isOpen = true;\n\t\t// Get the location\n\t\tthis.popup = {\n\t\t\tleft: parseFloat(match[1]),\n\t\t\ttop: parseFloat(match[2]),\n\t\t\twidth: parseFloat(match[3]),\n\t\t\theight: parseFloat(match[4])\n\t\t};\n\t} else {\n\t\t// If not, we're closed\n\t\tthis.isOpen = false;\n\t}\n};\n\nRevealWidget.prototype.assignDomNodeClasses = function() {\n\tvar classes = this.getAttribute(\&quot;class\&quot;,\&quot;\&quot;).split(\&quot; \&quot;);\n\tclasses.push(\&quot;tc-reveal\&quot;);\n\tthis.domNode.className = classes.join(\&quot; \&quot;);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRevealWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.state || changedAttributes.type || changedAttributes.text || changedAttributes.position || changedAttributes.positionAllowNegative || changedAttributes[\&quot;default\&quot;] || changedAttributes.animate || changedAttributes.stateTitle || changedAttributes.stateField || changedAttributes.stateIndex) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar currentlyOpen = this.isOpen;\n\t\tthis.readState();\n\t\tif(this.isOpen !== currentlyOpen) {\n\t\t\tif(this.retain === \&quot;yes\&quot;) {\n\t\t\t\tthis.updateState();\n\t\t\t} else {\n\t\t\t\tthis.refreshSelf();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if(this.type === \&quot;popup\&quot; &amp;&amp; this.updatePopupPosition &amp;&amp; (changedTiddlers[this.state] || changedTiddlers[this.stateTitle])) {\n\t\t\tthis.positionPopup(this.domNode);\n\t\t}\n\t\tif(changedAttributes.style) {\n\t\t\tthis.domNode.style = this.getAttribute(\&quot;style\&quot;,\&quot;\&quot;);\n\t\t}\n\t\tif(changedAttributes[\&quot;class\&quot;]) {\n\t\t\tthis.assignDomNodeClasses();\n\t\t}\t\t\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\n/*\nCalled by refresh() to dynamically show or hide the content\n*/\nRevealWidget.prototype.updateState = function() {\n\tvar self = this;\n\t// Read the current state\n\tthis.readState();\n\t// Construct the child nodes if needed\n\tvar domNode = this.domNodes[0];\n\tif(this.isOpen &amp;&amp; !this.hasChildNodes) {\n\t\tthis.hasChildNodes = true;\n\t\tthis.makeChildWidgets(this.parseTreeNode.children);\n\t\tthis.renderChildren(domNode,null);\n\t}\n\t// Animate our DOM node\n\tif(!domNode.isTiddlyWikiFakeDom &amp;&amp; this.type === \&quot;popup\&quot; &amp;&amp; this.isOpen) {\n\t\tthis.positionPopup(domNode);\n\t\t$tw.utils.addClass(domNode,\&quot;tc-popup\&quot;); // Make sure that clicks don't dismiss popups within the revealed content\n\n\t}\n\tif(this.isOpen) {\n\t\tdomNode.removeAttribute(\&quot;hidden\&quot;);\n $tw.anim.perform(this.openAnimation,domNode);\n\t} else {\n\t\t$tw.anim.perform(this.closeAnimation,domNode,{callback: function() {\n\t\t\t//make sure that the state hasn't changed during the close animation\n\t\t\tself.readState()\n\t\t\tif(!self.isOpen) {\n\t\t\t\tdomNode.setAttribute(\&quot;hidden\&quot;,\&quot;true\&quot;);\n\t\t\t}\n\t\t}});\n\t}\n};\n\nexports.reveal = RevealWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/scrollable.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/scrollable.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/scrollable.js\ntype: application/javascript\nmodule-type: widget\n\nScrollable widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar ScrollableWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.scaleFactor = 1;\n\tthis.addEventListeners([\n\t\t{type: \&quot;tm-scroll\&quot;, handler: \&quot;handleScrollEvent\&quot;}\n\t]);\n\tif($tw.browser) {\n\t\tthis.requestAnimationFrame = window.requestAnimationFrame ||\n\t\t\twindow.webkitRequestAnimationFrame ||\n\t\t\twindow.mozRequestAnimationFrame ||\n\t\t\tfunction(callback) {\n\t\t\t\treturn window.setTimeout(callback, 1000/60);\n\t\t\t};\n\t\tthis.cancelAnimationFrame = window.cancelAnimationFrame ||\n\t\t\twindow.webkitCancelAnimationFrame ||\n\t\t\twindow.webkitCancelRequestAnimationFrame ||\n\t\t\twindow.mozCancelAnimationFrame ||\n\t\t\twindow.mozCancelRequestAnimationFrame ||\n\t\t\tfunction(id) {\n\t\t\t\twindow.clearTimeout(id);\n\t\t\t};\n\t}\n};\n\n/*\nInherit from the base widget class\n*/\nScrollableWidget.prototype = new Widget();\n\nScrollableWidget.prototype.cancelScroll = function() {\n\tif(this.idRequestFrame) {\n\t\tthis.cancelAnimationFrame.call(window,this.idRequestFrame);\n\t\tthis.idRequestFrame = null;\n\t}\n};\n\n/*\nHandle a scroll event\n*/\nScrollableWidget.prototype.handleScrollEvent = function(event) {\n\t// Pass the scroll event through if our offsetsize is larger than our scrollsize\n\tif(this.outerDomNode.scrollWidth &lt;= this.outerDomNode.offsetWidth &amp;&amp; this.outerDomNode.scrollHeight &lt;= this.outerDomNode.offsetHeight &amp;&amp; this.fallthrough === \&quot;yes\&quot;) {\n\t\treturn true;\n\t}\n\tif(event.paramObject &amp;&amp; event.paramObject.selector) {\n\t\tthis.scrollSelectorIntoView(null,event.paramObject.selector);\n\t} else {\n\t\tthis.scrollIntoView(event.target);\t\t\t\n\t}\n\treturn false; // Handled event\n};\n\n/*\nScroll an element into view\n*/\nScrollableWidget.prototype.scrollIntoView = function(element) {\n\tvar duration = $tw.utils.getAnimationDuration(),\n\tsrcWindow = element ? element.ownerDocument.defaultView : window;\n\tthis.cancelScroll();\n\tthis.startTime = Date.now();\n\tvar scrollPosition = {\n\t\tx: this.outerDomNode.scrollLeft,\n\t\ty: this.outerDomNode.scrollTop\n\t};\n\t// Get the client bounds of the element and adjust by the scroll position\n\tvar scrollableBounds = this.outerDomNode.getBoundingClientRect(),\n\t\tclientTargetBounds = element.getBoundingClientRect(),\n\t\tbounds = {\n\t\t\tleft: clientTargetBounds.left + scrollPosition.x - scrollableBounds.left,\n\t\t\ttop: clientTargetBounds.top + scrollPosition.y - scrollableBounds.top,\n\t\t\twidth: clientTargetBounds.width,\n\t\t\theight: clientTargetBounds.height\n\t\t};\n\t// We'll consider the horizontal and vertical scroll directions separately via this function\n\tvar getEndPos = function(targetPos,targetSize,currentPos,currentSize) {\n\t\t\t// If the target is already visible then stay where we are\n\t\t\tif(targetPos &gt;= currentPos &amp;&amp; (targetPos + targetSize) &lt;= (currentPos + currentSize)) {\n\t\t\t\treturn currentPos;\n\t\t\t// If the target is above/left of the current view, then scroll to its top/left\n\t\t\t} else if(targetPos &lt;= currentPos) {\n\t\t\t\treturn targetPos;\n\t\t\t// If the target is smaller than the window and the scroll position is too far up, then scroll till the target is at the bottom of the window\n\t\t\t} else if(targetSize &lt; currentSize &amp;&amp; currentPos &lt; (targetPos + targetSize - currentSize)) {\n\t\t\t\treturn targetPos + targetSize - currentSize;\n\t\t\t// If the target is big, then just scroll to the top\n\t\t\t} else if(currentPos &lt; targetPos) {\n\t\t\t\treturn targetPos;\n\t\t\t// Otherwise, stay where we are\n\t\t\t} else {\n\t\t\t\treturn currentPos;\n\t\t\t}\n\t\t},\n\t\tendX = getEndPos(bounds.left,bounds.width,scrollPosition.x,this.outerDomNode.offsetWidth),\n\t\tendY = getEndPos(bounds.top,bounds.height,scrollPosition.y,this.outerDomNode.offsetHeight);\n\t// Only scroll if necessary\n\tif(endX !== scrollPosition.x || endY !== scrollPosition.y) {\n\t\tvar self = this,\n\t\t\tdrawFrame;\n\t\tdrawFrame = function () {\n\t\t\tvar t;\n\t\t\tif(duration &lt;= 0) {\n\t\t\t\tt = 1;\n\t\t\t} else {\n\t\t\t\tt = ((Date.now()) - self.startTime) / duration;\t\n\t\t\t}\n\t\t\tif(t &gt;= 1) {\n\t\t\t\tself.cancelScroll();\n\t\t\t\tt = 1;\n\t\t\t}\n\t\t\tt = $tw.utils.slowInSlowOut(t);\n\t\t\tself.outerDomNode.scrollLeft = scrollPosition.x + (endX - scrollPosition.x) * t;\n\t\t\tself.outerDomNode.scrollTop = scrollPosition.y + (endY - scrollPosition.y) * t;\n\t\t\tif(t &lt; 1) {\n\t\t\t\tself.idRequestFrame = self.requestAnimationFrame.call(srcWindow,drawFrame);\n\t\t\t}\n\t\t};\n\t\tdrawFrame();\n\t}\n};\n\nScrollableWidget.prototype.scrollSelectorIntoView = function(baseElement,selector,callback) {\n\tbaseElement = baseElement || document.body;\n\tvar element = baseElement.querySelector(selector);\n\tif(element) {\n\t\tthis.scrollIntoView(element,callback);\t\t\n\t}\n};\n\n/*\nRender this widget into the DOM\n*/\nScrollableWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create elements\n\tthis.outerDomNode = this.document.createElement(\&quot;div\&quot;);\n\t$tw.utils.setStyle(this.outerDomNode,[\n\t\t{overflowY: \&quot;auto\&quot;},\n\t\t{overflowX: \&quot;auto\&quot;},\n\t\t{webkitOverflowScrolling: \&quot;touch\&quot;}\n\t]);\n\tthis.innerDomNode = this.document.createElement(\&quot;div\&quot;);\n\tthis.outerDomNode.appendChild(this.innerDomNode);\n\t// Assign classes\n\tthis.outerDomNode.className = this[\&quot;class\&quot;] || \&quot;\&quot;;\n\t// Insert element\n\tparent.insertBefore(this.outerDomNode,nextSibling);\n\tthis.renderChildren(this.innerDomNode,null);\n\tthis.domNodes.push(this.outerDomNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nScrollableWidget.prototype.execute = function() {\n\t// Get attributes\n\tthis.fallthrough = this.getAttribute(\&quot;fallthrough\&quot;,\&quot;yes\&quot;);\n\tthis[\&quot;class\&quot;] = this.getAttribute(\&quot;class\&quot;);\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nScrollableWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\&quot;class\&quot;]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.scrollable = ScrollableWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/select.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/select.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/select.js\ntype: application/javascript\nmodule-type: widget\n\nSelect widget:\n\n```\n&lt;$select tiddler=\&quot;MyTiddler\&quot; field=\&quot;text\&quot;&gt;\n&lt;$list filter=\&quot;[tag[chapter]]\&quot;&gt;\n&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;$view field=\&quot;description\&quot;/&gt;\n&lt;/option&gt;\n&lt;/$list&gt;\n&lt;/$select&gt;\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar SelectWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nSelectWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nSelectWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n\tthis.setSelectValue();\n\t$tw.utils.addEventListeners(this.getSelectDomNode(),[\n\t\t{name: \&quot;change\&quot;, handlerObject: this, handlerMethod: \&quot;handleChangeEvent\&quot;}\n\t]);\n};\n\n/*\nHandle a change event\n*/\nSelectWidget.prototype.handleChangeEvent = function(event) {\n\t// Get the new value and assign it to the tiddler\n\tif(this.selectMultiple == false) {\n\t\tvar value = this.getSelectDomNode().value;\n\t} else {\n\t\tvar value = this.getSelectValues()\n\t\t\t\tvalue = $tw.utils.stringifyList(value);\n\t}\n\tthis.wiki.setText(this.selectTitle,this.selectField,this.selectIndex,value);\n\t// Trigger actions\n\tif(this.selectActions) {\n\t\tthis.invokeActionString(this.selectActions,this,event);\n\t}\n};\n\n/*\nIf necessary, set the value of the select element to the current value\n*/\nSelectWidget.prototype.setSelectValue = function() {\n\tvar value = this.selectDefault;\n\t// Get the value\n\tif(this.selectIndex) {\n\t\tvalue = this.wiki.extractTiddlerDataItem(this.selectTitle,this.selectIndex,value);\n\t} else {\n\t\tvar tiddler = this.wiki.getTiddler(this.selectTitle);\n\t\tif(tiddler) {\n\t\t\tif(this.selectField === \&quot;text\&quot;) {\n\t\t\t\t// Calling getTiddlerText() triggers lazy loading of skinny tiddlers\n\t\t\t\tvalue = this.wiki.getTiddlerText(this.selectTitle);\n\t\t\t} else {\n\t\t\t\tif($tw.utils.hop(tiddler.fields,this.selectField)) {\n\t\t\t\t\tvalue = tiddler.getFieldString(this.selectField);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif(this.selectField === \&quot;title\&quot;) {\n\t\t\t\tvalue = this.selectTitle;\n\t\t\t}\n\t\t}\n\t}\n\t// Assign it to the select element if it's different than the current value\n\tif (this.selectMultiple) {\n\t\tvalue = value === undefined ? \&quot;\&quot; : value;\n\t\tvar select = this.getSelectDomNode();\n\t\tvar values = Array.isArray(value) ? value : $tw.utils.parseStringArray(value);\n\t\tfor(var i=0; i &lt; select.children.length; i++){\n\t\t\tselect.children[i].selected = values.indexOf(select.children[i].value) !== -1\n\t\t}\n\t} else {\n\t\tvar domNode = this.getSelectDomNode();\n\t\tif(domNode.value !== value) {\n\t\t\tdomNode.value = value;\n\t\t}\n\t}\n};\n\n/*\nGet the DOM node of the select element\n*/\nSelectWidget.prototype.getSelectDomNode = function() {\n\treturn this.children[0].domNodes[0];\n};\n\n// Return an array of the selected opion values\n// select is an HTML select element\nSelectWidget.prototype.getSelectValues = function() {\n\tvar select, result, options, opt;\n\tselect = this.getSelectDomNode();\n\tresult = [];\n\toptions = select &amp;&amp; select.options;\n\tfor (var i=0; i&lt;options.length; i++) {\n\t\topt = options[i];\n\t\tif (opt.selected) {\n\t\t\tresult.push(opt.value || opt.text);\n\t\t}\n\t}\n\treturn result;\n}\n\n/*\nCompute the internal state of the widget\n*/\nSelectWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.selectActions = this.getAttribute(\&quot;actions\&quot;);\n\tthis.selectTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tthis.selectField = this.getAttribute(\&quot;field\&quot;,\&quot;text\&quot;);\n\tthis.selectIndex = this.getAttribute(\&quot;index\&quot;);\n\tthis.selectClass = this.getAttribute(\&quot;class\&quot;);\n\tthis.selectDefault = this.getAttribute(\&quot;default\&quot;);\n\tthis.selectMultiple = this.getAttribute(\&quot;multiple\&quot;, false);\n\tthis.selectSize = this.getAttribute(\&quot;size\&quot;);\n\tthis.selectTooltip = this.getAttribute(\&quot;tooltip\&quot;);\n\t// Make the child widgets\n\tvar selectNode = {\n\t\ttype: \&quot;element\&quot;,\n\t\ttag: \&quot;select\&quot;,\n\t\tchildren: this.parseTreeNode.children\n\t};\n\tif(this.selectClass) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\&quot;class\&quot;,this.selectClass);\n\t}\n\tif(this.selectMultiple) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\&quot;multiple\&quot;,\&quot;multiple\&quot;);\n\t}\n\tif(this.selectSize) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\&quot;size\&quot;,this.selectSize);\n\t}\n\tif(this.selectTooltip) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\&quot;title\&quot;,this.selectTooltip);\n\t}\n\tthis.makeChildWidgets([selectNode]);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nSelectWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\t// If we're using a different tiddler/field/index then completely refresh ourselves\n\tif(changedAttributes.selectTitle || changedAttributes.selectField || changedAttributes.selectIndex || changedAttributes.selectTooltip) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t// If the target tiddler value has changed, just update setting and refresh the children\n\t} else {\n\t\tvar childrenRefreshed = this.refreshChildren(changedTiddlers);\n\t\tif(changedTiddlers[this.selectTitle] || childrenRefreshed) {\n\t\t\tthis.setSelectValue();\n\t\t} \n\t\treturn childrenRefreshed;\n\t}\n};\n\nexports.select = SelectWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/set.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/set.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/set.js\ntype: application/javascript\nmodule-type: widget\n\nSet variable widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar SetWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nSetWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nSetWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nSetWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.setName = this.getAttribute(\&quot;name\&quot;,\&quot;currentTiddler\&quot;);\n\tthis.setFilter = this.getAttribute(\&quot;filter\&quot;);\n\tthis.setSelect = this.getAttribute(\&quot;select\&quot;);\n\tthis.setTiddler = this.getAttribute(\&quot;tiddler\&quot;);\n\tthis.setSubTiddler = this.getAttribute(\&quot;subtiddler\&quot;);\n\tthis.setField = this.getAttribute(\&quot;field\&quot;);\n\tthis.setIndex = this.getAttribute(\&quot;index\&quot;);\n\tthis.setValue = this.getAttribute(\&quot;value\&quot;);\n\tthis.setEmptyValue = this.getAttribute(\&quot;emptyValue\&quot;);\n\t// Set context variable\n\tthis.setVariable(this.setName,this.getValue(),this.parseTreeNode.params,!!this.parseTreeNode.isMacroDefinition);\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nGet the value to be assigned\n*/\nSetWidget.prototype.getValue = function() {\n\tvar value = this.setValue;\n\tif(this.setTiddler) {\n\t\tvar tiddler;\n\t\tif(this.setSubTiddler) {\n\t\t\ttiddler = this.wiki.getSubTiddler(this.setTiddler,this.setSubTiddler);\n\t\t} else {\n\t\t\ttiddler = this.wiki.getTiddler(this.setTiddler);\t\t\t\n\t\t}\n\t\tif(!tiddler) {\n\t\t\tvalue = this.setEmptyValue;\n\t\t} else if(this.setField) {\n\t\t\tvalue = tiddler.getFieldString(this.setField) || this.setEmptyValue;\n\t\t} else if(this.setIndex) {\n\t\t\tvalue = this.wiki.extractTiddlerDataItem(this.setTiddler,this.setIndex,this.setEmptyValue);\n\t\t} else {\n\t\t\tvalue = tiddler.fields.text || this.setEmptyValue ;\n\t\t}\n\t} else if(this.setFilter) {\n\t\tvar results = this.wiki.filterTiddlers(this.setFilter,this);\n\t\tif(this.setValue == null) {\n\t\t\tvar select;\n\t\t\tif(this.setSelect) {\n\t\t\t\tselect = parseInt(this.setSelect,10);\n\t\t\t}\n\t\t\tif(select !== undefined) {\n\t\t\t\tvalue = results[select] || \&quot;\&quot;;\n\t\t\t} else {\n\t\t\t\tvalue = $tw.utils.stringifyList(results);\t\t\t\n\t\t\t}\n\t\t}\n\t\tif(results.length === 0 &amp;&amp; this.setEmptyValue !== undefined) {\n\t\t\tvalue = this.setEmptyValue;\n\t\t}\n\t} else if(!value &amp;&amp; this.setEmptyValue) {\n\t\tvalue = this.setEmptyValue;\n\t}\n\treturn value || \&quot;\&quot;;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nSetWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.name || changedAttributes.filter || changedAttributes.select || changedAttributes.tiddler || (this.setTiddler &amp;&amp; changedTiddlers[this.setTiddler]) || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes.emptyValue ||\n\t (this.setFilter &amp;&amp; this.getValue() != this.variables[this.setName].value)) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.setvariable = SetWidget;\nexports.set = SetWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/text.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/text.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/text.js\ntype: application/javascript\nmodule-type: widget\n\nText node widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar TextNodeWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nTextNodeWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nTextNodeWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar text = this.getAttribute(\&quot;text\&quot;,this.parseTreeNode.text || \&quot;\&quot;);\n\ttext = text.replace(/\\r/mg,\&quot;\&quot;);\n\tvar textNode = this.document.createTextNode(text);\n\tparent.insertBefore(textNode,nextSibling);\n\tthis.domNodes.push(textNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nTextNodeWidget.prototype.execute = function() {\n\t// Nothing to do for a text node\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nTextNodeWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.text) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\n\t}\n};\n\nexports.text = TextNodeWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/tiddler.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/tiddler.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/tiddler.js\ntype: application/javascript\nmodule-type: widget\n\nTiddler widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar TiddlerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nTiddlerWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nTiddlerWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nTiddlerWidget.prototype.execute = function() {\n\tthis.tiddlerState = this.computeTiddlerState();\n\tthis.setVariable(\&quot;currentTiddler\&quot;,this.tiddlerState.currentTiddler);\n\tthis.setVariable(\&quot;missingTiddlerClass\&quot;,this.tiddlerState.missingTiddlerClass);\n\tthis.setVariable(\&quot;shadowTiddlerClass\&quot;,this.tiddlerState.shadowTiddlerClass);\n\tthis.setVariable(\&quot;systemTiddlerClass\&quot;,this.tiddlerState.systemTiddlerClass);\n\tthis.setVariable(\&quot;tiddlerTagClasses\&quot;,this.tiddlerState.tiddlerTagClasses);\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nCompute the tiddler state flags\n*/\nTiddlerWidget.prototype.computeTiddlerState = function() {\n\t// Get our parameters\n\tthis.tiddlerTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\t// Compute the state\n\tvar state = {\n\t\tcurrentTiddler: this.tiddlerTitle || \&quot;\&quot;,\n\t\tmissingTiddlerClass: (this.wiki.tiddlerExists(this.tiddlerTitle) || this.wiki.isShadowTiddler(this.tiddlerTitle)) ? \&quot;tc-tiddler-exists\&quot; : \&quot;tc-tiddler-missing\&quot;,\n\t\tshadowTiddlerClass: this.wiki.isShadowTiddler(this.tiddlerTitle) ? \&quot;tc-tiddler-shadow\&quot; : \&quot;\&quot;,\n\t\tsystemTiddlerClass: this.wiki.isSystemTiddler(this.tiddlerTitle) ? \&quot;tc-tiddler-system\&quot; : \&quot;\&quot;,\n\t\ttiddlerTagClasses: this.getTagClasses()\n\t};\n\t// Compute a simple hash to make it easier to detect changes\n\tstate.hash = state.currentTiddler + state.missingTiddlerClass + state.shadowTiddlerClass + state.systemTiddlerClass + state.tiddlerTagClasses;\n\treturn state;\n};\n\n/*\nCreate a string of CSS classes derived from the tags of the current tiddler\n*/\nTiddlerWidget.prototype.getTagClasses = function() {\n\tvar tiddler = this.wiki.getTiddler(this.tiddlerTitle);\n\tif(tiddler) {\n\t\tvar tags = [];\n\t\t$tw.utils.each(tiddler.fields.tags,function(tag) {\n\t\t\ttags.push(\&quot;tc-tagged-\&quot; + encodeURIComponent(tag));\n\t\t});\n\t\treturn tags.join(\&quot; \&quot;);\n\t} else {\n\t\treturn \&quot;\&quot;;\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nTiddlerWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes(),\n\t\tnewTiddlerState = this.computeTiddlerState();\n\tif(changedAttributes.tiddler || newTiddlerState.hash !== this.tiddlerState.hash) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\t\t\n\t}\n};\n\nexports.tiddler = TiddlerWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/transclude.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/transclude.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/transclude.js\ntype: application/javascript\nmodule-type: widget\n\nTransclude widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar TranscludeWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nTranscludeWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nTranscludeWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nTranscludeWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.transcludeTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tthis.transcludeSubTiddler = this.getAttribute(\&quot;subtiddler\&quot;);\n\tthis.transcludeField = this.getAttribute(\&quot;field\&quot;);\n\tthis.transcludeIndex = this.getAttribute(\&quot;index\&quot;);\n\tthis.transcludeMode = this.getAttribute(\&quot;mode\&quot;);\n\tthis.recursionMarker = this.getAttribute(\&quot;recursionMarker\&quot;,\&quot;yes\&quot;);\n\t// Parse the text reference\n\tvar parseAsInline = !this.parseTreeNode.isBlock;\n\tif(this.transcludeMode === \&quot;inline\&quot;) {\n\t\tparseAsInline = true;\n\t} else if(this.transcludeMode === \&quot;block\&quot;) {\n\t\tparseAsInline = false;\n\t}\n\tvar parser = this.wiki.parseTextReference(\n\t\t\t\t\t\tthis.transcludeTitle,\n\t\t\t\t\t\tthis.transcludeField,\n\t\t\t\t\t\tthis.transcludeIndex,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparseAsInline: parseAsInline,\n\t\t\t\t\t\t\tsubTiddler: this.transcludeSubTiddler\n\t\t\t\t\t\t}),\n\t\tparseTreeNodes = parser ? parser.tree : this.parseTreeNode.children;\n\t// Set context variables for recursion detection\n\tvar recursionMarker = this.makeRecursionMarker();\n\tif(this.recursionMarker === \&quot;yes\&quot;) {\n\t\tthis.setVariable(\&quot;transclusion\&quot;,recursionMarker);\n\t}\n\t// Check for recursion\n\tif(parser) {\n\t\tif(this.parentWidget &amp;&amp; this.parentWidget.hasVariable(\&quot;transclusion\&quot;,recursionMarker)) {\n\t\t\tparseTreeNodes = [{type: \&quot;element\&quot;, tag: \&quot;span\&quot;, attributes: {\n\t\t\t\t\&quot;class\&quot;: {type: \&quot;string\&quot;, value: \&quot;tc-error\&quot;}\n\t\t\t}, children: [\n\t\t\t\t{type: \&quot;text\&quot;, text: $tw.language.getString(\&quot;Error/RecursiveTransclusion\&quot;)}\n\t\t\t]}];\n\t\t}\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets(parseTreeNodes);\n};\n\n/*\nCompose a string comprising the title, field and/or index to identify this transclusion for recursion detection\n*/\nTranscludeWidget.prototype.makeRecursionMarker = function() {\n\tvar output = [];\n\toutput.push(\&quot;{\&quot;);\n\toutput.push(this.getVariable(\&quot;currentTiddler\&quot;,{defaultValue: \&quot;\&quot;}));\n\toutput.push(\&quot;|\&quot;);\n\toutput.push(this.transcludeTitle || \&quot;\&quot;);\n\toutput.push(\&quot;|\&quot;);\n\toutput.push(this.transcludeField || \&quot;\&quot;);\n\toutput.push(\&quot;|\&quot;);\n\toutput.push(this.transcludeIndex || \&quot;\&quot;);\n\toutput.push(\&quot;|\&quot;);\n\toutput.push(this.transcludeSubTiddler || \&quot;\&quot;);\n\toutput.push(\&quot;}\&quot;);\n\treturn output.join(\&quot;\&quot;);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nTranscludeWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedTiddlers[this.transcludeTitle]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\t\t\n\t}\n};\n\nexports.transclude = TranscludeWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/vars.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/vars.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/vars.js\ntype: application/javascript\nmodule-type: widget\n\nThis widget allows multiple variables to be set in one go:\n\n```\n\\define helloworld() Hello world!\n&lt;$vars greeting=\&quot;Hi\&quot; me={{!!title}} sentence=&lt;&lt;helloworld&gt;&gt;&gt;\n &lt;&lt;greeting&gt;&gt;! I am &lt;&lt;me&gt;&gt; and I say: &lt;&lt;sentence&gt;&gt;\n&lt;/$vars&gt;\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar VarsWidget = function(parseTreeNode,options) {\n\t// Call the constructor\n\tWidget.call(this);\n\t// Initialise\t\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nVarsWidget.prototype = Object.create(Widget.prototype);\n\n/*\nRender this widget into the DOM\n*/\nVarsWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nVarsWidget.prototype.execute = function() {\n\t// Parse variables\n\tvar self = this;\n\t$tw.utils.each(this.attributes,function(val,key) {\n\t\tif(key.charAt(0) !== \&quot;$\&quot;) {\n\t\t\tself.setVariable(key,val);\n\t\t}\n\t});\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nVarsWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(Object.keys(changedAttributes).length) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports[\&quot;vars\&quot;] = VarsWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/view.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/view.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/view.js\ntype: application/javascript\nmodule-type: widget\n\nView widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar ViewWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nViewWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nViewWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tif(this.text) {\n\t\tvar textNode = this.document.createTextNode(this.text);\n\t\tparent.insertBefore(textNode,nextSibling);\n\t\tthis.domNodes.push(textNode);\n\t} else {\n\t\tthis.makeChildWidgets();\n\t\tthis.renderChildren(parent,nextSibling);\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nViewWidget.prototype.execute = function() {\n\t// Get parameters from our attributes\n\tthis.viewTitle = this.getAttribute(\&quot;tiddler\&quot;,this.getVariable(\&quot;currentTiddler\&quot;));\n\tthis.viewSubtiddler = this.getAttribute(\&quot;subtiddler\&quot;);\n\tthis.viewField = this.getAttribute(\&quot;field\&quot;,\&quot;text\&quot;);\n\tthis.viewIndex = this.getAttribute(\&quot;index\&quot;);\n\tthis.viewFormat = this.getAttribute(\&quot;format\&quot;,\&quot;text\&quot;);\n\tthis.viewTemplate = this.getAttribute(\&quot;template\&quot;,\&quot;\&quot;);\n\tthis.viewMode = this.getAttribute(\&quot;mode\&quot;,\&quot;block\&quot;);\n\tswitch(this.viewFormat) {\n\t\tcase \&quot;htmlwikified\&quot;:\n\t\t\tthis.text = this.getValueAsHtmlWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \&quot;plainwikified\&quot;:\n\t\t\tthis.text = this.getValueAsPlainWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \&quot;htmlencodedplainwikified\&quot;:\n\t\t\tthis.text = this.getValueAsHtmlEncodedPlainWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \&quot;htmlencoded\&quot;:\n\t\t\tthis.text = this.getValueAsHtmlEncoded();\n\t\t\tbreak;\n\t\tcase \&quot;urlencoded\&quot;:\n\t\t\tthis.text = this.getValueAsUrlEncoded();\n\t\t\tbreak;\n\t\tcase \&quot;doubleurlencoded\&quot;:\n\t\t\tthis.text = this.getValueAsDoubleUrlEncoded();\n\t\t\tbreak;\n\t\tcase \&quot;date\&quot;:\n\t\t\tthis.text = this.getValueAsDate(this.viewTemplate);\n\t\t\tbreak;\n\t\tcase \&quot;relativedate\&quot;:\n\t\t\tthis.text = this.getValueAsRelativeDate();\n\t\t\tbreak;\n\t\tcase \&quot;stripcomments\&quot;:\n\t\t\tthis.text = this.getValueAsStrippedComments();\n\t\t\tbreak;\n\t\tcase \&quot;jsencoded\&quot;:\n\t\t\tthis.text = this.getValueAsJsEncoded();\n\t\t\tbreak;\n\t\tdefault: // \&quot;text\&quot;\n\t\t\tthis.text = this.getValueAsText();\n\t\t\tbreak;\n\t}\n};\n\n/*\nThe various formatter functions are baked into this widget for the moment. Eventually they will be replaced by macro functions\n*/\n\n/*\nRetrieve the value of the widget. Options are:\nasString: Optionally return the value as a string\n*/\nViewWidget.prototype.getValue = function(options) {\n\toptions = options || {};\n\tvar value = options.asString ? \&quot;\&quot; : undefined;\n\tif(this.viewIndex) {\n\t\tvalue = this.wiki.extractTiddlerDataItem(this.viewTitle,this.viewIndex);\n\t} else {\n\t\tvar tiddler;\n\t\tif(this.viewSubtiddler) {\n\t\t\ttiddler = this.wiki.getSubTiddler(this.viewTitle,this.viewSubtiddler);\t\n\t\t} else {\n\t\t\ttiddler = this.wiki.getTiddler(this.viewTitle);\n\t\t}\n\t\tif(tiddler) {\n\t\t\tif(this.viewField === \&quot;text\&quot; &amp;&amp; !this.viewSubtiddler) {\n\t\t\t\t// Calling getTiddlerText() triggers lazy loading of skinny tiddlers\n\t\t\t\tvalue = this.wiki.getTiddlerText(this.viewTitle);\n\t\t\t} else {\n\t\t\t\tif($tw.utils.hop(tiddler.fields,this.viewField)) {\n\t\t\t\t\tif(options.asString) {\n\t\t\t\t\t\tvalue = tiddler.getFieldString(this.viewField);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvalue = tiddler.fields[this.viewField];\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif(this.viewField === \&quot;title\&quot;) {\n\t\t\t\tvalue = this.viewTitle;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\nViewWidget.prototype.getValueAsText = function() {\n\treturn this.getValue({asString: true});\n};\n\nViewWidget.prototype.getValueAsHtmlWikified = function(mode) {\n\treturn this.wiki.renderText(\&quot;text/html\&quot;,\&quot;text/vnd.tiddlywiki\&quot;,this.getValueAsText(),{\n\t\tparseAsInline: mode !== \&quot;block\&quot;,\n\t\tparentWidget: this\n\t});\n};\n\nViewWidget.prototype.getValueAsPlainWikified = function(mode) {\n\treturn this.wiki.renderText(\&quot;text/plain\&quot;,\&quot;text/vnd.tiddlywiki\&quot;,this.getValueAsText(),{\n\t\tparseAsInline: mode !== \&quot;block\&quot;,\n\t\tparentWidget: this\n\t});\n};\n\nViewWidget.prototype.getValueAsHtmlEncodedPlainWikified = function(mode) {\n\treturn $tw.utils.htmlEncode(this.wiki.renderText(\&quot;text/plain\&quot;,\&quot;text/vnd.tiddlywiki\&quot;,this.getValueAsText(),{\n\t\tparseAsInline: mode !== \&quot;block\&quot;,\n\t\tparentWidget: this\n\t}));\n};\n\nViewWidget.prototype.getValueAsHtmlEncoded = function() {\n\treturn $tw.utils.htmlEncode(this.getValueAsText());\n};\n\nViewWidget.prototype.getValueAsUrlEncoded = function() {\n\treturn encodeURIComponent(this.getValueAsText());\n};\n\nViewWidget.prototype.getValueAsDoubleUrlEncoded = function() {\n\treturn encodeURIComponent(encodeURIComponent(this.getValueAsText()));\n};\n\nViewWidget.prototype.getValueAsDate = function(format) {\n\tformat = format || \&quot;YYYY MM DD 0hh:0mm\&quot;;\n\tvar value = $tw.utils.parseDate(this.getValue());\n\tif(value &amp;&amp; $tw.utils.isDate(value) &amp;&amp; value.toString() !== \&quot;Invalid Date\&quot;) {\n\t\treturn $tw.utils.formatDateString(value,format);\n\t} else {\n\t\treturn \&quot;\&quot;;\n\t}\n};\n\nViewWidget.prototype.getValueAsRelativeDate = function(format) {\n\tvar value = $tw.utils.parseDate(this.getValue());\n\tif(value &amp;&amp; $tw.utils.isDate(value) &amp;&amp; value.toString() !== \&quot;Invalid Date\&quot;) {\n\t\treturn $tw.utils.getRelativeDate((new Date()) - (new Date(value))).description;\n\t} else {\n\t\treturn \&quot;\&quot;;\n\t}\n};\n\nViewWidget.prototype.getValueAsStrippedComments = function() {\n\tvar lines = this.getValueAsText().split(\&quot;\\n\&quot;),\n\t\tout = [];\n\tfor(var line=0; line&lt;lines.length; line++) {\n\t\tvar text = lines[line];\n\t\tif(!/^\\s*\\/\\/#/.test(text)) {\n\t\t\tout.push(text);\n\t\t}\n\t}\n\treturn out.join(\&quot;\\n\&quot;);\n};\n\nViewWidget.prototype.getValueAsJsEncoded = function() {\n\treturn $tw.utils.stringify(this.getValueAsText());\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nViewWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.template || changedAttributes.format || changedTiddlers[this.viewTitle]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\n\t}\n};\n\nexports.view = ViewWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/widget.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/widget.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/widget.js\ntype: application/javascript\nmodule-type: widget\n\nWidget base class\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nCreate a widget object for a parse tree node\n\tparseTreeNode: reference to the parse tree node to be rendered\n\toptions: see below\nOptions include:\n\twiki: mandatory reference to wiki associated with this render tree\n\tparentWidget: optional reference to a parent renderer node for the context chain\n\tdocument: optional document object to use instead of global document\n*/\nvar Widget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInitialise widget properties. These steps are pulled out of the constructor so that we can reuse them in subclasses\n*/\nWidget.prototype.initialise = function(parseTreeNode,options) {\n\t// Bail if parseTreeNode is undefined, meaning that the widget constructor was called without any arguments so that it can be subclassed\n\tif(parseTreeNode === undefined) {\n\t\treturn;\n\t}\n\toptions = options || {};\n\t// Save widget info\n\tthis.parseTreeNode = parseTreeNode;\n\tthis.wiki = options.wiki;\n\tthis.parentWidget = options.parentWidget;\n\tthis.variablesConstructor = function() {};\n\tthis.variablesConstructor.prototype = this.parentWidget ? this.parentWidget.variables : {};\n\tthis.variables = new this.variablesConstructor();\n\tthis.document = options.document;\n\tthis.attributes = {};\n\tthis.children = [];\n\tthis.domNodes = [];\n\tthis.eventListeners = {};\n\t// Hashmap of the widget classes\n\tif(!this.widgetClasses) {\n\t\t// Get widget classes\n\t\tWidget.prototype.widgetClasses = $tw.modules.applyMethods(\&quot;widget\&quot;);\n\t\t// Process any subclasses\n\t\t$tw.modules.forEachModuleOfType(\&quot;widget-subclass\&quot;,function(title,module) {\n\t\t\tif(module.baseClass) {\n\t\t\t\tvar baseClass = Widget.prototype.widgetClasses[module.baseClass];\n\t\t\t\tif(!baseClass) {\n\t\t\t\t\tthrow \&quot;Module '\&quot; + title + \&quot;' is attemping to extend a non-existent base class '\&quot; + module.baseClass + \&quot;'\&quot;;\n\t\t\t\t}\n\t\t\t\tvar subClass = module.constructor;\n\t\t\t\tsubClass.prototype = new baseClass();\n\t\t\t\t$tw.utils.extend(subClass.prototype,module.prototype);\n\t\t\t\tWidget.prototype.widgetClasses[module.name || module.baseClass] = subClass;\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nRender this widget into the DOM\n*/\nWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nWidget.prototype.execute = function() {\n\tthis.makeChildWidgets();\n};\n\n/*\nSet the value of a context variable\nname: name of the variable\nvalue: value of the variable\nparams: array of {name:, default:} for each parameter\nisMacroDefinition: true if the variable is set via a \\define macro pragma (and hence should have variable substitution performed)\n*/\nWidget.prototype.setVariable = function(name,value,params,isMacroDefinition) {\n\tthis.variables[name] = {value: value, params: params, isMacroDefinition: !!isMacroDefinition};\n};\n\n/*\nGet the prevailing value of a context variable\nname: name of variable\noptions: see below\nOptions include\nparams: array of {name:, value:} for each parameter\ndefaultValue: default value if the variable is not defined\n\nReturns an object with the following fields:\n\nparams: array of {name:,value:} of parameters passed to wikitext variables\ntext: text of variable, with parameters properly substituted\n*/\nWidget.prototype.getVariableInfo = function(name,options) {\n\toptions = options || {};\n\tvar actualParams = options.params || [],\n\t\tparentWidget = this.parentWidget;\n\t// Check for the variable defined in the parent widget (or an ancestor in the prototype chain)\n\tif(parentWidget &amp;&amp; name in parentWidget.variables) {\n\t\tvar variable = parentWidget.variables[name],\n\t\t\toriginalValue = variable.value,\n\t\t\tvalue = originalValue,\n\t\t\tparams = this.resolveVariableParameters(variable.params,actualParams);\n\t\t// Substitute any parameters specified in the definition\n\t\t$tw.utils.each(params,function(param) {\n\t\t\tvalue = $tw.utils.replaceString(value,new RegExp(\&quot;\\\\$\&quot; + $tw.utils.escapeRegExp(param.name) + \&quot;\\\\$\&quot;,\&quot;mg\&quot;),param.value);\n\t\t});\n\t\t// Only substitute variable references if this variable was defined with the \\define pragma\n\t\tif(variable.isMacroDefinition) {\n\t\t\tvalue = this.substituteVariableReferences(value);\t\t\t\n\t\t}\n\t\treturn {\n\t\t\ttext: value,\n\t\t\tparams: params,\n\t\t\tsrcVariable: variable,\n\t\t\tisCacheable: originalValue === value\n\t\t};\n\t}\n\t// If the variable doesn't exist in the parent widget then look for a macro module\n\treturn {\n\t\ttext: this.evaluateMacroModule(name,actualParams,options.defaultValue)\n\t};\n};\n\n/*\nSimplified version of getVariableInfo() that just returns the text\n*/\nWidget.prototype.getVariable = function(name,options) {\n\treturn this.getVariableInfo(name,options).text;\n};\n\nWidget.prototype.resolveVariableParameters = function(formalParams,actualParams) {\n\tformalParams = formalParams || [];\n\tactualParams = actualParams || [];\n\tvar nextAnonParameter = 0, // Next candidate anonymous parameter in macro call\n\t\tparamInfo, paramValue,\n\t\tresults = [];\n\t// Step through each of the parameters in the macro definition\n\tfor(var p=0; p&lt;formalParams.length; p++) {\n\t\t// Check if we've got a macro call parameter with the same name\n\t\tparamInfo = formalParams[p];\n\t\tparamValue = undefined;\n\t\tfor(var m=0; m&lt;actualParams.length; m++) {\n\t\t\tif(actualParams[m].name === paramInfo.name) {\n\t\t\t\tparamValue = actualParams[m].value;\n\t\t\t}\n\t\t}\n\t\t// If not, use the next available anonymous macro call parameter\n\t\twhile(nextAnonParameter &lt; actualParams.length &amp;&amp; actualParams[nextAnonParameter].name) {\n\t\t\tnextAnonParameter++;\n\t\t}\n\t\tif(paramValue === undefined &amp;&amp; nextAnonParameter &lt; actualParams.length) {\n\t\t\tparamValue = actualParams[nextAnonParameter++].value;\n\t\t}\n\t\t// If we've still not got a value, use the default, if any\n\t\tparamValue = paramValue || paramInfo[\&quot;default\&quot;] || \&quot;\&quot;;\n\t\t// Store the parameter name and value\n\t\tresults.push({name: paramInfo.name, value: paramValue});\n\t}\n\treturn results;\n};\n\nWidget.prototype.substituteVariableReferences = function(text) {\n\tvar self = this;\n\treturn (text || \&quot;\&quot;).replace(/\\$\\(([^\\)\\$]+)\\)\\$/g,function(match,p1,offset,string) {\n\t\treturn self.getVariable(p1,{defaultValue: \&quot;\&quot;});\n\t});\n};\n\nWidget.prototype.evaluateMacroModule = function(name,actualParams,defaultValue) {\n\tif($tw.utils.hop($tw.macros,name)) {\n\t\tvar macro = $tw.macros[name],\n\t\t\targs = [];\n\t\tif(macro.params.length &gt; 0) {\n\t\t\tvar nextAnonParameter = 0, // Next candidate anonymous parameter in macro call\n\t\t\t\tparamInfo, paramValue;\n\t\t\t// Step through each of the parameters in the macro definition\n\t\t\tfor(var p=0; p&lt;macro.params.length; p++) {\n\t\t\t\t// Check if we've got a macro call parameter with the same name\n\t\t\t\tparamInfo = macro.params[p];\n\t\t\t\tparamValue = undefined;\n\t\t\t\tfor(var m=0; m&lt;actualParams.length; m++) {\n\t\t\t\t\tif(actualParams[m].name === paramInfo.name) {\n\t\t\t\t\t\tparamValue = actualParams[m].value;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If not, use the next available anonymous macro call parameter\n\t\t\t\twhile(nextAnonParameter &lt; actualParams.length &amp;&amp; actualParams[nextAnonParameter].name) {\n\t\t\t\t\tnextAnonParameter++;\n\t\t\t\t}\n\t\t\t\tif(paramValue === undefined &amp;&amp; nextAnonParameter &lt; actualParams.length) {\n\t\t\t\t\tparamValue = actualParams[nextAnonParameter++].value;\n\t\t\t\t}\n\t\t\t\t// If we've still not got a value, use the default, if any\n\t\t\t\tparamValue = paramValue || paramInfo[\&quot;default\&quot;] || \&quot;\&quot;;\n\t\t\t\t// Save the parameter\n\t\t\t\targs.push(paramValue);\n\t\t\t}\n\t\t}\n\t\telse for(var i=0; i&lt;actualParams.length; ++i) {\n\t\t\targs.push(actualParams[i].value);\n\t\t}\n\t\treturn (macro.run.apply(this,args) || \&quot;\&quot;).toString();\n\t} else {\n\t\treturn defaultValue;\n\t}\n};\n\n/*\nCheck whether a given context variable value exists in the parent chain\n*/\nWidget.prototype.hasVariable = function(name,value) {\n\tvar node = this;\n\twhile(node) {\n\t\tif($tw.utils.hop(node.variables,name) &amp;&amp; node.variables[name].value === value) {\n\t\t\treturn true;\n\t\t}\n\t\tnode = node.parentWidget;\n\t}\n\treturn false;\n};\n\n/*\nConstruct a qualifying string based on a hash of concatenating the values of a given variable in the parent chain\n*/\nWidget.prototype.getStateQualifier = function(name) {\n\tthis.qualifiers = this.qualifiers || Object.create(null);\n\tname = name || \&quot;transclusion\&quot;;\n\tif(this.qualifiers[name]) {\n\t\treturn this.qualifiers[name];\n\t} else {\n\t\tvar output = [],\n\t\t\tnode = this;\n\t\twhile(node &amp;&amp; node.parentWidget) {\n\t\t\tif($tw.utils.hop(node.parentWidget.variables,name)) {\n\t\t\t\toutput.push(node.getVariable(name));\n\t\t\t}\n\t\t\tnode = node.parentWidget;\n\t\t}\n\t\tvar value = $tw.utils.hashString(output.join(\&quot;\&quot;));\n\t\tthis.qualifiers[name] = value;\n\t\treturn value;\n\t}\n};\n\n/*\nCompute the current values of the attributes of the widget. Returns a hashmap of the names of the attributes that have changed\n*/\nWidget.prototype.computeAttributes = function() {\n\tvar changedAttributes = {},\n\t\tself = this,\n\t\tvalue;\n\t$tw.utils.each(this.parseTreeNode.attributes,function(attribute,name) {\n\t\tif(attribute.type === \&quot;filtered\&quot;) {\n\t\t\tvalue = self.wiki.filterTiddlers(attribute.filter,self)[0] || \&quot;\&quot;;\n\t\t} else if(attribute.type === \&quot;indirect\&quot;) {\n\t\t\tvalue = self.wiki.getTextReference(attribute.textReference,\&quot;\&quot;,self.getVariable(\&quot;currentTiddler\&quot;));\n\t\t} else if(attribute.type === \&quot;macro\&quot;) {\n\t\t\tvalue = self.getVariable(attribute.value.name,{params: attribute.value.params});\n\t\t} else { // String attribute\n\t\t\tvalue = attribute.value;\n\t\t}\n\t\t// Check whether the attribute has changed\n\t\tif(self.attributes[name] !== value) {\n\t\t\tself.attributes[name] = value;\n\t\t\tchangedAttributes[name] = true;\n\t\t}\n\t});\n\treturn changedAttributes;\n};\n\n/*\nCheck for the presence of an attribute\n*/\nWidget.prototype.hasAttribute = function(name) {\n\treturn $tw.utils.hop(this.attributes,name);\n};\n\n/*\nGet the value of an attribute\n*/\nWidget.prototype.getAttribute = function(name,defaultText) {\n\tif($tw.utils.hop(this.attributes,name)) {\n\t\treturn this.attributes[name];\n\t} else {\n\t\treturn defaultText;\n\t}\n};\n\n/*\nAssign the computed attributes of the widget to a domNode\noptions include:\nexcludeEventAttributes: ignores attributes whose name begins with \&quot;on\&quot;\n*/\nWidget.prototype.assignAttributes = function(domNode,options) {\n\toptions = options || {};\n\tvar self = this;\n\t$tw.utils.each(this.attributes,function(v,a) {\n\t\t// Check exclusions\n\t\tif(options.excludeEventAttributes &amp;&amp; a.substr(0,2) === \&quot;on\&quot;) {\n\t\t\tv = undefined;\n\t\t}\n\t\tif(v !== undefined) {\n\t\t\tvar b = a.split(\&quot;:\&quot;);\n\t\t\t// Setting certain attributes can cause a DOM error (eg xmlns on the svg element)\n\t\t\ttry {\n\t\t\t\tif (b.length == 2 &amp;&amp; b[0] == \&quot;xlink\&quot;){\n\t\t\t\t\tdomNode.setAttributeNS(\&quot;http://www.w3.org/1999/xlink\&quot;,b[1],v);\n\t\t\t\t} else {\n\t\t\t\t\tdomNode.setAttributeNS(null,a,v);\n\t\t\t\t}\n\t\t\t} catch(e) {\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\nMake child widgets correspondng to specified parseTreeNodes\n*/\nWidget.prototype.makeChildWidgets = function(parseTreeNodes) {\n\tthis.children = [];\n\tvar self = this;\n\t$tw.utils.each(parseTreeNodes || (this.parseTreeNode &amp;&amp; this.parseTreeNode.children),function(childNode) {\n\t\tself.children.push(self.makeChildWidget(childNode));\n\t});\n};\n\n/*\nConstruct the widget object for a parse tree node\n*/\nWidget.prototype.makeChildWidget = function(parseTreeNode) {\n\tvar WidgetClass = this.widgetClasses[parseTreeNode.type];\n\tif(!WidgetClass) {\n\t\tWidgetClass = this.widgetClasses.text;\n\t\tparseTreeNode = {type: \&quot;text\&quot;, text: \&quot;Undefined widget '\&quot; + parseTreeNode.type + \&quot;'\&quot;};\n\t}\n\treturn new WidgetClass(parseTreeNode,{\n\t\twiki: this.wiki,\n\t\tvariables: {},\n\t\tparentWidget: this,\n\t\tdocument: this.document\n\t});\n};\n\n/*\nGet the next sibling of this widget\n*/\nWidget.prototype.nextSibling = function() {\n\tif(this.parentWidget) {\n\t\tvar index = this.parentWidget.children.indexOf(this);\n\t\tif(index !== -1 &amp;&amp; index &lt; this.parentWidget.children.length-1) {\n\t\t\treturn this.parentWidget.children[index+1];\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nGet the previous sibling of this widget\n*/\nWidget.prototype.previousSibling = function() {\n\tif(this.parentWidget) {\n\t\tvar index = this.parentWidget.children.indexOf(this);\n\t\tif(index !== -1 &amp;&amp; index &gt; 0) {\n\t\t\treturn this.parentWidget.children[index-1];\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nRender the children of this widget into the DOM\n*/\nWidget.prototype.renderChildren = function(parent,nextSibling) {\n\tvar children = this.children;\n\tfor(var i = 0; i &lt; children.length; i++) {\n\t\tchildren[i].render(parent,nextSibling);\n\t};\n};\n\n/*\nAdd a list of event listeners from an array [{type:,handler:},...]\n*/\nWidget.prototype.addEventListeners = function(listeners) {\n\tvar self = this;\n\t$tw.utils.each(listeners,function(listenerInfo) {\n\t\tself.addEventListener(listenerInfo.type,listenerInfo.handler);\n\t});\n};\n\n/*\nAdd an event listener\n*/\nWidget.prototype.addEventListener = function(type,handler) {\n\tvar self = this;\n\tif(typeof handler === \&quot;string\&quot;) { // The handler is a method name on this widget\n\t\tthis.eventListeners[type] = function(event) {\n\t\t\treturn self[handler].call(self,event);\n\t\t};\n\t} else { // The handler is a function\n\t\tthis.eventListeners[type] = function(event) {\n\t\t\treturn handler.call(self,event);\n\t\t};\n\t}\n};\n\n/*\nDispatch an event to a widget. If the widget doesn't handle the event then it is also dispatched to the parent widget\n*/\nWidget.prototype.dispatchEvent = function(event) {\n\tevent.widget = event.widget || this;\n\t// Dispatch the event if this widget handles it\n\tvar listener = this.eventListeners[event.type];\n\tif(listener) {\n\t\t// Don't propagate the event if the listener returned false\n\t\tif(!listener(event)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Dispatch the event to the parent widget\n\tif(this.parentWidget) {\n\t\treturn this.parentWidget.dispatchEvent(event);\n\t}\n\treturn true;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nRebuild a previously rendered widget\n*/\nWidget.prototype.refreshSelf = function() {\n\tvar nextSibling = this.findNextSiblingDomNode();\n\tthis.removeChildDomNodes();\n\tthis.render(this.parentDomNode,nextSibling);\n};\n\n/*\nRefresh all the children of a widget\n*/\nWidget.prototype.refreshChildren = function(changedTiddlers) {\n\tvar children = this.children,\n\t\trefreshed = false;\n\tfor (var i = 0; i &lt; children.length; i++) {\n\t\trefreshed = children[i].refresh(changedTiddlers) || refreshed;\n\t}\n\treturn refreshed;\n};\n\n/*\nFind the next sibling in the DOM to this widget. This is done by scanning the widget tree through all next siblings and their descendents that share the same parent DOM node\n*/\nWidget.prototype.findNextSiblingDomNode = function(startIndex) {\n\t// Refer to this widget by its index within its parents children\n\tvar parent = this.parentWidget,\n\t\tindex = startIndex !== undefined ? startIndex : parent.children.indexOf(this);\nif(index === -1) {\n\tthrow \&quot;node not found in parents children\&quot;;\n}\n\t// Look for a DOM node in the later siblings\n\twhile(++index &lt; parent.children.length) {\n\t\tvar domNode = parent.children[index].findFirstDomNode();\n\t\tif(domNode) {\n\t\t\treturn domNode;\n\t\t}\n\t}\n\t// Go back and look for later siblings of our parent if it has the same parent dom node\n\tvar grandParent = parent.parentWidget;\n\tif(grandParent &amp;&amp; parent.parentDomNode === this.parentDomNode) {\n\t\tindex = grandParent.children.indexOf(parent);\n\t\tif(index !== -1) {\n\t\t\treturn parent.findNextSiblingDomNode(index);\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nFind the first DOM node generated by a widget or its children\n*/\nWidget.prototype.findFirstDomNode = function() {\n\t// Return the first dom node of this widget, if we've got one\n\tif(this.domNodes.length &gt; 0) {\n\t\treturn this.domNodes[0];\n\t}\n\t// Otherwise, recursively call our children\n\tfor(var t=0; t&lt;this.children.length; t++) {\n\t\tvar domNode = this.children[t].findFirstDomNode();\n\t\tif(domNode) {\n\t\t\treturn domNode;\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nRemove any DOM nodes created by this widget or its children\n*/\nWidget.prototype.removeChildDomNodes = function() {\n\t// If this widget has directly created DOM nodes, delete them and exit. This assumes that any child widgets are contained within the created DOM nodes, which would normally be the case\n\tif(this.domNodes.length &gt; 0) {\n\t\t$tw.utils.each(this.domNodes,function(domNode) {\n\t\t\tdomNode.parentNode.removeChild(domNode);\n\t\t});\n\t\tthis.domNodes = [];\n\t} else {\n\t\t// Otherwise, ask the child widgets to delete their DOM nodes\n\t\t$tw.utils.each(this.children,function(childWidget) {\n\t\t\tchildWidget.removeChildDomNodes();\n\t\t});\n\t}\n};\n\n/*\nInvoke the action widgets that are descendents of the current widget.\n*/\nWidget.prototype.invokeActions = function(triggeringWidget,event) {\n\tvar handled = false;\n\t// For each child widget\n\tfor(var t=0; t&lt;this.children.length; t++) {\n\t\tvar child = this.children[t];\n\t\t// Invoke the child if it is an action widget\n\t\tif(child.invokeAction) {\n\t\t\tchild.refreshSelf();\n\t\t\tif(child.invokeAction(triggeringWidget,event)) {\n\t\t\t\thandled = true;\n\t\t\t}\n\t\t}\n\t\t// Propagate through through the child if it permits it\n\t\tif(child.allowActionPropagation() &amp;&amp; child.invokeActions(triggeringWidget,event)) {\n\t\t\thandled = true;\n\t\t}\n\t}\n\treturn handled;\n};\n\n/*\nInvoke the action widgets defined in a string\n*/\nWidget.prototype.invokeActionString = function(actions,triggeringWidget,event,variables) {\n\tactions = actions || \&quot;\&quot;;\n\tvar parser = this.wiki.parseText(\&quot;text/vnd.tiddlywiki\&quot;,actions,{\n\t\t\tparentWidget: this,\n\t\t\tdocument: this.document\n\t\t}),\n\t\twidgetNode = this.wiki.makeWidget(parser,{\n\t\t\tparentWidget: this,\n\t\t\tdocument: this.document,\n\t\t\tvariables: variables\n\t\t});\n\tvar container = this.document.createElement(\&quot;div\&quot;);\n\twidgetNode.render(container,null);\n\treturn widgetNode.invokeActions(this,event);\n};\n\n/*\nExecute action tiddlers by tag\n*/\nWidget.prototype.invokeActionsByTag = function(tag,event,variables) {\n\tvar self = this;\n\t$tw.utils.each(self.wiki.filterTiddlers(\&quot;[all[shadows+tiddlers]tag[\&quot; + tag + \&quot;]!has[draft.of]]\&quot;),function(title) {\n\t\tself.invokeActionString(self.wiki.getTiddlerText(title),self,event,variables);\n\t});\n};\n\nWidget.prototype.allowActionPropagation = function() {\n\treturn true;\n};\n\nexports.widget = Widget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/widgets/wikify.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/widgets/wikify.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/widgets/wikify.js\ntype: application/javascript\nmodule-type: widget\n\nWidget to wikify text into a variable\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar WikifyWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nWikifyWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nWikifyWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nWikifyWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.wikifyName = this.getAttribute(\&quot;name\&quot;);\n\tthis.wikifyText = this.getAttribute(\&quot;text\&quot;);\n\tthis.wikifyType = this.getAttribute(\&quot;type\&quot;);\n\tthis.wikifyMode = this.getAttribute(\&quot;mode\&quot;,\&quot;block\&quot;);\n\tthis.wikifyOutput = this.getAttribute(\&quot;output\&quot;,\&quot;text\&quot;);\n\t// Create the parse tree\n\tthis.wikifyParser = this.wiki.parseText(this.wikifyType,this.wikifyText,{\n\t\t\tparseAsInline: this.wikifyMode === \&quot;inline\&quot;\n\t\t});\n\t// Create the widget tree \n\tthis.wikifyWidgetNode = this.wiki.makeWidget(this.wikifyParser,{\n\t\t\tdocument: $tw.fakeDocument,\n\t\t\tparentWidget: this\n\t\t});\n\t// Render the widget tree to the container\n\tthis.wikifyContainer = $tw.fakeDocument.createElement(\&quot;div\&quot;);\n\tthis.wikifyWidgetNode.render(this.wikifyContainer,null);\n\tthis.wikifyResult = this.getResult();\n\t// Set context variable\n\tthis.setVariable(this.wikifyName,this.wikifyResult);\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nReturn the result string\n*/\nWikifyWidget.prototype.getResult = function() {\n\tvar result;\n\tswitch(this.wikifyOutput) {\n\t\tcase \&quot;text\&quot;:\n\t\t\tresult = this.wikifyContainer.textContent;\n\t\t\tbreak;\n\t\tcase \&quot;formattedtext\&quot;:\n\t\t\tresult = this.wikifyContainer.formattedTextContent;\n\t\t\tbreak;\n\t\tcase \&quot;html\&quot;:\n\t\t\tresult = this.wikifyContainer.innerHTML;\n\t\t\tbreak;\n\t\tcase \&quot;parsetree\&quot;:\n\t\t\tresult = JSON.stringify(this.wikifyParser.tree,0,$tw.config.preferences.jsonSpaces);\n\t\t\tbreak;\n\t\tcase \&quot;widgettree\&quot;:\n\t\t\tresult = JSON.stringify(this.getWidgetTree(),0,$tw.config.preferences.jsonSpaces);\n\t\t\tbreak;\n\t}\n\treturn result;\n};\n\n/*\nReturn a string of the widget tree\n*/\nWikifyWidget.prototype.getWidgetTree = function() {\n\tvar copyNode = function(widgetNode,resultNode) {\n\t\t\tvar type = widgetNode.parseTreeNode.type;\n\t\t\tresultNode.type = type;\n\t\t\tswitch(type) {\n\t\t\t\tcase \&quot;element\&quot;:\n\t\t\t\t\tresultNode.tag = widgetNode.parseTreeNode.tag;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \&quot;text\&quot;:\n\t\t\t\t\tresultNode.text = widgetNode.parseTreeNode.text;\n\t\t\t\t\tbreak;\t\n\t\t\t}\n\t\t\tif(Object.keys(widgetNode.attributes || {}).length &gt; 0) {\n\t\t\t\tresultNode.attributes = {};\n\t\t\t\t$tw.utils.each(widgetNode.attributes,function(attr,attrName) {\n\t\t\t\t\tresultNode.attributes[attrName] = widgetNode.getAttribute(attrName);\n\t\t\t\t});\n\t\t\t}\n\t\t\tif(Object.keys(widgetNode.children || {}).length &gt; 0) {\n\t\t\t\tresultNode.children = [];\n\t\t\t\t$tw.utils.each(widgetNode.children,function(widgetChildNode) {\n\t\t\t\t\tvar node = {};\n\t\t\t\t\tresultNode.children.push(node);\n\t\t\t\t\tcopyNode(widgetChildNode,node);\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tresults = {};\n\tcopyNode(this.wikifyWidgetNode,results);\n\treturn results;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nWikifyWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\t// Refresh ourselves entirely if any of our attributes have changed\n\tif(changedAttributes.name || changedAttributes.text || changedAttributes.type || changedAttributes.mode || changedAttributes.output) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\t// Refresh the widget tree\n\t\tif(this.wikifyWidgetNode.refresh(changedTiddlers)) {\n\t\t\t// Check if there was any change\n\t\t\tvar result = this.getResult();\n\t\t\tif(result !== this.wikifyResult) {\n\t\t\t\t// If so, save the change\n\t\t\t\tthis.wikifyResult = result;\n\t\t\t\tthis.setVariable(this.wikifyName,this.wikifyResult);\n\t\t\t\t// Refresh each of our child widgets\n\t\t\t\t$tw.utils.each(this.children,function(childWidget) {\n\t\t\t\t\tchildWidget.refreshSelf();\n\t\t\t\t});\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t// Just refresh the children\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.wikify = WikifyWidget;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/core/modules/wiki-bulkops.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/wiki-bulkops.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/wiki-bulkops.js\ntype: application/javascript\nmodule-type: wikimethod\n\nBulk tiddler operations such as rename.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nRename a tiddler, and relink any tags or lists that reference it.\n*/\nfunction renameTiddler(fromTitle,toTitle,options) {\n\tfromTitle = (fromTitle || \&quot;\&quot;).trim();\n\ttoTitle = (toTitle || \&quot;\&quot;).trim();\n\toptions = options || {};\n\tif(fromTitle &amp;&amp; toTitle &amp;&amp; fromTitle !== toTitle) {\n\t\t// Rename the tiddler itself\n\t\tvar oldTiddler = this.getTiddler(fromTitle),\n\t\t\tnewTiddler = new $tw.Tiddler(oldTiddler,{title: toTitle},this.getModificationFields());\n\t\tnewTiddler = $tw.hooks.invokeHook(\&quot;th-renaming-tiddler\&quot;,newTiddler,oldTiddler);\n\t\tthis.addTiddler(newTiddler);\n\t\tthis.deleteTiddler(fromTitle);\n\t\t// Rename any tags or lists that reference it\n\t\tthis.relinkTiddler(fromTitle,toTitle,options)\n\t}\n}\n\n/*\nRelink any tags or lists that reference a given tiddler\n*/\nfunction relinkTiddler(fromTitle,toTitle,options) {\n\tvar self = this;\n\tfromTitle = (fromTitle || \&quot;\&quot;).trim();\n\ttoTitle = (toTitle || \&quot;\&quot;).trim();\n\toptions = options || {};\n\tif(fromTitle &amp;&amp; toTitle &amp;&amp; fromTitle !== toTitle) {\n\t\tthis.each(function(tiddler,title) {\n\t\t\tvar type = tiddler.fields.type || \&quot;\&quot;;\n\t\t\t// Don't touch plugins or JavaScript modules\n\t\t\tif(!tiddler.fields[\&quot;plugin-type\&quot;] &amp;&amp; type !== \&quot;application/javascript\&quot;) {\n\t\t\t\tvar tags = tiddler.fields.tags ? tiddler.fields.tags.slice(0) : undefined,\n\t\t\t\t\tlist = tiddler.fields.list ? tiddler.fields.list.slice(0) : undefined,\n\t\t\t\t\tisModified = false;\n\t\t\t\tif(!options.dontRenameInTags) {\n\t\t\t\t\t// Rename tags\n\t\t\t\t\t$tw.utils.each(tags,function (title,index) {\n\t\t\t\t\t\tif(title === fromTitle) {\nconsole.log(\&quot;Renaming tag '\&quot; + tags[index] + \&quot;' to '\&quot; + toTitle + \&quot;' of tiddler '\&quot; + tiddler.fields.title + \&quot;'\&quot;);\n\t\t\t\t\t\t\ttags[index] = toTitle;\n\t\t\t\t\t\t\tisModified = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tif(!options.dontRenameInLists) {\n\t\t\t\t\t// Rename lists\n\t\t\t\t\t$tw.utils.each(list,function (title,index) {\n\t\t\t\t\t\tif(title === fromTitle) {\nconsole.log(\&quot;Renaming list item '\&quot; + list[index] + \&quot;' to '\&quot; + toTitle + \&quot;' of tiddler '\&quot; + tiddler.fields.title + \&quot;'\&quot;);\n\t\t\t\t\t\t\tlist[index] = toTitle;\n\t\t\t\t\t\t\tisModified = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tif(isModified) {\n\t\t\t\t\tvar newTiddler = new $tw.Tiddler(tiddler,{tags: tags, list: list},self.getModificationFields())\n\t\t\t\t\tnewTiddler = $tw.hooks.invokeHook(\&quot;th-relinking-tiddler\&quot;,newTiddler,tiddler);\n\t\t\t\t\tself.addTiddler(newTiddler);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n};\n\nexports.renameTiddler = renameTiddler;\nexports.relinkTiddler = relinkTiddler;\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikimethod&quot;
},
&quot;$:/core/modules/wiki.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/wiki.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/wiki.js\ntype: application/javascript\nmodule-type: wikimethod\n\nExtension methods for the $tw.Wiki object\n\nAdds the following properties to the wiki object:\n\n* `eventListeners` is a hashmap by type of arrays of listener functions\n* `changedTiddlers` is a hashmap describing changes to named tiddlers since wiki change events were last dispatched. Each entry is a hashmap containing two fields:\n\tmodified: true/false\n\tdeleted: true/false\n* `changeCount` is a hashmap by tiddler title containing a numerical index that starts at zero and is incremented each time a tiddler is created changed or deleted\n* `caches` is a hashmap by tiddler title containing a further hashmap of named cache objects. Caches are automatically cleared when a tiddler is modified or deleted\n* `globalCache` is a hashmap by cache name of cache objects that are cleared whenever any tiddler change occurs\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;);\n\nvar USER_NAME_TITLE = \&quot;$:/status/UserName\&quot;,\n\tTIMESTAMP_DISABLE_TITLE = \&quot;$:/config/TimestampDisable\&quot;;\n\n/*\nAdd available indexers to this wiki\n*/\nexports.addIndexersToWiki = function() {\n\tvar self = this;\n\t$tw.utils.each($tw.modules.applyMethods(\&quot;indexer\&quot;),function(Indexer,name) {\n\t\tself.addIndexer(new Indexer(self),name);\n\t});\n};\n\n/*\nGet the value of a text reference. Text references can have any of these forms:\n\t&lt;tiddlertitle&gt;\n\t&lt;tiddlertitle&gt;!!&lt;fieldname&gt;\n\t!!&lt;fieldname&gt; - specifies a field of the current tiddlers\n\t&lt;tiddlertitle&gt;##&lt;index&gt;\n*/\nexports.getTextReference = function(textRef,defaultText,currTiddlerTitle) {\n\tvar tr = $tw.utils.parseTextReference(textRef),\n\t\ttitle = tr.title || currTiddlerTitle;\n\tif(tr.field) {\n\t\tvar tiddler = this.getTiddler(title);\n\t\tif(tr.field === \&quot;title\&quot;) { // Special case so we can return the title of a non-existent tiddler\n\t\t\treturn title;\n\t\t} else if(tiddler &amp;&amp; $tw.utils.hop(tiddler.fields,tr.field)) {\n\t\t\treturn tiddler.getFieldString(tr.field);\n\t\t} else {\n\t\t\treturn defaultText;\n\t\t}\n\t} else if(tr.index) {\n\t\treturn this.extractTiddlerDataItem(title,tr.index,defaultText);\n\t} else {\n\t\treturn this.getTiddlerText(title,defaultText);\n\t}\n};\n\nexports.setTextReference = function(textRef,value,currTiddlerTitle) {\n\tvar tr = $tw.utils.parseTextReference(textRef),\n\t\ttitle = tr.title || currTiddlerTitle;\n\tthis.setText(title,tr.field,tr.index,value);\n};\n\nexports.setText = function(title,field,index,value,options) {\n\toptions = options || {};\n\tvar creationFields = options.suppressTimestamp ? {} : this.getCreationFields(),\n\t\tmodificationFields = options.suppressTimestamp ? {} : this.getModificationFields();\n\t// Check if it is a reference to a tiddler field\n\tif(index) {\n\t\tvar data = this.getTiddlerData(title,Object.create(null));\n\t\tif(value !== undefined) {\n\t\t\tdata[index] = value;\n\t\t} else {\n\t\t\tdelete data[index];\n\t\t}\n\t\tthis.setTiddlerData(title,data,modificationFields);\n\t} else {\n\t\tvar tiddler = this.getTiddler(title),\n\t\t\tfields = {title: title};\n\t\tfields[field || \&quot;text\&quot;] = value;\n\t\tthis.addTiddler(new $tw.Tiddler(creationFields,tiddler,fields,modificationFields));\n\t}\n};\n\nexports.deleteTextReference = function(textRef,currTiddlerTitle) {\n\tvar tr = $tw.utils.parseTextReference(textRef),\n\t\ttitle,tiddler,fields;\n\t// Check if it is a reference to a tiddler\n\tif(tr.title &amp;&amp; !tr.field) {\n\t\tthis.deleteTiddler(tr.title);\n\t// Else check for a field reference\n\t} else if(tr.field) {\n\t\ttitle = tr.title || currTiddlerTitle;\n\t\ttiddler = this.getTiddler(title);\n\t\tif(tiddler &amp;&amp; $tw.utils.hop(tiddler.fields,tr.field)) {\n\t\t\tfields = Object.create(null);\n\t\t\tfields[tr.field] = undefined;\n\t\t\tthis.addTiddler(new $tw.Tiddler(tiddler,fields,this.getModificationFields()));\n\t\t}\n\t}\n};\n\nexports.addEventListener = function(type,listener) {\n\tthis.eventListeners = this.eventListeners || {};\n\tthis.eventListeners[type] = this.eventListeners[type] || [];\n\tthis.eventListeners[type].push(listener);\t\n};\n\nexports.removeEventListener = function(type,listener) {\n\tvar listeners = this.eventListeners[type];\n\tif(listeners) {\n\t\tvar p = listeners.indexOf(listener);\n\t\tif(p !== -1) {\n\t\t\tlisteners.splice(p,1);\n\t\t}\n\t}\n};\n\nexports.dispatchEvent = function(type /*, args */) {\n\tvar args = Array.prototype.slice.call(arguments,1),\n\t\tlisteners = this.eventListeners[type];\n\tif(listeners) {\n\t\tfor(var p=0; p&lt;listeners.length; p++) {\n\t\t\tvar listener = listeners[p];\n\t\t\tlistener.apply(listener,args);\n\t\t}\n\t}\n};\n\n/*\nCauses a tiddler to be marked as changed, incrementing the change count, and triggers event handlers.\nThis method should be called after the changes it describes have been made to the wiki.tiddlers[] array.\n\ttitle: Title of tiddler\n\tisDeleted: defaults to false (meaning the tiddler has been created or modified),\n\t\ttrue if the tiddler has been deleted\n*/\nexports.enqueueTiddlerEvent = function(title,isDeleted) {\n\t// Record the touch in the list of changed tiddlers\n\tthis.changedTiddlers = this.changedTiddlers || Object.create(null);\n\tthis.changedTiddlers[title] = this.changedTiddlers[title] || Object.create(null);\n\tthis.changedTiddlers[title][isDeleted ? \&quot;deleted\&quot; : \&quot;modified\&quot;] = true;\n\t// Increment the change count\n\tthis.changeCount = this.changeCount || Object.create(null);\n\tif($tw.utils.hop(this.changeCount,title)) {\n\t\tthis.changeCount[title]++;\n\t} else {\n\t\tthis.changeCount[title] = 1;\n\t}\n\t// Trigger events\n\tthis.eventListeners = this.eventListeners || {};\n\tif(!this.eventsTriggered) {\n\t\tvar self = this;\n\t\t$tw.utils.nextTick(function() {\n\t\t\tvar changes = self.changedTiddlers;\n\t\t\tself.changedTiddlers = Object.create(null);\n\t\t\tself.eventsTriggered = false;\n\t\t\tif($tw.utils.count(changes) &gt; 0) {\n\t\t\t\tself.dispatchEvent(\&quot;change\&quot;,changes);\n\t\t\t}\n\t\t});\n\t\tthis.eventsTriggered = true;\n\t}\n};\n\nexports.getSizeOfTiddlerEventQueue = function() {\n\treturn $tw.utils.count(this.changedTiddlers);\n};\n\nexports.clearTiddlerEventQueue = function() {\n\tthis.changedTiddlers = Object.create(null);\n\tthis.changeCount = Object.create(null);\n};\n\nexports.getChangeCount = function(title) {\n\tthis.changeCount = this.changeCount || Object.create(null);\n\tif($tw.utils.hop(this.changeCount,title)) {\n\t\treturn this.changeCount[title];\n\t} else {\n\t\treturn 0;\n\t}\n};\n\n/*\nGenerate an unused title from the specified base\n*/\nexports.generateNewTitle = function(baseTitle,options) {\n\toptions = options || {};\n\tvar c = 0,\n\t\ttitle = baseTitle;\n\twhile(this.tiddlerExists(title) || this.isShadowTiddler(title) || this.findDraft(title)) {\n\t\ttitle = baseTitle + \n\t\t\t(options.prefix || \&quot; \&quot;) + \n\t\t\t(++c);\n\t}\n\treturn title;\n};\n\nexports.isSystemTiddler = function(title) {\n\treturn title &amp;&amp; title.indexOf(\&quot;$:/\&quot;) === 0;\n};\n\nexports.isTemporaryTiddler = function(title) {\n\treturn title &amp;&amp; title.indexOf(\&quot;$:/temp/\&quot;) === 0;\n};\n\nexports.isImageTiddler = function(title) {\n\tvar tiddler = this.getTiddler(title);\n\tif(tiddler) {\t\t\n\t\tvar contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \&quot;text/vnd.tiddlywiki\&quot;];\n\t\treturn !!contentTypeInfo &amp;&amp; contentTypeInfo.flags.indexOf(\&quot;image\&quot;) !== -1;\n\t} else {\n\t\treturn null;\n\t}\n};\n\nexports.isBinaryTiddler = function(title) {\n\tvar tiddler = this.getTiddler(title);\n\tif(tiddler) {\t\t\n\t\tvar contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \&quot;text/vnd.tiddlywiki\&quot;];\n\t\treturn !!contentTypeInfo &amp;&amp; contentTypeInfo.encoding === \&quot;base64\&quot;;\n\t} else {\n\t\treturn null;\n\t}\n};\n\n/*\nLike addTiddler() except it will silently reject any plugin tiddlers that are older than the currently loaded version. Returns true if the tiddler was imported\n*/\nexports.importTiddler = function(tiddler) {\n\tvar existingTiddler = this.getTiddler(tiddler.fields.title);\n\t// Check if we're dealing with a plugin\n\tif(tiddler &amp;&amp; tiddler.hasField(\&quot;plugin-type\&quot;) &amp;&amp; tiddler.hasField(\&quot;version\&quot;) &amp;&amp; existingTiddler &amp;&amp; existingTiddler.hasField(\&quot;plugin-type\&quot;) &amp;&amp; existingTiddler.hasField(\&quot;version\&quot;)) {\n\t\t// Reject the incoming plugin if it is older\n\t\tif(!$tw.utils.checkVersions(tiddler.fields.version,existingTiddler.fields.version)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Fall through to adding the tiddler\n\tthis.addTiddler(tiddler);\n\treturn true;\n};\n\n/*\nReturn a hashmap of the fields that should be set when a tiddler is created\n*/\nexports.getCreationFields = function() {\n\tif(this.getTiddlerText(TIMESTAMP_DISABLE_TITLE,\&quot;\&quot;).toLowerCase() !== \&quot;yes\&quot;) {\n\t\tvar fields = {\n\t\t\t\tcreated: new Date()\n\t\t\t},\n\t\t\tcreator = this.getTiddlerText(USER_NAME_TITLE);\n\t\tif(creator) {\n\t\t\tfields.creator = creator;\n\t\t}\n\t\treturn fields;\n\t} else {\n\t\treturn {};\n\t}\n};\n\n/*\nReturn a hashmap of the fields that should be set when a tiddler is modified\n*/\nexports.getModificationFields = function() {\n\tif(this.getTiddlerText(TIMESTAMP_DISABLE_TITLE,\&quot;\&quot;).toLowerCase() !== \&quot;yes\&quot;) {\n\t\tvar fields = Object.create(null),\n\t\t\tmodifier = this.getTiddlerText(USER_NAME_TITLE);\n\t\tfields.modified = new Date();\n\t\tif(modifier) {\n\t\t\tfields.modifier = modifier;\n\t\t}\n\t\treturn fields;\n\t} else {\n\t\treturn {};\n\t}\n};\n\n/*\nReturn a sorted array of tiddler titles. Options include:\nsortField: field to sort by\nexcludeTag: tag to exclude\nincludeSystem: whether to include system tiddlers (defaults to false)\n*/\nexports.getTiddlers = function(options) {\n\toptions = options || Object.create(null);\n\tvar self = this,\n\t\tsortField = options.sortField || \&quot;title\&quot;,\n\t\ttiddlers = [], t, titles = [];\n\tthis.each(function(tiddler,title) {\n\t\tif(options.includeSystem || !self.isSystemTiddler(title)) {\n\t\t\tif(!options.excludeTag || !tiddler.hasTag(options.excludeTag)) {\n\t\t\t\ttiddlers.push(tiddler);\n\t\t\t}\n\t\t}\n\t});\n\ttiddlers.sort(function(a,b) {\n\t\tvar aa = a.fields[sortField].toLowerCase() || \&quot;\&quot;,\n\t\t\tbb = b.fields[sortField].toLowerCase() || \&quot;\&quot;;\n\t\tif(aa &lt; bb) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif(aa &gt; bb) {\n\t\t\t\treturn 1;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t});\n\tfor(t=0; t&lt;tiddlers.length; t++) {\n\t\ttitles.push(tiddlers[t].fields.title);\n\t}\n\treturn titles;\n};\n\nexports.countTiddlers = function(excludeTag) {\n\tvar tiddlers = this.getTiddlers({excludeTag: excludeTag});\n\treturn $tw.utils.count(tiddlers);\n};\n\n/*\nReturns a function iterator(callback) that iterates through the specified titles, and invokes the callback with callback(tiddler,title)\n*/\nexports.makeTiddlerIterator = function(titles) {\n\tvar self = this;\n\tif(!$tw.utils.isArray(titles)) {\n\t\ttitles = Object.keys(titles);\n\t} else {\n\t\ttitles = titles.slice(0);\n\t}\n\treturn function(callback) {\n\t\ttitles.forEach(function(title) {\n\t\t\tcallback(self.getTiddler(title),title);\n\t\t});\n\t};\n};\n\n/*\nSort an array of tiddler titles by a specified field\n\ttitles: array of titles (sorted in place)\n\tsortField: name of field to sort by\n\tisDescending: true if the sort should be descending\n\tisCaseSensitive: true if the sort should consider upper and lower case letters to be different\n*/\nexports.sortTiddlers = function(titles,sortField,isDescending,isCaseSensitive,isNumeric,isAlphaNumeric) {\n\tvar self = this;\n\ttitles.sort(function(a,b) {\n\t\tvar x,y,\n\t\t\tcompareNumbers = function(x,y) {\n\t\t\t\tvar result = \n\t\t\t\t\tisNaN(x) &amp;&amp; !isNaN(y) ? (isDescending ? -1 : 1) :\n\t\t\t\t\t!isNaN(x) &amp;&amp; isNaN(y) ? (isDescending ? 1 : -1) :\n\t\t\t\t\t\t\t\t\t\t\t(isDescending ? y - x : x - y);\n\t\t\t\treturn result;\n\t\t\t};\n\t\tif(sortField !== \&quot;title\&quot;) {\n\t\t\tvar tiddlerA = self.getTiddler(a),\n\t\t\t\ttiddlerB = self.getTiddler(b);\n\t\t\tif(tiddlerA) {\n\t\t\t\ta = tiddlerA.fields[sortField] || \&quot;\&quot;;\n\t\t\t} else {\n\t\t\t\ta = \&quot;\&quot;;\n\t\t\t}\n\t\t\tif(tiddlerB) {\n\t\t\t\tb = tiddlerB.fields[sortField] || \&quot;\&quot;;\n\t\t\t} else {\n\t\t\t\tb = \&quot;\&quot;;\n\t\t\t}\n\t\t}\n\t\tx = Number(a);\n\t\ty = Number(b);\n\t\tif(isNumeric &amp;&amp; (!isNaN(x) || !isNaN(y))) {\n\t\t\treturn compareNumbers(x,y);\n\t\t} else if($tw.utils.isDate(a) &amp;&amp; $tw.utils.isDate(b)) {\n\t\t\treturn isDescending ? b - a : a - b;\n\t\t} else if(isAlphaNumeric) {\n\t\t\treturn isDescending ? b.localeCompare(a,undefined,{numeric: true,sensitivity: \&quot;base\&quot;}) : a.localeCompare(b,undefined,{numeric: true,sensitivity: \&quot;base\&quot;});\n\t\t} else {\n\t\t\ta = String(a);\n\t\t\tb = String(b);\n\t\t\tif(!isCaseSensitive) {\n\t\t\t\ta = a.toLowerCase();\n\t\t\t\tb = b.toLowerCase();\n\t\t\t}\n\t\t\treturn isDescending ? b.localeCompare(a) : a.localeCompare(b);\n\t\t}\n\t});\n};\n\n/*\nFor every tiddler invoke a callback(title,tiddler) with `this` set to the wiki object. Options include:\nsortField: field to sort by\nexcludeTag: tag to exclude\nincludeSystem: whether to include system tiddlers (defaults to false)\n*/\nexports.forEachTiddler = function(/* [options,]callback */) {\n\tvar arg = 0,\n\t\toptions = arguments.length &gt;= 2 ? arguments[arg++] : {},\n\t\tcallback = arguments[arg++],\n\t\ttitles = this.getTiddlers(options),\n\t\tt, tiddler;\n\tfor(t=0; t&lt;titles.length; t++) {\n\t\ttiddler = this.getTiddler(titles[t]);\n\t\tif(tiddler) {\n\t\t\tcallback.call(this,tiddler.fields.title,tiddler);\n\t\t}\n\t}\n};\n\n/*\nReturn an array of tiddler titles that are directly linked within the given parse tree\n */\nexports.extractLinks = function(parseTreeRoot) {\n\t// Count up the links\n\tvar links = [],\n\t\tcheckParseTree = function(parseTree) {\n\t\t\tfor(var t=0; t&lt;parseTree.length; t++) {\n\t\t\t\tvar parseTreeNode = parseTree[t];\n\t\t\t\tif(parseTreeNode.type === \&quot;link\&quot; &amp;&amp; parseTreeNode.attributes.to &amp;&amp; parseTreeNode.attributes.to.type === \&quot;string\&quot;) {\n\t\t\t\t\tvar value = parseTreeNode.attributes.to.value;\n\t\t\t\t\tif(links.indexOf(value) === -1) {\n\t\t\t\t\t\tlinks.push(value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(parseTreeNode.children) {\n\t\t\t\t\tcheckParseTree(parseTreeNode.children);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\tcheckParseTree(parseTreeRoot);\n\treturn links;\n};\n\n/*\nReturn an array of tiddler titles that are directly linked from the specified tiddler\n*/\nexports.getTiddlerLinks = function(title) {\n\tvar self = this;\n\t// We'll cache the links so they only get computed if the tiddler changes\n\treturn this.getCacheForTiddler(title,\&quot;links\&quot;,function() {\n\t\t// Parse the tiddler\n\t\tvar parser = self.parseTiddler(title);\n\t\tif(parser) {\n\t\t\treturn self.extractLinks(parser.tree);\n\t\t}\n\t\treturn [];\n\t});\n};\n\n/*\nReturn an array of tiddler titles that link to the specified tiddler\n*/\nexports.getTiddlerBacklinks = function(targetTitle) {\n\tvar self = this,\n\t\tbacklinksIndexer = this.getIndexer(\&quot;BacklinksIndexer\&quot;),\n\t\tbacklinks = backlinksIndexer &amp;&amp; backlinksIndexer.lookup(targetTitle);\n\n\tif(!backlinks) {\n\t\tbacklinks = [];\n\t\tthis.forEachTiddler(function(title,tiddler) {\n\t\t\tvar links = self.getTiddlerLinks(title);\n\t\t\tif(links.indexOf(targetTitle) !== -1) {\n\t\t\t\tbacklinks.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn backlinks;\n};\n\n/*\nReturn a hashmap of tiddler titles that are referenced but not defined. Each value is the number of times the missing tiddler is referenced\n*/\nexports.getMissingTitles = function() {\n\tvar self = this,\n\t\tmissing = [];\n// We should cache the missing tiddler list, even if we recreate it every time any tiddler is modified\n\tthis.forEachTiddler(function(title,tiddler) {\n\t\tvar links = self.getTiddlerLinks(title);\n\t\t$tw.utils.each(links,function(link) {\n\t\t\tif((!self.tiddlerExists(link) &amp;&amp; !self.isShadowTiddler(link)) &amp;&amp; missing.indexOf(link) === -1) {\n\t\t\t\tmissing.push(link);\n\t\t\t}\n\t\t});\n\t});\n\treturn missing;\n};\n\nexports.getOrphanTitles = function() {\n\tvar self = this,\n\t\torphans = this.getTiddlers();\n\tthis.forEachTiddler(function(title,tiddler) {\n\t\tvar links = self.getTiddlerLinks(title);\n\t\t$tw.utils.each(links,function(link) {\n\t\t\tvar p = orphans.indexOf(link);\n\t\t\tif(p !== -1) {\n\t\t\t\torphans.splice(p,1);\n\t\t\t}\n\t\t});\n\t});\n\treturn orphans; // Todo\n};\n\n/*\nRetrieves a list of the tiddler titles that are tagged with a given tag\n*/\nexports.getTiddlersWithTag = function(tag) {\n\t// Try to use the indexer\n\tvar self = this,\n\t\ttagIndexer = this.getIndexer(\&quot;TagIndexer\&quot;),\n\t\tresults = tagIndexer &amp;&amp; tagIndexer.subIndexers[3].lookup(tag);\n\tif(!results) {\n\t\t// If not available, perform a manual scan\n\t\tresults = this.getGlobalCache(\&quot;taglist-\&quot; + tag,function() {\n\t\t\tvar tagmap = self.getTagMap();\n\t\t\treturn self.sortByList(tagmap[tag],tag);\n\t\t});\n\t}\n\treturn results;\n};\n\n/*\nGet a hashmap by tag of arrays of tiddler titles\n*/\nexports.getTagMap = function() {\n\tvar self = this;\n\treturn this.getGlobalCache(\&quot;tagmap\&quot;,function() {\n\t\tvar tags = Object.create(null),\n\t\t\tstoreTags = function(tagArray,title) {\n\t\t\t\tif(tagArray) {\n\t\t\t\t\tfor(var index=0; index&lt;tagArray.length; index++) {\n\t\t\t\t\t\tvar tag = tagArray[index];\n\t\t\t\t\t\tif($tw.utils.hop(tags,tag)) {\n\t\t\t\t\t\t\ttags[tag].push(title);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttags[tag] = [title];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\ttitle, tiddler;\n\t\t// Collect up all the tags\n\t\tself.eachShadow(function(tiddler,title) {\n\t\t\tif(!self.tiddlerExists(title)) {\n\t\t\t\ttiddler = self.getTiddler(title);\n\t\t\t\tstoreTags(tiddler.fields.tags,title);\n\t\t\t}\n\t\t});\n\t\tself.each(function(tiddler,title) {\n\t\t\tstoreTags(tiddler.fields.tags,title);\n\t\t});\n\t\treturn tags;\n\t});\n};\n\n/*\nLookup a given tiddler and return a list of all the tiddlers that include it in the specified list field\n*/\nexports.findListingsOfTiddler = function(targetTitle,fieldName) {\n\tfieldName = fieldName || \&quot;list\&quot;;\n\tvar titles = [];\n\tthis.each(function(tiddler,title) {\n\t\tvar list = $tw.utils.parseStringArray(tiddler.fields[fieldName]);\n\t\tif(list &amp;&amp; list.indexOf(targetTitle) !== -1) {\n\t\t\ttitles.push(title);\n\t\t}\n\t});\n\treturn titles;\n};\n\n/*\nSorts an array of tiddler titles according to an ordered list\n*/\nexports.sortByList = function(array,listTitle) {\n\tvar self = this,\n\t\treplacedTitles = Object.create(null);\n\t// Given a title, this function will place it in the correct location\n\t// within titles.\n\tfunction moveItemInList(title) {\n\t\tif(!$tw.utils.hop(replacedTitles, title)) {\n\t\t\treplacedTitles[title] = true;\n\t\t\tvar newPos = -1,\n\t\t\t\ttiddler = self.getTiddler(title);\n\t\t\tif(tiddler) {\n\t\t\t\tvar beforeTitle = tiddler.fields[\&quot;list-before\&quot;],\n\t\t\t\t\tafterTitle = tiddler.fields[\&quot;list-after\&quot;];\n\t\t\t\tif(beforeTitle === \&quot;\&quot;) {\n\t\t\t\t\tnewPos = 0;\n\t\t\t\t} else if(afterTitle === \&quot;\&quot;) {\n\t\t\t\t\tnewPos = titles.length;\n\t\t\t\t} else if(beforeTitle) {\n\t\t\t\t\t// if this title is placed relative\n\t\t\t\t\t// to another title, make sure that\n\t\t\t\t\t// title is placed before we place\n\t\t\t\t\t// this one.\n\t\t\t\t\tmoveItemInList(beforeTitle);\n\t\t\t\t\tnewPos = titles.indexOf(beforeTitle);\n\t\t\t\t} else if(afterTitle) {\n\t\t\t\t\t// Same deal\n\t\t\t\t\tmoveItemInList(afterTitle);\n\t\t\t\t\tnewPos = titles.indexOf(afterTitle);\n\t\t\t\t\tif(newPos &gt;= 0) {\n\t\t\t\t\t\t++newPos;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If a new position is specified, let's move it\n\t\t\t\tif (newPos !== -1) {\n\t\t\t\t\t// get its current Pos, and make sure\n\t\t\t\t\t// sure that it's _actually_ in the list\n\t\t\t\t\t// and that it would _actually_ move\n\t\t\t\t\t// (#4275) We don't bother calling\n\t\t\t\t\t// indexOf unless we have a new\n\t\t\t\t\t// position to work with\n\t\t\t\t\tvar currPos = titles.indexOf(title);\n\t\t\t\t\tif(currPos &gt;= 0 &amp;&amp; newPos !== currPos) {\n\t\t\t\t\t\t// move it!\n\t\t\t\t\t\ttitles.splice(currPos,1);\n\t\t\t\t\t\tif(newPos &gt;= currPos) {\n\t\t\t\t\t\t\tnewPos--;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttitles.splice(newPos,0,title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tvar list = this.getTiddlerList(listTitle);\n\tif(!array || array.length === 0) {\n\t\treturn [];\n\t} else {\n\t\tvar titles = [], t, title;\n\t\t// First place any entries that are present in the list\n\t\tfor(t=0; t&lt;list.length; t++) {\n\t\t\ttitle = list[t];\n\t\t\tif(array.indexOf(title) !== -1) {\n\t\t\t\ttitles.push(title);\n\t\t\t}\n\t\t}\n\t\t// Then place any remaining entries\n\t\tfor(t=0; t&lt;array.length; t++) {\n\t\t\ttitle = array[t];\n\t\t\tif(list.indexOf(title) === -1) {\n\t\t\t\ttitles.push(title);\n\t\t\t}\n\t\t}\n\t\t// Finally obey the list-before and list-after fields of each tiddler in turn\n\t\tvar sortedTitles = titles.slice(0);\n\t\tfor(t=0; t&lt;sortedTitles.length; t++) {\n\t\t\ttitle = sortedTitles[t];\n\t\t\tmoveItemInList(title);\n\t\t}\n\t\treturn titles;\n\t}\n};\n\nexports.getSubTiddler = function(title,subTiddlerTitle) {\n\tvar bundleInfo = this.getPluginInfo(title) || this.getTiddlerDataCached(title);\n\tif(bundleInfo &amp;&amp; bundleInfo.tiddlers) {\n\t\tvar subTiddler = bundleInfo.tiddlers[subTiddlerTitle];\n\t\tif(subTiddler) {\n\t\t\treturn new $tw.Tiddler(subTiddler);\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nRetrieve a tiddler as a JSON string of the fields\n*/\nexports.getTiddlerAsJson = function(title) {\n\tvar tiddler = this.getTiddler(title);\n\tif(tiddler) {\n\t\tvar fields = Object.create(null);\n\t\t$tw.utils.each(tiddler.fields,function(value,name) {\n\t\t\tfields[name] = tiddler.getFieldString(name);\n\t\t});\n\t\treturn JSON.stringify(fields);\n\t} else {\n\t\treturn JSON.stringify({title: title});\n\t}\n};\n\nexports.getTiddlersAsJson = function(filter,spaces) {\n\tvar tiddlers = this.filterTiddlers(filter),\n\t\tspaces = (spaces === undefined) ? $tw.config.preferences.jsonSpaces : spaces,\n\t\tdata = [];\n\tfor(var t=0;t&lt;tiddlers.length; t++) {\n\t\tvar tiddler = this.getTiddler(tiddlers[t]);\n\t\tif(tiddler) {\n\t\t\tvar fields = new Object();\n\t\t\tfor(var field in tiddler.fields) {\n\t\t\t\tfields[field] = tiddler.getFieldString(field);\n\t\t\t}\n\t\t\tdata.push(fields);\n\t\t}\n\t}\n\treturn JSON.stringify(data,null,spaces);\n};\n\n/*\nGet the content of a tiddler as a JavaScript object. How this is done depends on the type of the tiddler:\n\napplication/json: the tiddler JSON is parsed into an object\napplication/x-tiddler-dictionary: the tiddler is parsed as sequence of name:value pairs\n\nOther types currently just return null.\n\ntitleOrTiddler: string tiddler title or a tiddler object\ndefaultData: default data to be returned if the tiddler is missing or doesn't contain data\n\nNote that the same value is returned for repeated calls for the same tiddler data. The value is frozen to prevent modification; otherwise modifications would be visible to all callers\n*/\nexports.getTiddlerDataCached = function(titleOrTiddler,defaultData) {\n\tvar self = this,\n\t\ttiddler = titleOrTiddler;\n\tif(!(tiddler instanceof $tw.Tiddler)) {\n\t\ttiddler = this.getTiddler(tiddler);\t\n\t}\n\tif(tiddler) {\n\t\treturn this.getCacheForTiddler(tiddler.fields.title,\&quot;data\&quot;,function() {\n\t\t\t// Return the frozen value\n\t\t\tvar value = self.getTiddlerData(tiddler.fields.title,undefined);\n\t\t\t$tw.utils.deepFreeze(value);\n\t\t\treturn value;\n\t\t}) || defaultData;\n\t} else {\n\t\treturn defaultData;\n\t}\n};\n\n/*\nAlternative, uncached version of getTiddlerDataCached(). The return value can be mutated freely and reused\n*/\nexports.getTiddlerData = function(titleOrTiddler,defaultData) {\n\tvar tiddler = titleOrTiddler,\n\t\tdata;\n\tif(!(tiddler instanceof $tw.Tiddler)) {\n\t\ttiddler = this.getTiddler(tiddler);\t\n\t}\n\tif(tiddler &amp;&amp; tiddler.fields.text) {\n\t\tswitch(tiddler.fields.type) {\n\t\t\tcase \&quot;application/json\&quot;:\n\t\t\t\t// JSON tiddler\n\t\t\t\ttry {\n\t\t\t\t\tdata = JSON.parse(tiddler.fields.text);\n\t\t\t\t} catch(ex) {\n\t\t\t\t\treturn defaultData;\n\t\t\t\t}\n\t\t\t\treturn data;\n\t\t\tcase \&quot;application/x-tiddler-dictionary\&quot;:\n\t\t\t\treturn $tw.utils.parseFields(tiddler.fields.text);\n\t\t}\n\t}\n\treturn defaultData;\n};\n\n/*\nExtract an indexed field from within a data tiddler\n*/\nexports.extractTiddlerDataItem = function(titleOrTiddler,index,defaultText) {\n\tvar data = this.getTiddlerDataCached(titleOrTiddler,Object.create(null)),\n\t\ttext;\n\tif(data &amp;&amp; $tw.utils.hop(data,index)) {\n\t\ttext = data[index];\n\t}\n\tif(typeof text === \&quot;string\&quot; || typeof text === \&quot;number\&quot;) {\n\t\treturn text.toString();\n\t} else {\n\t\treturn defaultText;\n\t}\n};\n\n/*\nSet a tiddlers content to a JavaScript object. Currently this is done by setting the tiddler's type to \&quot;application/json\&quot; and setting the text to the JSON text of the data.\ntitle: title of tiddler\ndata: object that can be serialised to JSON\nfields: optional hashmap of additional tiddler fields to be set\n*/\nexports.setTiddlerData = function(title,data,fields) {\n\tvar existingTiddler = this.getTiddler(title),\n\t\tnewFields = {\n\t\t\ttitle: title\n\t};\n\tif(existingTiddler &amp;&amp; existingTiddler.fields.type === \&quot;application/x-tiddler-dictionary\&quot;) {\n\t\tnewFields.text = $tw.utils.makeTiddlerDictionary(data);\n\t} else {\n\t\tnewFields.type = \&quot;application/json\&quot;;\n\t\tnewFields.text = JSON.stringify(data,null,$tw.config.preferences.jsonSpaces);\n\t}\n\tthis.addTiddler(new $tw.Tiddler(this.getCreationFields(),existingTiddler,fields,newFields,this.getModificationFields()));\n};\n\n/*\nReturn the content of a tiddler as an array containing each line\n*/\nexports.getTiddlerList = function(title,field,index) {\n\tif(index) {\n\t\treturn $tw.utils.parseStringArray(this.extractTiddlerDataItem(title,index,\&quot;\&quot;));\n\t}\n\tfield = field || \&quot;list\&quot;;\n\tvar tiddler = this.getTiddler(title);\n\tif(tiddler) {\n\t\treturn ($tw.utils.parseStringArray(tiddler.fields[field]) || []).slice(0);\n\t}\n\treturn [];\n};\n\n// Return a named global cache object. Global cache objects are cleared whenever a tiddler change occurs\nexports.getGlobalCache = function(cacheName,initializer) {\n\tthis.globalCache = this.globalCache || Object.create(null);\n\tif($tw.utils.hop(this.globalCache,cacheName)) {\n\t\treturn this.globalCache[cacheName];\n\t} else {\n\t\tthis.globalCache[cacheName] = initializer();\n\t\treturn this.globalCache[cacheName];\n\t}\n};\n\nexports.clearGlobalCache = function() {\n\tthis.globalCache = Object.create(null);\n};\n\n// Return the named cache object for a tiddler. If the cache doesn't exist then the initializer function is invoked to create it\nexports.getCacheForTiddler = function(title,cacheName,initializer) {\n\tthis.caches = this.caches || Object.create(null);\n\tvar caches = this.caches[title];\n\tif(caches &amp;&amp; caches[cacheName]) {\n\t\treturn caches[cacheName];\n\t} else {\n\t\tif(!caches) {\n\t\t\tcaches = Object.create(null);\n\t\t\tthis.caches[title] = caches;\n\t\t}\n\t\tcaches[cacheName] = initializer();\n\t\treturn caches[cacheName];\n\t}\n};\n\n// Clear all caches associated with a particular tiddler, or, if the title is null, clear all the caches for all the tiddlers\nexports.clearCache = function(title) {\n\tif(title) {\n\t\tthis.caches = this.caches || Object.create(null);\n\t\tif($tw.utils.hop(this.caches,title)) {\n\t\t\tdelete this.caches[title];\n\t\t}\n\t} else {\n\t\tthis.caches = Object.create(null);\n\t}\n};\n\nexports.initParsers = function(moduleType) {\n\t// Install the parser modules\n\t$tw.Wiki.parsers = {};\n\tvar self = this;\n\t$tw.modules.forEachModuleOfType(\&quot;parser\&quot;,function(title,module) {\n\t\tfor(var f in module) {\n\t\t\tif($tw.utils.hop(module,f)) {\n\t\t\t\t$tw.Wiki.parsers[f] = module[f]; // Store the parser class\n\t\t\t}\n\t\t}\n\t});\n\t// Use the generic binary parser for any binary types not registered so far\n\tif($tw.Wiki.parsers[\&quot;application/octet-stream\&quot;]) {\n\t\tObject.keys($tw.config.contentTypeInfo).forEach(function(type) {\n\t\t\tif(!$tw.utils.hop($tw.Wiki.parsers,type) &amp;&amp; $tw.config.contentTypeInfo[type].encoding === \&quot;base64\&quot;) {\n\t\t\t\t$tw.Wiki.parsers[type] = $tw.Wiki.parsers[\&quot;application/octet-stream\&quot;];\n\t\t\t}\n\t\t});\t\t\n\t}\n};\n\n/*\nParse a block of text of a specified MIME type\n\ttype: content type of text to be parsed\n\ttext: text\n\toptions: see below\nOptions include:\n\tparseAsInline: if true, the text of the tiddler will be parsed as an inline run\n\t_canonical_uri: optional string of the canonical URI of this content\n*/\nexports.parseText = function(type,text,options) {\n\ttext = text || \&quot;\&quot;;\n\toptions = options || {};\n\t// Select a parser\n\tvar Parser = $tw.Wiki.parsers[type];\n\tif(!Parser &amp;&amp; $tw.utils.getFileExtensionInfo(type)) {\n\t\tParser = $tw.Wiki.parsers[$tw.utils.getFileExtensionInfo(type).type];\n\t}\n\tif(!Parser) {\n\t\tParser = $tw.Wiki.parsers[options.defaultType || \&quot;text/vnd.tiddlywiki\&quot;];\n\t}\n\tif(!Parser) {\n\t\treturn null;\n\t}\n\t// Return the parser instance\n\treturn new Parser(type,text,{\n\t\tparseAsInline: options.parseAsInline,\n\t\twiki: this,\n\t\t_canonical_uri: options._canonical_uri\n\t});\n};\n\n/*\nParse a tiddler according to its MIME type\n*/\nexports.parseTiddler = function(title,options) {\n\toptions = $tw.utils.extend({},options);\n\tvar cacheType = options.parseAsInline ? \&quot;inlineParseTree\&quot; : \&quot;blockParseTree\&quot;,\n\t\ttiddler = this.getTiddler(title),\n\t\tself = this;\n\treturn tiddler ? this.getCacheForTiddler(title,cacheType,function() {\n\t\t\tif(tiddler.hasField(\&quot;_canonical_uri\&quot;)) {\n\t\t\t\toptions._canonical_uri = tiddler.fields._canonical_uri;\n\t\t\t}\n\t\t\treturn self.parseText(tiddler.fields.type,tiddler.fields.text,options);\n\t\t}) : null;\n};\n\nexports.parseTextReference = function(title,field,index,options) {\n\tvar tiddler,text;\n\tif(options.subTiddler) {\n\t\ttiddler = this.getSubTiddler(title,options.subTiddler);\n\t} else {\n\t\ttiddler = this.getTiddler(title);\n\t\tif(field === \&quot;text\&quot; || (!field &amp;&amp; !index)) {\n\t\t\tthis.getTiddlerText(title); // Force the tiddler to be lazily loaded\n\t\t\treturn this.parseTiddler(title,options);\n\t\t}\n\t}\n\tif(field === \&quot;text\&quot; || (!field &amp;&amp; !index)) {\n\t\tif(tiddler &amp;&amp; tiddler.fields) {\n\t\t\treturn this.parseText(tiddler.fields.type,tiddler.fields.text,options);\t\t\t\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t} else if(field) {\n\t\tif(field === \&quot;title\&quot;) {\n\t\t\ttext = title;\n\t\t} else {\n\t\t\tif(!tiddler || !tiddler.hasField(field)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttext = tiddler.fields[field];\n\t\t}\n\t\treturn this.parseText(\&quot;text/vnd.tiddlywiki\&quot;,text.toString(),options);\n\t} else if(index) {\n\t\tthis.getTiddlerText(title); // Force the tiddler to be lazily loaded\n\t\ttext = this.extractTiddlerDataItem(tiddler,index,undefined);\n\t\tif(text === undefined) {\n\t\t\treturn null;\n\t\t}\n\t\treturn this.parseText(\&quot;text/vnd.tiddlywiki\&quot;,text,options);\n\t}\n};\n\n/*\nMake a widget tree for a parse tree\nparser: parser object\noptions: see below\nOptions include:\ndocument: optional document to use\nvariables: hashmap of variables to set\nparentWidget: optional parent widget for the root node\n*/\nexports.makeWidget = function(parser,options) {\n\toptions = options || {};\n\tvar widgetNode = {\n\t\t\ttype: \&quot;widget\&quot;,\n\t\t\tchildren: []\n\t\t},\n\t\tcurrWidgetNode = widgetNode;\n\t// Create set variable widgets for each variable\n\t$tw.utils.each(options.variables,function(value,name) {\n\t\tvar setVariableWidget = {\n\t\t\ttype: \&quot;set\&quot;,\n\t\t\tattributes: {\n\t\t\t\tname: {type: \&quot;string\&quot;, value: name},\n\t\t\t\tvalue: {type: \&quot;string\&quot;, value: value}\n\t\t\t},\n\t\t\tchildren: []\n\t\t};\n\t\tcurrWidgetNode.children = [setVariableWidget];\n\t\tcurrWidgetNode = setVariableWidget;\n\t});\n\t// Add in the supplied parse tree nodes\n\tcurrWidgetNode.children = parser ? parser.tree : [];\n\t// Create the widget\n\treturn new widget.widget(widgetNode,{\n\t\twiki: this,\n\t\tdocument: options.document || $tw.fakeDocument,\n\t\tparentWidget: options.parentWidget\n\t});\n};\n\n/*\nMake a widget tree for transclusion\ntitle: target tiddler title\noptions: as for wiki.makeWidget() plus:\noptions.field: optional field to transclude (defaults to \&quot;text\&quot;)\noptions.mode: transclusion mode \&quot;inline\&quot; or \&quot;block\&quot;\noptions.recursionMarker : optional flag to set a recursion marker, defaults to \&quot;yes\&quot;\noptions.children: optional array of children for the transclude widget\noptions.importVariables: optional importvariables filter string for macros to be included\noptions.importPageMacros: optional boolean; if true, equivalent to passing \&quot;[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\&quot; to options.importVariables\n*/\nexports.makeTranscludeWidget = function(title,options) {\n\toptions = options || {};\n\tvar parseTreeDiv = {tree: [{\n\t\t\ttype: \&quot;element\&quot;,\n\t\t\ttag: \&quot;div\&quot;,\n\t\t\tchildren: []}]},\n\t\tparseTreeImportVariables = {\n\t\t\ttype: \&quot;importvariables\&quot;,\n\t\t\tattributes: {\n\t\t\t\tfilter: {\n\t\t\t\t\tname: \&quot;filter\&quot;,\n\t\t\t\t\ttype: \&quot;string\&quot;\n\t\t\t\t}\n\t\t\t},\n\t\t\tisBlock: false,\n\t\t\tchildren: []},\n\t\tparseTreeTransclude = {\n\t\t\ttype: \&quot;transclude\&quot;,\n\t\t\tattributes: {\n\t\t\t\trecursionMarker: {\n\t\t\t\t\tname: \&quot;recursionMarker\&quot;,\n\t\t\t\t\ttype: \&quot;string\&quot;,\n\t\t\t\t\tvalue: options.recursionMarker || \&quot;yes\&quot;\n\t\t\t\t\t},\n\t\t\t\ttiddler: {\n\t\t\t\t\tname: \&quot;tiddler\&quot;,\n\t\t\t\t\ttype: \&quot;string\&quot;,\n\t\t\t\t\tvalue: title\n\t\t\t\t}\n\t\t\t},\n\t\t\tisBlock: !options.parseAsInline};\n\tif(options.importVariables || options.importPageMacros) {\n\t\tif(options.importVariables) {\n\t\t\tparseTreeImportVariables.attributes.filter.value = options.importVariables;\n\t\t} else if(options.importPageMacros) {\n\t\t\tparseTreeImportVariables.attributes.filter.value = \&quot;[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\&quot;;\n\t\t}\n\t\tparseTreeDiv.tree[0].children.push(parseTreeImportVariables);\n\t\tparseTreeImportVariables.children.push(parseTreeTransclude);\n\t} else {\n\t\tparseTreeDiv.tree[0].children.push(parseTreeTransclude);\n\t}\n\tif(options.field) {\n\t\tparseTreeTransclude.attributes.field = {type: \&quot;string\&quot;, value: options.field};\n\t}\n\tif(options.mode) {\n\t\tparseTreeTransclude.attributes.mode = {type: \&quot;string\&quot;, value: options.mode};\n\t}\n\tif(options.children) {\n\t\tparseTreeTransclude.children = options.children;\n\t}\n\treturn this.makeWidget(parseTreeDiv,options);\n};\n\n/*\nParse text in a specified format and render it into another format\n\toutputType: content type for the output\n\ttextType: content type of the input text\n\ttext: input text\n\toptions: see below\nOptions include:\nvariables: hashmap of variables to set\nparentWidget: optional parent widget for the root node\n*/\nexports.renderText = function(outputType,textType,text,options) {\n\toptions = options || {};\n\tvar parser = this.parseText(textType,text,options),\n\t\twidgetNode = this.makeWidget(parser,options);\n\tvar container = $tw.fakeDocument.createElement(\&quot;div\&quot;);\n\twidgetNode.render(container,null);\n\treturn outputType === \&quot;text/html\&quot; ? container.innerHTML : container.textContent;\n};\n\n/*\nParse text from a tiddler and render it into another format\n\toutputType: content type for the output\n\ttitle: title of the tiddler to be rendered\n\toptions: see below\nOptions include:\nvariables: hashmap of variables to set\nparentWidget: optional parent widget for the root node\n*/\nexports.renderTiddler = function(outputType,title,options) {\n\toptions = options || {};\n\tvar parser = this.parseTiddler(title,options),\n\t\twidgetNode = this.makeWidget(parser,options);\n\tvar container = $tw.fakeDocument.createElement(\&quot;div\&quot;);\n\twidgetNode.render(container,null);\n\treturn outputType === \&quot;text/html\&quot; ? container.innerHTML : (outputType === \&quot;text/plain-formatted\&quot; ? container.formattedTextContent : container.textContent);\n};\n\n/*\nReturn an array of tiddler titles that match a search string\n\ttext: The text string to search for\n\toptions: see below\nOptions available:\n\tsource: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)\n\texclude: An array of tiddler titles to exclude from the search\n\tinvert: If true returns tiddlers that do not contain the specified string\n\tcaseSensitive: If true forces a case sensitive search\n\tfield: If specified, restricts the search to the specified field, or an array of field names\n\tanchored: If true, forces all but regexp searches to be anchored to the start of text\n\texcludeField: If true, the field options are inverted to specify the fields that are not to be searched\n\tThe search mode is determined by the first of these boolean flags to be true\n\t\tliteral: searches for literal string\n\t\twhitespace: same as literal except runs of whitespace are treated as a single space\n\t\tregexp: treats the search term as a regular expression\n\t\twords: (default) treats search string as a list of tokens, and matches if all tokens are found, regardless of adjacency or ordering\n*/\nexports.search = function(text,options) {\n\toptions = options || {};\n\tvar self = this,\n\t\tt,\n\t\tinvert = !!options.invert;\n\t// Convert the search string into a regexp for each term\n\tvar terms, searchTermsRegExps,\n\t\tflags = options.caseSensitive ? \&quot;\&quot; : \&quot;i\&quot;,\n\t\tanchor = options.anchored ? \&quot;^\&quot; : \&quot;\&quot;;\n\tif(options.literal) {\n\t\tif(text.length === 0) {\n\t\t\tsearchTermsRegExps = null;\n\t\t} else {\n\t\t\tsearchTermsRegExps = [new RegExp(\&quot;(\&quot; + anchor + $tw.utils.escapeRegExp(text) + \&quot;)\&quot;,flags)];\n\t\t}\n\t} else if(options.whitespace) {\n\t\tterms = [];\n\t\t$tw.utils.each(text.split(/\\s+/g),function(term) {\n\t\t\tif(term) {\n\t\t\t\tterms.push($tw.utils.escapeRegExp(term));\n\t\t\t}\n\t\t});\n\t\tsearchTermsRegExps = [new RegExp(\&quot;(\&quot; + anchor + terms.join(\&quot;\\\\s+\&quot;) + \&quot;)\&quot;,flags)];\n\t} else if(options.regexp) {\n\t\ttry {\n\t\t\tsearchTermsRegExps = [new RegExp(\&quot;(\&quot; + text + \&quot;)\&quot;,flags)];\t\t\t\n\t\t} catch(e) {\n\t\t\tsearchTermsRegExps = null;\n\t\t\tconsole.log(\&quot;Regexp error parsing /(\&quot; + text + \&quot;)/\&quot; + flags + \&quot;: \&quot;,e);\n\t\t}\n\t} else {\n\t\tterms = text.split(/ +/);\n\t\tif(terms.length === 1 &amp;&amp; terms[0] === \&quot;\&quot;) {\n\t\t\tsearchTermsRegExps = null;\n\t\t} else {\n\t\t\tsearchTermsRegExps = [];\n\t\t\tfor(t=0; t&lt;terms.length; t++) {\n\t\t\t\tsearchTermsRegExps.push(new RegExp(\&quot;(\&quot; + anchor + $tw.utils.escapeRegExp(terms[t]) + \&quot;)\&quot;,flags));\n\t\t\t}\n\t\t}\n\t}\n\t// Accumulate the array of fields to be searched or excluded from the search\n\tvar fields = [];\n\tif(options.field) {\n\t\tif($tw.utils.isArray(options.field)) {\n\t\t\t$tw.utils.each(options.field,function(fieldName) {\n\t\t\t\tif(fieldName) {\n\t\t\t\t\tfields.push(fieldName);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tfields.push(options.field);\n\t\t}\n\t}\n\t// Use default fields if none specified and we're not excluding fields (excluding fields with an empty field array is the same as searching all fields)\n\tif(fields.length === 0 &amp;&amp; !options.excludeField) {\n\t\tfields.push(\&quot;title\&quot;);\n\t\tfields.push(\&quot;tags\&quot;);\n\t\tfields.push(\&quot;text\&quot;);\n\t}\n\t// Function to check a given tiddler for the search term\n\tvar searchTiddler = function(title) {\n\t\tif(!searchTermsRegExps) {\n\t\t\treturn true;\n\t\t}\n\t\tvar notYetFound = searchTermsRegExps.slice();\n\n\t\tvar tiddler = self.getTiddler(title);\n\t\tif(!tiddler) {\n\t\t\ttiddler = new $tw.Tiddler({title: title, text: \&quot;\&quot;, type: \&quot;text/vnd.tiddlywiki\&quot;});\n\t\t}\n\t\tvar contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type] || $tw.config.contentTypeInfo[\&quot;text/vnd.tiddlywiki\&quot;],\n\t\t\tsearchFields;\n\t\t// Get the list of fields we're searching\n\t\tif(options.excludeField) {\n\t\t\tsearchFields = Object.keys(tiddler.fields);\n\t\t\t$tw.utils.each(fields,function(fieldName) {\n\t\t\t\tvar p = searchFields.indexOf(fieldName);\n\t\t\t\tif(p !== -1) {\n\t\t\t\t\tsearchFields.splice(p,1);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsearchFields = fields;\n\t\t}\n\t\tfor(var fieldIndex=0; notYetFound.length&gt;0 &amp;&amp; fieldIndex&lt;searchFields.length; fieldIndex++) {\n\t\t\t// Don't search the text field if the content type is binary\n\t\t\tvar fieldName = searchFields[fieldIndex];\n\t\t\tif(fieldName === \&quot;text\&quot; &amp;&amp; contentTypeInfo.encoding !== \&quot;utf8\&quot;) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tvar str = tiddler.fields[fieldName],\n\t\t\t\tt;\n\t\t\tif(str) {\n\t\t\t\tif($tw.utils.isArray(str)) {\n\t\t\t\t\t// If the field value is an array, test each regexp against each field array entry and fail if each regexp doesn't match at least one field array entry\n\t\t\t\t\tfor(var s=0; s&lt;str.length; s++) {\n\t\t\t\t\t\tfor(t=0; t&lt;notYetFound.length;) {\n\t\t\t\t\t\t\tif(notYetFound[t].test(str[s])) {\n\t\t\t\t\t\t\t\tnotYetFound.splice(t, 1);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// If the field isn't an array, force it to a string and test each regexp against it and fail if any do not match\n\t\t\t\t\tstr = tiddler.getFieldString(fieldName);\n\t\t\t\t\tfor(t=0; t&lt;notYetFound.length;) {\n\t\t\t\t\t\tif(notYetFound[t].test(str)) {\n\t\t\t\t\t\t\tnotYetFound.splice(t, 1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn notYetFound.length == 0;\n\t};\n\t// Loop through all the tiddlers doing the search\n\tvar results = [],\n\t\tsource = options.source || this.each;\n\tsource(function(tiddler,title) {\n\t\tif(searchTiddler(title) !== options.invert) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\t// Remove any of the results we have to exclude\n\tif(options.exclude) {\n\t\tfor(t=0; t&lt;options.exclude.length; t++) {\n\t\t\tvar p = results.indexOf(options.exclude[t]);\n\t\t\tif(p !== -1) {\n\t\t\t\tresults.splice(p,1);\n\t\t\t}\n\t\t}\n\t}\n\treturn results;\n};\n\n/*\nTrigger a load for a tiddler if it is skinny. Returns the text, or undefined if the tiddler is missing, null if the tiddler is being lazily loaded.\n*/\nexports.getTiddlerText = function(title,defaultText) {\n\tvar tiddler = this.getTiddler(title);\n\t// Return undefined if the tiddler isn't found\n\tif(!tiddler) {\n\t\treturn defaultText;\n\t}\n\tif(!tiddler.hasField(\&quot;_is_skinny\&quot;)) {\n\t\t// Just return the text if we've got it\n\t\treturn tiddler.fields.text || \&quot;\&quot;;\n\t} else {\n\t\t// Tell any listeners about the need to lazily load this tiddler\n\t\tthis.dispatchEvent(\&quot;lazyLoad\&quot;,title);\n\t\t// Indicate that the text is being loaded\n\t\treturn null;\n\t}\n};\n\n/*\nCheck whether the text of a tiddler matches a given value. By default, the comparison is case insensitive, and any spaces at either end of the tiddler text is trimmed\n*/\nexports.checkTiddlerText = function(title,targetText,options) {\n\toptions = options || {};\n\tvar text = this.getTiddlerText(title,\&quot;\&quot;);\n\tif(!options.noTrim) {\n\t\ttext = text.trim();\n\t}\n\tif(!options.caseSensitive) {\n\t\ttext = text.toLowerCase();\n\t\ttargetText = targetText.toLowerCase();\n\t}\n\treturn text === targetText;\n}\n\n/*\nRead an array of browser File objects, invoking callback(tiddlerFieldsArray) once they're all read\n*/\nexports.readFiles = function(files,options) {\n\tvar callback;\n\tif(typeof options === \&quot;function\&quot;) {\n\t\tcallback = options;\n\t\toptions = {};\n\t} else {\n\t\tcallback = options.callback;\n\t}\n\tvar result = [],\n\t\toutstanding = files.length,\n\t\treadFileCallback = function(tiddlerFieldsArray) {\n\t\t\tresult.push.apply(result,tiddlerFieldsArray);\n\t\t\tif(--outstanding === 0) {\n\t\t\t\tcallback(result);\n\t\t\t}\n\t\t};\n\tfor(var f=0; f&lt;files.length; f++) {\n\t\tthis.readFile(files[f],$tw.utils.extend({},options,{callback: readFileCallback}));\n\t}\n\treturn files.length;\n};\n\n/*\nRead a browser File object, invoking callback(tiddlerFieldsArray) with an array of tiddler fields objects\n*/\nexports.readFile = function(file,options) {\n\tvar callback;\n\tif(typeof options === \&quot;function\&quot;) {\n\t\tcallback = options;\n\t\toptions = {};\n\t} else {\n\t\tcallback = options.callback;\n\t}\n\t// Get the type, falling back to the filename extension\n\tvar self = this,\n\t\ttype = file.type;\n\tif(type === \&quot;\&quot; || !type) {\n\t\tvar dotPos = file.name.lastIndexOf(\&quot;.\&quot;);\n\t\tif(dotPos !== -1) {\n\t\t\tvar fileExtensionInfo = $tw.utils.getFileExtensionInfo(file.name.substr(dotPos));\n\t\t\tif(fileExtensionInfo) {\n\t\t\t\ttype = fileExtensionInfo.type;\n\t\t\t}\n\t\t}\n\t}\n\t// Figure out if we're reading a binary file\n\tvar contentTypeInfo = $tw.config.contentTypeInfo[type],\n\t\tisBinary = contentTypeInfo ? contentTypeInfo.encoding === \&quot;base64\&quot; : false;\n\t// Log some debugging information\n\tif($tw.log.IMPORT) {\n\t\tconsole.log(\&quot;Importing file '\&quot; + file.name + \&quot;', type: '\&quot; + type + \&quot;', isBinary: \&quot; + isBinary);\n\t}\n\t// Give the hook a chance to process the drag\n\tif($tw.hooks.invokeHook(\&quot;th-importing-file\&quot;,{\n\t\tfile: file,\n\t\ttype: type,\n\t\tisBinary: isBinary,\n\t\tcallback: callback\n\t}) !== true) {\n\t\tthis.readFileContent(file,type,isBinary,options.deserializer,callback);\n\t}\n};\n\n/*\nLower level utility to read the content of a browser File object, invoking callback(tiddlerFieldsArray) with an array of tiddler fields objects\n*/\nexports.readFileContent = function(file,type,isBinary,deserializer,callback) {\n\tvar self = this;\n\t// Create the FileReader\n\tvar reader = new FileReader();\n\t// Onload\n\treader.onload = function(event) {\n\t\tvar text = event.target.result,\n\t\t\ttiddlerFields = {title: file.name || \&quot;Untitled\&quot;};\n\t\tif(isBinary) {\n\t\t\tvar commaPos = text.indexOf(\&quot;,\&quot;);\n\t\t\tif(commaPos !== -1) {\n\t\t\t\ttext = text.substr(commaPos + 1);\n\t\t\t}\n\t\t}\n\t\t// Check whether this is an encrypted TiddlyWiki file\n\t\tvar encryptedJson = $tw.utils.extractEncryptedStoreArea(text);\n\t\tif(encryptedJson) {\n\t\t\t// If so, attempt to decrypt it with the current password\n\t\t\t$tw.utils.decryptStoreAreaInteractive(encryptedJson,function(tiddlers) {\n\t\t\t\tcallback(tiddlers);\n\t\t\t});\n\t\t} else {\n\t\t\t// Otherwise, just try to deserialise any tiddlers in the file\n\t\t\tcallback(self.deserializeTiddlers(type,text,tiddlerFields,{deserializer: deserializer}));\n\t\t}\n\t};\n\t// Kick off the read\n\tif(isBinary) {\n\t\treader.readAsDataURL(file);\n\t} else {\n\t\treader.readAsText(file);\n\t}\n};\n\n/*\nFind any existing draft of a specified tiddler\n*/\nexports.findDraft = function(targetTitle) {\n\tvar draftTitle = undefined;\n\tthis.forEachTiddler({includeSystem: true},function(title,tiddler) {\n\t\tif(tiddler.fields[\&quot;draft.title\&quot;] &amp;&amp; tiddler.fields[\&quot;draft.of\&quot;] === targetTitle) {\n\t\t\tdraftTitle = title;\n\t\t}\n\t});\n\treturn draftTitle;\n}\n\n/*\nCheck whether the specified draft tiddler has been modified.\nIf the original tiddler doesn't exist, create a vanilla tiddler variable,\nto check if additional fields have been added.\n*/\nexports.isDraftModified = function(title) {\n\tvar tiddler = this.getTiddler(title);\n\tif(!tiddler.isDraft()) {\n\t\treturn false;\n\t}\n\tvar ignoredFields = [\&quot;created\&quot;, \&quot;modified\&quot;, \&quot;title\&quot;, \&quot;draft.title\&quot;, \&quot;draft.of\&quot;],\n\t\torigTiddler = this.getTiddler(tiddler.fields[\&quot;draft.of\&quot;]) || new $tw.Tiddler({text:\&quot;\&quot;, tags:[]}),\n\t\ttitleModified = tiddler.fields[\&quot;draft.title\&quot;] !== tiddler.fields[\&quot;draft.of\&quot;];\n\treturn titleModified || !tiddler.isEqual(origTiddler,ignoredFields);\n};\n\n/*\nAdd a new record to the top of the history stack\ntitle: a title string or an array of title strings\nfromPageRect: page coordinates of the origin of the navigation\nhistoryTitle: title of history tiddler (defaults to $:/HistoryList)\n*/\nexports.addToHistory = function(title,fromPageRect,historyTitle) {\n\tvar story = new $tw.Story({wiki: this, historyTitle: historyTitle});\n\tstory.addToHistory(title,fromPageRect);\t\n\tconsole.log(\&quot;$tw.wiki.addToHistory() is deprecated since V5.1.23! Use the this.story.addToHistory() from the story-object!\&quot;)\n};\n\n/*\nAdd a new tiddler to the story river\ntitle: a title string or an array of title strings\nfromTitle: the title of the tiddler from which the navigation originated\nstoryTitle: title of story tiddler (defaults to $:/StoryList)\noptions: see story.js\n*/\nexports.addToStory = function(title,fromTitle,storyTitle,options) {\n\tvar story = new $tw.Story({wiki: this, storyTitle: storyTitle});\n\tstory.addToStory(title,fromTitle,options);\n\tconsole.log(\&quot;$tw.wiki.addToStory() is deprecated since V5.1.23! Use the this.story.addToStory() from the story-object!\&quot;)\n};\n\n/*\nGenerate a title for the draft of a given tiddler\n*/\nexports.generateDraftTitle = function(title) {\n\tvar c = 0,\n\t\tdraftTitle,\n\t\tusername = this.getTiddlerText(\&quot;$:/status/UserName\&quot;),\n\t\tattribution = username ? \&quot; by \&quot; + username : \&quot;\&quot;;\n\tdo {\n\t\tdraftTitle = \&quot;Draft \&quot; + (c ? (c + 1) + \&quot; \&quot; : \&quot;\&quot;) + \&quot;of '\&quot; + title + \&quot;'\&quot; + attribution;\n\t\tc++;\n\t} while(this.tiddlerExists(draftTitle));\n\treturn draftTitle;\n};\n\n/*\nInvoke the available upgrader modules\ntitles: array of tiddler titles to be processed\ntiddlers: hashmap by title of tiddler fields of pending import tiddlers. These can be modified by the upgraders. An entry with no fields indicates a tiddler that was pending import has been suppressed. When entries are added to the pending import the tiddlers hashmap may have entries that are not present in the titles array\nReturns a hashmap of messages keyed by tiddler title.\n*/\nexports.invokeUpgraders = function(titles,tiddlers) {\n\t// Collect up the available upgrader modules\n\tvar self = this;\n\tif(!this.upgraderModules) {\n\t\tthis.upgraderModules = [];\n\t\t$tw.modules.forEachModuleOfType(\&quot;upgrader\&quot;,function(title,module) {\n\t\t\tif(module.upgrade) {\n\t\t\t\tself.upgraderModules.push(module);\n\t\t\t}\n\t\t});\n\t}\n\t// Invoke each upgrader in turn\n\tvar messages = {};\n\tfor(var t=0; t&lt;this.upgraderModules.length; t++) {\n\t\tvar upgrader = this.upgraderModules[t],\n\t\t\tupgraderMessages = upgrader.upgrade(this,titles,tiddlers);\n\t\t$tw.utils.extend(messages,upgraderMessages);\n\t}\n\treturn messages;\n};\n\n// Determine whether a plugin by title is dynamically loadable\nexports.doesPluginRequireReload = function(title) {\n\treturn this.doesPluginInfoRequireReload(this.getPluginInfo(title) || this.getTiddlerDataCached(title));\n};\n\n// Determine whether a plugin info structure is dynamically loadable\nexports.doesPluginInfoRequireReload = function(pluginInfo) {\n\tif(pluginInfo) {\n\t\tvar foundModule = false;\n\t\t$tw.utils.each(pluginInfo.tiddlers,function(tiddler) {\n\t\t\tif(tiddler.type === \&quot;application/javascript\&quot; &amp;&amp; $tw.utils.hop(tiddler,\&quot;module-type\&quot;)) {\n\t\t\t\tfoundModule = true;\n\t\t\t}\n\t\t});\n\t\treturn foundModule;\n\t} else {\n\t\treturn null;\n\t}\n};\n\nexports.slugify = function(title,options) {\n\tvar tiddler = this.getTiddler(title),\n\t\tslug;\n\tif(tiddler &amp;&amp; tiddler.fields.slug) {\n\t\tslug = tiddler.fields.slug;\n\t} else {\n\t\tslug = $tw.utils.transliterate(title.toString().toLowerCase()) // Replace diacritics with basic lowercase ASCII\n\t\t\t.replace(/\\s+/g,\&quot;-\&quot;) // Replace spaces with -\n\t\t\t.replace(/[^\\w\\-\\.]+/g,\&quot;\&quot;) // Remove all non-word chars except dash and dot\n\t\t\t.replace(/\\-\\-+/g,\&quot;-\&quot;) // Replace multiple - with single -\n\t\t\t.replace(/^-+/,\&quot;\&quot;) // Trim - from start of text\n\t\t\t.replace(/-+$/,\&quot;\&quot;); // Trim - from end of text\n\t}\n\t// If the resulting slug is blank (eg because the title is just punctuation characters)\n\tif(!slug) {\n\t\t// ...then just use the character codes of the title\n\t\tvar result = [];\n\t\t$tw.utils.each(title.split(\&quot;\&quot;),function(char) {\n\t\t\tresult.push(char.charCodeAt(0).toString());\n\t\t});\n\t\tslug = result.join(\&quot;-\&quot;);\n\t}\n\treturn slug;\n};\n\n})();\n\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikimethod&quot;
},
&quot;$:/palettes/Blanca&quot;: {
&quot;title&quot;: &quot;$:/palettes/Blanca&quot;,
&quot;name&quot;: &quot;Blanca&quot;,
&quot;description&quot;: &quot;A clean white palette to let you focus&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;text&quot;: &quot;alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #66cccc\ndownload-foreground: &lt;&lt;colour background&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: &lt;&lt;colour background&gt;&gt;\ndropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333333\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #999999\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #ffffff\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #7897f3\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-controls-foreground-hover: #000000\nsidebar-controls-foreground: #ccc\nsidebar-foreground-shadow: rgba(255,255,255, 0.8)\nsidebar-foreground: #acacac\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #c0c0c0\nsidebar-tab-background-selected: #ffffff\nsidebar-tab-background: &lt;&lt;colour tab-background&gt;&gt;\nsidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;\nsidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;\nsidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #7897f3\nsite-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #eeeeee\ntab-border-selected: #cccccc\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ffeedd\ntag-foreground: #000\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: #eee\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #f8f8f8\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #f8f8f8\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #ff9900\ntoolbar-new-button:\ntoolbar-options-button:\ntoolbar-save-button:\ntoolbar-info-button:\ntoolbar-edit-button:\ntoolbar-close-button:\ntoolbar-delete-button:\ntoolbar-cancel-button:\ntoolbar-done-button:\nuntagged-background: #999999\nvery-muted-foreground: #888888\n&quot;
},
&quot;$:/palettes/Blue&quot;: {
&quot;title&quot;: &quot;$:/palettes/Blue&quot;,
&quot;name&quot;: &quot;Blue&quot;,
&quot;description&quot;: &quot;A blue theme&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;text&quot;: &quot;alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #fff\nblockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: &lt;&lt;colour foreground&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: &lt;&lt;colour background&gt;&gt;\ndropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333353\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #999999\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #ddddff\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #5778d8\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-controls-foreground-hover: #000000\nsidebar-controls-foreground: #ffffff\nsidebar-foreground-shadow: rgba(255,255,255, 0.8)\nsidebar-foreground: #acacac\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #c0c0c0\nsidebar-tab-background-selected: &lt;&lt;colour page-background&gt;&gt;\nsidebar-tab-background: &lt;&lt;colour tab-background&gt;&gt;\nsidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;\nsidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;\nsidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #5959c0\nsite-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: &lt;&lt;colour background&gt;&gt;\ntab-background: #ccccdd\ntab-border-selected: #ccccdd\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #eeeeff\ntag-foreground: #000\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: &lt;&lt;colour background&gt;&gt;\ntiddler-controls-foreground-hover: #666666\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #ffffff\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #ffffff\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #5959c0\ntoolbar-new-button: #5eb95e\ntoolbar-options-button: rgb(128, 88, 165)\ntoolbar-save-button: #0e90d2\ntoolbar-info-button: #0e90d2\ntoolbar-edit-button: rgb(243, 123, 29)\ntoolbar-close-button: #dd514c\ntoolbar-delete-button: #dd514c\ntoolbar-cancel-button: rgb(243, 123, 29)\ntoolbar-done-button: #5eb95e\nuntagged-background: #999999\nvery-muted-foreground: #888888\n&quot;
},
&quot;$:/palettes/Muted&quot;: {
&quot;title&quot;: &quot;$:/palettes/Muted&quot;,
&quot;name&quot;: &quot;Muted&quot;,
&quot;description&quot;: &quot;Bright tiddlers on a muted background&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;text&quot;: &quot;alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: &lt;&lt;colour background&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: &lt;&lt;colour background&gt;&gt;\ndropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333333\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #bbb\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #6f6f70\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #29a6ee\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-controls-foreground-hover: #000000\nsidebar-controls-foreground: #c2c1c2\nsidebar-foreground-shadow: rgba(255,255,255,0)\nsidebar-foreground: #d3d2d4\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #c0c0c0\nsidebar-tab-background-selected: #6f6f70\nsidebar-tab-background: #666667\nsidebar-tab-border-selected: #999\nsidebar-tab-border: #515151\nsidebar-tab-divider: #999\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: #999\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #d1d0d2\nsite-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #d5ad34\ntag-foreground: #ffffff\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: &lt;&lt;colour background&gt;&gt;\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #f8f8f8\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #f8f8f8\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #182955\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #999999\nvery-muted-foreground: #888888\n&quot;
},
&quot;$:/palettes/ContrastLight&quot;: {
&quot;title&quot;: &quot;$:/palettes/ContrastLight&quot;,
&quot;name&quot;: &quot;Contrast (Light)&quot;,
&quot;description&quot;: &quot;High contrast and unambiguous (light version)&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;text&quot;: &quot;alert-background: #f00\nalert-border: &lt;&lt;colour background&gt;&gt;\nalert-highlight: &lt;&lt;colour foreground&gt;&gt;\nalert-muted-foreground: #800\nbackground: #fff\nblockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\nbutton-background: &lt;&lt;colour background&gt;&gt;\nbutton-foreground: &lt;&lt;colour foreground&gt;&gt;\nbutton-border: &lt;&lt;colour foreground&gt;&gt;\ncode-background: &lt;&lt;colour background&gt;&gt;\ncode-border: &lt;&lt;colour foreground&gt;&gt;\ncode-foreground: &lt;&lt;colour foreground&gt;&gt;\ndirty-indicator: #f00\ndownload-background: #080\ndownload-foreground: &lt;&lt;colour background&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: &lt;&lt;colour background&gt;&gt;\ndropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;\ndropdown-tab-background-selected: &lt;&lt;colour foreground&gt;&gt;\ndropdown-tab-background: &lt;&lt;colour foreground&gt;&gt;\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #00a\nexternal-link-foreground: #00e\nforeground: #000\nmessage-background: &lt;&lt;colour foreground&gt;&gt;\nmessage-border: &lt;&lt;colour background&gt;&gt;\nmessage-foreground: &lt;&lt;colour background&gt;&gt;\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: &lt;&lt;colour foreground&gt;&gt;\nmodal-footer-background: &lt;&lt;colour background&gt;&gt;\nmodal-footer-border: &lt;&lt;colour foreground&gt;&gt;\nmodal-header-border: &lt;&lt;colour foreground&gt;&gt;\nmuted-foreground: &lt;&lt;colour foreground&gt;&gt;\nnotification-background: &lt;&lt;colour background&gt;&gt;\nnotification-border: &lt;&lt;colour foreground&gt;&gt;\npage-background: &lt;&lt;colour background&gt;&gt;\npre-background: &lt;&lt;colour background&gt;&gt;\npre-border: &lt;&lt;colour foreground&gt;&gt;\nprimary: #00f\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-controls-foreground-hover: &lt;&lt;colour background&gt;&gt;\nsidebar-controls-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-foreground-shadow: rgba(0,0,0, 0)\nsidebar-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-tab-background-selected: &lt;&lt;colour background&gt;&gt;\nsidebar-tab-background: &lt;&lt;colour tab-background&gt;&gt;\nsidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;\nsidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;\nsidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;\nsidebar-tab-foreground-selected: &lt;&lt;colour foreground&gt;&gt;\nsidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;\nsidebar-tiddler-link-foreground-hover: &lt;&lt;colour foreground&gt;&gt;\nsidebar-tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\nsite-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: &lt;&lt;colour background&gt;&gt;\ntab-background: &lt;&lt;colour foreground&gt;&gt;\ntab-border-selected: &lt;&lt;colour foreground&gt;&gt;\ntab-border: &lt;&lt;colour foreground&gt;&gt;\ntab-divider: &lt;&lt;colour foreground&gt;&gt;\ntab-foreground-selected: &lt;&lt;colour foreground&gt;&gt;\ntab-foreground: &lt;&lt;colour background&gt;&gt;\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #000\ntag-foreground: #fff\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: &lt;&lt;colour foreground&gt;&gt;\ntiddler-controls-foreground-hover: #ddd\ntiddler-controls-foreground-selected: #fdd\ntiddler-controls-foreground: &lt;&lt;colour foreground&gt;&gt;\ntiddler-editor-background: &lt;&lt;colour background&gt;&gt;\ntiddler-editor-border-image: &lt;&lt;colour foreground&gt;&gt;\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: &lt;&lt;colour background&gt;&gt;\ntiddler-editor-fields-odd: &lt;&lt;colour background&gt;&gt;\ntiddler-info-background: &lt;&lt;colour background&gt;&gt;\ntiddler-info-border: &lt;&lt;colour foreground&gt;&gt;\ntiddler-info-tab-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: &lt;&lt;colour foreground&gt;&gt;\ntiddler-title-foreground: &lt;&lt;colour foreground&gt;&gt;\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: &lt;&lt;colour foreground&gt;&gt;\nvery-muted-foreground: #888888\n&quot;
},
&quot;$:/palettes/ContrastDark&quot;: {
&quot;title&quot;: &quot;$:/palettes/ContrastDark&quot;,
&quot;name&quot;: &quot;Contrast (Dark)&quot;,
&quot;description&quot;: &quot;High contrast and unambiguous (dark version)&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;text&quot;: &quot;alert-background: #f00\nalert-border: &lt;&lt;colour background&gt;&gt;\nalert-highlight: &lt;&lt;colour foreground&gt;&gt;\nalert-muted-foreground: #800\nbackground: #000\nblockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\nbutton-background: &lt;&lt;colour background&gt;&gt;\nbutton-foreground: &lt;&lt;colour foreground&gt;&gt;\nbutton-border: &lt;&lt;colour foreground&gt;&gt;\ncode-background: &lt;&lt;colour background&gt;&gt;\ncode-border: &lt;&lt;colour foreground&gt;&gt;\ncode-foreground: &lt;&lt;colour foreground&gt;&gt;\ndirty-indicator: #f00\ndownload-background: #080\ndownload-foreground: &lt;&lt;colour background&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: &lt;&lt;colour background&gt;&gt;\ndropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;\ndropdown-tab-background-selected: &lt;&lt;colour foreground&gt;&gt;\ndropdown-tab-background: &lt;&lt;colour foreground&gt;&gt;\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #00a\nexternal-link-foreground: #00e\nforeground: #fff\nmessage-background: &lt;&lt;colour foreground&gt;&gt;\nmessage-border: &lt;&lt;colour background&gt;&gt;\nmessage-foreground: &lt;&lt;colour background&gt;&gt;\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: &lt;&lt;colour foreground&gt;&gt;\nmodal-footer-background: &lt;&lt;colour background&gt;&gt;\nmodal-footer-border: &lt;&lt;colour foreground&gt;&gt;\nmodal-header-border: &lt;&lt;colour foreground&gt;&gt;\nmuted-foreground: &lt;&lt;colour foreground&gt;&gt;\nnotification-background: &lt;&lt;colour background&gt;&gt;\nnotification-border: &lt;&lt;colour foreground&gt;&gt;\npage-background: &lt;&lt;colour background&gt;&gt;\npre-background: &lt;&lt;colour background&gt;&gt;\npre-border: &lt;&lt;colour foreground&gt;&gt;\nprimary: #00f\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-controls-foreground-hover: &lt;&lt;colour background&gt;&gt;\nsidebar-controls-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-foreground-shadow: rgba(0,0,0, 0)\nsidebar-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-tab-background-selected: &lt;&lt;colour background&gt;&gt;\nsidebar-tab-background: &lt;&lt;colour tab-background&gt;&gt;\nsidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;\nsidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;\nsidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;\nsidebar-tab-foreground-selected: &lt;&lt;colour foreground&gt;&gt;\nsidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;\nsidebar-tiddler-link-foreground-hover: &lt;&lt;colour foreground&gt;&gt;\nsidebar-tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\nsite-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: &lt;&lt;colour background&gt;&gt;\ntab-background: &lt;&lt;colour foreground&gt;&gt;\ntab-border-selected: &lt;&lt;colour foreground&gt;&gt;\ntab-border: &lt;&lt;colour foreground&gt;&gt;\ntab-divider: &lt;&lt;colour foreground&gt;&gt;\ntab-foreground-selected: &lt;&lt;colour foreground&gt;&gt;\ntab-foreground: &lt;&lt;colour background&gt;&gt;\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #fff\ntag-foreground: #000\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: &lt;&lt;colour foreground&gt;&gt;\ntiddler-controls-foreground-hover: #ddd\ntiddler-controls-foreground-selected: #fdd\ntiddler-controls-foreground: &lt;&lt;colour foreground&gt;&gt;\ntiddler-editor-background: &lt;&lt;colour background&gt;&gt;\ntiddler-editor-border-image: &lt;&lt;colour foreground&gt;&gt;\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: &lt;&lt;colour background&gt;&gt;\ntiddler-editor-fields-odd: &lt;&lt;colour background&gt;&gt;\ntiddler-info-background: &lt;&lt;colour background&gt;&gt;\ntiddler-info-border: &lt;&lt;colour foreground&gt;&gt;\ntiddler-info-tab-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: &lt;&lt;colour foreground&gt;&gt;\ntiddler-title-foreground: &lt;&lt;colour foreground&gt;&gt;\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: &lt;&lt;colour foreground&gt;&gt;\nvery-muted-foreground: #888888\n&quot;
},
&quot;$:/palettes/CupertinoDark&quot;: {
&quot;title&quot;: &quot;$:/palettes/CupertinoDark&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;name&quot;: &quot;Cupertino Dark&quot;,
&quot;description&quot;: &quot;A macOS inspired dark palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;text&quot;: &quot;alert-background: #FF453A\nalert-border: #FF453A\nalert-highlight: #FFD60A\nalert-muted-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\nbackground: #282828\nblockquote-bar: &lt;&lt;colour page-background&gt;&gt;\nbutton-foreground: &lt;&lt;colour background&gt;&gt;\ncode-background: &lt;&lt;colour pre-background&gt;&gt;\ncode-border: &lt;&lt;colour pre-border&gt;&gt;\ncode-foreground: rgba(255, 255, 255, 0.54)\ndirty-indicator: #FF453A\ndownload-background: &lt;&lt;colour primary&gt;&gt;\ndownload-foreground: &lt;&lt;colour foreground&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: &lt;&lt;colour tiddler-info-background&gt;&gt;\ndropdown-border: &lt;&lt;colour dropdown-background&gt;&gt;\ndropdown-tab-background-selected: #3F638B\ndropdown-tab-background: #323232\ndropzone-background: #30D158\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: #BF5AF2\nexternal-link-foreground: #32D74B\nforeground: #FFFFFF\nmenubar-background: #464646\nmenubar-foreground: #ffffff\nmessage-background: &lt;&lt;colour background&gt;&gt;\nmessage-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nmessage-foreground: rgba(255, 255, 255, 0.54)\nmodal-backdrop: &lt;&lt;colour page-background&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nmodal-footer-background: &lt;&lt;colour background&gt;&gt;\nmodal-footer-border: &lt;&lt;colour background&gt;&gt;\nmodal-header-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nmuted-foreground: #98989D\nnotification-background: &lt;&lt;colour dropdown-background&gt;&gt;\nnotification-border: &lt;&lt;colour dropdown-background&gt;&gt;\npage-background: #323232\npre-background: #464646\npre-border: transparent\nprimary: #0A84FF\nselect-tag-background: &lt;&lt;colour background&gt;&gt;\nselect-tag-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-button-foreground: &lt;&lt;colour background&gt;&gt;\nsidebar-controls-foreground-hover: #FF9F0A\nsidebar-controls-foreground: #8E8E93\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground: rgba(255, 255, 255, 0.38)\nsidebar-tab-background-selected: #3F638B\nsidebar-tab-background: &lt;&lt;colour background&gt;&gt;\nsidebar-tab-border-selected: &lt;&lt;colour background&gt;&gt;\nsidebar-tab-border: &lt;&lt;colour background&gt;&gt;\nsidebar-tab-divider: &lt;&lt;colour background&gt;&gt;\nsidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87)\nsidebar-tab-foreground: rgba(255, 255, 255, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7)\nsidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54)\nsite-title-foreground: #ffffff\nstatic-alert-foreground: #B4B4B4\ntab-background-selected: #3F638B\ntab-background: &lt;&lt;colour page-background&gt;&gt;\ntab-border-selected: &lt;&lt;colour page-background&gt;&gt;\ntab-border: &lt;&lt;colour page-background&gt;&gt;\ntab-divider: &lt;&lt;colour page-background&gt;&gt;\ntab-foreground-selected: rgba(255, 255, 255, 0.87)\ntab-foreground: rgba(255, 255, 255, 0.54)\ntable-border: #464646\ntable-footer-background: &lt;&lt;colour tiddler-editor-fields-odd&gt;&gt;\ntable-header-background: &lt;&lt;colour tiddler-editor-fields-even&gt;&gt;\ntag-background: #48484A\ntag-foreground: #323232\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: transparent\ntiddler-controls-foreground-hover: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;\ntiddler-controls-foreground-selected: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;\ntiddler-controls-foreground: #48484A\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: rgba(255, 255, 255, 0.08)\ntiddler-editor-fields-even: rgba(255, 255, 255, 0.1)\ntiddler-editor-fields-odd: rgba(255, 255, 255, 0.04)\ntiddler-info-background: #1E1E1E\ntiddler-info-border: #1E1E1E\ntiddler-info-tab-background: #3F638B\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\ntiddler-title-foreground: #FFFFFF\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: &lt;&lt;colour very-muted-foreground&gt;&gt;\nvery-muted-foreground: #464646\nselection-background: #3F638B\nselection-foreground: #ffffff\nwikilist-background: &lt;&lt;colour page-background&gt;&gt;\nwikilist-button-background: #3F638B\nwikilist-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nwikilist-button-open: #32D74B\nwikilist-button-open-hover: #32D74B\nwikilist-button-reveal: #0A84FF\nwikilist-button-reveal-hover: #0A84FF\nwikilist-button-remove: #FF453A\nwikilist-button-remove-hover: #FF453A\nwikilist-droplink-dragover: #32D74B\nwikilist-item: &lt;&lt;colour background&gt;&gt;\nwikilist-toolbar-background: &lt;&lt;colour background&gt;&gt;\nwikilist-title: &lt;&lt;colour foreground&gt;&gt;\nwikilist-title-svg: &lt;&lt;colour foreground&gt;&gt;\nwikilist-toolbar-foreground: &lt;&lt;colour foreground&gt;&gt;\nwikilist-url: &lt;&lt;colour muted-foreground&gt;&gt;\n&quot;
},
&quot;$:/palettes/DarkPhotos&quot;: {
&quot;title&quot;: &quot;$:/palettes/DarkPhotos&quot;,
&quot;created&quot;: &quot;20150402111612188&quot;,
&quot;description&quot;: &quot;Good with dark photo backgrounds&quot;,
&quot;modified&quot;: &quot;20150402112344080&quot;,
&quot;name&quot;: &quot;DarkPhotos&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;text&quot;: &quot;alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\nbutton-background: \nbutton-foreground: \nbutton-border: \ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: &lt;&lt;colour background&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: &lt;&lt;colour background&gt;&gt;\ndropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333333\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #ddd\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #336438\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #5778d8\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-controls-foreground-hover: #ccf\nsidebar-controls-foreground: #fff\nsidebar-foreground-shadow: rgba(0,0,0, 0.5)\nsidebar-foreground: #fff\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #eee\nsidebar-tab-background-selected: rgba(255,255,255, 0.8)\nsidebar-tab-background: rgba(255,255,255, 0.4)\nsidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;\nsidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;\nsidebar-tab-divider: rgba(255,255,255, 0.2)\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;\nsidebar-tiddler-link-foreground-hover: #aaf\nsidebar-tiddler-link-foreground: #ddf\nsite-title-foreground: #fff\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ec6\ntag-foreground: #ffffff\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: &lt;&lt;colour background&gt;&gt;\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #f8f8f8\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #f8f8f8\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #182955\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #999999\nvery-muted-foreground: #888888\n&quot;
},
&quot;$:/palettes/DesertSand&quot;: {
&quot;title&quot;: &quot;$:/palettes/DesertSand&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;name&quot;: &quot;Desert Sand&quot;,
&quot;description&quot;: &quot;A desert sand palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;text&quot;: &quot;alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #E9E0C7\nblockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\nbutton-foreground: &lt;&lt;colour foreground&gt;&gt;\ncode-background: #F3EDDF\ncode-border: #C3BAA1\ncode-foreground: #ab3250\ndiff-delete-background: #bd8b8b\ndiff-delete-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-equal-background: \ndiff-equal-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-insert-background: #91c093\ndiff-insert-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-invisible-background: \ndiff-invisible-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\ndirty-indicator: #ad3434\ndownload-background: #6ca16c\ndownload-foreground: &lt;&lt;colour background&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: &lt;&lt;colour background&gt;&gt;\ndropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;\ndropdown-tab-background-selected: #E9E0C7\ndropdown-tab-background: #BAB29C\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #313163\nexternal-link-foreground: #555592\nforeground: #2D2A23\nmenubar-background: #CDC2A6\nmenubar-foreground: #5A5446\nmessage-background: #ECE5CF\nmessage-border: #D6CBAA\nmessage-foreground: #5f6e7d\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: #8A8885\nmodal-footer-background: #CDC2A6\nmodal-footer-border: #9D998E\nmodal-header-border: #9D998E\nmuted-foreground: #9D998E\nnotification-background: #F0E9D7\nnotification-border: #939189\npage-background: #e0d3af\npre-background: #D6CBAA\npre-border: #CDC2A6\nprimary: #5B6F55\nselection-background: #9D947B\nselection-foreground: &lt;&lt;colour foreground&gt;&gt;\nselect-tag-background: #F0E9D7\nselect-tag-foreground: #2D2A23\nsidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-controls-foreground-hover: #2D2A23\nsidebar-controls-foreground: #867F69\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #867F69\nsidebar-muted-foreground-hover: #706A58\nsidebar-muted-foreground: #B3A98C\nsidebar-tab-background-selected: #e0d3af\nsidebar-tab-background: #A6A193\nsidebar-tab-border-selected: #C3BAA1\nsidebar-tab-border: #C3BAA1\nsidebar-tab-divider: #CDC2A6\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: #2D2A23\nsidebar-tiddler-link-foreground-hover: #433F35\nsidebar-tiddler-link-foreground: #706A58\nsite-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;\nstatic-alert-foreground: #A6A193\ntab-background-selected: #E9E0C7\ntab-background: #A6A193\ntab-border-selected: #C3BAA1\ntab-border: #C3BAA1\ntab-divider: #CDC2A6\ntab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;\ntab-foreground: #2D2A23\ntable-border: #9D998E\ntable-footer-background: #8A8885\ntable-header-background: #B0AA98\ntag-background: #706A58\ntag-foreground: #E3D7B7\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: &lt;&lt;colour background&gt;&gt;\ntiddler-controls-foreground-hover: #9D947B\ntiddler-controls-foreground-selected: #706A58\ntiddler-controls-foreground: #C3BAA1\ntiddler-editor-background: #E9E0C7\ntiddler-editor-border-image: #A6A193\ntiddler-editor-border: #A6A193\ntiddler-editor-fields-even: #D6CBAA\ntiddler-editor-fields-odd: #C3BAA1\ntiddler-info-background: #E3D7B7\ntiddler-info-border: #BAB29C\ntiddler-info-tab-background: #E9E0C7\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: #867F69\ntiddler-title-foreground: #374464\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #8A8885\nvery-muted-foreground: #CDC2A6\nwikilist-background: &lt;&lt;colour page-background&gt;&gt;\nwikilist-item: #CDC2A6\nwikilist-info: #161512\nwikilist-title: #433F35\nwikilist-title-svg: &lt;&lt;colour wikilist-title&gt;&gt;\nwikilist-url: #706A58\nwikilist-button-open: #7db66a\nwikilist-button-open-hover: #56a556\nwikilist-button-reveal: #5a6c9e\nwikilist-button-reveal-hover: #454591\nwikilist-button-remove: #bc5972\nwikilist-button-remove-hover: #814040\nwikilist-toolbar-background: #CDC2A6\nwikilist-toolbar-foreground: #2D2A23\nwikilist-droplink-dragover: rgba(255,192,192,0.5)\nwikilist-button-background: #A6A193\nwikilist-button-foreground: #161512\n&quot;
},
&quot;$:/palettes/GruvboxDark&quot;: {
&quot;title&quot;: &quot;$:/palettes/GruvboxDark&quot;,
&quot;name&quot;: &quot;Gruvbox Dark&quot;,
&quot;description&quot;: &quot;Retro groove color scheme&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;license&quot;: &quot;https://github.com/morhetz/gruvbox&quot;,
&quot;text&quot;: &quot;alert-background: #cc241d\nalert-border: #cc241d\nalert-highlight: #d79921\nalert-muted-foreground: #504945\nbackground: #3c3836\nblockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\nbutton-foreground: &lt;&lt;colour page-background&gt;&gt;\ncode-background: #504945\ncode-border: #504945\ncode-foreground: #fb4934\ndiff-delete-background: #fb4934\ndiff-delete-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-equal-background: \ndiff-equal-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-insert-background: #b8bb26\ndiff-insert-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-invisible-background: \ndiff-invisible-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\ndirty-indicator: #fb4934\ndownload-background: #b8bb26\ndownload-foreground: &lt;&lt;colour background&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: #665c54\ndropdown-border: &lt;&lt;colour background&gt;&gt;\ndropdown-tab-background-selected: #ebdbb2\ndropdown-tab-background: #665c54\ndropzone-background: #98971a\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #d3869b\nexternal-link-foreground: #8ec07c\nforeground: #fbf1c7\nmenubar-background: #504945\nmenubar-foreground: &lt;&lt;colour foreground&gt;&gt;\nmessage-background: #83a598\nmessage-border: #83a598\nmessage-foreground: #3c3836\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: #504945\nmodal-footer-background: #3c3836\nmodal-footer-border: #3c3836\nmodal-header-border: #3c3836\nmuted-foreground: #d5c4a1\nnotification-background: &lt;&lt;colour primary&gt;&gt;\nnotification-border: &lt;&lt;colour primary&gt;&gt;\npage-background: #282828\npre-background: #504945\npre-border: #504945\nprimary: #d79921\nselect-tag-background: #665c54\nselect-tag-foreground: &lt;&lt;colour foreground&gt;&gt;\nselection-background: #458588\nselection-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-button-foreground: &lt;&lt;colour page-background&gt;&gt;\nsidebar-controls-foreground-hover: #7c6f64\nsidebar-controls-foreground: #504945\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #fbf1c7\nsidebar-muted-foreground-hover: #7c6f64\nsidebar-muted-foreground: #504945\nsidebar-tab-background-selected: #bdae93\nsidebar-tab-background: #3c3836\nsidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;\nsidebar-tab-border: #bdae93\nsidebar-tab-divider: &lt;&lt;colour page-background&gt;&gt;\nsidebar-tab-foreground-selected: #282828\nsidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;\nsidebar-tiddler-link-foreground-hover: #458588\nsidebar-tiddler-link-foreground: #98971a\nsite-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;\nstatic-alert-foreground: #B48EAD\ntab-background-selected: #ebdbb2\ntab-background: #665c54\ntab-border-selected: #665c54\ntab-border: #665c54\ntab-divider: #bdae93\ntab-foreground-selected: #282828\ntab-foreground: #ebdbb2\ntable-border: #7c6f64\ntable-footer-background: #665c54\ntable-header-background: #504945\ntag-background: #d3869b\ntag-foreground: #282828\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: &lt;&lt;colour background&gt;&gt;\ntiddler-controls-foreground-hover: #7c6f64\ntiddler-controls-foreground-selected: &lt;&lt;colour primary&gt;&gt;\ntiddler-controls-foreground: #665c54\ntiddler-editor-background: #32302f\ntiddler-editor-border-image: #282828\ntiddler-editor-border: #282828\ntiddler-editor-fields-even: #504945\ntiddler-editor-fields-odd: #7c6f64\ntiddler-info-background: #32302f\ntiddler-info-border: #ebdbb2\ntiddler-info-tab-background: #ebdbb2\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: #7c6f64\ntiddler-title-foreground: #a89984\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #504945\nvery-muted-foreground: #bdae93\nwikilist-background: &lt;&lt;colour page-background&gt;&gt;\nwikilist-button-background: #acacac\nwikilist-button-foreground: &lt;&lt;colour button-foreground&gt;&gt;\nwikilist-item: &lt;&lt;colour background&gt;&gt;\nwikilist-toolbar-background: &lt;&lt;colour background&gt;&gt;\nwikilist-toolbar-foreground: &lt;&lt;colour foreground&gt;&gt;\nwikilist-title: &lt;&lt;colour foreground&gt;&gt;\nwikilist-title-svg: &lt;&lt;colour wikilist-title&gt;&gt;\nwikilist-url: &lt;&lt;colour muted-foreground&gt;&gt;\nwikilist-button-open-hover: &lt;&lt;colour primary&gt;&gt;\nwikilist-button-open: &lt;&lt;colour dropzone-background&gt;&gt;\nwikilist-button-remove: &lt;&lt;colour dirty-indicator&gt;&gt;\nwikilist-button-remove-hover: &lt;&lt;colour alert-background&gt;&gt;\nwikilist-droplink-dragover: &lt;&lt;colour dropzone-background&gt;&gt;\nwikilist-button-reveal: &lt;&lt;colour sidebar-tiddler-link-foreground-hover&gt;&gt;\nwikilist-button-reveal-hover: &lt;&lt;colour message-background&gt;&gt;\n&quot;
},
&quot;$:/palettes/Nord&quot;: {
&quot;title&quot;: &quot;$:/palettes/Nord&quot;,
&quot;name&quot;: &quot;Nord&quot;,
&quot;description&quot;: &quot;An arctic, north-bluish color palette.&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;license&quot;: &quot;MIT, arcticicestudio, https://github.com/arcticicestudio/nord/blob/develop/LICENSE.md&quot;,
&quot;text&quot;: &quot;alert-background: #D08770\nalert-border: #D08770\nalert-highlight: #B48EAD\nalert-muted-foreground: #4C566A\nbackground: #3b4252\nblockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\nbutton-foreground: &lt;&lt;colour page-background&gt;&gt;\ncode-background: #2E3440\ncode-border: #2E3440\ncode-foreground: #BF616A\ndiff-delete-background: #BF616A\ndiff-delete-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-equal-background: \ndiff-equal-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-insert-background: #A3BE8C\ndiff-insert-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-invisible-background: \ndiff-invisible-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\ndirty-indicator: #BF616A\ndownload-background: #A3BE8C\ndownload-foreground: &lt;&lt;colour background&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: &lt;&lt;colour background&gt;&gt;\ndropdown-border: &lt;&lt;colour background&gt;&gt;\ndropdown-tab-background-selected: #ECEFF4\ndropdown-tab-background: #4C566A\ndropzone-background: #A3BE8C\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #5E81AC\nexternal-link-foreground: #8FBCBB\nforeground: #d8dee9\nmenubar-background: #2E3440\nmenubar-foreground: #d8dee9\nmessage-background: #2E3440\nmessage-border: #2E3440\nmessage-foreground: #547599\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: #3b4252\nmodal-footer-background: #3b4252\nmodal-footer-border: #3b4252\nmodal-header-border: #3b4252\nmuted-foreground: #4C566A\nnotification-background: &lt;&lt;colour primary&gt;&gt;\nnotification-border: #EBCB8B\npage-background: #2e3440\npre-background: #2E3440\npre-border: #2E3440\nprimary: #5E81AC\nselect-tag-background: #3b4252\nselect-tag-foreground: &lt;&lt;colour foreground&gt;&gt;\nselection-background: #5E81AC\nselection-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-button-foreground: &lt;&lt;colour page-background&gt;&gt;\nsidebar-controls-foreground-hover: #D8DEE9\nsidebar-controls-foreground: #4C566A\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #D8DEE9\nsidebar-muted-foreground-hover: #4C566A\nsidebar-muted-foreground: #4C566A\nsidebar-tab-background-selected: #ECEFF4\nsidebar-tab-background: #4C566A\nsidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;\nsidebar-tab-border: #4C566A\nsidebar-tab-divider: &lt;&lt;colour page-background&gt;&gt;\nsidebar-tab-foreground-selected: #4C566A\nsidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;\nsidebar-tiddler-link-foreground-hover: #A3BE8C\nsidebar-tiddler-link-foreground: #81A1C1\nsite-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;\nstatic-alert-foreground: #B48EAD\ntab-background-selected: #ECEFF4\ntab-background: #4C566A\ntab-border-selected: #4C566A\ntab-border: #4C566A\ntab-divider: #4C566A\ntab-foreground-selected: #4C566A\ntab-foreground: #D8DEE9\ntable-border: #4C566A\ntable-footer-background: #2e3440\ntable-header-background: #2e3440\ntag-background: #A3BE8C\ntag-foreground: #4C566A\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: &lt;&lt;colour background&gt;&gt;\ntiddler-controls-foreground-hover: \ntiddler-controls-foreground-selected: #EBCB8B\ntiddler-controls-foreground: #4C566A\ntiddler-editor-background: #2e3440\ntiddler-editor-border-image: #2e3440\ntiddler-editor-border: #3b4252\ntiddler-editor-fields-even: #2e3440\ntiddler-editor-fields-odd: #2e3440\ntiddler-info-background: #2e3440\ntiddler-info-border: #2e3440\ntiddler-info-tab-background: #2e3440\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: #4C566A\ntiddler-title-foreground: #81A1C1\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #2d3038\nvery-muted-foreground: #2d3038\nwikilist-background: &lt;&lt;colour page-background&gt;&gt;\nwikilist-toolbar-background: &lt;&lt;colour background&gt;&gt;\nwikilist-item: &lt;&lt;colour background&gt;&gt;\nwikilist-title: &lt;&lt;colour foreground&gt;&gt;\nwikilist-info: &lt;&lt;colour muted-foreground&gt;&gt;\nwikilist-button-open: #A3BE8C\nwikilist-button-open-hover: #A3BE8C\nwikilist-button-reveal: #81A1C1\nwikilist-button-reveal-hover: #81A1C1\nwikilist-button-remove: #B48EAD\nwikilist-button-remove-hover: #B48EAD\n&quot;
},
&quot;$:/palettes/Rocker&quot;: {
&quot;title&quot;: &quot;$:/palettes/Rocker&quot;,
&quot;name&quot;: &quot;Rocker&quot;,
&quot;description&quot;: &quot;A dark theme&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;text&quot;: &quot;alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: &lt;&lt;colour background&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: &lt;&lt;colour background&gt;&gt;\ndropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333333\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #999999\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #000\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #cc0000\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-controls-foreground-hover: #000000\nsidebar-controls-foreground: #ffffff\nsidebar-foreground-shadow: rgba(255,255,255, 0.0)\nsidebar-foreground: #acacac\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #c0c0c0\nsidebar-tab-background-selected: #000\nsidebar-tab-background: &lt;&lt;colour tab-background&gt;&gt;\nsidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;\nsidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;\nsidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;\nsidebar-tiddler-link-foreground-hover: #ffbb99\nsidebar-tiddler-link-foreground: #cc0000\nsite-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ffbb99\ntag-foreground: #000\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: &lt;&lt;colour background&gt;&gt;\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #f8f8f8\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #f8f8f8\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #cc0000\ntoolbar-new-button:\ntoolbar-options-button:\ntoolbar-save-button:\ntoolbar-info-button:\ntoolbar-edit-button:\ntoolbar-close-button:\ntoolbar-delete-button:\ntoolbar-cancel-button:\ntoolbar-done-button:\nuntagged-background: #999999\nvery-muted-foreground: #888888\n&quot;
},
&quot;$:/palettes/SolarFlare&quot;: {
&quot;title&quot;: &quot;$:/palettes/SolarFlare&quot;,
&quot;name&quot;: &quot;Solar Flare&quot;,
&quot;description&quot;: &quot;Warm, relaxing earth colours&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;text&quot;: &quot;: Background Tones\n\nbase03: #002b36\nbase02: #073642\n\n: Content Tones\n\nbase01: #586e75\nbase00: #657b83\nbase0: #839496\nbase1: #93a1a1\n\n: Background Tones\n\nbase2: #eee8d5\nbase3: #fdf6e3\n\n: Accent Colors\n\nyellow: #b58900\norange: #cb4b16\nred: #dc322f\nmagenta: #d33682\nviolet: #6c71c4\nblue: #268bd2\ncyan: #2aa198\ngreen: #859900\n\n: Additional Tones (RA)\n\nbase10: #c0c4bb\nviolet-muted: #7c81b0\nblue-muted: #4e7baa\n\nyellow-hot: #ffcc44\norange-hot: #eb6d20\nred-hot: #ff2222\nblue-hot: #2298ee\ngreen-hot: #98ee22\n\n: Palette\n\n: Do not use colour macro for background and foreground\nbackground: #fdf6e3\n download-foreground: &lt;&lt;colour background&gt;&gt;\n dragger-foreground: &lt;&lt;colour background&gt;&gt;\n dropdown-background: &lt;&lt;colour background&gt;&gt;\n modal-background: &lt;&lt;colour background&gt;&gt;\n sidebar-foreground-shadow: &lt;&lt;colour background&gt;&gt;\n tiddler-background: &lt;&lt;colour background&gt;&gt;\n tiddler-border: &lt;&lt;colour background&gt;&gt;\n tiddler-link-background: &lt;&lt;colour background&gt;&gt;\n tab-background-selected: &lt;&lt;colour background&gt;&gt;\n dropdown-tab-background-selected: &lt;&lt;colour tab-background-selected&gt;&gt;\nforeground: #657b83\n dragger-background: &lt;&lt;colour foreground&gt;&gt;\n tab-foreground: &lt;&lt;colour foreground&gt;&gt;\n tab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;\n sidebar-tab-foreground-selected: &lt;&lt;colour tab-foreground-selected&gt;&gt;\n sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;\n sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\n sidebar-controls-foreground: &lt;&lt;colour foreground&gt;&gt;\n sidebar-foreground: &lt;&lt;colour foreground&gt;&gt;\n: base03\n: base02\n: base01\n alert-muted-foreground: &lt;&lt;colour base01&gt;&gt;\n: base00\n code-foreground: &lt;&lt;colour base00&gt;&gt;\n message-foreground: &lt;&lt;colour base00&gt;&gt;\n tag-foreground: &lt;&lt;colour base00&gt;&gt;\n: base0\n sidebar-tiddler-link-foreground: &lt;&lt;colour base0&gt;&gt;\n: base1\n muted-foreground: &lt;&lt;colour base1&gt;&gt;\n blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\n dropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;\n sidebar-muted-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\n tiddler-title-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\n site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;\n: base2\n modal-footer-background: &lt;&lt;colour base2&gt;&gt;\n page-background: &lt;&lt;colour base2&gt;&gt;\n modal-backdrop: &lt;&lt;colour page-background&gt;&gt;\n notification-background: &lt;&lt;colour page-background&gt;&gt;\n code-background: &lt;&lt;colour page-background&gt;&gt;\n code-border: &lt;&lt;colour code-background&gt;&gt;\n pre-background: &lt;&lt;colour page-background&gt;&gt;\n pre-border: &lt;&lt;colour pre-background&gt;&gt;\n sidebar-tab-background-selected: &lt;&lt;colour page-background&gt;&gt;\n table-header-background: &lt;&lt;colour base2&gt;&gt;\n tag-background: &lt;&lt;colour base2&gt;&gt;\n tiddler-editor-background: &lt;&lt;colour base2&gt;&gt;\n tiddler-info-background: &lt;&lt;colour base2&gt;&gt;\n tiddler-info-tab-background: &lt;&lt;colour base2&gt;&gt;\n tab-background: &lt;&lt;colour base2&gt;&gt;\n dropdown-tab-background: &lt;&lt;colour tab-background&gt;&gt;\n: base3\n alert-background: &lt;&lt;colour base3&gt;&gt;\n message-background: &lt;&lt;colour base3&gt;&gt;\n: yellow\n: orange\n: red\n: magenta\n alert-highlight: &lt;&lt;colour magenta&gt;&gt;\n: violet\n external-link-foreground: &lt;&lt;colour violet&gt;&gt;\n: blue\n: cyan\n: green\n: base10\n tiddler-controls-foreground: &lt;&lt;colour base10&gt;&gt;\n: violet-muted\n external-link-foreground-visited: &lt;&lt;colour violet-muted&gt;&gt;\n: blue-muted\n primary: &lt;&lt;colour blue-muted&gt;&gt;\n download-background: &lt;&lt;colour primary&gt;&gt;\n tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\n\nalert-border: #b99e2f\ndirty-indicator: #ff0000\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nmessage-border: #cfd6e6\nmodal-border: #999999\nselect-tag-background:\nselect-tag-foreground:\nsidebar-controls-foreground-hover:\nsidebar-muted-foreground-hover:\nsidebar-tab-background: #ded8c5\nsidebar-tiddler-link-foreground-hover:\nstatic-alert-foreground: #aaaaaa\ntab-border: #cccccc\n modal-footer-border: &lt;&lt;colour tab-border&gt;&gt;\n modal-header-border: &lt;&lt;colour tab-border&gt;&gt;\n notification-border: &lt;&lt;colour tab-border&gt;&gt;\n sidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;\n tab-border-selected: &lt;&lt;colour tab-border&gt;&gt;\n sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;\ntab-divider: #d8d8d8\n sidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-border: #dddddd\ntiddler-subtitle-foreground: #c0c0c0\ntoolbar-new-button:\ntoolbar-options-button:\ntoolbar-save-button:\ntoolbar-info-button:\ntoolbar-edit-button:\ntoolbar-close-button:\ntoolbar-delete-button:\ntoolbar-cancel-button:\ntoolbar-done-button:\nuntagged-background: #999999\nvery-muted-foreground: #888888\n&quot;
},
&quot;$:/palettes/SolarizedDark&quot;: {
&quot;title&quot;: &quot;$:/palettes/SolarizedDark&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;description&quot;: &quot;Precision dark colors for machines and people&quot;,
&quot;license&quot;: &quot;MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE&quot;,
&quot;name&quot;: &quot;SolarizedDark&quot;,
&quot;text&quot;: &quot;alert-background: #073642\nalert-border: #93a1a1\nalert-highlight: #d33682\nalert-muted-foreground: #d33682\nbackground: #073642\nblockquote-bar: #d33682\nbutton-background: #073642\nbutton-border: #586e75\nbutton-foreground: #93a1a1\ncode-background: #073642\ncode-border: #586e75\ncode-foreground: #93a1a1\ndirty-indicator: inherit\ndownload-background: #859900\ndownload-foreground: #073642\ndragger-background: #073642\ndragger-foreground: #839496\ndropdown-background: #073642\ndropdown-border: #93a1a1\ndropdown-tab-background: #002b36\ndropdown-tab-background-selected: #073642\ndropzone-background: #859900\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: #268bd2\nexternal-link-foreground-hover:\nexternal-link-foreground-visited: #268bd2\nforeground: #839496\nmessage-background: #002b36\nmessage-border: #586e75\nmessage-foreground: #839496\nmodal-backdrop: #657b83\nmodal-background: #002b36\nmodal-border: #586e75\nmodal-footer-background: #073642\nmodal-footer-border: #586e75\nmodal-header-border: #586e75\nmuted-foreground: #93a1a1\nnotification-background: #002b36\nnotification-border: #586e75\npage-background: #073642\npre-background: inherit\npre-border: #657b83\nprimary: #859900\nselect-tag-background: #002b36\nselect-tag-foreground: #839496\nsidebar-button-foreground: #93a1a1\nsidebar-controls-foreground: #93a1a1\nsidebar-controls-foreground-hover: #eee8d5\nsidebar-foreground: #93a1a1\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: #839496\nsidebar-muted-foreground-hover: #93a1a1\nsidebar-tab-background: #002b36\nsidebar-tab-background-selected: #073642\nsidebar-tab-border: #073642\nsidebar-tab-border-selected: #839496\nsidebar-tab-divider: #002b36\nsidebar-tab-foreground: #657b83\nsidebar-tab-foreground-selected: #93a1a1\nsidebar-tiddler-link-foreground: #2aa198\nsidebar-tiddler-link-foreground-hover: #eee8d5\nsite-title-foreground: #d33682\nstatic-alert-foreground: #93a1a1\ntab-background: #073642\ntab-background-selected: #002b36\ntab-border: #586e75\ntab-border-selected: #93a1a1\ntab-divider: #93a1a1\ntab-foreground: #839496\ntab-foreground-selected: #93a1a1\ntable-border: #586e75\ntable-footer-background: #073642\ntable-header-background: #073642\ntag-background: #b58900\ntag-foreground: #002b36\ntiddler-background: #002b36\ntiddler-border: #586e75\ntiddler-controls-foreground: inherit\ntiddler-controls-foreground-hover: #d33682\ntiddler-controls-foreground-selected: #2aa198\ntiddler-editor-background: #002b36\ntiddler-editor-border: #073642\ntiddler-editor-border-image: #002b36\ntiddler-editor-fields-even: #002b36\ntiddler-editor-fields-odd: #073642\ntiddler-info-background: #073642\ntiddler-info-border: #657b83\ntiddler-info-tab-background: #002b36\ntiddler-link-background: #002b36\ntiddler-link-foreground: #2aa198\ntiddler-subtitle-foreground: #839496\ntiddler-title-foreground: #d33682\ntoolbar-cancel-button: #839496\ntoolbar-close-button: #839496\ntoolbar-delete-button: #dc322f\ntoolbar-done-button: #839496\ntoolbar-edit-button: #839496\ntoolbar-info-button: #839496\ntoolbar-new-button: #839496\ntoolbar-options-button: #839496\ntoolbar-save-button: inherit\nuntagged-background: #586e75\nvery-muted-foreground: #586e75\n&quot;
},
&quot;$:/palettes/SolarizedLight&quot;: {
&quot;title&quot;: &quot;$:/palettes/SolarizedLight&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;description&quot;: &quot;Precision colors for machines and people&quot;,
&quot;license&quot;: &quot;MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE&quot;,
&quot;name&quot;: &quot;SolarizedLight&quot;,
&quot;text&quot;: &quot;alert-background: #eee8d5\nalert-border: #586e75\nalert-highlight: #d33682\nalert-muted-foreground: #d33682\nbackground: #eee8d5\nblockquote-bar: #d33682\nbutton-background: #eee8d5\nbutton-border: #93a1a1\nbutton-foreground: #586e75\ncode-background: #eee8d5\ncode-border: #93a1a1\ncode-foreground: #586e75\ndirty-indicator: inherit\ndownload-background: #859900\ndownload-foreground: #eee8d5\ndragger-background: #eee8d5\ndragger-foreground: #657b83\ndropdown-background: #eee8d5\ndropdown-border: #586e75\ndropdown-tab-background: #fdf6e3\ndropdown-tab-background-selected: #eee8d5\ndropzone-background: #859900\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: #268bd2\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #268bd2\nforeground: #657b83\nmessage-background: #fdf6e3\nmessage-border: #93a1a1\nmessage-foreground: #657b83\nmodal-backdrop: #839496\nmodal-background: #fdf6e3\nmodal-border: #93a1a1\nmodal-footer-background: #eee8d5\nmodal-footer-border: #93a1a1\nmodal-header-border: #93a1a1\nmuted-foreground: #586e75\nnotification-background: #fdf6e3\nnotification-border: #93a1a1\npage-background: #eee8d5\npre-background: #eee8d5\npre-border: #839496\nprimary: #859900\nselect-tag-background: #fdf6e3\nselect-tag-foreground: #657b83\nsidebar-button-foreground: #586e75\nsidebar-controls-foreground: #586e75\nsidebar-controls-foreground-hover: #d33682\nsidebar-foreground: #586e75\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: #657b83\nsidebar-muted-foreground-hover: #586e75\nsidebar-tab-background: #fdf6e3\nsidebar-tab-background-selected: #eee8d5\nsidebar-tab-border: #eee8d5\nsidebar-tab-border-selected: #657b83\nsidebar-tab-divider: #fdf6e3\nsidebar-tab-foreground: #839496\nsidebar-tab-foreground-selected: #586e75\nsidebar-tiddler-link-foreground: #2aa198\nsidebar-tiddler-link-foreground-hover: #002b36\nsite-title-foreground: #d33682\nstatic-alert-foreground: #586e75\ntab-background: #eee8d5\ntab-background-selected: #fdf6e3\ntab-border: #93a1a1\ntab-border-selected: #586e75\ntab-divider: #586e75\ntab-foreground: #657b83\ntab-foreground-selected: #586e75\ntable-border: #93a1a1\ntable-footer-background: #eee8d5\ntable-header-background: #eee8d5\ntag-background: #b58900\ntag-foreground: #fdf6e3\ntiddler-background: #fdf6e3\ntiddler-border: #93a1a1\ntiddler-controls-foreground: inherit\ntiddler-controls-foreground-hover: #d33682\ntiddler-controls-foreground-selected: #2aa198\ntiddler-editor-background: #fdf6e3\ntiddler-editor-border: #eee8d5\ntiddler-editor-border-image: #fdf6e3\ntiddler-editor-fields-even: #fdf6e3\ntiddler-editor-fields-odd: #eee8d5\ntiddler-info-background: #eee8d5\ntiddler-info-border: #839496\ntiddler-info-tab-background: #fdf6e3\ntiddler-link-background: #fdf6e3\ntiddler-link-foreground: #2aa198\ntiddler-subtitle-foreground: #657b83\ntiddler-title-foreground: #d33682\ntoolbar-cancel-button: #657b83\ntoolbar-close-button: #657b83\ntoolbar-delete-button: #dc322f\ntoolbar-done-button: #657b83\ntoolbar-edit-button: #657b83\ntoolbar-info-button: #657b83\ntoolbar-new-button: #657b83\ntoolbar-options-button: #657b83\ntoolbar-save-button: inherit\nuntagged-background: #586e75\nvery-muted-foreground: #93a1a1\n&quot;
},
&quot;$:/palettes/SpartanDay&quot;: {
&quot;title&quot;: &quot;$:/palettes/SpartanDay&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;description&quot;: &quot;Cold, spartan day colors&quot;,
&quot;name&quot;: &quot;Spartan Day&quot;,
&quot;text&quot;: &quot;alert-background: &lt;&lt;colour background&gt;&gt;\nalert-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nalert-highlight: &lt;&lt;colour very-muted-foreground&gt;&gt;\nalert-muted-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\nbackground: #FAFAFA\nblockquote-bar: &lt;&lt;colour page-background&gt;&gt;\nbutton-background: transparent\nbutton-foreground: inherit\nbutton-border: &lt;&lt;colour tag-background&gt;&gt;\ncode-background: #ececec\ncode-border: #ececec\ncode-foreground: \ndirty-indicator: #c80000\ndownload-background: &lt;&lt;colour primary&gt;&gt;\ndownload-foreground: &lt;&lt;colour background&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: #FFFFFF\ndropdown-border: &lt;&lt;colour dropdown-background&gt;&gt;\ndropdown-tab-background-selected: &lt;&lt;colour dropdown-background&gt;&gt;\ndropdown-tab-background: #F5F5F5\ndropzone-background: &lt;&lt;colour tag-background&gt;&gt;\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: \nexternal-link-foreground: \nforeground: rgba(0, 0, 0, 0.87)\nmessage-background: &lt;&lt;colour background&gt;&gt;\nmessage-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nmessage-foreground: rgba(0, 0, 0, 0.54)\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nmodal-footer-background: &lt;&lt;colour background&gt;&gt;\nmodal-footer-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nmodal-header-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nmuted-foreground: rgba(0, 0, 0, 0.54)\nnotification-background: &lt;&lt;colour dropdown-background&gt;&gt;\nnotification-border: &lt;&lt;colour dropdown-background&gt;&gt;\npage-background: #f4f4f4\npre-background: #ececec\npre-border: #ececec\nprimary: #3949ab\nselect-tag-background: &lt;&lt;colour background&gt;&gt;\nselect-tag-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-controls-foreground-hover: #aeaeae\nsidebar-controls-foreground: #c6c6c6\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(0, 0, 0, 0.54)\nsidebar-muted-foreground-hover: rgba(0, 0, 0, 0.54)\nsidebar-muted-foreground: rgba(0, 0, 0, 0.38)\nsidebar-tab-background-selected: &lt;&lt;colour page-background&gt;&gt;\nsidebar-tab-background: transparent\nsidebar-tab-border-selected: &lt;&lt;colour table-border&gt;&gt;\nsidebar-tab-border: transparent\nsidebar-tab-divider: &lt;&lt;colour table-border&gt;&gt;\nsidebar-tab-foreground-selected: rgba(0, 0, 0, 0.87)\nsidebar-tab-foreground: rgba(0, 0, 0, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(0, 0, 0, 0.87)\nsidebar-tiddler-link-foreground: rgba(0, 0, 0, 0.54)\nsite-title-foreground: rgba(0, 0, 0, 0.87)\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: &lt;&lt;colour background&gt;&gt;\ntab-background: transparent\ntab-border-selected: &lt;&lt;colour table-border&gt;&gt;\ntab-border: transparent\ntab-divider: &lt;&lt;colour table-border&gt;&gt;\ntab-foreground-selected: rgba(0, 0, 0, 0.87)\ntab-foreground: rgba(0, 0, 0, 0.54)\ntable-border: #d8d8d8\ntable-footer-background: &lt;&lt;colour tiddler-editor-fields-odd&gt;&gt;\ntable-header-background: &lt;&lt;colour tiddler-editor-fields-even&gt;&gt;\ntag-background: #ec6\ntag-foreground: &lt;&lt;colour button-foreground&gt;&gt;\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: #f9f9f9\ntiddler-controls-foreground-hover: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;\ntiddler-controls-foreground-selected: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;\ntiddler-controls-foreground: &lt;&lt;colour sidebar-controls-foreground&gt;&gt;\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: #e8e7e7\ntiddler-editor-fields-even: rgba(0, 0, 0, 0.1)\ntiddler-editor-fields-odd: rgba(0, 0, 0, 0.04)\ntiddler-info-background: #F5F5F5\ntiddler-info-border: #F5F5F5\ntiddler-info-tab-background: &lt;&lt;colour tiddler-editor-fields-odd&gt;&gt;\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\ntiddler-title-foreground: #000000\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: &lt;&lt;colour very-muted-foreground&gt;&gt;\nvery-muted-foreground: rgba(0, 0, 0, 0.12)\n&quot;
},
&quot;$:/palettes/SpartanNight&quot;: {
&quot;title&quot;: &quot;$:/palettes/SpartanNight&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;description&quot;: &quot;Dark spartan colors&quot;,
&quot;name&quot;: &quot;Spartan Night&quot;,
&quot;text&quot;: &quot;alert-background: &lt;&lt;colour background&gt;&gt;\nalert-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nalert-highlight: &lt;&lt;colour very-muted-foreground&gt;&gt;\nalert-muted-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\nbackground: #303030\nblockquote-bar: &lt;&lt;colour page-background&gt;&gt;\nbutton-background: transparent\nbutton-foreground: inherit\nbutton-border: &lt;&lt;colour tag-background&gt;&gt;\ncode-background: &lt;&lt;colour pre-background&gt;&gt;\ncode-border: &lt;&lt;colour pre-border&gt;&gt;\ncode-foreground: rgba(255, 255, 255, 0.54)\ndirty-indicator: #c80000\ndownload-background: &lt;&lt;colour primary&gt;&gt;\ndownload-foreground: &lt;&lt;colour foreground&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: #424242\ndropdown-border: &lt;&lt;colour dropdown-background&gt;&gt;\ndropdown-tab-background-selected: &lt;&lt;colour dropdown-background&gt;&gt;\ndropdown-tab-background: #050505\ndropzone-background: &lt;&lt;colour tag-background&gt;&gt;\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: #7c318c\nexternal-link-foreground: #9e3eb3\nforeground: rgba(255, 255, 255, 0.7)\nmessage-background: &lt;&lt;colour background&gt;&gt;\nmessage-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nmessage-foreground: rgba(255, 255, 255, 0.54)\nmodal-backdrop: &lt;&lt;colour page-background&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nmodal-footer-background: &lt;&lt;colour background&gt;&gt;\nmodal-footer-border: &lt;&lt;colour background&gt;&gt;\nmodal-header-border: &lt;&lt;colour very-muted-foreground&gt;&gt;\nmuted-foreground: rgba(255, 255, 255, 0.54)\nnotification-background: &lt;&lt;colour dropdown-background&gt;&gt;\nnotification-border: &lt;&lt;colour dropdown-background&gt;&gt;\npage-background: #212121\npre-background: #2a2a2a\npre-border: transparent\nprimary: #5656f3\nselect-tag-background: &lt;&lt;colour background&gt;&gt;\nselect-tag-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-controls-foreground-hover: #494949\nsidebar-controls-foreground: #5d5d5d\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground: rgba(255, 255, 255, 0.38)\nsidebar-tab-background-selected: &lt;&lt;colour page-background&gt;&gt;\nsidebar-tab-background: transparent\nsidebar-tab-border-selected: &lt;&lt;colour table-border&gt;&gt;\nsidebar-tab-border: transparent\nsidebar-tab-divider: &lt;&lt;colour table-border&gt;&gt;\nsidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87)\nsidebar-tab-foreground: rgba(255, 255, 255, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7)\nsidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54)\nsite-title-foreground: rgba(255, 255, 255, 0.7)\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: &lt;&lt;colour background&gt;&gt;\ntab-background: transparent\ntab-border-selected: &lt;&lt;colour table-border&gt;&gt;\ntab-border: transparent\ntab-divider: &lt;&lt;colour table-border&gt;&gt;\ntab-foreground-selected: rgba(255, 255, 255, 0.87)\ntab-foreground: rgba(255, 255, 255, 0.54)\ntable-border: #3a3a3a\ntable-footer-background: &lt;&lt;colour tiddler-editor-fields-odd&gt;&gt;\ntable-header-background: &lt;&lt;colour tiddler-editor-fields-even&gt;&gt;\ntag-background: #ec6\ntag-foreground: &lt;&lt;colour button-foreground&gt;&gt;\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: rgb(55,55,55)\ntiddler-controls-foreground-hover: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;\ntiddler-controls-foreground-selected: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;\ntiddler-controls-foreground: &lt;&lt;colour sidebar-controls-foreground&gt;&gt;\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: rgba(255, 255, 255, 0.08)\ntiddler-editor-fields-even: rgba(255, 255, 255, 0.1)\ntiddler-editor-fields-odd: rgba(255, 255, 255, 0.04)\ntiddler-info-background: #454545\ntiddler-info-border: #454545\ntiddler-info-tab-background: &lt;&lt;colour tiddler-editor-fields-odd&gt;&gt;\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\ntiddler-title-foreground: #FFFFFF\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: &lt;&lt;colour very-muted-foreground&gt;&gt;\nvery-muted-foreground: rgba(255, 255, 255, 0.12)\n&quot;
},
&quot;$:/palettes/Twilight&quot;: {
&quot;title&quot;: &quot;$:/palettes/Twilight&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;author&quot;: &quot;Thomas Elmiger&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;name&quot;: &quot;Twilight&quot;,
&quot;description&quot;: &quot;Delightful, soft darkness.&quot;,
&quot;text&quot;: &quot;alert-background: rgb(255, 255, 102)\nalert-border: rgb(232, 232, 125)\nalert-highlight: rgb(255, 51, 51)\nalert-muted-foreground: rgb(224, 82, 82)\nbackground: rgb(38, 38, 38)\nblockquote-bar: rgba(240, 196, 117, 0.7)\nbutton-background: rgb(63, 63, 63)\nbutton-border: rgb(127, 127, 127)\nbutton-foreground: rgb(179, 179, 179)\ncode-background: rgba(0,0,0,0.03)\ncode-border: rgba(0,0,0,0.08)\ncode-foreground: rgb(255, 94, 94)\ndiff-delete-background: #ffc9c9\ndiff-delete-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-equal-background: \ndiff-equal-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-insert-background: #aaefad\ndiff-insert-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-invisible-background: \ndiff-invisible-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\ndirty-indicator: rgb(255, 94, 94)\ndownload-background: #19a974\ndownload-foreground: rgb(38, 38, 38)\ndragger-background: rgb(179, 179, 179)\ndragger-foreground: rgb(38, 38, 38)\ndropdown-background: rgb(38, 38, 38)\ndropdown-border: rgb(255, 255, 255)\ndropdown-tab-background: rgba(0,0,0,.1)\ndropdown-tab-background-selected: rgba(255,255,255,1)\ndropzone-background: #9eebcf\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: rgb(179, 179, 255)\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: rgb(153, 153, 255)\nforeground: rgb(179, 179, 179)\nmessage-background: &lt;&lt;colour tag-foreground&gt;&gt;\nmessage-border: #96ccff\nmessage-foreground: &lt;&lt;colour tag-background&gt;&gt;\nmodal-backdrop: rgb(179, 179, 179)\nmodal-background: rgb(38, 38, 38)\nmodal-border: rgba(0,0,0,.5)\nmodal-footer-background: #f4f4f4\nmodal-footer-border: rgba(0,0,0,.1)\nmodal-header-border: rgba(0,0,0,.2)\nmuted-foreground: rgb(255, 255, 255)\nnotification-background: &lt;&lt;colour tag-foreground&gt;&gt;\nnotification-border: &lt;&lt;colour tag-background&gt;&gt;\npage-background: rgb(26, 26, 26)\npre-background: rgb(25, 25, 25)\npre-border: rgba(0,0,0,.2)\nprimary: rgb(255, 201, 102)\nselect-tag-background: \nselect-tag-foreground: \nsidebar-button-foreground: rgb(179, 179, 179)\nsidebar-controls-foreground: rgb(153, 153, 153)\nsidebar-controls-foreground-hover: &lt;&lt;colour tiddler-controls-foreground-hover&gt;&gt;\nsidebar-foreground: rgb(141, 141, 141)\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: rgba(0, 0, 0, 0.5)\nsidebar-muted-foreground-hover: rgb(141, 141, 141)\nsidebar-tab-background: rgba(141, 141, 141, 0.2)\nsidebar-tab-background-selected: rgb(26, 26, 26)\nsidebar-tab-border: rgb(127, 127, 127)\nsidebar-tab-border-selected: rgb(127, 127, 127)\nsidebar-tab-divider: rgb(127, 127, 127)\nsidebar-tab-foreground: rgb(179, 179, 179)\nsidebar-tab-foreground-selected: rgb(179, 179, 179)\nsidebar-tiddler-link-foreground: rgb(179, 179, 179)\nsidebar-tiddler-link-foreground-hover: rgb(115, 115, 115)\nsite-title-foreground: rgb(255, 201, 102)\nstatic-alert-foreground: rgba(0,0,0,.3)\ntab-background: rgba(0,0,0,0.125)\ntab-background-selected: rgb(38, 38, 38)\ntab-border: rgb(255, 201, 102)\ntab-border-selected: rgb(255, 201, 102)\ntab-divider: rgb(255, 201, 102)\ntab-foreground: rgb(179, 179, 179)\ntab-foreground-selected: rgb(179, 179, 179)\ntable-border: rgba(255,255,255,.3)\ntable-footer-background: rgba(0,0,0,.4)\ntable-header-background: rgba(0,0,0,.1)\ntag-background: rgb(255, 201, 102)\ntag-foreground: rgb(25, 25, 25)\ntiddler-background: rgb(38, 38, 38)\ntiddler-border: rgba(240, 196, 117, 0.7)\ntiddler-controls-foreground: rgb(128, 128, 128)\ntiddler-controls-foreground-hover: rgba(255, 255, 255, 0.8)\ntiddler-controls-foreground-selected: rgba(255, 255, 255, 0.9)\ntiddler-editor-background: rgb(33, 33, 33)\ntiddler-editor-border: rgb(63, 63, 63)\ntiddler-editor-border-image: rgb(25, 25, 25)\ntiddler-editor-fields-even: rgb(33, 33, 33)\ntiddler-editor-fields-odd: rgb(28, 28, 28)\ntiddler-info-background: rgb(43, 43, 43)\ntiddler-info-border: rgb(25, 25, 25)\ntiddler-info-tab-background: rgb(43, 43, 43)\ntiddler-link-background: rgb(38, 38, 38)\ntiddler-link-foreground: rgb(204, 204, 255)\ntiddler-subtitle-foreground: rgb(255, 255, 255)\ntiddler-title-foreground: rgb(255, 192, 76)\ntoolbar-cancel-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-done-button: \ntoolbar-edit-button: \ntoolbar-info-button: \ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \nuntagged-background: rgb(255, 255, 255)\nvery-muted-foreground: rgba(240, 196, 117, 0.7)\n&quot;
},
&quot;$:/palettes/Vanilla&quot;: {
&quot;title&quot;: &quot;$:/palettes/Vanilla&quot;,
&quot;name&quot;: &quot;Vanilla&quot;,
&quot;description&quot;: &quot;Pale and unobtrusive&quot;,
&quot;tags&quot;: &quot;$:/tags/Palette&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;text&quot;: &quot;alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndiff-delete-background: #ffc9c9\ndiff-delete-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-equal-background: \ndiff-equal-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-insert-background: #aaefad\ndiff-insert-foreground: &lt;&lt;colour foreground&gt;&gt;\ndiff-invisible-background: \ndiff-invisible-foreground: &lt;&lt;colour muted-foreground&gt;&gt;\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: &lt;&lt;colour background&gt;&gt;\ndragger-background: &lt;&lt;colour foreground&gt;&gt;\ndragger-foreground: &lt;&lt;colour background&gt;&gt;\ndropdown-background: &lt;&lt;colour background&gt;&gt;\ndropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333333\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: &lt;&lt;colour foreground&gt;&gt;\nmodal-background: &lt;&lt;colour background&gt;&gt;\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #bbb\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #f4f4f4\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #5778d8\nselection-background:\nselection-foreground:\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;\nsidebar-controls-foreground-hover: #000000\nsidebar-controls-foreground: #aaaaaa\nsidebar-foreground-shadow: rgba(255,255,255, 0.8)\nsidebar-foreground: #acacac\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #c0c0c0\nsidebar-tab-background-selected: #f4f4f4\nsidebar-tab-background: #e0e0e0\nsidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;\nsidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;\nsidebar-tab-divider: #e4e4e4\nsidebar-tab-foreground-selected:\nsidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #999999\nsite-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ec6\ntag-foreground: #ffffff\ntiddler-background: &lt;&lt;colour background&gt;&gt;\ntiddler-border: &lt;&lt;colour background&gt;&gt;\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #f8f8f8\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #f8f8f8\ntiddler-link-background: &lt;&lt;colour background&gt;&gt;\ntiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #182955\ntoolbar-new-button:\ntoolbar-options-button:\ntoolbar-save-button:\ntoolbar-info-button:\ntoolbar-edit-button:\ntoolbar-close-button:\ntoolbar-delete-button:\ntoolbar-cancel-button:\ntoolbar-done-button:\nuntagged-background: #999999\nvery-muted-foreground: #888888\nwikilist-background: #e5e5e5\nwikilist-item: #fff\nwikilist-info: #000\nwikilist-title: #666\nwikilist-title-svg: &lt;&lt;colour wikilist-title&gt;&gt;\nwikilist-url: #aaa\nwikilist-button-open: #4fb82b\nwikilist-button-open-hover: green\nwikilist-button-reveal: #5778d8\nwikilist-button-reveal-hover: blue\nwikilist-button-remove: #d85778\nwikilist-button-remove-hover: red\nwikilist-toolbar-background: #d3d3d3\nwikilist-toolbar-foreground: #888\nwikilist-droplink-dragover: rgba(255,192,192,0.5)\nwikilist-button-background: #acacac\nwikilist-button-foreground: #000\n&quot;
},
&quot;$:/core/readme&quot;: {
&quot;title&quot;: &quot;$:/core/readme&quot;,
&quot;text&quot;: &quot;This plugin contains TiddlyWiki's core components, comprising:\n\n* JavaScript code modules\n* Icons\n* Templates needed to create TiddlyWiki's user interface\n* British English (''en-GB'') translations of the localisable strings used by the core\n&quot;
},
&quot;$:/library/sjcl.js/license&quot;: {
&quot;title&quot;: &quot;$:/library/sjcl.js/license&quot;,
&quot;type&quot;: &quot;text/plain&quot;,
&quot;text&quot;: &quot;SJCL is open. You can use, modify and redistribute it under a BSD\nlicense or under the GNU GPL, version 2.0.\n\n---------------------------------------------------------------------\n\nhttp://opensource.org/licenses/BSD-2-Clause\n\nCopyright (c) 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at\nStanford University. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n1. Redistributions of source code must retain the above copyright\nnotice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\nnotice, this list of conditions and the following disclaimer in the\ndocumentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \&quot;AS\nIS\&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\nTO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\nPARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nHOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\nTO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n---------------------------------------------------------------------\n\nhttp://opensource.org/licenses/GPL-2.0\n\nThe Stanford Javascript Crypto Library (hosted here on GitHub) is a\nproject by the Stanford Computer Security Lab to build a secure,\npowerful, fast, small, easy-to-use, cross-browser library for\ncryptography in Javascript.\n\nCopyright (c) 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at\nStanford University.\n\nThis program is free software; you can redistribute it and/or modify it\nunder the terms of the GNU General Public License as published by the\nFree Software Foundation; either version 2 of the License, or (at your\noption) any later version.\n\nThis program is distributed in the hope that it will be useful, but\nWITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General\nPublic License for more details.\n\nYou should have received a copy of the GNU General Public License along\nwith this program; if not, write to the Free Software Foundation, Inc.,\n59 Temple Place, Suite 330, Boston, MA 02111-1307 USA&quot;
},
&quot;$:/core/templates/MOTW.html&quot;: {
&quot;title&quot;: &quot;$:/core/templates/MOTW.html&quot;,
&quot;text&quot;: &quot;\\rules only filteredtranscludeinline transcludeinline entity\n&lt;!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension --&gt;\n&lt;!-- saved from url=(0021)https://tiddlywiki.com --&gt;&amp;#13;&amp;#10;&quot;
},
&quot;$:/core/templates/alltiddlers.template.html&quot;: {
&quot;title&quot;: &quot;$:/core/templates/alltiddlers.template.html&quot;,
&quot;type&quot;: &quot;text/vnd.tiddlywiki-html&quot;,
&quot;text&quot;: &quot;&lt;!-- This template is provided for backwards compatibility with older versions of TiddlyWiki --&gt;\n\n&lt;$set name=\&quot;exportFilter\&quot; value=\&quot;[!is[system]sort[title]]\&quot;&gt;\n\n{{$:/core/templates/exporters/StaticRiver}}\n\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/templates/canonical-uri-external-image&quot;: {
&quot;title&quot;: &quot;$:/core/templates/canonical-uri-external-image&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used to assign the ''_canonical_uri'' field to external images.\n\nChange the `./images/` part to a different base URI. The URI can be relative or absolute.\n\n--&gt;\n./images/&lt;$view field=\&quot;title\&quot; format=\&quot;doubleurlencoded\&quot;/&gt;&quot;
},
&quot;$:/core/templates/canonical-uri-external-raw&quot;: {
&quot;title&quot;: &quot;$:/core/templates/canonical-uri-external-raw&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used to assign the ''_canonical_uri'' field to external raw files that are stored in the same directory\n\n--&gt;\n&lt;$view field=\&quot;title\&quot; format=\&quot;doubleurlencoded\&quot;/&gt;&quot;
},
&quot;$:/core/templates/canonical-uri-external-text&quot;: {
&quot;title&quot;: &quot;$:/core/templates/canonical-uri-external-text&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used to assign the ''_canonical_uri'' field to external text files.\n\nChange the `./text/` part to a different base URI. The URI can be relative or absolute.\n\n--&gt;\n./text/&lt;$view field=\&quot;title\&quot; format=\&quot;doubleurlencoded\&quot;/&gt;.tid&quot;
},
&quot;$:/core/templates/css-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/css-tiddler&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used for saving CSS tiddlers as a style tag with data attributes representing the tiddler fields.\n\n--&gt;`&lt;style`&lt;$fields template=' data-tiddler-$name$=\&quot;$encoded_value$\&quot;'&gt;&lt;/$fields&gt;` type=\&quot;text/css\&quot;&gt;`&lt;$view field=\&quot;text\&quot; format=\&quot;text\&quot; /&gt;`&lt;/style&gt;`&quot;
},
&quot;$:/core/templates/exporters/CsvFile&quot;: {
&quot;title&quot;: &quot;$:/core/templates/exporters/CsvFile&quot;,
&quot;tags&quot;: &quot;$:/tags/Exporter&quot;,
&quot;description&quot;: &quot;{{$:/language/Exporters/CsvFile}}&quot;,
&quot;extension&quot;: &quot;.csv&quot;,
&quot;text&quot;: &quot;&lt;$macrocall $name=\&quot;csvtiddlers\&quot; filter=&lt;&lt;exportFilter&gt;&gt; format=\&quot;quoted-comma-sep\&quot; $output=\&quot;text/raw\&quot;/&gt;\n&quot;
},
&quot;$:/core/templates/exporters/JsonFile&quot;: {
&quot;title&quot;: &quot;$:/core/templates/exporters/JsonFile&quot;,
&quot;tags&quot;: &quot;$:/tags/Exporter&quot;,
&quot;description&quot;: &quot;{{$:/language/Exporters/JsonFile}}&quot;,
&quot;extension&quot;: &quot;.json&quot;,
&quot;text&quot;: &quot;&lt;$macrocall $name=\&quot;jsontiddlers\&quot; filter=&lt;&lt;exportFilter&gt;&gt; $output=\&quot;text/raw\&quot;/&gt;\n&quot;
},
&quot;$:/core/templates/exporters/StaticRiver&quot;: {
&quot;title&quot;: &quot;$:/core/templates/exporters/StaticRiver&quot;,
&quot;tags&quot;: &quot;$:/tags/Exporter&quot;,
&quot;description&quot;: &quot;{{$:/language/Exporters/StaticRiver}}&quot;,
&quot;extension&quot;: &quot;.html&quot;,
&quot;text&quot;: &quot;\\define tv-wikilink-template() #$uri_encoded$\n\\define tv-config-toolbar-icons() no\n\\define tv-config-toolbar-text() no\n\\define tv-config-toolbar-class() tc-btn-invisible\n\\rules only filteredtranscludeinline transcludeinline\n&lt;!doctype html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html;charset=utf-8\&quot; /&gt;\n&lt;meta name=\&quot;generator\&quot; content=\&quot;TiddlyWiki\&quot; /&gt;\n&lt;meta name=\&quot;tiddlywiki-version\&quot; content=\&quot;{{$:/core/templates/version}}\&quot; /&gt;\n&lt;meta name=\&quot;format-detection\&quot; content=\&quot;telephone=no\&quot;&gt;\n&lt;link id=\&quot;faviconLink\&quot; rel=\&quot;shortcut icon\&quot; href=\&quot;favicon.ico\&quot;&gt;\n&lt;title&gt;{{$:/core/wiki/title}}&lt;/title&gt;\n&lt;div id=\&quot;styleArea\&quot;&gt;\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n&lt;/div&gt;\n&lt;style type=\&quot;text/css\&quot;&gt;\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n&lt;/style&gt;\n&lt;/head&gt;\n&lt;body class=\&quot;tc-body\&quot;&gt;\n{{$:/StaticBanner||$:/core/templates/html-tiddler}}\n&lt;section class=\&quot;tc-story-river tc-static-story-river\&quot;&gt;\n{{$:/core/templates/exporters/StaticRiver/Content||$:/core/templates/html-tiddler}}\n&lt;/section&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n&quot;
},
&quot;$:/core/templates/exporters/StaticRiver/Content&quot;: {
&quot;title&quot;: &quot;$:/core/templates/exporters/StaticRiver/Content&quot;,
&quot;text&quot;: &quot;\\define renderContent()\n{{{ $(exportFilter)$ ||$:/core/templates/static-tiddler}}}\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n&lt;&lt;renderContent&gt;&gt;\n&quot;
},
&quot;$:/core/templates/exporters/TidFile&quot;: {
&quot;title&quot;: &quot;$:/core/templates/exporters/TidFile&quot;,
&quot;tags&quot;: &quot;$:/tags/Exporter&quot;,
&quot;description&quot;: &quot;{{$:/language/Exporters/TidFile}}&quot;,
&quot;extension&quot;: &quot;.tid&quot;,
&quot;condition&quot;: &quot;[&lt;count&gt;compare:lte[1]]&quot;,
&quot;text&quot;: &quot;\\define renderContent()\n{{{ $(exportFilter)$ +[limit[1]] ||$:/core/templates/tid-tiddler}}}\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n&lt;&lt;renderContent&gt;&gt;&quot;
},
&quot;$:/core/save/all-external-js&quot;: {
&quot;title&quot;: &quot;$:/core/save/all-external-js&quot;,
&quot;text&quot;: &quot;\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[prefix[$:/temp/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/core]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$\n\\end\n{{$:/core/templates/tiddlywiki5-external-js.html}}\n&quot;
},
&quot;$:/core/templates/tiddlywiki5.js&quot;: {
&quot;title&quot;: &quot;$:/core/templates/tiddlywiki5.js&quot;,
&quot;text&quot;: &quot;\\rules only filteredtranscludeinline transcludeinline codeinline\n\n/*\n{{ $:/core/copyright.txt ||$:/core/templates/plain-text-tiddler}}\n`*/\n`&lt;!--~~ Library modules ~~--&gt;\n{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/plain-text-tiddler}}}\n&lt;!--~~ Boot prefix ~~--&gt;\n{{ $:/boot/bootprefix.js ||$:/core/templates/plain-text-tiddler}}\n&lt;!--~~ Core plugin ~~--&gt;\n{{$:/core/templates/tiddlywiki5.js/tiddlers}}\n&lt;!--~~ Boot kernel ~~--&gt;\n{{ $:/boot/boot.js ||$:/core/templates/plain-text-tiddler}}\n&quot;
},
&quot;$:/core/templates/tiddlywiki5.js/tiddlers&quot;: {
&quot;title&quot;: &quot;$:/core/templates/tiddlywiki5.js/tiddlers&quot;,
&quot;text&quot;: &quot;`\n$tw.preloadTiddlerArray(`&lt;$text text=&lt;&lt;jsontiddlers \&quot;[[$:/core]]\&quot;&gt;&gt;/&gt;`);\n`\n&quot;
},
&quot;$:/core/templates/tiddlywiki5-external-js.html&quot;: {
&quot;title&quot;: &quot;$:/core/templates/tiddlywiki5-external-js.html&quot;,
&quot;text&quot;: &quot;\\rules only filteredtranscludeinline transcludeinline\n&lt;!doctype html&gt;\n{{$:/core/templates/MOTW.html}}&lt;html lang=\&quot;`&lt;$text text={{{ [{$:/language}get[name]] }}}/&gt;`\&quot;&gt;\n&lt;head&gt;\n&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html;charset=utf-8\&quot; /&gt;\n&lt;!--~~ Raw markup for the top of the head section ~~--&gt;\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}\n&lt;meta http-equiv=\&quot;X-UA-Compatible\&quot; content=\&quot;IE=Edge\&quot;/&gt;\n&lt;meta name=\&quot;application-name\&quot; content=\&quot;TiddlyWiki\&quot; /&gt;\n&lt;meta name=\&quot;generator\&quot; content=\&quot;TiddlyWiki\&quot; /&gt;\n&lt;meta name=\&quot;tiddlywiki-version\&quot; content=\&quot;{{$:/core/templates/version}}\&quot; /&gt;\n&lt;meta name=\&quot;viewport\&quot; content=\&quot;width=device-width, initial-scale=1.0\&quot; /&gt;\n&lt;meta name=\&quot;apple-mobile-web-app-capable\&quot; content=\&quot;yes\&quot; /&gt;\n&lt;meta name=\&quot;apple-mobile-web-app-status-bar-style\&quot; content=\&quot;black-translucent\&quot; /&gt;\n&lt;meta name=\&quot;mobile-web-app-capable\&quot; content=\&quot;yes\&quot;/&gt;\n&lt;meta name=\&quot;format-detection\&quot; content=\&quot;telephone=no\&quot; /&gt;\n&lt;meta name=\&quot;copyright\&quot; content=\&quot;{{$:/core/copyright.txt}}\&quot; /&gt;\n&lt;link id=\&quot;faviconLink\&quot; rel=\&quot;shortcut icon\&quot; href=\&quot;favicon.ico\&quot;&gt;\n&lt;title&gt;{{$:/core/wiki/title}}&lt;/title&gt;\n&lt;!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~--&gt;\n\n&lt;!--~~ Raw markup ~~--&gt;\n{{{ [all[shadows+tiddlers]tag[$:/core/wiki/rawmarkup]] [all[shadows+tiddlers]tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}\n&lt;/head&gt;\n&lt;body class=\&quot;tc-body\&quot;&gt;\n&lt;!--~~ Raw markup for the top of the body section ~~--&gt;\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}\n&lt;!--~~ Static styles ~~--&gt;\n&lt;div id=\&quot;styleArea\&quot;&gt;\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n&lt;/div&gt;\n&lt;!--~~ Static content for Google and browsers without JavaScript ~~--&gt;\n&lt;noscript&gt;\n&lt;div id=\&quot;splashArea\&quot;&gt;\n{{$:/core/templates/static.area}}\n&lt;/div&gt;\n&lt;/noscript&gt;\n&lt;!--~~ Ordinary tiddlers ~~--&gt;\n{{$:/core/templates/store.area.template.html}}\n&lt;!--~~ Raw markup for the bottom of the body section ~~--&gt;\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}\n&lt;/body&gt;\n&lt;script src=\&quot;%24%3A%2Fcore%2Ftemplates%2Ftiddlywiki5.js\&quot; onerror=\&quot;alert('Error: Cannot load tiddlywiki.js');\&quot;&gt;&lt;/script&gt;\n&lt;/html&gt;\n&quot;
},
&quot;$:/core/templates/html-div-skinny-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/html-div-skinny-tiddler&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is a variant of $:/core/templates/html-div-tiddler used for saving skinny tiddlers (with no text field)\n\n--&gt;`&lt;div`&lt;$fields template=' $name$=\&quot;$encoded_value$\&quot;'&gt;&lt;/$fields&gt;`&gt;\n&lt;pre&gt;&lt;/pre&gt;\n&lt;/div&gt;`\n&quot;
},
&quot;$:/core/templates/html-div-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/html-div-tiddler&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used for saving tiddlers as an HTML DIV tag with attributes representing the tiddler fields.\n\n--&gt;`&lt;div`&lt;$fields template=' $name$=\&quot;$encoded_value$\&quot;'&gt;&lt;/$fields&gt;`&gt;\n&lt;pre&gt;`&lt;$view field=\&quot;text\&quot; format=\&quot;htmlencoded\&quot; /&gt;`&lt;/pre&gt;\n&lt;/div&gt;`\n&quot;
},
&quot;$:/core/templates/html-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/html-tiddler&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used for saving tiddlers as raw HTML\n\n--&gt;&lt;$view field=\&quot;text\&quot; format=\&quot;htmlwikified\&quot; /&gt;&quot;
},
&quot;$:/core/templates/javascript-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/javascript-tiddler&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields.\n\n--&gt;`&lt;script`&lt;$fields template=' data-tiddler-$name$=\&quot;$encoded_value$\&quot;'&gt;&lt;/$fields&gt;` type=\&quot;text/javascript\&quot;&gt;`&lt;$view field=\&quot;text\&quot; format=\&quot;text\&quot; /&gt;`&lt;/script&gt;`&quot;
},
&quot;$:/core/templates/json-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/json-tiddler&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used for saving tiddlers as raw JSON\n\n--&gt;&lt;$text text=&lt;&lt;jsontiddler&gt;&gt;/&gt;&quot;
},
&quot;$:/core/templates/module-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/module-tiddler&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields. The body of the tiddler is wrapped in a call to the `$tw.modules.define` function in order to define the body of the tiddler as a module\n\n--&gt;`&lt;script`&lt;$fields template=' data-tiddler-$name$=\&quot;$encoded_value$\&quot;'&gt;&lt;/$fields&gt;` type=\&quot;text/javascript\&quot; data-module=\&quot;yes\&quot;&gt;$tw.modules.define(\&quot;`&lt;$view field=\&quot;title\&quot; format=\&quot;jsencoded\&quot; /&gt;`\&quot;,\&quot;`&lt;$view field=\&quot;module-type\&quot; format=\&quot;jsencoded\&quot; /&gt;`\&quot;,function(module,exports,require) {`&lt;$view field=\&quot;text\&quot; format=\&quot;text\&quot; /&gt;`});\n&lt;/script&gt;`&quot;
},
&quot;$:/core/templates/plain-text-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/plain-text-tiddler&quot;,
&quot;text&quot;: &quot;&lt;$view field=\&quot;text\&quot; format=\&quot;text\&quot; /&gt;&quot;
},
&quot;$:/core/templates/raw-static-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/raw-static-tiddler&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used for saving tiddlers as static HTML\n\n--&gt;&lt;$view field=\&quot;text\&quot; format=\&quot;plainwikified\&quot; /&gt;&quot;
},
&quot;$:/core/save/all&quot;: {
&quot;title&quot;: &quot;$:/core/save/all&quot;,
&quot;text&quot;: &quot;\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[prefix[$:/temp/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n&quot;
},
&quot;$:/core/save/empty&quot;: {
&quot;title&quot;: &quot;$:/core/save/empty&quot;,
&quot;text&quot;: &quot;\\define saveTiddlerFilter()\n[is[system]] -[prefix[$:/state/popup/]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]]\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n&quot;
},
&quot;$:/core/save/lazy-all&quot;: {
&quot;title&quot;: &quot;$:/core/save/lazy-all&quot;,
&quot;text&quot;: &quot;\\define saveTiddlerFilter()\n[is[system]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] \n\\end\n\\define skinnySaveTiddlerFilter()\n[!is[system]]\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n&quot;
},
&quot;$:/core/save/lazy-images&quot;: {
&quot;title&quot;: &quot;$:/core/save/lazy-images&quot;,
&quot;text&quot;: &quot;\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[!is[system]is[image]] +[sort[title]] \n\\end\n\\define skinnySaveTiddlerFilter()\n[is[image]]\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n&quot;
},
&quot;$:/core/templates/server/static.sidebar.wikitext&quot;: {
&quot;title&quot;: &quot;$:/core/templates/server/static.sidebar.wikitext&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;div class=\&quot;tc-sidebar-scrollable\&quot; style=\&quot;overflow: auto;\&quot;&gt;\n&lt;div class=\&quot;tc-sidebar-header\&quot;&gt;\n&lt;h1 class=\&quot;tc-site-title\&quot;&gt;\n&lt;$transclude tiddler=\&quot;$:/SiteTitle\&quot;/&gt;\n&lt;/h1&gt;\n&lt;div class=\&quot;tc-site-subtitle\&quot;&gt;\n&lt;$transclude tiddler=\&quot;$:/SiteSubtitle\&quot;/&gt;\n&lt;/div&gt;\n&lt;h2&gt;\n&lt;/h2&gt;\n&lt;div class=\&quot;tc-sidebar-lists\&quot;&gt;\n&lt;$list filter={{$:/DefaultTiddlers}}&gt;\n&lt;div class=\&quot;tc-menu-list-subitem\&quot;&gt;\n&lt;$link&gt;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;&lt;/$link&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;!-- Currently disabled the recent list as it is unweildy when the responsive narrow view kicks in\n&lt;h2&gt;\n{{$:/language/SideBar/Recent/Caption}}\n&lt;/h2&gt;\n&lt;div class=\&quot;tc-sidebar-lists\&quot;&gt;\n&lt;$macrocall $name=\&quot;timeline\&quot; format={{$:/language/RecentChanges/DateFormat}}/&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n--&gt;\n&quot;
},
&quot;$:/core/templates/server/static.tiddler.html&quot;: {
&quot;title&quot;: &quot;$:/core/templates/server/static.tiddler.html&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define tv-wikilink-template() $uri_encoded$\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n&lt;html&gt;\n&lt;head&gt;\n&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html;charset=utf-8\&quot; /&gt;\n&lt;meta name=\&quot;generator\&quot; content=\&quot;TiddlyWiki\&quot; /&gt;\n&lt;meta name=\&quot;tiddlywiki-version\&quot; content={{$:/core/templates/version}} /&gt;\n&lt;meta name=\&quot;viewport\&quot; content=\&quot;width=device-width, initial-scale=1.0\&quot; /&gt;\n&lt;meta name=\&quot;apple-mobile-web-app-capable\&quot; content=\&quot;yes\&quot; /&gt;\n&lt;meta name=\&quot;apple-mobile-web-app-status-bar-style\&quot; content=\&quot;black-translucent\&quot; /&gt;\n&lt;meta name=\&quot;mobile-web-app-capable\&quot; content=\&quot;yes\&quot;/&gt;\n&lt;meta name=\&quot;format-detection\&quot; content=\&quot;telephone=no\&quot;&gt;\n&lt;link id=\&quot;faviconLink\&quot; rel=\&quot;shortcut icon\&quot; href=\&quot;favicon.ico\&quot;&gt;\n&lt;link rel=\&quot;stylesheet\&quot; href=\&quot;%24%3A%2Fcore%2Ftemplates%2Fstatic.template.css\&quot;&gt;\n&lt;title&gt;&lt;$view field=\&quot;caption\&quot; format=\&quot;plainwikified\&quot;&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$view&gt;: &lt;$view tiddler=\&quot;$:/core/wiki/title\&quot; format=\&quot;plainwikified\&quot;/&gt;&lt;/title&gt;\n&lt;/head&gt;\n&lt;body class=\&quot;tc-body\&quot;&gt;\n&lt;$transclude tiddler=\&quot;$:/core/templates/server/static.sidebar.wikitext\&quot; mode=\&quot;inline\&quot;/&gt;\n&lt;section class=\&quot;tc-story-river\&quot;&gt;\n&lt;div class=\&quot;tc-tiddler-frame\&quot;&gt;\n&lt;$transclude tiddler=\&quot;$:/core/templates/server/static.tiddler.wikitext\&quot; mode=\&quot;inline\&quot;/&gt;\n&lt;/div&gt;\n&lt;/section&gt;\n&lt;/body&gt;\n&lt;/html&gt;&quot;
},
&quot;$:/core/templates/server/static.tiddler.wikitext&quot;: {
&quot;title&quot;: &quot;$:/core/templates/server/static.tiddler.wikitext&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;div class=\&quot;tc-tiddler-title\&quot;&gt;\n&lt;div class=\&quot;tc-titlebar\&quot;&gt;\n&lt;h2&gt;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;&lt;/h2&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-subtitle\&quot;&gt;\n&lt;$link to={{!!modifier}}&gt;\n&lt;$view field=\&quot;modifier\&quot;/&gt;\n&lt;/$link&gt; &lt;$view field=\&quot;modified\&quot; format=\&quot;date\&quot; template={{$:/language/Tiddler/DateFormat}}/&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-tags-wrapper\&quot;&gt;\n&lt;$list filter=\&quot;[all[current]tags[]sort[title]]\&quot;&gt;\n&lt;a href={{{ [&lt;currentTiddler&gt;encodeuricomponent[]] }}}&gt;\n&lt;$macrocall $name=\&quot;tag-pill\&quot; tag=&lt;&lt;currentTiddler&gt;&gt;/&gt;\n&lt;/a&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-tiddler-body\&quot;&gt;\n&lt;$transclude mode=\&quot;block\&quot;/&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/templates/single.tiddler.window&quot;: {
&quot;title&quot;: &quot;$:/core/templates/single.tiddler.window&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define containerClasses()\ntc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n&lt;$vars\n\ttv-config-toolbar-icons={{$:/config/Toolbar/Icons}}\n\ttv-config-toolbar-text={{$:/config/Toolbar/Text}}\n\ttv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}\n\ttv-show-missing-links={{$:/config/MissingLinks}}\n\tstoryviewTitle={{$:/view}}\n\tlanguageTitle={{{ [{$:/language}get[name]] }}}&gt;\n\n&lt;div class=&lt;&lt;containerClasses&gt;&gt;&gt;\n\n&lt;$navigator story=\&quot;$:/StoryList\&quot; history=\&quot;$:/HistoryList\&quot;&gt;\n\n&lt;$transclude mode=\&quot;block\&quot;/&gt;\n\n&lt;/$navigator&gt;\n\n&lt;/div&gt;\n\n&lt;/$vars&gt;\n&quot;
},
&quot;$:/core/templates/split-recipe&quot;: {
&quot;title&quot;: &quot;$:/core/templates/split-recipe&quot;,
&quot;text&quot;: &quot;&lt;$list filter=\&quot;[!is[system]]\&quot;&gt;\ntiddler: &lt;$view field=\&quot;title\&quot; format=\&quot;urlencoded\&quot;/&gt;.tid\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/templates/static-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/static-tiddler&quot;,
&quot;text&quot;: &quot;&lt;a name=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;$transclude tiddler=\&quot;$:/core/ui/ViewTemplate\&quot;/&gt;\n&lt;/a&gt;&quot;
},
&quot;$:/core/templates/static.area&quot;: {
&quot;title&quot;: &quot;$:/core/templates/static.area&quot;,
&quot;text&quot;: &quot;&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/isEncrypted\&quot; text=\&quot;yes\&quot;&gt;\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawStaticContent]!has[draft.of]] ||$:/core/templates/raw-static-tiddler}}}\n{{$:/core/templates/static.content||$:/core/templates/html-tiddler}}\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/isEncrypted\&quot; text=\&quot;yes\&quot;&gt;\nThis file contains an encrypted ~TiddlyWiki. Enable ~JavaScript and enter the decryption password when prompted.\n&lt;/$reveal&gt;\n&lt;!-- ensure splash screen isn't shown when JS is disabled --&gt;\n`&lt;style&gt;\n.tc-remove-when-wiki-loaded {display: none;}\n&lt;/style&gt;`\n&quot;
},
&quot;$:/core/templates/static.content&quot;: {
&quot;title&quot;: &quot;$:/core/templates/static.content&quot;,
&quot;text&quot;: &quot;&lt;!-- For Google, and people without JavaScript--&gt;\nThis [[TiddlyWiki|https://tiddlywiki.com]] contains the following tiddlers:\n\n&lt;ul&gt;\n&lt;$list filter=&lt;&lt;saveTiddlerFilter&gt;&gt;&gt;\n&lt;li&gt;&lt;$view field=\&quot;title\&quot; format=\&quot;text\&quot;&gt;&lt;/$view&gt;&lt;/li&gt;\n&lt;/$list&gt;\n&lt;/ul&gt;\n&quot;
},
&quot;$:/core/templates/static.template.css&quot;: {
&quot;title&quot;: &quot;$:/core/templates/static.template.css&quot;,
&quot;text&quot;: &quot;{{$:/boot/boot.css||$:/core/templates/plain-text-tiddler}}\n\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n&quot;
},
&quot;$:/core/templates/static.template.html&quot;: {
&quot;title&quot;: &quot;$:/core/templates/static.template.html&quot;,
&quot;type&quot;: &quot;text/vnd.tiddlywiki-html&quot;,
&quot;text&quot;: &quot;\\define tv-wikilink-template() static/$uri_doubleencoded$.html\n\\define tv-config-toolbar-icons() no\n\\define tv-config-toolbar-text() no\n\\define tv-config-toolbar-class() tc-btn-invisible\n\\rules only filteredtranscludeinline transcludeinline\n&lt;!doctype html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html;charset=utf-8\&quot; /&gt;\n&lt;meta name=\&quot;generator\&quot; content=\&quot;TiddlyWiki\&quot; /&gt;\n&lt;meta name=\&quot;tiddlywiki-version\&quot; content=\&quot;{{$:/core/templates/version}}\&quot; /&gt;\n&lt;meta name=\&quot;viewport\&quot; content=\&quot;width=device-width, initial-scale=1.0\&quot; /&gt;\n&lt;meta name=\&quot;apple-mobile-web-app-capable\&quot; content=\&quot;yes\&quot; /&gt;\n&lt;meta name=\&quot;apple-mobile-web-app-status-bar-style\&quot; content=\&quot;black-translucent\&quot; /&gt;\n&lt;meta name=\&quot;mobile-web-app-capable\&quot; content=\&quot;yes\&quot;/&gt;\n&lt;meta name=\&quot;format-detection\&quot; content=\&quot;telephone=no\&quot;&gt;\n&lt;link id=\&quot;faviconLink\&quot; rel=\&quot;shortcut icon\&quot; href=\&quot;favicon.ico\&quot;&gt;\n&lt;title&gt;{{$:/core/wiki/title}}&lt;/title&gt;\n&lt;div id=\&quot;styleArea\&quot;&gt;\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n&lt;/div&gt;\n&lt;style type=\&quot;text/css\&quot;&gt;\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n&lt;/style&gt;\n&lt;/head&gt;\n&lt;body class=\&quot;tc-body\&quot;&gt;\n{{$:/StaticBanner||$:/core/templates/html-tiddler}}\n{{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}}\n&lt;/body&gt;\n&lt;/html&gt;\n&quot;
},
&quot;$:/core/templates/static.tiddler.html&quot;: {
&quot;title&quot;: &quot;$:/core/templates/static.tiddler.html&quot;,
&quot;text&quot;: &quot;\\define tv-wikilink-template() $uri_doubleencoded$.html\n\\define tv-config-toolbar-icons() no\n\\define tv-config-toolbar-text() no\n\\define tv-config-toolbar-class() tc-btn-invisible\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n`&lt;!doctype html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html;charset=utf-8\&quot; /&gt;\n&lt;meta name=\&quot;generator\&quot; content=\&quot;TiddlyWiki\&quot; /&gt;\n&lt;meta name=\&quot;tiddlywiki-version\&quot; content=\&quot;`{{$:/core/templates/version}}`\&quot; /&gt;\n&lt;meta name=\&quot;viewport\&quot; content=\&quot;width=device-width, initial-scale=1.0\&quot; /&gt;\n&lt;meta name=\&quot;apple-mobile-web-app-capable\&quot; content=\&quot;yes\&quot; /&gt;\n&lt;meta name=\&quot;apple-mobile-web-app-status-bar-style\&quot; content=\&quot;black-translucent\&quot; /&gt;\n&lt;meta name=\&quot;mobile-web-app-capable\&quot; content=\&quot;yes\&quot;/&gt;\n&lt;meta name=\&quot;format-detection\&quot; content=\&quot;telephone=no\&quot;&gt;\n&lt;link id=\&quot;faviconLink\&quot; rel=\&quot;shortcut icon\&quot; href=\&quot;favicon.ico\&quot;&gt;\n&lt;link rel=\&quot;stylesheet\&quot; href=\&quot;static.css\&quot;&gt;\n&lt;title&gt;`&lt;$view field=\&quot;caption\&quot;&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$view&gt;: {{$:/core/wiki/title}}`&lt;/title&gt;\n&lt;/head&gt;\n&lt;body class=\&quot;tc-body\&quot;&gt;\n`{{$:/StaticBanner||$:/core/templates/html-tiddler}}`\n&lt;section class=\&quot;tc-story-river tc-static-story-river\&quot;&gt;\n`&lt;$view tiddler=\&quot;$:/core/ui/ViewTemplate\&quot; format=\&quot;htmlwikified\&quot;/&gt;`\n&lt;/section&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n`\n&quot;
},
&quot;$:/core/templates/store.area.template.html&quot;: {
&quot;title&quot;: &quot;$:/core/templates/store.area.template.html&quot;,
&quot;text&quot;: &quot;&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/isEncrypted\&quot; text=\&quot;yes\&quot;&gt;\n`&lt;div id=\&quot;storeArea\&quot; style=\&quot;display:none;\&quot;&gt;`\n&lt;$list filter=&lt;&lt;saveTiddlerFilter&gt;&gt; template=\&quot;$:/core/templates/html-div-tiddler\&quot;/&gt;\n&lt;$list filter={{{ [&lt;skinnySaveTiddlerFilter&gt;] }}} template=\&quot;$:/core/templates/html-div-skinny-tiddler\&quot;/&gt;\n`&lt;/div&gt;`\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/isEncrypted\&quot; text=\&quot;yes\&quot;&gt;\n`&lt;!--~~ Encrypted tiddlers ~~--&gt;`\n`&lt;pre id=\&quot;encryptedStoreArea\&quot; type=\&quot;text/plain\&quot; style=\&quot;display:none;\&quot;&gt;`\n&lt;$encrypt filter=&lt;&lt;saveTiddlerFilter&gt;&gt;/&gt;\n`&lt;/pre&gt;`\n&lt;/$reveal&gt;&quot;
},
&quot;$:/core/templates/tid-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/tid-tiddler&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used for saving tiddlers in TiddlyWeb *.tid format\n\n--&gt;&lt;$fields exclude='text bag' template='$name$: $value$\n'&gt;&lt;/$fields&gt;`\n`&lt;$view field=\&quot;text\&quot; format=\&quot;text\&quot; /&gt;&quot;
},
&quot;$:/core/templates/tiddler-metadata&quot;: {
&quot;title&quot;: &quot;$:/core/templates/tiddler-metadata&quot;,
&quot;text&quot;: &quot;&lt;!--\n\nThis template is used for saving tiddler metadata *.meta files\n\n--&gt;&lt;$fields exclude='text bag' template='$name$: $value$\n'&gt;&lt;/$fields&gt;&quot;
},
&quot;$:/core/templates/tiddlywiki5.html&quot;: {
&quot;title&quot;: &quot;$:/core/templates/tiddlywiki5.html&quot;,
&quot;text&quot;: &quot;&lt;$set name=\&quot;saveTiddlerAndShadowsFilter\&quot; filter=\&quot;[subfilter&lt;saveTiddlerFilter&gt;] [subfilter&lt;saveTiddlerFilter&gt;plugintiddlers[]]\&quot;&gt;\n`&lt;!doctype html&gt;\n`{{$:/core/templates/MOTW.html}}`&lt;html lang=\&quot;`&lt;$text text={{{ [{$:/language}get[name]] }}}/&gt;`\&quot;&gt;\n&lt;head&gt;\n&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html;charset=utf-8\&quot; /&gt;\n&lt;!--~~ Raw markup for the top of the head section ~~--&gt;\n`{{{ [&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}`\n&lt;meta http-equiv=\&quot;X-UA-Compatible\&quot; content=\&quot;IE=Edge\&quot;/&gt;\n&lt;meta name=\&quot;application-name\&quot; content=\&quot;TiddlyWiki\&quot; /&gt;\n&lt;meta name=\&quot;generator\&quot; content=\&quot;TiddlyWiki\&quot; /&gt;\n&lt;meta name=\&quot;tiddlywiki-version\&quot; content=\&quot;`{{$:/core/templates/version}}`\&quot; /&gt;\n&lt;meta name=\&quot;viewport\&quot; content=\&quot;width=device-width, initial-scale=1.0\&quot; /&gt;\n&lt;meta name=\&quot;apple-mobile-web-app-capable\&quot; content=\&quot;yes\&quot; /&gt;\n&lt;meta name=\&quot;apple-mobile-web-app-status-bar-style\&quot; content=\&quot;black-translucent\&quot; /&gt;\n&lt;meta name=\&quot;mobile-web-app-capable\&quot; content=\&quot;yes\&quot;/&gt;\n&lt;meta name=\&quot;format-detection\&quot; content=\&quot;telephone=no\&quot; /&gt;\n&lt;meta name=\&quot;copyright\&quot; content=\&quot;`{{$:/core/copyright.txt}}`\&quot; /&gt;\n&lt;link id=\&quot;faviconLink\&quot; rel=\&quot;shortcut icon\&quot; href=\&quot;favicon.ico\&quot;&gt;\n&lt;title&gt;`{{$:/core/wiki/title}}`&lt;/title&gt;\n&lt;!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~--&gt;\n\n&lt;!--~~ Raw markup ~~--&gt;\n`{{{ [enlist&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/core/wiki/rawmarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [enlist&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [enlist&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}`\n&lt;/head&gt;\n&lt;body class=\&quot;tc-body\&quot;&gt;\n&lt;!--~~ Raw markup for the top of the body section ~~--&gt;\n`{{{ [enlist&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}`\n&lt;!--~~ Static styles ~~--&gt;\n&lt;div id=\&quot;styleArea\&quot;&gt;\n`{{$:/boot/boot.css||$:/core/templates/css-tiddler}}`\n&lt;/div&gt;\n&lt;!--~~ Static content for Google and browsers without JavaScript ~~--&gt;\n&lt;noscript&gt;\n&lt;div id=\&quot;splashArea\&quot;&gt;\n`{{$:/core/templates/static.area}}`\n&lt;/div&gt;\n&lt;/noscript&gt;\n&lt;!--~~ Ordinary tiddlers ~~--&gt;\n`{{$:/core/templates/store.area.template.html}}`\n&lt;!--~~ Library modules ~~--&gt;\n&lt;div id=\&quot;libraryModules\&quot; style=\&quot;display:none;\&quot;&gt;\n`{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/javascript-tiddler}}}`\n&lt;/div&gt;\n&lt;!--~~ Boot kernel prologue ~~--&gt;\n&lt;div id=\&quot;bootKernelPrefix\&quot; style=\&quot;display:none;\&quot;&gt;\n`{{ $:/boot/bootprefix.js ||$:/core/templates/javascript-tiddler}}`\n&lt;/div&gt;\n&lt;!--~~ Boot kernel ~~--&gt;\n&lt;div id=\&quot;bootKernel\&quot; style=\&quot;display:none;\&quot;&gt;\n`{{ $:/boot/boot.js ||$:/core/templates/javascript-tiddler}}`\n&lt;/div&gt;\n&lt;!--~~ Raw markup for the bottom of the body section ~~--&gt;\n`{{{ [enlist&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}`\n&lt;/body&gt;\n&lt;/html&gt;`\n&quot;
},
&quot;$:/core/templates/version&quot;: {
&quot;title&quot;: &quot;$:/core/templates/version&quot;,
&quot;text&quot;: &quot;&lt;&lt;version&gt;&gt;&quot;
},
&quot;$:/core/templates/wikified-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/templates/wikified-tiddler&quot;,
&quot;text&quot;: &quot;&lt;$transclude /&gt;&quot;
},
&quot;$:/core/ui/AboveStory/tw2-plugin-check&quot;: {
&quot;title&quot;: &quot;$:/core/ui/AboveStory/tw2-plugin-check&quot;,
&quot;tags&quot;: &quot;$:/tags/AboveStory&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/AboveStory/ClassicPlugin/\n&lt;$list filter=\&quot;[all[system+tiddlers]tag[systemConfig]limit[1]]\&quot;&gt;\n\n&lt;div class=\&quot;tc-message-box\&quot;&gt;\n\n&lt;&lt;lingo Warning&gt;&gt;\n\n&lt;ul&gt;\n\n&lt;$list filter=\&quot;[all[system+tiddlers]tag[systemConfig]]\&quot;&gt;\n\n&lt;li&gt;\n\n&lt;$link&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$link&gt;\n\n&lt;/li&gt;\n\n&lt;/$list&gt;\n\n&lt;/ul&gt;\n\n&lt;/div&gt;\n\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/Actions/new-image&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Actions/new-image&quot;,
&quot;tags&quot;: &quot;$:/tags/Actions&quot;,
&quot;description&quot;: &quot;create a new image tiddler&quot;,
&quot;text&quot;: &quot;\\define get-type()\nimage/$(imageType)$\n\\end\n\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n&lt;$vars imageType={{$:/config/NewImageType}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}}&gt;\n&lt;$action-sendmessage $message=\&quot;tm-new-tiddler\&quot; type=&lt;&lt;get-type&gt;&gt; tags=&lt;&lt;get-tags&gt;&gt;/&gt;\n&lt;/$vars&gt;\n&quot;
},
&quot;$:/core/ui/Actions/new-journal&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Actions/new-journal&quot;,
&quot;tags&quot;: &quot;$:/tags/Actions&quot;,
&quot;description&quot;: &quot;create a new journal tiddler&quot;,
&quot;text&quot;: &quot;\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n&lt;$vars journalTitleTemplate={{$:/config/NewJournal/Title}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}} journalText={{$:/config/NewJournal/Text}}&gt;\n&lt;$wikify name=\&quot;journalTitle\&quot; text=\&quot;\&quot;\&quot;&lt;$macrocall $name=\&quot;now\&quot; format=&lt;&lt;journalTitleTemplate&gt;&gt;/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;journalTitle&gt;&gt; text=\&quot;\&quot;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-new-tiddler\&quot; title=&lt;&lt;journalTitle&gt;&gt; tags=&lt;&lt;get-tags&gt;&gt; text={{{ [&lt;journalTitle&gt;get[]] }}}/&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;journalTitle&gt;&gt; text=\&quot;\&quot;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-new-tiddler\&quot; title=&lt;&lt;journalTitle&gt;&gt; tags=&lt;&lt;get-tags&gt;&gt; text=&lt;&lt;journalText&gt;&gt;/&gt;\n&lt;/$reveal&gt;\n&lt;/$wikify&gt;\n&lt;/$vars&gt;\n&quot;
},
&quot;$:/core/ui/Actions/new-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Actions/new-tiddler&quot;,
&quot;tags&quot;: &quot;$:/tags/Actions&quot;,
&quot;description&quot;: &quot;create a new empty tiddler&quot;,
&quot;text&quot;: &quot;\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n&lt;$vars textFieldTags={{$:/config/NewTiddler/Tags}} tagsFieldTags={{$:/config/NewTiddler/Tags!!tags}}&gt;\n&lt;$action-sendmessage $message=\&quot;tm-new-tiddler\&quot; tags=&lt;&lt;get-tags&gt;&gt;/&gt;\n&lt;/$vars&gt;\n&quot;
},
&quot;$:/core/ui/AdvancedSearch/Filter&quot;: {
&quot;title&quot;: &quot;$:/core/ui/AdvancedSearch/Filter&quot;,
&quot;tags&quot;: &quot;$:/tags/AdvancedSearch&quot;,
&quot;caption&quot;: &quot;{{$:/language/Search/Filter/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\&quot;after\&quot;) &lt;$macrocall $name=\&quot;change-input-tab\&quot; stateTitle=\&quot;$:/state/tab--1498284803\&quot; tag=\&quot;$:/tags/AdvancedSearch\&quot; beforeafter=\&quot;$beforeafter$\&quot; defaultState=\&quot;$:/core/ui/AdvancedSearch/System\&quot; actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/state/advancedsearch/currentTab\&quot; text=&lt;&lt;nextTab&gt;&gt;/&gt;\&quot;\&quot;\&quot;/&gt;\n\n\\define cancel-search-actions() &lt;$list filter=\&quot;[{$:/temp/advancedsearch/input}!match{$:/temp/advancedsearch}]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$action-deletetiddler $filter=\&quot;[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\&quot; /&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/input\&quot; text={{$:/temp/advancedsearch}}/&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/refresh\&quot; text=\&quot;yes\&quot;/&gt;&lt;/$list&gt;\n\n\\define input-accept-actions() &lt;$list filter=\&quot;[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]!is[missing]] ~[&lt;__tiddler__&gt;get[text]is[shadow]]\&quot;&gt;&lt;$action-navigate $to={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-navigate $to={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;\n\n\\define input-accept-variant-actions() &lt;$list filter=\&quot;[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]!is[missing]] ~[&lt;__tiddler__&gt;get[text]is[shadow]]\&quot;&gt;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]minlength[1]]\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-edit-tiddler\&quot; $param={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;&lt;/$list&gt;\&quot;\&quot;\&quot;&gt;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]minlength[1]]\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-edit-tiddler\&quot; $param={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;&lt;/$list&gt;\n\n&lt;&lt;lingo Filter/Hint&gt;&gt;\n\n&lt;div class=\&quot;tc-search tc-advanced-search\&quot;&gt;\n&lt;$keyboard key=\&quot;((input-tab-right))\&quot; actions=&lt;&lt;set-next-input-tab&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((input-tab-left))\&quot; actions=&lt;&lt;set-next-input-tab \&quot;before\&quot;&gt;&gt;&gt;\n&lt;$macrocall $name=\&quot;keyboard-driven-input\&quot; tiddler=\&quot;$:/temp/advancedsearch/input\&quot; storeTitle=\&quot;$:/temp/advancedsearch\&quot; \n\t\trefreshTitle=\&quot;$:/temp/advancedsearch/refresh\&quot; selectionStateTitle=\&quot;$:/temp/advancedsearch/selected-item\&quot; type=\&quot;search\&quot; \n\t\ttag=\&quot;input\&quot; focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\&quot;[[$:/temp/advancedsearch]]\&quot; firstSearchFilterField=\&quot;text\&quot; \n\t\tinputAcceptActions=&lt;&lt;input-accept-actions&gt;&gt; inputAcceptVariantActions=&lt;&lt;input-accept-variant-actions&gt;&gt; \n\t\tinputCancelActions=&lt;&lt;cancel-search-actions&gt;&gt;/&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]\&quot;&gt;&lt;$transclude/&gt;&lt;/$list&gt;\n&lt;/div&gt;\n\n&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n&lt;$set name=\&quot;resultCount\&quot; value=\&quot;\&quot;\&quot;&lt;$count filter={{$:/temp/advancedsearch}}/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;div class=\&quot;tc-search-results\&quot;&gt;\n&lt;&lt;lingo Filter/Matches&gt;&gt;\n&lt;$list filter={{$:/temp/advancedsearch}}&gt;\n&lt;span class={{{[&lt;currentTiddler&gt;addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}&gt;\n&lt;$transclude tiddler=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$set&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear&quot;: {
&quot;title&quot;: &quot;$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear&quot;,
&quot;tags&quot;: &quot;$:/tags/AdvancedSearch/FilterButton&quot;,
&quot;text&quot;: &quot;&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;cancel-search-actions&gt;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=\&quot;\&quot;\&quot;.tc-advanced-search input\&quot;\&quot;\&quot; /&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete&quot;: {
&quot;title&quot;: &quot;$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete&quot;,
&quot;tags&quot;: &quot;$:/tags/AdvancedSearch/FilterButton&quot;,
&quot;text&quot;: &quot;&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/filterDeleteDropdown\&quot;&gt;&gt; class=\&quot;tc-btn-invisible\&quot;&gt;\n{{$:/core/images/delete-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/filterDeleteDropdown\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;belowleft\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;div class=\&quot;tc-block-dropdown-wrapper\&quot;&gt;\n&lt;div class=\&quot;tc-block-dropdown tc-edit-type-dropdown\&quot;&gt;\n&lt;div class=\&quot;tc-dropdown-item-plain\&quot;&gt;\n&lt;$set name=\&quot;resultCount\&quot; value=\&quot;\&quot;\&quot;&lt;$count filter={{$:/temp/advancedsearch}}/&gt;\&quot;\&quot;\&quot;&gt;\nAre you sure you wish to delete &lt;&lt;resultCount&gt;&gt; tiddler(s)?\n&lt;/$set&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-dropdown-item-plain\&quot;&gt;\n&lt;$button class=\&quot;tc-btn\&quot;&gt;\n&lt;$action-deletetiddler $filter={{$:/temp/advancedsearch}}/&gt;\nDelete these tiddlers\n&lt;/$button&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown&quot;,
&quot;tags&quot;: &quot;$:/tags/AdvancedSearch/FilterButton&quot;,
&quot;text&quot;: &quot;&lt;span class=\&quot;tc-popup-keep\&quot;&gt;\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/filterDropdown\&quot;&gt;&gt; class=\&quot;tc-btn-invisible\&quot;&gt;\n{{$:/core/images/down-arrow}}\n&lt;/$button&gt;\n&lt;/span&gt;\n\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/filterDropdown\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;belowleft\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;$set name=\&quot;tv-show-missing-links\&quot; value=\&quot;yes\&quot;&gt;\n&lt;$linkcatcher actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&quot; text=&lt;&lt;navigateTo&gt;&gt;/&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/input\&quot; text=&lt;&lt;navigateTo&gt;&gt;/&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/refresh\&quot; text=\&quot;yes\&quot;/&gt;&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param='.tc-advanced-search input' /&gt;\&quot;\&quot;\&quot;&gt;\n&lt;div class=\&quot;tc-block-dropdown-wrapper\&quot;&gt;\n&lt;div class=\&quot;tc-block-dropdown tc-edit-type-dropdown\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/Filter]]\&quot;&gt;&lt;$link to={{!!filter}}&gt;&lt;$transclude field=\&quot;description\&quot;/&gt;&lt;/$link&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/$linkcatcher&gt;\n&lt;/$set&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/AdvancedSearch/Filter/FilterButtons/export&quot;: {
&quot;title&quot;: &quot;$:/core/ui/AdvancedSearch/Filter/FilterButtons/export&quot;,
&quot;tags&quot;: &quot;$:/tags/AdvancedSearch/FilterButton&quot;,
&quot;text&quot;: &quot;&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n&lt;$macrocall $name=\&quot;exportButton\&quot; exportFilter={{$:/temp/advancedsearch}} lingoBase=\&quot;$:/language/Buttons/ExportTiddlers/\&quot;/&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/AdvancedSearch/Shadows&quot;: {
&quot;title&quot;: &quot;$:/core/ui/AdvancedSearch/Shadows&quot;,
&quot;tags&quot;: &quot;$:/tags/AdvancedSearch&quot;,
&quot;caption&quot;: &quot;{{$:/language/Search/Shadows/Caption}}&quot;,
&quot;first-search-filter&quot;: &quot;[all[shadows]search&lt;userInput&gt;sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Search/\n\n\\define set-next-input-tab(beforeafter:\&quot;after\&quot;) &lt;$macrocall $name=\&quot;change-input-tab\&quot; stateTitle=\&quot;$:/state/tab--1498284803\&quot; tag=\&quot;$:/tags/AdvancedSearch\&quot; beforeafter=\&quot;$beforeafter$\&quot; defaultState=\&quot;$:/core/ui/AdvancedSearch/System\&quot; actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/state/advancedsearch/currentTab\&quot; text=&lt;&lt;nextTab&gt;&gt;/&gt;\&quot;\&quot;\&quot;/&gt;\n\n\\define cancel-search-actions() &lt;$list filter=\&quot;[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$action-deletetiddler $filter=\&quot;[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\&quot; /&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/input\&quot; text={{$:/temp/advancedsearch}}/&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/refresh\&quot; text=\&quot;yes\&quot;/&gt;&lt;/$list&gt;&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=\&quot;\&quot;\&quot;.tc-advanced-search input\&quot;\&quot;\&quot;/&gt;\n\n\\define input-accept-actions() &lt;$list filter=\&quot;[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]!is[missing]] ~[&lt;__tiddler__&gt;get[text]is[shadow]]\&quot;&gt;&lt;$action-navigate $to={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-navigate $to={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;\n\n\\define input-accept-variant-actions() &lt;$list filter=\&quot;[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]!is[missing]] ~[&lt;__tiddler__&gt;get[text]is[shadow]]\&quot;&gt;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]minlength[1]]\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-edit-tiddler\&quot; $param={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;&lt;/$list&gt;\&quot;\&quot;\&quot;&gt;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]minlength[1]]\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-edit-tiddler\&quot; $param={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;&lt;/$list&gt;\n\n&lt;&lt;lingo Shadows/Hint&gt;&gt;\n\n&lt;div class=\&quot;tc-search\&quot;&gt;\n&lt;$keyboard key=\&quot;((input-tab-right))\&quot; actions=&lt;&lt;set-next-input-tab&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((input-tab-left))\&quot; actions=&lt;&lt;set-next-input-tab \&quot;before\&quot;&gt;&gt;&gt;\n&lt;$macrocall $name=\&quot;keyboard-driven-input\&quot; tiddler=\&quot;$:/temp/advancedsearch/input\&quot; storeTitle=\&quot;$:/temp/advancedsearch\&quot;\n\t\trefreshTitle=\&quot;$:/temp/advancedsearch/refresh\&quot; selectionStateTitle=\&quot;$:/temp/advancedsearch/selected-item\&quot; type=\&quot;search\&quot;\n\t\ttag=\&quot;input\&quot; focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\&quot;[[$:/core/ui/AdvancedSearch/Shadows]]\&quot;\n\t\tinputCancelActions=&lt;&lt;cancel-search-actions&gt;&gt; inputAcceptActions=&lt;&lt;input-accept-actions&gt;&gt; \n\t\tinputAcceptVariantActions=&lt;&lt;input-accept-variant-actions&gt;&gt; filterMinLength={{$:/config/Search/MinLength}}/&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;cancel-search-actions&gt;&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n\n&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n\n&lt;$list filter=\&quot;[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;div class=\&quot;tc-search-results\&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;\&quot;\&quot;\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$set name=\&quot;resultCount\&quot; value=\&quot;\&quot;\&quot;&lt;$count filter=\&quot;[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]\&quot;/&gt;\&quot;\&quot;\&quot;&gt;\n\n&lt;div class=\&quot;tc-search-results\&quot;&gt;\n\n&lt;&lt;lingo Shadows/Matches&gt;&gt;\n\n&lt;$list filter=\&quot;[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]\&quot;&gt;\n&lt;span class={{{[&lt;currentTiddler&gt;addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}&gt;\n&lt;$transclude tiddler=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n\n&lt;/div&gt;\n\n&lt;/$set&gt;\n\n&lt;/$list&gt;\n\n&lt;/$reveal&gt;\n\n&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;match\&quot; text=\&quot;\&quot;&gt;\n\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/AdvancedSearch/Standard&quot;: {
&quot;title&quot;: &quot;$:/core/ui/AdvancedSearch/Standard&quot;,
&quot;tags&quot;: &quot;$:/tags/AdvancedSearch&quot;,
&quot;caption&quot;: &quot;{{$:/language/Search/Standard/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\&quot;after\&quot;) &lt;$macrocall $name=\&quot;change-input-tab\&quot; stateTitle=\&quot;$:/state/tab--1498284803\&quot; tag=\&quot;$:/tags/AdvancedSearch\&quot; beforeafter=\&quot;$beforeafter$\&quot; defaultState=\&quot;$:/core/ui/AdvancedSearch/System\&quot; actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/state/advancedsearch/currentTab\&quot; text=&lt;&lt;nextTab&gt;&gt;/&gt;\&quot;\&quot;\&quot;/&gt;\n\n\\define next-search-tab(beforeafter:\&quot;after\&quot;) &lt;$macrocall $name=\&quot;change-input-tab\&quot; stateTitle=\&quot;$:/state/tab/search-results/advancedsearch\&quot; tag=\&quot;$:/tags/SearchResults\&quot; beforeafter=\&quot;$beforeafter$\&quot; defaultState={{$:/config/SearchResults/Default}} actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/state/advancedsearch/standard/currentTab\&quot; text=&lt;&lt;nextTab&gt;&gt;/&gt;\&quot;\&quot;\&quot;/&gt;\n\n\\define cancel-search-actions() &lt;$list filter=\&quot;[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$action-deletetiddler $filter=\&quot;[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\&quot; /&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/input\&quot; text={{$:/temp/advancedsearch}}/&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/refresh\&quot; text=\&quot;yes\&quot;/&gt;&lt;/$list&gt;&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=\&quot;\&quot;\&quot;.tc-advanced-search input\&quot;\&quot;\&quot;/&gt;\n\n\\define input-accept-actions() &lt;$list filter=\&quot;[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]!is[missing]] ~[&lt;__tiddler__&gt;get[text]is[shadow]]\&quot;&gt;&lt;$action-navigate $to={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-navigate $to={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;\n\n\\define input-accept-variant-actions() &lt;$list filter=\&quot;[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]!is[missing]] ~[&lt;__tiddler__&gt;get[text]is[shadow]]\&quot;&gt;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]minlength[1]]\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-edit-tiddler\&quot; $param={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;&lt;/$list&gt;\&quot;\&quot;\&quot;&gt;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]minlength[1]]\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-edit-tiddler\&quot; $param={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;&lt;/$list&gt;\n\n&lt;&lt;lingo Standard/Hint&gt;&gt;\n\n&lt;div class=\&quot;tc-search\&quot;&gt;\n&lt;$keyboard key=\&quot;((input-tab-right))\&quot; actions=&lt;&lt;set-next-input-tab&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((input-tab-left))\&quot; actions=&lt;&lt;set-next-input-tab \&quot;before\&quot;&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;shift-alt-Right\&quot; actions=&lt;&lt;next-search-tab&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;shift-alt-Left\&quot; actions=&lt;&lt;next-search-tab \&quot;before\&quot;&gt;&gt;&gt;\n&lt;$macrocall $name=\&quot;keyboard-driven-input\&quot; tiddler=\&quot;$:/temp/advancedsearch/input\&quot; storeTitle=\&quot;$:/temp/advancedsearch\&quot;\n\t\trefreshTitle=\&quot;$:/temp/advancedsearch/refresh\&quot; selectionStateTitle=\&quot;$:/temp/advancedsearch/selected-item\&quot; type=\&quot;search\&quot;\n\t\ttag=\&quot;input\&quot; focus={{$:/config/Search/AutoFocus}} inputCancelActions=&lt;&lt;cancel-search-actions&gt;&gt; \n\t\tinputAcceptActions=&lt;&lt;input-accept-actions&gt;&gt; inputAcceptVariantActions=&lt;&lt;input-accept-variant-actions&gt;&gt; \n\t\tconfigTiddlerFilter=\&quot;[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\&quot;\n\t\tfilterMinLength={{$:/config/Search/MinLength}}/&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;cancel-search-actions&gt;&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n\n&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n&lt;$list filter=\&quot;[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;div class=\&quot;tc-search-results\&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;\&quot;\&quot;\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$vars userInput={{{ [[$:/temp/advancedsearch]get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}} searchListState=\&quot;$:/temp/advancedsearch/selected-item\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\&quot;&gt;\n&lt;$transclude/&gt;\n&lt;/$list&gt;\n\&quot;\&quot;\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\&quot; default={{$:/config/SearchResults/Default}} actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/state/advancedsearch/standard/currentTab\&quot; text=&lt;&lt;currentTab&gt;&gt;/&gt;\&quot;\&quot;\&quot; explicitState=\&quot;$:/state/tab/search-results/advancedsearch\&quot; /&gt;\n&lt;/$list&gt;\n&lt;/$vars&gt;\n&lt;/$list&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/AdvancedSearch/System&quot;: {
&quot;title&quot;: &quot;$:/core/ui/AdvancedSearch/System&quot;,
&quot;tags&quot;: &quot;$:/tags/AdvancedSearch&quot;,
&quot;caption&quot;: &quot;{{$:/language/Search/System/Caption}}&quot;,
&quot;first-search-filter&quot;: &quot;[is[system]search&lt;userInput&gt;sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\&quot;after\&quot;,stateTitle,tag,defaultState,currentTabTiddler) &lt;$macrocall $name=\&quot;change-input-tab\&quot; stateTitle=\&quot;$:/state/tab--1498284803\&quot; tag=\&quot;$:/tags/AdvancedSearch\&quot; beforeafter=\&quot;$beforeafter$\&quot; defaultState=\&quot;$:/core/ui/AdvancedSearch/System\&quot; actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/state/advancedsearch/currentTab\&quot; text=&lt;&lt;nextTab&gt;&gt;/&gt;\&quot;\&quot;\&quot;/&gt;\n\n\\define cancel-search-actions() &lt;$list filter=\&quot;[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$action-deletetiddler $filter=\&quot;[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\&quot; /&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/input\&quot; text={{$:/temp/advancedsearch}}/&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/refresh\&quot; text=\&quot;yes\&quot;/&gt;&lt;/$list&gt;&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=\&quot;\&quot;\&quot;.tc-advanced-search input\&quot;\&quot;\&quot;/&gt;\n\n\\define input-accept-actions() &lt;$list filter=\&quot;[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]!is[missing]] ~[&lt;__tiddler__&gt;get[text]is[shadow]]\&quot;&gt;&lt;$action-navigate $to={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-navigate $to={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;\n\n\\define input-accept-variant-actions() &lt;$list filter=\&quot;[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]!is[missing]] ~[&lt;__tiddler__&gt;get[text]is[shadow]]\&quot;&gt;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]minlength[1]]\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-edit-tiddler\&quot; $param={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;&lt;/$list&gt;\&quot;\&quot;\&quot;&gt;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]minlength[1]]\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-edit-tiddler\&quot; $param={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;&lt;/$list&gt;\n\n&lt;&lt;lingo System/Hint&gt;&gt;\n\n&lt;div class=\&quot;tc-search\&quot;&gt;\n&lt;$keyboard key=\&quot;((input-tab-right))\&quot; actions=&lt;&lt;set-next-input-tab&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((input-tab-left))\&quot; actions=&lt;&lt;set-next-input-tab \&quot;before\&quot;&gt;&gt;&gt;\n&lt;$macrocall $name=\&quot;keyboard-driven-input\&quot; tiddler=\&quot;$:/temp/advancedsearch/input\&quot; storeTitle=\&quot;$:/temp/advancedsearch\&quot;\n\t\trefreshTitle=\&quot;$:/temp/advancedsearch/refresh\&quot; selectionStateTitle=\&quot;$:/temp/advancedsearch/selected-item\&quot;\n\t\ttype=\&quot;search\&quot; tag=\&quot;input\&quot; focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\&quot;[[$:/core/ui/AdvancedSearch/System]]\&quot;\n\t\tinputCancelActions=&lt;&lt;cancel-search-actions&gt;&gt; inputAcceptActions=&lt;&lt;input-accept-actions&gt;&gt; \n\t\tinputAcceptVariantActions=&lt;&lt;input-accept-variant-actions&gt;&gt; filterMinLength={{$:/config/Search/MinLength}}/&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;cancel-search-actions&gt;&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n\n&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n\n&lt;$list filter=\&quot;[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;div class=\&quot;tc-search-results\&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;\&quot;\&quot;\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$set name=\&quot;resultCount\&quot; value=\&quot;\&quot;\&quot;&lt;$count filter=\&quot;[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]\&quot;/&gt;\&quot;\&quot;\&quot;&gt;\n\n&lt;div class=\&quot;tc-search-results\&quot;&gt;\n\n&lt;&lt;lingo System/Matches&gt;&gt;\n\n&lt;$list filter=\&quot;[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]\&quot;&gt;\n&lt;span class={{{[&lt;currentTiddler&gt;addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}&gt;\n&lt;$transclude tiddler=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n\n&lt;/div&gt;\n\n&lt;/$set&gt;\n\n&lt;/$list&gt;\n\n&lt;/$reveal&gt;\n\n&lt;$reveal state=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;match\&quot; text=\&quot;\&quot;&gt;\n\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/AdvancedSearch&quot;: {
&quot;title&quot;: &quot;$:/AdvancedSearch&quot;,
&quot;icon&quot;: &quot;$:/core/images/advanced-search-button&quot;,
&quot;color&quot;: &quot;#bbb&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-advanced-search\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]\&quot; default=\&quot;$:/core/ui/AdvancedSearch/System\&quot; actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/state/advancedsearch/currentTab\&quot; text=&lt;&lt;currentTab&gt;&gt;/&gt;\&quot;\&quot;\&quot; explicitState=\&quot;$:/state/tab--1498284803\&quot;/&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/AlertTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/AlertTemplate&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-alert\&quot;&gt;\n&lt;div class=\&quot;tc-alert-toolbar\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;&lt;$action-deletetiddler $tiddler=&lt;&lt;currentTiddler&gt;&gt;/&gt;{{$:/core/images/cancel-button}}&lt;/$button&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-alert-subtitle\&quot;&gt;\n&lt;$wikify name=\&quot;format\&quot; text=&lt;&lt;lingo Tiddler/DateFormat&gt;&gt;&gt;\n&lt;$view field=\&quot;component\&quot;/&gt; - &lt;$view field=\&quot;modified\&quot; format=\&quot;date\&quot; template=&lt;&lt;format&gt;&gt;/&gt; &lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;!!count\&quot; text=\&quot;\&quot;&gt;&lt;span class=\&quot;tc-alert-highlight\&quot;&gt;({{$:/language/Count}}: &lt;$view field=\&quot;count\&quot;/&gt;)&lt;/span&gt;&lt;/$reveal&gt;\n&lt;/$wikify&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-alert-body\&quot;&gt;\n\n&lt;$transclude/&gt;\n\n&lt;/div&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/BinaryWarning&quot;: {
&quot;title&quot;: &quot;$:/core/ui/BinaryWarning&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/BinaryWarning/\n&lt;&lt;lingo Prompt&gt;&gt;\n&quot;
},
&quot;$:/core/ui/Components/plugin-info&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Components/plugin-info&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n\\define popup-state-macro()\n$(qualified-state)$-$(currentTiddler)$\n\\end\n\n\\define tabs-state-macro()\n$(popup-state)$-$(pluginInfoType)$\n\\end\n\n\\define plugin-icon-title()\n$(currentTiddler)$/icon\n\\end\n\n\\define plugin-disable-title()\n$:/config/Plugins/Disabled/$(currentTiddler)$\n\\end\n\n\\define plugin-table-body(type,disabledMessage,default-popup-state)\n&lt;div class=\&quot;tc-plugin-info-chunk tc-plugin-info-toggle\&quot;&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;popup-state&gt;&gt; text=\&quot;yes\&quot; default=\&quot;\&quot;\&quot;$default-popup-state$\&quot;\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot; set=&lt;&lt;popup-state&gt;&gt; setTo=\&quot;yes\&quot;&gt;\n{{$:/core/images/chevron-right}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;popup-state&gt;&gt; text=\&quot;yes\&quot; default=\&quot;\&quot;\&quot;$default-popup-state$\&quot;\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot; set=&lt;&lt;popup-state&gt;&gt; setTo=\&quot;no\&quot;&gt;\n{{$:/core/images/chevron-down}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-plugin-info-chunk tc-plugin-info-icon\&quot;&gt;\n&lt;$transclude tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;plugin-icon-title&gt;&gt;&gt;\n&lt;$transclude tiddler=\&quot;$:/core/images/plugin-generic-$type$\&quot;/&gt;\n&lt;/$transclude&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-plugin-info-chunk tc-plugin-info-description\&quot;&gt;\n&lt;h1&gt;\n''&lt;$text text={{{ [&lt;currentTiddler&gt;get[name]] ~[&lt;currentTiddler&gt;split[/]last[1]] }}}/&gt;'': &lt;$view field=\&quot;description\&quot;&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$view&gt; $disabledMessage$\n&lt;/h1&gt;\n&lt;h2&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n&lt;/h2&gt;\n&lt;h2&gt;\n&lt;div&gt;&lt;em&gt;&lt;$view field=\&quot;version\&quot;/&gt;&lt;/em&gt;&lt;/div&gt;\n&lt;/h2&gt;\n&lt;/div&gt;\n\\end\n\n\\define plugin-info(type,default-popup-state)\n&lt;$set name=\&quot;popup-state\&quot; value=&lt;&lt;popup-state-macro&gt;&gt;&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;plugin-disable-title&gt;&gt; text=\&quot;yes\&quot;&gt;\n&lt;$link to={{!!title}} class=\&quot;tc-plugin-info\&quot;&gt;\n&lt;&lt;plugin-table-body type:\&quot;$type$\&quot; default-popup-state:\&quot;\&quot;\&quot;$default-popup-state$\&quot;\&quot;\&quot;&gt;&gt;\n&lt;/$link&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;plugin-disable-title&gt;&gt; text=\&quot;yes\&quot;&gt;\n&lt;$link to={{!!title}} class=\&quot;tc-plugin-info tc-plugin-info-disabled\&quot;&gt;\n&lt;&lt;plugin-table-body type:\&quot;$type$\&quot; default-popup-state:\&quot;\&quot;\&quot;$default-popup-state$\&quot;\&quot;\&quot; disabledMessage:\&quot;&lt;$macrocall $name='lingo' title='Disabled/Status'/&gt;\&quot;&gt;&gt;\n&lt;/$link&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; text=\&quot;yes\&quot; state=&lt;&lt;popup-state&gt;&gt; default=\&quot;\&quot;\&quot;$default-popup-state$\&quot;\&quot;\&quot;&gt;\n&lt;div class=\&quot;tc-plugin-info-dropdown\&quot;&gt;\n&lt;div class=\&quot;tc-plugin-info-dropdown-body\&quot;&gt;\n&lt;$list filter=\&quot;[all[current]] -[[$:/core]]\&quot;&gt;\n&lt;div style=\&quot;float:right;\&quot;&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;plugin-disable-title&gt;&gt; text=\&quot;yes\&quot;&gt;\n&lt;$button set=&lt;&lt;plugin-disable-title&gt;&gt; setTo=\&quot;yes\&quot; tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}&gt;\n&lt;&lt;lingo Disable/Caption&gt;&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;plugin-disable-title&gt;&gt; text=\&quot;yes\&quot;&gt;\n&lt;$button set=&lt;&lt;plugin-disable-title&gt;&gt; setTo=\&quot;no\&quot; tooltip={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}&gt;\n&lt;&lt;lingo Enable/Caption&gt;&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;$set name=\&quot;tabsList\&quot; filter=\&quot;[&lt;currentTiddler&gt;list[]] contents\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; state=&lt;&lt;tabs-state-macro&gt;&gt; tabsList=&lt;&lt;tabsList&gt;&gt; default={{{ [enlist&lt;tabsList&gt;] }}} template=\&quot;$:/core/ui/PluginInfo\&quot;/&gt;\n&lt;/$set&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/$set&gt;\n\\end\n\n&lt;$macrocall $name=\&quot;plugin-info\&quot; type=&lt;&lt;plugin-type&gt;&gt; default-popup-state=&lt;&lt;default-popup-state&gt;&gt;/&gt;\n&quot;
},
&quot;$:/core/ui/Components/tag-link&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Components/tag-link&quot;,
&quot;text&quot;: &quot;&lt;$link&gt;\n&lt;$set name=\&quot;backgroundColor\&quot; value={{!!color}}&gt;\n&lt;span style=&lt;&lt;tag-styles&gt;&gt; class=\&quot;tc-tag-label\&quot;&gt;\n&lt;$view field=\&quot;title\&quot; format=\&quot;text\&quot;/&gt;\n&lt;/span&gt;\n&lt;/$set&gt;\n&lt;/$link&gt;&quot;
},
&quot;$:/core/ui/ControlPanel/Advanced&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Advanced&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Info&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Advanced/Caption}}&quot;,
&quot;text&quot;: &quot;{{$:/language/ControlPanel/Advanced/Hint}}\n\n&lt;div class=\&quot;tc-control-panel\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Advanced]!has[draft.of]]\&quot; default=\&quot;$:/core/ui/ControlPanel/TiddlerFields\&quot; explicitState=\&quot;$:/state/tab--959111941\&quot;/&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Appearance&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Appearance&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Appearance/Caption}}&quot;,
&quot;text&quot;: &quot;{{$:/language/ControlPanel/Appearance/Hint}}\n\n&lt;div class=\&quot;tc-control-panel\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Appearance]!has[draft.of]]\&quot; default=\&quot;$:/core/ui/ControlPanel/Theme\&quot; explicitState=\&quot;$:/state/tab--1963855381\&quot;/&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Basics&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Basics&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Info&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Basics/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Basics/\n\n\\define show-filter-count(filter)\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&quot; $value=\&quot;\&quot;\&quot;$filter$\&quot;\&quot;\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/input\&quot; $value=\&quot;\&quot;\&quot;$filter$\&quot;\&quot;\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/refresh\&quot; text=\&quot;yes\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/state/tab--1498284803\&quot; $value=\&quot;$:/core/ui/AdvancedSearch/Filter\&quot;/&gt;\n&lt;$action-navigate $to=\&quot;$:/AdvancedSearch\&quot;/&gt;\n&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=\&quot;.tc-advanced-search input\&quot;/&gt;\n''&lt;$count filter=\&quot;\&quot;\&quot;$filter$\&quot;\&quot;\&quot;/&gt;''\n{{$:/core/images/advanced-search-button}}\n&lt;/$button&gt;\n\\end\n\n|&lt;&lt;lingo Version/Prompt&gt;&gt; |''&lt;&lt;version&gt;&gt;'' |\n|&lt;$link to=\&quot;$:/SiteTitle\&quot;&gt;&lt;&lt;lingo Title/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/SiteTitle\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/SiteSubtitle\&quot;&gt;&lt;&lt;lingo Subtitle/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/SiteSubtitle\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/status/UserName\&quot;&gt;&lt;&lt;lingo Username/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/status/UserName\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/config/AnimationDuration\&quot;&gt;&lt;&lt;lingo AnimDuration/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/config/AnimationDuration\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/DefaultTiddlers\&quot;&gt;&lt;&lt;lingo DefaultTiddlers/Prompt&gt;&gt;&lt;/$link&gt; |&lt;&lt;lingo DefaultTiddlers/TopHint&gt;&gt;&lt;br&gt; &lt;$edit tag=\&quot;textarea\&quot; tiddler=\&quot;$:/DefaultTiddlers\&quot; class=\&quot;tc-edit-texteditor\&quot;/&gt;&lt;br&gt;//&lt;&lt;lingo DefaultTiddlers/BottomHint&gt;&gt;// |\n|&lt;$link to=\&quot;$:/language/DefaultNewTiddlerTitle\&quot;&gt;&lt;&lt;lingo NewTiddler/Title/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/language/DefaultNewTiddlerTitle\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/config/NewJournal/Title\&quot;&gt;&lt;&lt;lingo NewJournal/Title/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/config/NewJournal/Title\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/config/NewJournal/Text\&quot;&gt;&lt;&lt;lingo NewJournal/Text/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit tiddler=\&quot;$:/config/NewJournal/Text\&quot; tag=\&quot;textarea\&quot; class=\&quot;tc-edit-texteditor\&quot; default=\&quot;\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/config/NewTiddler/Tags\&quot;&gt;&lt;&lt;lingo NewTiddler/Tags/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$vars currentTiddler=\&quot;$:/config/NewTiddler/Tags\&quot; tagField=\&quot;text\&quot;&gt;{{||$:/core/ui/EditTemplate/tags}}&lt;$list filter=\&quot;[&lt;currentTiddler&gt;tags[]] +[limit[1]]\&quot; variable=\&quot;ignore\&quot;&gt;&lt;$button tooltip={{$:/language/ControlPanel/Basics/RemoveTags/Hint}}&gt;&lt;&lt;lingo RemoveTags&gt;&gt;&lt;$action-listops $tiddler=&lt;&lt;currentTiddler&gt;&gt; $field=\&quot;text\&quot; $subfilter={{{ [&lt;currentTiddler&gt;get[tags]] }}}/&gt;&lt;$action-setfield $tiddler=&lt;&lt;currentTiddler&gt;&gt; tags=\&quot;\&quot;/&gt;&lt;/$button&gt;&lt;/$list&gt;&lt;/$vars&gt; |\n|&lt;$link to=\&quot;$:/config/NewJournal/Tags\&quot;&gt;&lt;&lt;lingo NewJournal/Tags/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$vars currentTiddler=\&quot;$:/config/NewJournal/Tags\&quot; tagField=\&quot;text\&quot;&gt;{{||$:/core/ui/EditTemplate/tags}}&lt;$list filter=\&quot;[&lt;currentTiddler&gt;tags[]] +[limit[1]]\&quot; variable=\&quot;ignore\&quot;&gt;&lt;$button tooltip={{$:/language/ControlPanel/Basics/RemoveTags/Hint}}&gt;&lt;&lt;lingo RemoveTags&gt;&gt;&lt;$action-listops $tiddler=&lt;&lt;currentTiddler&gt;&gt; $field=\&quot;text\&quot; $subfilter={{{ [&lt;currentTiddler&gt;get[tags]] }}}/&gt;&lt;$action-setfield $tiddler=&lt;&lt;currentTiddler&gt;&gt; tags=\&quot;\&quot;/&gt;&lt;/$button&gt;&lt;/$list&gt;&lt;/$vars&gt; |\n|&lt;$link to=\&quot;$:/config/AutoFocus\&quot;&gt;&lt;&lt;lingo AutoFocus/Prompt&gt;&gt;&lt;/$link&gt; |{{$:/snippets/minifocusswitcher}} |\n|&lt;&lt;lingo Language/Prompt&gt;&gt; |{{$:/snippets/minilanguageswitcher}} |\n|&lt;&lt;lingo Tiddlers/Prompt&gt;&gt; |&lt;&lt;show-filter-count \&quot;[!is[system]sort[title]]\&quot;&gt;&gt; |\n|&lt;&lt;lingo Tags/Prompt&gt;&gt; |&lt;&lt;show-filter-count \&quot;[tags[]sort[title]]\&quot;&gt;&gt; |\n|&lt;&lt;lingo SystemTiddlers/Prompt&gt;&gt; |&lt;&lt;show-filter-count \&quot;[is[system]sort[title]]\&quot;&gt;&gt; |\n|&lt;&lt;lingo ShadowTiddlers/Prompt&gt;&gt; |&lt;&lt;show-filter-count \&quot;[all[shadows]sort[title]]\&quot;&gt;&gt; |\n|&lt;&lt;lingo OverriddenShadowTiddlers/Prompt&gt;&gt; |&lt;&lt;show-filter-count \&quot;[is[tiddler]is[shadow]sort[title]]\&quot;&gt;&gt; |\n&quot;
},
&quot;$:/core/ui/ControlPanel/EditorTypes&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/EditorTypes&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Advanced&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/EditorTypes/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/EditorTypes/\n\n&lt;&lt;lingo Hint&gt;&gt;\n\n&lt;table&gt;\n&lt;tbody&gt;\n&lt;tr&gt;\n&lt;th&gt;&lt;&lt;lingo Type/Caption&gt;&gt;&lt;/th&gt;\n&lt;th&gt;&lt;&lt;lingo Editor/Caption&gt;&gt;&lt;/th&gt;\n&lt;/tr&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]prefix[$:/config/EditorTypeMappings/]sort[title]]\&quot;&gt;\n&lt;tr&gt;\n&lt;td&gt;\n&lt;$link&gt;\n&lt;$list filter=\&quot;[all[current]removeprefix[$:/config/EditorTypeMappings/]]\&quot;&gt;\n&lt;$text text={{!!title}}/&gt;\n&lt;/$list&gt;\n&lt;/$link&gt;\n&lt;/td&gt;\n&lt;td&gt;\n&lt;$view field=\&quot;text\&quot;/&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;/$list&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Info&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Info&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Info/Caption}}&quot;,
&quot;text&quot;: &quot;{{$:/language/ControlPanel/Info/Hint}}\n\n&lt;div class=\&quot;tc-control-panel\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Info]!has[draft.of]]\&quot; default=\&quot;$:/core/ui/ControlPanel/Basics\&quot; explicitState=\&quot;$:/state/tab--2112689675\&quot;/&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/KeyboardShortcuts&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/KeyboardShortcuts&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/KeyboardShortcuts/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/KeyboardShortcuts/\n\n\\define new-shortcut(title)\n&lt;div class=\&quot;tc-dropdown-item-plain\&quot;&gt;\n&lt;$edit-shortcut tiddler=\&quot;$title$\&quot; placeholder={{$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt}} focus=\&quot;true\&quot; style=\&quot;width:auto;\&quot;/&gt; &lt;$button&gt;\n&lt;&lt;lingo Add/Caption&gt;&gt;\n&lt;$action-listops\n\t$tiddler=\&quot;$(shortcutTitle)$\&quot;\n\t$field=\&quot;text\&quot;\n\t$subfilter=\&quot;[{$title$}]\&quot;\n/&gt;\n&lt;$action-deletetiddler\n\t$tiddler=\&quot;$title$\&quot;\n/&gt;\n&lt;/$button&gt;\n&lt;/div&gt;\n\\end\n\n\\define shortcut-list-item(caption)\n&lt;td&gt;\n&lt;/td&gt;\n&lt;td style=\&quot;text-align:right;font-size:0.7em;\&quot;&gt;\n&lt;&lt;lingo Platform/$caption$&gt;&gt;\n&lt;/td&gt;\n&lt;td&gt;\n&lt;div style=\&quot;position:relative;\&quot;&gt;\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/dropdown/$(shortcutTitle)$\&quot;&gt;&gt; class=\&quot;tc-btn-invisible\&quot;&gt;\n{{$:/core/images/edit-button}}\n&lt;/$button&gt;\n&lt;$macrocall $name=\&quot;displayshortcuts\&quot; $output=\&quot;text/html\&quot; shortcuts={{$(shortcutTitle)$}} prefix=\&quot;&lt;kbd&gt;\&quot; separator=\&quot;&lt;/kbd&gt; &lt;kbd&gt;\&quot; suffix=\&quot;&lt;/kbd&gt;\&quot;/&gt;\n\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/dropdown/$(shortcutTitle)$\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;below\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;div class=\&quot;tc-block-dropdown-wrapper\&quot;&gt;\n&lt;div class=\&quot;tc-block-dropdown tc-edit-type-dropdown tc-popup-keep\&quot;&gt;\n&lt;$list filter=\&quot;[list[$(shortcutTitle)$!!text]sort[title]]\&quot; variable=\&quot;shortcut\&quot; emptyMessage=\&quot;\&quot;\&quot;\n&lt;div class=\&quot;tc-dropdown-item-plain\&quot;&gt;\n//&lt;&lt;lingo NoShortcuts/Caption&gt;&gt;//\n&lt;/div&gt;\n\&quot;\&quot;\&quot;&gt;\n&lt;div class=\&quot;tc-dropdown-item-plain\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; tooltip={{$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint}}&gt;\n&lt;$action-listops\n\t$tiddler=\&quot;$(shortcutTitle)$\&quot;\n\t$field=\&quot;text\&quot;\n\t$subfilter=\&quot;+[remove&lt;shortcut&gt;]\&quot;\n/&gt;\n&lt;small&gt;{{$:/core/images/close-button}}&lt;/small&gt;\n&lt;/$button&gt;\n&lt;kbd&gt;\n&lt;$macrocall $name=\&quot;displayshortcuts\&quot; $output=\&quot;text/html\&quot; shortcuts=&lt;&lt;shortcut&gt;&gt;/&gt;\n&lt;/kbd&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;hr/&gt;\n&lt;$macrocall $name=\&quot;new-shortcut\&quot; title=&lt;&lt;qualify \&quot;$:/state/new-shortcut/$(shortcutTitle)$\&quot;&gt;&gt;/&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;/td&gt;\n\\end\n\n\\define shortcut-list(caption,prefix)\n&lt;tr&gt;\n&lt;$list filter=\&quot;[[$prefix$$(shortcutName)$]]\&quot; variable=\&quot;shortcutTitle\&quot;&gt;\n&lt;&lt;shortcut-list-item \&quot;$caption$\&quot;&gt;&gt;\n&lt;/$list&gt;\n&lt;/tr&gt;\n\\end\n\n\\define shortcut-editor()\n&lt;&lt;shortcut-list \&quot;All\&quot; \&quot;$:/config/shortcuts/\&quot;&gt;&gt;\n&lt;&lt;shortcut-list \&quot;Mac\&quot; \&quot;$:/config/shortcuts-mac/\&quot;&gt;&gt;\n&lt;&lt;shortcut-list \&quot;NonMac\&quot; \&quot;$:/config/shortcuts-not-mac/\&quot;&gt;&gt;\n&lt;&lt;shortcut-list \&quot;Linux\&quot; \&quot;$:/config/shortcuts-linux/\&quot;&gt;&gt;\n&lt;&lt;shortcut-list \&quot;NonLinux\&quot; \&quot;$:/config/shortcuts-not-linux/\&quot;&gt;&gt;\n&lt;&lt;shortcut-list \&quot;Windows\&quot; \&quot;$:/config/shortcuts-windows/\&quot;&gt;&gt;\n&lt;&lt;shortcut-list \&quot;NonWindows\&quot; \&quot;$:/config/shortcuts-not-windows/\&quot;&gt;&gt;\n\\end\n\n\\define shortcut-preview()\n&lt;$macrocall $name=\&quot;displayshortcuts\&quot; $output=\&quot;text/html\&quot; shortcuts={{$(shortcutPrefix)$$(shortcutName)$}} prefix=\&quot;&lt;kbd&gt;\&quot; separator=\&quot;&lt;/kbd&gt; &lt;kbd&gt;\&quot; suffix=\&quot;&lt;/kbd&gt;\&quot;/&gt;\n\\end\n\n\\define shortcut-item-inner()\n&lt;tr&gt;\n&lt;td&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;dropdownStateTitle&gt;&gt; text=\&quot;open\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$action-setfield\n\t$tiddler=&lt;&lt;dropdownStateTitle&gt;&gt;\n\t$value=\&quot;open\&quot;\n/&gt;\n{{$:/core/images/right-arrow}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;dropdownStateTitle&gt;&gt; text=\&quot;open\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$action-setfield\n\t$tiddler=&lt;&lt;dropdownStateTitle&gt;&gt;\n\t$value=\&quot;close\&quot;\n/&gt;\n{{$:/core/images/down-arrow}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n''&lt;$text text=&lt;&lt;shortcutName&gt;&gt;/&gt;''\n&lt;/td&gt;\n&lt;td&gt;\n&lt;$transclude tiddler=\&quot;$:/config/ShortcutInfo/$(shortcutName)$\&quot;/&gt;\n&lt;/td&gt;\n&lt;td&gt;\n&lt;$list filter=\&quot;$:/config/shortcuts/ $:/config/shortcuts-mac/ $:/config/shortcuts-not-mac/ $:/config/shortcuts-linux/ $:/config/shortcuts-not-linux/ $:/config/shortcuts-windows/ $:/config/shortcuts-not-windows/\&quot; variable=\&quot;shortcutPrefix\&quot;&gt;\n&lt;&lt;shortcut-preview&gt;&gt;\n&lt;/$list&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;$set name=\&quot;dropdownState\&quot; value={{$(dropdownStateTitle)$}}&gt;\n&lt;$list filter=\&quot;[&lt;dropdownState&gt;match[open]]\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;&lt;shortcut-editor&gt;&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n\\end\n\n\\define shortcut-item()\n&lt;$set name=\&quot;dropdownStateTitle\&quot; value=&lt;&lt;qualify \&quot;$:/state/dropdown/keyboardshortcut/$(shortcutName)$\&quot;&gt;&gt;&gt;\n&lt;&lt;shortcut-item-inner&gt;&gt;\n&lt;/$set&gt;\n\\end\n\n&lt;table&gt;\n&lt;tbody&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]removeprefix[$:/config/ShortcutInfo/]]\&quot; variable=\&quot;shortcutName\&quot;&gt;\n&lt;&lt;shortcut-item&gt;&gt;\n&lt;/$list&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/LoadedModules&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/LoadedModules&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Advanced&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/LoadedModules/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/\n&lt;&lt;lingo LoadedModules/Hint&gt;&gt;\n\n{{$:/snippets/modules}}\n&quot;
},
&quot;$:/core/ui/ControlPanel/Modals/AddPlugins&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Modals/AddPlugins&quot;,
&quot;subtitle&quot;: &quot;{{$:/core/images/download-button}} {{$:/language/ControlPanel/Plugins/Add/Caption}}&quot;,
&quot;text&quot;: &quot;\\define install-plugin-actions()\n&lt;$action-sendmessage $message=\&quot;tm-load-plugin-from-library\&quot; url={{!!url}} title={{$(assetInfo)$!!original-title}}/&gt;\n&lt;$set name=\&quot;url\&quot; value={{!!url}}&gt;\n&lt;$set name=\&quot;currentTiddler\&quot; value=&lt;&lt;assetInfo&gt;&gt;&gt;\n&lt;$list filter=\&quot;[enlist{!!dependents}] [{!!parent-plugin}] +[sort[name]]\&quot; variable=\&quot;dependency\&quot;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-load-plugin-from-library\&quot; url=&lt;&lt;url&gt;&gt; title=&lt;&lt;dependency&gt;&gt;/&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n\\end\n\n\\define install-plugin-button()\n&lt;div&gt;\n&lt;$set name=\&quot;libraryVersion\&quot; value={{{ [&lt;assetInfo&gt;get[version]] }}}&gt;\n&lt;$set name=\&quot;installedVersion\&quot; value={{{ [&lt;assetInfo&gt;get[original-title]get[version]] }}}&gt;\n&lt;$set name=\&quot;reinstall-type\&quot; value={{{ [&lt;libraryVersion&gt;compare:version:eq&lt;installedVersion&gt;then[tc-reinstall]] [&lt;libraryVersion&gt;compare:version:gt&lt;installedVersion&gt;then[tc-reinstall-upgrade]] [&lt;libraryVersion&gt;compare:version:lt&lt;installedVersion&gt;then[tc-reinstall-downgrade]] }}}&gt;\n&lt;$button actions=&lt;&lt;install-plugin-actions&gt;&gt; class={{{ [&lt;assetInfo&gt;get[original-title]has[version]then&lt;reinstall-type&gt;] tc-btn-invisible tc-install-plugin +[join[ ]] }}}&gt;\n{{$:/core/images/download-button}}\n&lt;$list filter=\&quot;[&lt;assetInfo&gt;get[original-title]get[version]]\&quot; variable=\&quot;ignore\&quot; emptyMessage=\&quot;{{$:/language/ControlPanel/Plugins/Install/Caption}}\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;libraryVersion&gt;compare:version:gt&lt;installedVersion&gt;]\&quot; variable=\&quot;ignore\&quot; emptyMessage=\&quot;\&quot;\&quot;\n&lt;$list filter=\&quot;[&lt;libraryVersion&gt;compare:version:lt&lt;installedVersion&gt;]\&quot; variable=\&quot;ignore\&quot; emptyMessage=\&quot;{{$:/language/ControlPanel/Plugins/Reinstall/Caption}}\&quot;&gt;\n{{$:/language/ControlPanel/Plugins/Downgrade/Caption}}\n&lt;/$list&gt;\n\&quot;\&quot;\&quot;&gt;\n{{$:/language/ControlPanel/Plugins/Update/Caption}}\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;div&gt;\n&lt;/div&gt;\n&lt;$reveal stateTitle=&lt;&lt;assetInfo&gt;&gt; stateField=\&quot;requires-reload\&quot; type=\&quot;match\&quot; text=\&quot;yes\&quot;&gt;{{$:/language/ControlPanel/Plugins/PluginWillRequireReload}}&lt;/$reveal&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n&lt;/div&gt;\n\\end\n\n\\define popup-state-macro()\n$:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$\n\\end\n\n\\define display-plugin-info(type)\n&lt;$set name=\&quot;popup-state\&quot; value=&lt;&lt;popup-state-macro&gt;&gt;&gt;\n&lt;div class=\&quot;tc-plugin-info\&quot;&gt;\n&lt;div class=\&quot;tc-plugin-info-chunk tc-plugin-info-toggle\&quot;&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;popup-state&gt;&gt; text=\&quot;yes\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot; set=&lt;&lt;popup-state&gt;&gt; setTo=\&quot;yes\&quot;&gt;\n{{$:/core/images/chevron-right}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;popup-state&gt;&gt; text=\&quot;yes\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot; set=&lt;&lt;popup-state&gt;&gt; setTo=\&quot;no\&quot;&gt;\n{{$:/core/images/chevron-down}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-plugin-info-chunk tc-plugin-info-icon\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;assetInfo&gt;has[icon]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$transclude tiddler=\&quot;$:/core/images/plugin-generic-$type$\&quot;/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;img src={{$(assetInfo)$!!icon}}/&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-plugin-info-chunk tc-plugin-info-description\&quot;&gt;\n&lt;h1&gt;&lt;strong&gt;&lt;$text text={{{ [&lt;assetInfo&gt;get[name]] ~[&lt;assetInfo&gt;get[original-title]split[/]last[1]] }}}/&gt;&lt;/strong&gt;: &lt;$view tiddler=&lt;&lt;assetInfo&gt;&gt; field=\&quot;description\&quot;/&gt;&lt;/h1&gt;\n&lt;h2&gt;&lt;$view tiddler=&lt;&lt;assetInfo&gt;&gt; field=\&quot;original-title\&quot;/&gt;&lt;/h2&gt;\n&lt;div&gt;&lt;em&gt;&lt;$view tiddler=&lt;&lt;assetInfo&gt;&gt; field=\&quot;version\&quot;/&gt;&lt;/em&gt;&lt;/div&gt;\n&lt;$list filter=\&quot;[&lt;assetInfo&gt;get[original-title]get[version]]\&quot; variable=\&quot;installedVersion\&quot;&gt;&lt;div&gt;&lt;em&gt;{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}&lt;/em&gt;&lt;/div&gt;&lt;/$list&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-plugin-info-chunk tc-plugin-info-buttons\&quot;&gt;\n&lt;&lt;install-plugin-button&gt;&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;$set name=\&quot;original-title\&quot; value={{{ [&lt;assetInfo&gt;get[original-title]] }}}&gt;\n&lt;$reveal type=\&quot;match\&quot; text=\&quot;yes\&quot; state=&lt;&lt;popup-state&gt;&gt;&gt;\n&lt;div class=\&quot;tc-plugin-info-dropdown\&quot;&gt;\n&lt;$list filter=\&quot;[enlist{!!dependents}] [&lt;currentTiddler&gt;get[parent-plugin]] +[limit[1]] ~[&lt;assetInfo&gt;get[original-title]!is[tiddler]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;div class=\&quot;tc-plugin-info-dropdown-message\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;assetInfo&gt;get[original-title]!is[tiddler]]\&quot;&gt;\n{{$:/language/ControlPanel/Plugins/NotInstalled/Hint}}\n&lt;/$list&gt;\n&lt;$set name=\&quot;currentTiddler\&quot; value=&lt;&lt;assetInfo&gt;&gt;&gt;\n&lt;$list filter=\&quot;[enlist{!!dependents}] [&lt;currentTiddler&gt;get[parent-plugin]] +[limit[1]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;div&gt;\n{{$:/language/ControlPanel/Plugins/AlsoRequires}}\n&lt;$list filter=\&quot;[enlist{!!dependents}] [{!!parent-plugin}] +[sort[name]]\&quot; variable=\&quot;dependency\&quot;&gt;\n&lt;$text text=&lt;&lt;dependency&gt;&gt;/&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;div class=\&quot;tc-plugin-info-dropdown-body\&quot;&gt;\n&lt;$transclude tiddler=&lt;&lt;assetInfo&gt;&gt; field=\&quot;readme\&quot; mode=\&quot;block\&quot;/&gt;\n&lt;/div&gt;\n&lt;$list filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin&lt;original-title&gt;limit[1]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;div class=\&quot;tc-plugin-info-sub-plugins\&quot;&gt;\n&lt;$list filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin&lt;original-title&gt;sort[name]]\&quot; variable=\&quot;assetInfo\&quot;&gt;\n&lt;&lt;display-plugin-info \&quot;$type$\&quot;&gt;&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;$list filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin&lt;original-title&gt;limit[1]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; text=\&quot;yes\&quot; state=&lt;&lt;popup-state&gt;&gt; tag=\&quot;div\&quot; class=\&quot;tc-plugin-info-sub-plugin-indicator\&quot;&gt;\n&lt;$wikify name=\&quot;count\&quot; text=\&quot;\&quot;\&quot;&lt;$count filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin&lt;original-title&gt;]\&quot;/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; set=&lt;&lt;popup-state&gt;&gt; setTo=\&quot;yes\&quot;&gt;\n{{$:/language/ControlPanel/Plugins/SubPluginPrompt}}\n&lt;/$button&gt;\n&lt;/$wikify&gt;\n&lt;/$reveal&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n\\end\n\n\\define load-plugin-library-button()\n&lt;$list filter=\&quot;[&lt;currentTiddler&gt;get[enabled]else[yes]match[yes]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-big-green\&quot;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-load-plugin-library\&quot; url={{!!url}} infoTitlePrefix=\&quot;$:/temp/RemoteAssetInfo/\&quot;/&gt;\n{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Plugins/OpenPluginLibrary}}\n&lt;/$button&gt;\n&lt;/$list&gt;\n\\end\n\n\\define display-server-assets(type)\n{{$:/language/Search/Search}}: &lt;$edit-text tiddler=\&quot;\&quot;\&quot;$:/temp/RemoteAssetSearch/$(currentTiddler)$\&quot;\&quot;\&quot; default=\&quot;\&quot; type=\&quot;search\&quot; tag=\&quot;input\&quot;/&gt;\n&lt;$reveal state=\&quot;\&quot;\&quot;$:/temp/RemoteAssetSearch/$(currentTiddler)$\&quot;\&quot;\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$action-setfield $tiddler=\&quot;\&quot;\&quot;$:/temp/RemoteAssetSearch/$(currentTiddler)$\&quot;\&quot;\&quot; $field=\&quot;text\&quot; $value=\&quot;\&quot;/&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;div class=\&quot;tc-plugin-library-listing\&quot;&gt;\n&lt;$list filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]search:author,description,original-title,readme,title{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[name]]\&quot; variable=\&quot;assetInfo\&quot;&gt;\n&lt;$list filter=\&quot;[[$:/temp/RemoteAssetSearch/$(currentTiddler)$]has[text]] ~[&lt;assetInfo&gt;!has[parent-plugin]]\&quot; variable=\&quot;ignore\&quot;&gt;&lt;!-- Hide sub-plugins if we're not searching --&gt;\n&lt;&lt;display-plugin-info \&quot;$type$\&quot;&gt;&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n\\end\n\n\\define display-server-connection()\n&lt;$list filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/ServerConnection]suffix{!!url}]\&quot; variable=\&quot;connectionTiddler\&quot; emptyMessage=&lt;&lt;load-plugin-library-button&gt;&gt;&gt;\n\n&lt;$set name=\&quot;transclusion\&quot; value=&lt;&lt;connectionTiddler&gt;&gt;&gt;\n\n&lt;&lt;tabs \&quot;[[$:/core/ui/ControlPanel/Plugins/Add/Updates]] [[$:/core/ui/ControlPanel/Plugins/Add/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Add/Themes]] [[$:/core/ui/ControlPanel/Plugins/Add/Languages]]\&quot; \&quot;$:/core/ui/ControlPanel/Plugins/Add/Plugins\&quot;&gt;&gt;\n\n&lt;/$set&gt;\n\n&lt;/$list&gt;\n\\end\n\n\\define close-library-button()\n&lt;$reveal type='nomatch' state='$:/temp/ServerConnection/$(PluginLibraryURL)$' text=''&gt;\n&lt;$button class='tc-btn-big-green'&gt;\n&lt;$action-sendmessage $message=\&quot;tm-unload-plugin-library\&quot; url={{!!url}}/&gt;\n{{$:/core/images/chevron-left}} {{$:/language/ControlPanel/Plugins/ClosePluginLibrary}}\n&lt;$action-deletetiddler $filter=\&quot;[prefix[$:/temp/ServerConnection/$(PluginLibraryURL)$]][prefix[$:/temp/RemoteAssetInfo/$(PluginLibraryURL)$]]\&quot;/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n\\end\n\n\\define plugin-library-listing()\n&lt;div class=\&quot;tc-tab-set\&quot;&gt;\n&lt;$set name=\&quot;defaultTab\&quot; value={{{ [all[tiddlers+shadows]tag[$:/tags/PluginLibrary]] }}}&gt;\n&lt;div class=\&quot;tc-tab-buttons\&quot;&gt;\n&lt;$list filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]\&quot;&gt;\n&lt;$button set=&lt;&lt;qualify \&quot;$:/state/addplugins/tab\&quot;&gt;&gt; setTo=&lt;&lt;currentTiddler&gt;&gt; default=&lt;&lt;defaultTab&gt;&gt; selectedClass=\&quot;tc-tab-selected\&quot;&gt;\n&lt;$set name=\&quot;tv-wikilinks\&quot; value=\&quot;no\&quot;&gt;\n&lt;$transclude field=\&quot;caption\&quot;/&gt;\n&lt;/$set&gt;\n&lt;/$button&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-tab-divider\&quot;/&gt;\n&lt;div class=\&quot;tc-tab-content\&quot;&gt;\n&lt;$list filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]\&quot;&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;qualify \&quot;$:/state/addplugins/tab\&quot;&gt;&gt; text=&lt;&lt;currentTiddler&gt;&gt; default=&lt;&lt;defaultTab&gt;&gt;&gt;\n&lt;h2&gt;&lt;$link&gt;&lt;$transclude field=\&quot;caption\&quot;&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$transclude&gt;&lt;/$link&gt;&lt;/h2&gt;\n//&lt;$view field=\&quot;url\&quot;/&gt;//\n&lt;$transclude mode=\&quot;block\&quot;/&gt;\n&lt;$set name=PluginLibraryURL value={{!!url}}&gt;\n&lt;&lt;close-library-button&gt;&gt;\n&lt;/$set&gt;\n&lt;&lt;display-server-connection&gt;&gt;\n&lt;/$reveal&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$set&gt;\n&lt;/div&gt;\n\\end\n\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n&lt;div&gt;\n&lt;&lt;plugin-library-listing&gt;&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Palette&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Palette&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Appearance&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Palette/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Palette/\n\n{{$:/snippets/paletteswitcher}}\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/state/ShowPaletteEditor\&quot; text=\&quot;yes\&quot;&gt;\n\n&lt;$button set=\&quot;$:/state/ShowPaletteEditor\&quot; setTo=\&quot;yes\&quot;&gt;&lt;&lt;lingo ShowEditor/Caption&gt;&gt;&lt;/$button&gt;\n\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/state/ShowPaletteEditor\&quot; text=\&quot;yes\&quot;&gt;\n\n&lt;$button set=\&quot;$:/state/ShowPaletteEditor\&quot; setTo=\&quot;no\&quot;&gt;&lt;&lt;lingo HideEditor/Caption&gt;&gt;&lt;/$button&gt;\n{{$:/PaletteManager}}\n\n&lt;/$reveal&gt;\n\n&quot;
},
&quot;$:/core/ui/ControlPanel/Parsing&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Parsing&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Advanced&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Parsing/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Parsing/\n\n\\define toggle(Type)\n&lt;$checkbox\ntiddler=\&quot;\&quot;\&quot;$:/config/WikiParserRules/$Type$/$(rule)$\&quot;\&quot;\&quot;\nfield=\&quot;text\&quot;\nchecked=\&quot;enable\&quot;\nunchecked=\&quot;disable\&quot;\ndefault=\&quot;enable\&quot;&gt;\n&lt;&lt;rule&gt;&gt;\n&lt;/$checkbox&gt;\n\\end\n\n\\define rules(type,Type)\n&lt;$list filter=\&quot;[wikiparserrules[$type$]]\&quot; variable=\&quot;rule\&quot;&gt;\n&lt;dd&gt;&lt;&lt;toggle $Type$&gt;&gt;&lt;/dd&gt;\n&lt;/$list&gt;\n\\end\n\n&lt;&lt;lingo Hint&gt;&gt;\n\n&lt;dl&gt;\n&lt;dt&gt;&lt;&lt;lingo Pragma/Caption&gt;&gt;&lt;/dt&gt;\n&lt;&lt;rules pragma Pragma&gt;&gt;\n&lt;dt&gt;&lt;&lt;lingo Inline/Caption&gt;&gt;&lt;/dt&gt;\n&lt;&lt;rules inline Inline&gt;&gt;\n&lt;dt&gt;&lt;&lt;lingo Block/Caption&gt;&gt;&lt;/dt&gt;\n&lt;&lt;rules block Block&gt;&gt;\n&lt;/dl&gt;&quot;
},
&quot;$:/core/ui/ControlPanel/Plugins/Add/Languages&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Plugins/Add/Languages&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Plugins/Languages/Caption}} (&lt;$count filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[language]]\&quot;/&gt;)&quot;,
&quot;text&quot;: &quot;&lt;&lt;display-server-assets language&gt;&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Plugins/Add/Plugins&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Plugins/Add/Plugins&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (&lt;$count filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[plugin]]\&quot;/&gt;)&quot;,
&quot;text&quot;: &quot;&lt;&lt;display-server-assets plugin&gt;&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Plugins/Add/Themes&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Plugins/Add/Themes&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Plugins/Themes/Caption}} (&lt;$count filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[theme]]\&quot;/&gt;)&quot;,
&quot;text&quot;: &quot;&lt;&lt;display-server-assets theme&gt;&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Plugins/Add/Updates&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Plugins/Add/Updates&quot;,
&quot;caption&quot;: &quot;&lt;$importvariables filter=\&quot;$:/core/ui/ControlPanel/Plugins/Add/Updates\&quot;&gt;{{$:/language/ControlPanel/Plugins/Updates/Caption}} (&lt;&lt;update-count&gt;&gt;)&lt;/$importvariables&gt;&quot;,
&quot;text&quot;: &quot;\\define each-updateable-plugin(body)\n&lt;$list filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}sort[title]]\&quot; variable=\&quot;assetInfo\&quot;&gt;\n&lt;$set name=\&quot;libraryVersion\&quot; value={{{ [&lt;assetInfo&gt;get[version]] }}}&gt;\n&lt;$list filter=\&quot;[&lt;assetInfo&gt;get[original-title]has[version]!version&lt;libraryVersion&gt;]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$set name=\&quot;installedVersion\&quot; value={{{ [&lt;assetInfo&gt;get[original-title]get[version]] }}}&gt;\n&lt;$list filter=\&quot;[&lt;installedversion&gt;!match&lt;libraryVersion&gt;]\&quot; variable=\&quot;ignore\&quot;&gt;\n$body$\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n\\end\n\n\\define update-all-actions()\n&lt;$macrocall $name=\&quot;each-updateable-plugin\&quot; body=\&quot;\&quot;\&quot;\n&lt;&lt;install-plugin-actions&gt;&gt;\n\&quot;\&quot;\&quot;/&gt;\n\\end\n\n\\define update-count()\n&lt;$wikify name=\&quot;count-filter\&quot; text=&lt;&lt;each-updateable-plugin \&quot;&amp;#91;&amp;#91;&lt;$text text=&lt;&lt;assetInfo&gt;&gt;/&gt;]]\&quot;&gt;&gt;&gt;&lt;$count filter=&lt;&lt;count-filter&gt;&gt;/&gt;&lt;/$wikify&gt;\n\\end\n\n&lt;$button actions=&lt;&lt;update-all-actions&gt;&gt; class=\&quot;tc-btn-invisible tc-install-plugin tc-reinstall-upgrade\&quot;&gt;\n{{$:/core/images/download-button}} {{||$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption}}\n&lt;/$button&gt;\n\n&lt;div class=\&quot;tc-plugin-library-listing\&quot;&gt;\n&lt;$macrocall $name=\&quot;each-updateable-plugin\&quot; body=\&quot;\&quot;\&quot;\n&lt;$macrocall $name=\&quot;display-plugin-info\&quot; type={{{ [&lt;assetInfo&gt;get[original-plugin-type]] }}}/&gt;\n\&quot;\&quot;\&quot;/&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Plugins/AddPlugins&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Plugins/AddPlugins&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n&lt;$button message=\&quot;tm-modal\&quot; param=\&quot;$:/core/ui/ControlPanel/Modals/AddPlugins\&quot; tooltip={{$:/language/ControlPanel/Plugins/Add/Hint}} class=\&quot;tc-btn-big-green tc-primary-btn\&quot;&gt;\n{{$:/core/images/download-button}} &lt;&lt;lingo Add/Caption&gt;&gt;\n&lt;/$button&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Plugins/Installed/Languages&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Plugins/Installed/Languages&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Plugins/Languages/Caption}} (&lt;$count filter=\&quot;[!has[draft.of]plugin-type[language]]\&quot;/&gt;)&quot;,
&quot;text&quot;: &quot;&lt;&lt;plugin-table language&gt;&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Plugins/Installed/Plugins&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Plugins/Installed/Plugins&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (&lt;$count filter=\&quot;[!has[draft.of]plugin-type[plugin]]\&quot;/&gt;)&quot;,
&quot;text&quot;: &quot;&lt;&lt;plugin-table plugin&gt;&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Plugins/Installed/Themes&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Plugins/Installed/Themes&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Plugins/Themes/Caption}} (&lt;$count filter=\&quot;[!has[draft.of]plugin-type[theme]]\&quot;/&gt;)&quot;,
&quot;text&quot;: &quot;&lt;&lt;plugin-table theme&gt;&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Plugins&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Plugins&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Plugins/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n\\define plugin-table(type)\n&lt;$set name=\&quot;plugin-type\&quot; value=\&quot;\&quot;\&quot;$type$\&quot;\&quot;\&quot;&gt;\n&lt;$set name=\&quot;qualified-state\&quot; value=&lt;&lt;qualify \&quot;$:/state/plugin-info\&quot;&gt;&gt;&gt;\n&lt;$list filter=\&quot;[!has[draft.of]plugin-type[$type$]sort[name]]\&quot; emptyMessage=&lt;&lt;lingo \&quot;Empty/Hint\&quot;&gt;&gt; template=\&quot;$:/core/ui/Components/plugin-info\&quot;/&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n\\end\n\n{{$:/core/ui/ControlPanel/Plugins/AddPlugins}}\n\n&lt;&lt;lingo Installed/Hint&gt;&gt;\n\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[[$:/core/ui/ControlPanel/Plugins/Installed/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Installed/Themes]] [[$:/core/ui/ControlPanel/Plugins/Installed/Languages]]\&quot; default=\&quot;$:/core/ui/ControlPanel/Plugins/Installed/Plugins\&quot; explicitState=\&quot;$:/state/tab--86143343\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Saving/DownloadSaver&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Saving/DownloadSaver&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Saving&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Saving/DownloadSaver/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Saving/DownloadSaver/\n\n&lt;&lt;lingo Hint&gt;&gt;\n\n!! &lt;$link to=\&quot;$:/config/DownloadSaver/AutoSave\&quot;&gt;&lt;&lt;lingo AutoSave/Hint&gt;&gt;&lt;/$link&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/config/DownloadSaver/AutoSave\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot; default=\&quot;no\&quot;&gt; &lt;&lt;lingo AutoSave/Description&gt;&gt; &lt;/$checkbox&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Saving/General&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Saving/General&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Saving&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Saving/General/Caption}}&quot;,
&quot;list-before&quot;: &quot;&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/\n\n{{$:/language/ControlPanel/Saving/General/Hint}}\n\n!! &lt;$link to=\&quot;$:/config/AutoSave\&quot;&gt;&lt;&lt;lingo AutoSave/Caption&gt;&gt;&lt;/$link&gt;\n\n&lt;&lt;lingo AutoSave/Hint&gt;&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/AutoSave\&quot; value=\&quot;yes\&quot;&gt; &lt;&lt;lingo AutoSave/Enabled/Description&gt;&gt; &lt;/$radio&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/AutoSave\&quot; value=\&quot;no\&quot;&gt; &lt;&lt;lingo AutoSave/Disabled/Description&gt;&gt; &lt;/$radio&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Saving/GitHub&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Saving/GitHub&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Saving&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Saving/GitService/GitHub/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~GitHub\n\n&lt;&lt;lingo Description&gt;&gt;\n\n|&lt;&lt;lingo UserName&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitHub/Username\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo GitHub/Password&gt;&gt; |&lt;$password name=\&quot;github\&quot;/&gt; |\n|&lt;&lt;lingo Repo&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitHub/Repo\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Branch&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitHub/Branch\&quot; default=\&quot;master\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Path&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitHub/Path\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Filename&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitHub/Filename\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo ServerURL&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitHub/ServerURL\&quot; default=\&quot;https://api.github.com\&quot; tag=\&quot;input\&quot;/&gt; |&quot;
},
&quot;$:/core/ui/ControlPanel/Saving/GitLab&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Saving/GitLab&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Saving&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Saving/GitService/GitLab/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~GitLab\n\n&lt;&lt;lingo Description&gt;&gt;\n\n|&lt;&lt;lingo UserName&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitLab/Username\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo GitLab/Password&gt;&gt; |&lt;$password name=\&quot;gitlab\&quot;/&gt; |\n|&lt;&lt;lingo Repo&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitLab/Repo\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Branch&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitLab/Branch\&quot; default=\&quot;master\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Path&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitLab/Path\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Filename&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitLab/Filename\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo ServerURL&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/GitLab/ServerURL\&quot; default=\&quot;https://gitlab.com/api/v4\&quot; tag=\&quot;input\&quot;/&gt; |&quot;
},
&quot;$:/core/ui/ControlPanel/Saving/TiddlySpot&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Saving/TiddlySpot&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Saving&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Saving/TiddlySpot/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Saving/TiddlySpot/\n\n\\define siteURL(path)\nhttp://$(userName)$.tiddlyspot.com/$path$/\n\\end\n\\define siteLink(path)\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/UploadName\&quot; text=\&quot;\&quot;&gt;\n&lt;$set name=\&quot;userName\&quot; value={{$:/UploadName}}&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/UploadURL\&quot; text=\&quot;\&quot;&gt;\n&lt;&lt;siteURL $path$&gt;&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/UploadURL\&quot; text=\&quot;\&quot;&gt;\n&lt;$macrocall $name=resolvePath source={{$:/UploadBackupDir}} root={{$:/UploadURL}}&gt;&gt;\n&lt;/$reveal&gt;\n&lt;/$set&gt;\n&lt;/$reveal&gt;\n\\end\n\n&lt;div class=\&quot;tc-message-box\&quot;&gt;\n\n&lt;&lt;lingo ReadOnly&gt;&gt;\n\n&lt;/div&gt;\n\n&lt;&lt;lingo Description&gt;&gt;\n\n|&lt;&lt;lingo UserName&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/UploadName\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Password&gt;&gt; |&lt;$password name=\&quot;upload\&quot;/&gt; |\n|&lt;&lt;lingo Backups&gt;&gt; |&lt;&lt;siteLink backup&gt;&gt; |\n|&lt;&lt;lingo ControlPanel&gt;&gt; |&lt;&lt;siteLink controlpanel&gt;&gt; |\n\n''&lt;&lt;lingo Advanced/Heading&gt;&gt;''\n\n|&lt;&lt;lingo ServerURL&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/UploadURL\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Filename&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/UploadFilename\&quot; default=\&quot;index.html\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo UploadDir&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/UploadDir\&quot; default=\&quot;.\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo BackupDir&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/UploadBackupDir\&quot; default=\&quot;.\&quot; tag=\&quot;input\&quot;/&gt; |\n\n&lt;&lt;lingo TiddlySpot/Hint&gt;&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Saving/Gitea&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Saving/Gitea&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Saving&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Saving/GitService/Gitea/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~Gitea\n\n&lt;&lt;lingo Description&gt;&gt;\n\n|&lt;&lt;lingo UserName&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/Gitea/Username\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Gitea/Password&gt;&gt; |&lt;$password name=\&quot;Gitea\&quot;/&gt; |\n|&lt;&lt;lingo Repo&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/Gitea/Repo\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Branch&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/Gitea/Branch\&quot; default=\&quot;master\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Path&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/Gitea/Path\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo Filename&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/Gitea/Filename\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;&lt;lingo ServerURL&gt;&gt; |&lt;$edit-text tiddler=\&quot;$:/Gitea/ServerURL\&quot; default=\&quot;https://gitea/api/v1\&quot; tag=\&quot;input\&quot;/&gt; |\n&quot;
},
&quot;$:/core/ui/ControlPanel/Saving&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Saving&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Saving/Caption}}&quot;,
&quot;text&quot;: &quot;{{$:/language/ControlPanel/Saving/Hint}}\n\n&lt;div class=\&quot;tc-control-panel\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Saving]!has[draft.of]]\&quot; default=\&quot;$:/core/ui/ControlPanel/Saving/General\&quot; explicitState=\&quot;$:/state/tab-2065006209\&quot;/&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/buttonstyles/Borderless&quot;: {
&quot;title&quot;: &quot;$:/core/buttonstyles/Borderless&quot;,
&quot;tags&quot;: &quot;$:/tags/ToolbarButtonStyle&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless}}&quot;,
&quot;text&quot;: &quot;tc-btn-invisible&quot;
},
&quot;$:/core/buttonstyles/Boxed&quot;: {
&quot;title&quot;: &quot;$:/core/buttonstyles/Boxed&quot;,
&quot;tags&quot;: &quot;$:/tags/ToolbarButtonStyle&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed}}&quot;,
&quot;text&quot;: &quot;tc-btn-boxed&quot;
},
&quot;$:/core/buttonstyles/Rounded&quot;: {
&quot;title&quot;: &quot;$:/core/buttonstyles/Rounded&quot;,
&quot;tags&quot;: &quot;$:/tags/ToolbarButtonStyle&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded}}&quot;,
&quot;text&quot;: &quot;tc-btn-rounded&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/CamelCase&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/CamelCase&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/CamelCase/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/CamelCase/\n&lt;&lt;lingo Hint&gt;&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/config/WikiParserRules/Inline/wikilink\&quot; field=\&quot;text\&quot; checked=\&quot;enable\&quot; unchecked=\&quot;disable\&quot; default=\&quot;enable\&quot;&gt; &lt;$link to=\&quot;$:/config/WikiParserRules/Inline/wikilink\&quot;&gt;&lt;&lt;lingo Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption}}&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/DefaultMoreSidebarTab/\n\n&lt;$link to=\&quot;$:/config/DefaultMoreSidebarTab\&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;\n\n&lt;$select tiddler=\&quot;$:/config/DefaultMoreSidebarTab\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]\&quot;&gt;\n&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;$transclude field=\&quot;caption\&quot;&gt;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;&lt;/$transclude&gt;&lt;/option&gt;\n&lt;/$list&gt;\n&lt;/$select&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/DefaultSidebarTab&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/DefaultSidebarTab&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption}}&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/DefaultSidebarTab/\n\n&lt;$link to=\&quot;$:/config/DefaultSidebarTab\&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;\n\n&lt;$select tiddler=\&quot;$:/config/DefaultSidebarTab\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]\&quot;&gt;\n&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;$transclude field=\&quot;caption\&quot;&gt;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;&lt;/$transclude&gt;&lt;/option&gt;\n&lt;/$list&gt;\n&lt;/$select&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/EditorToolbar&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/EditorToolbar&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/EditorToolbar/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/EditorToolbar/\n&lt;&lt;lingo Hint&gt;&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/config/TextEditor/EnableToolbar\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot; default=\&quot;yes\&quot;&gt; &lt;$link to=\&quot;$:/config/TextEditor/EnableToolbar\&quot;&gt;&lt;&lt;lingo Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;\n\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/InfoPanelMode&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/InfoPanelMode&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/InfoPanelMode/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/InfoPanelMode/\n&lt;$link to=\&quot;$:/config/TiddlerInfo/Mode\&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/TiddlerInfo/Mode\&quot; value=\&quot;popup\&quot;&gt; &lt;&lt;lingo Popup/Description&gt;&gt; &lt;/$radio&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/TiddlerInfo/Mode\&quot; value=\&quot;sticky\&quot;&gt; &lt;&lt;lingo Sticky/Description&gt;&gt; &lt;/$radio&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/LinkToBehaviour&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/LinkToBehaviour&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/LinkToBehaviour/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/LinkToBehaviour/\n\n&lt;$link to=\&quot;$:/config/Navigation/openLinkFromInsideRiver\&quot;&gt;&lt;&lt;lingo \&quot;InsideRiver/Hint\&quot;&gt;&gt;&lt;/$link&gt;\n\n&lt;$select tiddler=\&quot;$:/config/Navigation/openLinkFromInsideRiver\&quot;&gt;\n &lt;option value=\&quot;above\&quot;&gt;&lt;&lt;lingo \&quot;OpenAbove\&quot;&gt;&gt;&lt;/option&gt;\n &lt;option value=\&quot;below\&quot;&gt;&lt;&lt;lingo \&quot;OpenBelow\&quot;&gt;&gt;&lt;/option&gt;\n &lt;option value=\&quot;top\&quot;&gt;&lt;&lt;lingo \&quot;OpenAtTop\&quot;&gt;&gt;&lt;/option&gt;\n &lt;option value=\&quot;bottom\&quot;&gt;&lt;&lt;lingo \&quot;OpenAtBottom\&quot;&gt;&gt;&lt;/option&gt;\n&lt;/$select&gt;\n\n&lt;$link to=\&quot;$:/config/Navigation/openLinkFromOutsideRiver\&quot;&gt;&lt;&lt;lingo \&quot;OutsideRiver/Hint\&quot;&gt;&gt;&lt;/$link&gt;\n\n&lt;$select tiddler=\&quot;$:/config/Navigation/openLinkFromOutsideRiver\&quot;&gt;\n &lt;option value=\&quot;top\&quot;&gt;&lt;&lt;lingo \&quot;OpenAtTop\&quot;&gt;&gt;&lt;/option&gt;\n &lt;option value=\&quot;bottom\&quot;&gt;&lt;&lt;lingo \&quot;OpenAtBottom\&quot;&gt;&gt;&lt;/option&gt;\n&lt;/$select&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/MissingLinks&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/MissingLinks&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/MissingLinks/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/MissingLinks/\n&lt;&lt;lingo Hint&gt;&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/config/MissingLinks\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot; default=\&quot;yes\&quot;&gt; &lt;$link to=\&quot;$:/config/MissingLinks\&quot;&gt;&lt;&lt;lingo Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;\n\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/NavigationAddressBar&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/NavigationAddressBar&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/NavigationAddressBar/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/NavigationAddressBar/\n\n&lt;$link to=\&quot;$:/config/Navigation/UpdateAddressBar\&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/Navigation/UpdateAddressBar\&quot; value=\&quot;permaview\&quot;&gt; &lt;&lt;lingo Permaview/Description&gt;&gt; &lt;/$radio&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/Navigation/UpdateAddressBar\&quot; value=\&quot;permalink\&quot;&gt; &lt;&lt;lingo Permalink/Description&gt;&gt; &lt;/$radio&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/Navigation/UpdateAddressBar\&quot; value=\&quot;no\&quot;&gt; &lt;&lt;lingo No/Description&gt;&gt; &lt;/$radio&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/NavigationHistory&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/NavigationHistory&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/NavigationHistory/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/NavigationHistory/\n&lt;$link to=\&quot;$:/config/Navigation/UpdateHistory\&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/Navigation/UpdateHistory\&quot; value=\&quot;yes\&quot;&gt; &lt;&lt;lingo Yes/Description&gt;&gt; &lt;/$radio&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/Navigation/UpdateHistory\&quot; value=\&quot;no\&quot;&gt; &lt;&lt;lingo No/Description&gt;&gt; &lt;/$radio&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/NavigationPermalinkviewMode/\n&lt;&lt;lingo Hint&gt;&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/config/Navigation/Permalinkview/CopyToClipboard\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot; default=\&quot;yes\&quot;&gt; &lt;$link to=\&quot;$:/config/Navigation/Permalinkview/CopyToClipboard\&quot;&gt;&lt;&lt;lingo CopyToClipboard/Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/config/Navigation/Permalinkview/UpdateAddressBar\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot; default=\&quot;yes\&quot;&gt; &lt;$link to=\&quot;$:/config/Navigation/Permalinkview/UpdateAddressBar\&quot;&gt;&lt;&lt;lingo UpdateAddressBar/Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/PerformanceInstrumentation&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/PerformanceInstrumentation&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/PerformanceInstrumentation/\n&lt;&lt;lingo Hint&gt;&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/config/Performance/Instrumentation\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot; default=\&quot;no\&quot;&gt; &lt;$link to=\&quot;$:/config/Performance/Instrumentation\&quot;&gt;&lt;&lt;lingo Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/TitleLinks&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/TitleLinks&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/TitleLinks/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/TitleLinks/\n&lt;$link to=\&quot;$:/config/Tiddlers/TitleLinks\&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/Tiddlers/TitleLinks\&quot; value=\&quot;yes\&quot;&gt; &lt;&lt;lingo Yes/Description&gt;&gt; &lt;/$radio&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/Tiddlers/TitleLinks\&quot; value=\&quot;no\&quot;&gt; &lt;&lt;lingo No/Description&gt;&gt; &lt;/$radio&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/ToolbarButtonStyle&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/ToolbarButtonStyle&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtonStyle/\n&lt;$link to=\&quot;$:/config/Toolbar/ButtonClass\&quot;&gt;&lt;&lt;lingo \&quot;Hint\&quot;&gt;&gt;&lt;/$link&gt;\n\n&lt;$select tiddler=\&quot;$:/config/Toolbar/ButtonClass\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/ToolbarButtonStyle]]\&quot;&gt;\n&lt;option value={{!!text}}&gt;{{!!caption}}&lt;/option&gt;\n&lt;/$list&gt;\n&lt;/$select&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings/ToolbarButtons&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings/ToolbarButtons&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Settings&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/ToolbarButtons/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtons/\n&lt;&lt;lingo Hint&gt;&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/config/Toolbar/Icons\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot; default=\&quot;yes\&quot;&gt; &lt;$link to=\&quot;$:/config/Toolbar/Icons\&quot;&gt;&lt;&lt;lingo Icons/Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/config/Toolbar/Text\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot; default=\&quot;no\&quot;&gt; &lt;$link to=\&quot;$:/config/Toolbar/Text\&quot;&gt;&lt;&lt;lingo Text/Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Settings&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Settings&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Settings/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Settings/\n\n&lt;&lt;lingo Hint&gt;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]\&quot;&gt;\n\n&lt;div style=\&quot;border-top:1px solid #eee;\&quot;&gt;\n\n!! &lt;$link&gt;&lt;$transclude field=\&quot;caption\&quot;/&gt;&lt;/$link&gt;\n\n&lt;$transclude/&gt;\n\n&lt;/div&gt;\n\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/StoryView&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/StoryView&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Appearance&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/StoryView/Caption}}&quot;,
&quot;text&quot;: &quot;{{$:/snippets/viewswitcher}}\n&quot;
},
&quot;$:/core/ui/ControlPanel/Stylesheets&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Stylesheets&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Advanced&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Stylesheets/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/\n\n&lt;&lt;lingo Stylesheets/Hint&gt;&gt;\n\n{{$:/snippets/peek-stylesheets}}\n&quot;
},
&quot;$:/core/ui/ControlPanel/Theme&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Theme&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Appearance&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Theme/Caption}}&quot;,
&quot;text&quot;: &quot;{{$:/snippets/themeswitcher}}\n&quot;
},
&quot;$:/core/ui/ControlPanel/TiddlerFields&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/TiddlerFields&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Advanced&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/TiddlerFields/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/\n\n&lt;&lt;lingo TiddlerFields/Hint&gt;&gt;\n\n{{$:/snippets/allfields}}&quot;
},
&quot;$:/core/ui/ControlPanel/Toolbars/EditToolbar&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Toolbars/EditToolbar&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Toolbars&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Toolbars/EditToolbar/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/EditToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/EditToolbar/Hint}}\n\n&lt;$set name=\&quot;tv-config-toolbar-icons\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-text\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$macrocall $name=\&quot;list-tagged-draggable\&quot; tag=\&quot;$:/tags/EditToolbar\&quot; itemTemplate=\&quot;$:/core/ui/ControlPanel/Toolbars/ItemTemplate\&quot;/&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;&quot;
},
&quot;$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate&quot;,
&quot;text&quot;: &quot;\\define config-title()\n$(config-base)$$(currentTiddler)$\n\\end\n\n&lt;$draggable tiddler=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;$checkbox tiddler=&lt;&lt;config-title&gt;&gt; field=\&quot;text\&quot; checked=\&quot;show\&quot; unchecked=\&quot;hide\&quot; default=\&quot;show\&quot;/&gt; &lt;span class=\&quot;tc-icon-wrapper\&quot;&gt;&lt;$transclude tiddler={{!!icon}}/&gt;&lt;/span&gt; &lt;$transclude field=\&quot;caption\&quot;/&gt; -- &lt;i class=\&quot;tc-muted\&quot;&gt;&lt;$transclude field=\&quot;description\&quot;/&gt;&lt;/i&gt;\n&lt;/$draggable&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Toolbars/EditorToolbar&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Toolbars/EditorToolbar&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Toolbars&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Toolbars/EditorToolbar/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/EditorToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/EditorToolbar/Hint}}\n\n&lt;$macrocall $name=\&quot;list-tagged-draggable\&quot; tag=\&quot;$:/tags/EditorToolbar\&quot; itemTemplate=\&quot;$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Toolbars/ItemTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Toolbars/ItemTemplate&quot;,
&quot;text&quot;: &quot;\\define config-title()\n$(config-base)$$(currentTiddler)$\n\\end\n\n&lt;$draggable tiddler=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;$checkbox tiddler=&lt;&lt;config-title&gt;&gt; field=\&quot;text\&quot; checked=\&quot;show\&quot; unchecked=\&quot;hide\&quot; default=\&quot;show\&quot;/&gt; &lt;span class=\&quot;tc-icon-wrapper\&quot;&gt; &lt;$transclude field=\&quot;caption\&quot;/&gt; &lt;i class=\&quot;tc-muted\&quot;&gt;-- &lt;$transclude field=\&quot;description\&quot;/&gt;&lt;/i&gt;&lt;/span&gt;\n&lt;/$draggable&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Toolbars/PageControls&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Toolbars/PageControls&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Toolbars&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Toolbars/PageControls/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/PageControlButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/PageControls/Hint}}\n\n&lt;$set name=\&quot;tv-config-toolbar-icons\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-text\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$macrocall $name=\&quot;list-tagged-draggable\&quot; tag=\&quot;$:/tags/PageControls\&quot; itemTemplate=\&quot;$:/core/ui/ControlPanel/Toolbars/ItemTemplate\&quot;/&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Toolbars/ViewToolbar&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Toolbars/ViewToolbar&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Toolbars&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Toolbars/ViewToolbar/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/ViewToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/ViewToolbar/Hint}}\n\n&lt;$set name=\&quot;tv-config-toolbar-icons\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-text\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$macrocall $name=\&quot;list-tagged-draggable\&quot; tag=\&quot;$:/tags/ViewToolbar\&quot; itemTemplate=\&quot;$:/core/ui/ControlPanel/Toolbars/ItemTemplate\&quot;/&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/ui/ControlPanel/Toolbars&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ControlPanel/Toolbars&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Appearance&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Toolbars/Caption}}&quot;,
&quot;text&quot;: &quot;{{$:/language/ControlPanel/Toolbars/Hint}}\n\n&lt;div class=\&quot;tc-control-panel\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Toolbars]!has[draft.of]]\&quot; default=\&quot;$:/core/ui/ControlPanel/Toolbars/ViewToolbar\&quot; class=\&quot;tc-vertical\&quot; explicitState=\&quot;$:/state/tabs/controlpanel/toolbars-1345989671\&quot;/&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/ControlPanel&quot;: {
&quot;title&quot;: &quot;$:/ControlPanel&quot;,
&quot;icon&quot;: &quot;$:/core/images/options-button&quot;,
&quot;color&quot;: &quot;#bbb&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-control-panel\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel]!has[draft.of]]\&quot; default=\&quot;$:/core/ui/ControlPanel/Info\&quot; explicitState=\&quot;$:/state/tab-1749438307\&quot;/&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/DefaultSearchResultList&quot;: {
&quot;title&quot;: &quot;$:/core/ui/DefaultSearchResultList&quot;,
&quot;tags&quot;: &quot;$:/tags/SearchResults&quot;,
&quot;caption&quot;: &quot;{{$:/language/Search/DefaultResults/Caption}}&quot;,
&quot;first-search-filter&quot;: &quot;[!is[system]search:title&lt;userInput&gt;sort[title]limit[250]]&quot;,
&quot;second-search-filter&quot;: &quot;[!is[system]search&lt;userInput&gt;sort[title]limit[250]]&quot;,
&quot;text&quot;: &quot;\\define searchResultList()\n//&lt;small&gt;{{$:/language/Search/Matches/Title}}&lt;/small&gt;//\n\n&lt;$list filter=\&quot;[&lt;userInput&gt;minlength[1]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$list filter={{{ [&lt;configTiddler&gt;get[first-search-filter]] }}}&gt;\n&lt;span class={{{[&lt;currentTiddler&gt;addsuffix[-primaryList]] -[&lt;searchListState&gt;get[text]] +[then[]else[tc-list-item-selected]] }}}&gt;\n&lt;$transclude tiddler=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n\n//&lt;small&gt;{{$:/language/Search/Matches/All}}&lt;/small&gt;//\n\n&lt;$list filter=\&quot;[&lt;userInput&gt;minlength[1]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$list filter={{{ [&lt;configTiddler&gt;get[second-search-filter]] }}}&gt;\n&lt;span class={{{[&lt;currentTiddler&gt;addsuffix[-secondaryList]] -[&lt;searchListState&gt;get[text]] +[then[]else[tc-list-item-selected]] }}}&gt;\n&lt;$transclude tiddler=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n\n\\end\n&lt;&lt;searchResultList&gt;&gt;\n&quot;
},
&quot;$:/core/ui/EditTemplate/body/preview/diffs-current&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/body/preview/diffs-current&quot;,
&quot;tags&quot;: &quot;$:/tags/EditPreview&quot;,
&quot;caption&quot;: &quot;differences from current&quot;,
&quot;list-after&quot;: &quot;$:/core/ui/EditTemplate/body/preview/output&quot;,
&quot;text&quot;: &quot;&lt;$list filter=\&quot;[&lt;currentTiddler&gt;!is[image]]\&quot; emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}&gt;\n\n&lt;$macrocall $name=\&quot;compareTiddlerText\&quot; sourceTiddlerTitle={{!!draft.of}} destTiddlerTitle=&lt;&lt;currentTiddler&gt;&gt;/&gt;\n\n&lt;/$list&gt;\n\n&quot;
},
&quot;$:/core/ui/EditTemplate/body/preview/diffs-shadow&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/body/preview/diffs-shadow&quot;,
&quot;tags&quot;: &quot;$:/tags/EditPreview&quot;,
&quot;caption&quot;: &quot;differences from shadow (if any)&quot;,
&quot;list-after&quot;: &quot;$:/core/ui/EditTemplate/body/preview/output&quot;,
&quot;text&quot;: &quot;&lt;$list filter=\&quot;[&lt;currentTiddler&gt;!is[image]]\&quot; emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}&gt;\n\n&lt;$macrocall $name=\&quot;compareTiddlerText\&quot; sourceTiddlerTitle={{{ [{!!draft.of}shadowsource[]] }}} sourceSubTiddlerTitle={{!!draft.of}} destTiddlerTitle=&lt;&lt;currentTiddler&gt;&gt;/&gt;\n\n&lt;/$list&gt;\n\n&quot;
},
&quot;$:/core/ui/EditTemplate/body/preview/output&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/body/preview/output&quot;,
&quot;tags&quot;: &quot;$:/tags/EditPreview&quot;,
&quot;caption&quot;: &quot;{{$:/language/EditTemplate/Body/Preview/Type/Output}}&quot;,
&quot;text&quot;: &quot;\\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]\n&lt;$set name=\&quot;tv-tiddler-preview\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$transclude /&gt;\n\n&lt;/$set&gt;\n&quot;
},
&quot;$:/state/showeditpreview&quot;: {
&quot;title&quot;: &quot;$:/state/showeditpreview&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/core/ui/EditTemplate/body/editor&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/body/editor&quot;,
&quot;text&quot;: &quot;&lt;$edit\n\n field=\&quot;text\&quot;\n class=\&quot;tc-edit-texteditor tc-edit-texteditor-body\&quot;\n placeholder={{$:/language/EditTemplate/Body/Placeholder}}\n tabindex={{$:/config/EditTabIndex}}\n focus={{{ [{$:/config/AutoFocus}match[text]then[true]] ~[[false]] }}}\n cancelPopups=\&quot;yes\&quot;\n\n&gt;&lt;$set\n\n name=\&quot;targetTiddler\&quot;\n value=&lt;&lt;currentTiddler&gt;&gt;\n\n&gt;&lt;$list\n\n filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]]\&quot;\n\n&gt;&lt;$reveal\n\n type=\&quot;nomatch\&quot;\n state=&lt;&lt;config-visibility-title&gt;&gt;\n text=\&quot;hide\&quot;\n class=\&quot;tc-text-editor-toolbar-item-wrapper\&quot;\n\n&gt;&lt;$transclude\n\n tiddler=\&quot;$:/core/ui/EditTemplate/body/toolbar/button\&quot;\n mode=\&quot;inline\&quot;\n\n/&gt;&lt;/$reveal&gt;&lt;/$list&gt;&lt;/$set&gt;&lt;/$edit&gt;\n&quot;
},
&quot;$:/core/ui/EditTemplate/body/toolbar/button&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/body/toolbar/button&quot;,
&quot;text&quot;: &quot;\\define toolbar-button-icon()\n&lt;$list\n\n filter=\&quot;[all[current]!has[custom-icon]]\&quot;\n variable=\&quot;no-custom-icon\&quot;\n\n&gt;&lt;$transclude\n\n tiddler={{!!icon}}\n\n/&gt;&lt;/$list&gt;\n\\end\n\n\\define toolbar-button-tooltip()\n{{!!description}}&lt;$macrocall $name=\&quot;displayshortcuts\&quot; $output=\&quot;text/plain\&quot; shortcuts={{!!shortcuts}} prefix=\&quot;` - [\&quot; separator=\&quot;] [\&quot; suffix=\&quot;]`\&quot;/&gt;\n\\end\n\n\\define toolbar-button()\n&lt;$list\n\n filter={{!!condition}}\n variable=\&quot;list-condition\&quot;\n\n&gt;&lt;$wikify\n\n name=\&quot;tooltip-text\&quot;\n text=&lt;&lt;toolbar-button-tooltip&gt;&gt;\n mode=\&quot;inline\&quot;\n output=\&quot;text\&quot;\n\n&gt;&lt;$list\n\n filter=\&quot;[all[current]!has[dropdown]]\&quot;\n variable=\&quot;no-dropdown\&quot;\n\n&gt;&lt;$button\n\n class=\&quot;tc-btn-invisible $(buttonClasses)$\&quot;\n tooltip=&lt;&lt;tooltip-text&gt;&gt;\n actions={{!!actions}}\n\n&gt;&lt;span\n\n data-tw-keyboard-shortcut={{!!shortcuts}}\n\n/&gt;&lt;&lt;toolbar-button-icon&gt;&gt;&lt;$transclude\n\n tiddler=&lt;&lt;currentTiddler&gt;&gt;\n field=\&quot;text\&quot;\n\n/&gt;&lt;/$button&gt;&lt;/$list&gt;&lt;$list\n\n filter=\&quot;[all[current]has[dropdown]]\&quot;\n variable=\&quot;dropdown\&quot;\n\n&gt;&lt;$set\n\n name=\&quot;dropdown-state\&quot;\n value=&lt;&lt;qualify \&quot;$:/state/EditorToolbarDropdown\&quot;&gt;&gt;\n\n&gt;&lt;$button\n\n popup=&lt;&lt;dropdown-state&gt;&gt;\n class=\&quot;tc-popup-keep tc-btn-invisible $(buttonClasses)$\&quot;\n selectedClass=\&quot;tc-selected\&quot;\n tooltip=&lt;&lt;tooltip-text&gt;&gt;\n actions={{!!actions}}\n\n&gt;&lt;span\n\n data-tw-keyboard-shortcut={{!!shortcuts}}\n\n/&gt;&lt;&lt;toolbar-button-icon&gt;&gt;&lt;$transclude\n\n tiddler=&lt;&lt;currentTiddler&gt;&gt;\n field=\&quot;text\&quot;\n\n/&gt;&lt;/$button&gt;&lt;$reveal\n\n state=&lt;&lt;dropdown-state&gt;&gt;\n type=\&quot;popup\&quot;\n position=\&quot;below\&quot;\n animate=\&quot;yes\&quot;\n tag=\&quot;span\&quot;\n\n&gt;&lt;div\n\n class=\&quot;tc-drop-down tc-popup-keep\&quot;\n\n&gt;&lt;$transclude\n\n tiddler={{!!dropdown}}\n mode=\&quot;block\&quot;\n\n/&gt;&lt;/div&gt;&lt;/$reveal&gt;&lt;/$set&gt;&lt;/$list&gt;&lt;/$wikify&gt;&lt;/$list&gt;\n\\end\n\n\\define toolbar-button-outer()\n&lt;$set\n\n name=\&quot;buttonClasses\&quot;\n value={{!!button-classes}}\n\n&gt;&lt;&lt;toolbar-button&gt;&gt;&lt;/$set&gt;\n\\end\n\n&lt;&lt;toolbar-button-outer&gt;&gt;&quot;
},
&quot;$:/core/ui/EditTemplate/body&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/body&quot;,
&quot;tags&quot;: &quot;$:/tags/EditTemplate&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/EditTemplate/Body/\n\\define config-visibility-title()\n$:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$\n\\end\n&lt;$list filter=\&quot;[all[current]has[_canonical_uri]]\&quot;&gt;\n\n&lt;div class=\&quot;tc-message-box\&quot;&gt;\n\n&lt;&lt;lingo External/Hint&gt;&gt;\n\n&lt;a href={{!!_canonical_uri}}&gt;&lt;$text text={{!!_canonical_uri}}/&gt;&lt;/a&gt;\n\n&lt;$edit-text field=\&quot;_canonical_uri\&quot; class=\&quot;tc-edit-fields\&quot; tabindex={{$:/config/EditTabIndex}} cancelPopups=\&quot;yes\&quot;&gt;&lt;/$edit-text&gt;\n\n&lt;/div&gt;\n\n&lt;/$list&gt;\n\n&lt;$list filter=\&quot;[all[current]!has[_canonical_uri]]\&quot;&gt;\n\n&lt;$reveal state=\&quot;$:/state/showeditpreview\&quot; type=\&quot;match\&quot; text=\&quot;yes\&quot;&gt;\n\n&lt;div class=\&quot;tc-tiddler-preview\&quot;&gt;\n\n&lt;$transclude tiddler=\&quot;$:/core/ui/EditTemplate/body/editor\&quot; mode=\&quot;inline\&quot;/&gt;\n\n&lt;div class=\&quot;tc-tiddler-preview-preview\&quot;&gt;\n\n&lt;$transclude tiddler={{$:/state/editpreviewtype}} mode=\&quot;inline\&quot;&gt;\n\n&lt;$transclude tiddler=\&quot;$:/core/ui/EditTemplate/body/preview/output\&quot; mode=\&quot;inline\&quot;/&gt;\n\n&lt;/$transclude&gt;\n\n&lt;/div&gt;\n\n&lt;/div&gt;\n\n&lt;/$reveal&gt;\n\n&lt;$reveal state=\&quot;$:/state/showeditpreview\&quot; type=\&quot;nomatch\&quot; text=\&quot;yes\&quot;&gt;\n\n&lt;$transclude tiddler=\&quot;$:/core/ui/EditTemplate/body/editor\&quot; mode=\&quot;inline\&quot;/&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/EditTemplate/controls&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/controls&quot;,
&quot;tags&quot;: &quot;$:/tags/EditTemplate&quot;,
&quot;text&quot;: &quot;\\define config-title()\n$:/config/EditToolbarButtons/Visibility/$(listItem)$\n\\end\n&lt;div class=\&quot;tc-tiddler-title tc-tiddler-edit-title\&quot;&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n&lt;span class=\&quot;tc-tiddler-controls tc-titlebar\&quot;&gt;&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;config-title&gt;&gt; text=\&quot;hide\&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;&lt;/$reveal&gt;&lt;/$list&gt;&lt;/span&gt;\n&lt;div style=\&quot;clear: both;\&quot;&gt;&lt;/div&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/EditTemplate/fields&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/fields&quot;,
&quot;tags&quot;: &quot;$:/tags/EditTemplate&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/EditTemplate/\n\\define config-title()\n$:/config/EditTemplateFields/Visibility/$(currentField)$\n\\end\n\n\\define config-filter()\n[[hide]] -[title{$(config-title)$}]\n\\end\n\n\\define current-tiddler-new-field-selector()\n[data-tiddler-title=\&quot;$(currentTiddlerCSSescaped)$\&quot;] .tc-edit-field-add-name-wrapper input\n\\end\n\n\\define new-field-actions()\n&lt;$action-sendmessage $message=\&quot;tm-add-field\&quot; $name={{{ [&lt;newFieldNameTiddler&gt;get[text]] }}} $value={{{ [&lt;newFieldValueTiddler&gt;get[text]] }}}/&gt;\n&lt;$action-deletetiddler $filter=\&quot;[&lt;newFieldNameTiddler&gt;] [&lt;newFieldValueTiddler&gt;] [&lt;storeTitle&gt;] [&lt;searchListState&gt;]\&quot;/&gt;\n&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=&lt;&lt;current-tiddler-new-field-selector&gt;&gt;/&gt;\n\\end\n\n\\define delete-state-tiddlers() &lt;$action-deletetiddler $filter=\&quot;[&lt;newFieldNameTiddler&gt;] [&lt;storeTitle&gt;] [&lt;searchListState&gt;]\&quot;/&gt;\n\n\\define cancel-search-actions-inner()\n&lt;$list filter=\&quot;[&lt;storeTitle&gt;has[text]] [&lt;newFieldNameTiddler&gt;has[text]]\&quot; variable=\&quot;ignore\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;&lt;cancel-delete-tiddler-actions \&quot;cancel\&quot;&gt;&gt;\&quot;\&quot;\&quot;&gt;\n&lt;&lt;delete-state-tiddlers&gt;&gt;\n&lt;/$list&gt;\n\\end\n\n\\define cancel-search-actions()\n&lt;$set name=\&quot;userInput\&quot; value={{{ [&lt;storeTitle&gt;get[text]] }}}&gt;\n&lt;$list filter=\&quot;[&lt;newFieldNameTiddler&gt;get[text]!match&lt;userInput&gt;]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;&lt;cancel-search-actions-inner&gt;&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;newFieldNameTiddler&gt;&gt; text=&lt;&lt;userInput&gt;&gt;/&gt;&lt;$action-setfield $tiddler=&lt;&lt;refreshTitle&gt;&gt; text=\&quot;yes\&quot;/&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n\\end\n\n\\define new-field()\n&lt;$vars name={{{ [&lt;newFieldNameTiddler&gt;get[text]] }}}&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; text=\&quot;\&quot; default=&lt;&lt;name&gt;&gt;&gt;\n&lt;$button tooltip=&lt;&lt;lingo Fields/Add/Button/Hint&gt;&gt;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-add-field\&quot;\n$name=&lt;&lt;name&gt;&gt;\n$value={{{ [&lt;newFieldValueTiddler&gt;get[text]] }}}/&gt;\n&lt;$action-deletetiddler $filter=\&quot;[&lt;newFieldNameTiddler&gt;] [&lt;newFieldValueTiddler&gt;] [&lt;storeTitle&gt;] [&lt;searchListState&gt;]\&quot;/&gt;\n&lt;&lt;lingo Fields/Add/Button&gt;&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; text=\&quot;\&quot; default=&lt;&lt;name&gt;&gt;&gt;\n&lt;$button&gt;\n&lt;&lt;lingo Fields/Add/Button&gt;&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/$vars&gt;\n\\end\n\\whitespace trim\n\n&lt;div class=\&quot;tc-edit-fields\&quot;&gt;\n&lt;table class={{{ [all[current]fields[]] :filter[lookup[$:/config/EditTemplateFields/Visibility/]!match[hide]] +[count[]!match[0]] +[then[tc-edit-fields]] ~[[tc-edit-fields tc-edit-fields-small]] }}}&gt;\n&lt;tbody&gt;\n&lt;$list filter=\&quot;[all[current]fields[]] +[sort[title]]\&quot; variable=\&quot;currentField\&quot; storyview=\&quot;pop\&quot;&gt;\n&lt;$list filter=&lt;&lt;config-filter&gt;&gt; variable=\&quot;temp\&quot;&gt;\n&lt;tr class=\&quot;tc-edit-field\&quot;&gt;\n&lt;td class=\&quot;tc-edit-field-name\&quot;&gt;\n&lt;$text text=&lt;&lt;currentField&gt;&gt;/&gt;:&lt;/td&gt;\n&lt;td class=\&quot;tc-edit-field-value\&quot;&gt;\n&lt;$keyboard key=\&quot;((delete-field))\&quot; actions=\&quot;\&quot;\&quot;&lt;$action-deletefield $field=&lt;&lt;currentField&gt;&gt;/&gt;&lt;$set name=\&quot;currentTiddlerCSSescaped\&quot; value={{{ [&lt;currentTiddler&gt;escapecss[]] }}}&gt;&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=&lt;&lt;current-tiddler-new-field-selector&gt;&gt;/&gt;&lt;/$set&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$edit-text tiddler=&lt;&lt;currentTiddler&gt;&gt; field=&lt;&lt;currentField&gt;&gt; placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} tabindex={{$:/config/EditTabIndex}} cancelPopups=\&quot;yes\&quot;/&gt;\n&lt;/$keyboard&gt;\n&lt;/td&gt;\n&lt;td class=\&quot;tc-edit-field-remove\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}&gt;\n&lt;$action-deletefield $field=&lt;&lt;currentField&gt;&gt;/&gt;&lt;$set name=\&quot;currentTiddlerCSSescaped\&quot; value={{{ [&lt;currentTiddler&gt;escapecss[]] }}}&gt;&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=&lt;&lt;current-tiddler-new-field-selector&gt;&gt;/&gt;&lt;/$set&gt;\n{{$:/core/images/delete-button}}\n&lt;/$button&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&lt;/div&gt;\n\n&lt;$fieldmangler&gt;\n&lt;div class=\&quot;tc-edit-field-add\&quot;&gt;\n&lt;em class=\&quot;tc-edit tc-big-gap-right\&quot;&gt;\n&lt;&lt;lingo Fields/Add/Prompt&gt;&gt;\n&lt;/em&gt;\n&lt;$vars refreshTitle=&lt;&lt;qualify \&quot;$:/temp/fieldname/refresh\&quot;&gt;&gt; storeTitle=&lt;&lt;newFieldNameInputTiddler&gt;&gt; searchListState=&lt;&lt;newFieldNameSelectionTiddler&gt;&gt;&gt;\n&lt;div class=\&quot;tc-edit-field-add-name-wrapper\&quot;&gt;\n&lt;$macrocall $name=\&quot;keyboard-driven-input\&quot; tiddler=&lt;&lt;newFieldNameTiddler&gt;&gt; storeTitle=&lt;&lt;storeTitle&gt;&gt; refreshTitle=&lt;&lt;refreshTitle&gt;&gt;\n\t\tselectionStateTitle=&lt;&lt;searchListState&gt;&gt; tag=\&quot;input\&quot; default=\&quot;\&quot; placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}}\n\t\tfocusPopup=&lt;&lt;qualify \&quot;$:/state/popup/field-dropdown\&quot;&gt;&gt; class=\&quot;tc-edit-texteditor tc-popup-handle\&quot; tabindex={{$:/config/EditTabIndex}}\n\t\tfocus={{{ [{$:/config/AutoFocus}match[fields]then[true]] ~[[false]] }}} cancelPopups=\&quot;yes\&quot;\n\t\tconfigTiddlerFilter=\&quot;[[$:/config/EditMode/fieldname-filter]]\&quot; inputCancelActions=&lt;&lt;cancel-search-actions&gt;&gt; /&gt;\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/field-dropdown\&quot;&gt;&gt; class=\&quot;tc-btn-invisible tc-btn-dropdown tc-small-gap\&quot; tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}&gt;{{$:/core/images/down-arrow}}&lt;/$button&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/field-dropdown\&quot;&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot; default=\&quot;\&quot;&gt;\n&lt;div class=\&quot;tc-block-dropdown tc-edit-type-dropdown\&quot;&gt;\n&lt;$set name=\&quot;tv-show-missing-links\&quot; value=\&quot;yes\&quot;&gt;\n&lt;$linkcatcher to=&lt;&lt;newFieldNameTiddler&gt;&gt;&gt;\n&lt;div class=\&quot;tc-dropdown-item\&quot;&gt;\n&lt;&lt;lingo Fields/Add/Dropdown/User&gt;&gt;\n&lt;/div&gt;\n&lt;$set name=\&quot;newFieldName\&quot; value={{{ [&lt;storeTitle&gt;get[text]] }}}&gt;\n&lt;$list filter=\&quot;[!is[shadow]!is[system]fields[]search:title&lt;newFieldName&gt;sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type\&quot; variable=\&quot;currentField\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;currentField&gt;addsuffix[-primaryList]] -[&lt;searchListState&gt;get[text]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$link to=&lt;&lt;currentField&gt;&gt; class=\&quot;tc-list-item-selected\&quot;&gt;&lt;$text text=&lt;&lt;currentField&gt;&gt;/&gt;&lt;/$link&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$link to=&lt;&lt;currentField&gt;&gt;&gt;\n&lt;$text text=&lt;&lt;currentField&gt;&gt;/&gt;\n&lt;/$link&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;div class=\&quot;tc-dropdown-item\&quot;&gt;\n&lt;&lt;lingo Fields/Add/Dropdown/System&gt;&gt;\n&lt;/div&gt;\n&lt;$list filter=\&quot;[fields[]search:title&lt;newFieldName&gt;sort[]] -[!is[shadow]!is[system]fields[]]\&quot; variable=\&quot;currentField\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;currentField&gt;addsuffix[-secondaryList]] -[&lt;searchListState&gt;get[text]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$link to=&lt;&lt;currentField&gt;&gt; class=\&quot;tc-list-item-selected\&quot;&gt;&lt;$text text=&lt;&lt;currentField&gt;&gt;/&gt;&lt;/$link&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$link to=&lt;&lt;currentField&gt;&gt;&gt;\n&lt;$text text=&lt;&lt;currentField&gt;&gt;/&gt;\n&lt;/$link&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$linkcatcher&gt;\n&lt;/$set&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;span class=\&quot;tc-edit-field-add-value tc-small-gap-right\&quot;&gt;\n&lt;$set name=\&quot;currentTiddlerCSSescaped\&quot; value={{{ [&lt;currentTiddler&gt;escapecss[]] }}}&gt;\n&lt;$keyboard key=\&quot;((add-field))\&quot; actions=&lt;&lt;new-field-actions&gt;&gt;&gt;\n&lt;$edit-text tiddler=&lt;&lt;newFieldValueTiddler&gt;&gt; tag=\&quot;input\&quot; default=\&quot;\&quot; placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class=\&quot;tc-edit-texteditor\&quot; tabindex={{$:/config/EditTabIndex}} cancelPopups=\&quot;yes\&quot;/&gt;\n&lt;/$keyboard&gt;\n&lt;/$set&gt;\n&lt;/span&gt;\n&lt;span class=\&quot;tc-edit-field-add-button\&quot;&gt;\n&lt;$macrocall $name=\&quot;new-field\&quot;/&gt;\n&lt;/span&gt;\n&lt;/$vars&gt;\n&lt;/div&gt;\n&lt;/$fieldmangler&gt;\n&quot;
},
&quot;$:/core/ui/EditTemplate/shadow&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/shadow&quot;,
&quot;tags&quot;: &quot;$:/tags/EditTemplate&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/EditTemplate/Shadow/\n\\define pluginLinkBody()\n&lt;$link to=\&quot;\&quot;\&quot;$(pluginTitle)$\&quot;\&quot;\&quot;&gt;\n&lt;$text text=\&quot;\&quot;\&quot;$(pluginTitle)$\&quot;\&quot;\&quot;/&gt;\n&lt;/$link&gt;\n\\end\n&lt;$list filter=\&quot;[all[current]get[draft.of]is[shadow]!is[tiddler]]\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[current]shadowsource[]]\&quot; variable=\&quot;pluginTitle\&quot;&gt;\n\n&lt;$set name=\&quot;pluginLink\&quot; value=&lt;&lt;pluginLinkBody&gt;&gt;&gt;\n&lt;div class=\&quot;tc-message-box\&quot;&gt;\n\n&lt;&lt;lingo Warning&gt;&gt;\n\n&lt;/div&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n\n&lt;/$list&gt;\n\n&lt;$list filter=\&quot;[all[current]get[draft.of]is[shadow]is[tiddler]]\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[current]shadowsource[]]\&quot; variable=\&quot;pluginTitle\&quot;&gt;\n\n&lt;$set name=\&quot;pluginLink\&quot; value=&lt;&lt;pluginLinkBody&gt;&gt;&gt;\n&lt;div class=\&quot;tc-message-box\&quot;&gt;\n\n&lt;&lt;lingo OverriddenWarning&gt;&gt;\n\n&lt;/div&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n\n&lt;/$list&gt;&quot;
},
&quot;$:/core/ui/EditTemplate/tags&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/tags&quot;,
&quot;tags&quot;: &quot;$:/tags/EditTemplate&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\n\\define lingo-base() $:/language/EditTemplate/\n\n\\define tag-styles()\nbackground-color:$(backgroundColor)$;\nfill:$(foregroundColor)$;\ncolor:$(foregroundColor)$;\n\\end\n\n\\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon,tagField:\&quot;tags\&quot;)\n\\whitespace trim\n&lt;$vars foregroundColor=&lt;&lt;contrastcolour target:\&quot;\&quot;\&quot;$colour$\&quot;\&quot;\&quot; fallbackTarget:\&quot;\&quot;\&quot;$fallbackTarget$\&quot;\&quot;\&quot; colourA:\&quot;\&quot;\&quot;$colourA$\&quot;\&quot;\&quot; colourB:\&quot;\&quot;\&quot;$colourB$\&quot;\&quot;\&quot;&gt;&gt; backgroundColor=\&quot;\&quot;\&quot;$colour$\&quot;\&quot;\&quot;&gt;\n&lt;span style=&lt;&lt;tag-styles&gt;&gt; class=\&quot;tc-tag-label tc-tag-list-item\&quot;&gt;\n&lt;$transclude tiddler=\&quot;\&quot;\&quot;$icon$\&quot;\&quot;\&quot;/&gt;&lt;$view field=\&quot;title\&quot; format=\&quot;text\&quot; /&gt;\n&lt;$button class=\&quot;tc-btn-invisible tc-remove-tag-button\&quot;&gt;&lt;$action-listops $tiddler=&lt;&lt;saveTiddler&gt;&gt; $field=&lt;&lt;__tagField__&gt;&gt; $subfilter=\&quot;-[{!!title}]\&quot;/&gt;{{$:/core/images/close-button}}&lt;/$button&gt;\n&lt;/span&gt;\n&lt;/$vars&gt;\n\\end\n\n\\define tag-body(colour,palette,icon,tagField:\&quot;tags\&quot;)\n&lt;$macrocall $name=\&quot;tag-body-inner\&quot; colour=\&quot;\&quot;\&quot;$colour$\&quot;\&quot;\&quot; fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon=\&quot;\&quot;\&quot;$icon$\&quot;\&quot;\&quot; tagField=&lt;&lt;__tagField__&gt;&gt;/&gt;\n\\end\n\n\\define edit-tags-template(tagField:\&quot;tags\&quot;)\n\\whitespace trim\n&lt;div class=\&quot;tc-edit-tags\&quot;&gt;\n&lt;$list filter=\&quot;[list[!!$tagField$]sort[title]]\&quot; storyview=\&quot;pop\&quot;&gt;\n&lt;$macrocall $name=\&quot;tag-body\&quot; colour={{!!color}} palette={{$:/palette}} icon={{!!icon}} tagField=&lt;&lt;__tagField__&gt;&gt;/&gt;\n&lt;/$list&gt;\n&lt;$vars tabIndex={{$:/config/EditTabIndex}} cancelPopups=\&quot;yes\&quot;&gt;\n&lt;$macrocall $name=\&quot;tag-picker\&quot; tagField=&lt;&lt;__tagField__&gt;&gt;/&gt;\n&lt;/$vars&gt;\n&lt;/div&gt;\n\\end\n&lt;$set name=\&quot;saveTiddler\&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;$macrocall $name=\&quot;edit-tags-template\&quot; tagField=&lt;&lt;tagField&gt;&gt;/&gt;\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/ui/EditTemplate/title&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/title&quot;,
&quot;tags&quot;: &quot;$:/tags/EditTemplate&quot;,
&quot;text&quot;: &quot;&lt;$edit-text field=\&quot;draft.title\&quot; class=\&quot;tc-titlebar tc-edit-texteditor\&quot; focus={{{ [{$:/config/AutoFocus}match[title]then[true]] ~[[false]] }}} tabindex={{$:/config/EditTabIndex}} cancelPopups=\&quot;yes\&quot;/&gt;\n\n&lt;$vars pattern=\&quot;\&quot;\&quot;[\\|\\[\\]{}]\&quot;\&quot;\&quot; bad-chars=\&quot;\&quot;\&quot;`| [ ] { }`\&quot;\&quot;\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[current]regexp:draft.title&lt;pattern&gt;]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;div class=\&quot;tc-message-box\&quot;&gt;\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}\n\n&lt;/div&gt;\n\n&lt;/$list&gt;\n\n&lt;/$vars&gt;\n\n&lt;$reveal state=\&quot;!!draft.title\&quot; type=\&quot;nomatch\&quot; text={{!!draft.of}} tag=\&quot;div\&quot;&gt;\n\n&lt;$list filter=\&quot;[{!!draft.title}!is[missing]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;div class=\&quot;tc-message-box\&quot;&gt;\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}\n\n&lt;/div&gt;\n\n&lt;/$list&gt;\n\n&lt;$list filter=\&quot;[{!!draft.of}!is[missing]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/config/RelinkOnRename\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot; default=\&quot;no\&quot;&gt; {{$:/language/EditTemplate/Title/Relink/Prompt}}&lt;/$checkbox&gt;\n\n&lt;$list filter=\&quot;[title&lt;fromTitle&gt;backlinks[]limit[1]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$vars stateTiddler=&lt;&lt;qualify \&quot;$:/state/edit/references\&quot;&gt;&gt; &gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;stateTiddler&gt;&gt; text=\&quot;show\&quot;&gt;\n&lt;$button set=&lt;&lt;stateTiddler&gt;&gt; setTo=\&quot;show\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;{{$:/core/images/right-arrow}} \n&lt;&lt;lingo EditTemplate/Title/References/Prompt&gt;&gt;&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;stateTiddler&gt;&gt; text=\&quot;show\&quot;&gt;\n&lt;$button set=&lt;&lt;stateTiddler&gt;&gt; setTo=\&quot;hide\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;{{$:/core/images/down-arrow}} \n&lt;&lt;lingo EditTemplate/Title/References/Prompt&gt;&gt;&lt;/$button&gt;\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;stateTiddler&gt;&gt; text=\&quot;show\&quot;&gt;\n&lt;$tiddler tiddler=&lt;&lt;fromTitle&gt;&gt; &gt;\n&lt;$transclude tiddler=\&quot;$:/core/ui/TiddlerInfo/References\&quot;/&gt;\n&lt;/$tiddler&gt;\n&lt;/$reveal&gt;\n\n&lt;/$vars&gt;\n\n&lt;/$list&gt;\n\n&lt;/$vars&gt;\n\n&lt;/$list&gt;\n\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/EditTemplate/type&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/type&quot;,
&quot;tags&quot;: &quot;$:/tags/EditTemplate&quot;,
&quot;first-search-filter&quot;: &quot;[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]sort[description]sort[group-sort]removeprefix[$:/language/Docs/Types/]search&lt;userInput&gt;]&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/EditTemplate/\n\\define input-cancel-actions() &lt;$list filter=\&quot;[&lt;storeTitle&gt;get[text]] [&lt;currentTiddler&gt;get[type]] +[limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;&lt;cancel-delete-tiddler-actions \&quot;cancel\&quot;&gt;&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-remove-field\&quot; $param=\&quot;type\&quot;/&gt;&lt;$action-deletetiddler $filter=\&quot;[&lt;typeInputTiddler&gt;] [&lt;refreshTitle&gt;] [&lt;typeSelectionTiddler&gt;]\&quot;/&gt;&lt;/$list&gt;\n\\whitespace trim\n&lt;$set name=\&quot;refreshTitle\&quot; value=&lt;&lt;qualify \&quot;$:/temp/type-search/refresh\&quot;&gt;&gt;&gt;\n&lt;div class=\&quot;tc-edit-type-selector-wrapper\&quot;&gt;\n&lt;em class=\&quot;tc-edit tc-big-gap-right\&quot;&gt;&lt;&lt;lingo Type/Prompt&gt;&gt;&lt;/em&gt;\n&lt;div class=\&quot;tc-type-selector-dropdown-wrapper\&quot;&gt;\n&lt;div class=\&quot;tc-type-selector\&quot;&gt;&lt;$fieldmangler&gt;\n&lt;$macrocall $name=\&quot;keyboard-driven-input\&quot; tiddler=&lt;&lt;currentTiddler&gt;&gt; storeTitle=&lt;&lt;typeInputTiddler&gt;&gt; refreshTitle=&lt;&lt;refreshTitle&gt;&gt; selectionStateTitle=&lt;&lt;typeSelectionTiddler&gt;&gt; field=\&quot;type\&quot; tag=\&quot;input\&quot; default=\&quot;\&quot; placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=&lt;&lt;qualify \&quot;$:/state/popup/type-dropdown\&quot;&gt;&gt; class=\&quot;tc-edit-typeeditor tc-edit-texteditor tc-popup-handle\&quot; tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[type]then[true]] ~[[false]] }}} cancelPopups=\&quot;yes\&quot; configTiddlerFilter=\&quot;[[$:/core/ui/EditTemplate/type]]\&quot; inputCancelActions=&lt;&lt;input-cancel-actions&gt;&gt;/&gt;&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/type-dropdown\&quot;&gt;&gt; class=\&quot;tc-btn-invisible tc-btn-dropdown tc-small-gap\&quot; tooltip={{$:/language/EditTemplate/Type/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Type/Dropdown/Caption}}&gt;{{$:/core/images/down-arrow}}&lt;/$button&gt;&lt;$button message=\&quot;tm-remove-field\&quot; param=\&quot;type\&quot; class=\&quot;tc-btn-invisible tc-btn-icon\&quot; tooltip={{$:/language/EditTemplate/Type/Delete/Hint}} aria-label={{$:/language/EditTemplate/Type/Delete/Caption}}&gt;{{$:/core/images/delete-button}}&lt;$action-deletetiddler $filter=\&quot;[&lt;storeTitle&gt;] [&lt;refreshTitle&gt;] [&lt;selectionStateTitle&gt;]\&quot;/&gt;&lt;/$button&gt;\n&lt;/$fieldmangler&gt;&lt;/div&gt;\n\n&lt;div class=\&quot;tc-block-dropdown-wrapper\&quot;&gt;\n&lt;$set name=\&quot;tv-show-missing-links\&quot; value=\&quot;yes\&quot;&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/type-dropdown\&quot;&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot; default=\&quot;\&quot;&gt;\n&lt;div class=\&quot;tc-block-dropdown tc-edit-type-dropdown\&quot;&gt;\n&lt;$linkcatcher to=\&quot;!!type\&quot;&gt;\n&lt;$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group-sort]]'&gt;\n&lt;div class=\&quot;tc-dropdown-item\&quot;&gt;\n&lt;$text text={{!!group}}/&gt;\n&lt;/div&gt;\n&lt;$set name=\&quot;userInput\&quot; value={{{ [&lt;typeInputTiddler&gt;get[text]] }}}&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]group{!!group}] +[sort[description]] +[removeprefix[$:/language/Docs/Types/]] +[search&lt;userInput&gt;]\&quot;&gt;&lt;span class={{{ [&lt;currentTiddler&gt;addsuffix[-primaryList]] -[&lt;typeSelectionTiddler&gt;get[text]] +[then[]else[tc-list-item-selected]] }}}&gt;&lt;$link to={{{ [&lt;currentTiddler&gt;addprefix[$:/language/Docs/Types/]get[name]] }}}&gt;&lt;$view tiddler={{{ [&lt;currentTiddler&gt;addprefix[$:/language/Docs/Types/]] }}} field=\&quot;description\&quot;/&gt; (&lt;$view tiddler={{{ [&lt;currentTiddler&gt;addprefix[$:/language/Docs/Types/]] }}} field=\&quot;name\&quot;/&gt;)&lt;/$link&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$linkcatcher&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/$set&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/ui/EditTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate&quot;,
&quot;text&quot;: &quot;\\define delete-edittemplate-state-tiddlers() &lt;$action-deletetiddler $filter=\&quot;[&lt;newFieldNameTiddler&gt;] [&lt;newFieldValueTiddler&gt;] [&lt;newFieldNameInputTiddler&gt;] [&lt;newFieldNameSelectionTiddler&gt;] [&lt;newTagNameTiddler&gt;] [&lt;newTagNameInputTiddler&gt;] [&lt;newTagNameSelectionTiddler&gt;] [&lt;typeInputTiddler&gt;] [&lt;typeSelectionTiddler&gt;]\&quot;/&gt;\n\\define save-tiddler-actions()\n&lt;$action-sendmessage $message=\&quot;tm-add-tag\&quot; $param={{{ [&lt;newTagNameTiddler&gt;get[text]] }}}/&gt;\n&lt;$action-sendmessage $message=\&quot;tm-add-field\&quot; $name={{{ [&lt;newFieldNameTiddler&gt;get[text]] }}} $value={{{ [&lt;newFieldValueTiddler&gt;get[text]] }}}/&gt;\n&lt;&lt;delete-edittemplate-state-tiddlers&gt;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-save-tiddler\&quot;/&gt;\n\\end\n\\define cancel-delete-tiddler-actions(message)\n&lt;&lt;delete-edittemplate-state-tiddlers&gt;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-$message$-tiddler\&quot;/&gt;\n\\end\n&lt;div data-tiddler-title=&lt;&lt;currentTiddler&gt;&gt; data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-edit-frame [&lt;currentTiddler&gt;is[tiddler]then[tc-tiddler-exists]] [&lt;currentTiddler&gt;is[missing]!is[shadow]then[tc-tiddler-missing]] [&lt;currentTiddler&gt;is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [&lt;currentTiddler&gt;is[system]then[tc-tiddler-system]] [{!!class}] [&lt;currentTiddler&gt;tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}&gt;\n&lt;$fieldmangler&gt;\n&lt;$vars storyTiddler=&lt;&lt;currentTiddler&gt;&gt; newTagNameTiddler=&lt;&lt;qualify \&quot;$:/temp/NewTagName\&quot;&gt;&gt; newFieldNameTiddler=&lt;&lt;qualify \&quot;$:/temp/NewFieldName\&quot;&gt;&gt; newFieldValueTiddler=&lt;&lt;qualify \&quot;$:/temp/NewFieldValue\&quot;&gt;&gt; newFieldNameInputTiddler=&lt;&lt;qualify \&quot;$:/temp/NewFieldName/input\&quot;&gt;&gt; newFieldNameSelectionTiddler=&lt;&lt;qualify \&quot;$:/temp/NewFieldName/selected-item\&quot;&gt;&gt; newTagNameInputTiddler=&lt;&lt;qualify \&quot;$:/temp/NewTagName/input\&quot;&gt;&gt; newTagNameSelectionTiddler=&lt;&lt;qualify \&quot;$:/temp/NewTagName/selected-item\&quot;&gt;&gt; typeInputTiddler=&lt;&lt;qualify \&quot;$:/temp/Type/input\&quot;&gt;&gt; typeSelectionTiddler=&lt;&lt;qualify \&quot;$:/temp/Type/selected-item\&quot;&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((cancel-edit-tiddler))\&quot; actions=&lt;&lt;cancel-delete-tiddler-actions \&quot;cancel\&quot;&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((save-tiddler))\&quot; actions=&lt;&lt;save-tiddler-actions&gt;&gt;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$set name=\&quot;tv-config-toolbar-class\&quot; filter=\&quot;[&lt;tv-config-toolbar-class&gt;] [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]]\&quot;&gt;\n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;/$vars&gt;\n&lt;/$fieldmangler&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/cancel&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/cancel&quot;,
&quot;tags&quot;: &quot;$:/tags/EditToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Cancel/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button actions=&lt;&lt;cancel-delete-tiddler-actions \&quot;cancel\&quot;&gt;&gt; tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/cancel-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Cancel/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/delete&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/delete&quot;,
&quot;tags&quot;: &quot;$:/tags/EditToolbar $:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Delete/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button actions=&lt;&lt;cancel-delete-tiddler-actions \&quot;delete\&quot;&gt;&gt; tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/delete-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Delete/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/save&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/save&quot;,
&quot;tags&quot;: &quot;$:/tags/EditToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Save/Hint}}&quot;,
&quot;text&quot;: &quot;\\define save-tiddler-button()\n\\whitespace trim\n&lt;$fieldmangler&gt;&lt;$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;&lt;save-tiddler-actions&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/done-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Save/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&lt;/$fieldmangler&gt;\n\\end\n&lt;&lt;save-tiddler-button&gt;&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/bold&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/bold&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/bold&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Bold/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Bold/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((bold))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-selection\&quot;\n\tprefix=\&quot;''\&quot;\n\tsuffix=\&quot;''\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/clear-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/clear-dropdown&quot;,
&quot;text&quot;: &quot;''{{$:/language/Buttons/Clear/Hint}}''\n\n&lt;div class=\&quot;tc-colour-chooser\&quot;&gt;\n\n&lt;$macrocall $name=\&quot;colour-picker\&quot; actions=\&quot;\&quot;\&quot;\n\n&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-bitmap-operation\&quot;\n\t$param=\&quot;clear\&quot;\n\tcolour=&lt;&lt;colour-picker-value&gt;&gt;\n/&gt;\n\n&lt;$action-deletetiddler\n\t$tiddler=&lt;&lt;dropdown-state&gt;&gt;\n/&gt;\n\n\&quot;\&quot;\&quot;/&gt;\n\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/clear&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/clear&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/erase&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Clear/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Clear/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;is[image]] -[&lt;targetTiddler&gt;type[image/svg+xml]]&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/clear-dropdown&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/ui/EditorToolbar/editor-height-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/editor-height-dropdown&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Buttons/EditorHeight/\n''&lt;&lt;lingo Hint&gt;&gt;''\n\n&lt;$radio tiddler=\&quot;$:/config/TextEditor/EditorHeight/Mode\&quot; value=\&quot;auto\&quot;&gt; {{$:/core/images/auto-height}} &lt;&lt;lingo Caption/Auto&gt;&gt;&lt;/$radio&gt;\n\n&lt;$radio tiddler=\&quot;$:/config/TextEditor/EditorHeight/Mode\&quot; value=\&quot;fixed\&quot;&gt; {{$:/core/images/fixed-height}} &lt;&lt;lingo Caption/Fixed&gt;&gt; &lt;$edit-text tag=\&quot;input\&quot; tiddler=\&quot;$:/config/TextEditor/EditorHeight/Height\&quot; default=\&quot;100px\&quot;/&gt;&lt;/$radio&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/editor-height&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/editor-height&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/fixed-height&quot;,
&quot;custom-icon&quot;: &quot;yes&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/EditorHeight/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/EditorHeight/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;type[]] [&lt;targetTiddler&gt;get[type]prefix[text/]] [&lt;targetTiddler&gt;get[type]match[application/javascript]] [&lt;targetTiddler&gt;get[type]match[application/json]] [&lt;targetTiddler&gt;get[type]match[application/x-tiddler-dictionary]] [&lt;targetTiddler&gt;get[type]match[image/svg+xml]] +[first[]]&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/editor-height-dropdown&quot;,
&quot;text&quot;: &quot;&lt;$reveal tag=\&quot;span\&quot; state=\&quot;$:/config/TextEditor/EditorHeight/Mode\&quot; type=\&quot;match\&quot; text=\&quot;fixed\&quot;&gt;\n{{$:/core/images/fixed-height}}\n&lt;/$reveal&gt;\n&lt;$reveal tag=\&quot;span\&quot; state=\&quot;$:/config/TextEditor/EditorHeight/Mode\&quot; type=\&quot;match\&quot; text=\&quot;auto\&quot;&gt;\n{{$:/core/images/auto-height}}\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/excise-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/excise-dropdown&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Buttons/Excise/\n\n\\define body(config-title)\n''&lt;&lt;lingo Hint&gt;&gt;''\n\n&lt;&lt;lingo Caption/NewTitle&gt;&gt; &lt;$edit-text tag=\&quot;input\&quot; tiddler=\&quot;$config-title$/new-title\&quot; default=\&quot;\&quot; focus=\&quot;true\&quot;/&gt;\n\n&lt;$set name=\&quot;new-title\&quot; value={{$config-title$/new-title}}&gt;\n&lt;$list filter=\&quot;\&quot;\&quot;[&lt;new-title&gt;is[tiddler]]\&quot;\&quot;\&quot;&gt;\n&lt;div class=\&quot;tc-error\&quot;&gt;\n&lt;&lt;lingo Caption/TiddlerExists&gt;&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n\n&lt;$checkbox tiddler=\&quot;\&quot;\&quot;$config-title$/tagnew\&quot;\&quot;\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot; default=\&quot;false\&quot;&gt; &lt;&lt;lingo Caption/Tag&gt;&gt;&lt;/$checkbox&gt;\n\n&lt;&lt;lingo Caption/Replace&gt;&gt; &lt;$select tiddler=\&quot;\&quot;\&quot;$config-title$/type\&quot;\&quot;\&quot; default=\&quot;transclude\&quot;&gt;\n&lt;option value=\&quot;link\&quot;&gt;&lt;&lt;lingo Caption/Replace/Link&gt;&gt;&lt;/option&gt;\n&lt;option value=\&quot;transclude\&quot;&gt;&lt;&lt;lingo Caption/Replace/Transclusion&gt;&gt;&lt;/option&gt;\n&lt;option value=\&quot;macro\&quot;&gt;&lt;&lt;lingo Caption/Replace/Macro&gt;&gt;&lt;/option&gt;\n&lt;/$select&gt;\n\n&lt;$reveal state=\&quot;\&quot;\&quot;$config-title$/type\&quot;\&quot;\&quot; type=\&quot;match\&quot; text=\&quot;macro\&quot;&gt;\n&lt;&lt;lingo Caption/MacroName&gt;&gt; &lt;$edit-text tag=\&quot;input\&quot; tiddler=\&quot;\&quot;\&quot;$config-title$/macro-title\&quot;\&quot;\&quot; default=\&quot;translink\&quot;/&gt;\n&lt;/$reveal&gt;\n\n&lt;$button&gt;\n&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;excise\&quot;\n\ttitle={{$config-title$/new-title}}\n\ttype={{$config-title$/type}}\n\tmacro={{$config-title$/macro-title}}\n\ttagnew={{$config-title$/tagnew}}\n/&gt;\n&lt;$action-deletetiddler\n\t$tiddler=\&quot;$config-title$/new-title\&quot;\n/&gt;\n&lt;$action-deletetiddler\n\t$tiddler=&lt;&lt;dropdown-state&gt;&gt;\n/&gt;\n&lt;&lt;lingo Caption/Excise&gt;&gt;\n&lt;/$button&gt;\n\\end\n\n&lt;$macrocall $name=\&quot;body\&quot; config-title=&lt;&lt;qualify \&quot;$:/state/Excise/\&quot;&gt;&gt;/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/excise&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/excise&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/excise&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Excise/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Excise/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;type[]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]] +[first[]]&quot;,
&quot;shortcuts&quot;: &quot;((excise))&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/excise-dropdown&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/ui/EditorToolbar/heading-1&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/heading-1&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/heading-1&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Heading1/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Heading1/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;button-classes&quot;: &quot;tc-text-editor-toolbar-item-start-group&quot;,
&quot;shortcuts&quot;: &quot;((heading-1))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;prefix-lines\&quot;\n\tcharacter=\&quot;!\&quot;\n\tcount=\&quot;1\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/heading-2&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/heading-2&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/heading-2&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Heading2/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Heading2/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((heading-2))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;prefix-lines\&quot;\n\tcharacter=\&quot;!\&quot;\n\tcount=\&quot;2\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/heading-3&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/heading-3&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/heading-3&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Heading3/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Heading3/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((heading-3))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;prefix-lines\&quot;\n\tcharacter=\&quot;!\&quot;\n\tcount=\&quot;3\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/heading-4&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/heading-4&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/heading-4&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Heading4/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Heading4/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((heading-4))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;prefix-lines\&quot;\n\tcharacter=\&quot;!\&quot;\n\tcount=\&quot;4\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/heading-5&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/heading-5&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/heading-5&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Heading5/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Heading5/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((heading-5))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;prefix-lines\&quot;\n\tcharacter=\&quot;!\&quot;\n\tcount=\&quot;5\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/heading-6&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/heading-6&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/heading-6&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Heading6/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Heading6/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((heading-6))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;prefix-lines\&quot;\n\tcharacter=\&quot;!\&quot;\n\tcount=\&quot;6\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/italic&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/italic&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/italic&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Italic/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Italic/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((italic))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-selection\&quot;\n\tprefix=\&quot;//\&quot;\n\tsuffix=\&quot;//\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/line-width-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/line-width-dropdown&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Buttons/LineWidth/\n\n\\define toolbar-line-width-inner()\n&lt;$button tag=\&quot;a\&quot; tooltip=\&quot;\&quot;\&quot;$(line-width)$\&quot;\&quot;\&quot;&gt;\n\n&lt;$action-setfield\n\t$tiddler=\&quot;$:/config/BitmapEditor/LineWidth\&quot;\n\t$value=\&quot;$(line-width)$\&quot;\n/&gt;\n\n&lt;$action-deletetiddler\n\t$tiddler=&lt;&lt;dropdown-state&gt;&gt;\n/&gt;\n\n&lt;div style=\&quot;display: inline-block; margin: 4px calc(80px - $(line-width)$); background-color: #000; width: calc(100px + $(line-width)$ * 2); height: $(line-width)$; border-radius: 120px; vertical-align: middle;\&quot;/&gt;\n\n&lt;span style=\&quot;margin-left: 8px;\&quot;&gt;\n\n&lt;$text text=\&quot;\&quot;\&quot;$(line-width)$\&quot;\&quot;\&quot;/&gt;\n\n&lt;$reveal state=\&quot;$:/config/BitmapEditor/LineWidth\&quot; type=\&quot;match\&quot; text=\&quot;\&quot;\&quot;$(line-width)$\&quot;\&quot;\&quot; tag=\&quot;span\&quot;&gt;\n\n&lt;$entity entity=\&quot;&amp;nbsp;\&quot;/&gt;\n\n&lt;$entity entity=\&quot;&amp;#x2713;\&quot;/&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/span&gt;\n\n&lt;/$button&gt;\n\\end\n\n''&lt;&lt;lingo Hint&gt;&gt;''\n\n&lt;$list filter={{$:/config/BitmapEditor/LineWidths}} variable=\&quot;line-width\&quot;&gt;\n\n&lt;&lt;toolbar-line-width-inner&gt;&gt;\n\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/line-width&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/line-width&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/line-width&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/LineWidth/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/LineWidth/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;is[image]] -[&lt;targetTiddler&gt;type[image/svg+xml]]&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/line-width-dropdown&quot;,
&quot;text&quot;: &quot;&lt;$text text={{$:/config/BitmapEditor/LineWidth}}/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/link-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/link-dropdown&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Buttons/Link/\n\n\\define add-link-actions()\n&lt;$action-sendmessage $message=\&quot;tm-edit-text-operation\&quot; $param=\&quot;make-link\&quot; text={{$(linkTiddler)$}} /&gt;\n&lt;$action-deletetiddler $filter=\&quot;[&lt;dropdown-state&gt;] [&lt;searchTiddler&gt;] [&lt;linkTiddler&gt;] [&lt;storeTitle&gt;] [&lt;searchListState&gt;]\&quot;/&gt;\n\\end\n\n\\define get-focus-selector() [data-tiddler-title=\&quot;$(cssEscapedTitle)$\&quot;] .tc-create-wikitext-link input\n\n\\define cancel-search-actions-inner()\n&lt;$set name=\&quot;userInput\&quot; value={{{ [&lt;storeTitle&gt;get[text]] }}}&gt;&lt;$list filter=\&quot;[&lt;searchTiddler&gt;get[text]!match&lt;userInput&gt;]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$action-deletetiddler $filter=\&quot;[&lt;searchTiddler&gt;] [&lt;linkTiddler&gt;] [&lt;storeTitle&gt;] [&lt;searchListState&gt;]\&quot;/&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-setfield $tiddler=&lt;&lt;searchTiddler&gt;&gt; text=&lt;&lt;userInput&gt;&gt;/&gt;&lt;$action-setfield $tiddler=&lt;&lt;refreshTitle&gt;&gt; text=\&quot;yes\&quot;/&gt;&lt;/$list&gt;&lt;/$set&gt;\n\\end\n\n\\define cancel-search-actions() &lt;$list filter=\&quot;[&lt;storeTitle&gt;!has[text]] +[&lt;searchTiddler&gt;!has[text]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;&lt;cancel-search-actions-inner&gt;&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-edit-text-operation\&quot; $param=\&quot;wrap-selection\&quot; prefix=\&quot;\&quot; suffix=\&quot;\&quot;/&gt;&lt;/$list&gt;\n\n\\define external-link()\n&lt;$button class=\&quot;tc-btn-invisible\&quot; style=\&quot;width: auto; display: inline-block; background-colour: inherit;\&quot; actions=&lt;&lt;add-link-actions&gt;&gt;&gt;\n{{$:/core/images/chevron-right}}\n&lt;/$button&gt;\n\\end\n\n\\define set-next-input-tab(beforeafter:\&quot;after\&quot;) &lt;$macrocall $name=\&quot;change-input-tab\&quot; stateTitle=\&quot;$:/state/tab/search-results/sidebar\&quot; tag=\&quot;$:/tags/SearchResults\&quot; beforeafter=\&quot;$beforeafter$\&quot; defaultState={{$:/config/SearchResults/Default}} actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/state/search/currentTab\&quot; text=&lt;&lt;nextTab&gt;&gt;/&gt;\&quot;\&quot;\&quot;/&gt;\n\n\\define body(config-title)\n''&lt;&lt;lingo Hint&gt;&gt;''\n\n&lt;$vars searchTiddler=\&quot;\&quot;\&quot;$config-title$/search\&quot;\&quot;\&quot; linkTiddler=\&quot;\&quot;\&quot;$config-title$/link\&quot;\&quot;\&quot; linktext=\&quot;\&quot; searchListState=&lt;&lt;qualify \&quot;$:/temp/link-search/selected-item\&quot;&gt;&gt; refreshTitle=&lt;&lt;qualify \&quot;$:/temp/link-search/refresh\&quot;&gt;&gt; storeTitle=&lt;&lt;qualify \&quot;$:/temp/link-search/input\&quot;&gt;&gt;&gt;\n\n&lt;$vars linkTiddler=&lt;&lt;searchTiddler&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((input-tab-right))\&quot; actions=&lt;&lt;set-next-input-tab&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((input-tab-left))\&quot; actions=&lt;&lt;set-next-input-tab \&quot;before\&quot;&gt;&gt; class=\&quot;tc-create-wikitext-link\&quot;&gt;\n&lt;$macrocall $name=\&quot;keyboard-driven-input\&quot; tiddler=&lt;&lt;searchTiddler&gt;&gt; storeTitle=&lt;&lt;storeTitle&gt;&gt;\n\t\tselectionStateTitle=&lt;&lt;searchListState&gt;&gt; refreshTitle=&lt;&lt;refreshTitle&gt;&gt; type=\&quot;search\&quot; filterMinLength=\&quot;1\&quot;\n\t\ttag=\&quot;input\&quot; focus=\&quot;true\&quot; class=\&quot;tc-popup-handle\&quot; inputCancelActions=&lt;&lt;cancel-search-actions&gt;&gt; \n\t\tinputAcceptActions=&lt;&lt;add-link-actions&gt;&gt; placeholder={{$:/language/Search/Search}} default=\&quot;\&quot; \n\t\tconfigTiddlerFilter=\&quot;[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\&quot; /&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;$reveal tag=\&quot;span\&quot; state=&lt;&lt;storeTitle&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n&lt;&lt;external-link&gt;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; style=\&quot;width: auto; display: inline-block; background-colour: inherit;\&quot;&gt;\n&lt;&lt;cancel-search-actions&gt;&gt;&lt;$set name=\&quot;cssEscapedTitle\&quot; value={{{ [&lt;storyTiddler&gt;escapecss[]] }}}&gt;&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=&lt;&lt;get-focus-selector&gt;&gt;/&gt;&lt;/$set&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/$vars&gt;\n\n&lt;$reveal tag=\&quot;div\&quot; state=&lt;&lt;storeTitle&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n\n&lt;$linkcatcher actions=&lt;&lt;add-link-actions&gt;&gt; to=&lt;&lt;linkTiddler&gt;&gt;&gt;\n\n&lt;$vars userInput={{{ [&lt;storeTitle&gt;get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}&gt;\n\n{{$:/core/ui/SearchResults}}\n\n&lt;/$vars&gt;\n\n&lt;/$linkcatcher&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$vars&gt;\n\n\\end\n\n&lt;$macrocall $name=\&quot;body\&quot; config-title=&lt;&lt;qualify \&quot;$:/state/Link/\&quot;&gt;&gt;/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/link&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/link&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/link&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Link/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Link/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;button-classes&quot;: &quot;tc-text-editor-toolbar-item-start-group&quot;,
&quot;shortcuts&quot;: &quot;((link))&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/link-dropdown&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/ui/EditorToolbar/linkify&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/linkify&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Linkify/Caption}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Linkify/Hint}}&quot;,
&quot;icon&quot;: &quot;$:/core/images/linkify&quot;,
&quot;list-before&quot;: &quot;$:/core/ui/EditorToolbar/mono-block&quot;,
&quot;shortcuts&quot;: &quot;((linkify))&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-selection\&quot;\n\tprefix=\&quot;[[\&quot;\n\tsuffix=\&quot;]]\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/list-bullet&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/list-bullet&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/list-bullet&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/ListBullet/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/ListBullet/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((list-bullet))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;prefix-lines\&quot;\n\tcharacter=\&quot;*\&quot;\n\tcount=\&quot;1\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/list-number&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/list-number&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/list-number&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/ListNumber/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/ListNumber/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((list-number))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;prefix-lines\&quot;\n\tcharacter=\&quot;#\&quot;\n\tcount=\&quot;1\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/mono-block&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/mono-block&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/mono-block&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/MonoBlock/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/MonoBlock/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;button-classes&quot;: &quot;tc-text-editor-toolbar-item-start-group&quot;,
&quot;shortcuts&quot;: &quot;((mono-block))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-lines\&quot;\n\tprefix=\&quot;\n```\&quot;\n\tsuffix=\&quot;```\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/mono-line&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/mono-line&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/mono-line&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/MonoLine/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/MonoLine/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((mono-line))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-selection\&quot;\n\tprefix=\&quot;`\&quot;\n\tsuffix=\&quot;`\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/more-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/more-dropdown&quot;,
&quot;text&quot;: &quot;\\define config-title()\n$:/config/EditorToolbarButtons/Visibility/$(toolbarItem)$\n\\end\n\n\\define conditional-button()\n&lt;$list filter={{$(toolbarItem)$!!condition}} variable=\&quot;condition\&quot;&gt;\n&lt;$transclude tiddler=\&quot;$:/core/ui/EditTemplate/body/toolbar/button\&quot; mode=\&quot;inline\&quot;/&gt; &lt;$transclude tiddler=&lt;&lt;toolbarItem&gt;&gt; field=\&quot;description\&quot;/&gt;\n&lt;/$list&gt;\n\\end\n\n&lt;div class=\&quot;tc-text-editor-toolbar-more\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]] -[[$:/core/ui/EditorToolbar/more]]\&quot;&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;config-visibility-title&gt;&gt; text=\&quot;hide\&quot; tag=\&quot;div\&quot;&gt;\n&lt;&lt;conditional-button&gt;&gt;\n&lt;/$reveal&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/more&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/more&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/down-arrow&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/More/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/More/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;]&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/more-dropdown&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/ui/EditorToolbar/opacity-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/opacity-dropdown&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Buttons/Opacity/\n\n\\define toolbar-opacity-inner()\n&lt;$button tag=\&quot;a\&quot; tooltip=\&quot;\&quot;\&quot;$(opacity)$\&quot;\&quot;\&quot;&gt;\n\n&lt;$action-setfield\n\t$tiddler=\&quot;$:/config/BitmapEditor/Opacity\&quot;\n\t$value=\&quot;$(opacity)$\&quot;\n/&gt;\n\n&lt;$action-deletetiddler\n\t$tiddler=&lt;&lt;dropdown-state&gt;&gt;\n/&gt;\n\n&lt;div style=\&quot;display: inline-block; vertical-align: middle; background-color: $(current-paint-colour)$; opacity: $(opacity)$; width: 1em; height: 1em; border-radius: 50%;\&quot;/&gt;\n\n&lt;span style=\&quot;margin-left: 8px;\&quot;&gt;\n\n&lt;$text text=\&quot;\&quot;\&quot;$(opacity)$\&quot;\&quot;\&quot;/&gt;\n\n&lt;$reveal state=\&quot;$:/config/BitmapEditor/Opacity\&quot; type=\&quot;match\&quot; text=\&quot;\&quot;\&quot;$(opacity)$\&quot;\&quot;\&quot; tag=\&quot;span\&quot;&gt;\n\n&lt;$entity entity=\&quot;&amp;nbsp;\&quot;/&gt;\n\n&lt;$entity entity=\&quot;&amp;#x2713;\&quot;/&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/span&gt;\n\n&lt;/$button&gt;\n\\end\n\n\\define toolbar-opacity()\n''&lt;&lt;lingo Hint&gt;&gt;''\n\n&lt;$list filter={{$:/config/BitmapEditor/Opacities}} variable=\&quot;opacity\&quot;&gt;\n\n&lt;&lt;toolbar-opacity-inner&gt;&gt;\n\n&lt;/$list&gt;\n\\end\n\n&lt;$set name=\&quot;current-paint-colour\&quot; value={{$:/config/BitmapEditor/Colour}}&gt;\n\n&lt;$set name=\&quot;current-opacity\&quot; value={{$:/config/BitmapEditor/Opacity}}&gt;\n\n&lt;&lt;toolbar-opacity&gt;&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/opacity&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/opacity&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/opacity&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Opacity/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Opacity/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;is[image]] -[&lt;targetTiddler&gt;type[image/svg+xml]]&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/opacity-dropdown&quot;,
&quot;text&quot;: &quot;&lt;$text text={{$:/config/BitmapEditor/Opacity}}/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/paint-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/paint-dropdown&quot;,
&quot;text&quot;: &quot;''{{$:/language/Buttons/Paint/Hint}}''\n\n&lt;$macrocall $name=\&quot;colour-picker\&quot; actions=\&quot;\&quot;\&quot;\n\n&lt;$action-setfield\n\t$tiddler=\&quot;$:/config/BitmapEditor/Colour\&quot;\n\t$value=&lt;&lt;colour-picker-value&gt;&gt;\n/&gt;\n\n&lt;$action-deletetiddler\n\t$tiddler=&lt;&lt;dropdown-state&gt;&gt;\n/&gt;\n\n\&quot;\&quot;\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/paint&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/paint&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/paint&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Paint/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Paint/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;is[image]] -[&lt;targetTiddler&gt;type[image/svg+xml]]&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/paint-dropdown&quot;,
&quot;text&quot;: &quot;\\define toolbar-paint()\n&lt;div style=\&quot;display: inline-block; vertical-align: middle; background-color: $(colour-picker-value)$; width: 1em; height: 1em; border-radius: 50%;\&quot;/&gt;\n\\end\n&lt;$set name=\&quot;colour-picker-value\&quot; value={{$:/config/BitmapEditor/Colour}}&gt;\n&lt;&lt;toolbar-paint&gt;&gt;\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/picture-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/picture-dropdown&quot;,
&quot;text&quot;: &quot;\\define replacement-text()\n[img[$(imageTitle)$]]\n\\end\n\n''{{$:/language/Buttons/Picture/Hint}}''\n\n&lt;$macrocall $name=\&quot;image-picker\&quot; actions=\&quot;\&quot;\&quot;\n\n&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;replace-selection\&quot;\n\ttext=&lt;&lt;replacement-text&gt;&gt;\n/&gt;\n\n&lt;$action-deletetiddler\n\t$tiddler=&lt;&lt;dropdown-state&gt;&gt;\n/&gt;\n\n\&quot;\&quot;\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/picture&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/picture&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/picture&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Picture/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Picture/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((picture))&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/picture-dropdown&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/ui/EditorToolbar/preview-type-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/preview-type-dropdown&quot;,
&quot;text&quot;: &quot;\\define preview-type-button()\n&lt;$button tag=\&quot;a\&quot;&gt;\n\n&lt;$action-setfield $tiddler=\&quot;$:/state/editpreviewtype\&quot; $value=\&quot;$(previewType)$\&quot;/&gt;\n\n&lt;$action-deletetiddler\n\t$tiddler=&lt;&lt;dropdown-state&gt;&gt;\n/&gt;\n\n&lt;$transclude tiddler=&lt;&lt;previewType&gt;&gt; field=\&quot;caption\&quot; mode=\&quot;inline\&quot;&gt;\n\n&lt;$view tiddler=&lt;&lt;previewType&gt;&gt; field=\&quot;title\&quot; mode=\&quot;inline\&quot;/&gt;\n\n&lt;/$transclude&gt; \n\n&lt;$reveal tag=\&quot;span\&quot; state=\&quot;$:/state/editpreviewtype\&quot; type=\&quot;match\&quot; text=&lt;&lt;previewType&gt;&gt; default=\&quot;$:/core/ui/EditTemplate/body/preview/output\&quot;&gt;\n\n&lt;$entity entity=\&quot;&amp;nbsp;\&quot;/&gt;\n\n&lt;$entity entity=\&quot;&amp;#x2713;\&quot;/&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$button&gt;\n\\end\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]]\&quot; variable=\&quot;previewType\&quot;&gt;\n\n&lt;&lt;preview-type-button&gt;&gt;\n\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/preview-type&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/preview-type&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/chevron-down&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/PreviewType/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/PreviewType/Hint}}&quot;,
&quot;condition&quot;: &quot;[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]butfirst[]limit[1]]&quot;,
&quot;button-classes&quot;: &quot;tc-text-editor-toolbar-item-adjunct&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/preview-type-dropdown&quot;
},
&quot;$:/core/ui/EditorToolbar/preview&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/preview&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/preview-open&quot;,
&quot;custom-icon&quot;: &quot;yes&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Preview/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Preview/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;]&quot;,
&quot;button-classes&quot;: &quot;tc-text-editor-toolbar-item-start-group&quot;,
&quot;shortcuts&quot;: &quot;((preview))&quot;,
&quot;text&quot;: &quot;&lt;$reveal state=\&quot;$:/state/showeditpreview\&quot; type=\&quot;match\&quot; text=\&quot;yes\&quot; tag=\&quot;span\&quot;&gt;\n{{$:/core/images/preview-open}}\n&lt;$action-setfield $tiddler=\&quot;$:/state/showeditpreview\&quot; $value=\&quot;no\&quot;/&gt;\n&lt;/$reveal&gt;\n&lt;$reveal state=\&quot;$:/state/showeditpreview\&quot; type=\&quot;nomatch\&quot; text=\&quot;yes\&quot; tag=\&quot;span\&quot;&gt;\n{{$:/core/images/preview-closed}}\n&lt;$action-setfield $tiddler=\&quot;$:/state/showeditpreview\&quot; $value=\&quot;yes\&quot;/&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/quote&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/quote&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/quote&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Quote/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Quote/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((quote))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-lines\&quot;\n\tprefix=\&quot;\n&lt;&lt;&lt;\&quot;\n\tsuffix=\&quot;&lt;&lt;&lt;\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/rotate-left&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/rotate-left&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/rotate-left&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/RotateLeft/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/RotateLeft/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;is[image]] -[&lt;targetTiddler&gt;type[image/svg+xml]]&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-bitmap-operation\&quot;\n\t$param=\&quot;rotate-left\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/size-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/size-dropdown&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Buttons/Size/\n\n\\define toolbar-button-size-preset(config-title)\n&lt;$set name=\&quot;width\&quot; filter=\&quot;$(sizePair)$ +[first[]]\&quot;&gt;\n\n&lt;$set name=\&quot;height\&quot; filter=\&quot;$(sizePair)$ +[last[]]\&quot;&gt;\n\n&lt;$button tag=\&quot;a\&quot;&gt;\n\n&lt;$action-setfield\n\t$tiddler=\&quot;\&quot;\&quot;$config-title$/new-width\&quot;\&quot;\&quot;\n\t$value=&lt;&lt;width&gt;&gt;\n/&gt;\n\n&lt;$action-setfield\n\t$tiddler=\&quot;\&quot;\&quot;$config-title$/new-height\&quot;\&quot;\&quot;\n\t$value=&lt;&lt;height&gt;&gt;\n/&gt;\n\n&lt;$action-deletetiddler\n\t$tiddler=\&quot;\&quot;\&quot;$config-title$/presets-popup\&quot;\&quot;\&quot;\n/&gt;\n\n&lt;$text text=&lt;&lt;width&gt;&gt;/&gt; &amp;times; &lt;$text text=&lt;&lt;height&gt;&gt;/&gt;\n\n&lt;/$button&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\\end\n\n\\define toolbar-button-size(config-title)\n''{{$:/language/Buttons/Size/Hint}}''\n\n&lt;&lt;lingo Caption/Width&gt;&gt; &lt;$edit-text tag=\&quot;input\&quot; tiddler=\&quot;\&quot;\&quot;$config-title$/new-width\&quot;\&quot;\&quot; default=&lt;&lt;tv-bitmap-editor-width&gt;&gt; focus=\&quot;true\&quot; size=\&quot;8\&quot;/&gt; &lt;&lt;lingo Caption/Height&gt;&gt; &lt;$edit-text tag=\&quot;input\&quot; tiddler=\&quot;\&quot;\&quot;$config-title$/new-height\&quot;\&quot;\&quot; default=&lt;&lt;tv-bitmap-editor-height&gt;&gt; size=\&quot;8\&quot;/&gt; &lt;$button popup=\&quot;\&quot;\&quot;$config-title$/presets-popup\&quot;\&quot;\&quot; class=\&quot;tc-btn-invisible tc-popup-keep\&quot; style=\&quot;width: auto; display: inline-block; background-colour: inherit;\&quot; selectedClass=\&quot;tc-selected\&quot;&gt;\n{{$:/core/images/down-arrow}}\n&lt;/$button&gt;\n\n&lt;$reveal tag=\&quot;span\&quot; state=\&quot;\&quot;\&quot;$config-title$/presets-popup\&quot;\&quot;\&quot; type=\&quot;popup\&quot; position=\&quot;belowleft\&quot; animate=\&quot;yes\&quot;&gt;\n\n&lt;div class=\&quot;tc-drop-down tc-popup-keep\&quot;&gt;\n\n&lt;$list filter={{$:/config/BitmapEditor/ImageSizes}} variable=\&quot;sizePair\&quot;&gt;\n\n&lt;$macrocall $name=\&quot;toolbar-button-size-preset\&quot; config-title=\&quot;$config-title$\&quot;/&gt;\n\n&lt;/$list&gt;\n\n&lt;/div&gt;\n\n&lt;/$reveal&gt;\n\n&lt;$button&gt;\n&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-bitmap-operation\&quot;\n\t$param=\&quot;resize\&quot;\n\twidth={{$config-title$/new-width}}\n\theight={{$config-title$/new-height}}\n/&gt;\n&lt;$action-deletetiddler\n\t$tiddler=\&quot;\&quot;\&quot;$config-title$/new-width\&quot;\&quot;\&quot;\n/&gt;\n&lt;$action-deletetiddler\n\t$tiddler=\&quot;\&quot;\&quot;$config-title$/new-height\&quot;\&quot;\&quot;\n/&gt;\n&lt;$action-deletetiddler\n\t$tiddler=&lt;&lt;dropdown-state&gt;&gt;\n/&gt;\n&lt;&lt;lingo Caption/Resize&gt;&gt;\n&lt;/$button&gt;\n\\end\n\n&lt;$macrocall $name=\&quot;toolbar-button-size\&quot; config-title=&lt;&lt;qualify \&quot;$:/state/Size/\&quot;&gt;&gt;/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/size&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/size&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/size&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Size/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Size/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;is[image]] -[&lt;targetTiddler&gt;type[image/svg+xml]]&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/size-dropdown&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/ui/EditorToolbar/stamp-dropdown&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/stamp-dropdown&quot;,
&quot;text&quot;: &quot;\\define toolbar-button-stamp-inner()\n&lt;$button tag=\&quot;a\&quot;&gt;\n\n&lt;$list filter=\&quot;[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]]\&quot;&gt;\n\n&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;replace-selection\&quot;\n\ttext={{$(snippetTitle)$}}\n/&gt;\n\n&lt;/$list&gt;\n\n\n&lt;$list filter=\&quot;[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]]\&quot;&gt;\n\n&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-selection\&quot;\n\tprefix={{{ [[$(snippetTitle)$]addsuffix[/prefix]get[text]] }}}\nsuffix={{{ [[$(snippetTitle)$]addsuffix[/suffix]get[text]] }}}\n/&gt;\n\n&lt;/$list&gt;\n\n&lt;$action-deletetiddler\n\t$tiddler=&lt;&lt;dropdown-state&gt;&gt;\n/&gt;\n\n&lt;$transclude tiddler=&lt;&lt;snippetTitle&gt;&gt; field=\&quot;caption\&quot; mode=\&quot;inline\&quot;&gt;\n\n&lt;$view tiddler=&lt;&lt;snippetTitle&gt;&gt; field=\&quot;title\&quot; /&gt;\n\n&lt;/$transclude&gt;\n\n&lt;/$button&gt;\n\\end\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/TextEditor/Snippet]!has[draft.of]sort[caption]]\&quot; variable=\&quot;snippetTitle\&quot;&gt;\n\n&lt;&lt;toolbar-button-stamp-inner&gt;&gt;\n\n&lt;/$list&gt;\n\n----\n\n&lt;$button tag=\&quot;a\&quot;&gt;\n\n&lt;$action-sendmessage\n\t$message=\&quot;tm-new-tiddler\&quot;\n\ttags=\&quot;$:/tags/TextEditor/Snippet\&quot;\n\tcaption={{$:/language/Buttons/Stamp/New/Title}}\n\ttext={{$:/language/Buttons/Stamp/New/Text}}\n/&gt;\n\n&lt;$action-deletetiddler\n\t$tiddler=&lt;&lt;dropdown-state&gt;&gt;\n/&gt;\n\n&lt;em&gt;\n\n&lt;$text text={{$:/language/Buttons/Stamp/Caption/New}}/&gt;\n\n&lt;/em&gt;\n\n&lt;/$button&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/stamp&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/stamp&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/stamp&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Stamp/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Stamp/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;type[]] [&lt;targetTiddler&gt;get[type]prefix[text/]] [&lt;targetTiddler&gt;get[type]match[application/javascript]] [&lt;targetTiddler&gt;get[type]match[application/json]] [&lt;targetTiddler&gt;get[type]match[application/x-tiddler-dictionary]] [&lt;targetTiddler&gt;get[type]match[image/svg+xml]] +[first[]]&quot;,
&quot;shortcuts&quot;: &quot;((stamp))&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/stamp-dropdown&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/ui/EditorToolbar/strikethrough&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/strikethrough&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/strikethrough&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Strikethrough/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Strikethrough/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((strikethrough))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-selection\&quot;\n\tprefix=\&quot;~~\&quot;\n\tsuffix=\&quot;~~\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/subscript&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/subscript&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/subscript&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Subscript/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Subscript/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((subscript))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-selection\&quot;\n\tprefix=\&quot;,,\&quot;\n\tsuffix=\&quot;,,\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/superscript&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/superscript&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/superscript&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Superscript/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Superscript/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((superscript))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-selection\&quot;\n\tprefix=\&quot;^^\&quot;\n\tsuffix=\&quot;^^\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/transcludify&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/transcludify&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Transcludify/Caption}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Transcludify/Hint}}&quot;,
&quot;icon&quot;: &quot;$:/core/images/transcludify&quot;,
&quot;list-before&quot;: &quot;$:/core/ui/EditorToolbar/mono-block&quot;,
&quot;shortcuts&quot;: &quot;((transcludify))&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-selection\&quot;\n\tprefix=\&quot;{{\&quot;\n\tsuffix=\&quot;}}\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/ui/EditorToolbar/underline&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditorToolbar/underline&quot;,
&quot;tags&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;icon&quot;: &quot;$:/core/images/underline&quot;,
&quot;caption&quot;: &quot;{{$:/language/Buttons/Underline/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Underline/Hint}}&quot;,
&quot;condition&quot;: &quot;[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]&quot;,
&quot;shortcuts&quot;: &quot;((underline))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage\n\t$message=\&quot;tm-edit-text-operation\&quot;\n\t$param=\&quot;wrap-selection\&quot;\n\tprefix=\&quot;__\&quot;\n\tsuffix=\&quot;__\&quot;\n/&gt;\n&quot;
},
&quot;$:/core/Filters/AllTags&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/AllTags&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[tags[]!is[system]sort[title]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/AllTags}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/AllTiddlers&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/AllTiddlers&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[!is[system]sort[title]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/AllTiddlers}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/Drafts&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/Drafts&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[has[draft.of]sort[title]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/Drafts}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/Missing&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/Missing&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[all[missing]sort[title]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/Missing}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/Orphans&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/Orphans&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[all[orphans]sort[title]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/Orphans}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/OverriddenShadowTiddlers&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/OverriddenShadowTiddlers&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[is[shadow]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/OverriddenShadowTiddlers}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/RecentSystemTiddlers&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/RecentSystemTiddlers&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[has[modified]!sort[modified]limit[50]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/RecentSystemTiddlers}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/RecentTiddlers&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/RecentTiddlers&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[!is[system]has[modified]!sort[modified]limit[50]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/RecentTiddlers}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/SessionTiddlers&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/SessionTiddlers&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[haschanged[]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/SessionTiddlers}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/ShadowTiddlers&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/ShadowTiddlers&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[all[shadows]sort[title]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/ShadowTiddlers}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/StoryList&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/StoryList&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[list[$:/StoryList]] -$:/AdvancedSearch&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/StoryList}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/SystemTags&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/SystemTags&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[all[shadows+tiddlers]tags[]is[system]sort[title]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/SystemTags}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/SystemTiddlers&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/SystemTiddlers&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[is[system]sort[title]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/SystemTiddlers}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/Filters/TypedTiddlers&quot;: {
&quot;title&quot;: &quot;$:/core/Filters/TypedTiddlers&quot;,
&quot;tags&quot;: &quot;$:/tags/Filter&quot;,
&quot;filter&quot;: &quot;[!is[system]has[type]each[type]sort[type]] -[type[text/vnd.tiddlywiki]]&quot;,
&quot;description&quot;: &quot;{{$:/language/Filters/TypedTiddlers}}&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/core/ui/ImportListing&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ImportListing&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Import/\n\n\\define messageField() message-$(payloadTiddler)$\n\n\\define payloadTitleFilter() [&lt;currentTiddler&gt;get&lt;renameField&gt;minlength[1]else&lt;payloadTiddler&gt;]\n\n\\define overWriteWarning()\n&lt;$list filter=\&quot;[&lt;currentTiddler&gt;!has&lt;suppressedField&gt;]\&quot;&gt;\n&lt;$text text={{{[subfilter&lt;payloadTitleFilter&gt;!is[tiddler]then[]] ~[&lt;lingo-base&gt;addsuffix[Listing/Rename/OverwriteWarning]get[text]]}}}/&gt;\n&lt;/$list&gt;\n\\end\n\n\\define selectionField() selection-$(payloadTiddler)$\n\n\\define renameField() rename-$(payloadTiddler)$\n\n\\define suppressedField() suppressed-$(payloadTiddler)$\n\n\\define newImportTitleTiddler() $:/temp/NewImportTitle-$(payloadTiddler)$\n\n\\define previewPopupState() $(currentTiddler)$!!popup-$(payloadTiddler)$\n\n\\define renameFieldState() $(currentTiddler)$!!state-rename-$(payloadTiddler)$\n\n\\define select-all-actions()\n&lt;$list filter=\&quot;[all[current]plugintiddlers[]sort[title]]\&quot; variable=\&quot;payloadTiddler\&quot;&gt;\n&lt;$action-setfield $field={{{ [&lt;payloadTiddler&gt;addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/&gt;\n&lt;/$list&gt;\n\\end\n\n&lt;table class=\&quot;tc-import-table\&quot;&gt;\n&lt;tbody&gt;\n&lt;tr&gt;\n&lt;th align=\&quot;left\&quot;&gt;\n&lt;$checkbox tiddler=\&quot;$:/state/import/select-all\&quot; field=\&quot;text\&quot; checked=\&quot;checked\&quot; unchecked=\&quot;unchecked\&quot; default=\&quot;checked\&quot; actions=&lt;&lt;select-all-actions&gt;&gt;&gt;\n&lt;&lt;lingo Listing/Select/Caption&gt;&gt;\n&lt;/$checkbox&gt;\n&lt;/th&gt;\n&lt;th&gt;\n&lt;&lt;lingo Listing/Title/Caption&gt;&gt;\n&lt;/th&gt;\n&lt;th&gt;\n&lt;&lt;lingo Listing/Status/Caption&gt;&gt;\n&lt;/th&gt;\n&lt;/tr&gt;\n&lt;$list filter=\&quot;[all[current]plugintiddlers[]sort[title]]\&quot; variable=\&quot;payloadTiddler\&quot;&gt;\n&lt;tr class={{{[&lt;currentTiddler&gt;has&lt;suppressedField&gt;then[tc-row-disabled]] ~[subfilter&lt;payloadTitleFilter&gt;is[tiddler]then[tc-row-warning]] }}}&gt;\n&lt;td&gt;\n&lt;$checkbox field=&lt;&lt;selectionField&gt;&gt; checked=\&quot;checked\&quot; unchecked=\&quot;unchecked\&quot; default=\&quot;checked\&quot; disabled={{{[&lt;currentTiddler&gt;has&lt;suppressedField&gt;then[yes]else[no]]}}}/&gt;\n&lt;/td&gt;\n&lt;td&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;renameFieldState&gt;&gt; text=\&quot;yes\&quot; tag=\&quot;div\&quot;&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;previewPopupState&gt;&gt; text=\&quot;yes\&quot; tag=\&quot;div\&quot; class=\&quot;tc-flex\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible tc-btn-dropdown tc-flex-grow-1 tc-word-break\&quot; set=&lt;&lt;previewPopupState&gt;&gt; setTo=\&quot;yes\&quot; disabled={{{[&lt;currentTiddler&gt;has&lt;suppressedField&gt;then[yes]else[no]]}}}&gt;\n&lt;span class=\&quot;tc-small-gap-right\&quot;&gt;{{$:/core/images/right-arrow}}&lt;/span&gt;&lt;$text text={{{[subfilter&lt;payloadTitleFilter&gt;]}}}/&gt;\n&lt;/$button&gt;\n&lt;$list filter=\&quot;[&lt;currentTiddler&gt;!has&lt;suppressedField&gt;]\&quot;&gt;&lt;$button class=\&quot;tc-btn-invisible\&quot; set=&lt;&lt;renameFieldState&gt;&gt; setTo=\&quot;yes\&quot; tooltip={{{[&lt;lingo-base&gt;addsuffix[Listing/Rename/Tooltip]get[text]]}}}&gt;{{$:/core/images/edit-button}}&lt;/$button&gt;&lt;/$list&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;previewPopupState&gt;&gt; text=\&quot;yes\&quot; tag=\&quot;div\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot; set=&lt;&lt;previewPopupState&gt;&gt; setTo=\&quot;no\&quot;&gt;\n&lt;span class=\&quot;tc-small-gap-right\&quot;&gt;{{$:/core/images/down-arrow}}&lt;/span&gt;&lt;$text text={{{[subfilter&lt;payloadTitleFilter&gt;]}}}/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;renameFieldState&gt;&gt; text=\&quot;yes\&quot; tag=\&quot;div\&quot;&gt;\n&lt;$text text={{{[&lt;lingo-base&gt;addsuffix[Listing/Rename/Prompt]get[text]]}}}/&gt;\n&lt;/$reveal&gt;\n&lt;/td&gt;\n&lt;td&gt;\n&lt;$view field=&lt;&lt;messageField&gt;&gt;/&gt;\n&lt;&lt;overWriteWarning&gt;&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;renameFieldState&gt;&gt; text=\&quot;yes\&quot; tag=\&quot;tr\&quot;&gt;\n&lt;td colspan=\&quot;3\&quot;&gt;\n&lt;div class=\&quot;tc-flex\&quot;&gt;\n&lt;$edit-text tiddler=&lt;&lt;newImportTitleTiddler&gt;&gt; default={{{[subfilter&lt;payloadTitleFilter&gt;]}}} tag=\&quot;input\&quot; class=\&quot;tc-import-rename tc-flex-grow-1\&quot;/&gt;&lt;span class=\&quot;tc-small-gap-left\&quot;&gt;&lt;$button class=\&quot;tc-btn-invisible\&quot; set=&lt;&lt;renameFieldState&gt;&gt; setTo=\&quot;no\&quot; tooltip={{{[&lt;lingo-base&gt;addsuffix[Listing/Rename/CancelRename]get[text]]}}}&gt;{{$:/core/images/close-button}}&lt;$action-deletetiddler $tiddler=&lt;&lt;newImportTitleTiddler&gt;&gt;/&gt;&lt;/$button&gt;&lt;span class=\&quot;tc-small-gap-right\&quot;/&gt;&lt;/span&gt;&lt;$button class=\&quot;tc-btn-invisible\&quot; set=&lt;&lt;renameFieldState&gt;&gt; setTo=\&quot;no\&quot; tooltip={{{[&lt;lingo-base&gt;addsuffix[Listing/Rename/ConfirmRename]get[text]]}}}&gt;{{$:/core/images/done-button}}&lt;$action-setfield $field=&lt;&lt;renameField&gt;&gt; $value={{{[&lt;newImportTitleTiddler&gt;get[text]minlength[1]else&lt;payloadTiddler&gt;]}}} /&gt;&lt;$action-deletetiddler $tiddler=&lt;&lt;newImportTitleTiddler&gt;&gt;/&gt;&lt;/$button&gt;\n&lt;/div&gt;\n&lt;/td&gt;\n&lt;/$reveal&gt;\n&lt;tr&gt;\n&lt;td colspan=\&quot;3\&quot;&gt;\n&lt;$reveal type=\&quot;match\&quot; text=\&quot;yes\&quot; state=&lt;&lt;previewPopupState&gt;&gt; tag=\&quot;div\&quot;&gt;\n&lt;$list filter=\&quot;[{$:/state/importpreviewtype}has[text]]\&quot; variable=\&quot;listItem\&quot; emptyMessage={{$:/core/ui/ImportPreviews/Text}}&gt;\n&lt;$transclude tiddler={{$:/state/importpreviewtype}}/&gt;\n&lt;/$list&gt;\n&lt;/$reveal&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;/$list&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&quot;
},
&quot;$:/core/ui/ImportPreviews/Diff&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ImportPreviews/Diff&quot;,
&quot;tags&quot;: &quot;$:/tags/ImportPreview&quot;,
&quot;caption&quot;: &quot;{{$:/language/Import/Listing/Preview/Diff}}&quot;,
&quot;text&quot;: &quot;&lt;$macrocall $name=\&quot;compareTiddlerText\&quot; sourceTiddlerTitle=&lt;&lt;payloadTiddler&gt;&gt; destTiddlerTitle=&lt;&lt;currentTiddler&gt;&gt; destSubTiddlerTitle=&lt;&lt;payloadTiddler&gt;&gt;/&gt;\n&quot;
},
&quot;$:/core/ui/ImportPreviews/DiffFields&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ImportPreviews/DiffFields&quot;,
&quot;tags&quot;: &quot;$:/tags/ImportPreview&quot;,
&quot;caption&quot;: &quot;{{$:/language/Import/Listing/Preview/DiffFields}}&quot;,
&quot;text&quot;: &quot;&lt;$macrocall $name=\&quot;compareTiddlers\&quot; sourceTiddlerTitle=&lt;&lt;payloadTiddler&gt;&gt; destTiddlerTitle=&lt;&lt;currentTiddler&gt;&gt; destSubTiddlerTitle=&lt;&lt;payloadTiddler&gt;&gt; exclude=\&quot;text\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/ImportPreviews/Fields&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ImportPreviews/Fields&quot;,
&quot;tags&quot;: &quot;$:/tags/ImportPreview&quot;,
&quot;caption&quot;: &quot;{{$:/language/Import/Listing/Preview/Fields}}&quot;,
&quot;text&quot;: &quot;&lt;table class=\&quot;tc-view-field-table\&quot;&gt;\n&lt;tbody&gt;\n&lt;$list filter=\&quot;[&lt;payloadTiddler&gt;subtiddlerfields&lt;currentTiddler&gt;sort[]] -text\&quot; variable=\&quot;fieldName\&quot;&gt;\n&lt;tr class=\&quot;tc-view-field\&quot;&gt;\n&lt;td class=\&quot;tc-view-field-name\&quot;&gt;\n&lt;$text text=&lt;&lt;fieldName&gt;&gt;/&gt;\n&lt;/td&gt;\n&lt;td class=\&quot;tc-view-field-value\&quot;&gt;\n&lt;$view field=&lt;&lt;fieldName&gt;&gt; tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;payloadTiddler&gt;&gt;/&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;/$list&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&quot;
},
&quot;$:/core/ui/ImportPreviews/Text&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ImportPreviews/Text&quot;,
&quot;tags&quot;: &quot;$:/tags/ImportPreview&quot;,
&quot;caption&quot;: &quot;{{$:/language/Import/Listing/Preview/Text}}&quot;,
&quot;text&quot;: &quot;&lt;$transclude tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;payloadTiddler&gt;&gt; mode=\&quot;block\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/ImportPreviews/TextRaw&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ImportPreviews/TextRaw&quot;,
&quot;tags&quot;: &quot;$:/tags/ImportPreview&quot;,
&quot;caption&quot;: &quot;{{$:/language/Import/Listing/Preview/TextRaw}}&quot;,
&quot;text&quot;: &quot;&lt;pre&gt;&lt;code&gt;&lt;$view tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;payloadTiddler&gt;&gt; /&gt;&lt;/code&gt;&lt;/pre&gt;&quot;
},
&quot;$:/core/ui/KeyboardShortcuts/advanced-search&quot;: {
&quot;title&quot;: &quot;$:/core/ui/KeyboardShortcuts/advanced-search&quot;,
&quot;tags&quot;: &quot;$:/tags/KeyboardShortcut&quot;,
&quot;key&quot;: &quot;((advanced-search))&quot;,
&quot;text&quot;: &quot;&lt;$navigator story=\&quot;$:/StoryList\&quot; history=\&quot;$:/HistoryList\&quot;&gt;\n&lt;$action-navigate $to=\&quot;$:/AdvancedSearch\&quot;/&gt;\n&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=\&quot;\&quot;\&quot;[data-tiddler-title=\&quot;$:/AdvancedSearch\&quot;] .tc-search input\&quot;\&quot;\&quot; preventScroll=\&quot;true\&quot;/&gt;\n&lt;/$navigator&gt;\n&quot;
},
&quot;$:/core/ui/KeyboardShortcuts/change-sidebar-layout&quot;: {
&quot;title&quot;: &quot;$:/core/ui/KeyboardShortcuts/change-sidebar-layout&quot;,
&quot;tags&quot;: &quot;$:/tags/KeyboardShortcut&quot;,
&quot;key&quot;: &quot;((change-sidebar-layout))&quot;,
&quot;text&quot;: &quot;&lt;$list filter=\&quot;[{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]]\&quot; \nemptyMessage=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/themes/tiddlywiki/vanilla/options/sidebarlayout\&quot; text=\&quot;fixed-fluid\&quot;/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/themes/tiddlywiki/vanilla/options/sidebarlayout\&quot; text=\&quot;fluid-fixed\&quot;/&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/KeyboardShortcuts/new-image&quot;: {
&quot;title&quot;: &quot;$:/core/ui/KeyboardShortcuts/new-image&quot;,
&quot;tags&quot;: &quot;$:/tags/KeyboardShortcut&quot;,
&quot;key&quot;: &quot;((new-image))&quot;,
&quot;text&quot;: &quot;&lt;$navigator story=\&quot;$:/StoryList\&quot; history=\&quot;$:/HistoryList\&quot; openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}&gt;\n{{$:/core/ui/Actions/new-image}}\n&lt;/$navigator&gt;\n&quot;
},
&quot;$:/core/ui/KeyboardShortcuts/new-journal&quot;: {
&quot;title&quot;: &quot;$:/core/ui/KeyboardShortcuts/new-journal&quot;,
&quot;tags&quot;: &quot;$:/tags/KeyboardShortcut&quot;,
&quot;key&quot;: &quot;((new-journal))&quot;,
&quot;text&quot;: &quot;&lt;$navigator story=\&quot;$:/StoryList\&quot; history=\&quot;$:/HistoryList\&quot; openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}&gt;\n{{$:/core/ui/Actions/new-journal}}\n&lt;/$navigator&gt;\n&quot;
},
&quot;$:/core/ui/KeyboardShortcuts/new-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/ui/KeyboardShortcuts/new-tiddler&quot;,
&quot;tags&quot;: &quot;$:/tags/KeyboardShortcut&quot;,
&quot;key&quot;: &quot;((new-tiddler))&quot;,
&quot;text&quot;: &quot;&lt;$navigator story=\&quot;$:/StoryList\&quot; history=\&quot;$:/HistoryList\&quot; openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}&gt;\n{{$:/core/ui/Actions/new-tiddler}}\n&lt;/$navigator&gt;\n&quot;
},
&quot;$:/core/ui/KeyboardShortcuts/save-wiki&quot;: {
&quot;title&quot;: &quot;$:/core/ui/KeyboardShortcuts/save-wiki&quot;,
&quot;tags&quot;: &quot;$:/tags/KeyboardShortcut&quot;,
&quot;key&quot;: &quot;((save-wiki))&quot;,
&quot;text&quot;: &quot;&lt;$wikify name=\&quot;site-title\&quot; text={{$:/config/SaveWikiButton/Filename}}&gt;\n&lt;$action-sendmessage $message=\&quot;tm-save-wiki\&quot; $param={{$:/config/SaveWikiButton/Template}} filename=&lt;&lt;site-title&gt;&gt;/&gt;\n&lt;/$wikify&gt;\n&quot;
},
&quot;$:/core/ui/KeyboardShortcuts/sidebar-search&quot;: {
&quot;title&quot;: &quot;$:/core/ui/KeyboardShortcuts/sidebar-search&quot;,
&quot;tags&quot;: &quot;$:/tags/KeyboardShortcut&quot;,
&quot;key&quot;: &quot;((sidebar-search))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=\&quot;.tc-search input\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/KeyboardShortcuts/switcher&quot;: {
&quot;title&quot;: &quot;$:/core/ui/KeyboardShortcuts/switcher&quot;,
&quot;tags&quot;: &quot;$:/tags/KeyboardShortcut&quot;,
&quot;key&quot;: &quot;((layout-switcher))&quot;,
&quot;text&quot;: &quot;&lt;$action-sendmessage $message=\&quot;tm-show-switcher\&quot; switch=\&quot;layout\&quot;/&gt;&quot;
},
&quot;$:/core/ui/KeyboardShortcuts/toggle-sidebar&quot;: {
&quot;title&quot;: &quot;$:/core/ui/KeyboardShortcuts/toggle-sidebar&quot;,
&quot;tags&quot;: &quot;$:/tags/KeyboardShortcut&quot;,
&quot;key&quot;: &quot;((toggle-sidebar))&quot;,
&quot;text&quot;: &quot;&lt;$list filter=\&quot;[[$:/state/sidebar]is[missing]] [{$:/state/sidebar}removeprefix[yes]]\&quot; emptyMessage=\&quot;\&quot;\&quot;\n&lt;$action-setfield $tiddler=\&quot;$:/state/sidebar\&quot; text=\&quot;yes\&quot;/&gt;\n\&quot;\&quot;\&quot;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/state/sidebar\&quot; text=\&quot;no\&quot;/&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/snippets/LayoutSwitcher&quot;: {
&quot;title&quot;: &quot;$:/snippets/LayoutSwitcher&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Appearance&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/LayoutSwitcher/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$linkcatcher to=\&quot;$:/layout\&quot;&gt;\n&lt;div class=\&quot;tc-chooser\&quot;&gt;\n&lt;$list filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/Layout]] [[$:/core/ui/PageTemplate]] +[!is[draft]sort[name]]\&quot;&gt;\n&lt;$list filter=\&quot;[{$:/layout}!has[text]]\&quot; variable=\&quot;ignore\&quot; emptyMessage=\&quot;\&quot;\&quot;\n&lt;$set name=\&quot;cls\&quot; filter=\&quot;[all[current]field:title{$:/layout}]\&quot; value=\&quot;tc-chooser-item tc-chosen\&quot; emptyValue=\&quot;tc-chooser-item\&quot;&gt;&lt;div class=&lt;&lt;cls&gt;&gt;&gt;&lt;$link to={{!!title}}&gt;''&lt;$transclude field=\&quot;name\&quot;/&gt;'' - &lt;$transclude field=\&quot;description\&quot;/&gt;&lt;/$link&gt;&lt;/div&gt;\n&lt;/$set&gt;\n\&quot;\&quot;\&quot;&gt;\n&lt;$set name=\&quot;cls\&quot; filter=\&quot;[all[current]field:title[$:/core/ui/PageTemplate]]\&quot; value=\&quot;tc-chooser-item tc-chosen\&quot; emptyValue=\&quot;tc-chooser-item\&quot;&gt;&lt;div class=&lt;&lt;cls&gt;&gt;&gt;&lt;$link to={{!!title}}&gt;''&lt;$transclude field=\&quot;name\&quot;/&gt;'' - &lt;$transclude field=\&quot;description\&quot;/&gt;&lt;/$link&gt;&lt;/div&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$linkcatcher&gt;\n&quot;
},
&quot;$:/core/ui/ListItemTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ListItemTemplate&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-menu-list-item\&quot;&gt;\n&lt;$link /&gt;\n&lt;/div&gt;&quot;
},
&quot;$:/Manager/ItemMain/Fields&quot;: {
&quot;title&quot;: &quot;$:/Manager/ItemMain/Fields&quot;,
&quot;tags&quot;: &quot;$:/tags/Manager/ItemMain&quot;,
&quot;caption&quot;: &quot;{{$:/language/Manager/Item/Fields}}&quot;,
&quot;text&quot;: &quot;&lt;table&gt;\n&lt;tbody&gt;\n&lt;$list filter=\&quot;[all[current]fields[]sort[title]] -text\&quot; template=\&quot;$:/core/ui/TiddlerFieldTemplate\&quot; variable=\&quot;listItem\&quot;/&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&quot;
},
&quot;$:/Manager/ItemMain/RawText&quot;: {
&quot;title&quot;: &quot;$:/Manager/ItemMain/RawText&quot;,
&quot;tags&quot;: &quot;$:/tags/Manager/ItemMain&quot;,
&quot;caption&quot;: &quot;{{$:/language/Manager/Item/RawText}}&quot;,
&quot;text&quot;: &quot;&lt;pre&gt;&lt;code&gt;&lt;$view/&gt;&lt;/code&gt;&lt;/pre&gt;\n&quot;
},
&quot;$:/Manager/ItemMain/WikifiedText&quot;: {
&quot;title&quot;: &quot;$:/Manager/ItemMain/WikifiedText&quot;,
&quot;tags&quot;: &quot;$:/tags/Manager/ItemMain&quot;,
&quot;caption&quot;: &quot;{{$:/language/Manager/Item/WikifiedText}}&quot;,
&quot;text&quot;: &quot;&lt;$transclude mode=\&quot;block\&quot;/&gt;\n&quot;
},
&quot;$:/Manager/ItemSidebar/Colour&quot;: {
&quot;title&quot;: &quot;$:/Manager/ItemSidebar/Colour&quot;,
&quot;tags&quot;: &quot;$:/tags/Manager/ItemSidebar&quot;,
&quot;caption&quot;: &quot;{{$:/language/Manager/Item/Colour}}&quot;,
&quot;text&quot;: &quot;\\define swatch-styles()\nheight: 1em;\nbackground-color: $(colour)$\n\\end\n\n&lt;$vars colour={{!!color}}&gt;\n&lt;p style=&lt;&lt;swatch-styles&gt;&gt;/&gt;\n&lt;/$vars&gt;\n&lt;p&gt;\n&lt;$edit-text field=\&quot;color\&quot; tag=\&quot;input\&quot; type=\&quot;color\&quot;/&gt; / &lt;$edit-text field=\&quot;color\&quot; tag=\&quot;input\&quot; type=\&quot;text\&quot; size=\&quot;9\&quot;/&gt;\n&lt;/p&gt;\n&quot;
},
&quot;$:/Manager/ItemSidebar/Icon&quot;: {
&quot;title&quot;: &quot;$:/Manager/ItemSidebar/Icon&quot;,
&quot;tags&quot;: &quot;$:/tags/Manager/ItemSidebar&quot;,
&quot;caption&quot;: &quot;{{$:/language/Manager/Item/Icon}}&quot;,
&quot;text&quot;: &quot;&lt;p&gt;\n&lt;div class=\&quot;tc-manager-icon-editor\&quot;&gt;\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/image-picker\&quot;&gt;&gt; class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$transclude tiddler={{!!icon}}&gt;\n{{$:/language/Manager/Item/Icon/None}}\n&lt;/$transclude&gt;\n&lt;/$button&gt;\n&lt;div class=\&quot;tc-block-dropdown-wrapper\&quot; style=\&quot;position: static;\&quot;&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/image-picker\&quot;&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot; default=\&quot;\&quot; tag=\&quot;div\&quot; class=\&quot;tc-popup\&quot;&gt;\n&lt;div class=\&quot;tc-block-dropdown tc-popup-keep\&quot; style=\&quot;width: 80%; left: 10%; right: 10%; padding: 0.5em;\&quot;&gt;\n&lt;$macrocall $name=\&quot;image-picker-include-tagged-images\&quot; actions=\&quot;\&quot;\&quot;\n&lt;$action-setfield $field=\&quot;icon\&quot; $value=&lt;&lt;imageTitle&gt;&gt;/&gt;\n&lt;$action-deletetiddler $tiddler=&lt;&lt;qualify \&quot;$:/state/popup/image-picker\&quot;&gt;&gt;/&gt;\n\&quot;\&quot;\&quot;/&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/p&gt;\n&quot;
},
&quot;$:/Manager/ItemSidebar/Tags&quot;: {
&quot;title&quot;: &quot;$:/Manager/ItemSidebar/Tags&quot;,
&quot;tags&quot;: &quot;$:/tags/Manager/ItemSidebar&quot;,
&quot;caption&quot;: &quot;{{$:/language/Manager/Item/Tags}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define tag-checkbox-actions()\n&lt;$action-listops\n\t$tiddler=\&quot;$:/config/Manager/RecentTags\&quot;\n\t$subfilter=\&quot;[&lt;tag&gt;] [list[$:/config/Manager/RecentTags]] +[limit[12]]\&quot;\n/&gt;\n\\end\n\n\\define tag-picker-actions()\n&lt;&lt;tag-checkbox-actions&gt;&gt;\n\\end\n\n&lt;p&gt;\n&lt;$list filter=\&quot;[all[current]tags[]] [list[$:/config/Manager/RecentTags]] +[sort[title]] \&quot; variable=\&quot;tag\&quot; storyview=\&quot;pop\&quot;&gt;\n&lt;div&gt;\n&lt;$checkbox tiddler=&lt;&lt;currentTiddler&gt;&gt; tag=&lt;&lt;tag&gt;&gt; actions=&lt;&lt;tag-checkbox-actions&gt;&gt;&gt;\n&lt;$macrocall $name=\&quot;tag-pill\&quot; tag=&lt;&lt;tag&gt;&gt;/&gt;\n&lt;/$checkbox&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;/p&gt;\n&lt;p&gt;\n&lt;$fieldmangler&gt;\n&lt;$macrocall $name=\&quot;tag-picker\&quot; actions=&lt;&lt;tag-picker-actions&gt;&gt;/&gt;\n&lt;/$fieldmangler&gt;\n&lt;/p&gt;\n&quot;
},
&quot;$:/Manager/ItemSidebar/Tools&quot;: {
&quot;title&quot;: &quot;$:/Manager/ItemSidebar/Tools&quot;,
&quot;tags&quot;: &quot;$:/tags/Manager/ItemSidebar&quot;,
&quot;caption&quot;: &quot;{{$:/language/Manager/Item/Tools}}&quot;,
&quot;text&quot;: &quot;&lt;p&gt;\n&lt;$button to=&lt;&lt;currentTiddler&gt;&gt;&gt;{{$:/core/images/link}} open&lt;/$button&gt;\n&lt;/p&gt;\n&lt;p&gt;\n&lt;$button message=\&quot;tm-edit-tiddler\&quot; param=&lt;&lt;currentTiddler&gt;&gt;&gt;{{$:/core/images/edit-button}} edit&lt;/$button&gt;\n&lt;/p&gt;\n&quot;
},
&quot;$:/Manager&quot;: {
&quot;title&quot;: &quot;$:/Manager&quot;,
&quot;icon&quot;: &quot;$:/core/images/list&quot;,
&quot;color&quot;: &quot;#bbb&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Manager/\n\n\\define list-item-content-item()\n&lt;div class=\&quot;tc-manager-list-item-content-item\&quot;&gt;\n\t&lt;$vars state-title=\&quot;\&quot;\&quot;$:/state/popup/manager/item/$(listItem)$\&quot;\&quot;\&quot;&gt;\n\t\t&lt;$reveal state=&lt;&lt;state-title&gt;&gt; type=\&quot;match\&quot; text=\&quot;show\&quot; default=\&quot;show\&quot; tag=\&quot;div\&quot;&gt;\n\t\t\t&lt;$button set=&lt;&lt;state-title&gt;&gt; setTo=\&quot;hide\&quot; class=\&quot;tc-btn-invisible tc-manager-list-item-content-item-heading\&quot;&gt;\n\t\t\t\t{{$:/core/images/down-arrow}} &lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; field=\&quot;caption\&quot;/&gt;\n\t\t\t&lt;/$button&gt;\n\t\t&lt;/$reveal&gt;\n\t\t&lt;$reveal state=&lt;&lt;state-title&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;show\&quot; default=\&quot;show\&quot; tag=\&quot;div\&quot;&gt;\n\t\t\t&lt;$button set=&lt;&lt;state-title&gt;&gt; setTo=\&quot;show\&quot; class=\&quot;tc-btn-invisible tc-manager-list-item-content-item-heading\&quot;&gt;\n\t\t\t\t{{$:/core/images/right-arrow}} &lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; field=\&quot;caption\&quot;/&gt;\n\t\t\t&lt;/$button&gt;\n\t\t&lt;/$reveal&gt;\n\t\t&lt;$reveal state=&lt;&lt;state-title&gt;&gt; type=\&quot;match\&quot; text=\&quot;show\&quot; default=\&quot;show\&quot; tag=\&quot;div\&quot; class=\&quot;tc-manager-list-item-content-item-body\&quot;&gt;\n\t\t\t&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;\n\t\t&lt;/$reveal&gt;\n\t&lt;/$vars&gt;\n&lt;/div&gt;\n\\end\n\n&lt;div class=\&quot;tc-manager-wrapper\&quot;&gt;\n\t&lt;div class=\&quot;tc-manager-controls\&quot;&gt;\n\t\t&lt;div class=\&quot;tc-manager-control\&quot;&gt;\n\t\t\t&lt;&lt;lingo Controls/Show/Prompt&gt;&gt; &lt;$select tiddler=\&quot;$:/config/Manager/Show\&quot; default=\&quot;tiddlers\&quot;&gt;\n\t\t\t\t&lt;option value=\&quot;tiddlers\&quot;&gt;&lt;&lt;lingo Controls/Show/Option/Tiddlers&gt;&gt;&lt;/option&gt;\n\t\t\t\t&lt;option value=\&quot;tags\&quot;&gt;&lt;&lt;lingo Controls/Show/Option/Tags&gt;&gt;&lt;/option&gt;\n\t\t\t&lt;/$select&gt;\n\t\t&lt;/div&gt;\n\t\t&lt;div class=\&quot;tc-manager-control\&quot;&gt;\n\t\t\t&lt;&lt;lingo Controls/Search/Prompt&gt;&gt; &lt;$edit-text tiddler=\&quot;$:/config/Manager/Filter\&quot; tag=\&quot;input\&quot; default=\&quot;\&quot; placeholder={{$:/language/Manager/Controls/Search/Placeholder}}/&gt;\n\t\t&lt;/div&gt;\n\t\t&lt;div class=\&quot;tc-manager-control\&quot;&gt;\n\t\t\t&lt;&lt;lingo Controls/FilterByTag/Prompt&gt;&gt; &lt;$select tiddler=\&quot;$:/config/Manager/Tag\&quot; default=\&quot;\&quot;&gt;\n\t\t\t\t&lt;option value=\&quot;\&quot;&gt;&lt;&lt;lingo Controls/FilterByTag/None&gt;&gt;&lt;/option&gt;\n\t\t\t\t&lt;$list filter=\&quot;[!is{$:/config/Manager/System}tags[]!is[system]sort[title]]\&quot; variable=\&quot;tag\&quot;&gt;\n\t\t\t\t\t&lt;option value=&lt;&lt;tag&gt;&gt;&gt;&lt;$text text=&lt;&lt;tag&gt;&gt;/&gt;&lt;/option&gt;\n\t\t\t\t&lt;/$list&gt;\n\t\t\t&lt;/$select&gt;\n\t\t&lt;/div&gt;\n\t\t&lt;div class=\&quot;tc-manager-control\&quot;&gt;\n\t\t\t&lt;&lt;lingo Controls/Sort/Prompt&gt;&gt; &lt;$select tiddler=\&quot;$:/config/Manager/Sort\&quot; default=\&quot;title\&quot;&gt;\n\t\t\t\t&lt;optgroup label=\&quot;Common\&quot;&gt;\n\t\t\t\t\t&lt;$list filter=\&quot;title modified modifier created creator created\&quot; variable=\&quot;field\&quot;&gt;\n\t\t\t\t\t\t&lt;option value=&lt;&lt;field&gt;&gt;&gt;&lt;$text text=&lt;&lt;field&gt;&gt;/&gt;&lt;/option&gt;\n\t\t\t\t\t&lt;/$list&gt;\n\t\t\t\t&lt;/optgroup&gt;\n\t\t\t\t&lt;optgroup label=\&quot;All\&quot;&gt;\n\t\t\t\t\t&lt;$list filter=\&quot;[all{$:/config/Manager/Show}!is{$:/config/Manager/System}fields[]sort[title]] -title -modified -modifier -created -creator -created\&quot; variable=\&quot;field\&quot;&gt;\n\t\t\t\t\t\t&lt;option value=&lt;&lt;field&gt;&gt;&gt;&lt;$text text=&lt;&lt;field&gt;&gt;/&gt;&lt;/option&gt;\n\t\t\t\t\t&lt;/$list&gt;\n\t\t\t\t&lt;/optgroup&gt;\n\t\t\t&lt;/$select&gt;\n\t\t\t&lt;$checkbox tiddler=\&quot;$:/config/Manager/Order\&quot; field=\&quot;text\&quot; checked=\&quot;reverse\&quot; unchecked=\&quot;forward\&quot; default=\&quot;forward\&quot;&gt;\n\t\t\t\t&lt;&lt;lingo Controls/Order/Prompt&gt;&gt;\n\t\t\t&lt;/$checkbox&gt;\n\t\t&lt;/div&gt;\n\t\t&lt;div class=\&quot;tc-manager-control\&quot;&gt;\n\t\t\t&lt;$checkbox tiddler=\&quot;$:/config/Manager/System\&quot; field=\&quot;text\&quot; checked=\&quot;\&quot; unchecked=\&quot;system\&quot; default=\&quot;system\&quot;&gt;\n\t\t\t\t{{$:/language/SystemTiddlers/Include/Prompt}}\n\t\t\t&lt;/$checkbox&gt;\n\t\t&lt;/div&gt;\n\t&lt;/div&gt;\n\t&lt;div class=\&quot;tc-manager-list\&quot;&gt;\n\t\t&lt;$list filter=\&quot;[all{$:/config/Manager/Show}!is{$:/config/Manager/System}search{$:/config/Manager/Filter}tag:strict{$:/config/Manager/Tag}sort{$:/config/Manager/Sort}order{$:/config/Manager/Order}]\&quot;&gt;\n\t\t\t&lt;$vars transclusion=&lt;&lt;currentTiddler&gt;&gt;&gt;\n\t\t\t\t&lt;div style=\&quot;tc-manager-list-item\&quot;&gt;\n\t\t\t\t\t&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/manager/popup\&quot;&gt;&gt; class=\&quot;tc-btn-invisible tc-manager-list-item-heading\&quot; selectedClass=\&quot;tc-manager-list-item-heading-selected\&quot;&gt;\n\t\t\t\t\t\t&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;\n\t\t\t\t\t&lt;/$button&gt;\n\t\t\t\t\t&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/manager/popup\&quot;&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot; default=\&quot;\&quot; tag=\&quot;div\&quot; class=\&quot;tc-manager-list-item-content tc-popup-handle\&quot;&gt;\n\t\t\t\t\t\t&lt;div class=\&quot;tc-manager-list-item-content-tiddler\&quot;&gt;\n\t\t\t\t\t\t\t&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;&lt;list-item-content-item&gt;&gt;\n\t\t\t\t\t\t\t&lt;/$list&gt;\n\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t&lt;div class=\&quot;tc-manager-list-item-content-sidebar\&quot;&gt;\n\t\t\t\t\t\t\t&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;&lt;list-item-content-item&gt;&gt;\n\t\t\t\t\t\t\t&lt;/$list&gt;\n\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t&lt;/$reveal&gt;\n\t\t\t\t&lt;/div&gt;\n\t\t\t&lt;/$vars&gt;\n\t\t&lt;/$list&gt;\n\t&lt;/div&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/MissingTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MissingTemplate&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-tiddler-missing\&quot;&gt;\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/missing\&quot;&gt;&gt; class=\&quot;tc-btn-invisible tc-missing-tiddler-label\&quot;&gt;\n&lt;$view field=\&quot;title\&quot; format=\&quot;text\&quot; /&gt;\n&lt;/$button&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/missing\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;below\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;div class=\&quot;tc-drop-down\&quot;&gt;\n&lt;$transclude tiddler=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;hr&gt;\n&lt;$list filter=\&quot;[all[current]backlinks[]sort[title]]\&quot; template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/All&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/All&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/All/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$list filter={{$:/core/Filters/AllTiddlers!!filter}} template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Drafts&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Drafts&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/Drafts/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$list filter={{$:/core/Filters/Drafts!!filter}} template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Explorer&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Explorer&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/Explorer/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;&lt;tree \&quot;$:/\&quot;&gt;&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Missing&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Missing&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/Missing/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$list filter={{$:/core/Filters/Missing!!filter}} template=\&quot;$:/core/ui/MissingTemplate\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Orphans&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Orphans&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/Orphans/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$list filter={{$:/core/Filters/Orphans!!filter}} template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Plugins&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Plugins&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Plugins/Caption}}&quot;,
&quot;text&quot;: &quot;\n{{$:/language/ControlPanel/Plugins/Installed/Hint}}\n\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/MoreSideBar/Plugins]!has[draft.of]]\&quot; default=\&quot;$:/core/ui/MoreSideBar/Plugins/Plugins\&quot; explicitState=\&quot;$:/state/tab-1163638994\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Recent&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Recent&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/Recent/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$macrocall $name=\&quot;timeline\&quot; format={{$:/language/RecentChanges/DateFormat}}/&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Shadows&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Shadows&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/Shadows/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$list filter={{$:/core/Filters/ShadowTiddlers!!filter}} template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/System&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/System&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/System/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$list filter={{$:/core/Filters/SystemTiddlers!!filter}} template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Tags&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Tags&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/Tags/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$set name=\&quot;tv-config-toolbar-icons\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-text\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-class\&quot; value=\&quot;\&quot;&gt;\n\n{{$:/core/ui/Buttons/tag-manager}}\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;$list filter={{$:/core/Filters/AllTags!!filter}}&gt;\n\n&lt;$transclude tiddler=\&quot;$:/core/ui/TagTemplate\&quot;/&gt;\n\n&lt;/$list&gt;\n\n&lt;hr class=\&quot;tc-untagged-separator\&quot;&gt;\n\n{{$:/core/ui/UntaggedTemplate}}\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Types&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Types&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/Types/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$list filter={{$:/core/Filters/TypedTiddlers!!filter}}&gt;\n&lt;div class=\&quot;tc-menu-list-item\&quot;&gt;\n&lt;$view field=\&quot;type\&quot;/&gt;\n&lt;$list filter=\&quot;[type{!!type}!is[system]sort[title]]\&quot;&gt;\n&lt;div class=\&quot;tc-menu-list-subitem\&quot;&gt;\n&lt;$link to={{!!title}}&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$link&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Plugins/Languages&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Plugins/Languages&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar/Plugins&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Plugins/Languages/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$list filter=\&quot;[!has[draft.of]plugin-type[language]sort[description]]\&quot; template=\&quot;$:/core/ui/PluginListItemTemplate\&quot; emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Plugins/Plugins&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Plugins/Plugins&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar/Plugins&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Plugins/Plugins/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$list filter=\&quot;[!has[draft.of]plugin-type[plugin]sort[description]]\&quot; template=\&quot;$:/core/ui/PluginListItemTemplate\&quot; emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}&gt;&gt;/&gt;\n&quot;
},
&quot;$:/core/ui/MoreSideBar/Plugins/Theme&quot;: {
&quot;title&quot;: &quot;$:/core/ui/MoreSideBar/Plugins/Theme&quot;,
&quot;tags&quot;: &quot;$:/tags/MoreSideBar/Plugins&quot;,
&quot;caption&quot;: &quot;{{$:/language/ControlPanel/Plugins/Themes/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$list filter=\&quot;[!has[draft.of]plugin-type[theme]sort[description]]\&quot; template=\&quot;$:/core/ui/PluginListItemTemplate\&quot; emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/advanced-search&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/advanced-search&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/advanced-search-button}} {{$:/language/Buttons/AdvancedSearch/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/AdvancedSearch/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define advanced-search-button(class)\n&lt;$button to=\&quot;$:/AdvancedSearch\&quot; tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\&quot;\&quot;\&quot;$(tv-config-toolbar-class)$ $class$\&quot;\&quot;\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/advanced-search-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/AdvancedSearch/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n\\end\n\n&lt;$list filter=\&quot;[list[$:/StoryList]] +[field:title[$:/AdvancedSearch]]\&quot; emptyMessage=&lt;&lt;advanced-search-button&gt;&gt;&gt;\n&lt;&lt;advanced-search-button \&quot;tc-selected\&quot;&gt;&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/close-all&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/close-all&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/close-all-button}} {{$:/language/Buttons/CloseAll/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/CloseAll/Hint}}&quot;,
&quot;text&quot;: &quot;&lt;$button message=\&quot;tm-close-all-tiddlers\&quot; tooltip={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/close-all-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/CloseAll/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/control-panel&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/control-panel&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/ControlPanel/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define control-panel-button(class)\n&lt;$button to=\&quot;$:/ControlPanel\&quot; tooltip={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class=\&quot;\&quot;\&quot;$(tv-config-toolbar-class)$ $class$\&quot;\&quot;\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/options-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/ControlPanel/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n\\end\n\n&lt;$list filter=\&quot;[list[$:/StoryList]] +[field:title[$:/ControlPanel]]\&quot; emptyMessage=&lt;&lt;control-panel-button&gt;&gt;&gt;\n&lt;&lt;control-panel-button \&quot;tc-selected\&quot;&gt;&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/encryption&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/encryption&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/locked-padlock}} {{$:/language/Buttons/Encryption/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Encryption/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/isEncrypted\&quot; text=\&quot;yes\&quot;&gt;\n&lt;$button message=\&quot;tm-clear-password\&quot; tooltip={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/locked-padlock}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/isEncrypted\&quot; text=\&quot;yes\&quot;&gt;\n&lt;$button message=\&quot;tm-set-password\&quot; tooltip={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/unlocked-padlock}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/export-page&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/export-page&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/export-button}} {{$:/language/Buttons/ExportPage/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/ExportPage/Hint}}&quot;,
&quot;text&quot;: &quot;&lt;$macrocall $name=\&quot;exportButton\&quot; exportFilter=\&quot;[!is[system]sort[title]]\&quot; lingoBase=\&quot;$:/language/Buttons/ExportPage/\&quot;/&gt;&quot;
},
&quot;$:/core/ui/Buttons/fold-all&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/fold-all&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/fold-all-button}} {{$:/language/Buttons/FoldAll/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/FoldAll/Hint}}&quot;,
&quot;text&quot;: &quot;&lt;$button tooltip={{$:/language/Buttons/FoldAll/Hint}} aria-label={{$:/language/Buttons/FoldAll/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-fold-all-tiddlers\&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedStatePrefix=\&quot;$:/state/folded/\&quot;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot; variable=\&quot;listItem\&quot;&gt;\n{{$:/core/images/fold-all-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/FoldAll/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/full-screen&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/full-screen&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/full-screen-button}} {{$:/language/Buttons/FullScreen/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/FullScreen/Hint}}&quot;,
&quot;text&quot;: &quot;&lt;$button message=\&quot;tm-full-screen\&quot; tooltip={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/full-screen-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/FullScreen/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/home&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/home&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Home/Hint}}&quot;,
&quot;text&quot;: &quot;&lt;$button message=\&quot;tm-home\&quot; tooltip={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/home-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Home/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/import&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/import&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/import-button}} {{$:/language/Buttons/Import/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Import/Hint}}&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-file-input-wrapper\&quot;&gt;\n&lt;$button tooltip={{$:/language/Buttons/Import/Hint}} aria-label={{$:/language/Buttons/Import/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/import-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Import/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;$browse tooltip={{$:/language/Buttons/Import/Hint}}/&gt;\n&lt;/div&gt;&quot;
},
&quot;$:/core/ui/Buttons/language&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/language&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/globe}} {{$:/language/Buttons/Language/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Language/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define flag-title()\n$(languagePluginTitle)$/icon\n\\end\n&lt;span class=\&quot;tc-popup-keep\&quot;&gt;\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/language\&quot;&gt;&gt; tooltip={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=\&quot;tc-selected\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-image-button\&quot;&gt;\n&lt;$set name=\&quot;languagePluginTitle\&quot; value={{$:/language}}&gt;\n&lt;$image source=&lt;&lt;flag-title&gt;&gt;/&gt;\n&lt;/$set&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Language/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;/span&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/language\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;below\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;div class=\&quot;tc-drop-down\&quot;&gt;\n{{$:/snippets/languageswitcher}}\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/manager&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/manager&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/list}} {{$:/language/Buttons/Manager/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Manager/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define manager-button(class)\n&lt;$button to=\&quot;$:/Manager\&quot; tooltip={{$:/language/Buttons/Manager/Hint}} aria-label={{$:/language/Buttons/Manager/Caption}} class=\&quot;\&quot;\&quot;$(tv-config-toolbar-class)$ $class$\&quot;\&quot;\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/list}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Manager/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n\\end\n\n&lt;$list filter=\&quot;[list[$:/StoryList]] +[field:title[$:/Manager]]\&quot; emptyMessage=&lt;&lt;manager-button&gt;&gt;&gt;\n&lt;&lt;manager-button \&quot;tc-selected\&quot;&gt;&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/more-page-actions&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/more-page-actions&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/More/Hint}}&quot;,
&quot;text&quot;: &quot;\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/more\&quot;&gt;&gt; tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=\&quot;tc-selected\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/down-arrow}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/More/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/more\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;below\&quot; animate=\&quot;yes\&quot;&gt;\n\n&lt;div class=\&quot;tc-drop-down\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-icons\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-text\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-class\&quot; value=\&quot;tc-btn-invisible\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]] -[[$:/core/ui/Buttons/more-page-actions]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;config-title&gt;&gt; text=\&quot;hide\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-class\&quot; filter=\&quot;[&lt;tv-config-toolbar-class&gt;] [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]]\&quot;&gt;\n\n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=\&quot;inline\&quot;/&gt;\n\n&lt;/$set&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$list&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/div&gt;\n\n&lt;/$reveal&gt;&quot;
},
&quot;$:/core/ui/Buttons/new-image&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/new-image&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/new-image-button}} {{$:/language/Buttons/NewImage/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/NewImage/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button tooltip={{$:/language/Buttons/NewImage/Hint}} aria-label={{$:/language/Buttons/NewImage/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; actions={{$:/core/ui/Actions/new-image}}&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/new-image-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/NewImage/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/new-journal&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/new-journal&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournal/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/NewJournal/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define journalButton()\n&lt;$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; actions={{$:/core/ui/Actions/new-journal}}&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/new-journal-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/NewJournal/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n\\end\n&lt;&lt;journalButton&gt;&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/new-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/new-tiddler&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/NewTiddler/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button actions={{$:/core/ui/Actions/new-tiddler}} tooltip={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/new-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/NewTiddler/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/palette&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/palette&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/palette}} {{$:/language/Buttons/Palette/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Palette/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;span class=\&quot;tc-popup-keep\&quot;&gt;\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/palette\&quot;&gt;&gt; tooltip={{$:/language/Buttons/Palette/Hint}} aria-label={{$:/language/Buttons/Palette/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=\&quot;tc-selected\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/palette}}\n&lt;/$list&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Palette/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;/span&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/palette\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;below\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;div class=\&quot;tc-drop-down\&quot; style=\&quot;font-size:0.7em;\&quot;&gt;\n{{$:/snippets/paletteswitcher}}\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/print&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/print&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/print-button}} {{$:/language/Buttons/Print/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Print/Hint}}&quot;,
&quot;text&quot;: &quot;&lt;$button message=\&quot;tm-print\&quot; tooltip={{$:/language/Buttons/Print/Hint}} aria-label={{$:/language/Buttons/Print/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/print-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Print/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/refresh&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/refresh&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Refresh/Hint}}&quot;,
&quot;text&quot;: &quot;&lt;$button message=\&quot;tm-browser-refresh\&quot; tooltip={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/refresh-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Refresh/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/save-wiki&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/save-wiki&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/SaveWiki/Hint}}&quot;,
&quot;text&quot;: &quot;&lt;$button tooltip={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$wikify name=\&quot;site-title\&quot; text={{$:/config/SaveWikiButton/Filename}}&gt;\n&lt;$action-sendmessage $message=\&quot;tm-save-wiki\&quot; $param={{$:/config/SaveWikiButton/Template}} filename=&lt;&lt;site-title&gt;&gt;/&gt;\n&lt;/$wikify&gt;\n&lt;span class=\&quot;tc-dirty-indicator\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/save-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/SaveWiki/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/span&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/storyview&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/storyview&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/storyview-classic}} {{$:/language/Buttons/StoryView/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/StoryView/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define icon()\n$:/core/images/storyview-$(storyview)$\n\\end\n&lt;span class=\&quot;tc-popup-keep\&quot;&gt;\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/storyview\&quot;&gt;&gt; tooltip={{$:/language/Buttons/StoryView/Hint}} aria-label={{$:/language/Buttons/StoryView/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=\&quot;tc-selected\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n&lt;$set name=\&quot;storyview\&quot; value={{$:/view}}&gt;\n&lt;$transclude tiddler=&lt;&lt;icon&gt;&gt;/&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/StoryView/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;/span&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/storyview\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;below\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;div class=\&quot;tc-drop-down\&quot;&gt;\n{{$:/snippets/viewswitcher}}\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/tag-manager&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/tag-manager&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/tag-button}} {{$:/language/Buttons/TagManager/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/TagManager/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define control-panel-button(class)\n&lt;$button to=\&quot;$:/TagManager\&quot; tooltip={{$:/language/Buttons/TagManager/Hint}} aria-label={{$:/language/Buttons/TagManager/Caption}} class=\&quot;\&quot;\&quot;$(tv-config-toolbar-class)$ $class$\&quot;\&quot;\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/tag-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/TagManager/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n\\end\n\n&lt;$list filter=\&quot;[list[$:/StoryList]] +[field:title[$:/TagManager]]\&quot; emptyMessage=&lt;&lt;control-panel-button&gt;&gt;&gt;\n&lt;&lt;control-panel-button \&quot;tc-selected\&quot;&gt;&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/theme&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/theme&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/theme-button}} {{$:/language/Buttons/Theme/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Theme/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;span class=\&quot;tc-popup-keep\&quot;&gt;\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/theme\&quot;&gt;&gt; tooltip={{$:/language/Buttons/Theme/Hint}} aria-label={{$:/language/Buttons/Theme/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=\&quot;tc-selected\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/theme-button}}\n&lt;/$list&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Theme/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;/span&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/theme\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;below\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;div class=\&quot;tc-drop-down\&quot;&gt;\n&lt;$linkcatcher to=\&quot;$:/theme\&quot;&gt;\n{{$:/snippets/themeswitcher}}\n&lt;/$linkcatcher&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/timestamp&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/timestamp&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/timestamp-on}} {{$:/language/Buttons/Timestamp/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Timestamp/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/config/TimestampDisable\&quot; text=\&quot;yes\&quot;&gt;\n&lt;$button tooltip={{$:/language/Buttons/Timestamp/On/Hint}} aria-label={{$:/language/Buttons/Timestamp/On/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/config/TimestampDisable\&quot; $value=\&quot;yes\&quot;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/timestamp-on}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Timestamp/On/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/config/TimestampDisable\&quot; text=\&quot;yes\&quot;&gt;\n&lt;$button tooltip={{$:/language/Buttons/Timestamp/Off/Hint}} aria-label={{$:/language/Buttons/Timestamp/Off/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/config/TimestampDisable\&quot; $value=\&quot;no\&quot;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/timestamp-off}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/Timestamp/Off/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/unfold-all&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/unfold-all&quot;,
&quot;tags&quot;: &quot;$:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/unfold-all-button}} {{$:/language/Buttons/UnfoldAll/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/UnfoldAll/Hint}}&quot;,
&quot;text&quot;: &quot;&lt;$button tooltip={{$:/language/Buttons/UnfoldAll/Hint}} aria-label={{$:/language/Buttons/UnfoldAll/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-unfold-all-tiddlers\&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedStatePrefix=\&quot;$:/state/folded/\&quot;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot; variable=\&quot;listItem\&quot;&gt;\n{{$:/core/images/unfold-all-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$:/language/Buttons/UnfoldAll/Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/PageTemplate/pagecontrols&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PageTemplate/pagecontrols&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n&lt;div class=\&quot;tc-page-controls\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$set name=\&quot;hidden\&quot; value=&lt;&lt;config-title&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;hidden&gt;!text[hide]]\&quot; storyview=\&quot;pop\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$set name=\&quot;tv-config-toolbar-class\&quot; filter=\&quot;[&lt;tv-config-toolbar-class&gt;] [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]]\&quot;&gt;\n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=\&quot;inline\&quot;/&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/PageStylesheet&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PageStylesheet&quot;,
&quot;text&quot;: &quot;\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n&lt;$set name=\&quot;currentTiddler\&quot; value={{$:/language}}&gt;\n\n&lt;$set name=\&quot;languageTitle\&quot; value={{!!name}}&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\&quot;&gt;\n&lt;$transclude mode=\&quot;block\&quot;/&gt;\n&lt;/$list&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/ui/PageTemplate/alerts&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PageTemplate/alerts&quot;,
&quot;tags&quot;: &quot;$:/tags/PageTemplate&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-alerts\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/Alert]!has[draft.of]]\&quot; template=\&quot;$:/core/ui/AlertTemplate\&quot; storyview=\&quot;pop\&quot;/&gt;\n\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/PageTemplate/drafts&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PageTemplate/drafts&quot;,
&quot;tags&quot;: &quot;$:/tags/PageTemplate&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$reveal state=\&quot;$:/status/IsReadOnly\&quot; type=\&quot;nomatch\&quot; text=\&quot;yes\&quot; tag=\&quot;div\&quot; class=\&quot;tc-drafts-list\&quot;&gt;\n&lt;$list filter=\&quot;[has[draft.of]!sort[modified]] -[list[$:/StoryList]]\&quot;&gt;\n&lt;$link&gt;\n{{$:/core/images/edit-button}} &lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;\n&lt;/$link&gt;\n&lt;/$list&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/PageTemplate/pluginreloadwarning&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PageTemplate/pluginreloadwarning&quot;,
&quot;tags&quot;: &quot;$:/tags/PageTemplate&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/\n\n&lt;$list filter=\&quot;[{$:/status/RequireReloadDueToPluginChange}match[yes]]\&quot;&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/temp/HidePluginWarning\&quot; text=\&quot;yes\&quot;&gt;\n\n&lt;div class=\&quot;tc-plugin-reload-warning\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-class\&quot; value=\&quot;\&quot;&gt;\n\n&lt;&lt;lingo PluginReloadWarning&gt;&gt; &lt;$button set=\&quot;$:/temp/HidePluginWarning\&quot; setTo=\&quot;yes\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;{{$:/core/images/close-button}}&lt;/$button&gt;\n\n&lt;/$set&gt;\n\n&lt;/div&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/PageTemplate/sidebar&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PageTemplate/sidebar&quot;,
&quot;tags&quot;: &quot;$:/tags/PageTemplate&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define config-title()\n$:/config/SideBarSegments/Visibility/$(listItem)$\n\\end\n\n&lt;$scrollable fallthrough=\&quot;no\&quot; class=\&quot;tc-sidebar-scrollable\&quot;&gt;\n\n&lt;div class=\&quot;tc-sidebar-header\&quot;&gt;\n\n&lt;$reveal state=\&quot;$:/state/sidebar\&quot; type=\&quot;match\&quot; text=\&quot;yes\&quot; default=\&quot;yes\&quot; retain=\&quot;yes\&quot; animate=\&quot;yes\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;config-title&gt;&gt; text=\&quot;hide\&quot; tag=\&quot;div\&quot;&gt;\n\n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=\&quot;block\&quot;/&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$list&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/div&gt;\n\n&lt;/$scrollable&gt;\n&quot;
},
&quot;$:/core/ui/PageTemplate/story&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PageTemplate/story&quot;,
&quot;tags&quot;: &quot;$:/tags/PageTemplate&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;section class=\&quot;tc-story-river\&quot;&gt;\n\n&lt;section class=\&quot;story-backdrop\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]\&quot;&gt;\n\n&lt;$transclude/&gt;\n\n&lt;/$list&gt;\n\n&lt;/section&gt;\n\n&lt;$list filter=\&quot;[list[$:/StoryList]]\&quot; history=\&quot;$:/HistoryList\&quot; template={{$:/config/ui/ViewTemplate}} editTemplate={{$:/config/ui/EditTemplate}} storyview={{$:/view}} emptyMessage={{$:/config/EmptyStoryMessage}}/&gt;\n\n&lt;section class=\&quot;story-frontdrop\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/BelowStory]!has[draft.of]]\&quot;&gt;\n\n&lt;$transclude/&gt;\n\n&lt;/$list&gt;\n\n&lt;/section&gt;\n\n&lt;/section&gt;\n&quot;
},
&quot;$:/core/ui/PageTemplate/topleftbar&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PageTemplate/topleftbar&quot;,
&quot;tags&quot;: &quot;$:/tags/PageTemplate&quot;,
&quot;text&quot;: &quot;&lt;span class=\&quot;tc-topbar tc-topbar-left\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot; storyview=\&quot;pop\&quot;&gt;\n\n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=\&quot;inline\&quot;/&gt;\n\n&lt;/$list&gt;\n\n&lt;/span&gt;\n&quot;
},
&quot;$:/core/ui/PageTemplate/toprightbar&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PageTemplate/toprightbar&quot;,
&quot;tags&quot;: &quot;$:/tags/PageTemplate&quot;,
&quot;text&quot;: &quot;&lt;span class=\&quot;tc-topbar tc-topbar-right\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot; storyview=\&quot;pop\&quot;&gt;\n\n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=\&quot;inline\&quot;/&gt;\n\n&lt;/$list&gt;\n\n&lt;/span&gt;\n&quot;
},
&quot;$:/core/ui/PageTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PageTemplate&quot;,
&quot;name&quot;: &quot;{{$:/language/PageTemplate/Name}}&quot;,
&quot;description&quot;: &quot;{{$:/language/PageTemplate/Description}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define containerClasses()\ntc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n&lt;$vars\n\ttv-config-toolbar-icons={{$:/config/Toolbar/Icons}}\n\ttv-config-toolbar-text={{$:/config/Toolbar/Text}}\n\ttv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}\n\ttv-enable-drag-and-drop={{$:/config/DragAndDrop/Enable}}\n\ttv-show-missing-links={{$:/config/MissingLinks}}\n\tstoryviewTitle={{$:/view}}\n\tlanguageTitle={{{ [{$:/language}get[name]] }}}&gt;\n\n&lt;div class=&lt;&lt;containerClasses&gt;&gt;&gt;\n\n&lt;$navigator story=\&quot;$:/StoryList\&quot; history=\&quot;$:/HistoryList\&quot; openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}&gt;\n\n&lt;$dropzone enable=&lt;&lt;tv-enable-drag-and-drop&gt;&gt;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;\n\n&lt;/$list&gt;\n\n&lt;/$dropzone&gt;\n\n&lt;/$navigator&gt;\n\n&lt;/div&gt;\n\n&lt;/$vars&gt;\n&quot;
},
&quot;$:/PaletteManager&quot;: {
&quot;title&quot;: &quot;$:/PaletteManager&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Palette/Editor/\n\\define describePaletteColour(colour)\n&lt;$transclude tiddler=\&quot;$:/language/Docs/PaletteColours/$colour$\&quot;&gt;&lt;$text text=\&quot;$colour$\&quot;/&gt;&lt;/$transclude&gt;\n\\end\n\\define edit-colour-placeholder()\n edit $(colourName)$\n\\end\n\\define colour-tooltip(showhide) $showhide$ editor for $(newColourName)$ \n\\define resolve-colour(macrocall)\n\\import $:/core/macros/utils\n\\whitespace trim\n&lt;$wikify name=\&quot;name\&quot; text=\&quot;\&quot;\&quot;$macrocall$\&quot;\&quot;\&quot;&gt;\n&lt;&lt;name&gt;&gt;\n&lt;/$wikify&gt;\n\\end\n\\define delete-colour-index-actions() &lt;$action-setfield $index=&lt;&lt;colourName&gt;&gt;/&gt;\n\\define palette-manager-colour-row-segment()\n\\whitespace trim\n&lt;$edit-text index=&lt;&lt;colourName&gt;&gt; tag=\&quot;input\&quot; placeholder=&lt;&lt;edit-colour-placeholder&gt;&gt; default=\&quot;\&quot;/&gt;\n&lt;br&gt;\n&lt;$edit-text index=&lt;&lt;colourName&gt;&gt; type=\&quot;color\&quot; tag=\&quot;input\&quot; class=\&quot;tc-palette-manager-colour-input\&quot;/&gt;\n&lt;$list filter=\&quot;[&lt;currentTiddler&gt;getindex&lt;colourName&gt;removeprefix[&lt;&lt;]removesuffix[&gt;&gt;]] [&lt;currentTiddler&gt;getindex&lt;colourName&gt;removeprefix[&lt;$]removesuffix[/&gt;]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$set name=\&quot;state\&quot; value={{{ [[$:/state/palettemanager/]addsuffix&lt;currentTiddler&gt;addsuffix[/]addsuffix&lt;colourName&gt;] }}}&gt;\n&lt;$wikify name=\&quot;newColourName\&quot; text=\&quot;\&quot;\&quot;&lt;$macrocall $name=\&quot;resolve-colour\&quot; macrocall={{{ [&lt;currentTiddler&gt;getindex&lt;colourName&gt;] }}}/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$reveal state=&lt;&lt;state&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;show\&quot;&gt;\n&lt;$button tooltip=&lt;&lt;colour-tooltip show&gt;&gt; aria-label=&lt;&lt;colour-tooltip show&gt;&gt; class=\&quot;tc-btn-invisible\&quot; set=&lt;&lt;state&gt;&gt; setTo=\&quot;show\&quot;&gt;{{$:/core/images/down-arrow}}&lt;$text text=&lt;&lt;newColourName&gt;&gt; class=\&quot;tc-small-gap-left\&quot;/&gt;&lt;/$button&gt;&lt;br&gt;\n&lt;/$reveal&gt;\n&lt;$reveal state=&lt;&lt;state&gt;&gt; type=\&quot;match\&quot; text=\&quot;show\&quot;&gt;\n&lt;$button tooltip=&lt;&lt;colour-tooltip hide&gt;&gt; aria-label=&lt;&lt;colour-tooltip show&gt;&gt; class=\&quot;tc-btn-invisible\&quot; actions=\&quot;\&quot;\&quot;&lt;$action-deletetiddler $tiddler=&lt;&lt;state&gt;&gt;/&gt;\&quot;\&quot;\&quot;&gt;{{$:/core/images/up-arrow}}&lt;$text text=&lt;&lt;newColourName&gt;&gt; class=\&quot;tc-small-gap-left\&quot;/&gt;&lt;/$button&gt;&lt;br&gt;\n&lt;/$reveal&gt;\n&lt;$reveal state=&lt;&lt;state&gt;&gt; type=\&quot;match\&quot; text=\&quot;show\&quot;&gt;\n&lt;$set name=\&quot;colourName\&quot; value=&lt;&lt;newColourName&gt;&gt;&gt;\n&lt;br&gt;\n&lt;&lt;palette-manager-colour-row-segment&gt;&gt;\n&lt;br&gt;&lt;br&gt;\n&lt;/$set&gt;\n&lt;/$reveal&gt;\n&lt;/$wikify&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n\\end\n\\define palette-manager-colour-row()\n\\whitespace trim\n&lt;tr&gt;\n&lt;td&gt;\n&lt;span style=\&quot;float:right;\&quot;&gt;\n&lt;$button tooltip={{$:/language/ControlPanel/Palette/Editor/Delete/Hint}} aria-label=&lt;&lt;lingo Delete/Hint&gt;&gt; class=\&quot;tc-btn-invisible\&quot; actions=&lt;&lt;delete-colour-index-actions&gt;&gt;&gt;\n{{$:/core/images/delete-button}}&lt;/$button&gt;\n&lt;/span&gt;\n''&lt;$macrocall $name=\&quot;describePaletteColour\&quot; colour=&lt;&lt;colourName&gt;&gt;/&gt;''&lt;br/&gt;\n&lt;$macrocall $name=\&quot;colourName\&quot; $output=\&quot;text/plain\&quot;/&gt;\n&lt;/td&gt;\n&lt;td&gt;\n&lt;&lt;palette-manager-colour-row-segment&gt;&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n\\end\n\\define palette-manager-table()\n\\whitespace trim\n&lt;table&gt;\n&lt;tbody&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/Palette]indexes[]]\&quot; variable=\&quot;colourName\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;currentTiddler&gt;indexes[]removeprefix&lt;colourName&gt;suffix[]]\&quot; variable=\&quot;ignore\&quot; emptyMessage=\&quot;\&quot;\&quot;\n&lt;$list filter=\&quot;[{$:/state/palettemanager/showexternal}removeprefix[yes]suffix[]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;&lt;palette-manager-colour-row&gt;&gt;\n&lt;/$list&gt;\n\&quot;\&quot;\&quot;&gt;\n&lt;&lt;palette-manager-colour-row&gt;&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n\\end\n&lt;$set name=\&quot;currentTiddler\&quot; value={{$:/palette}}&gt;\n\n&lt;&lt;lingo Prompt&gt;&gt; &lt;$link to={{$:/palette}}&gt;&lt;$macrocall $name=\&quot;currentTiddler\&quot; $output=\&quot;text/plain\&quot;/&gt;&lt;/$link&gt;\n\n&lt;$list filter=\&quot;[all[current]is[shadow]is[tiddler]]\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;&lt;lingo Prompt/Modified&gt;&gt;\n&lt;$button message=\&quot;tm-delete-tiddler\&quot; param={{$:/palette}}&gt;&lt;&lt;lingo Reset/Caption&gt;&gt;&lt;/$button&gt;\n&lt;/$list&gt;\n\n&lt;$list filter=\&quot;[all[current]is[shadow]!is[tiddler]]\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;&lt;lingo Clone/Prompt&gt;&gt;\n&lt;/$list&gt;\n\n&lt;$button message=\&quot;tm-new-tiddler\&quot; param={{$:/palette}}&gt;&lt;&lt;lingo Clone/Caption&gt;&gt;&lt;/$button&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/state/palettemanager/showexternal\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot;&gt;&lt;span class=\&quot;tc-small-gap-left\&quot;&gt;&lt;&lt;lingo Names/External/Show&gt;&gt;&lt;/span&gt;&lt;/$checkbox&gt;\n\n&lt;&lt;palette-manager-table&gt;&gt;\n&quot;
},
&quot;$:/core/ui/PluginInfo&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PluginInfo&quot;,
&quot;text&quot;: &quot;\\define localised-info-tiddler-title()\n$(currentTiddler)$/$(languageTitle)$/$(currentTab)$\n\\end\n\\define info-tiddler-title()\n$(currentTiddler)$/$(currentTab)$\n\\end\n\\define default-tiddler-title()\n$:/core/ui/PluginInfo/Default/$(currentTab)$\n\\end\n&lt;$transclude tiddler=&lt;&lt;localised-info-tiddler-title&gt;&gt; mode=\&quot;block\&quot;&gt;\n&lt;$transclude tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;localised-info-tiddler-title&gt;&gt; mode=\&quot;block\&quot;&gt;\n&lt;$transclude tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;info-tiddler-title&gt;&gt; mode=\&quot;block\&quot;&gt;\n&lt;$transclude tiddler=&lt;&lt;default-tiddler-title&gt;&gt; mode=\&quot;block\&quot;&gt;\n{{$:/language/ControlPanel/Plugin/NoInfoFound/Hint}}\n&lt;/$transclude&gt;\n&lt;/$transclude&gt;\n&lt;/$transclude&gt;\n&lt;/$transclude&gt;\n&quot;
},
&quot;$:/core/ui/PluginInfo/Default/contents&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PluginInfo/Default/contents&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/\n&lt;&lt;lingo Hint&gt;&gt;\n&lt;ul&gt;\n&lt;$list filter=\&quot;[all[current]plugintiddlers[]sort[title]]\&quot; emptyMessage=&lt;&lt;lingo Empty/Hint&gt;&gt;&gt;\n&lt;li&gt;\n&lt;$link /&gt;\n&lt;/li&gt;\n&lt;/$list&gt;\n&lt;/ul&gt;\n&quot;
},
&quot;$:/core/ui/PluginListItemTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/PluginListItemTemplate&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-menu-list-item\&quot;&gt;\n&lt;$link to={{!!title}}&gt;&lt;$view field=\&quot;description\&quot;&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$view&gt;&lt;/$link&gt;\n&lt;/div&gt;&quot;
},
&quot;$:/core/ui/RootTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/RootTemplate&quot;,
&quot;text&quot;: &quot;&lt;$transclude tiddler={{{ [{$:/layout}has[text]] ~[[$:/core/ui/PageTemplate]] }}} mode=\&quot;inline\&quot;/&gt;\n\n&quot;
},
&quot;$:/core/ui/SearchResults&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SearchResults&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-search-results\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\&quot;&gt;\n&lt;$transclude mode=\&quot;block\&quot;/&gt;\n&lt;/$list&gt;\n\&quot;\&quot;\&quot;&gt;\n\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\&quot; default={{$:/config/SearchResults/Default}} actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/state/search/currentTab\&quot; text=&lt;&lt;currentTab&gt;&gt;/&gt;\&quot;\&quot;\&quot; explicitState=\&quot;$:/state/tab/search-results/sidebar\&quot;/&gt;\n\n&lt;/$list&gt;\n\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/SideBar/More&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SideBar/More&quot;,
&quot;tags&quot;: &quot;$:/tags/SideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/More/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-more-sidebar\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]\&quot; default={{$:/config/DefaultMoreSidebarTab}} state=\&quot;$:/state/tab/moresidebar\&quot; class=\&quot;tc-vertical tc-sidebar-tabs-more\&quot; explicitState=\&quot;$:/state/tab/moresidebar-1850697562\&quot;/&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/SideBar/Open&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SideBar/Open&quot;,
&quot;tags&quot;: &quot;$:/tags/SideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/Open/Caption}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define lingo-base() $:/language/CloseAll/\n\n\\define drop-actions()\n&lt;$action-listops $tiddler=&lt;&lt;tv-story-list&gt;&gt; $subfilter=\&quot;+[insertbefore:currentTiddler&lt;actionTiddler&gt;]\&quot;/&gt;\n\\end\n\n\\define placeholder()\n&lt;div class=\&quot;tc-droppable-placeholder\&quot;/&gt;\n\\end\n\n\\define droppable-item(button)\n\\whitespace trim\n&lt;$droppable actions=&lt;&lt;drop-actions&gt;&gt; enable=&lt;&lt;tv-allow-drag-and-drop&gt;&gt;&gt;\n&lt;&lt;placeholder&gt;&gt;\n&lt;div&gt;\n$button$\n&lt;/div&gt;\n&lt;/$droppable&gt;\n\\end\n\n&lt;div class=\&quot;tc-sidebar-tab-open\&quot;&gt;\n&lt;$list filter=\&quot;[list&lt;tv-story-list&gt;]\&quot; history=&lt;&lt;tv-history-list&gt;&gt; storyview=\&quot;pop\&quot;&gt;\n&lt;div class=\&quot;tc-sidebar-tab-open-item\&quot;&gt;\n&lt;$macrocall $name=\&quot;droppable-item\&quot; button=\&quot;\&quot;\&quot;&lt;$button message=\&quot;tm-close-tiddler\&quot; tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=\&quot;tc-btn-invisible tc-btn-mini tc-small-gap-right\&quot;&gt;{{$:/core/images/close-button}}&lt;/$button&gt;&lt;$link to={{!!title}}&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$link&gt;\&quot;\&quot;\&quot;/&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;$tiddler tiddler=\&quot;\&quot;&gt;\n&lt;div&gt;\n&lt;$macrocall $name=\&quot;droppable-item\&quot; button=\&quot;\&quot;\&quot;&lt;$button message=\&quot;tm-close-all-tiddlers\&quot; class=\&quot;tc-btn-invisible tc-btn-mini\&quot;&gt;&lt;&lt;lingo Button&gt;&gt;&lt;/$button&gt;\&quot;\&quot;\&quot;/&gt;\n&lt;/div&gt;\n&lt;/$tiddler&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/SideBar/Recent&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SideBar/Recent&quot;,
&quot;tags&quot;: &quot;$:/tags/SideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/Recent/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$macrocall $name=\&quot;timeline\&quot; format={{$:/language/RecentChanges/DateFormat}}/&gt;\n&quot;
},
&quot;$:/core/ui/SideBar/Tools&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SideBar/Tools&quot;,
&quot;tags&quot;: &quot;$:/tags/SideBar&quot;,
&quot;caption&quot;: &quot;{{$:/language/SideBar/Tools/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/\n\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n\n&lt;&lt;lingo Basics/Version/Prompt&gt;&gt; &lt;&lt;version&gt;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-icons\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-text\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-class\&quot; value=\&quot;\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;div style=\&quot;position:relative;\&quot; class={{{ [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]] }}}&gt;\n\n&lt;$checkbox tiddler=&lt;&lt;config-title&gt;&gt; field=\&quot;text\&quot; checked=\&quot;show\&quot; unchecked=\&quot;hide\&quot; default=\&quot;show\&quot;/&gt; &lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt; &lt;i class=\&quot;tc-muted\&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; field=\&quot;description\&quot;/&gt;&lt;/i&gt;\n\n&lt;/div&gt;\n\n&lt;/$list&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/ui/SideBarLists&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SideBarLists&quot;,
&quot;text&quot;: &quot;&lt;$transclude tiddler=\&quot;$:/core/ui/SideBarSegments/search\&quot;/&gt;\n\n&lt;$transclude tiddler=\&quot;$:/core/ui/SideBarSegments/tabs\&quot;/&gt;\n\n&quot;
},
&quot;$:/core/ui/SideBarSegments/page-controls&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SideBarSegments/page-controls&quot;,
&quot;tags&quot;: &quot;$:/tags/SideBarSegment&quot;,
&quot;text&quot;: &quot;{{||$:/core/ui/PageTemplate/pagecontrols}}\n&quot;
},
&quot;$:/core/ui/SideBarSegments/search&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SideBarSegments/search&quot;,
&quot;tags&quot;: &quot;$:/tags/SideBarSegment&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\n\\define count-popup-button()\n\\whitespace trim\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/search-dropdown\&quot;&gt;&gt; class=\&quot;tc-btn-invisible\&quot;&gt;\n{{$:/core/images/down-arrow}}\n&lt;$list filter=\&quot;[{$(searchTiddler)$}minlength{$:/config/Search/MinLength}limit[1]]\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$vars userInput={{{ [&lt;searchTiddler&gt;get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}} replaceRegexp=\&quot;limit\\[\\d+\\]\&quot;&gt;\n&lt;$vars primaryListFilter={{{ [&lt;configTiddler&gt;get[first-search-filter]search-replace:g:regexp&lt;replaceRegexp&gt;,[]] }}} secondaryListFilter={{{ [&lt;configTiddler&gt;get[second-search-filter]search-replace:g:regexp&lt;replaceRegexp&gt;,[]] }}}&gt;\n&lt;$set name=\&quot;resultCount\&quot; value=\&quot;\&quot;\&quot;&lt;$count filter=\&quot;[subfilter&lt;primaryListFilter&gt;] [subfilter&lt;secondaryListFilter&gt;]\&quot;/&gt;\&quot;\&quot;\&quot;&gt;\n{{$:/language/Search/Matches}}\n&lt;/$set&gt;\n&lt;/$vars&gt;\n&lt;/$vars&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n\\end\n\n\\define search-results-list()\n\\whitespace trim\n&lt;$vars userInput={{$(searchTiddler)$}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}&gt;\n&lt;$list filter=\&quot;[&lt;userInput&gt;minlength{$:/config/Search/MinLength}limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;div class=\&quot;tc-search-results\&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;\&quot;\&quot;\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$tiddler tiddler=&lt;&lt;configTiddler&gt;&gt;&gt;\n\n{{$:/core/ui/SearchResults}}\n\n&lt;/$tiddler&gt;\n\n&lt;/$list&gt;\n&lt;/$vars&gt;\n\\end\n\n\\define cancel-search-actions() &lt;$list filter=\&quot;[&lt;searchTiddler&gt;get[text]!match{$:/temp/search}]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$action-deletetiddler $filter=\&quot;[[$:/temp/search]] [&lt;searchTiddler&gt;] [&lt;searchListState&gt;]\&quot;/&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/search\&quot; text={{{ [&lt;searchTiddler&gt;get[text]] }}}/&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/search/refresh\&quot; text=\&quot;yes\&quot;/&gt;&lt;/$list&gt;\n\n\\define input-accept-actions() &lt;$list filter=\&quot;[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]!is[missing]] ~[&lt;__tiddler__&gt;get[text]is[shadow]]\&quot;&gt;&lt;$action-navigate $to={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;\&quot;\&quot;\&quot;&gt;&lt;$action-navigate $to={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;\n\n\\define input-accept-variant-actions() &lt;$list filter=\&quot;[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]!is[missing]] ~[&lt;__tiddler__&gt;get[text]is[shadow]]\&quot;&gt;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]minlength[1]]\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-edit-tiddler\&quot; $param={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;&lt;/$list&gt;\&quot;\&quot;\&quot;&gt;&lt;$list filter=\&quot;[&lt;__tiddler__&gt;get[text]minlength[1]]\&quot;&gt;&lt;$action-sendmessage $message=\&quot;tm-edit-tiddler\&quot; $param={{{ [&lt;__tiddler__&gt;get[text]] }}}/&gt;&lt;/$list&gt;&lt;/$list&gt;\n\n\\define set-next-input-tab(beforeafter:\&quot;after\&quot;) &lt;$macrocall $name=\&quot;change-input-tab\&quot; stateTitle=\&quot;$:/state/tab/search-results/sidebar\&quot; tag=\&quot;$:/tags/SearchResults\&quot; beforeafter=\&quot;$beforeafter$\&quot; defaultState={{$:/config/SearchResults/Default}} actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=\&quot;$:/state/search/currentTab\&quot; text=&lt;&lt;nextTab&gt;&gt;/&gt;\&quot;\&quot;\&quot;/&gt;\n\n\\define advanced-search-actions() &lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&quot; text={{$:/temp/search/input}}/&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/input\&quot; text={{$:/temp/search/input}}/&gt;&lt;&lt;delete-state-tiddlers&gt;&gt;&lt;$action-navigate $to=\&quot;$:/AdvancedSearch\&quot;/&gt;&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch/refresh\&quot; text=\&quot;yes\&quot;/&gt;&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=\&quot;\&quot;\&quot;[data-tiddler-title=\&quot;$:/AdvancedSearch\&quot;] .tc-search input\&quot;\&quot;\&quot; preventScroll=\&quot;true\&quot;/&gt;&lt;$action-deletetiddler $filter=\&quot;$:/temp/search $:/temp/search/input $:/temp/search/refresh [&lt;searchListState&gt;]\&quot;/&gt;\n\n&lt;div class=\&quot;tc-sidebar-lists tc-sidebar-search\&quot;&gt;\n\n&lt;$vars editTiddler=\&quot;$:/temp/search\&quot; searchTiddler=\&quot;$:/temp/search/input\&quot; searchListState=&lt;&lt;qualify \&quot;$:/state/search-list/selected-item\&quot;&gt;&gt;&gt;\n&lt;div class=\&quot;tc-search\&quot;&gt;\n&lt;$keyboard key=\&quot;((input-tab-right))\&quot; actions=&lt;&lt;set-next-input-tab&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((input-tab-left))\&quot; actions=&lt;&lt;set-next-input-tab \&quot;before\&quot;&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((advanced-search-sidebar))\&quot; actions=&lt;&lt;advanced-search-actions&gt;&gt;&gt;\n&lt;$macrocall $name=\&quot;keyboard-driven-input\&quot; tiddler=&lt;&lt;editTiddler&gt;&gt; storeTitle=&lt;&lt;searchTiddler&gt;&gt; \n\t\tselectionStateTitle=&lt;&lt;searchListState&gt;&gt; refreshTitle=\&quot;$:/temp/search/refresh\&quot; type=\&quot;search\&quot; \n\t\ttag=\&quot;input\&quot; focus={{$:/config/Search/AutoFocus}} focusPopup=&lt;&lt;qualify \&quot;$:/state/popup/search-dropdown\&quot;&gt;&gt; \n\t\tclass=\&quot;tc-popup-handle\&quot; filterMinLength={{$:/config/Search/MinLength}} inputCancelActions=&lt;&lt;cancel-search-actions&gt;&gt; \n\t\tinputAcceptActions=&lt;&lt;input-accept-actions&gt;&gt; inputAcceptVariantActions=&lt;&lt;input-accept-variant-actions&gt;&gt; cancelPopups=\&quot;yes\&quot; \n\t\tconfigTiddlerFilter=\&quot;[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\&quot;/&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;$reveal state=&lt;&lt;searchTiddler&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n&lt;$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;advanced-search-actions&gt;&gt;\n{{$:/core/images/advanced-search-button}}\n&lt;/$button&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;cancel-search-actions&gt;&gt;&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=\&quot;.tc-search input\&quot;/&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;&lt;count-popup-button&gt;&gt;\n&lt;/$reveal&gt;\n&lt;$reveal state=&lt;&lt;searchTiddler&gt;&gt; type=\&quot;match\&quot; text=\&quot;\&quot;&gt;\n&lt;$button to=\&quot;$:/AdvancedSearch\&quot; tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\&quot;tc-btn-invisible\&quot;&gt;\n{{$:/core/images/advanced-search-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n\n&lt;$reveal tag=\&quot;div\&quot; class=\&quot;tc-block-dropdown-wrapper\&quot; state=&lt;&lt;searchTiddler&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n\n&lt;$reveal tag=\&quot;div\&quot; class=\&quot;tc-block-dropdown tc-search-drop-down tc-popup-handle\&quot; state=&lt;&lt;qualify \&quot;$:/state/popup/search-dropdown\&quot;&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot; default=\&quot;\&quot;&gt;\n\n&lt;&lt;search-results-list&gt;&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$vars&gt;\n\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/SideBarSegments/site-subtitle&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SideBarSegments/site-subtitle&quot;,
&quot;tags&quot;: &quot;$:/tags/SideBarSegment&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-site-subtitle\&quot;&gt;\n\n&lt;$transclude tiddler=\&quot;$:/SiteSubtitle\&quot; mode=\&quot;inline\&quot;/&gt;\n\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/SideBarSegments/site-title&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SideBarSegments/site-title&quot;,
&quot;tags&quot;: &quot;$:/tags/SideBarSegment&quot;,
&quot;text&quot;: &quot;&lt;h1 class=\&quot;tc-site-title\&quot;&gt;\n\n&lt;$transclude tiddler=\&quot;$:/SiteTitle\&quot; mode=\&quot;inline\&quot;/&gt;\n\n&lt;/h1&gt;\n&quot;
},
&quot;$:/core/ui/SideBarSegments/tabs&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SideBarSegments/tabs&quot;,
&quot;tags&quot;: &quot;$:/tags/SideBarSegment&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-sidebar-lists tc-sidebar-tabs\&quot;&gt;\n\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]\&quot; default={{$:/config/DefaultSidebarTab}} state=\&quot;$:/state/tab/sidebar\&quot; class=\&quot;tc-sidebar-tabs-main\&quot; explicitState=\&quot;$:/state/tab/sidebar--595412856\&quot;/&gt;\n\n&lt;/div&gt;\n&quot;
},
&quot;$:/core/ui/SwitcherModal&quot;: {
&quot;title&quot;: &quot;$:/core/ui/SwitcherModal&quot;,
&quot;subtitle&quot;: &quot;&lt;$text text={{{[&lt;switch&gt;lookup[$:/language/Switcher/Subtitle/]]}}}/&gt;&quot;,
&quot;class&quot;: &quot;tc-modal-centered&quot;,
&quot;text&quot;: &quot;&lt;$tiddler tiddler={{{[&lt;switch&gt;lookup[$:/config/SwitcherTargets/]]}}}&gt;\n\n\n&lt;$transclude/&gt;\n\n\n&lt;/$tiddler&gt;&quot;
},
&quot;$:/TagManager&quot;: {
&quot;title&quot;: &quot;$:/TagManager&quot;,
&quot;icon&quot;: &quot;$:/core/images/tag-button&quot;,
&quot;color&quot;: &quot;#bbb&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TagManager/\n\\define iconEditorTab(type)\n\\whitespace trim\n&lt;$link to=\&quot;\&quot;&gt;&lt;&lt;lingo Icons/None&gt;&gt;&lt;/$link&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]\&quot;&gt;\n&lt;$link to={{!!title}}&gt;\n&lt;$transclude/&gt; &lt;$view field=\&quot;title\&quot;/&gt;\n&lt;/$link&gt;\n&lt;/$list&gt;\n\\end\n\\define iconEditor(title)\n\\whitespace trim\n&lt;div class=\&quot;tc-drop-down-wrapper\&quot;&gt;\n&lt;$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix&lt;__title__&gt;] }}} class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot;&gt;{{$:/core/images/down-arrow}}&lt;/$button&gt;\n&lt;$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix&lt;__title__&gt;] }}} type=\&quot;popup\&quot; position=\&quot;belowleft\&quot; text=\&quot;\&quot; default=\&quot;\&quot;&gt;\n&lt;div class=\&quot;tc-drop-down\&quot;&gt;\n&lt;$linkcatcher actions=\&quot;\&quot;\&quot;&lt;$action-setfield $tiddler=&lt;&lt;__title__&gt;&gt; icon=&lt;&lt;navigateTo&gt;&gt;/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;&lt;iconEditorTab type:\&quot;!\&quot;&gt;&gt;\n&lt;hr/&gt;\n&lt;&lt;iconEditorTab type:\&quot;\&quot;&gt;&gt;\n&lt;/$linkcatcher&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n\\end\n\\define toggleButton(state)\n\\whitespace trim\n&lt;$reveal stateTitle=&lt;&lt;__state__&gt;&gt; type=\&quot;match\&quot; text=\&quot;closed\&quot; default=\&quot;closed\&quot;&gt;\n&lt;$button setTitle=&lt;&lt;__state__&gt;&gt; setTo=\&quot;open\&quot; class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot; selectedClass=\&quot;tc-selected\&quot;&gt;\n{{$:/core/images/info-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal stateTitle=&lt;&lt;__state__&gt;&gt; type=\&quot;match\&quot; text=\&quot;open\&quot; default=\&quot;closed\&quot;&gt;\n&lt;$button setTitle=&lt;&lt;__state__&gt;&gt; setTo=\&quot;closed\&quot; class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot; selectedClass=\&quot;tc-selected\&quot;&gt;\n{{$:/core/images/info-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n\\end\n\\whitespace trim\n&lt;table class=\&quot;tc-tag-manager-table\&quot;&gt;\n&lt;tbody&gt;\n&lt;tr&gt;\n&lt;th&gt;&lt;&lt;lingo Colour/Heading&gt;&gt;&lt;/th&gt;\n&lt;th class=\&quot;tc-tag-manager-tag\&quot;&gt;&lt;&lt;lingo Tag/Heading&gt;&gt;&lt;/th&gt;\n&lt;th&gt;&lt;&lt;lingo Count/Heading&gt;&gt;&lt;/th&gt;\n&lt;th&gt;&lt;&lt;lingo Icon/Heading&gt;&gt;&lt;/th&gt;\n&lt;th&gt;&lt;&lt;lingo Info/Heading&gt;&gt;&lt;/th&gt;\n&lt;/tr&gt;\n&lt;$list filter=\&quot;[tags[]!is[system]sort[title]]\&quot;&gt;\n&lt;tr&gt;\n&lt;td&gt;&lt;$edit-text field=\&quot;color\&quot; tag=\&quot;input\&quot; type=\&quot;color\&quot;/&gt;&lt;/td&gt;\n&lt;td&gt;{{||$:/core/ui/TagTemplate}}&lt;/td&gt;\n&lt;td&gt;&lt;$count filter=\&quot;[all[current]tagging[]]\&quot;/&gt;&lt;/td&gt;\n&lt;td&gt;\n&lt;$macrocall $name=\&quot;iconEditor\&quot; title={{!!title}}/&gt;\n&lt;/td&gt;\n&lt;td&gt;\n&lt;$macrocall $name=\&quot;toggleButton\&quot; state={{{ [[$:/state/tag-manager/]addsuffix&lt;currentTiddler&gt;] }}} /&gt; \n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;tr&gt;\n&lt;td&gt;&lt;/td&gt;\n&lt;td colspan=\&quot;4\&quot;&gt;\n&lt;$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix&lt;currentTiddler&gt;] }}} type=\&quot;match\&quot; text=\&quot;open\&quot; default=\&quot;\&quot;&gt;\n&lt;table&gt;\n&lt;tbody&gt;\n&lt;tr&gt;&lt;td&gt;&lt;&lt;lingo Colour/Heading&gt;&gt;&lt;/td&gt;&lt;td&gt;&lt;$edit-text field=\&quot;color\&quot; tag=\&quot;input\&quot; type=\&quot;text\&quot; size=\&quot;9\&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;\n&lt;tr&gt;&lt;td&gt;&lt;&lt;lingo Icon/Heading&gt;&gt;&lt;/td&gt;&lt;td&gt;&lt;$edit-text field=\&quot;icon\&quot; tag=\&quot;input\&quot; size=\&quot;45\&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&lt;/$reveal&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;/$list&gt;\n&lt;tr&gt;\n&lt;td&gt;&lt;/td&gt;\n&lt;td style=\&quot;position:relative;\&quot;&gt;\n{{$:/core/ui/UntaggedTemplate}}\n&lt;/td&gt;\n&lt;td&gt;\n&lt;small class=\&quot;tc-menu-list-count\&quot;&gt;&lt;$count filter=\&quot;[untagged[]!is[system]] -[tags[]]\&quot;/&gt;&lt;/small&gt;\n&lt;/td&gt;\n&lt;td&gt;&lt;/td&gt;\n&lt;td&gt;&lt;/td&gt;\n&lt;/tr&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&quot;
},
&quot;$:/core/ui/TagPickerTagTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TagPickerTagTemplate&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button class=&lt;&lt;button-classes&gt;&gt; tag=\&quot;a\&quot; tooltip={{$:/language/EditTemplate/Tags/Add/Button/Hint}}&gt;\n&lt;$list filter=\&quot;[&lt;saveTiddler&gt;minlength[1]]\&quot;&gt;\n&lt;$action-listops $tiddler=&lt;&lt;saveTiddler&gt;&gt; $field=&lt;&lt;tagField&gt;&gt; $subfilter=\&quot;[&lt;tag&gt;]\&quot;/&gt;\n&lt;/$list&gt;\n&lt;$set name=\&quot;currentTiddlerCSSEscaped\&quot; value={{{ [&lt;saveTiddler&gt;escapecss[]] }}}&gt;\n&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=&lt;&lt;get-tagpicker-focus-selector&gt;&gt; preventScroll=\&quot;true\&quot;/&gt;\n&lt;/$set&gt;\n&lt;&lt;delete-tag-state-tiddlers&gt;&gt;\n&lt;$list filter=\&quot;[&lt;refreshTitle&gt;minlength[1]]\&quot;&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;refreshTitle&gt;&gt; text=\&quot;yes\&quot;/&gt;\n&lt;/$list&gt;\n&lt;&lt;actions&gt;&gt;\n&lt;$set name=\&quot;backgroundColor\&quot; value={{!!color}}&gt;\n&lt;$wikify name=\&quot;foregroundColor\&quot; text=\&quot;\&quot;\&quot;&lt;$macrocall $name=\&quot;contrastcolour\&quot; target={{!!color}} fallbackTarget=&lt;&lt;fallbackTarget&gt;&gt; colourA=&lt;&lt;colourA&gt;&gt; colourB=&lt;&lt;colourB&gt;&gt;/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;span class=\&quot;tc-tag-label tc-btn-invisible\&quot; style=&lt;&lt;tag-pill-styles&gt;&gt;&gt;\n&lt;$transclude tiddler={{!!icon}}/&gt;&lt;$view field=\&quot;title\&quot; format=\&quot;text\&quot;/&gt;\n&lt;/span&gt;\n&lt;/$wikify&gt;\n&lt;/$set&gt;\n&lt;/$button&gt;\n&quot;
},
&quot;$:/core/ui/TagTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TagTemplate&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;span class=\&quot;tc-tag-list-item\&quot;&gt;\n&lt;$set name=\&quot;transclusion\&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;$macrocall $name=\&quot;tag-pill-body\&quot; tag=&lt;&lt;currentTiddler&gt;&gt; icon={{!!icon}} colour={{!!color}} palette={{$:/palette}} element-tag=\&quot;\&quot;\&quot;$button\&quot;\&quot;\&quot; element-attributes=\&quot;\&quot;\&quot;popup=&lt;&lt;qualify \&quot;$:/state/popup/tag\&quot;&gt;&gt; dragFilter='[all[current]tagging[]]' tag='span'\&quot;\&quot;\&quot;/&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/tag\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;below\&quot; animate=\&quot;yes\&quot; class=\&quot;tc-drop-down\&quot;&gt;\n&lt;$set name=\&quot;tv-show-missing-links\&quot; value=\&quot;yes\&quot;&gt;\n&lt;$transclude tiddler=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;/$set&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt; \n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt; \n&lt;/$list&gt;\n&lt;hr&gt;\n&lt;$macrocall $name=\&quot;list-tagged-draggable\&quot; tag=&lt;&lt;currentTiddler&gt;&gt;/&gt;\n&lt;/$reveal&gt;\n&lt;/$set&gt;\n&lt;/span&gt;\n&quot;
},
&quot;$:/core/ui/TiddlerFieldTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerFieldTemplate&quot;,
&quot;text&quot;: &quot;&lt;tr class=\&quot;tc-view-field\&quot;&gt;\n&lt;td class=\&quot;tc-view-field-name\&quot;&gt;\n&lt;$text text=&lt;&lt;listItem&gt;&gt;/&gt;\n&lt;/td&gt;\n&lt;td class=\&quot;tc-view-field-value\&quot;&gt;\n&lt;$view field=&lt;&lt;listItem&gt;&gt;/&gt;\n&lt;/td&gt;\n&lt;/tr&gt;&quot;
},
&quot;$:/core/ui/TiddlerFields&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerFields&quot;,
&quot;text&quot;: &quot;&lt;table class=\&quot;tc-view-field-table\&quot;&gt;\n&lt;tbody&gt;\n&lt;$list filter=\&quot;[all[current]fields[]sort[title]] -text\&quot; template=\&quot;$:/core/ui/TiddlerFieldTemplate\&quot; variable=\&quot;listItem\&quot;/&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&quot;
},
&quot;$:/core/ui/TiddlerInfo/Advanced/PluginInfo&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerInfo/Advanced/PluginInfo&quot;,
&quot;tags&quot;: &quot;$:/tags/TiddlerInfo/Advanced&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/\n&lt;$list filter=\&quot;[all[current]has[plugin-type]]\&quot;&gt;\n\n! &lt;&lt;lingo Heading&gt;&gt;\n\n&lt;&lt;lingo Hint&gt;&gt;\n&lt;ul&gt;\n&lt;$list filter=\&quot;[all[current]plugintiddlers[]sort[title]]\&quot; emptyMessage=&lt;&lt;lingo Empty/Hint&gt;&gt;&gt;\n&lt;li&gt;\n&lt;$link to={{!!title}}&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n&lt;/$link&gt;\n&lt;/li&gt;\n&lt;/$list&gt;\n&lt;/ul&gt;\n\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/TiddlerInfo/Advanced/ShadowInfo&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerInfo/Advanced/ShadowInfo&quot;,
&quot;tags&quot;: &quot;$:/tags/TiddlerInfo/Advanced&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/Advanced/ShadowInfo/\n&lt;$set name=\&quot;infoTiddler\&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;\n\n''&lt;&lt;lingo Heading&gt;&gt;''\n\n&lt;$list filter=\&quot;[all[current]!is[shadow]]\&quot;&gt;\n\n&lt;&lt;lingo NotShadow/Hint&gt;&gt;\n\n&lt;/$list&gt;\n\n&lt;$list filter=\&quot;[all[current]is[shadow]]\&quot;&gt;\n\n&lt;&lt;lingo Shadow/Hint&gt;&gt;\n\n&lt;$list filter=\&quot;[all[current]shadowsource[]]\&quot;&gt;\n\n&lt;$set name=\&quot;pluginTiddler\&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;&lt;lingo Shadow/Source&gt;&gt;\n&lt;/$set&gt;\n\n&lt;/$list&gt;\n\n&lt;$list filter=\&quot;[all[current]is[shadow]is[tiddler]]\&quot;&gt;\n\n&lt;&lt;lingo OverriddenShadow/Hint&gt;&gt;\n\n&lt;/$list&gt;\n\n\n&lt;/$list&gt;\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/ui/TiddlerInfo/Advanced&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerInfo/Advanced&quot;,
&quot;tags&quot;: &quot;$:/tags/TiddlerInfo&quot;,
&quot;caption&quot;: &quot;{{$:/language/TiddlerInfo/Advanced/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo/Advanced]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=\&quot;block\&quot;/&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/TiddlerInfo/Fields&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerInfo/Fields&quot;,
&quot;tags&quot;: &quot;$:/tags/TiddlerInfo&quot;,
&quot;caption&quot;: &quot;{{$:/language/TiddlerInfo/Fields/Caption}}&quot;,
&quot;text&quot;: &quot;&lt;$transclude tiddler=\&quot;$:/core/ui/TiddlerFields\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/TiddlerInfo/List&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerInfo/List&quot;,
&quot;tags&quot;: &quot;$:/tags/TiddlerInfo&quot;,
&quot;caption&quot;: &quot;{{$:/language/TiddlerInfo/List/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/\n&lt;$list filter=\&quot;[list{!!title}]\&quot; emptyMessage=&lt;&lt;lingo List/Empty&gt;&gt; template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/TiddlerInfo/Listed&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerInfo/Listed&quot;,
&quot;tags&quot;: &quot;$:/tags/TiddlerInfo&quot;,
&quot;caption&quot;: &quot;{{$:/language/TiddlerInfo/Listed/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/\n&lt;$list filter=\&quot;[all[current]listed[]!is[system]]\&quot; emptyMessage=&lt;&lt;lingo Listed/Empty&gt;&gt; template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/TiddlerInfo/References&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerInfo/References&quot;,
&quot;tags&quot;: &quot;$:/tags/TiddlerInfo&quot;,
&quot;caption&quot;: &quot;{{$:/language/TiddlerInfo/References/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/\n&lt;$list filter=\&quot;[all[current]backlinks[]sort[title]]\&quot; emptyMessage=&lt;&lt;lingo References/Empty&gt;&gt; template=\&quot;$:/core/ui/ListItemTemplate\&quot;&gt;\n&lt;/$list&gt;&quot;
},
&quot;$:/core/ui/TiddlerInfo/Tagging&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerInfo/Tagging&quot;,
&quot;tags&quot;: &quot;$:/tags/TiddlerInfo&quot;,
&quot;caption&quot;: &quot;{{$:/language/TiddlerInfo/Tagging/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/\n&lt;$list filter=\&quot;[all[current]tagging[]]\&quot; emptyMessage=&lt;&lt;lingo Tagging/Empty&gt;&gt; template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&quot;
},
&quot;$:/core/ui/TiddlerInfo/Tools&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerInfo/Tools&quot;,
&quot;tags&quot;: &quot;$:/tags/TiddlerInfo&quot;,
&quot;caption&quot;: &quot;{{$:/language/TiddlerInfo/Tools/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TiddlerInfo/\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n&lt;$set name=\&quot;tv-config-toolbar-icons\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-text\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-class\&quot; value=\&quot;\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$checkbox tiddler=&lt;&lt;config-title&gt;&gt; field=\&quot;text\&quot; checked=\&quot;show\&quot; unchecked=\&quot;hide\&quot; default=\&quot;show\&quot;/&gt; &lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt; &lt;i class=\&quot;tc-muted\&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; field=\&quot;description\&quot;/&gt;&lt;/i&gt;\n\n&lt;/$list&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/ui/TiddlerInfo&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TiddlerInfo&quot;,
&quot;text&quot;: &quot;&lt;div style=\&quot;position:relative;\&quot;&gt;\n&lt;div class=\&quot;tc-tiddler-controls\&quot; style=\&quot;position:absolute;right:0;\&quot;&gt;\n&lt;$reveal state=\&quot;$:/config/TiddlerInfo/Mode\&quot; type=\&quot;match\&quot; text=\&quot;sticky\&quot;&gt;\n&lt;$button set=&lt;&lt;tiddlerInfoState&gt;&gt; setTo=\&quot;\&quot; tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=\&quot;tc-btn-invisible\&quot;&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo]!has[draft.of]]\&quot; default={{$:/config/TiddlerInfo/Default}}/&gt;\n&quot;
},
&quot;$:/core/ui/TopBar/menu&quot;: {
&quot;title&quot;: &quot;$:/core/ui/TopBar/menu&quot;,
&quot;tags&quot;: &quot;$:/tags/TopRightBar&quot;,
&quot;text&quot;: &quot;&lt;$list filter=\&quot;[[$:/state/sidebar]get[text]] +[else[yes]!match[no]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$button set=\&quot;$:/state/sidebar\&quot; setTo=\&quot;no\&quot; tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class=\&quot;tc-btn-invisible tc-hide-sidebar-btn\&quot;&gt;{{$:/core/images/chevron-right}}&lt;/$button&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[[$:/state/sidebar]get[text]] +[else[yes]match[no]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$button set=\&quot;$:/state/sidebar\&quot; setTo=\&quot;yes\&quot; tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class=\&quot;tc-btn-invisible tc-show-sidebar-btn\&quot;&gt;{{$:/core/images/chevron-left}}&lt;/$button&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/UntaggedTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/UntaggedTemplate&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/SideBar/\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/tag\&quot;&gt;&gt; class=\&quot;tc-btn-invisible tc-untagged-label tc-tag-label\&quot;&gt;\n&lt;&lt;lingo Tags/Untagged/Caption&gt;&gt;\n&lt;/$button&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/tag\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;below\&quot;&gt;\n&lt;div class=\&quot;tc-drop-down\&quot;&gt;\n&lt;$list filter=\&quot;[untagged[]!is[system]] -[tags[]] +[sort[title]]\&quot; template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/ViewTemplate/body&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ViewTemplate/body&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewTemplate&quot;,
&quot;text&quot;: &quot;&lt;$reveal tag=\&quot;div\&quot; class=\&quot;tc-tiddler-body\&quot; type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=\&quot;hide\&quot; retain=\&quot;yes\&quot; animate=\&quot;yes\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[current]!has[plugin-type]!field:hide-body[yes]]\&quot;&gt;\n\n&lt;$transclude&gt;\n\n&lt;$transclude tiddler=\&quot;$:/language/MissingTiddler/Hint\&quot;/&gt;\n\n&lt;/$transclude&gt;\n\n&lt;/$list&gt;\n\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/ViewTemplate/classic&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ViewTemplate/classic&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewTemplate $:/tags/EditTemplate&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ClassicWarning/\n&lt;$list filter=\&quot;[all[current]type[text/x-tiddlywiki]]\&quot;&gt;\n&lt;div class=\&quot;tc-message-box\&quot;&gt;\n\n&lt;&lt;lingo Hint&gt;&gt;\n\n&lt;$button set=\&quot;!!type\&quot; setTo=\&quot;text/vnd.tiddlywiki\&quot;&gt;&lt;&lt;lingo Upgrade/Caption&gt;&gt;&lt;/$button&gt;\n\n&lt;/div&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/ViewTemplate/import&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ViewTemplate/import&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewTemplate&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/Import/\n\n\\define buttons()\n&lt;$button message=\&quot;tm-delete-tiddler\&quot; param=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;&lt;lingo Listing/Cancel/Caption&gt;&gt;&lt;/$button&gt;\n&lt;$button message=\&quot;tm-perform-import\&quot; param=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;&lt;lingo Listing/Import/Caption&gt;&gt;&lt;/$button&gt;\n&lt;&lt;lingo Listing/Preview&gt;&gt; &lt;$select tiddler=\&quot;$:/state/importpreviewtype\&quot; default=\&quot;$:/core/ui/ImportPreviews/Text\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]\&quot;&gt;\n&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;{{!!caption}}&lt;/option&gt;\n&lt;/$list&gt;\n&lt;/$select&gt;\n\\end\n\n&lt;$list filter=\&quot;[all[current]field:plugin-type[import]]\&quot;&gt;\n\n&lt;div class=\&quot;tc-import\&quot;&gt;\n\n&lt;&lt;lingo Listing/Hint&gt;&gt;\n\n&lt;&lt;buttons&gt;&gt;\n\n{{||$:/core/ui/ImportListing}}\n\n&lt;&lt;buttons&gt;&gt;\n\n&lt;/div&gt;\n\n&lt;/$list&gt;\n&quot;
},
&quot;$:/core/ui/ViewTemplate/plugin&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ViewTemplate/plugin&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewTemplate&quot;,
&quot;text&quot;: &quot;&lt;$reveal tag=\&quot;div\&quot; class=\&quot;tc-tiddler-plugin-info\&quot; type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=\&quot;hide\&quot; retain=\&quot;yes\&quot; animate=\&quot;yes\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[current]has[plugin-type]] -[all[current]field:plugin-type[import]]\&quot;&gt;\n&lt;$set name=\&quot;plugin-type\&quot; value={{!!plugin-type}}&gt;\n&lt;$set name=\&quot;default-popup-state\&quot; value=\&quot;yes\&quot;&gt;\n&lt;$set name=\&quot;qualified-state\&quot; value=&lt;&lt;qualify \&quot;$:/state/plugin-info\&quot;&gt;&gt;&gt;\n{{||$:/core/ui/Components/plugin-info}}\n&lt;/$set&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$reveal&gt;&quot;
},
&quot;$:/core/ui/ViewTemplate/subtitle&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ViewTemplate/subtitle&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewTemplate&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$reveal type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=\&quot;hide\&quot; tag=\&quot;div\&quot; retain=\&quot;yes\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;div class=\&quot;tc-subtitle\&quot;&gt;\n&lt;$link to={{!!modifier}} /&gt;\n&lt;$view field=\&quot;modified\&quot; format=\&quot;date\&quot; template={{$:/language/Tiddler/DateFormat}}/&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/ViewTemplate/tags&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ViewTemplate/tags&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewTemplate&quot;,
&quot;text&quot;: &quot;&lt;$reveal type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=\&quot;hide\&quot; tag=\&quot;div\&quot; retain=\&quot;yes\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;div class=\&quot;tc-tags-wrapper\&quot;&gt;&lt;$list filter=\&quot;[all[current]tags[]sort[title]]\&quot; template=\&quot;$:/core/ui/TagTemplate\&quot; storyview=\&quot;pop\&quot;/&gt;&lt;/div&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/ViewTemplate/title&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ViewTemplate/title&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewTemplate&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define title-styles()\nfill:$(foregroundColor)$;\n\\end\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n&lt;div class=\&quot;tc-tiddler-title\&quot;&gt;\n&lt;div class=\&quot;tc-titlebar\&quot;&gt;\n&lt;span class=\&quot;tc-tiddler-controls\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;config-title&gt;&gt; text=\&quot;hide\&quot;&gt;&lt;$set name=\&quot;tv-config-toolbar-class\&quot; filter=\&quot;[&lt;tv-config-toolbar-class&gt;] [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]]\&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;&lt;/$set&gt;&lt;/$reveal&gt;&lt;/$list&gt;\n&lt;/span&gt;\n&lt;$set name=\&quot;tv-wikilinks\&quot; value={{$:/config/Tiddlers/TitleLinks}}&gt;\n&lt;$link&gt;\n&lt;$set name=\&quot;foregroundColor\&quot; value={{!!color}}&gt;\n&lt;$list filter=\&quot;[all[current]has[icon]]~[[$:/config/DefaultTiddlerIcon]has[text]]\&quot;&gt;\n&lt;span class=\&quot;tc-tiddler-title-icon\&quot; style=&lt;&lt;title-styles&gt;&gt;&gt;\n&lt;$transclude tiddler={{!!icon}}&gt;\n&lt;$transclude tiddler={{$:/config/DefaultTiddlerIcon}}/&gt;\n&lt;/$transclude&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;$list filter=\&quot;[all[current]removeprefix[$:/]]\&quot;&gt;\n&lt;h2 class=\&quot;tc-title\&quot; title={{$:/language/SystemTiddler/Tooltip}}&gt;\n&lt;span class=\&quot;tc-system-title-prefix\&quot;&gt;$:/&lt;/span&gt;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;\n&lt;/h2&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[all[current]!prefix[$:/]]\&quot;&gt;\n&lt;h2 class=\&quot;tc-title\&quot;&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n&lt;/h2&gt;\n&lt;/$list&gt;\n&lt;/$link&gt;\n&lt;/$set&gt;\n&lt;/div&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; text=\&quot;\&quot; default=\&quot;\&quot; state=&lt;&lt;tiddlerInfoState&gt;&gt; class=\&quot;tc-tiddler-info tc-popup-handle\&quot; animate=\&quot;yes\&quot; retain=\&quot;yes\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/TiddlerInfoSegment]!has[draft.of]] [[$:/core/ui/TiddlerInfo]]\&quot; variable=\&quot;listItem\&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=\&quot;block\&quot;/&gt;&lt;/$list&gt;\n\n&lt;/$reveal&gt;\n&lt;/div&gt;&quot;
},
&quot;$:/core/ui/ViewTemplate/unfold&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ViewTemplate/unfold&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewTemplate&quot;,
&quot;text&quot;: &quot;&lt;$reveal tag=\&quot;div\&quot; type=\&quot;nomatch\&quot; state=\&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar\&quot; text=\&quot;hide\&quot;&gt;\n&lt;$reveal tag=\&quot;div\&quot; type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=\&quot;hide\&quot; default=\&quot;show\&quot; retain=\&quot;yes\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=\&quot;tc-fold-banner\&quot;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-fold-tiddler\&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedState=&lt;&lt;folded-state&gt;&gt;/&gt;\n{{$:/core/images/chevron-up}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal tag=\&quot;div\&quot; type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=\&quot;show\&quot; default=\&quot;show\&quot; retain=\&quot;yes\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=\&quot;tc-unfold-banner\&quot;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-fold-tiddler\&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedState=&lt;&lt;folded-state&gt;&gt;/&gt;\n{{$:/core/images/chevron-down}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/ViewTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/ViewTemplate&quot;,
&quot;text&quot;: &quot;\\define folded-state()\n$:/state/folded/$(currentTiddler)$\n\\end\n\\define cancel-delete-tiddler-actions(message) &lt;$action-sendmessage $message=\&quot;tm-$message$-tiddler\&quot;/&gt;\n\\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]\n&lt;$vars storyTiddler=&lt;&lt;currentTiddler&gt;&gt; tiddlerInfoState=&lt;&lt;qualify \&quot;$:/state/popup/tiddler-info\&quot;&gt;&gt;&gt;&lt;div data-tiddler-title=&lt;&lt;currentTiddler&gt;&gt; data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-view-frame [&lt;currentTiddler&gt;is[tiddler]then[tc-tiddler-exists]] [&lt;currentTiddler&gt;is[missing]!is[shadow]then[tc-tiddler-missing]] [&lt;currentTiddler&gt;is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [&lt;currentTiddler&gt;is[shadow]is[tiddler]then[tc-tiddler-overridden-shadow]] [&lt;currentTiddler&gt;is[system]then[tc-tiddler-system]] [{!!class}] [&lt;currentTiddler&gt;tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}&gt;&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$vars&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/clone&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/clone&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Clone/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button message=\&quot;tm-new-tiddler\&quot; param=&lt;&lt;currentTiddler&gt;&gt; tooltip={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/clone-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$text text={{$:/language/Buttons/Clone/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/close-others&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/close-others&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/CloseOthers/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button message=\&quot;tm-close-other-tiddlers\&quot; param=&lt;&lt;currentTiddler&gt;&gt; tooltip={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/close-others-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$text text={{$:/language/Buttons/CloseOthers/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/close&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/close&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Close/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button message=\&quot;tm-close-tiddler\&quot; tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/close-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text={{$:/language/Buttons/Close/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/edit&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/edit&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Edit/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button message=\&quot;tm-edit-tiddler\&quot; tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/edit-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$text text={{$:/language/Buttons/Edit/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/export-tiddler&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/export-tiddler&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/export-button}} {{$:/language/Buttons/ExportTiddler/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/ExportTiddler/Hint}}&quot;,
&quot;text&quot;: &quot;\\define makeExportFilter()\n[[$(currentTiddler)$]]\n\\end\n&lt;$macrocall $name=\&quot;exportButton\&quot; exportFilter=&lt;&lt;makeExportFilter&gt;&gt; lingoBase=\&quot;$:/language/Buttons/ExportTiddler/\&quot; baseFilename=&lt;&lt;currentTiddler&gt;&gt;/&gt;&quot;
},
&quot;$:/core/ui/Buttons/fold-bar&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/fold-bar&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/chevron-up}} {{$:/language/Buttons/Fold/FoldBar/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Fold/FoldBar/Hint}}&quot;,
&quot;text&quot;: &quot;&lt;!-- This dummy toolbar button is here to allow visibility of the fold-bar to be controlled as if it were a toolbar button --&gt;&quot;
},
&quot;$:/core/ui/Buttons/fold-others&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/fold-others&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/fold-others-button}} {{$:/language/Buttons/FoldOthers/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/FoldOthers/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button tooltip={{$:/language/Buttons/FoldOthers/Hint}} aria-label={{$:/language/Buttons/FoldOthers/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-fold-other-tiddlers\&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedStatePrefix=\&quot;$:/state/folded/\&quot;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot; variable=\&quot;listItem\&quot;&gt;\n{{$:/core/images/fold-others-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$text text={{$:/language/Buttons/FoldOthers/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/fold&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/fold&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/fold-button}} {{$:/language/Buttons/Fold/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Fold/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$reveal type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=\&quot;hide\&quot; default=\&quot;show\&quot;&gt;\n&lt;$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-fold-tiddler\&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedState=&lt;&lt;folded-state&gt;&gt;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot; variable=\&quot;listItem\&quot;&gt;\n{{$:/core/images/fold-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$text text={{$:/language/Buttons/Fold/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=\&quot;hide\&quot; default=\&quot;show\&quot;&gt;\n&lt;$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-fold-tiddler\&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedState=&lt;&lt;folded-state&gt;&gt;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot; variable=\&quot;listItem\&quot;&gt;\n{{$:/core/images/unfold-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$text text={{$:/language/Buttons/Unfold/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/info&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/info&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Info/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define button-content()\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/info-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text={{$:/language/Buttons/Info/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n\\end\n&lt;$reveal state=\&quot;$:/config/TiddlerInfo/Mode\&quot; type=\&quot;match\&quot; text=\&quot;popup\&quot;&gt;\n&lt;$button popup=&lt;&lt;tiddlerInfoState&gt;&gt; tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=\&quot;tc-selected\&quot;&gt;\n&lt;$macrocall $name=\&quot;button-content\&quot; mode=\&quot;inline\&quot;/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal state=\&quot;$:/config/TiddlerInfo/Mode\&quot; type=\&quot;match\&quot; text=\&quot;sticky\&quot;&gt;\n&lt;$reveal state=&lt;&lt;tiddlerInfoState&gt;&gt; type=\&quot;match\&quot; text=\&quot;\&quot; default=\&quot;\&quot;&gt;\n&lt;$button set=&lt;&lt;tiddlerInfoState&gt;&gt; setTo=\&quot;yes\&quot; tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=\&quot;tc-selected\&quot;&gt;\n&lt;$macrocall $name=\&quot;button-content\&quot; mode=\&quot;inline\&quot;/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal state=&lt;&lt;tiddlerInfoState&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot; default=\&quot;\&quot;&gt;\n&lt;$button set=&lt;&lt;tiddlerInfoState&gt;&gt; setTo=\&quot;\&quot; tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=\&quot;tc-selected\&quot;&gt;\n&lt;$macrocall $name=\&quot;button-content\&quot; mode=\&quot;inline\&quot;/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/$reveal&gt;&quot;
},
&quot;$:/core/ui/Buttons/more-tiddler-actions&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/more-tiddler-actions&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/More/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/more\&quot;&gt;&gt; tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=\&quot;tc-selected\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/down-arrow}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$text text={{$:/language/Buttons/More/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/more\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;belowleft\&quot; animate=\&quot;yes\&quot;&gt;\n\n&lt;div class=\&quot;tc-drop-down\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-icons\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-text\&quot; value=\&quot;yes\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-class\&quot; value=\&quot;tc-btn-invisible\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;config-title&gt;&gt; text=\&quot;hide\&quot;&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-class\&quot; filter=\&quot;[&lt;tv-config-toolbar-class&gt;] [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]]\&quot;&gt;\n\n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=\&quot;inline\&quot;/&gt;\n\n&lt;/$set&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$list&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/div&gt;\n\n&lt;/$reveal&gt;&quot;
},
&quot;$:/core/ui/Buttons/new-here&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/new-here&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/NewHere/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define newHereActions()\n&lt;$set name=\&quot;tags\&quot; filter=\&quot;[&lt;currentTiddler&gt;] [{$:/config/NewTiddler/Tags}]\&quot;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-new-tiddler\&quot; tags=&lt;&lt;tags&gt;&gt;/&gt;\n&lt;/$set&gt;\n\\end\n\\define newHereButton()\n&lt;$button actions=&lt;&lt;newHereActions&gt;&gt; tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/new-here-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text={{$:/language/Buttons/NewHere/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n\\end\n&lt;&lt;newHereButton&gt;&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/new-journal-here&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/new-journal-here&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalHere/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/NewJournalHere/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n\\define journalButtonTags()\n[[$(currentTiddlerTag)$]] $(journalTags)$\n\\end\n\\define journalButton()\n&lt;$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$wikify name=\&quot;journalTitle\&quot; text=\&quot;\&quot;\&quot;&lt;$macrocall $name=\&quot;now\&quot; format=&lt;&lt;journalTitleTemplate&gt;&gt;/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-new-tiddler\&quot; title=&lt;&lt;journalTitle&gt;&gt; tags=&lt;&lt;journalButtonTags&gt;&gt;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/new-journal-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text={{$:/language/Buttons/NewJournalHere/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$wikify&gt;\n&lt;/$button&gt;\n\\end\n&lt;$set name=\&quot;journalTitleTemplate\&quot; value={{$:/config/NewJournal/Title}}&gt;\n&lt;$set name=\&quot;journalTags\&quot; value={{$:/config/NewJournal/Tags}}&gt;\n&lt;$set name=\&quot;currentTiddlerTag\&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;&lt;journalButton&gt;&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n&quot;
},
&quot;$:/core/ui/Buttons/open-window&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/open-window&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/open-window}} {{$:/language/Buttons/OpenWindow/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/OpenWindow/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button message=\&quot;tm-open-window\&quot; tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/open-window}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$text text={{$:/language/Buttons/OpenWindow/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/permalink&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/permalink&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Permalink/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button message=\&quot;tm-permalink\&quot; tooltip={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/permalink-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$text text={{$:/language/Buttons/Permalink/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/core/ui/Buttons/permaview&quot;: {
&quot;title&quot;: &quot;$:/core/ui/Buttons/permaview&quot;,
&quot;tags&quot;: &quot;$:/tags/ViewToolbar $:/tags/PageControls&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/language/Buttons/Permaview/Hint}}&quot;,
&quot;text&quot;: &quot;\\whitespace trim\n&lt;$button message=\&quot;tm-permaview\&quot; tooltip={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/permaview-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;\n&lt;$text text=\&quot; \&quot;/&gt;\n&lt;$text text={{$:/language/Buttons/Permaview/Caption}}/&gt;\n&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&quot;
},
&quot;$:/DefaultTiddlers&quot;: {
&quot;title&quot;: &quot;$:/DefaultTiddlers&quot;,
&quot;text&quot;: &quot;GettingStarted\n&quot;
},
&quot;$:/temp/advancedsearch&quot;: {
&quot;title&quot;: &quot;$:/temp/advancedsearch&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/snippets/allfields&quot;: {
&quot;title&quot;: &quot;$:/snippets/allfields&quot;,
&quot;text&quot;: &quot;\\define renderfield(title)\n&lt;tr class=\&quot;tc-view-field\&quot;&gt;&lt;td class=\&quot;tc-view-field-name\&quot;&gt;''$title$'':&lt;/td&gt;&lt;td class=\&quot;tc-view-field-value\&quot;&gt;//{{$:/language/Docs/Fields/$title$}}//&lt;/td&gt;&lt;/tr&gt;\n\\end\n&lt;table class=\&quot;tc-view-field-table\&quot;&gt;&lt;tbody&gt;&lt;$list filter=\&quot;[fields[]sort[title]]\&quot; variable=\&quot;listItem\&quot;&gt;&lt;$macrocall $name=\&quot;renderfield\&quot; title=&lt;&lt;listItem&gt;&gt;/&gt;&lt;/$list&gt;\n&lt;/tbody&gt;&lt;/table&gt;\n&quot;
},
&quot;$:/config/AnimationDuration&quot;: {
&quot;title&quot;: &quot;$:/config/AnimationDuration&quot;,
&quot;text&quot;: &quot;400&quot;
},
&quot;$:/config/AutoFocus&quot;: {
&quot;title&quot;: &quot;$:/config/AutoFocus&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/AutoSave&quot;: {
&quot;title&quot;: &quot;$:/config/AutoSave&quot;,
&quot;text&quot;: &quot;yes&quot;
},
&quot;$:/config/BitmapEditor/Colour&quot;: {
&quot;title&quot;: &quot;$:/config/BitmapEditor/Colour&quot;,
&quot;text&quot;: &quot;#444&quot;
},
&quot;$:/config/BitmapEditor/ImageSizes&quot;: {
&quot;title&quot;: &quot;$:/config/BitmapEditor/ImageSizes&quot;,
&quot;text&quot;: &quot;[[62px 100px]] [[100px 62px]] [[124px 200px]] [[200px 124px]] [[248px 400px]] [[371px 600px]] [[400px 248px]] [[556px 900px]] [[600px 371px]] [[742px 1200px]] [[900px 556px]] [[1200px 742px]]&quot;
},
&quot;$:/config/BitmapEditor/LineWidth&quot;: {
&quot;title&quot;: &quot;$:/config/BitmapEditor/LineWidth&quot;,
&quot;text&quot;: &quot;3px&quot;
},
&quot;$:/config/BitmapEditor/LineWidths&quot;: {
&quot;title&quot;: &quot;$:/config/BitmapEditor/LineWidths&quot;,
&quot;text&quot;: &quot;0.25px 0.5px 1px 2px 3px 4px 6px 8px 10px 16px 20px 28px 40px 56px 80px&quot;
},
&quot;$:/config/BitmapEditor/Opacities&quot;: {
&quot;title&quot;: &quot;$:/config/BitmapEditor/Opacities&quot;,
&quot;text&quot;: &quot;0.01 0.025 0.05 0.075 0.1 0.15 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0&quot;
},
&quot;$:/config/BitmapEditor/Opacity&quot;: {
&quot;title&quot;: &quot;$:/config/BitmapEditor/Opacity&quot;,
&quot;text&quot;: &quot;1.0&quot;
},
&quot;$:/config/DefaultMoreSidebarTab&quot;: {
&quot;title&quot;: &quot;$:/config/DefaultMoreSidebarTab&quot;,
&quot;text&quot;: &quot;$:/core/ui/MoreSideBar/Tags&quot;
},
&quot;$:/config/DefaultSidebarTab&quot;: {
&quot;title&quot;: &quot;$:/config/DefaultSidebarTab&quot;,
&quot;text&quot;: &quot;$:/core/ui/SideBar/Open&quot;
},
&quot;$:/config/DownloadSaver/AutoSave&quot;: {
&quot;title&quot;: &quot;$:/config/DownloadSaver/AutoSave&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/config/Drafts/TypingTimeout&quot;: {
&quot;title&quot;: &quot;$:/config/Drafts/TypingTimeout&quot;,
&quot;text&quot;: &quot;400&quot;
},
&quot;$:/config/EditMode/fieldname-filter&quot;: {
&quot;title&quot;: &quot;$:/config/EditMode/fieldname-filter&quot;,
&quot;first-search-filter&quot;: &quot;[!is[shadow]!is[system]fields[]search:title&lt;userInput&gt;sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type&quot;,
&quot;second-search-filter&quot;: &quot;[fields[]search:title&lt;userInput&gt;sort[]] -[!is[shadow]!is[system]fields[]]&quot;
},
&quot;$:/config/EditTabIndex&quot;: {
&quot;title&quot;: &quot;$:/config/EditTabIndex&quot;,
&quot;text&quot;: &quot;1\n&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/title&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/title&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/tags&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/tags&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/text&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/text&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/creator&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/creator&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/created&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/created&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/modified&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/modified&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/modifier&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/modifier&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/type&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/type&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/draft.title&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/draft.title&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/draft.of&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/draft.of&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/revision&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/revision&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditTemplateFields/Visibility/bag&quot;: {
&quot;title&quot;: &quot;$:/config/EditTemplateFields/Visibility/bag&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4&quot;: {
&quot;title&quot;: &quot;$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5&quot;: {
&quot;title&quot;: &quot;$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6&quot;: {
&quot;title&quot;: &quot;$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/EditorTypeMappings/image/gif&quot;: {
&quot;title&quot;: &quot;$:/config/EditorTypeMappings/image/gif&quot;,
&quot;text&quot;: &quot;bitmap&quot;
},
&quot;$:/config/EditorTypeMappings/image/webp&quot;: {
&quot;title&quot;: &quot;$:/config/EditorTypeMappings/image/webp&quot;,
&quot;text&quot;: &quot;bitmap&quot;
},
&quot;$:/config/EditorTypeMappings/image/heic&quot;: {
&quot;title&quot;: &quot;$:/config/EditorTypeMappings/image/heic&quot;,
&quot;text&quot;: &quot;bitmap&quot;
},
&quot;$:/config/EditorTypeMappings/image/heif&quot;: {
&quot;title&quot;: &quot;$:/config/EditorTypeMappings/image/heif&quot;,
&quot;text&quot;: &quot;bitmap&quot;
},
&quot;$:/config/EditorTypeMappings/image/jpeg&quot;: {
&quot;title&quot;: &quot;$:/config/EditorTypeMappings/image/jpeg&quot;,
&quot;text&quot;: &quot;bitmap&quot;
},
&quot;$:/config/EditorTypeMappings/image/jpg&quot;: {
&quot;title&quot;: &quot;$:/config/EditorTypeMappings/image/jpg&quot;,
&quot;text&quot;: &quot;bitmap&quot;
},
&quot;$:/config/EditorTypeMappings/image/png&quot;: {
&quot;title&quot;: &quot;$:/config/EditorTypeMappings/image/png&quot;,
&quot;text&quot;: &quot;bitmap&quot;
},
&quot;$:/config/EditorTypeMappings/image/x-icon&quot;: {
&quot;title&quot;: &quot;$:/config/EditorTypeMappings/image/x-icon&quot;,
&quot;text&quot;: &quot;bitmap&quot;
},
&quot;$:/config/EditorTypeMappings/text/vnd.tiddlywiki&quot;: {
&quot;title&quot;: &quot;$:/config/EditorTypeMappings/text/vnd.tiddlywiki&quot;,
&quot;text&quot;: &quot;text&quot;
},
&quot;$:/config/Manager/Show&quot;: {
&quot;title&quot;: &quot;$:/config/Manager/Show&quot;,
&quot;text&quot;: &quot;tiddlers&quot;
},
&quot;$:/config/Manager/Filter&quot;: {
&quot;title&quot;: &quot;$:/config/Manager/Filter&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/config/Manager/Order&quot;: {
&quot;title&quot;: &quot;$:/config/Manager/Order&quot;,
&quot;text&quot;: &quot;forward&quot;
},
&quot;$:/config/Manager/Sort&quot;: {
&quot;title&quot;: &quot;$:/config/Manager/Sort&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/Manager/System&quot;: {
&quot;title&quot;: &quot;$:/config/Manager/System&quot;,
&quot;text&quot;: &quot;system&quot;
},
&quot;$:/config/Manager/Tag&quot;: {
&quot;title&quot;: &quot;$:/config/Manager/Tag&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/state/popup/manager/item/$:/Manager/ItemMain/RawText&quot;: {
&quot;title&quot;: &quot;$:/state/popup/manager/item/$:/Manager/ItemMain/RawText&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/MissingLinks&quot;: {
&quot;title&quot;: &quot;$:/config/MissingLinks&quot;,
&quot;text&quot;: &quot;yes&quot;
},
&quot;$:/config/Navigation/UpdateAddressBar&quot;: {
&quot;title&quot;: &quot;$:/config/Navigation/UpdateAddressBar&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/config/Navigation/UpdateHistory&quot;: {
&quot;title&quot;: &quot;$:/config/Navigation/UpdateHistory&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/config/NewImageType&quot;: {
&quot;title&quot;: &quot;$:/config/NewImageType&quot;,
&quot;text&quot;: &quot;jpeg&quot;
},
&quot;$:/config/OfficialPluginLibrary&quot;: {
&quot;title&quot;: &quot;$:/config/OfficialPluginLibrary&quot;,
&quot;tags&quot;: &quot;$:/tags/PluginLibrary&quot;,
&quot;url&quot;: &quot;https://tiddlywiki.com/library/v5.1.23/index.html&quot;,
&quot;caption&quot;: &quot;{{$:/language/OfficialPluginLibrary}}&quot;,
&quot;text&quot;: &quot;{{$:/language/OfficialPluginLibrary/Hint}}\n&quot;
},
&quot;$:/config/Navigation/openLinkFromInsideRiver&quot;: {
&quot;title&quot;: &quot;$:/config/Navigation/openLinkFromInsideRiver&quot;,
&quot;text&quot;: &quot;below&quot;
},
&quot;$:/config/Navigation/openLinkFromOutsideRiver&quot;: {
&quot;title&quot;: &quot;$:/config/Navigation/openLinkFromOutsideRiver&quot;,
&quot;text&quot;: &quot;top&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/close-all&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/close-all&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/export-page&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/export-page&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/fold-all&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/fold-all&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/full-screen&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/full-screen&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/refresh&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/refresh&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/language&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/language&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/tag-manager&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/tag-manager&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/manager&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/manager&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-journal&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-journal&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-image&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-image&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/palette&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/palette&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/permaview&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/permaview&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/print&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/print&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/storyview&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/storyview&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/timestamp&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/timestamp&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/theme&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/theme&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/unfold-all&quot;: {
&quot;title&quot;: &quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/unfold-all&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/Performance/Instrumentation&quot;: {
&quot;title&quot;: &quot;$:/config/Performance/Instrumentation&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/config/RegisterPluginType/plugin&quot;: {
&quot;title&quot;: &quot;$:/config/RegisterPluginType/plugin&quot;,
&quot;text&quot;: &quot;yes&quot;
},
&quot;$:/config/RegisterPluginType/theme&quot;: {
&quot;title&quot;: &quot;$:/config/RegisterPluginType/theme&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/config/RegisterPluginType/language&quot;: {
&quot;title&quot;: &quot;$:/config/RegisterPluginType/language&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/config/RegisterPluginType/info&quot;: {
&quot;title&quot;: &quot;$:/config/RegisterPluginType/info&quot;,
&quot;text&quot;: &quot;yes&quot;
},
&quot;$:/config/RegisterPluginType/import&quot;: {
&quot;title&quot;: &quot;$:/config/RegisterPluginType/import&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/config/SaveWikiButton/Template&quot;: {
&quot;title&quot;: &quot;$:/config/SaveWikiButton/Template&quot;,
&quot;text&quot;: &quot;$:/core/save/all&quot;
},
&quot;$:/config/SaverFilter&quot;: {
&quot;title&quot;: &quot;$:/config/SaverFilter&quot;,
&quot;text&quot;: &quot;[all[]] -[prefix[$:/HistoryList]] -[prefix[$:/StoryList]] -[status[pending]plugin-type[import]] -[[$:/isEncrypted]] -[[$:/UploadName]] -[prefix[$:/state/]] -[prefix[$:/temp/]]\n&quot;
},
&quot;$:/config/Search/AutoFocus&quot;: {
&quot;title&quot;: &quot;$:/config/Search/AutoFocus&quot;,
&quot;text&quot;: &quot;true&quot;
},
&quot;$:/config/Search/MinLength&quot;: {
&quot;title&quot;: &quot;$:/config/Search/MinLength&quot;,
&quot;text&quot;: &quot;3&quot;
},
&quot;$:/config/SearchResults/Default&quot;: {
&quot;title&quot;: &quot;$:/config/SearchResults/Default&quot;,
&quot;text&quot;: &quot;$:/core/ui/DefaultSearchResultList&quot;
},
&quot;$:/config/Server/ExternalFilters/[all[tiddlers]!is[system]sort[title]]&quot;: {
&quot;title&quot;: &quot;$:/config/Server/ExternalFilters/[all[tiddlers]!is[system]sort[title]]&quot;,
&quot;text&quot;: &quot;yes&quot;
},
&quot;$:/config/ShortcutInfo/add-field&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/add-field&quot;,
&quot;text&quot;: &quot;{{$:/language/EditTemplate/Fields/Add/Button/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/advanced-search&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/advanced-search&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/AdvancedSearch/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/advanced-search-sidebar&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/advanced-search-sidebar&quot;,
&quot;text&quot;: &quot;{{$:/language/Shortcuts/Input/AdvancedSearch/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/bold&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/bold&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Bold/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/cancel-edit-tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/cancel-edit-tiddler&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Cancel/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/change-sidebar-layout&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/change-sidebar-layout&quot;,
&quot;text&quot;: &quot;{{$:/language/Shortcuts/SidebarLayout/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/delete-field&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/delete-field&quot;,
&quot;text&quot;: &quot;{{$:/language/EditTemplate/Field/Remove/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/excise&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/excise&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Excise/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/heading-1&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/heading-1&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Heading1/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/heading-2&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/heading-2&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Heading2/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/heading-3&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/heading-3&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Heading3/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/heading-4&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/heading-4&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Heading4/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/heading-5&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/heading-5&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Heading5/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/heading-6&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/heading-6&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Heading6/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/input-accept&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/input-accept&quot;,
&quot;text&quot;: &quot;{{$:/language/Shortcuts/Input/Accept/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/input-accept-variant&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/input-accept-variant&quot;,
&quot;text&quot;: &quot;{{$:/language/Shortcuts/Input/AcceptVariant/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/input-cancel&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/input-cancel&quot;,
&quot;text&quot;: &quot;{{$:/language/Shortcuts/Input/Cancel/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/input-down&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/input-down&quot;,
&quot;text&quot;: &quot;{{$:/language/Shortcuts/Input/Down/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/input-tab-left&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/input-tab-left&quot;,
&quot;text&quot;: &quot;{{$:/language/Shortcuts/Input/Tab-Left/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/input-tab-right&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/input-tab-right&quot;,
&quot;text&quot;: &quot;{{$:/language/Shortcuts/Input/Tab-Right/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/input-up&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/input-up&quot;,
&quot;text&quot;: &quot;{{$:/language/Shortcuts/Input/Up/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/italic&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/italic&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Italic/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/layout-switcher&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/layout-switcher&quot;,
&quot;text&quot;: &quot;{{$:/language/LayoutSwitcher/Description}}&quot;
},
&quot;$:/config/ShortcutInfo/link&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/link&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Link/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/linkify&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/linkify&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Linkify/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/list-bullet&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/list-bullet&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/ListBullet/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/list-number&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/list-number&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/ListNumber/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/mono-block&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/mono-block&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/MonoBlock/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/mono-line&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/mono-line&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/MonoLine/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/new-image&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/new-image&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/NewImage/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/new-journal&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/new-journal&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/NewJournal/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/new-tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/new-tiddler&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/NewTiddler/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/picture&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/picture&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Picture/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/preview&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/preview&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Preview/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/quote&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/quote&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Quote/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/save-tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/save-tiddler&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Save/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/save-wiki&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/save-wiki&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/SaveWiki/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/sidebar-search&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/sidebar-search&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/SidebarSearch/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/stamp&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/stamp&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Stamp/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/strikethrough&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/strikethrough&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Strikethrough/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/subscript&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/subscript&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Subscript/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/superscript&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/superscript&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Superscript/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/toggle-sidebar&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/toggle-sidebar&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/ToggleSidebar/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/transcludify&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/transcludify&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Transcludify/Hint}}&quot;
},
&quot;$:/config/ShortcutInfo/underline&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/underline&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Underline/Hint}}&quot;
},
&quot;$:/config/SwitcherTargets/layout&quot;: {
&quot;title&quot;: &quot;$:/config/SwitcherTargets/layout&quot;,
&quot;text&quot;: &quot;$:/snippets/LayoutSwitcher&quot;
},
&quot;$:/config/SwitcherTargets/language&quot;: {
&quot;title&quot;: &quot;$:/config/SwitcherTargets/language&quot;,
&quot;text&quot;: &quot;$:/snippets/languageswitcher&quot;
},
&quot;$:/config/SwitcherTargets/palette&quot;: {
&quot;title&quot;: &quot;$:/config/SwitcherTargets/palette&quot;,
&quot;text&quot;: &quot;$:/core/ui/ControlPanel/Palette&quot;
},
&quot;$:/config/SwitcherTargets/theme&quot;: {
&quot;title&quot;: &quot;$:/config/SwitcherTargets/theme&quot;,
&quot;text&quot;: &quot;$:/core/ui/ControlPanel/Theme&quot;
},
&quot;$:/config/SyncFilter&quot;: {
&quot;title&quot;: &quot;$:/config/SyncFilter&quot;,
&quot;text&quot;: &quot;[is[tiddler]] -[[$:/core]] -[[$:/library/sjcl.js]] -[prefix[$:/boot/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/isEncrypted]] -[prefix[$:/status/]] -[prefix[$:/state/]] -[prefix[$:/temp/]]\n&quot;
},
&quot;$:/config/SyncSystemTiddlersFromServer&quot;: {
&quot;title&quot;: &quot;$:/config/SyncSystemTiddlersFromServer&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/config/Tags/MinLength&quot;: {
&quot;title&quot;: &quot;$:/config/Tags/MinLength&quot;,
&quot;text&quot;: &quot;0&quot;
},
&quot;$:/config/TextEditor/EditorHeight/Height&quot;: {
&quot;title&quot;: &quot;$:/config/TextEditor/EditorHeight/Height&quot;,
&quot;text&quot;: &quot;400px&quot;
},
&quot;$:/config/TextEditor/EditorHeight/Mode&quot;: {
&quot;title&quot;: &quot;$:/config/TextEditor/EditorHeight/Mode&quot;,
&quot;text&quot;: &quot;auto&quot;
},
&quot;$:/config/TiddlerInfo/Default&quot;: {
&quot;title&quot;: &quot;$:/config/TiddlerInfo/Default&quot;,
&quot;text&quot;: &quot;$:/core/ui/TiddlerInfo/Fields&quot;
},
&quot;$:/config/TiddlerInfo/Mode&quot;: {
&quot;title&quot;: &quot;$:/config/TiddlerInfo/Mode&quot;,
&quot;text&quot;: &quot;popup&quot;
},
&quot;$:/config/Tiddlers/TitleLinks&quot;: {
&quot;title&quot;: &quot;$:/config/Tiddlers/TitleLinks&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/config/Toolbar/ButtonClass&quot;: {
&quot;title&quot;: &quot;$:/config/Toolbar/ButtonClass&quot;,
&quot;text&quot;: &quot;tc-btn-invisible&quot;
},
&quot;$:/config/Toolbar/Icons&quot;: {
&quot;title&quot;: &quot;$:/config/Toolbar/Icons&quot;,
&quot;text&quot;: &quot;yes&quot;
},
&quot;$:/config/Toolbar/Text&quot;: {
&quot;title&quot;: &quot;$:/config/Toolbar/Text&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close-others&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close-others&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions&quot;,
&quot;text&quot;: &quot;show&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/open-window&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/open-window&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permaview&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permaview&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-others&quot;: {
&quot;title&quot;: &quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-others&quot;,
&quot;text&quot;: &quot;hide&quot;
},
&quot;$:/config/shortcuts-mac/bold&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-mac/bold&quot;,
&quot;text&quot;: &quot;meta-B&quot;
},
&quot;$:/config/shortcuts-mac/input-tab-left&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-mac/input-tab-left&quot;,
&quot;text&quot;: &quot;ctrl-Left&quot;
},
&quot;$:/config/shortcuts-mac/input-tab-right&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-mac/input-tab-right&quot;,
&quot;text&quot;: &quot;ctrl-Right&quot;
},
&quot;$:/config/shortcuts-mac/italic&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-mac/italic&quot;,
&quot;text&quot;: &quot;meta-I&quot;
},
&quot;$:/config/shortcuts-mac/underline&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-mac/underline&quot;,
&quot;text&quot;: &quot;meta-U&quot;
},
&quot;$:/config/shortcuts-mac/new-image&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-mac/new-image&quot;,
&quot;text&quot;: &quot;ctrl-I&quot;
},
&quot;$:/config/shortcuts-mac/new-journal&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-mac/new-journal&quot;,
&quot;text&quot;: &quot;ctrl-J&quot;
},
&quot;$:/config/shortcuts-mac/new-tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-mac/new-tiddler&quot;,
&quot;text&quot;: &quot;ctrl-N&quot;
},
&quot;$:/config/shortcuts-mac/save-wiki&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-mac/save-wiki&quot;,
&quot;text&quot;: &quot;meta-S&quot;
},
&quot;$:/config/shortcuts-not-mac/bold&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-not-mac/bold&quot;,
&quot;text&quot;: &quot;ctrl-B&quot;
},
&quot;$:/config/shortcuts-not-mac/italic&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-not-mac/italic&quot;,
&quot;text&quot;: &quot;ctrl-I&quot;
},
&quot;$:/config/shortcuts-not-mac/underline&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-not-mac/underline&quot;,
&quot;text&quot;: &quot;ctrl-U&quot;
},
&quot;$:/config/shortcuts-not-mac/new-image&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-not-mac/new-image&quot;,
&quot;text&quot;: &quot;alt-I&quot;
},
&quot;$:/config/shortcuts-not-mac/new-journal&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-not-mac/new-journal&quot;,
&quot;text&quot;: &quot;alt-J&quot;
},
&quot;$:/config/shortcuts-not-mac/new-tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts-not-mac/new-tiddler&quot;,
&quot;text&quot;: &quot;alt-N&quot;
},
&quot;$:/config/shortcuts/add-field&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/add-field&quot;,
&quot;text&quot;: &quot;enter&quot;
},
&quot;$:/config/shortcuts/advanced-search&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/advanced-search&quot;,
&quot;text&quot;: &quot;ctrl-shift-A&quot;
},
&quot;$:/config/shortcuts/advanced-search-sidebar&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/advanced-search-sidebar&quot;,
&quot;text&quot;: &quot;alt-Enter&quot;
},
&quot;$:/config/shortcuts/cancel-edit-tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/cancel-edit-tiddler&quot;,
&quot;text&quot;: &quot;escape&quot;
},
&quot;$:/config/shortcuts/change-sidebar-layout&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/change-sidebar-layout&quot;,
&quot;text&quot;: &quot;shift-alt-Down&quot;
},
&quot;$:/config/shortcuts/delete-field&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/delete-field&quot;,
&quot;text&quot;: &quot;shift-alt-D&quot;
},
&quot;$:/config/shortcuts/excise&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/excise&quot;,
&quot;text&quot;: &quot;ctrl-E&quot;
},
&quot;$:/config/shortcuts/sidebar-search&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/sidebar-search&quot;,
&quot;text&quot;: &quot;ctrl-shift-F&quot;
},
&quot;$:/config/shortcuts/heading-1&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/heading-1&quot;,
&quot;text&quot;: &quot;ctrl-1&quot;
},
&quot;$:/config/shortcuts/heading-2&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/heading-2&quot;,
&quot;text&quot;: &quot;ctrl-2&quot;
},
&quot;$:/config/shortcuts/heading-3&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/heading-3&quot;,
&quot;text&quot;: &quot;ctrl-3&quot;
},
&quot;$:/config/shortcuts/heading-4&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/heading-4&quot;,
&quot;text&quot;: &quot;ctrl-4&quot;
},
&quot;$:/config/shortcuts/heading-5&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/heading-5&quot;,
&quot;text&quot;: &quot;ctrl-5&quot;
},
&quot;$:/config/shortcuts/heading-6&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/heading-6&quot;,
&quot;text&quot;: &quot;ctrl-6&quot;
},
&quot;$:/config/shortcuts/input-accept&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/input-accept&quot;,
&quot;text&quot;: &quot;Enter&quot;
},
&quot;$:/config/shortcuts/input-accept-variant&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/input-accept-variant&quot;,
&quot;text&quot;: &quot;ctrl-Enter&quot;
},
&quot;$:/config/shortcuts/input-cancel&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/input-cancel&quot;,
&quot;text&quot;: &quot;Escape&quot;
},
&quot;$:/config/shortcuts/input-down&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/input-down&quot;,
&quot;text&quot;: &quot;Down&quot;
},
&quot;$:/config/shortcuts/input-tab-left&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/input-tab-left&quot;,
&quot;text&quot;: &quot;alt-Left&quot;
},
&quot;$:/config/shortcuts/input-tab-right&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/input-tab-right&quot;,
&quot;text&quot;: &quot;alt-Right&quot;
},
&quot;$:/config/shortcuts/input-up&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/input-up&quot;,
&quot;text&quot;: &quot;Up&quot;
},
&quot;$:/config/shortcuts/layout-switcher&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/layout-switcher&quot;,
&quot;text&quot;: &quot;ctrl-shift-L&quot;
},
&quot;$:/config/shortcuts/link&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/link&quot;,
&quot;text&quot;: &quot;ctrl-L&quot;
},
&quot;$:/config/shortcuts/linkify&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/linkify&quot;,
&quot;text&quot;: &quot;alt-shift-L&quot;
},
&quot;$:/config/shortcuts/list-bullet&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/list-bullet&quot;,
&quot;text&quot;: &quot;ctrl-shift-L&quot;
},
&quot;$:/config/shortcuts/list-number&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/list-number&quot;,
&quot;text&quot;: &quot;ctrl-shift-N&quot;
},
&quot;$:/config/shortcuts/mono-block&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/mono-block&quot;,
&quot;text&quot;: &quot;ctrl-shift-M&quot;
},
&quot;$:/config/shortcuts/mono-line&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/mono-line&quot;,
&quot;text&quot;: &quot;ctrl-M&quot;
},
&quot;$:/config/shortcuts/picture&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/picture&quot;,
&quot;text&quot;: &quot;ctrl-shift-I&quot;
},
&quot;$:/config/shortcuts/preview&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/preview&quot;,
&quot;text&quot;: &quot;alt-P&quot;
},
&quot;$:/config/shortcuts/quote&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/quote&quot;,
&quot;text&quot;: &quot;ctrl-Q&quot;
},
&quot;$:/config/shortcuts/save-tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/save-tiddler&quot;,
&quot;text&quot;: &quot;ctrl+enter&quot;
},
&quot;$:/config/shortcuts/save-wiki&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/save-wiki&quot;,
&quot;text&quot;: &quot;ctrl-S&quot;
},
&quot;$:/config/shortcuts/stamp&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/stamp&quot;,
&quot;text&quot;: &quot;ctrl-S&quot;
},
&quot;$:/config/shortcuts/strikethrough&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/strikethrough&quot;,
&quot;text&quot;: &quot;ctrl-T&quot;
},
&quot;$:/config/shortcuts/subscript&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/subscript&quot;,
&quot;text&quot;: &quot;ctrl-shift-B&quot;
},
&quot;$:/config/shortcuts/superscript&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/superscript&quot;,
&quot;text&quot;: &quot;ctrl-shift-P&quot;
},
&quot;$:/config/shortcuts/toggle-sidebar&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/toggle-sidebar&quot;,
&quot;text&quot;: &quot;alt-shift-S&quot;
},
&quot;$:/config/shortcuts/transcludify&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/transcludify&quot;,
&quot;text&quot;: &quot;alt-shift-T&quot;
},
&quot;$:/config/ui/EditTemplate&quot;: {
&quot;title&quot;: &quot;$:/config/ui/EditTemplate&quot;,
&quot;text&quot;: &quot;$:/core/ui/EditTemplate&quot;
},
&quot;$:/config/ui/ViewTemplate&quot;: {
&quot;title&quot;: &quot;$:/config/ui/ViewTemplate&quot;,
&quot;text&quot;: &quot;$:/core/ui/ViewTemplate&quot;
},
&quot;$:/config/WikiParserRules/Inline/wikilink&quot;: {
&quot;title&quot;: &quot;$:/config/WikiParserRules/Inline/wikilink&quot;,
&quot;text&quot;: &quot;enable&quot;
},
&quot;$:/snippets/currpalettepreview&quot;: {
&quot;title&quot;: &quot;$:/snippets/currpalettepreview&quot;,
&quot;text&quot;: &quot;\\define resolve-colour(macrocall)\n\\import $:/core/macros/utils\n\\whitespace trim\n&lt;$wikify name=\&quot;name\&quot; text=\&quot;\&quot;\&quot;$macrocall$\&quot;\&quot;\&quot;&gt;\n&lt;&lt;name&gt;&gt;\n&lt;/$wikify&gt;\n\\end\n\\define swatchStyle()\nbackground-color: $(swatchColour)$;\n\\end\n\\define swatch-inner()\n&lt;$set name=\&quot;swatchColour\&quot; value={{##$(colourResolved)$}}&gt;\n&lt;$list filter=\&quot;[&lt;swatchColour&gt;!prefix[&lt;&lt;colour ]!suffix[&gt;&gt;]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;div class=\&quot;tc-swatch\&quot; style=&lt;&lt;swatchStyle&gt;&gt; title=&lt;&lt;swatchTitle&gt;&gt;/&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;swatchColour&gt;prefix[&lt;&lt;colour ]suffix[&gt;&gt;]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$wikify name=\&quot;colourResolved\&quot; text=\&quot;\&quot;\&quot;&lt;$macrocall $name=\&quot;resolve-colour\&quot; macrocall=&lt;&lt;swatchColour&gt;&gt;/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;&lt;swatch-inner&gt;&gt;\n&lt;/$wikify&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n\\end\n\\define swatch()\n&lt;$set name=\&quot;swatchColour\&quot; value={{##$(colour)$}}&gt;\n&lt;$set name=\&quot;swatchTitle\&quot; value=&lt;&lt;colour&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;swatchColour&gt;!prefix[&lt;&lt;colour ]!suffix[&gt;&gt;]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;div class=\&quot;tc-swatch\&quot; style=&lt;&lt;swatchStyle&gt;&gt; title=&lt;&lt;swatchTitle&gt;&gt;/&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;swatchColour&gt;prefix[&lt;&lt;colour ]suffix[&gt;&gt;]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$wikify name=\&quot;colourResolved\&quot; text=\&quot;\&quot;\&quot;&lt;$macrocall $name=\&quot;resolve-colour\&quot; macrocall=&lt;&lt;swatchColour&gt;&gt;/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;&lt;swatch-inner&gt;&gt;\n&lt;/$wikify&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n\\end\n&lt;div class=\&quot;tc-swatches-horiz\&quot;&gt;&lt;$list filter=\&quot;\nforeground\nbackground\nmuted-foreground\nprimary\npage-background\ntab-background\ntiddler-info-background\n\&quot; variable=\&quot;colour\&quot;&gt;&lt;&lt;swatch&gt;&gt;&lt;/$list&gt;&lt;/div&gt;\n&quot;
},
&quot;$:/snippets/download-wiki-button&quot;: {
&quot;title&quot;: &quot;$:/snippets/download-wiki-button&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Tools/Download/\n&lt;$button class=\&quot;tc-btn-big-green\&quot;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-download-file\&quot; $param=\&quot;$:/core/save/all\&quot; filename=\&quot;index.html\&quot;/&gt;\n&lt;&lt;lingo Full/Caption&gt;&gt; {{$:/core/images/save-button}}\n&lt;/$button&gt;&quot;
},
&quot;$:/language&quot;: {
&quot;title&quot;: &quot;$:/language&quot;,
&quot;text&quot;: &quot;$:/languages/en-GB&quot;
},
&quot;$:/snippets/languageswitcher&quot;: {
&quot;title&quot;: &quot;$:/snippets/languageswitcher&quot;,
&quot;text&quot;: &quot;\\define flag-title()\n$(languagePluginTitle)$/icon\n\\end\n\n&lt;$linkcatcher to=\&quot;$:/language\&quot;&gt;\n&lt;div class=\&quot;tc-chooser tc-language-chooser\&quot;&gt;\n&lt;$list filter=\&quot;[[$:/languages/en-GB]] [plugin-type[language]sort[description]]\&quot;&gt;\n&lt;$set name=\&quot;cls\&quot; filter=\&quot;[all[current]field:title{$:/language}]\&quot; value=\&quot;tc-chooser-item tc-chosen\&quot; emptyValue=\&quot;tc-chooser-item\&quot;&gt;&lt;div class=&lt;&lt;cls&gt;&gt;&gt;\n&lt;$link&gt;\n&lt;span class=\&quot;tc-image-button\&quot;&gt;\n&lt;$set name=\&quot;languagePluginTitle\&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;$transclude subtiddler=&lt;&lt;flag-title&gt;&gt;&gt;\n&lt;$list filter=\&quot;[all[current]field:title[$:/languages/en-GB]]\&quot;&gt;\n&lt;$transclude tiddler=\&quot;$:/languages/en-GB/icon\&quot;/&gt;\n&lt;/$list&gt;\n&lt;/$transclude&gt;\n&lt;/$set&gt;\n&lt;/span&gt;\n&lt;$view field=\&quot;description\&quot;&gt;\n&lt;$view field=\&quot;name\&quot;&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n&lt;/$view&gt;\n&lt;/$view&gt;\n&lt;/$link&gt;\n&lt;/div&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$linkcatcher&gt;&quot;
},
&quot;$:/core/macros/CSS&quot;: {
&quot;title&quot;: &quot;$:/core/macros/CSS&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define colour(name)\n&lt;$transclude tiddler={{$:/palette}} index=\&quot;$name$\&quot;&gt;&lt;$transclude tiddler=\&quot;$:/palettes/Vanilla\&quot; index=\&quot;$name$\&quot;&gt;&lt;$transclude tiddler=\&quot;$:/config/DefaultColourMappings/$name$\&quot;/&gt;&lt;/$transclude&gt;&lt;/$transclude&gt;\n\\end\n\n\\define color(name)\n&lt;&lt;colour $name$&gt;&gt;\n\\end\n\n\\define box-shadow(shadow)\n``\n -webkit-box-shadow: $shadow$;\n -moz-box-shadow: $shadow$;\n box-shadow: $shadow$;\n``\n\\end\n\n\\define filter(filter)\n``\n -webkit-filter: $filter$;\n -moz-filter: $filter$;\n filter: $filter$;\n``\n\\end\n\n\\define transition(transition)\n``\n -webkit-transition: $transition$;\n -moz-transition: $transition$;\n transition: $transition$;\n``\n\\end\n\n\\define transform-origin(origin)\n``\n -webkit-transform-origin: $origin$;\n -moz-transform-origin: $origin$;\n transform-origin: $origin$;\n``\n\\end\n\n\\define background-linear-gradient(gradient)\n``\nbackground-image: linear-gradient($gradient$);\nbackground-image: -o-linear-gradient($gradient$);\nbackground-image: -moz-linear-gradient($gradient$);\nbackground-image: -webkit-linear-gradient($gradient$);\nbackground-image: -ms-linear-gradient($gradient$);\n``\n\\end\n\n\\define column-count(columns)\n``\n-moz-column-count: $columns$;\n-webkit-column-count: $columns$;\ncolumn-count: $columns$;\n``\n\\end\n\n\\define datauri(title)\n&lt;$macrocall $name=\&quot;makedatauri\&quot; type={{$title$!!type}} text={{$title$}} _canonical_uri={{$title$!!_canonical_uri}}/&gt;\n\\end\n\n\\define if-sidebar(text)\n&lt;$reveal state=\&quot;$:/state/sidebar\&quot; type=\&quot;match\&quot; text=\&quot;yes\&quot; default=\&quot;yes\&quot;&gt;$text$&lt;/$reveal&gt;\n\\end\n\n\\define if-no-sidebar(text)\n&lt;$reveal state=\&quot;$:/state/sidebar\&quot; type=\&quot;nomatch\&quot; text=\&quot;yes\&quot; default=\&quot;yes\&quot;&gt;$text$&lt;/$reveal&gt;\n\\end\n\n\\define if-background-attachment(text)\n&lt;$reveal state=\&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimage\&quot; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;$text$&lt;/$reveal&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/colour-picker&quot;: {
&quot;title&quot;: &quot;$:/core/macros/colour-picker&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define colour-picker-update-recent()\n&lt;$action-listops\n\t$tiddler=\&quot;$:/config/ColourPicker/Recent\&quot;\n\t$subfilter=\&quot;$(colour-picker-value)$ [list[$:/config/ColourPicker/Recent]remove[$(colour-picker-value)$]] +[limit[8]]\&quot;\n/&gt;\n\\end\n\n\\define colour-picker-inner(actions)\n&lt;$button tag=\&quot;a\&quot; tooltip=\&quot;\&quot;\&quot;$(colour-picker-value)$\&quot;\&quot;\&quot;&gt;\n\n$(colour-picker-update-recent)$\n\n$actions$\n\n&lt;span style=\&quot;display:inline-block; background-color: $(colour-picker-value)$; width: 100%; height: 100%; border-radius: 50%;\&quot;/&gt;\n\n&lt;/$button&gt;\n\\end\n\n\\define colour-picker-recent-inner(actions)\n&lt;$set name=\&quot;colour-picker-value\&quot; value=\&quot;$(recentColour)$\&quot;&gt;\n&lt;$macrocall $name=\&quot;colour-picker-inner\&quot; actions=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;/&gt;\n&lt;/$set&gt;\n\\end\n\n\\define colour-picker-recent(actions)\n{{$:/language/ColourPicker/Recent}} &lt;$list filter=\&quot;[list[$:/config/ColourPicker/Recent]]\&quot; variable=\&quot;recentColour\&quot;&gt;\n&lt;$macrocall $name=\&quot;colour-picker-recent-inner\&quot; actions=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;/&gt;&lt;/$list&gt;\n\\end\n\n\\define colour-picker(actions)\n&lt;div class=\&quot;tc-colour-chooser\&quot;&gt;\n\n&lt;$macrocall $name=\&quot;colour-picker-recent\&quot; actions=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;/&gt;\n\n---\n\n&lt;$list filter=\&quot;LightPink Pink Crimson LavenderBlush PaleVioletRed HotPink DeepPink MediumVioletRed Orchid Thistle Plum Violet Magenta Fuchsia DarkMagenta Purple MediumOrchid DarkViolet DarkOrchid Indigo BlueViolet MediumPurple MediumSlateBlue SlateBlue DarkSlateBlue Lavender GhostWhite Blue MediumBlue MidnightBlue DarkBlue Navy RoyalBlue CornflowerBlue LightSteelBlue LightSlateGrey SlateGrey DodgerBlue AliceBlue SteelBlue LightSkyBlue SkyBlue DeepSkyBlue LightBlue PowderBlue CadetBlue Azure LightCyan PaleTurquoise Cyan Aqua DarkTurquoise DarkSlateGrey DarkCyan Teal MediumTurquoise LightSeaGreen Turquoise Aquamarine MediumAquamarine MediumSpringGreen MintCream SpringGreen MediumSeaGreen SeaGreen Honeydew LightGreen PaleGreen DarkSeaGreen LimeGreen Lime ForestGreen Green DarkGreen Chartreuse LawnGreen GreenYellow DarkOliveGreen YellowGreen OliveDrab Beige LightGoldenrodYellow Ivory LightYellow Yellow Olive DarkKhaki LemonChiffon PaleGoldenrod Khaki Gold Cornsilk Goldenrod DarkGoldenrod FloralWhite OldLace Wheat Moccasin Orange PapayaWhip BlanchedAlmond NavajoWhite AntiqueWhite Tan BurlyWood Bisque DarkOrange Linen Peru PeachPuff SandyBrown Chocolate SaddleBrown Seashell Sienna LightSalmon Coral OrangeRed DarkSalmon Tomato MistyRose Salmon Snow LightCoral RosyBrown IndianRed Red Brown FireBrick DarkRed Maroon White WhiteSmoke Gainsboro LightGrey Silver DarkGrey Grey DimGrey Black\&quot; variable=\&quot;colour-picker-value\&quot;&gt;\n&lt;$macrocall $name=\&quot;colour-picker-inner\&quot; actions=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;/&gt;\n&lt;/$list&gt;\n\n---\n\n&lt;$edit-text tiddler=\&quot;$:/config/ColourPicker/New\&quot; tag=\&quot;input\&quot; default=\&quot;\&quot; placeholder=\&quot;\&quot;/&gt;\n&lt;$edit-text tiddler=\&quot;$:/config/ColourPicker/New\&quot; type=\&quot;color\&quot; tag=\&quot;input\&quot;/&gt;\n&lt;$set name=\&quot;colour-picker-value\&quot; value={{$:/config/ColourPicker/New}}&gt;\n&lt;$macrocall $name=\&quot;colour-picker-inner\&quot; actions=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;/&gt;\n&lt;/$set&gt;\n\n&lt;/div&gt;\n\n\\end\n&quot;
},
&quot;$:/core/macros/copy-to-clipboard&quot;: {
&quot;title&quot;: &quot;$:/core/macros/copy-to-clipboard&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define copy-to-clipboard(src,class:\&quot;tc-btn-invisible\&quot;,style)\n&lt;$button class=&lt;&lt;__class__&gt;&gt; style=&lt;&lt;__style__&gt;&gt; message=\&quot;tm-copy-to-clipboard\&quot; param=&lt;&lt;__src__&gt;&gt; tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}&gt;\n{{$:/core/images/copy-clipboard}} &lt;$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/&gt;\n&lt;/$button&gt;\n\\end\n\n\\define copy-to-clipboard-above-right(src,class:\&quot;tc-btn-invisible\&quot;,style)\n&lt;div style=\&quot;position: relative;\&quot;&gt;\n&lt;div style=\&quot;position: absolute; bottom: 0; right: 0;\&quot;&gt;\n&lt;$macrocall $name=\&quot;copy-to-clipboard\&quot; src=&lt;&lt;__src__&gt;&gt; class=&lt;&lt;__class__&gt;&gt; style=&lt;&lt;__style__&gt;&gt;/&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n\\end\n\n&quot;
},
&quot;$:/core/macros/diff&quot;: {
&quot;title&quot;: &quot;$:/core/macros/diff&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define compareTiddlerText(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle)\n&lt;$set name=\&quot;source\&quot; tiddler=&lt;&lt;__sourceTiddlerTitle__&gt;&gt; subtiddler=&lt;&lt;__sourceSubTiddlerTitle__&gt;&gt;&gt;\n&lt;$set name=\&quot;dest\&quot; tiddler=&lt;&lt;__destTiddlerTitle__&gt;&gt; subtiddler=&lt;&lt;__destSubTiddlerTitle__&gt;&gt;&gt;\n&lt;$diff-text source=&lt;&lt;source&gt;&gt; dest=&lt;&lt;dest&gt;&gt;/&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n\\end\n\n\\define compareTiddlers(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle,exclude)\n&lt;table class=\&quot;tc-diff-tiddlers\&quot;&gt;\n&lt;tbody&gt;\n&lt;$set name=\&quot;sourceFields\&quot; filter=\&quot;[&lt;__sourceTiddlerTitle__&gt;fields[]sort[]]\&quot;&gt;\n&lt;$set name=\&quot;destFields\&quot; filter=\&quot;[&lt;__destSubTiddlerTitle__&gt;subtiddlerfields&lt;__destTiddlerTitle__&gt;sort[]]\&quot;&gt;\n&lt;$list filter=\&quot;[enlist&lt;sourceFields&gt;] [enlist&lt;destFields&gt;] -[enlist&lt;__exclude__&gt;] +[sort[]]\&quot; variable=\&quot;fieldName\&quot;&gt;\n&lt;tr&gt;\n&lt;th&gt;\n&lt;$text text=&lt;&lt;fieldName&gt;&gt;/&gt; \n&lt;/th&gt;\n&lt;td&gt;\n&lt;$set name=\&quot;source\&quot; tiddler=&lt;&lt;__sourceTiddlerTitle__&gt;&gt; subtiddler=&lt;&lt;__sourceSubTiddlerTitle__&gt;&gt; field=&lt;&lt;fieldName&gt;&gt;&gt;\n&lt;$set name=\&quot;dest\&quot; tiddler=&lt;&lt;__destTiddlerTitle__&gt;&gt; subtiddler=&lt;&lt;__destSubTiddlerTitle__&gt;&gt; field=&lt;&lt;fieldName&gt;&gt;&gt;\n&lt;$diff-text source=&lt;&lt;source&gt;&gt; dest=&lt;&lt;dest&gt;&gt;&gt;\n&lt;/$diff-text&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/dumpvariables&quot;: {
&quot;title&quot;: &quot;$:/core/macros/dumpvariables&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define dumpvariables()\n&lt;ul&gt;\n&lt;$list filter=\&quot;[variables[]]\&quot; variable=\&quot;varname\&quot;&gt;\n&lt;li&gt;\n&lt;strong&gt;&lt;code&gt;&lt;$text text=&lt;&lt;varname&gt;&gt;/&gt;&lt;/code&gt;&lt;/strong&gt;:&lt;br/&gt;\n&lt;$codeblock code={{{ [&lt;varname&gt;getvariable[]] }}}/&gt;\n&lt;/li&gt;\n&lt;/$list&gt;\n&lt;/ul&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/export&quot;: {
&quot;title&quot;: &quot;$:/core/macros/export&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define exportButtonFilename(baseFilename)\n$baseFilename$$(extension)$\n\\end\n\n\\define exportButton(exportFilter:\&quot;[!is[system]sort[title]]\&quot;,lingoBase,baseFilename:\&quot;tiddlers\&quot;)\n&lt;span class=\&quot;tc-popup-keep\&quot;&gt;&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/export\&quot;&gt;&gt; tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=\&quot;tc-selected\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]\&quot;&gt;\n{{$:/core/images/export-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]\&quot;&gt;\n&lt;span class=\&quot;tc-btn-text\&quot;&gt;&lt;$text text={{$lingoBase$Caption}}/&gt;&lt;/span&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;&lt;/span&gt;&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/export\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;below\&quot; animate=\&quot;yes\&quot;&gt;\n&lt;div class=\&quot;tc-drop-down\&quot;&gt;\n&lt;$set name=\&quot;count\&quot; value={{{ [subfilter&lt;__exportFilter__&gt;count[]] }}}&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/Exporter]]\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;currentTiddler&gt;has[condition]subfilter{!!condition}limit[1]] ~[&lt;currentTiddler&gt;!has[condition]then[true]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$set name=\&quot;extension\&quot; value={{!!extension}}&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-download-file\&quot; $param=&lt;&lt;currentTiddler&gt;&gt; exportFilter=&lt;&lt;__exportFilter__&gt;&gt; filename=&lt;&lt;exportButtonFilename \&quot;\&quot;\&quot;$baseFilename$\&quot;\&quot;\&quot;&gt;&gt;/&gt;\n&lt;$action-deletetiddler $tiddler=&lt;&lt;qualify \&quot;$:/state/popup/export\&quot;&gt;&gt;/&gt;\n&lt;$transclude field=\&quot;description\&quot;/&gt;\n&lt;/$button&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/image-picker&quot;: {
&quot;title&quot;: &quot;$:/core/macros/image-picker&quot;,
&quot;created&quot;: &quot;20170715180840889&quot;,
&quot;modified&quot;: &quot;20170715180914005&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;type&quot;: &quot;text/vnd.tiddlywiki&quot;,
&quot;text&quot;: &quot;\\define image-picker-thumbnail(actions)\n&lt;$button tag=\&quot;a\&quot; tooltip=\&quot;\&quot;\&quot;$(imageTitle)$\&quot;\&quot;\&quot;&gt;\n$actions$\n&lt;$transclude tiddler=&lt;&lt;imageTitle&gt;&gt;/&gt;\n&lt;/$button&gt;\n\\end\n\n\\define image-picker-list(filter,actions)\n&lt;$list filter=\&quot;\&quot;\&quot;$filter$\&quot;\&quot;\&quot; variable=\&quot;imageTitle\&quot;&gt;\n&lt;$macrocall $name=\&quot;image-picker-thumbnail\&quot; actions=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;/&gt;\n&lt;/$list&gt;\n\\end\n\n\\define image-picker(actions,filter:\&quot;[all[shadows+tiddlers]is[image]] -[type[application/pdf]] +[!has[draft.of]$subfilter$sort[title]]\&quot;,subfilter:\&quot;\&quot;)\n&lt;div class=\&quot;tc-image-chooser\&quot;&gt;\n&lt;$vars state-system=&lt;&lt;qualify \&quot;$:/state/image-picker/system\&quot;&gt;&gt;&gt;\n&lt;$checkbox tiddler=&lt;&lt;state-system&gt;&gt; field=\&quot;text\&quot; checked=\&quot;show\&quot; unchecked=\&quot;hide\&quot; default=\&quot;hide\&quot;&gt;\n{{$:/language/SystemTiddlers/Include/Prompt}}\n&lt;/$checkbox&gt;\n&lt;$reveal state=&lt;&lt;state-system&gt;&gt; type=\&quot;match\&quot; text=\&quot;hide\&quot; default=\&quot;hide\&quot; tag=\&quot;div\&quot;&gt;\n&lt;$macrocall $name=\&quot;image-picker-list\&quot; filter=\&quot;\&quot;\&quot;$filter$ +[!is[system]]\&quot;\&quot;\&quot; actions=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;/&gt;\n&lt;/$reveal&gt;\n&lt;$reveal state=&lt;&lt;state-system&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;hide\&quot; default=\&quot;hide\&quot; tag=\&quot;div\&quot;&gt;\n&lt;$macrocall $name=\&quot;image-picker-list\&quot; filter=\&quot;\&quot;\&quot;$filter$\&quot;\&quot;\&quot; actions=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;/&gt;\n&lt;/$reveal&gt;\n&lt;/$vars&gt;\n&lt;/div&gt;\n\\end\n\n\\define image-picker-include-tagged-images(actions)\n&lt;$macrocall $name=\&quot;image-picker\&quot; filter=\&quot;[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[!has[draft.of]sort[title]]\&quot; actions=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;/&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/keyboard-driven-input&quot;: {
&quot;title&quot;: &quot;$:/core/macros/keyboard-driven-input&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define change-input-tab(stateTitle,tag,beforeafter,defaultState,actions)\n&lt;$set name=\&quot;tabsList\&quot; filter=\&quot;[all[shadows+tiddlers]tag&lt;__tag__&gt;!has[draft.of]]\&quot;&gt;\n&lt;$vars currentState={{{ [&lt;__stateTitle__&gt;!is[missing]get[text]] ~[&lt;__defaultState__&gt;] }}} firstTab={{{ [enlist&lt;tabsList&gt;nth[1]] }}} lastTab={{{ [enlist&lt;tabsList&gt;last[]] }}}&gt;\n&lt;$set name=\&quot;nextTab\&quot; value={{{ [all[shadows+tiddlers]tag&lt;__tag__&gt;!has[draft.of]$beforeafter$&lt;currentState&gt;] ~[[$beforeafter$]removeprefix[after]suffix[]addprefix&lt;firstTab&gt;] ~[[$beforeafter$]removeprefix[before]suffix[]addprefix&lt;lastTab&gt;] }}}&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;__stateTitle__&gt;&gt; text=&lt;&lt;nextTab&gt;&gt;/&gt;\n$actions$\n&lt;/$set&gt;\n&lt;/$vars&gt;\n&lt;/$set&gt;\n\\end\n\n\\define keyboard-input-actions()\n&lt;$list filter=\&quot;[&lt;__index__&gt;match[]]\&quot;&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;__storeTitle__&gt;&gt; text={{{ [&lt;__tiddler__&gt;get&lt;__field__&gt;] }}}/&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;__index__&gt;!match[]]\&quot;&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;__storeTitle__&gt;&gt; text={{{ [&lt;__tiddler__&gt;getindex&lt;__index__&gt;] }}}/&gt;\n&lt;/$list&gt;\n\\end\n\n\\define input-next-actions-inner()\n&lt;$list filter=\&quot;[&lt;nextItem&gt;minlength[1]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;__selectionStateTitle__&gt;&gt; text=&lt;&lt;nextItem&gt;&gt;/&gt;\n&lt;$list filter=\&quot;[&lt;__index__&gt;match[]]\&quot;&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;__tiddler__&gt;&gt; $field=&lt;&lt;__field__&gt;&gt; $value={{{ [&lt;nextItem&gt;] +[splitregexp[(?:.(?!-))+$]] }}}/&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;__index__&gt;!match[]]\&quot;&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;__tiddler__&gt;&gt; $index=&lt;&lt;__index__&gt;&gt; $value={{{ [&lt;nextItem&gt;] +[splitregexp[(?:.(?!-))+$]] }}}/&gt;\n&lt;/$list&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;__refreshTitle__&gt;&gt; text=\&quot;yes\&quot;/&gt;\n&lt;/$list&gt;\n\\end\n\n\\define input-next-actions(afterOrBefore:\&quot;after\&quot;,reverse:\&quot;\&quot;)\n&lt;$list filter=\&quot;[&lt;__storeTitle__&gt;get[text]minlength&lt;__filterMinLength__&gt;] [&lt;__filterMinLength__&gt;match[0]] +[limit[1]]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$vars userInput={{{ [&lt;__storeTitle__&gt;get[text]] }}} selectedItem={{{ [&lt;__selectionStateTitle__&gt;get[text]] }}}&gt;\n&lt;$set name=\&quot;configTiddler\&quot; value={{{ [subfilter&lt;__configTiddlerFilter__&gt;] }}}&gt;\n&lt;$vars primaryListFilter={{{ [&lt;configTiddler&gt;get&lt;__firstSearchFilterField__&gt;] }}} secondaryListFilter={{{ [&lt;configTiddler&gt;get&lt;__secondSearchFilterField__&gt;] }}}&gt;\n&lt;$set name=\&quot;filteredList\&quot; filter=\&quot;[subfilter&lt;primaryListFilter&gt;addsuffix[-primaryList]] =[subfilter&lt;secondaryListFilter&gt;addsuffix[-secondaryList]]\&quot;&gt;\n&lt;$vars nextItem={{{ [enlist&lt;filteredList&gt;$afterOrBefore$&lt;selectedItem&gt;] ~[enlist&lt;filteredList&gt;$reverse$nth[1]] }}} firstItem={{{ [enlist&lt;filteredList&gt;nth[1]] }}} lastItem={{{ [enlist&lt;filteredList&gt;last[]] }}}&gt;\n&lt;$list filter=\&quot;[&lt;selectedItem&gt;match&lt;firstItem&gt;!match&lt;lastItem&gt;]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$set name=\&quot;nextItem\&quot; value={{{ [[$afterOrBefore$]match[before]then&lt;userInput&gt;addsuffix[-userInput]] ~[&lt;nextItem&gt;] }}}&gt;\n&lt;&lt;input-next-actions-inner&gt;&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;selectedItem&gt;match&lt;lastItem&gt;!match&lt;firstItem&gt;]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$set name=\&quot;nextItem\&quot; value={{{ [[$afterOrBefore$]match[after]then&lt;userInput&gt;addsuffix[-userInput]] ~[&lt;nextItem&gt;] }}}&gt;\n&lt;&lt;input-next-actions-inner&gt;&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;selectedItem&gt;match&lt;firstItem&gt;match&lt;lastItem&gt;]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;$set name=\&quot;nextItem\&quot; value={{{ [&lt;userInput&gt;addsuffix[-userInput]] }}}&gt;\n&lt;&lt;input-next-actions-inner&gt;&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;selectedItem&gt;!match&lt;firstItem&gt;!match&lt;lastItem&gt;]\&quot; variable=\&quot;ignore\&quot;&gt;\n&lt;&lt;input-next-actions-inner&gt;&gt;\n&lt;/$list&gt;\n&lt;/$vars&gt;\n&lt;/$set&gt;\n&lt;/$vars&gt;\n&lt;/$set&gt;\n&lt;/$vars&gt;\n&lt;/$list&gt;\n\\end\n\n\\define keyboard-driven-input(tiddler,storeTitle,field:\&quot;text\&quot;,index:\&quot;\&quot;,tag:\&quot;input\&quot;,type,focus:\&quot;\&quot;,inputAcceptActions,inputAcceptVariantActions,inputCancelActions,placeholder:\&quot;\&quot;,default:\&quot;\&quot;,class,focusPopup,rows,minHeight,tabindex,size,autoHeight,filterMinLength:\&quot;0\&quot;,refreshTitle,selectionStateTitle,cancelPopups:\&quot;\&quot;,configTiddlerFilter,firstSearchFilterField:\&quot;first-search-filter\&quot;,secondSearchFilterField:\&quot;second-search-filter\&quot;)\n\\whitespace trim\n&lt;$keyboard key=\&quot;((input-accept))\&quot; actions=&lt;&lt;__inputAcceptActions__&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((input-accept-variant))\&quot; actions=&lt;&lt;__inputAcceptVariantActions__&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((input-up))\&quot; actions=&lt;&lt;input-next-actions \&quot;before\&quot; \&quot;reverse[]\&quot;&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((input-down))\&quot; actions=&lt;&lt;input-next-actions&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((input-cancel))\&quot; actions=&lt;&lt;__inputCancelActions__&gt;&gt;&gt;\n&lt;$edit-text tiddler=&lt;&lt;__tiddler__&gt;&gt; field=&lt;&lt;__field__&gt;&gt; index=&lt;&lt;__index__&gt;&gt; \n\t\tinputActions=&lt;&lt;keyboard-input-actions&gt;&gt; tag=&lt;&lt;__tag__&gt;&gt; class=&lt;&lt;__class__&gt;&gt; \n\t\tplaceholder=&lt;&lt;__placeholder__&gt;&gt; default=&lt;&lt;__default__&gt;&gt; focusPopup=&lt;&lt;__focusPopup__&gt;&gt; \n\t\tfocus=&lt;&lt;__focus__&gt;&gt; type=&lt;&lt;__type__&gt;&gt; rows=&lt;&lt;__rows__&gt;&gt; minHeight=&lt;&lt;__minHeight__&gt;&gt; \n\t\ttabindex=&lt;&lt;__tabindex__&gt;&gt; size=&lt;&lt;__size__&gt;&gt; autoHeight=&lt;&lt;__autoHeight__&gt;&gt; \n\t\trefreshTitle=&lt;&lt;__refreshTitle__&gt;&gt; cancelPopups=&lt;&lt;__cancelPopups__&gt;&gt;/&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n&lt;/$keyboard&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/lingo&quot;: {
&quot;title&quot;: &quot;$:/core/macros/lingo&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define lingo-base()\n$:/language/\n\\end\n\n\\define lingo(title)\n{{$(lingo-base)$$title$}}\n\\end\n&quot;
},
&quot;$:/core/macros/list&quot;: {
&quot;title&quot;: &quot;$:/core/macros/list&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define list-links(filter,type:\&quot;ul\&quot;,subtype:\&quot;li\&quot;,class:\&quot;\&quot;,emptyMessage)\n\\whitespace trim\n&lt;$type$ class=\&quot;$class$\&quot;&gt;\n&lt;$list filter=\&quot;$filter$\&quot; emptyMessage=&lt;&lt;__emptyMessage__&gt;&gt;&gt;\n&lt;$subtype$&gt;\n&lt;$link to={{!!title}}&gt;\n&lt;$transclude field=\&quot;caption\&quot;&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n&lt;/$transclude&gt;\n&lt;/$link&gt;\n&lt;/$subtype$&gt;\n&lt;/$list&gt;\n&lt;/$type$&gt;\n\\end\n\n\\define list-links-draggable-drop-actions()\n&lt;$action-listops $tiddler=&lt;&lt;targetTiddler&gt;&gt; $field=&lt;&lt;targetField&gt;&gt; $subfilter=\&quot;+[insertbefore:currentTiddler&lt;actionTiddler&gt;]\&quot;/&gt;\n\\end\n\n\\define list-links-draggable(tiddler,field:\&quot;list\&quot;,type:\&quot;ul\&quot;,subtype:\&quot;li\&quot;,class:\&quot;\&quot;,itemTemplate)\n\\whitespace trim\n&lt;span class=\&quot;tc-links-draggable-list\&quot;&gt;\n&lt;$vars targetTiddler=\&quot;\&quot;\&quot;$tiddler$\&quot;\&quot;\&quot; targetField=\&quot;\&quot;\&quot;$field$\&quot;\&quot;\&quot;&gt;\n&lt;$type$ class=\&quot;$class$\&quot;&gt;\n&lt;$list filter=\&quot;[list[$tiddler$!!$field$]]\&quot;&gt;\n&lt;$droppable actions=&lt;&lt;list-links-draggable-drop-actions&gt;&gt; tag=\&quot;\&quot;\&quot;$subtype$\&quot;\&quot;\&quot; enable=&lt;&lt;tv-enable-drag-and-drop&gt;&gt;&gt;\n&lt;div class=\&quot;tc-droppable-placeholder\&quot;/&gt;\n&lt;div&gt;\n&lt;$transclude tiddler=\&quot;\&quot;\&quot;$itemTemplate$\&quot;\&quot;\&quot;&gt;\n&lt;$link to={{!!title}}&gt;\n&lt;$transclude field=\&quot;caption\&quot;&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n&lt;/$transclude&gt;\n&lt;/$link&gt;\n&lt;/$transclude&gt;\n&lt;/div&gt;\n&lt;/$droppable&gt;\n&lt;/$list&gt;\n&lt;$tiddler tiddler=\&quot;\&quot;&gt;\n&lt;$droppable actions=&lt;&lt;list-links-draggable-drop-actions&gt;&gt; tag=\&quot;div\&quot; enable=&lt;&lt;tv-enable-drag-and-drop&gt;&gt;&gt;\n&lt;div class=\&quot;tc-droppable-placeholder\&quot;&gt;\n{{$:/core/images/blank}}\n&lt;/div&gt;\n&lt;div style=\&quot;height:0.5em;\&quot;/&gt;\n&lt;/$droppable&gt;\n&lt;/$tiddler&gt;\n&lt;/$type$&gt;\n&lt;/$vars&gt;\n&lt;/span&gt;\n\\end\n\n\\define list-tagged-draggable-drop-actions(tag)\n&lt;!-- Save the current ordering of the tiddlers with this tag --&gt;\n&lt;$set name=\&quot;order\&quot; filter=\&quot;[&lt;__tag__&gt;tagging[]]\&quot;&gt;\n&lt;!-- Remove any list-after or list-before fields from the tiddlers with this tag --&gt;\n&lt;$list filter=\&quot;[&lt;__tag__&gt;tagging[]]\&quot;&gt;\n&lt;$action-deletefield $field=\&quot;list-before\&quot;/&gt;\n&lt;$action-deletefield $field=\&quot;list-after\&quot;/&gt;\n&lt;/$list&gt;\n&lt;!-- Save the new order to the Tag Tiddler --&gt;\n&lt;$action-listops $tiddler=&lt;&lt;__tag__&gt;&gt; $field=\&quot;list\&quot; $filter=\&quot;+[enlist&lt;order&gt;] +[insertbefore:currentTiddler&lt;actionTiddler&gt;]\&quot;/&gt;\n&lt;!-- Make sure the newly added item has the right tag --&gt;\n&lt;!-- Removing this line makes dragging tags within the dropdown work as intended --&gt;\n&lt;!--&lt;$action-listops $tiddler=&lt;&lt;actionTiddler&gt;&gt; $tags=&lt;&lt;__tag__&gt;&gt;/&gt;--&gt;\n&lt;!-- Using the following 5 lines as replacement makes dragging titles from outside into the dropdown apply the tag --&gt;\n&lt;$list filter=\&quot;[&lt;actionTiddler&gt;!contains:tags&lt;__tag__&gt;]\&quot;&gt;\n&lt;$fieldmangler tiddler=&lt;&lt;actionTiddler&gt;&gt;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-add-tag\&quot; $param=&lt;&lt;__tag__&gt;&gt;/&gt;\n&lt;/$fieldmangler&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n\\end\n\n\\define list-tagged-draggable(tag,subFilter,emptyMessage,itemTemplate,elementTag:\&quot;div\&quot;,storyview:\&quot;\&quot;)\n\\whitespace trim\n&lt;span class=\&quot;tc-tagged-draggable-list\&quot;&gt;\n&lt;$set name=\&quot;tag\&quot; value=&lt;&lt;__tag__&gt;&gt;&gt;\n&lt;$list filter=\&quot;[&lt;__tag__&gt;tagging[]$subFilter$]\&quot; emptyMessage=&lt;&lt;__emptyMessage__&gt;&gt; storyview=&lt;&lt;__storyview__&gt;&gt;&gt;\n&lt;$elementTag$ class=\&quot;tc-menu-list-item\&quot;&gt;\n&lt;$droppable actions=\&quot;\&quot;\&quot;&lt;$macrocall $name=\&quot;list-tagged-draggable-drop-actions\&quot; tag=&lt;&lt;__tag__&gt;&gt;/&gt;\&quot;\&quot;\&quot; enable=&lt;&lt;tv-enable-drag-and-drop&gt;&gt;&gt;\n&lt;$elementTag$ class=\&quot;tc-droppable-placeholder\&quot;/&gt;\n&lt;$elementTag$&gt;\n&lt;$transclude tiddler=\&quot;\&quot;\&quot;$itemTemplate$\&quot;\&quot;\&quot;&gt;\n&lt;$link to={{!!title}}&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n&lt;/$link&gt;\n&lt;/$transclude&gt;\n&lt;/$elementTag$&gt;\n&lt;/$droppable&gt;\n&lt;/$elementTag$&gt;\n&lt;/$list&gt;\n&lt;$tiddler tiddler=\&quot;\&quot;&gt;\n&lt;$droppable actions=\&quot;\&quot;\&quot;&lt;$macrocall $name=\&quot;list-tagged-draggable-drop-actions\&quot; tag=&lt;&lt;__tag__&gt;&gt;/&gt;\&quot;\&quot;\&quot; enable=&lt;&lt;tv-enable-drag-and-drop&gt;&gt;&gt;\n&lt;$elementTag$ class=\&quot;tc-droppable-placeholder\&quot;/&gt;\n&lt;$elementTag$ style=\&quot;height:0.5em;\&quot;&gt;\n&lt;/$elementTag$&gt;\n&lt;/$droppable&gt;\n&lt;/$tiddler&gt;\n&lt;/$set&gt;\n&lt;/span&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/tabs&quot;: {
&quot;title&quot;: &quot;$:/core/macros/tabs&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define tabs(tabsList,default,state:\&quot;$:/state/tab\&quot;,class,template,buttonTemplate,retain,actions,explicitState)\n&lt;$set name=\&quot;qualifiedState\&quot; value=&lt;&lt;qualify \&quot;$state$\&quot;&gt;&gt;&gt;\n&lt;$vars tabsState={{{ [&lt;__explicitState__&gt;minlength[1]] ~[&lt;qualifiedState&gt;] }}}&gt;\n&lt;div class=\&quot;tc-tab-set $class$\&quot;&gt;\n&lt;div class=\&quot;tc-tab-buttons $class$\&quot;&gt;\n&lt;$list filter=\&quot;$tabsList$\&quot; variable=\&quot;currentTab\&quot; storyview=\&quot;pop\&quot;&gt;&lt;$set name=\&quot;save-currentTiddler\&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;$tiddler tiddler=&lt;&lt;currentTab&gt;&gt;&gt;&lt;$button set=&lt;&lt;tabsState&gt;&gt; setTo=&lt;&lt;currentTab&gt;&gt; default=\&quot;$default$\&quot; selectedClass=\&quot;tc-tab-selected\&quot; tooltip={{!!tooltip}}&gt;\n&lt;$tiddler tiddler=&lt;&lt;save-currentTiddler&gt;&gt;&gt;\n&lt;$set name=\&quot;tv-wikilinks\&quot; value=\&quot;no\&quot;&gt;\n&lt;$transclude tiddler=\&quot;$buttonTemplate$\&quot; mode=\&quot;inline\&quot;&gt;\n&lt;$transclude tiddler=&lt;&lt;currentTab&gt;&gt; field=\&quot;caption\&quot;&gt;\n&lt;$macrocall $name=\&quot;currentTab\&quot; $type=\&quot;text/plain\&quot; $output=\&quot;text/plain\&quot;/&gt;\n&lt;/$transclude&gt;\n&lt;/$transclude&gt;\n&lt;/$set&gt;&lt;/$tiddler&gt;$actions$&lt;/$button&gt;&lt;/$tiddler&gt;&lt;/$set&gt;&lt;/$list&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-tab-divider $class$\&quot;/&gt;\n&lt;div class=\&quot;tc-tab-content $class$\&quot;&gt;\n&lt;$list filter=\&quot;$tabsList$\&quot; variable=\&quot;currentTab\&quot;&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;tabsState&gt;&gt; text=&lt;&lt;currentTab&gt;&gt; default=\&quot;$default$\&quot; retain=\&quot;\&quot;\&quot;$retain$\&quot;\&quot;\&quot;&gt;\n\n&lt;$transclude tiddler=\&quot;$template$\&quot; mode=\&quot;block\&quot;&gt;\n\n&lt;$transclude tiddler=&lt;&lt;currentTab&gt;&gt; mode=\&quot;block\&quot;/&gt;\n\n&lt;/$transclude&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/$vars&gt;\n&lt;/$set&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/tag-picker&quot;: {
&quot;title&quot;: &quot;$:/core/macros/tag-picker&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;first-search-filter&quot;: &quot;[tags[]!is[system]search:title&lt;userInput&gt;sort[]]&quot;,
&quot;second-search-filter&quot;: &quot;[tags[]is[system]search:title&lt;userInput&gt;sort[]]&quot;,
&quot;text&quot;: &quot;\\define get-tagpicker-focus-selector() [data-tiddler-title=\&quot;$(currentTiddlerCSSEscaped)$\&quot;] .tc-add-tag-name input\n\n\\define delete-tag-state-tiddlers() &lt;$action-deletetiddler $filter=\&quot;[&lt;newTagNameTiddler&gt;] [&lt;storeTitle&gt;] [&lt;tagSelectionState&gt;]\&quot;/&gt;\n\n\\define add-tag-actions(actions,tagField:\&quot;tags\&quot;)\n&lt;$set name=\&quot;tag\&quot; value={{{ [&lt;__tiddler__&gt;get[text]] }}}&gt;\n&lt;$list filter=\&quot;[&lt;saveTiddler&gt;!contains:$tagField$&lt;tag&gt;!match[]]\&quot; variable=\&quot;ignore\&quot; emptyMessage=\&quot;\&quot;\&quot;\n&lt;$action-listops $tiddler=&lt;&lt;saveTiddler&gt;&gt; $field=&lt;&lt;__tagField__&gt;&gt; $subfilter=\&quot;-[&lt;tag&gt;]\&quot;/&gt;\n\&quot;\&quot;\&quot;&gt;\n&lt;$action-listops $tiddler=&lt;&lt;saveTiddler&gt;&gt; $field=&lt;&lt;__tagField__&gt;&gt; $subfilter=\&quot;[&lt;tag&gt;]\&quot;/&gt;\n$actions$\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;&lt;delete-tag-state-tiddlers&gt;&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;refreshTitle&gt;&gt; text=\&quot;yes\&quot;/&gt;\n\\end\n\n\\define clear-tags-actions-inner()\n&lt;$list filter=\&quot;[&lt;storeTitle&gt;has[text]] [&lt;newTagNameTiddler&gt;has[text]]\&quot; variable=\&quot;ignore\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;&lt;cancel-delete-tiddler-actions \&quot;cancel\&quot;&gt;&gt;\&quot;\&quot;\&quot;&gt;\n&lt;&lt;delete-tag-state-tiddlers&gt;&gt;\n&lt;/$list&gt;\n\\end\n\n\\define clear-tags-actions()\n&lt;$set name=\&quot;userInput\&quot; value={{{ [&lt;storeTitle&gt;get[text]] }}}&gt;\n&lt;$list filter=\&quot;[&lt;newTagNameTiddler&gt;get[text]!match&lt;userInput&gt;]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;&lt;clear-tags-actions-inner&gt;&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;newTagNameTiddler&gt;&gt; text=&lt;&lt;userInput&gt;&gt;/&gt;&lt;$action-setfield $tiddler=&lt;&lt;refreshTitle&gt;&gt; text=\&quot;yes\&quot;/&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n\\end\n\n\\define tag-picker-inner(actions,tagField:\&quot;tags\&quot;)\n\\whitespace trim\n&lt;$vars newTagNameInputTiddlerQualified=&lt;&lt;qualify \&quot;$:/temp/NewTagName/input\&quot;&gt;&gt; newTagNameSelectionTiddlerQualified=&lt;&lt;qualify \&quot;$:/temp/NewTagName/selected-item\&quot;&gt;&gt; fallbackTarget={{$(palette)$##tag-background}} colourA={{$(palette)$##foreground}} colourB={{$(palette)$##background}}&gt;\n&lt;$vars storeTitle={{{ [&lt;newTagNameInputTiddler&gt;!match[]] ~[&lt;newTagNameInputTiddlerQualified&gt;] }}} tagSelectionState={{{ [&lt;newTagNameSelectionTiddler&gt;!match[]] ~[&lt;newTagNameSelectionTiddlerQualified&gt;] }}}&gt;\n&lt;$vars refreshTitle=&lt;&lt;qualify \&quot;$:/temp/NewTagName/refresh\&quot;&gt;&gt; nonSystemTagsFilter=\&quot;[tags[]!is[system]search:title&lt;userInput&gt;sort[]]\&quot; systemTagsFilter=\&quot;[tags[]is[system]search:title&lt;userInput&gt;sort[]]\&quot;&gt;\n&lt;div class=\&quot;tc-edit-add-tag\&quot;&gt;\n&lt;div&gt;\n&lt;span class=\&quot;tc-add-tag-name tc-small-gap-right\&quot;&gt;\n&lt;$macrocall $name=\&quot;keyboard-driven-input\&quot; tiddler=&lt;&lt;newTagNameTiddler&gt;&gt; storeTitle=&lt;&lt;storeTitle&gt;&gt; refreshTitle=&lt;&lt;refreshTitle&gt;&gt;\n\t\tselectionStateTitle=&lt;&lt;tagSelectionState&gt;&gt; inputAcceptActions=\&quot;\&quot;\&quot;&lt;$macrocall $name=\&quot;add-tag-actions\&quot; actions=&lt;&lt;__actions__&gt;&gt; tagField=&lt;&lt;__tagField__&gt;&gt;/&gt;\&quot;\&quot;\&quot;\n\t\tinputCancelActions=&lt;&lt;clear-tags-actions&gt;&gt; tag=\&quot;input\&quot; placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}}\n\t\tfocusPopup=&lt;&lt;qualify \&quot;$:/state/popup/tags-auto-complete\&quot;&gt;&gt; class=\&quot;tc-edit-texteditor tc-popup-handle\&quot; tabindex=&lt;&lt;tabIndex&gt;&gt; \n\t\tfocus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}} filterMinLength={{$:/config/Tags/MinLength}} \n\t\tcancelPopups=&lt;&lt;cancelPopups&gt;&gt; configTiddlerFilter=\&quot;[[$:/core/macros/tag-picker]]\&quot;/&gt;\n&lt;/span&gt;&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/tags-auto-complete\&quot;&gt;&gt; class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot; tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}&gt;{{$:/core/images/down-arrow}}&lt;/$button&gt;&lt;$reveal state=&lt;&lt;storeTitle&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;&lt;$button class=\&quot;tc-btn-invisible tc-small-gap tc-btn-dropdown\&quot; tooltip={{$:/language/EditTemplate/Tags/ClearInput/Hint}} aria-label={{$:/language/EditTemplate/Tags/ClearInput/Caption}}&gt;{{$:/core/images/close-button}}&lt;&lt;delete-tag-state-tiddlers&gt;&gt;&lt;/$button&gt;&lt;/$reveal&gt;&lt;span class=\&quot;tc-add-tag-button tc-small-gap-left\&quot;&gt;\n&lt;$set name=\&quot;tag\&quot; value={{{ [&lt;newTagNameTiddler&gt;get[text]] }}}&gt;\n&lt;$button set=&lt;&lt;newTagNameTiddler&gt;&gt; setTo=\&quot;\&quot; class=\&quot;\&quot;&gt;\n&lt;$action-listops $tiddler=&lt;&lt;saveTiddler&gt;&gt; $field=&lt;&lt;__tagField__&gt;&gt; $subfilter=\&quot;[&lt;tag&gt;]\&quot;/&gt;\n$actions$\n&lt;$set name=\&quot;currentTiddlerCSSEscaped\&quot; value={{{ [&lt;saveTiddler&gt;escapecss[]] }}}&gt;\n&lt;&lt;delete-tag-state-tiddlers&gt;&gt;&lt;$action-sendmessage $message=\&quot;tm-focus-selector\&quot; $param=&lt;&lt;get-tagpicker-focus-selector&gt;&gt;/&gt;\n&lt;/$set&gt;\n{{$:/language/EditTemplate/Tags/Add/Button}}\n&lt;/$button&gt;\n&lt;/$set&gt;\n&lt;/span&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-block-dropdown-wrapper\&quot;&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/tags-auto-complete\&quot;&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot; default=\&quot;\&quot;&gt;\n&lt;div class=\&quot;tc-block-dropdown tc-block-tags-dropdown\&quot;&gt;\n&lt;$set name=\&quot;userInput\&quot; value={{{ [&lt;storeTitle&gt;get[text]] }}}&gt;\n&lt;$list filter=\&quot;[&lt;userInput&gt;minlength{$:/config/Tags/MinLength}limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;div class=\&quot;tc-search-results\&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;\&quot;\&quot;\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$list filter=&lt;&lt;nonSystemTagsFilter&gt;&gt; variable=\&quot;tag\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tag&gt;addsuffix[-primaryList]] -[&lt;tagSelectionState&gt;get[text]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$vars button-classes=\&quot;tc-btn-invisible tc-tag-button-selected\&quot; actions=&lt;&lt;__actions__&gt;&gt; tagField=&lt;&lt;__tagField__&gt;&gt; currentTiddler=&lt;&lt;tag&gt;&gt;&gt;{{||$:/core/ui/TagPickerTagTemplate}}&lt;/$vars&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$vars button-classes=\&quot;tc-btn-invisible\&quot; actions=&lt;&lt;__actions__&gt;&gt; tagField=&lt;&lt;__tagField__&gt;&gt; currentTiddler=&lt;&lt;tag&gt;&gt;&gt;{{||$:/core/ui/TagPickerTagTemplate}}&lt;/$vars&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;&lt;/$list&gt;\n&lt;hr&gt;\n&lt;$list filter=\&quot;[&lt;userInput&gt;minlength{$:/config/Tags/MinLength}limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;div class=\&quot;tc-search-results\&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;\&quot;\&quot;\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$list filter=&lt;&lt;systemTagsFilter&gt;&gt; variable=\&quot;tag\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;tag&gt;addsuffix[-secondaryList]] -[&lt;tagSelectionState&gt;get[text]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$vars button-classes=\&quot;tc-btn-invisible tc-tag-button-selected\&quot; actions=&lt;&lt;__actions__&gt;&gt; tagField=&lt;&lt;__tagField__&gt;&gt; currentTiddler=&lt;&lt;tag&gt;&gt;&gt;{{||$:/core/ui/TagPickerTagTemplate}}&lt;/$vars&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$vars button-classes=\&quot;tc-btn-invisible\&quot; actions=&lt;&lt;__actions__&gt;&gt; tagField=&lt;&lt;__tagField__&gt;&gt; currentTiddler=&lt;&lt;tag&gt;&gt;&gt;{{||$:/core/ui/TagPickerTagTemplate}}&lt;/$vars&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/$vars&gt;\n&lt;/$vars&gt;\n&lt;/$vars&gt;\n\\end\n\\define tag-picker(actions,tagField:\&quot;tags\&quot;)\n\\whitespace trim\n&lt;$vars saveTiddler=&lt;&lt;currentTiddler&gt;&gt; palette={{$:/palette}}&gt;\n&lt;$list filter=\&quot;[&lt;newTagNameTiddler&gt;match[]]\&quot; emptyMessage=\&quot;\&quot;\&quot;&lt;$macrocall $name=\&quot;tag-picker-inner\&quot; actions=&lt;&lt;__actions__&gt;&gt; tagField=&lt;&lt;__tagField__&gt;&gt;/&gt;\&quot;\&quot;\&quot;&gt;\n&lt;$set name=\&quot;newTagNameTiddler\&quot; value=&lt;&lt;qualify \&quot;$:/temp/NewTagName\&quot;&gt;&gt;&gt;\n&lt;$macrocall $name=\&quot;tag-picker-inner\&quot; actions=&lt;&lt;__actions__&gt;&gt; tagField=&lt;&lt;__tagField__&gt;&gt;/&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$vars&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/tag&quot;: {
&quot;title&quot;: &quot;$:/core/macros/tag&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define tag-pill-styles()\nbackground-color:$(backgroundColor)$;\nfill:$(foregroundColor)$;\ncolor:$(foregroundColor)$;\n\\end\n\n\\define tag-pill-inner(tag,icon,colour,fallbackTarget,colourA,colourB,element-tag,element-attributes,actions)\n&lt;$vars foregroundColor=&lt;&lt;contrastcolour target:\&quot;\&quot;\&quot;$colour$\&quot;\&quot;\&quot; fallbackTarget:\&quot;\&quot;\&quot;$fallbackTarget$\&quot;\&quot;\&quot; colourA:\&quot;\&quot;\&quot;$colourA$\&quot;\&quot;\&quot; colourB:\&quot;\&quot;\&quot;$colourB$\&quot;\&quot;\&quot;&gt;&gt; backgroundColor=\&quot;\&quot;\&quot;$colour$\&quot;\&quot;\&quot;&gt;\n&lt;$element-tag$ $element-attributes$ class=\&quot;tc-tag-label tc-btn-invisible\&quot; style=&lt;&lt;tag-pill-styles&gt;&gt;&gt;\n$actions$&lt;$transclude tiddler=\&quot;\&quot;\&quot;$icon$\&quot;\&quot;\&quot;/&gt;&lt;$view tiddler=&lt;&lt;__tag__&gt;&gt; field=\&quot;title\&quot; format=\&quot;text\&quot; /&gt;\n&lt;/$element-tag$&gt;\n&lt;/$vars&gt;\n\\end\n\n\\define tag-pill-body(tag,icon,colour,palette,element-tag,element-attributes,actions)\n&lt;$macrocall $name=\&quot;tag-pill-inner\&quot; tag=&lt;&lt;__tag__&gt;&gt; icon=\&quot;\&quot;\&quot;$icon$\&quot;\&quot;\&quot; colour=\&quot;\&quot;\&quot;$colour$\&quot;\&quot;\&quot; fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} element-tag=\&quot;\&quot;\&quot;$element-tag$\&quot;\&quot;\&quot; element-attributes=\&quot;\&quot;\&quot;$element-attributes$\&quot;\&quot;\&quot; actions=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;/&gt;\n\\end\n\n\\define tag-pill(tag,element-tag:\&quot;span\&quot;,element-attributes:\&quot;\&quot;,actions:\&quot;\&quot;)\n&lt;span class=\&quot;tc-tag-list-item\&quot;&gt;\n&lt;$macrocall $name=\&quot;tag-pill-body\&quot; tag=&lt;&lt;__tag__&gt;&gt; icon={{{ [&lt;__tag__&gt;get[icon]] }}} colour={{{ [&lt;__tag__&gt;get[color]] }}} palette={{$:/palette}} element-tag=\&quot;\&quot;\&quot;$element-tag$\&quot;\&quot;\&quot; element-attributes=\&quot;\&quot;\&quot;$element-attributes$\&quot;\&quot;\&quot; actions=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;/&gt;\n&lt;/span&gt;\n\\end\n\n\\define tag(tag)\n{{$tag$||$:/core/ui/TagTemplate}}\n\\end\n&quot;
},
&quot;$:/core/macros/thumbnails&quot;: {
&quot;title&quot;: &quot;$:/core/macros/thumbnails&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define thumbnail(link,icon,color,background-color,image,caption,width:\&quot;280\&quot;,height:\&quot;157\&quot;)\n&lt;$link to=\&quot;\&quot;\&quot;$link$\&quot;\&quot;\&quot;&gt;&lt;div class=\&quot;tc-thumbnail-wrapper\&quot;&gt;\n&lt;div class=\&quot;tc-thumbnail-image\&quot; style=\&quot;width:$width$px;height:$height$px;\&quot;&gt;&lt;$reveal type=\&quot;nomatch\&quot; text=\&quot;\&quot; default=\&quot;\&quot;\&quot;$image$\&quot;\&quot;\&quot; tag=\&quot;div\&quot; style=\&quot;width:$width$px;height:$height$px;\&quot;&gt;\n[img[$image$]]\n&lt;/$reveal&gt;&lt;$reveal type=\&quot;match\&quot; text=\&quot;\&quot; default=\&quot;\&quot;\&quot;$image$\&quot;\&quot;\&quot; tag=\&quot;div\&quot; class=\&quot;tc-thumbnail-background\&quot; style=\&quot;width:$width$px;height:$height$px;background-color:$background-color$;\&quot;&gt;&lt;/$reveal&gt;&lt;/div&gt;&lt;div class=\&quot;tc-thumbnail-icon\&quot; style=\&quot;fill:$color$;color:$color$;\&quot;&gt;\n$icon$\n&lt;/div&gt;&lt;div class=\&quot;tc-thumbnail-caption\&quot;&gt;\n$caption$\n&lt;/div&gt;\n&lt;/div&gt;&lt;/$link&gt;\n\\end\n\n\\define thumbnail-right(link,icon,color,background-color,image,caption,width:\&quot;280\&quot;,height:\&quot;157\&quot;)\n&lt;div class=\&quot;tc-thumbnail-right-wrapper\&quot;&gt;&lt;&lt;thumbnail \&quot;\&quot;\&quot;$link$\&quot;\&quot;\&quot; \&quot;\&quot;\&quot;$icon$\&quot;\&quot;\&quot; \&quot;\&quot;\&quot;$color$\&quot;\&quot;\&quot; \&quot;\&quot;\&quot;$background-color$\&quot;\&quot;\&quot; \&quot;\&quot;\&quot;$image$\&quot;\&quot;\&quot; \&quot;\&quot;\&quot;$caption$\&quot;\&quot;\&quot; \&quot;\&quot;\&quot;$width$\&quot;\&quot;\&quot; \&quot;\&quot;\&quot;$height$\&quot;\&quot;\&quot;&gt;&gt;&lt;/div&gt;\n\\end\n\n\\define list-thumbnails(filter,width:\&quot;280\&quot;,height:\&quot;157\&quot;)\n&lt;$list filter=\&quot;\&quot;\&quot;$filter$\&quot;\&quot;\&quot;&gt;&lt;$macrocall $name=\&quot;thumbnail\&quot; link={{!!link}} icon={{!!icon}} color={{!!color}} background-color={{!!background-color}} image={{!!image}} caption={{!!caption}} width=\&quot;\&quot;\&quot;$width$\&quot;\&quot;\&quot; height=\&quot;\&quot;\&quot;$height$\&quot;\&quot;\&quot;/&gt;&lt;/$list&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/timeline&quot;: {
&quot;title&quot;: &quot;$:/core/macros/timeline&quot;,
&quot;created&quot;: &quot;20141212105914482&quot;,
&quot;modified&quot;: &quot;20141212110330815&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define timeline-title()\n\\whitespace trim\n&lt;!-- Override this macro with a global macro \n of the same name if you need to change \n how titles are displayed on the timeline \n --&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n\\end\n\\define timeline(limit:\&quot;100\&quot;,format:\&quot;DDth MMM YYYY\&quot;,subfilter:\&quot;\&quot;,dateField:\&quot;modified\&quot;)\n&lt;div class=\&quot;tc-timeline\&quot;&gt;\n&lt;$list filter=\&quot;[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]\&quot;&gt;\n&lt;div class=\&quot;tc-menu-list-item\&quot;&gt;\n&lt;$view field=\&quot;$dateField$\&quot; format=\&quot;date\&quot; template=\&quot;$format$\&quot;/&gt;\n&lt;$list filter=\&quot;[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]\&quot;&gt;\n&lt;div class=\&quot;tc-menu-list-subitem\&quot;&gt;\n&lt;$link to={{!!title}}&gt;&lt;&lt;timeline-title&gt;&gt;&lt;/$link&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/toc&quot;: {
&quot;title&quot;: &quot;$:/core/macros/toc&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define toc-caption()\n&lt;$set name=\&quot;tv-wikilinks\&quot; value=\&quot;no\&quot;&gt;\n &lt;$transclude field=\&quot;caption\&quot;&gt;\n &lt;$view field=\&quot;title\&quot;/&gt;\n &lt;/$transclude&gt;\n&lt;/$set&gt;\n\\end\n\n\\define toc-body(tag,sort:\&quot;\&quot;,itemClassFilter,exclude,path)\n&lt;ol class=\&quot;tc-toc\&quot;&gt;\n &lt;$list filter=\&quot;\&quot;\&quot;[all[shadows+tiddlers]tag&lt;__tag__&gt;!has[draft.of]$sort$] -[&lt;__tag__&gt;] -[enlist&lt;__exclude__&gt;]\&quot;\&quot;\&quot;&gt;\n &lt;$vars item=&lt;&lt;currentTiddler&gt;&gt; path={{{ [&lt;__path__&gt;addsuffix[/]addsuffix&lt;__tag__&gt;] }}}&gt;\n &lt;$set name=\&quot;excluded\&quot; filter=\&quot;\&quot;\&quot;[enlist&lt;__exclude__&gt;] [&lt;__tag__&gt;]\&quot;\&quot;\&quot;&gt;\n &lt;$set name=\&quot;toc-item-class\&quot; filter=&lt;&lt;__itemClassFilter__&gt;&gt; emptyValue=\&quot;toc-item-selected\&quot; value=\&quot;toc-item\&quot;&gt;\n &lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;\n &lt;$list filter=\&quot;[all[current]toc-link[no]]\&quot; emptyMessage=\&quot;&lt;$link to={{{ [&lt;currentTiddler&gt;get[target]else&lt;currentTiddler&gt;] }}}&gt;&lt;$view field='caption'&gt;&lt;$view field='title'/&gt;&lt;/$view&gt;&lt;/$link&gt;\&quot;&gt;\n &lt;&lt;toc-caption&gt;&gt;\n &lt;/$list&gt;\n &lt;$macrocall $name=\&quot;toc-body\&quot; tag=&lt;&lt;item&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;excluded&gt;&gt; path=&lt;&lt;path&gt;&gt;/&gt;\n &lt;/li&gt;\n &lt;/$set&gt;\n &lt;/$set&gt;\n &lt;/$vars&gt;\n &lt;/$list&gt;\n&lt;/ol&gt;\n\\end\n\n\\define toc(tag,sort:\&quot;\&quot;,itemClassFilter:\&quot;\&quot;)\n&lt;$macrocall $name=\&quot;toc-body\&quot; tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; /&gt;\n\\end\n\n\\define toc-linked-expandable-body(tag,sort:\&quot;\&quot;,itemClassFilter,exclude,path)\n&lt;!-- helper function --&gt;\n&lt;$qualify name=\&quot;toc-state\&quot; title={{{ [[$:/state/toc]addsuffix&lt;__path__&gt;addsuffix[-]addsuffix&lt;currentTiddler&gt;] }}}&gt;\n &lt;$set name=\&quot;toc-item-class\&quot; filter=&lt;&lt;__itemClassFilter__&gt;&gt; emptyValue=\&quot;toc-item-selected\&quot; value=\&quot;toc-item\&quot;&gt;\n &lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;\n &lt;$link to={{{ [&lt;currentTiddler&gt;get[target]else&lt;currentTiddler&gt;] }}}&gt;\n &lt;$reveal type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=\&quot;open\&quot; class=\&quot;tc-btn-invisible tc-popup-keep\&quot;&gt;\n {{$:/core/images/right-arrow}}\n &lt;/$button&gt;\n &lt;/$reveal&gt;\n &lt;$reveal type=\&quot;match\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=\&quot;close\&quot; class=\&quot;tc-btn-invisible tc-popup-keep\&quot;&gt;\n {{$:/core/images/down-arrow}}\n &lt;/$button&gt;\n &lt;/$reveal&gt;\n &lt;&lt;toc-caption&gt;&gt;\n &lt;/$link&gt;\n &lt;$reveal type=\&quot;match\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$macrocall $name=\&quot;toc-expandable\&quot; tag=&lt;&lt;currentTiddler&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;__exclude__&gt;&gt; path=&lt;&lt;__path__&gt;&gt;/&gt;\n &lt;/$reveal&gt;\n &lt;/li&gt;\n &lt;/$set&gt;\n&lt;/$qualify&gt;\n\\end\n\n\\define toc-unlinked-expandable-body(tag,sort:\&quot;\&quot;,itemClassFilter,exclude,path)\n&lt;!-- helper function --&gt;\n&lt;$qualify name=\&quot;toc-state\&quot; title={{{ [[$:/state/toc]addsuffix&lt;__path__&gt;addsuffix[-]addsuffix&lt;currentTiddler&gt;] }}}&gt;\n &lt;$set name=\&quot;toc-item-class\&quot; filter=&lt;&lt;__itemClassFilter__&gt;&gt; emptyValue=\&quot;toc-item-selected\&quot; value=\&quot;toc-item\&quot;&gt;\n &lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;\n &lt;$reveal type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=\&quot;open\&quot; class=\&quot;tc-btn-invisible tc-popup-keep\&quot;&gt;\n {{$:/core/images/right-arrow}}\n &lt;&lt;toc-caption&gt;&gt;\n &lt;/$button&gt;\n &lt;/$reveal&gt;\n &lt;$reveal type=\&quot;match\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=\&quot;close\&quot; class=\&quot;tc-btn-invisible tc-popup-keep\&quot;&gt;\n {{$:/core/images/down-arrow}}\n &lt;&lt;toc-caption&gt;&gt;\n &lt;/$button&gt;\n &lt;/$reveal&gt;\n &lt;$reveal type=\&quot;match\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$macrocall $name=\&quot;toc-expandable\&quot; tag=&lt;&lt;currentTiddler&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;__exclude__&gt;&gt; path=&lt;&lt;__path__&gt;&gt;/&gt;\n &lt;/$reveal&gt;\n &lt;/li&gt;\n &lt;/$set&gt;\n&lt;/$qualify&gt;\n\\end\n\n\\define toc-expandable-empty-message()\n&lt;$macrocall $name=\&quot;toc-linked-expandable-body\&quot; tag=&lt;&lt;tag&gt;&gt; sort=&lt;&lt;sort&gt;&gt; itemClassFilter=&lt;&lt;itemClassFilter&gt;&gt; exclude=&lt;&lt;excluded&gt;&gt; path=&lt;&lt;path&gt;&gt;/&gt;\n\\end\n\n\\define toc-expandable(tag,sort:\&quot;\&quot;,itemClassFilter:\&quot;\&quot;,exclude,path)\n&lt;$vars tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; path={{{ [&lt;__path__&gt;addsuffix[/]addsuffix&lt;__tag__&gt;] }}}&gt;\n &lt;$set name=\&quot;excluded\&quot; filter=\&quot;\&quot;\&quot;[enlist&lt;__exclude__&gt;] [&lt;__tag__&gt;]\&quot;\&quot;\&quot;&gt;\n &lt;ol class=\&quot;tc-toc toc-expandable\&quot;&gt;\n &lt;$list filter=\&quot;\&quot;\&quot;[all[shadows+tiddlers]tag&lt;__tag__&gt;!has[draft.of]$sort$] -[&lt;__tag__&gt;] -[enlist&lt;__exclude__&gt;]\&quot;\&quot;\&quot;&gt;\n &lt;$list filter=\&quot;[all[current]toc-link[no]]\&quot; emptyMessage=&lt;&lt;toc-expandable-empty-message&gt;&gt; &gt;\n &lt;$macrocall $name=\&quot;toc-unlinked-expandable-body\&quot; tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=\&quot;\&quot;\&quot;itemClassFilter\&quot;\&quot;\&quot; exclude=&lt;&lt;excluded&gt;&gt; path=&lt;&lt;path&gt;&gt; /&gt;\n &lt;/$list&gt;\n &lt;/$list&gt;\n &lt;/ol&gt;\n &lt;/$set&gt;\n&lt;/$vars&gt;\n\\end\n\n\\define toc-linked-selective-expandable-body(tag,sort:\&quot;\&quot;,itemClassFilter,exclude,path)\n&lt;$qualify name=\&quot;toc-state\&quot; title={{{ [[$:/state/toc]addsuffix&lt;__path__&gt;addsuffix[-]addsuffix&lt;currentTiddler&gt;] }}}&gt;\n &lt;$set name=\&quot;toc-item-class\&quot; filter=&lt;&lt;__itemClassFilter__&gt;&gt; emptyValue=\&quot;toc-item-selected\&quot; value=\&quot;toc-item\&quot; &gt;\n &lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;\n &lt;$link to={{{ [&lt;currentTiddler&gt;get[target]else&lt;currentTiddler&gt;] }}}&gt;\n &lt;$list filter=\&quot;[all[current]tagging[]$sort$limit[1]]\&quot; variable=\&quot;ignore\&quot; emptyMessage=\&quot;&lt;$button class='tc-btn-invisible'&gt;{{$:/core/images/blank}}&lt;/$button&gt;\&quot;&gt;\n &lt;$reveal type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=\&quot;open\&quot; class=\&quot;tc-btn-invisible tc-popup-keep\&quot;&gt;\n {{$:/core/images/right-arrow}}\n &lt;/$button&gt;\n &lt;/$reveal&gt;\n &lt;$reveal type=\&quot;match\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=\&quot;close\&quot; class=\&quot;tc-btn-invisible tc-popup-keep\&quot;&gt;\n {{$:/core/images/down-arrow}}\n &lt;/$button&gt;\n &lt;/$reveal&gt;\n &lt;/$list&gt;\n &lt;&lt;toc-caption&gt;&gt;\n &lt;/$link&gt;\n &lt;$reveal type=\&quot;match\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$macrocall $name=\&quot;toc-selective-expandable\&quot; tag=&lt;&lt;currentTiddler&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;__exclude__&gt;&gt; path=&lt;&lt;__path__&gt;&gt;/&gt;\n &lt;/$reveal&gt;\n &lt;/li&gt;\n &lt;/$set&gt;\n&lt;/$qualify&gt;\n\\end\n\n\\define toc-unlinked-selective-expandable-body(tag,sort:\&quot;\&quot;,itemClassFilter,exclude,path)\n&lt;$qualify name=\&quot;toc-state\&quot; title={{{ [[$:/state/toc]addsuffix&lt;__path__&gt;addsuffix[-]addsuffix&lt;currentTiddler&gt;] }}}&gt;\n &lt;$set name=\&quot;toc-item-class\&quot; filter=&lt;&lt;__itemClassFilter__&gt;&gt; emptyValue=\&quot;toc-item-selected\&quot; value=\&quot;toc-item\&quot;&gt;\n &lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;\n &lt;$list filter=\&quot;[all[current]tagging[]$sort$limit[1]]\&quot; variable=\&quot;ignore\&quot; emptyMessage=\&quot;&lt;$button class='tc-btn-invisible'&gt;{{$:/core/images/blank}}&lt;/$button&gt; &lt;$view field='caption'&gt;&lt;$view field='title'/&gt;&lt;/$view&gt;\&quot;&gt;\n &lt;$reveal type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=\&quot;open\&quot; class=\&quot;tc-btn-invisible tc-popup-keep\&quot;&gt;\n {{$:/core/images/right-arrow}}\n &lt;&lt;toc-caption&gt;&gt;\n &lt;/$button&gt;\n &lt;/$reveal&gt;\n &lt;$reveal type=\&quot;match\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=\&quot;close\&quot; class=\&quot;tc-btn-invisible tc-popup-keep\&quot;&gt;\n {{$:/core/images/down-arrow}}\n &lt;&lt;toc-caption&gt;&gt;\n &lt;/$button&gt;\n &lt;/$reveal&gt;\n &lt;/$list&gt;\n &lt;$reveal type=\&quot;match\&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=\&quot;open\&quot;&gt;\n &lt;$macrocall $name=\&quot;toc-selective-expandable\&quot; tag=&lt;&lt;currentTiddler&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;__exclude__&gt;&gt; path=&lt;&lt;__path__&gt;&gt;/&gt;\n &lt;/$reveal&gt;\n &lt;/li&gt;\n &lt;/$set&gt;\n&lt;/$qualify&gt;\n\\end\n\n\\define toc-selective-expandable-empty-message()\n&lt;$macrocall $name=\&quot;toc-linked-selective-expandable-body\&quot; tag=&lt;&lt;tag&gt;&gt; sort=&lt;&lt;sort&gt;&gt; itemClassFilter=&lt;&lt;itemClassFilter&gt;&gt; exclude=&lt;&lt;excluded&gt;&gt; path=&lt;&lt;path&gt;&gt;/&gt;\n\\end\n\n\\define toc-selective-expandable(tag,sort:\&quot;\&quot;,itemClassFilter,exclude,path)\n&lt;$vars tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; path={{{ [&lt;__path__&gt;addsuffix[/]addsuffix&lt;__tag__&gt;] }}}&gt;\n &lt;$set name=\&quot;excluded\&quot; filter=\&quot;\&quot;\&quot;[enlist&lt;__exclude__&gt;] [&lt;__tag__&gt;]\&quot;\&quot;\&quot;&gt;\n &lt;ol class=\&quot;tc-toc toc-selective-expandable\&quot;&gt;\n &lt;$list filter=\&quot;\&quot;\&quot;[all[shadows+tiddlers]tag&lt;__tag__&gt;!has[draft.of]$sort$] -[&lt;__tag__&gt;] -[enlist&lt;__exclude__&gt;]\&quot;\&quot;\&quot;&gt;\n &lt;$list filter=\&quot;[all[current]toc-link[no]]\&quot; variable=\&quot;ignore\&quot; emptyMessage=&lt;&lt;toc-selective-expandable-empty-message&gt;&gt; &gt;\n &lt;$macrocall $name=\&quot;toc-unlinked-selective-expandable-body\&quot; tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;excluded&gt;&gt; path=&lt;&lt;path&gt;&gt;/&gt;\n &lt;/$list&gt;\n &lt;/$list&gt;\n &lt;/ol&gt;\n &lt;/$set&gt;\n&lt;/$vars&gt;\n\\end\n\n\\define toc-tabbed-external-nav(tag,sort:\&quot;\&quot;,selectedTiddler:\&quot;$:/temp/toc/selectedTiddler\&quot;,unselectedText,missingText,template:\&quot;\&quot;)\n&lt;$tiddler tiddler={{{ [&lt;__selectedTiddler__&gt;get[text]] }}}&gt;\n &lt;div class=\&quot;tc-tabbed-table-of-contents\&quot;&gt;\n &lt;$linkcatcher to=&lt;&lt;__selectedTiddler__&gt;&gt;&gt;\n &lt;div class=\&quot;tc-table-of-contents\&quot;&gt;\n &lt;$macrocall $name=\&quot;toc-selective-expandable\&quot; tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=\&quot;[all[current]] -[&lt;__selectedTiddler__&gt;get[text]]\&quot;/&gt;\n &lt;/div&gt;\n &lt;/$linkcatcher&gt;\n &lt;div class=\&quot;tc-tabbed-table-of-contents-content\&quot;&gt;\n &lt;$reveal stateTitle=&lt;&lt;__selectedTiddler__&gt;&gt; type=\&quot;nomatch\&quot; text=\&quot;\&quot;&gt;\n &lt;$transclude mode=\&quot;block\&quot; tiddler=&lt;&lt;__template__&gt;&gt;&gt;\n &lt;h1&gt;&lt;&lt;toc-caption&gt;&gt;&lt;/h1&gt;\n &lt;$transclude mode=\&quot;block\&quot;&gt;$missingText$&lt;/$transclude&gt;\n &lt;/$transclude&gt;\n &lt;/$reveal&gt;\n &lt;$reveal stateTitle=&lt;&lt;__selectedTiddler__&gt;&gt; type=\&quot;match\&quot; text=\&quot;\&quot;&gt;\n $unselectedText$\n &lt;/$reveal&gt;\n &lt;/div&gt;\n &lt;/div&gt;\n&lt;/$tiddler&gt;\n\\end\n\n\\define toc-tabbed-internal-nav(tag,sort:\&quot;\&quot;,selectedTiddler:\&quot;$:/temp/toc/selectedTiddler\&quot;,unselectedText,missingText,template:\&quot;\&quot;)\n&lt;$linkcatcher to=&lt;&lt;__selectedTiddler__&gt;&gt;&gt;\n &lt;$macrocall $name=\&quot;toc-tabbed-external-nav\&quot; tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; selectedTiddler=&lt;&lt;__selectedTiddler__&gt;&gt; unselectedText=&lt;&lt;__unselectedText__&gt;&gt; missingText=&lt;&lt;__missingText__&gt;&gt; template=&lt;&lt;__template__&gt;&gt;/&gt;\n&lt;/$linkcatcher&gt;\n\\end\n\n&quot;
},
&quot;$:/core/macros/translink&quot;: {
&quot;title&quot;: &quot;$:/core/macros/translink&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define translink(title,mode:\&quot;block\&quot;)\n&lt;div style=\&quot;border:1px solid #ccc; padding: 0.5em; background: black; foreground; white;\&quot;&gt;\n&lt;$link to=\&quot;\&quot;\&quot;$title$\&quot;\&quot;\&quot;&gt;\n&lt;$text text=\&quot;\&quot;\&quot;$title$\&quot;\&quot;\&quot;/&gt;\n&lt;/$link&gt;\n&lt;div style=\&quot;border:1px solid #ccc; padding: 0.5em; background: white; foreground; black;\&quot;&gt;\n&lt;$transclude tiddler=\&quot;\&quot;\&quot;$title$\&quot;\&quot;\&quot; mode=\&quot;$mode$\&quot;&gt;\n\&quot;&lt;$text text=\&quot;\&quot;\&quot;$title$\&quot;\&quot;\&quot;/&gt;\&quot; is missing\n&lt;/$transclude&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/tree&quot;: {
&quot;title&quot;: &quot;$:/core/macros/tree&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;text&quot;: &quot;\\define leaf-link(full-title,chunk,separator: \&quot;/\&quot;)\n&lt;$link to=&lt;&lt;__full-title__&gt;&gt;&gt;&lt;$text text=&lt;&lt;__chunk__&gt;&gt;/&gt;&lt;/$link&gt;\n\\end\n\n\\define leaf-node(prefix,chunk)\n&lt;li&gt;\n&lt;$list filter=\&quot;[&lt;__prefix__&gt;addsuffix&lt;__chunk__&gt;is[shadow]] [&lt;__prefix__&gt;addsuffix&lt;__chunk__&gt;is[tiddler]]\&quot; variable=\&quot;full-title\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;full-title&gt;removeprefix&lt;__prefix__&gt;]\&quot; variable=\&quot;chunk\&quot;&gt;\n&lt;span&gt;{{$:/core/images/file}}&lt;/span&gt; &lt;$macrocall $name=\&quot;leaf-link\&quot; full-title=&lt;&lt;full-title&gt;&gt; chunk=&lt;&lt;chunk&gt;&gt;/&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;/li&gt;\n\\end\n\n\\define branch-node(prefix,chunk,separator: \&quot;/\&quot;)\n&lt;li&gt;\n&lt;$set name=\&quot;reveal-state\&quot; value={{{ [[$:/state/tree/]addsuffix&lt;__prefix__&gt;addsuffix&lt;__chunk__&gt;] }}}&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; stateTitle=&lt;&lt;reveal-state&gt;&gt; text=\&quot;show\&quot;&gt;\n&lt;$button setTitle=&lt;&lt;reveal-state&gt;&gt; setTo=\&quot;show\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;\n{{$:/core/images/folder}} &lt;$text text=&lt;&lt;__chunk__&gt;&gt;/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; stateTitle=&lt;&lt;reveal-state&gt;&gt; text=\&quot;show\&quot;&gt;\n&lt;$button setTitle=&lt;&lt;reveal-state&gt;&gt; setTo=\&quot;hide\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;\n{{$:/core/images/folder}} &lt;$text text=&lt;&lt;__chunk__&gt;&gt;/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;span&gt;(&lt;$count filter=\&quot;[all[shadows+tiddlers]removeprefix&lt;__prefix__&gt;removeprefix&lt;__chunk__&gt;] -[&lt;__prefix__&gt;addsuffix&lt;__chunk__&gt;]\&quot;/&gt;)&lt;/span&gt;\n&lt;$reveal type=\&quot;match\&quot; stateTitle=&lt;&lt;reveal-state&gt;&gt; text=\&quot;show\&quot;&gt;\n&lt;$macrocall $name=\&quot;tree-node\&quot; prefix={{{ [&lt;__prefix__&gt;addsuffix&lt;__chunk__&gt;] }}} separator=&lt;&lt;__separator__&gt;&gt;/&gt;\n&lt;/$reveal&gt;\n&lt;/$set&gt;\n&lt;/li&gt;\n\\end\n\n\\define tree-node(prefix,separator: \&quot;/\&quot;)\n&lt;ol&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]removeprefix&lt;__prefix__&gt;splitbefore&lt;__separator__&gt;sort[]!suffix&lt;__separator__&gt;]\&quot; variable=\&quot;chunk\&quot;&gt;\n&lt;$macrocall $name=\&quot;leaf-node\&quot; prefix=&lt;&lt;__prefix__&gt;&gt; chunk=&lt;&lt;chunk&gt;&gt; separator=&lt;&lt;__separator__&gt;&gt;/&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]removeprefix&lt;__prefix__&gt;splitbefore&lt;__separator__&gt;sort[]suffix&lt;__separator__&gt;]\&quot; variable=\&quot;chunk\&quot;&gt;\n&lt;$macrocall $name=\&quot;branch-node\&quot; prefix=&lt;&lt;__prefix__&gt;&gt; chunk=&lt;&lt;chunk&gt;&gt; separator=&lt;&lt;__separator__&gt;&gt;/&gt;\n&lt;/$list&gt;\n&lt;/ol&gt;\n\\end\n\n\\define tree(prefix: \&quot;$:/\&quot;,separator: \&quot;/\&quot;)\n&lt;div class=\&quot;tc-tree\&quot;&gt;\n&lt;span&gt;&lt;$text text=&lt;&lt;__prefix__&gt;&gt;/&gt;&lt;/span&gt;\n&lt;div&gt;\n&lt;$macrocall $name=\&quot;tree-node\&quot; prefix=&lt;&lt;__prefix__&gt;&gt; separator=&lt;&lt;__separator__&gt;&gt;/&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n\\end\n&quot;
},
&quot;$:/core/macros/utils&quot;: {
&quot;title&quot;: &quot;$:/core/macros/utils&quot;,
&quot;text&quot;: &quot;\\define colour(colour)\n$colour$\n\\end\n&quot;
},
&quot;$:/snippets/minifocusswitcher&quot;: {
&quot;title&quot;: &quot;$:/snippets/minifocusswitcher&quot;,
&quot;text&quot;: &quot;&lt;$select tiddler=\&quot;$:/config/AutoFocus\&quot;&gt;\n&lt;$list filter=\&quot;title tags text type fields\&quot;&gt;\n&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;&lt;currentTiddler&gt;&gt;&lt;/option&gt;\n&lt;/$list&gt;\n&lt;/$select&gt;\n&quot;
},
&quot;$:/snippets/minilanguageswitcher&quot;: {
&quot;title&quot;: &quot;$:/snippets/minilanguageswitcher&quot;,
&quot;text&quot;: &quot;&lt;$select tiddler=\&quot;$:/language\&quot;&gt;\n&lt;$list filter=\&quot;[[$:/languages/en-GB]] [plugin-type[language]sort[title]]\&quot;&gt;\n&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;$view field=\&quot;description\&quot;&gt;&lt;$view field=\&quot;name\&quot;&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$view&gt;&lt;/$view&gt;&lt;/option&gt;\n&lt;/$list&gt;\n&lt;/$select&gt;&quot;
},
&quot;$:/snippets/minithemeswitcher&quot;: {
&quot;title&quot;: &quot;$:/snippets/minithemeswitcher&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ControlPanel/Theme/\n&lt;&lt;lingo Prompt&gt;&gt; &lt;$select tiddler=\&quot;$:/theme\&quot;&gt;\n&lt;$list filter=\&quot;[plugin-type[theme]sort[title]]\&quot;&gt;\n&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;$view field=\&quot;name\&quot;&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$view&gt;&lt;/option&gt;\n&lt;/$list&gt;\n&lt;/$select&gt;&quot;
},
&quot;$:/snippets/modules&quot;: {
&quot;title&quot;: &quot;$:/snippets/modules&quot;,
&quot;text&quot;: &quot;\\define describeModuleType(type)\n{{$:/language/Docs/ModuleTypes/$type$}}\n\\end\n&lt;$list filter=\&quot;[moduletypes[]]\&quot;&gt;\n\n!! &lt;$macrocall $name=\&quot;currentTiddler\&quot; $type=\&quot;text/plain\&quot; $output=\&quot;text/plain\&quot;/&gt;\n\n&lt;$macrocall $name=\&quot;describeModuleType\&quot; type=&lt;&lt;currentTiddler&gt;&gt;/&gt;\n\n&lt;ul&gt;&lt;$list filter=\&quot;[all[current]modules[]]\&quot;&gt;&lt;li&gt;&lt;$link&gt;&lt;&lt;currentTiddler&gt;&gt;&lt;/$link&gt;\n&lt;/li&gt;\n&lt;/$list&gt;\n&lt;/ul&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/palette&quot;: {
&quot;title&quot;: &quot;$:/palette&quot;,
&quot;text&quot;: &quot;$:/palettes/Vanilla&quot;
},
&quot;$:/snippets/paletteeditor&quot;: {
&quot;title&quot;: &quot;$:/snippets/paletteeditor&quot;,
&quot;text&quot;: &quot;&lt;$transclude tiddler=\&quot;$:/PaletteManager\&quot;/&gt;\n&quot;
},
&quot;$:/snippets/palettepreview&quot;: {
&quot;title&quot;: &quot;$:/snippets/palettepreview&quot;,
&quot;text&quot;: &quot;&lt;$set name=\&quot;currentTiddler\&quot; value={{$:/palette}}&gt;\n{{||$:/snippets/currpalettepreview}}\n&lt;/$set&gt;\n&quot;
},
&quot;$:/snippets/paletteswitcher&quot;: {
&quot;title&quot;: &quot;$:/snippets/paletteswitcher&quot;,
&quot;text&quot;: &quot;&lt;$linkcatcher to=\&quot;$:/palette\&quot;&gt;\n&lt;div class=\&quot;tc-chooser\&quot;&gt;&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]\&quot;&gt;&lt;$set name=\&quot;cls\&quot; filter=\&quot;[all[current]prefix{$:/palette}]\&quot; value=\&quot;tc-chooser-item tc-chosen\&quot; emptyValue=\&quot;tc-chooser-item\&quot;&gt;&lt;div class=&lt;&lt;cls&gt;&gt;&gt;&lt;$link to={{!!title}}&gt;''&lt;$view field=\&quot;name\&quot; format=\&quot;text\&quot;/&gt;'' - &lt;$view field=\&quot;description\&quot; format=\&quot;text\&quot;/&gt;{{||$:/snippets/currpalettepreview}}&lt;/$link&gt;\n&lt;/div&gt;&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$linkcatcher&gt;\n&quot;
},
&quot;$:/snippets/peek-stylesheets&quot;: {
&quot;title&quot;: &quot;$:/snippets/peek-stylesheets&quot;,
&quot;text&quot;: &quot;\\define expandable-stylesheets-list()\n&lt;ol&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\&quot;&gt;\n&lt;$vars state=&lt;&lt;qualify \&quot;$:/state/peek-stylesheets/open/\&quot;&gt;&gt;&gt;\n&lt;$set name=\&quot;state\&quot; value={{{ [&lt;state&gt;addsuffix&lt;currentTiddler&gt;] }}}&gt;\n&lt;li&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;state&gt;&gt; text=\&quot;yes\&quot; tag=\&quot;span\&quot;&gt;\n&lt;$button set=&lt;&lt;state&gt;&gt; setTo=\&quot;no\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;\n{{$:/core/images/down-arrow}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;state&gt;&gt; text=\&quot;yes\&quot; tag=\&quot;span\&quot;&gt;\n&lt;$button set=&lt;&lt;state&gt;&gt; setTo=\&quot;yes\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;\n{{$:/core/images/right-arrow}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$link&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n&lt;/$link&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;state&gt;&gt; text=\&quot;yes\&quot; tag=\&quot;div\&quot;&gt;\n&lt;$set name=\&quot;source\&quot; tiddler=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;$wikify name=\&quot;styles\&quot; text=&lt;&lt;source&gt;&gt;&gt;\n&lt;pre&gt;\n&lt;code&gt;\n&lt;$text text=&lt;&lt;styles&gt;&gt;/&gt;\n&lt;/code&gt;\n&lt;/pre&gt;\n&lt;/$wikify&gt;\n&lt;/$set&gt;\n&lt;/$reveal&gt;\n&lt;/li&gt;\n&lt;/$set&gt;\n&lt;/$vars&gt;\n&lt;/$list&gt;\n&lt;/ol&gt;\n\\end\n\n\\define stylesheets-list()\n&lt;ol&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\&quot;&gt;\n&lt;li&gt;\n&lt;$link&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n&lt;/$link&gt;\n&lt;$set name=\&quot;source\&quot; tiddler=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;$wikify name=\&quot;styles\&quot; text=&lt;&lt;source&gt;&gt;&gt;\n&lt;pre&gt;\n&lt;code&gt;\n&lt;$text text=&lt;&lt;styles&gt;&gt;/&gt;\n&lt;/code&gt;\n&lt;/pre&gt;\n&lt;/$wikify&gt;\n&lt;/$set&gt;\n&lt;/li&gt;\n&lt;/$list&gt;\n&lt;/ol&gt;\n\\end\n\n&lt;$vars modeState=&lt;&lt;qualify \&quot;$:/state/peek-stylesheets/mode/\&quot;&gt;&gt;&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;modeState&gt;&gt; text=\&quot;expanded\&quot; tag=\&quot;div\&quot;&gt;\n&lt;$button set=&lt;&lt;modeState&gt;&gt; setTo=\&quot;expanded\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}}&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;modeState&gt;&gt; text=\&quot;expanded\&quot; tag=\&quot;div\&quot;&gt;\n&lt;$button set=&lt;&lt;modeState&gt;&gt; setTo=\&quot;restored\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;{{$:/core/images/chevron-down}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}}&lt;/$button&gt;\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;modeState&gt;&gt; text=\&quot;expanded\&quot; tag=\&quot;div\&quot;&gt;\n&lt;&lt;expandable-stylesheets-list&gt;&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;modeState&gt;&gt; text=\&quot;expanded\&quot; tag=\&quot;div\&quot;&gt;\n&lt;&lt;stylesheets-list&gt;&gt;\n&lt;/$reveal&gt;\n\n&lt;/$vars&gt;\n&quot;
},
&quot;$:/temp/search&quot;: {
&quot;title&quot;: &quot;$:/temp/search&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/tags/AdvancedSearch&quot;: {
&quot;title&quot;: &quot;$:/tags/AdvancedSearch&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/AdvancedSearch/Standard]] [[$:/core/ui/AdvancedSearch/System]] [[$:/core/ui/AdvancedSearch/Shadows]] [[$:/core/ui/AdvancedSearch/Filter]]&quot;
},
&quot;$:/tags/AdvancedSearch/FilterButton&quot;: {
&quot;title&quot;: &quot;$:/tags/AdvancedSearch/FilterButton&quot;,
&quot;list&quot;: &quot;$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown $:/core/ui/AdvancedSearch/Filter/FilterButtons/clear $:/core/ui/AdvancedSearch/Filter/FilterButtons/export $:/core/ui/AdvancedSearch/Filter/FilterButtons/delete&quot;
},
&quot;$:/tags/ControlPanel&quot;: {
&quot;title&quot;: &quot;$:/tags/ControlPanel&quot;,
&quot;list&quot;: &quot;$:/core/ui/ControlPanel/Info $:/core/ui/ControlPanel/Appearance $:/core/ui/ControlPanel/Settings $:/core/ui/ControlPanel/Saving $:/core/ui/ControlPanel/Plugins $:/core/ui/ControlPanel/Tools $:/core/ui/ControlPanel/Internals&quot;
},
&quot;$:/tags/ControlPanel/Info&quot;: {
&quot;title&quot;: &quot;$:/tags/ControlPanel/Info&quot;,
&quot;list&quot;: &quot;$:/core/ui/ControlPanel/Basics $:/core/ui/ControlPanel/Advanced&quot;
},
&quot;$:/tags/ControlPanel/Plugins&quot;: {
&quot;title&quot;: &quot;$:/tags/ControlPanel/Plugins&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/ControlPanel/Plugins/Installed]] [[$:/core/ui/ControlPanel/Plugins/Add]]&quot;
},
&quot;$:/tags/EditTemplate&quot;: {
&quot;title&quot;: &quot;$:/tags/EditTemplate&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/EditTemplate/controls]] [[$:/core/ui/EditTemplate/title]] [[$:/core/ui/EditTemplate/tags]] [[$:/core/ui/EditTemplate/shadow]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/EditTemplate/body]] [[$:/core/ui/EditTemplate/type]] [[$:/core/ui/EditTemplate/fields]]&quot;
},
&quot;$:/tags/EditToolbar&quot;: {
&quot;title&quot;: &quot;$:/tags/EditToolbar&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/cancel]] [[$:/core/ui/Buttons/save]]&quot;
},
&quot;$:/tags/EditorToolbar&quot;: {
&quot;title&quot;: &quot;$:/tags/EditorToolbar&quot;,
&quot;list&quot;: &quot;$:/core/ui/EditorToolbar/paint $:/core/ui/EditorToolbar/opacity $:/core/ui/EditorToolbar/line-width $:/core/ui/EditorToolbar/rotate-left $:/core/ui/EditorToolbar/clear $:/core/ui/EditorToolbar/bold $:/core/ui/EditorToolbar/italic $:/core/ui/EditorToolbar/strikethrough $:/core/ui/EditorToolbar/underline $:/core/ui/EditorToolbar/superscript $:/core/ui/EditorToolbar/subscript $:/core/ui/EditorToolbar/mono-line $:/core/ui/EditorToolbar/mono-block $:/core/ui/EditorToolbar/quote $:/core/ui/EditorToolbar/list-bullet $:/core/ui/EditorToolbar/list-number $:/core/ui/EditorToolbar/heading-1 $:/core/ui/EditorToolbar/heading-2 $:/core/ui/EditorToolbar/heading-3 $:/core/ui/EditorToolbar/heading-4 $:/core/ui/EditorToolbar/heading-5 $:/core/ui/EditorToolbar/heading-6 $:/core/ui/EditorToolbar/link $:/core/ui/EditorToolbar/excise $:/core/ui/EditorToolbar/picture $:/core/ui/EditorToolbar/stamp $:/core/ui/EditorToolbar/size $:/core/ui/EditorToolbar/editor-height $:/core/ui/EditorToolbar/more $:/core/ui/EditorToolbar/preview $:/core/ui/EditorToolbar/preview-type&quot;
},
&quot;$:/tags/Manager/ItemMain&quot;: {
&quot;title&quot;: &quot;$:/tags/Manager/ItemMain&quot;,
&quot;list&quot;: &quot;$:/Manager/ItemMain/WikifiedText $:/Manager/ItemMain/RawText $:/Manager/ItemMain/Fields&quot;
},
&quot;$:/tags/Manager/ItemSidebar&quot;: {
&quot;title&quot;: &quot;$:/tags/Manager/ItemSidebar&quot;,
&quot;list&quot;: &quot;$:/Manager/ItemSidebar/Tags $:/Manager/ItemSidebar/Colour $:/Manager/ItemSidebar/Icon $:/Manager/ItemSidebar/Tools&quot;
},
&quot;$:/tags/MoreSideBar&quot;: {
&quot;title&quot;: &quot;$:/tags/MoreSideBar&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/MoreSideBar/All]] [[$:/core/ui/MoreSideBar/Recent]] [[$:/core/ui/MoreSideBar/Tags]] [[$:/core/ui/MoreSideBar/Missing]] [[$:/core/ui/MoreSideBar/Drafts]] [[$:/core/ui/MoreSideBar/Orphans]] [[$:/core/ui/MoreSideBar/Types]] [[$:/core/ui/MoreSideBar/System]] [[$:/core/ui/MoreSideBar/Shadows]] [[$:/core/ui/MoreSideBar/Explorer]] [[$:/core/ui/MoreSideBar/Plugins]]&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/tags/PageControls&quot;: {
&quot;title&quot;: &quot;$:/tags/PageControls&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/close-all]] [[$:/core/ui/Buttons/fold-all]] [[$:/core/ui/Buttons/unfold-all]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/new-journal]] [[$:/core/ui/Buttons/new-image]] [[$:/core/ui/Buttons/import]] [[$:/core/ui/Buttons/export-page]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/advanced-search]] [[$:/core/ui/Buttons/manager]] [[$:/core/ui/Buttons/tag-manager]] [[$:/core/ui/Buttons/language]] [[$:/core/ui/Buttons/palette]] [[$:/core/ui/Buttons/theme]] [[$:/core/ui/Buttons/storyview]] [[$:/core/ui/Buttons/encryption]] [[$:/core/ui/Buttons/timestamp]] [[$:/core/ui/Buttons/full-screen]] [[$:/core/ui/Buttons/print]] [[$:/core/ui/Buttons/save-wiki]] [[$:/core/ui/Buttons/refresh]] [[$:/core/ui/Buttons/more-page-actions]]&quot;
},
&quot;$:/tags/PageTemplate&quot;: {
&quot;title&quot;: &quot;$:/tags/PageTemplate&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/PageTemplate/topleftbar]] [[$:/core/ui/PageTemplate/toprightbar]] [[$:/core/ui/PageTemplate/sidebar]] [[$:/core/ui/PageTemplate/story]] [[$:/core/ui/PageTemplate/alerts]]&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/tags/PluginLibrary&quot;: {
&quot;title&quot;: &quot;$:/tags/PluginLibrary&quot;,
&quot;list&quot;: &quot;$:/config/OfficialPluginLibrary&quot;
},
&quot;$:/tags/SideBar&quot;: {
&quot;title&quot;: &quot;$:/tags/SideBar&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/SideBar/Open]] [[$:/core/ui/SideBar/Recent]] [[$:/core/ui/SideBar/Tools]] [[$:/core/ui/SideBar/More]]&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/tags/SideBarSegment&quot;: {
&quot;title&quot;: &quot;$:/tags/SideBarSegment&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/SideBarSegments/site-title]] [[$:/core/ui/SideBarSegments/site-subtitle]] [[$:/core/ui/SideBarSegments/page-controls]] [[$:/core/ui/SideBarSegments/search]] [[$:/core/ui/SideBarSegments/tabs]]&quot;
},
&quot;$:/tags/TiddlerInfo&quot;: {
&quot;title&quot;: &quot;$:/tags/TiddlerInfo&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/TiddlerInfo/Tools]] [[$:/core/ui/TiddlerInfo/References]] [[$:/core/ui/TiddlerInfo/Tagging]] [[$:/core/ui/TiddlerInfo/List]] [[$:/core/ui/TiddlerInfo/Listed]] [[$:/core/ui/TiddlerInfo/Fields]]&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/tags/TiddlerInfo/Advanced&quot;: {
&quot;title&quot;: &quot;$:/tags/TiddlerInfo/Advanced&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/TiddlerInfo/Advanced/ShadowInfo]] [[$:/core/ui/TiddlerInfo/Advanced/PluginInfo]]&quot;
},
&quot;$:/tags/ViewTemplate&quot;: {
&quot;title&quot;: &quot;$:/tags/ViewTemplate&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/ViewTemplate/title]] [[$:/core/ui/ViewTemplate/unfold]] [[$:/core/ui/ViewTemplate/subtitle]] [[$:/core/ui/ViewTemplate/tags]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/ViewTemplate/body]]&quot;
},
&quot;$:/tags/ViewToolbar&quot;: {
&quot;title&quot;: &quot;$:/tags/ViewToolbar&quot;,
&quot;list&quot;: &quot;[[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/new-journal-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/export-tiddler]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/open-window]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] [[$:/core/ui/Buttons/fold-others]] [[$:/core/ui/Buttons/fold]]&quot;
},
&quot;$:/snippets/themeswitcher&quot;: {
&quot;title&quot;: &quot;$:/snippets/themeswitcher&quot;,
&quot;text&quot;: &quot;&lt;$linkcatcher to=\&quot;$:/theme\&quot;&gt;\n&lt;div class=\&quot;tc-chooser\&quot;&gt;&lt;$list filter=\&quot;[plugin-type[theme]sort[title]]\&quot;&gt;&lt;$set name=\&quot;cls\&quot; filter=\&quot;[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title&lt;currentTiddler&gt;] +[limit[1]]\&quot; value=\&quot;tc-chooser-item tc-chosen\&quot; emptyValue=\&quot;tc-chooser-item\&quot;&gt;&lt;div class=&lt;&lt;cls&gt;&gt;&gt;&lt;$link to={{!!title}}&gt;''&lt;$view field=\&quot;name\&quot; format=\&quot;text\&quot;/&gt;'' &lt;$view field=\&quot;description\&quot; format=\&quot;text\&quot;/&gt;&lt;/$link&gt;&lt;/div&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$linkcatcher&gt;&quot;
},
&quot;$:/core/wiki/title&quot;: {
&quot;title&quot;: &quot;$:/core/wiki/title&quot;,
&quot;text&quot;: &quot;{{$:/SiteTitle}} --- {{$:/SiteSubtitle}}&quot;
},
&quot;$:/view&quot;: {
&quot;title&quot;: &quot;$:/view&quot;,
&quot;text&quot;: &quot;classic&quot;
},
&quot;$:/snippets/viewswitcher&quot;: {
&quot;title&quot;: &quot;$:/snippets/viewswitcher&quot;,
&quot;text&quot;: &quot;\\define icon()\n$:/core/images/storyview-$(storyview)$\n\\end\n&lt;$linkcatcher to=\&quot;$:/view\&quot;&gt;\n&lt;div class=\&quot;tc-chooser tc-viewswitcher\&quot;&gt;\n&lt;$list filter=\&quot;[storyviews[]]\&quot; variable=\&quot;storyview\&quot;&gt;\n&lt;$set name=\&quot;cls\&quot; filter=\&quot;[&lt;storyview&gt;prefix{$:/view}]\&quot; value=\&quot;tc-chooser-item tc-chosen\&quot; emptyValue=\&quot;tc-chooser-item\&quot;&gt;&lt;div class=&lt;&lt;cls&gt;&gt;&gt;\n&lt;$link to=&lt;&lt;storyview&gt;&gt;&gt;&lt;$transclude tiddler=&lt;&lt;icon&gt;&gt;/&gt;&lt;$text text=&lt;&lt;storyview&gt;&gt;/&gt;&lt;/$link&gt;\n&lt;/div&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$linkcatcher&gt;&quot;
}
}
}</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless}}" tags="$:/tags/ToolbarButtonStyle" title="$:/core/buttonstyles/Borderless">
<pre>tc-btn-invisible</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed}}" tags="$:/tags/ToolbarButtonStyle" title="$:/core/buttonstyles/Boxed">
<pre>tc-btn-boxed</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded}}" tags="$:/tags/ToolbarButtonStyle" title="$:/core/buttonstyles/Rounded">
<pre>tc-btn-rounded</pre>
</div>
<div title="$:/core/copyright.txt" type="text/plain">
<pre>TiddlyWiki created by Jeremy Ruston, (jeremy [at] jermolene [dot] com)
Copyright (c) 2004-2007, Jeremy Ruston
Copyright (c) 2007-2020, UnaMesa Association
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</pre>
</div>
<div description="{{$:/language/Filters/AllTags}}" filter="[tags[]!is[system]sort[title]]" tags="$:/tags/Filter" title="$:/core/Filters/AllTags">
<pre></pre>
</div>
<div description="{{$:/language/Filters/AllTiddlers}}" filter="[!is[system]sort[title]]" tags="$:/tags/Filter" title="$:/core/Filters/AllTiddlers">
<pre></pre>
</div>
<div description="{{$:/language/Filters/Drafts}}" filter="[has[draft.of]sort[title]]" tags="$:/tags/Filter" title="$:/core/Filters/Drafts">
<pre></pre>
</div>
<div description="{{$:/language/Filters/Missing}}" filter="[all[missing]sort[title]]" tags="$:/tags/Filter" title="$:/core/Filters/Missing">
<pre></pre>
</div>
<div description="{{$:/language/Filters/Orphans}}" filter="[all[orphans]sort[title]]" tags="$:/tags/Filter" title="$:/core/Filters/Orphans">
<pre></pre>
</div>
<div description="{{$:/language/Filters/OverriddenShadowTiddlers}}" filter="[is[shadow]]" tags="$:/tags/Filter" title="$:/core/Filters/OverriddenShadowTiddlers">
<pre></pre>
</div>
<div description="{{$:/language/Filters/RecentSystemTiddlers}}" filter="[has[modified]!sort[modified]limit[50]]" tags="$:/tags/Filter" title="$:/core/Filters/RecentSystemTiddlers">
<pre></pre>
</div>
<div description="{{$:/language/Filters/RecentTiddlers}}" filter="[!is[system]has[modified]!sort[modified]limit[50]]" tags="$:/tags/Filter" title="$:/core/Filters/RecentTiddlers">
<pre></pre>
</div>
<div description="{{$:/language/Filters/SessionTiddlers}}" filter="[haschanged[]]" tags="$:/tags/Filter" title="$:/core/Filters/SessionTiddlers">
<pre></pre>
</div>
<div description="{{$:/language/Filters/ShadowTiddlers}}" filter="[all[shadows]sort[title]]" tags="$:/tags/Filter" title="$:/core/Filters/ShadowTiddlers">
<pre></pre>
</div>
<div description="{{$:/language/Filters/StoryList}}" filter="[list[$:/StoryList]] -$:/AdvancedSearch" tags="$:/tags/Filter" title="$:/core/Filters/StoryList">
<pre></pre>
</div>
<div description="{{$:/language/Filters/SystemTags}}" filter="[all[shadows+tiddlers]tags[]is[system]sort[title]]" tags="$:/tags/Filter" title="$:/core/Filters/SystemTags">
<pre></pre>
</div>
<div description="{{$:/language/Filters/SystemTiddlers}}" filter="[is[system]sort[title]]" tags="$:/tags/Filter" title="$:/core/Filters/SystemTiddlers">
<pre></pre>
</div>
<div description="{{$:/language/Filters/TypedTiddlers}}" filter="[!is[system]has[type]each[type]sort[type]] -[type[text/vnd.tiddlywiki]]" tags="$:/tags/Filter" title="$:/core/Filters/TypedTiddlers">
<pre></pre>
</div>
<div tags="$:/tags/Image" title="$:/core/icon">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path d=&quot;M64 0l54.56 32v64L64 128 9.44 96V32L64 0zm21.127 95.408c-3.578-.103-5.15-.094-6.974-3.152l-1.42.042c-1.653-.075-.964-.04-2.067-.097-1.844-.07-1.548-1.86-1.873-2.8-.52-3.202.687-6.43.65-9.632-.014-1.14-1.593-5.17-2.157-6.61-1.768.34-3.546.406-5.34.497-4.134-.01-8.24-.527-12.317-1.183-.8 3.35-3.16 8.036-1.21 11.44 2.37 3.52 4.03 4.495 6.61 4.707 2.572.212 3.16 3.18 2.53 4.242-.55.73-1.52.864-2.346 1.04l-1.65.08c-1.296-.046-2.455-.404-3.61-.955-1.93-1.097-3.925-3.383-5.406-5.024.345.658.55 1.938.24 2.53-.878 1.27-4.665 1.26-6.4.47-1.97-.89-6.73-7.162-7.468-11.86 1.96-3.78 4.812-7.07 6.255-11.186-3.146-2.05-4.83-5.384-4.61-9.16l.08-.44c-3.097.59-1.49.37-4.82.628-10.608-.032-19.935-7.37-14.68-18.774.34-.673.664-1.287 1.243-.994.466.237.4 1.18.166 2.227-3.005 13.627 11.67 13.732 20.69 11.21.89-.25 2.67-1.936 3.905-2.495 2.016-.91 4.205-1.282 6.376-1.55 5.4-.63 11.893 2.276 15.19 2.37 3.3.096 7.99-.805 10.87-.615 2.09.098 4.143.483 6.16 1.03 1.306-6.49 1.4-11.27 4.492-12.38 1.814.293 3.213 2.818 4.25 4.167 2.112-.086 4.12.46 6.115 1.066 3.61-.522 6.642-2.593 9.833-4.203-3.234 2.69-3.673 7.075-3.303 11.127.138 2.103-.444 4.386-1.164 6.54-1.348 3.507-3.95 7.204-6.97 7.014-1.14-.036-1.805-.695-2.653-1.4-.164 1.427-.81 2.7-1.434 3.96-1.44 2.797-5.203 4.03-8.687 7.016-3.484 2.985 1.114 13.65 2.23 15.594 1.114 1.94 4.226 2.652 3.02 4.406-.37.58-.936.785-1.54 1.01l-.82.11zm-40.097-8.85l.553.14c.694-.27 2.09.15 2.83.353-1.363-1.31-3.417-3.24-4.897-4.46-.485-1.47-.278-2.96-.174-4.46l.02-.123c-.582 1.205-1.322 2.376-1.72 3.645-.465 1.71 2.07 3.557 3.052 4.615l.336.3z&quot; fill-rule=&quot;evenodd&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/add-comment">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-add-comment tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M56 56H36a8 8 0 100 16h20v20a8 8 0 1016 0V72h20a8 8 0 100-16H72V36a8 8 0 10-16 0v20zm-12.595 58.362c-6.683 7.659-20.297 12.903-36.006 12.903-2.196 0-4.35-.102-6.451-.3 9.652-3.836 17.356-12.24 21.01-22.874C8.516 94.28 0 79.734 0 63.5 0 33.953 28.206 10 63 10s63 23.953 63 53.5S97.794 117 63 117c-6.841 0-13.428-.926-19.595-2.638z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/advanced-search-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-advanced-search-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M74.565 87.985A47.776 47.776 0 0148 96C21.49 96 0 74.51 0 48S21.49 0 48 0s48 21.49 48 48c0 9.854-2.97 19.015-8.062 26.636l34.347 34.347a9.443 9.443 0 010 13.36 9.446 9.446 0 01-13.36 0l-34.36-34.358zM48 80c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z&quot;/&gt;&lt;circle cx=&quot;48&quot; cy=&quot;48&quot; r=&quot;8&quot;/&gt;&lt;circle cx=&quot;28&quot; cy=&quot;48&quot; r=&quot;8&quot;/&gt;&lt;circle cx=&quot;68&quot; cy=&quot;48&quot; r=&quot;8&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/auto-height">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-auto-height tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path d=&quot;M67.987 114.356l-.029-14.477a4 4 0 00-2.067-3.494l-15.966-8.813-1.933 7.502H79.9c4.222 0 5.564-5.693 1.786-7.58L49.797 71.572 48.01 79.15h31.982c4.217 0 5.564-5.682 1.795-7.575L49.805 55.517l-1.795 7.575h31.982c4.212 0 5.563-5.67 1.805-7.57l-16.034-8.105 2.195 3.57V35.614l9.214 9.213a4 4 0 105.656-5.656l-16-16a4 4 0 00-5.656 0l-16 16a4 4 0 105.656 5.656l9.13-9.13v15.288a4 4 0 002.195 3.57l16.035 8.106 1.804-7.57H48.01c-4.217 0-5.564 5.682-1.795 7.574l31.982 16.059 1.795-7.575H48.01c-4.222 0-5.564 5.693-1.787 7.579l31.89 15.923 1.787-7.578H47.992c-4.133 0-5.552 5.504-1.933 7.501l15.966 8.813-2.067-3.494.029 14.436-9.159-9.158a4 4 0 00-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656l-9.185 9.184zM16 20h96a4 4 0 100-8H16a4 4 0 100 8z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/blank">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-blank tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;/&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/bold">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-bold tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M41.146 51.81V21.87h26.353c2.51 0 4.93.21 7.26.628 2.33.418 4.392 1.165 6.185 2.24 1.793 1.076 3.227 2.57 4.302 4.482 1.076 1.913 1.614 4.363 1.614 7.35 0 5.379-1.613 9.263-4.84 11.653-3.227 2.39-7.35 3.586-12.37 3.586H41.146zM13 0v128h62.028a65.45 65.45 0 0016.762-2.151c5.438-1.434 10.278-3.645 14.52-6.633 4.244-2.988 7.62-6.842 10.13-11.563 2.51-4.721 3.764-10.308 3.764-16.762 0-8.008-1.942-14.85-5.826-20.527-3.884-5.677-9.77-9.65-17.658-11.921 5.737-2.75 10.069-6.275 12.997-10.577 2.928-4.303 4.392-9.681 4.392-16.135 0-5.976-.986-10.995-2.958-15.059-1.972-4.063-4.75-7.32-8.336-9.77-3.585-2.45-7.888-4.213-12.907-5.289C84.888.538 79.33 0 73.235 0H13zm28.146 106.129V70.992H71.8c6.095 0 10.995 1.404 14.7 4.212 3.705 2.81 5.558 7.5 5.558 14.073 0 3.347-.568 6.096-1.703 8.247-1.136 2.151-2.66 3.854-4.572 5.11-1.912 1.254-4.123 2.15-6.633 2.688-2.51.538-5.139.807-7.888.807H41.146z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/cancel-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-cancel-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M64 76.314l-16.97 16.97a7.999 7.999 0 01-11.314 0c-3.118-3.118-3.124-8.19 0-11.313L52.686 65l-16.97-16.97a7.999 7.999 0 010-11.314c3.118-3.118 8.19-3.124 11.313 0L64 53.686l16.97-16.97a7.999 7.999 0 0111.314 0c3.118 3.118 3.124 8.19 0 11.313L75.314 65l16.97 16.97a7.999 7.999 0 010 11.314c-3.118 3.118-8.19 3.124-11.313 0L64 76.314zM64 129c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 1 0 29.654 0 65c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 17 64 17 16 38.49 16 65s21.49 48 48 48z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/chevron-down">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-chevron-down tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M64.053 85.456a7.889 7.889 0 01-5.6-2.316L2.473 27.16a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0L64.05 66.344l50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.105 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.317z&quot;/&gt;&lt;path d=&quot;M64.053 124.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/chevron-left">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-chevron-left tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M47.544 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L66.656 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.105 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.317-5.595z&quot;/&gt;&lt;path d=&quot;M8.931 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L28.041 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.104 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.316-5.595z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/chevron-right">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-chevron-right tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M83.456 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196L64.344 63.95 13.963 13.567a7.92 7.92 0 010-11.195c3.086-3.085 8.105-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.317 5.595z&quot;/&gt;&lt;path d=&quot;M122.069 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/chevron-up">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-chevron-up tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M63.947 44.544c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 63.656l-50.382 50.382a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.317z&quot;/&gt;&lt;path d=&quot;M63.947 5.931c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 25.041 13.567 75.423a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.104 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.316z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/clone-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-clone-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M32.265 96v24.002A7.996 7.996 0 0040.263 128h79.74a7.996 7.996 0 007.997-7.998v-79.74a7.996 7.996 0 00-7.998-7.997H96V48h12.859a2.99 2.99 0 012.994 2.994v57.865a2.99 2.99 0 01-2.994 2.994H50.994A2.99 2.99 0 0148 108.859V96H32.265z&quot;/&gt;&lt;path d=&quot;M40 56h-7.993C27.588 56 24 52.418 24 48c0-4.41 3.585-8 8.007-8H40v-7.993C40 27.588 43.582 24 48 24c4.41 0 8 3.585 8 8.007V40h7.993C68.412 40 72 43.582 72 48c0 4.41-3.585 8-8.007 8H56v7.993C56 68.412 52.418 72 48 72c-4.41 0-8-3.585-8-8.007V56zM8 0C3.58 0 0 3.588 0 8v80c0 4.419 3.588 8 8 8h80c4.419 0 8-3.588 8-8V8c0-4.419-3.588-8-8-8H8zM19 16A2.997 2.997 0 0016 19.001v57.998A2.997 2.997 0 0019.001 80h57.998A2.997 2.997 0 0080 76.999V19.001A2.997 2.997 0 0076.999 16H19.001z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/close-all-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-close-all-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M28 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L16.686 100 2.543 85.856a8 8 0 0111.313-11.313L28 88.686l14.144-14.143a8 8 0 0111.313 11.313L39.314 100l14.143 14.144a8 8 0 01-11.313 11.313L28 111.314zM28 39.314L13.856 53.457A8 8 0 012.543 42.144L16.686 28 2.543 13.856A8 8 0 0113.856 2.543L28 16.686 42.144 2.543a8 8 0 0111.313 11.313L39.314 28l14.143 14.144a8 8 0 01-11.313 11.313L28 39.314zM100 39.314L85.856 53.457a8 8 0 01-11.313-11.313L88.686 28 74.543 13.856A8 8 0 0185.856 2.543L100 16.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 28l14.143 14.144a8 8 0 01-11.313 11.313L100 39.314zM100 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L88.686 100 74.543 85.856a8 8 0 0111.313-11.313L100 88.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 100l14.143 14.144a8 8 0 01-11.313 11.313L100 111.314z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/close-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-close-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M65.086 75.41l-50.113 50.113c-3.121 3.121-8.192 3.126-11.316.002-3.118-3.118-3.123-8.19.002-11.316l50.114-50.114L3.659 13.982C.538 10.86.533 5.79 3.657 2.666c3.118-3.118 8.19-3.123 11.316.002l50.113 50.114L115.2 2.668c3.121-3.121 8.192-3.126 11.316-.002 3.118 3.118 3.123 8.19-.002 11.316L76.4 64.095l50.114 50.114c3.121 3.121 3.126 8.192.002 11.316-3.118 3.118-8.19 3.123-11.316-.002L65.086 75.409z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/close-others-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-close-others-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48zm0-16c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32zm0-16c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/copy-clipboard">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-copy-clipboard tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;rect width=&quot;33&quot; height=&quot;8&quot; x=&quot;40&quot; y=&quot;40&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;17&quot; height=&quot;8&quot; x=&quot;40&quot; y=&quot;82&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;17&quot; height=&quot;8&quot; x=&quot;40&quot; y=&quot;54&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;33&quot; height=&quot;8&quot; x=&quot;40&quot; y=&quot;96&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;12&quot; height=&quot;8&quot; x=&quot;40&quot; y=&quot;68&quot; rx=&quot;4&quot;/&gt;&lt;path d=&quot;M40 16H24c-4.419 0-8 3.59-8 8a8.031 8.031 0 000 .01v95.98a8.03 8.03 0 000 .01c0 4.41 3.581 8 8 8h80a7.975 7.975 0 005.652-2.34 7.958 7.958 0 002.348-5.652v-16.016c0-4.414-3.582-7.992-8-7.992-4.41 0-8 3.578-8 7.992V112H32V32h64v8.008C96 44.422 99.582 48 104 48c4.41 0 8-3.578 8-7.992V23.992a7.963 7.963 0 00-2.343-5.651A7.995 7.995 0 00104.001 16H88c0-4.41-3.585-8-8.007-8H48.007C43.588 8 40 11.582 40 16zm4-1.004A4.001 4.001 0 0148 11h32c2.21 0 4 1.797 4 3.996v4.008A4.001 4.001 0 0180 23H48c-2.21 0-4-1.797-4-3.996v-4.008z&quot;/&gt;&lt;rect width=&quot;66&quot; height=&quot;16&quot; x=&quot;62&quot; y=&quot;64&quot; rx=&quot;8&quot;/&gt;&lt;path d=&quot;M84.657 82.343l-16-16v11.314l16-16a8 8 0 10-11.314-11.314l-16 16a8 8 0 000 11.314l16 16a8 8 0 1011.314-11.314z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/delete-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-delete-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot; transform=&quot;translate(12)&quot;&gt;&lt;rect width=&quot;105&quot; height=&quot;16&quot; y=&quot;11&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;48&quot; height=&quot;16&quot; x=&quot;28&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;16&quot; height=&quot;112&quot; x=&quot;8&quot; y=&quot;16&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;88&quot; height=&quot;16&quot; x=&quot;8&quot; y=&quot;112&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;16&quot; height=&quot;112&quot; x=&quot;80&quot; y=&quot;16&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;16&quot; height=&quot;112&quot; x=&quot;56&quot; y=&quot;16&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;16&quot; height=&quot;112&quot; x=&quot;32&quot; y=&quot;16&quot; rx=&quot;8&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/done-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-done-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M42.26 111.032c-2.051.001-4.103-.78-5.668-2.345L2.662 74.758a8 8 0 01-.005-11.32c3.118-3.117 8.192-3.12 11.32.007l28.278 28.278 72.124-72.124a8.002 8.002 0 0111.314-.001c3.118 3.118 3.124 8.19 0 11.315l-77.78 77.78a7.978 7.978 0 01-5.658 2.343z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/down-arrow">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-down-arrow tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path d=&quot;M64.177 100.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.086 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/download-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-download-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z&quot; class=&quot;tc-image-download-button-ring&quot;/&gt;&lt;path d=&quot;M34.35 66.43l26.892 27.205a4.57 4.57 0 006.516 0L94.65 66.43a4.7 4.7 0 000-6.593 4.581 4.581 0 00-3.258-1.365h-8.46c-2.545 0-4.608-2.087-4.608-4.661v-15.15c0-2.575-2.063-4.662-4.608-4.662H55.284c-2.545 0-4.608 2.087-4.608 4.662v15.15c0 2.574-2.063 4.661-4.608 4.661h-8.46c-2.545 0-4.608 2.087-4.608 4.662a4.69 4.69 0 001.35 3.296z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/edit-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-edit-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M95.627 10.059l-5.656 5.657 11.313 11.313 5.657-5.656-11.314-11.314zm5.657-5.657l1.966-1.966c3.123-3.122 8.194-3.129 11.319-.005 3.117 3.118 3.122 8.192-.005 11.32l-1.966 1.965-11.314-11.314zm-16.97 16.97l-60.25 60.25a8.12 8.12 0 00-.322.342c-.1.087-.198.179-.295.275-5.735 5.735-10.702 22.016-10.702 22.016s16.405-5.09 22.016-10.702c.095-.096.186-.193.272-.292a8.12 8.12 0 00.345-.325l60.25-60.25-11.314-11.313zM35.171 124.19c6.788-.577 13.898-2.272 23.689-5.348 1.825-.573 3.57-1.136 6.336-2.04 16-5.226 21.877-6.807 28.745-7.146 8.358-.413 13.854 2.13 17.58 8.699a4 4 0 006.959-3.946c-5.334-9.406-13.745-13.296-24.933-12.744-7.875.39-14.057 2.052-30.835 7.533-2.739.894-4.46 1.45-6.25 2.012-19.46 6.112-30.77 7.072-39.597 1.747a4 4 0 10-4.132 6.85c6.333 3.82 13.754 5.12 22.438 4.383z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/erase">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-erase tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M60.087 127.996l63.015-63.015c6.535-6.535 6.528-17.115-.003-23.646L99.466 17.702c-6.539-6.538-17.117-6.532-23.646-.003L4.898 88.62c-6.535 6.534-6.528 17.115.003 23.646l15.73 15.73h39.456zm-34.95-7.313l-14.324-14.325c-3.267-3.268-3.268-8.564-.008-11.824L46.269 59.07l35.462 35.462-26.15 26.15H25.137z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/excise">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-excise tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M56 107.314l-2.343 2.343a8 8 0 11-11.314-11.314l16-16a8 8 0 0111.314 0l16 16a8 8 0 11-11.314 11.314L72 107.314v14.284c0 3.536-3.582 6.402-8 6.402s-8-2.866-8-6.402v-14.284zM0 40.007C0 35.585 3.59 32 8 32c4.418 0 8 3.588 8 8.007v31.986C16 76.415 12.41 80 8 80c-4.418 0-8-3.588-8-8.007V40.007zm32 0C32 35.585 35.59 32 40 32c4.418 0 8 3.588 8 8.007v31.986C48 76.415 44.41 80 40 80c-4.418 0-8-3.588-8-8.007V40.007zm48 0C80 35.585 83.59 32 88 32c4.418 0 8 3.588 8 8.007v31.986C96 76.415 92.41 80 88 80c-4.418 0-8-3.588-8-8.007V40.007zm-24-32C56 3.585 59.59 0 64 0c4.418 0 8 3.588 8 8.007v31.986C72 44.415 68.41 48 64 48c-4.418 0-8-3.588-8-8.007V8.007zm56 32c0-4.422 3.59-8.007 8-8.007 4.418 0 8 3.588 8 8.007v31.986c0 4.422-3.59 8.007-8 8.007-4.418 0-8-3.588-8-8.007V40.007z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/export-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-export-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M8.003 128H119.993a7.984 7.984 0 005.664-2.349v.007A7.975 7.975 0 00128 120V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v56H16V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v64c0 4.418 3.59 8 8 8h.003zm48.62-100.689l-8.965 8.966c-3.125 3.125-8.195 3.13-11.319.005-3.118-3.118-3.122-8.192.005-11.319L58.962 2.346A7.986 7.986 0 0164.625 0l-.006.002c2.05-.001 4.102.78 5.666 2.344l22.618 22.617c3.124 3.125 3.129 8.195.005 11.319-3.118 3.118-8.192 3.122-11.319-.005l-8.965-8.966v61.256c0 4.411-3.582 8-8 8-4.41 0-8-3.582-8-8V27.311z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div caption="cib-facebook" collection="Brand" created="20210613065139094" creator="M0" library="CoreUI Icons" library_version="2.0.1" modified="20210831064629511" modifier="M0" tags="$:/tags/Image Icons Images SVG" title="$:/core/images/facebook">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-cui-cib-facebook tc-image-button&quot; viewBox=&quot;0 0 32 32&quot;&gt;&lt;path style=&quot;fill:#000000;&quot; d=&quot;M32 16c0-8.839-7.167-16-16-16-8.839 0-16 7.161-16 16 0 7.984 5.849 14.604 13.5 15.803v-11.177h-4.063v-4.625h4.063v-3.527c0-4.009 2.385-6.223 6.041-6.223 1.751 0 3.584 0.312 3.584 0.312v3.937h-2.021c-1.984 0-2.604 1.235-2.604 2.5v3h4.437l-0.713 4.625h-3.724v11.177c7.645-1.199 13.5-7.819 13.5-15.803z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/file">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-file tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path d=&quot;M111.968 30.5H112V120a8 8 0 01-8 8H24a8 8 0 01-8-8V8a8 8 0 018-8h57v.02a7.978 7.978 0 015.998 2.337l22.627 22.627a7.975 7.975 0 012.343 5.516zM81 8H24v112h80V30.5H89c-4.418 0-8-3.578-8-8V8z&quot;/&gt;&lt;rect width=&quot;64&quot; height=&quot;8&quot; x=&quot;32&quot; y=&quot;36&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;64&quot; height=&quot;8&quot; x=&quot;32&quot; y=&quot;52&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;64&quot; height=&quot;8&quot; x=&quot;32&quot; y=&quot;68&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;64&quot; height=&quot;8&quot; x=&quot;32&quot; y=&quot;84&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;64&quot; height=&quot;8&quot; x=&quot;32&quot; y=&quot;100&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;40&quot; height=&quot;8&quot; x=&quot;32&quot; y=&quot;20&quot; rx=&quot;4&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/fixed-height">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-fixed-height tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M60 35.657l-9.172 9.171a4 4 0 11-5.656-5.656l16-16a4 4 0 015.656 0l16 16a4 4 0 01-5.656 5.656L68 35.657v57.686l9.172-9.171a4 4 0 115.656 5.656l-16 16a4 4 0 01-5.656 0l-16-16a4 4 0 115.656-5.656L60 93.343V35.657zM16 116h96a4 4 0 100-8H16a4 4 0 100 8zm0-96h96a4 4 0 100-8H16a4 4 0 100 8z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/fold-all-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-fold-all tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;rect width=&quot;128&quot; height=&quot;16&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;128&quot; height=&quot;16&quot; y=&quot;64&quot; rx=&quot;8&quot;/&gt;&lt;path d=&quot;M64.03 20.004c-2.05 0-4.102.78-5.667 2.344L35.746 44.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 22.348a7.986 7.986 0 00-5.663-2.346zM64.03 85.002c-2.05-.001-4.102.78-5.667 2.344l-22.617 22.617c-3.125 3.125-3.13 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.966 16.966 16.966c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.192-.005-11.319L69.687 87.346A7.986 7.986 0 0064.024 85z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/fold-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-fold tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;rect width=&quot;128&quot; height=&quot;16&quot; rx=&quot;8&quot;/&gt;&lt;path d=&quot;M64.03 25.004c-2.05 0-4.102.78-5.667 2.344L35.746 49.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 27.348a7.986 7.986 0 00-5.663-2.346zM64.005 67.379c-2.05 0-4.102.78-5.666 2.344L35.722 92.34c-3.125 3.125-3.13 8.195-.006 11.32 3.118 3.117 8.192 3.121 11.32-.006L64 86.69l16.965 16.965c3.125 3.125 8.195 3.13 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L69.663 69.723A7.986 7.986 0 0064 67.377z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/fold-others-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-fold-others tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;rect width=&quot;128&quot; height=&quot;16&quot; y=&quot;56.031&quot; rx=&quot;8&quot;/&gt;&lt;path d=&quot;M86.632 79.976c-2.05 0-4.102.78-5.666 2.345L64 99.286 47.034 82.321a7.986 7.986 0 00-5.662-2.346l.005.001c-2.05 0-4.102.78-5.666 2.345l-22.618 22.617c-3.124 3.125-3.129 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.966-16.966 16.965 16.966a7.986 7.986 0 005.663 2.346l-.005-.002c2.05 0 4.102-.78 5.666-2.344l16.965-16.966 16.966 16.966c3.125 3.124 8.194 3.129 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L92.289 82.321a7.986 7.986 0 00-5.663-2.346zM86.7 48.024c-2.05 0-4.102-.78-5.666-2.345L64.07 28.714 47.103 45.679a7.986 7.986 0 01-5.663 2.346l.005-.001c-2.05 0-4.101-.78-5.666-2.345L13.162 23.062c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L41.44 28.714l16.966-16.966a7.986 7.986 0 015.662-2.346l-.005.002c2.05 0 4.102.78 5.666 2.344l16.966 16.966 16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L92.358 45.679a7.986 7.986 0 01-5.663 2.346z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/folder">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-folder tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M55.694 128H8C3.58 128 0 124.414 0 119.996V48.004C0 43.584 3.584 40 7.999 40H16v-8c0-4.418 3.578-8 8-8h32a8 8 0 018 8v8h40.001c4.418 0 7.999 3.586 7.999 8.004V59.83l-8-.082v-7.749A4 4 0 0099.997 48H56V36c0-2.21-1.793-4-4.004-4H28.004A4 4 0 0024 36v12H12.003A4 4 0 008 52v64a4 4 0 004.003 4h46.76l-3.069 8z&quot;/&gt;&lt;path d=&quot;M23.873 55.5h96.003c4.417 0 7.004 4.053 5.774 9.063l-13.344 54.374c-1.228 5.005-5.808 9.063-10.223 9.063H6.08c-4.417 0-7.003-4.053-5.774-9.063L13.65 64.563c1.228-5.005 5.808-9.063 10.223-9.063zm1.78 8.5h87.994c2.211 0 3.504 2.093 2.891 4.666l-11.12 46.668c-.614 2.577-2.902 4.666-5.115 4.666H12.31c-2.211 0-3.504-2.093-2.891-4.666l11.12-46.668C21.152 66.09 23.44 64 25.653 64z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/full-screen-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-full-screen-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 018-8h32a8 8 0 110 16H16v24a8 8 0 11-16 0V8zM128 120a8 8 0 01-8 8H88a8 8 0 110-16h24V88a8 8 0 1116 0v32zM8 128a8 8 0 01-8-8V88a8 8 0 1116 0v24h24a8 8 0 110 16H8zM120 0a8 8 0 018 8v32a8 8 0 11-16 0V16H88a8 8 0 110-16h32z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/github">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-github tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M63.938 1.607c-35.336 0-63.994 28.69-63.994 64.084 0 28.312 18.336 52.329 43.768 60.802 3.202.59 4.37-1.388 4.37-3.088 0-1.518-.056-5.55-.087-10.897-17.802 3.871-21.558-8.591-21.558-8.591-2.911-7.404-7.108-9.375-7.108-9.375-5.81-3.973.44-3.895.44-3.895 6.424.453 9.803 6.606 9.803 6.606 5.709 9.791 14.981 6.963 18.627 5.322.582-4.138 2.236-6.963 4.063-8.564-14.211-1.617-29.153-7.117-29.153-31.672 0-6.995 2.495-12.718 6.589-17.195-.66-1.621-2.856-8.14.629-16.96 0 0 5.37-1.722 17.597 6.57 5.104-1.424 10.58-2.132 16.022-2.16 5.438.028 10.91.736 16.022 2.16 12.22-8.292 17.582-6.57 17.582-6.57 3.493 8.82 1.297 15.339.64 16.96 4.102 4.477 6.578 10.2 6.578 17.195 0 24.618-14.966 30.035-29.22 31.62 2.295 1.98 4.342 5.89 4.342 11.87 0 8.564-.079 15.476-.079 17.576 0 1.715 1.155 3.71 4.4 3.084 25.413-8.493 43.733-32.494 43.733-60.798 0-35.394-28.657-64.084-64.006-64.084&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/gitter">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-gitter tc-image-button&quot; viewBox=&quot;0 0 18 25&quot;&gt;&lt;path d=&quot;M15 5h2v10h-2zM10 5h2v20h-2zM5 5h2v20H5zM0 0h2v15H0z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/globe">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-globe tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M72.811 37.128v2.554c0 2.196.978 6.881 0 8.832-1.466 2.928-4.65 3.54-6.394 5.867-1.182 1.577-4.618 10.601-3.69 12.92 3.969 9.922 11.534 3.187 17.962 9.293.864.821 2.887 2.273 3.296 3.296 3.29 8.223-7.576 15.009 3.757 26.3 1.245 1.24 3.813-3.817 4.079-4.614.852-2.563 6.725-5.45 9.088-7.053 2.02-1.37 4.873-2.667 6.328-4.745 2.27-3.244 1.48-7.514 3.098-10.745 2.139-4.274 3.828-9.635 5.998-13.966 3.898-7.781 4.721 2.093 5.067 2.439.358.357 1.011 0 1.517 0 .094 0 1.447.099 1.516 0 .65-.935-1.043-17.92-1.318-19.297-1.404-7.01-6.944-15.781-11.865-20.5-6.274-6.015-7.09-16.197-18.259-14.954-.204.022-5.084 10.148-7.777 13.512-3.728 4.657-2.47-4.153-6.526-4.153-.081 0-1.183-.103-1.253 0-.586.88-1.44 3.896-2.306 4.417-.265.16-1.722-.239-1.846 0-2.243 4.3 8.256 2.212 5.792 7.952-2.352 5.481-6.328-1.997-6.328 8.56M44.467 7.01c9.685 6.13.682 12.198 2.694 16.215 1.655 3.303 4.241 5.395 1.714 9.814-2.063 3.608-6.87 3.966-9.623 6.723-3.04 3.044-5.464 8.94-6.79 12.911-1.617 4.843 14.547 6.866 12.063 11.008-1.386 2.311-6.746 1.466-8.437.198-1.165-.873-3.593-.546-4.417-1.78-2.613-3.915-2.26-8.023-3.625-12.128-.938-2.822-6.313-2.12-7.844-.593-.523.522-.33 1.792-.33 2.505 0 5.285 7.12 3.316 7.12 6.46 0 14.636 3.927 6.534 11.14 11.336 10.036 6.683 7.844 7.303 14.946 14.404 3.673 3.673 7.741 3.686 9.425 9.294 1.602 5.331-9.327 5.339-11.716 7.448-1.123.991-2.813 4.146-4.219 4.615-1.792.598-3.234.496-4.944 1.78-2.427 1.82-3.9 4.932-4.02 4.81-2.148-2.147-3.52-15.479-3.89-18.257-.588-4.42-5.59-5.54-6.986-9.03-1.57-3.927 1.524-9.52-1.129-13.761-6.52-10.424-11.821-14.5-15.35-26.292-.942-3.148 3.342-6.529 4.877-8.833 1.877-2.816 2.662-5.854 4.746-8.635C22.147 24.19 40.855 9.461 43.857 8.635l.61-1.625z&quot;/&gt;&lt;path d=&quot;M64 126c34.242 0 62-27.758 62-62 0-34.242-27.758-62-62-62C29.758 2 2 29.758 2 64c0 34.242 27.758 62 62 62zm0-6c30.928 0 56-25.072 56-56S94.928 8 64 8 8 33.072 8 64s25.072 56 56 56z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/heading-1">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-heading-1 tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M14 30h13.25v30.104H61.7V30h13.25v75.684H61.7V71.552H27.25v34.132H14V30zm70.335 13.78c2.544 0 5.017-.212 7.42-.636 2.403-.424 4.576-1.13 6.52-2.12 1.942-.99 3.603-2.261 4.981-3.816 1.378-1.555 2.28-3.463 2.703-5.724h9.858v74.2h-13.25V53.32H84.335v-9.54z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/heading-2">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-heading-2 tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm119.52 75.684H74.85c.07-6.148 1.555-11.519 4.452-16.112 2.897-4.593 6.855-8.586 11.872-11.978a133.725 133.725 0 017.526-5.141 59.6 59.6 0 007.208-5.353c2.19-1.908 3.993-3.975 5.406-6.201 1.413-2.226 2.155-4.788 2.226-7.685 0-1.343-.159-2.774-.477-4.293a11.357 11.357 0 00-1.855-4.24c-.919-1.307-2.19-2.403-3.816-3.286-1.625-.883-3.745-1.325-6.36-1.325-2.403 0-4.399.477-5.989 1.431-1.59.954-2.862 2.261-3.816 3.922-.954 1.66-1.66 3.622-2.12 5.883-.46 2.261-.724 4.7-.795 7.314H76.23c0-4.099.548-7.897 1.643-11.395 1.095-3.498 2.738-6.519 4.93-9.063 2.19-2.544 4.857-4.54 8.002-5.989C93.95 30.724 97.606 30 101.775 30c4.523 0 8.303.742 11.342 2.226 3.039 1.484 5.494 3.357 7.367 5.618 1.873 2.261 3.198 4.717 3.975 7.367.777 2.65 1.166 5.176 1.166 7.579 0 2.968-.46 5.653-1.378 8.056a25.942 25.942 0 01-3.71 6.625 37.5 37.5 0 01-5.3 5.565 79.468 79.468 0 01-6.148 4.77 165.627 165.627 0 01-6.36 4.24 94.28 94.28 0 00-5.883 4.028c-1.802 1.343-3.374 2.738-4.717 4.187-1.343 1.449-2.261 2.986-2.756 4.611h36.146v10.812z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/heading-3">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-heading-3 tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm88.885 32.224c1.979.07 3.957-.07 5.936-.424 1.979-.353 3.745-.972 5.3-1.855a10.365 10.365 0 003.763-3.657c.954-1.555 1.431-3.463 1.431-5.724 0-3.18-1.078-5.724-3.233-7.632-2.155-1.908-4.929-2.862-8.32-2.862-2.12 0-3.958.424-5.513 1.272a11.318 11.318 0 00-3.869 3.445c-1.025 1.449-1.784 3.074-2.279 4.876a18.335 18.335 0 00-.636 5.565H75.381c.141-3.604.813-6.943 2.014-10.017 1.201-3.074 2.844-5.742 4.93-8.003 2.084-2.261 4.61-4.028 7.578-5.3C92.871 30.636 96.228 30 99.973 30a29.2 29.2 0 018.533 1.272c2.791.848 5.3 2.085 7.526 3.71s4.01 3.692 5.353 6.201c1.343 2.509 2.014 5.388 2.014 8.639 0 3.745-.848 7.014-2.544 9.805-1.696 2.791-4.346 4.823-7.95 6.095v.212c4.24.848 7.544 2.95 9.911 6.307s3.551 7.438 3.551 12.243c0 3.533-.707 6.696-2.12 9.487a21.538 21.538 0 01-5.724 7.102c-2.403 1.943-5.194 3.445-8.374 4.505-3.18 1.06-6.537 1.59-10.07 1.59-4.31 0-8.074-.618-11.289-1.855s-5.9-2.986-8.056-5.247c-2.155-2.261-3.798-4.982-4.929-8.162-1.13-3.18-1.731-6.713-1.802-10.6h12.084c-.141 4.523.972 8.286 3.34 11.289 2.366 3.003 5.917 4.505 10.652 4.505 4.028 0 7.402-1.148 10.123-3.445 2.72-2.297 4.081-5.565 4.081-9.805 0-2.897-.565-5.194-1.696-6.89a10.97 10.97 0 00-4.452-3.869c-1.837-.883-3.904-1.431-6.2-1.643a58.067 58.067 0 00-7.05-.212v-9.01z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/heading-4">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-heading-4 tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M8 30h13.25v30.104H55.7V30h13.25v75.684H55.7V71.552H21.25v34.132H8V30zm76.59 48.548h22.471V45.9h-.212L84.59 78.548zm43.46 9.54h-9.54v17.596H107.06V88.088h-31.8V76.11l31.8-44.626h11.448v47.064h9.54v9.54z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/heading-5">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-heading-5 tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm77.755 1.484h38.372v10.812H92.765L88.95 61.164l.212.212c1.625-1.837 3.692-3.233 6.201-4.187 2.509-.954 5-1.431 7.473-1.431 3.675 0 6.96.618 9.858 1.855 2.897 1.237 5.335 2.968 7.314 5.194s3.48 4.858 4.505 7.897c1.025 3.039 1.537 6.325 1.537 9.858 0 2.968-.477 6.024-1.43 9.169a25.161 25.161 0 01-4.559 8.586c-2.085 2.58-4.752 4.7-8.003 6.36-3.25 1.66-7.137 2.491-11.66 2.491-3.604 0-6.943-.477-10.017-1.431-3.074-.954-5.777-2.385-8.109-4.293-2.332-1.908-4.187-4.258-5.565-7.049-1.378-2.791-2.138-6.06-2.279-9.805h12.084c.353 4.028 1.731 7.12 4.134 9.275 2.403 2.155 5.583 3.233 9.54 3.233 2.544 0 4.7-.424 6.466-1.272 1.767-.848 3.198-2.014 4.293-3.498 1.095-1.484 1.873-3.215 2.332-5.194.46-1.979.69-4.099.69-6.36 0-2.05-.284-4.01-.849-5.883-.565-1.873-1.413-3.516-2.544-4.929-1.13-1.413-2.597-2.544-4.399-3.392-1.802-.848-3.904-1.272-6.307-1.272-2.544 0-4.929.477-7.155 1.431-2.226.954-3.834 2.738-4.823 5.353H75.805l7.95-40.598z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/heading-6">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-heading-6 tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm106.587 20.246c-.283-3.039-1.36-5.494-3.233-7.367-1.873-1.873-4.399-2.809-7.579-2.809-2.19 0-4.08.406-5.67 1.219a12.435 12.435 0 00-4.029 3.233c-1.095 1.343-1.979 2.88-2.65 4.611a37.696 37.696 0 00-1.643 5.459 46.08 46.08 0 00-.9 5.671 722.213 722.213 0 00-.478 5.247l.212.212c1.625-2.968 3.87-5.176 6.731-6.625 2.862-1.449 5.954-2.173 9.275-2.173 3.675 0 6.96.636 9.858 1.908 2.897 1.272 5.353 3.021 7.367 5.247 2.014 2.226 3.551 4.858 4.611 7.897 1.06 3.039 1.59 6.325 1.59 9.858 0 3.604-.583 6.943-1.749 10.017-1.166 3.074-2.844 5.76-5.035 8.056-2.19 2.297-4.805 4.081-7.844 5.353-3.039 1.272-6.395 1.908-10.07 1.908-5.441 0-9.91-1.007-13.409-3.021-3.498-2.014-6.254-4.77-8.268-8.268-2.014-3.498-3.41-7.597-4.187-12.296-.777-4.7-1.166-9.77-1.166-15.211 0-4.452.477-8.94 1.431-13.462.954-4.523 2.526-8.639 4.717-12.349 2.19-3.71 5.07-6.731 8.64-9.063C92.676 31.166 97.075 30 102.304 30c2.968 0 5.76.495 8.374 1.484 2.615.99 4.93 2.367 6.943 4.134 2.014 1.767 3.657 3.887 4.93 6.36 1.271 2.473 1.978 5.23 2.12 8.268h-12.085zm-11.66 46.852c2.19 0 4.099-.442 5.724-1.325a12.869 12.869 0 004.081-3.445c1.095-1.413 1.908-3.056 2.438-4.929.53-1.873.795-3.798.795-5.777s-.265-3.887-.795-5.724c-.53-1.837-1.343-3.445-2.438-4.823-1.095-1.378-2.456-2.491-4.08-3.339-1.626-.848-3.534-1.272-5.725-1.272-2.19 0-4.116.406-5.777 1.219-1.66.813-3.056 1.908-4.187 3.286-1.13 1.378-1.979 2.986-2.544 4.823-.565 1.837-.848 3.78-.848 5.83 0 2.05.283 3.993.848 5.83.565 1.837 1.413 3.48 2.544 4.929a12.39 12.39 0 004.187 3.445c1.66.848 3.586 1.272 5.777 1.272z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/help">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-help tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M36.055 111.441c-5.24 4.396-15.168 7.362-26.555 7.362-1.635 0-3.24-.06-4.806-.179 7.919-2.64 14.062-8.6 16.367-16.014C8.747 92.845 1.05 78.936 1.05 63.5c0-29.547 28.206-53.5 63-53.5s63 23.953 63 53.5-28.206 53.5-63 53.5c-10.055 0-19.56-2-27.994-5.559zm35.35-33.843a536.471 536.471 0 00.018-4.682 199.02 199.02 0 00-.023-3.042c.008-1.357.595-2.087 3.727-4.235.112-.077 1.085-.74 1.386-.948 3.093-2.133 5.022-3.786 6.762-6.187 2.34-3.228 3.558-7.077 3.558-11.649 0-13.292-9.86-21.952-21.455-21.952-11.103 0-22.499 9.609-24.066 22.295a6.023 6.023 0 1011.956 1.477c.806-6.527 6.972-11.726 12.11-11.726 5.265 0 9.408 3.64 9.408 9.906 0 3.634-1.1 5.153-5.111 7.919l-1.362.93c-2.682 1.84-4.227 3.1-5.7 4.931-2.109 2.62-3.242 5.717-3.258 9.314.013.892.02 1.86.022 2.981a470.766 470.766 0 01-.022 4.943 6.023 6.023 0 1012.046.12l.003-.395zm-6.027 24.499a7.529 7.529 0 100-15.058 7.529 7.529 0 000 15.058z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/home-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-home-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M112.985 119.502c.01-.165.015-.331.015-.499V67.568c3.137 2.948 8.076 2.884 11.134-.174a7.999 7.999 0 00-.002-11.316L70.396 2.343A7.978 7.978 0 0064.734 0a7.957 7.957 0 00-5.656 2.343L33 28.42V8.007C33 3.585 29.41 0 25 0c-4.418 0-8 3.59-8 8.007V44.42L5.342 56.078c-3.125 3.125-3.12 8.198-.002 11.316a7.999 7.999 0 0011.316-.003l.344-.343v52.945a8.11 8.11 0 000 .007c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8a8.11 8.11 0 00-.015-.498zM97 112V51.574L64.737 19.31 33 51.048V112h64z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/import-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-import-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M114.832 60.436s3.235-3.27 6.921.417c3.686 3.686.231 7.14.231 7.14l-42.153 42.92s-30.765 32.367-58.798 4.333C-7 87.213 24.59 55.623 24.59 55.623L67.363 12.85s22.725-24.6 43.587-3.738c20.862 20.862-3.96 43.09-3.96 43.09l-35.04 35.04S49.903 112.546 36.426 99.07c-13.476-13.477 11.83-35.523 11.83-35.523l35.04-35.04s3.902-3.902 7.78-.023c3.879 3.878.118 7.921.118 7.921l-35.04 35.04s-13.212 13.212-8.872 17.551c4.34 4.34 16.77-9.653 16.77-9.653l35.04-35.04s16.668-14.598 3.966-27.3c-13.893-13.892-27.565 3.702-27.565 3.702l-42.91 42.91s-23.698 23.698-3.658 43.738 43.012-4.385 43.012-4.385l42.895-42.533z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/info-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-info-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot; transform=&quot;translate(.05)&quot;&gt;&lt;path d=&quot;M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z&quot;/&gt;&lt;circle cx=&quot;64&quot; cy=&quot;32&quot; r=&quot;8&quot;/&gt;&lt;rect width=&quot;16&quot; height=&quot;56&quot; x=&quot;56&quot; y=&quot;48&quot; rx=&quot;8&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div caption="cib-instagram" collection="Brand" created="20210613063851924" creator="M0" library="CoreUI Icons" library_version="2.0.1" modified="20210925133128122" modifier="M0" tags="$:/tags/Image Icons Images SVG" title="$:/core/images/instagram">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-cui-cib-instagram tc-image-button&quot; viewBox=&quot;0 0 32 32&quot;&gt;&lt;path style=&quot;fill:#000000;&quot; d=&quot;M16 0c-4.349 0-4.891 0.021-6.593 0.093-1.709 0.084-2.865 0.349-3.885 0.745-1.052 0.412-1.948 0.959-2.833 1.849-0.891 0.885-1.443 1.781-1.849 2.833-0.396 1.020-0.661 2.176-0.745 3.885-0.077 1.703-0.093 2.244-0.093 6.593s0.021 4.891 0.093 6.593c0.084 1.704 0.349 2.865 0.745 3.885 0.412 1.052 0.959 1.948 1.849 2.833 0.885 0.891 1.781 1.443 2.833 1.849 1.020 0.391 2.181 0.661 3.885 0.745 1.703 0.077 2.244 0.093 6.593 0.093s4.891-0.021 6.593-0.093c1.704-0.084 2.865-0.355 3.885-0.745 1.052-0.412 1.948-0.959 2.833-1.849 0.891-0.885 1.443-1.776 1.849-2.833 0.391-1.020 0.661-2.181 0.745-3.885 0.077-1.703 0.093-2.244 0.093-6.593s-0.021-4.891-0.093-6.593c-0.084-1.704-0.355-2.871-0.745-3.885-0.412-1.052-0.959-1.948-1.849-2.833-0.885-0.891-1.776-1.443-2.833-1.849-1.020-0.396-2.181-0.661-3.885-0.745-1.703-0.077-2.244-0.093-6.593-0.093zM16 2.88c4.271 0 4.781 0.021 6.469 0.093 1.557 0.073 2.405 0.333 2.968 0.553 0.751 0.291 1.276 0.635 1.844 1.197 0.557 0.557 0.901 1.088 1.192 1.839 0.22 0.563 0.48 1.411 0.553 2.968 0.072 1.688 0.093 2.199 0.093 6.469s-0.021 4.781-0.099 6.469c-0.084 1.557-0.344 2.405-0.563 2.968-0.303 0.751-0.641 1.276-1.199 1.844-0.563 0.557-1.099 0.901-1.844 1.192-0.556 0.22-1.416 0.48-2.979 0.553-1.697 0.072-2.197 0.093-6.479 0.093s-4.781-0.021-6.48-0.099c-1.557-0.084-2.416-0.344-2.979-0.563-0.76-0.303-1.281-0.641-1.839-1.199-0.563-0.563-0.921-1.099-1.197-1.844-0.224-0.556-0.48-1.416-0.563-2.979-0.057-1.677-0.084-2.197-0.084-6.459 0-4.26 0.027-4.781 0.084-6.479 0.083-1.563 0.339-2.421 0.563-2.979 0.276-0.761 0.635-1.281 1.197-1.844 0.557-0.557 1.079-0.917 1.839-1.199 0.563-0.219 1.401-0.479 2.964-0.557 1.697-0.061 2.197-0.083 6.473-0.083zM16 7.787c-4.541 0-8.213 3.677-8.213 8.213 0 4.541 3.677 8.213 8.213 8.213 4.541 0 8.213-3.677 8.213-8.213 0-4.541-3.677-8.213-8.213-8.213zM16 21.333c-2.948 0-5.333-2.385-5.333-5.333s2.385-5.333 5.333-5.333c2.948 0 5.333 2.385 5.333 5.333s-2.385 5.333-5.333 5.333zM26.464 7.459c0 1.063-0.865 1.921-1.923 1.921-1.063 0-1.921-0.859-1.921-1.921 0-1.057 0.864-1.917 1.921-1.917s1.923 0.86 1.923 1.917z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/italic">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-italic tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M66.711 0h22.41L62.408 128H40z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div created="20150315234410875" modified="20150315235324760" tags="$:/tags/Image" title="$:/core/images/left-arrow">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-left-arrow tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path d=&quot;M0 64.177c0-2.026.771-4.054 2.317-5.6l55.98-55.98a7.92 7.92 0 0111.195.001c3.086 3.085 3.092 8.104.001 11.195L19.111 64.175l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.086-8.105 3.092-11.196.001l-55.98-55.98A7.892 7.892 0 010 64.177z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/line-width">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-line-width tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M16 18h96a2 2 0 000-4H16a2 2 0 100 4zm0 17h96a4 4 0 100-8H16a4 4 0 100 8zm0 21h96a6 6 0 000-12H16a6 6 0 100 12zm0 29h96c5.523 0 10-4.477 10-10s-4.477-10-10-10H16c-5.523 0-10 4.477-10 10s4.477 10 10 10zm0 43h96c8.837 0 16-7.163 16-16s-7.163-16-16-16H16c-8.837 0-16 7.163-16 16s7.163 16 16 16z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/link">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-link tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M42.263 69.38a31.919 31.919 0 006.841 10.13c12.5 12.5 32.758 12.496 45.255 0l22.627-22.628c12.502-12.501 12.497-32.758 0-45.255-12.5-12.5-32.758-12.496-45.254 0L49.104 34.255a32.333 32.333 0 00-2.666 3.019 36.156 36.156 0 0121.94.334l14.663-14.663c6.25-6.25 16.382-6.254 22.632-.004 6.248 6.249 6.254 16.373-.004 22.631l-22.62 22.62c-6.25 6.25-16.381 6.254-22.631.004a15.93 15.93 0 01-4.428-8.433 11.948 11.948 0 00-7.59 3.48l-6.137 6.137z&quot;/&gt;&lt;path d=&quot;M86.35 59.234a31.919 31.919 0 00-6.84-10.13c-12.5-12.5-32.758-12.497-45.255 0L11.627 71.732c-12.501 12.5-12.496 32.758 0 45.254 12.5 12.5 32.758 12.497 45.255 0L79.51 94.36a32.333 32.333 0 002.665-3.02 36.156 36.156 0 01-21.94-.333l-14.663 14.663c-6.25 6.25-16.381 6.253-22.63.004-6.25-6.249-6.255-16.374.003-22.632l22.62-22.62c6.25-6.25 16.381-6.253 22.631-.003a15.93 15.93 0 014.428 8.432 11.948 11.948 0 007.59-3.48l6.137-6.136z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/linkify">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-linkify-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M17.031 31.919H9.048V96.85h7.983v6.92H0V25h17.031v6.919zm24.66 0h-7.983V96.85h7.983v6.92H24.66V25h17.03v6.919zM67.77 56.422l11.975-3.903 2.306 7.096-12.063 3.903 7.628 10.379-6.12 4.435-7.63-10.467-7.45 10.2-5.943-4.523L58.1 63.518 45.95 59.35l2.306-7.096 12.064 4.17V43.825h7.45v12.596zM86.31 96.85h7.982V31.92H86.31V25h17.031v78.77H86.31v-6.92zm24.659 0h7.983V31.92h-7.983V25H128v78.77h-17.031v-6.92z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/list">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-list tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M87.748 128H23.999c-4.418 0-7.999-3.59-7.999-8.007V8.007C16 3.585 19.588 0 24 0h80c4.419 0 8 3.59 8 8.007V104H91.25c-.965 0-1.84.392-2.473 1.025a3.476 3.476 0 00-1.029 2.476V128zm8-.12l15.88-15.88h-15.88v15.88zM40 15.508A3.502 3.502 0 0143.5 12h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 20h-55a3.498 3.498 0 01-3.5-3.509v-.982zM32 22a6 6 0 100-12 6 6 0 000 12zm8 9.509A3.502 3.502 0 0143.5 28h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 36h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 44h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 52h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 60h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 68h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 76h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 84h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 92h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 100h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.505 3.505 0 0143.497 108h33.006A3.497 3.497 0 0180 111.509v.982A3.505 3.505 0 0176.503 116H43.497A3.497 3.497 0 0140 112.491v-.982zM32 38a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/list-bullet">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-list-bullet tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M11.636 40.273c6.427 0 11.637-5.21 11.637-11.637C23.273 22.21 18.063 17 11.636 17 5.21 17 0 22.21 0 28.636c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.637 0-6.426-5.21-11.636-11.637-11.636C5.21 51.91 0 57.12 0 63.545c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.636 0-6.427-5.21-11.637-11.637-11.637C5.21 86.818 0 92.028 0 98.455c0 6.426 5.21 11.636 11.636 11.636zM34.91 22.818H128v11.637H34.91V22.818zm0 34.91H128v11.636H34.91V57.727zm0 34.908H128v11.637H34.91V92.636z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/list-number">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-list-number tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M33.84 22.356H128v11.77H33.84v-11.77zm0 35.31H128v11.77H33.84v-11.77zm0 35.311H128v11.77H33.84v-11.77zM.38 42.631v-2.223h.998c.826 0 1.445-.14 1.858-.42.413-.28.619-.948.619-2.002V22.769c0-1.442-.193-2.336-.58-2.683-.385-.347-1.477-.52-3.275-.52v-2.143c3.502-.147 6.252-.955 8.25-2.423h2.117v22.865c0 .921.15 1.575.449 1.963.3.387.949.58 1.948.58h.998v2.223H.38zm-.3 35.356v-1.902c7.19-6.554 10.786-12.58 10.786-18.08 0-1.562-.326-2.81-.979-3.744-.652-.934-1.524-1.402-2.616-1.402-.893 0-1.655.317-2.287.952-.633.634-.95 1.364-.95 2.192 0 .974.247 1.829.74 2.563.106.16.16.28.16.36 0 .147-.16.28-.48.4-.213.08-.752.308-1.618.681-.839.374-1.358.561-1.558.561-.24 0-.512-.37-.819-1.111A6.2 6.2 0 010 57.064c0-1.949.849-3.544 2.547-4.785 1.698-1.242 3.798-1.862 6.302-1.862 2.463 0 4.53.67 6.202 2.012 1.67 1.341 2.506 3.093 2.506 5.256a8.644 8.644 0 01-.849 3.724c-.566 1.201-1.92 3.053-4.064 5.556a165.471 165.471 0 01-6.272 6.938h11.445l-1.019 5.726h-2.117c.08-.28.12-.534.12-.76 0-.388-.1-.631-.3-.731-.2-.1-.599-.15-1.198-.15H.08zm12.124 19.207c1.745.04 3.236.637 4.474 1.792 1.239 1.154 1.858 2.773 1.858 4.855 0 2.99-1.132 5.393-3.396 7.208-2.263 1.815-5 2.723-8.209 2.723-2.01 0-3.669-.384-4.974-1.151C.652 111.853 0 110.849 0 109.607c0-.774.27-1.398.809-1.872.54-.474 1.128-.71 1.768-.71.639 0 1.162.2 1.568.6.406.4.782 1.055 1.128 1.962.466 1.268 1.239 1.902 2.317 1.902 1.265 0 2.287-.477 3.066-1.431.78-.955 1.169-2.686 1.169-5.196 0-1.709-.12-3.023-.36-3.944-.24-.921-.792-1.382-1.658-1.382-.586 0-1.185.307-1.797.921-.493.494-.932.741-1.319.741-.333 0-.602-.147-.809-.44-.206-.294-.31-.574-.31-.841 0-.32.104-.594.31-.821.207-.227.69-.594 1.449-1.102 2.876-1.922 4.314-4.017 4.314-6.287 0-1.188-.306-2.092-.919-2.713a3.001 3.001 0 00-2.217-.93c-.799 0-1.525.263-2.177.79-.653.528-.979 1.158-.979 1.892 0 .641.253 1.235.76 1.782.172.2.259.367.259.5 0 .121-.57.428-1.708.922-1.139.494-1.854.74-2.147.74-.413 0-.75-.333-1.009-1-.26-.668-.39-1.282-.39-1.842 0-1.749.93-3.224 2.787-4.425 1.858-1.202 3.965-1.802 6.322-1.802 2.064 0 3.851.447 5.363 1.341 1.511.895 2.267 2.116 2.267 3.664 0 1.362-.57 2.623-1.708 3.784a13.387 13.387 0 01-3.945 2.784z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/locked-padlock">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-locked-padlock tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M96.472 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h8c.003-15.723.303-47.731 32.16-47.731 31.794 0 32.305 32.057 32.312 47.731zm-15.897 0H48.44c.002-16.287.142-32 15.719-32 15.684 0 16.977 16.136 16.415 32zM67.732 92.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/mail">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-mail tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M122.827 104.894a7.986 7.986 0 01-2.834.516H8.007c-.812 0-1.597-.12-2.335-.345l34.163-34.163 20.842 20.842a3.998 3.998 0 003.418 1.134 4.003 4.003 0 003.395-1.134L88.594 70.64c.075.09.155.176.24.26l33.993 33.994zm5.076-6.237c.064-.406.097-.823.097-1.247v-64c0-.669-.082-1.318-.237-1.94L94.23 65.006c.09.075.177.154.261.239l33.413 33.413zm-127.698.56A8.023 8.023 0 010 97.41v-64c0-.716.094-1.41.271-2.071l33.907 33.906L.205 99.218zM5.93 25.684a8.012 8.012 0 012.078-.273h111.986c.766 0 1.507.108 2.209.308L64.083 83.837 5.93 25.683z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/menu-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-menu-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;rect width=&quot;128&quot; height=&quot;16&quot; y=&quot;16&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;128&quot; height=&quot;16&quot; y=&quot;56&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;128&quot; height=&quot;16&quot; y=&quot;96&quot; rx=&quot;8&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/mono-block">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-mono-block tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M23.965 32.967h.357c.755 0 1.328.192 1.72.577.39.384.586.947.586 1.688 0 .824-.206 1.418-.618 1.782-.413.363-1.094.545-2.045.545h-6.31c-.965 0-1.65-.178-2.056-.535-.405-.356-.608-.954-.608-1.792 0-.811.203-1.391.608-1.74.406-.35 1.09-.525 2.055-.525h.734l-.86-2.453H8.471l-.902 2.453h.734c.95 0 1.632.178 2.044.535.413.356.619.933.619 1.73 0 .824-.206 1.418-.619 1.782-.412.363-1.094.545-2.044.545h-5.41c-.964 0-1.649-.182-2.054-.545-.406-.364-.608-.958-.608-1.782 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.719-.577h.356l5.62-15.641H6.835c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.95-.619-1.76 0-.825.207-1.42.619-1.783.412-.363 1.094-.545 2.044-.545h7.863c1.244 0 2.118.67 2.62 2.013v.063l6.647 18.2zM12.98 17.326l-3.04 8.848h6.08l-3.04-8.848zm22.402 9.372v6.395h3.145c2.223 0 3.788-.245 4.697-.734.908-.49 1.362-1.307 1.362-2.453 0-1.16-.433-1.985-1.3-2.474-.866-.49-2.383-.734-4.55-.734h-3.354zm10.693-2.327c1.524.559 2.642 1.324 3.355 2.295.713.972 1.07 2.212 1.07 3.722 0 1.272-.308 2.432-.923 3.48-.615 1.049-1.496 1.909-2.642 2.58a7.499 7.499 0 01-2.254.849c-.832.174-2.01.262-3.533.262H30.202c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.782 0-.741.189-1.304.566-1.688.378-.385.93-.577 1.657-.577h.356V17.326h-.356c-.727 0-1.28-.196-1.657-.587-.377-.392-.566-.965-.566-1.72 0-.81.203-1.401.608-1.771.406-.37 1.062-.556 1.971-.556h9.645c2.95 0 5.19.573 6.72 1.72 1.53 1.145 2.296 2.823 2.296 5.031 0 1.09-.234 2.052-.703 2.883-.468.832-1.163 1.513-2.086 2.045zM35.381 17.2v5.284h2.83c1.72 0 2.932-.203 3.638-.609.706-.405 1.06-1.09 1.06-2.054 0-.909-.319-1.573-.955-1.992-.636-.42-1.667-.63-3.093-.63h-3.48zm35.863-3.816c.28-.503.566-.86.86-1.07.293-.21.664-.314 1.111-.314.685 0 1.17.182 1.457.545.287.364.43.986.43 1.866l.042 5.452c0 .964-.157 1.614-.472 1.95-.314.335-.884.503-1.709.503-.587 0-1.037-.14-1.352-.42-.314-.28-.584-.796-.807-1.551-.364-1.328-.944-2.282-1.74-2.862-.797-.58-1.901-.87-3.313-.87-2.153 0-3.802.727-4.948 2.18-1.147 1.454-1.72 3.558-1.72 6.311 0 2.74.58 4.844 1.74 6.311 1.16 1.468 2.817 2.202 4.97 2.202 1.467 0 3.085-.49 4.854-1.468 1.768-.978 2.883-1.467 3.344-1.467.545 0 1.003.23 1.373.692.37.46.556 1.034.556 1.719 0 1.23-1.084 2.39-3.25 3.48-2.167 1.09-4.606 1.636-7.318 1.636-3.662 0-6.625-1.21-8.89-3.627-2.264-2.419-3.396-5.578-3.396-9.478 0-3.76 1.146-6.884 3.438-9.372 2.293-2.488 5.2-3.732 8.723-3.732.992 0 1.97.112 2.935.335.964.224 1.992.574 3.082 1.049zm10.22 19.583V17.326h-.356c-.755 0-1.328-.196-1.72-.587-.39-.392-.586-.965-.586-1.72 0-.81.21-1.401.629-1.771.42-.37 1.097-.556 2.034-.556h5.178c2.922 0 5.06.126 6.416.377 1.356.252 2.51.671 3.46 1.258 1.691 1.007 2.988 2.443 3.89 4.31.9 1.865 1.352 4.021 1.352 6.467 0 2.586-.514 4.847-1.541 6.783-1.028 1.936-2.485 3.4-4.372 4.393-.853.447-1.852.772-2.998.975-1.147.203-2.852.304-5.116.304h-6.269c-.965 0-1.65-.178-2.055-.535-.406-.356-.608-.954-.608-1.792 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.72-.577h.356zm5.41-15.725v15.725h1.195c2.642 0 4.592-.646 5.85-1.94 1.258-1.292 1.887-3.28 1.887-5.965 0-2.641-.64-4.612-1.918-5.912-1.28-1.3-3.205-1.95-5.777-1.95-.335 0-.59.003-.765.01a7.992 7.992 0 00-.472.032zm35.067-.126h-9.75v5.368h3.69v-.252c0-.797.175-1.39.524-1.782.35-.392.88-.587 1.594-.587.629 0 1.142.178 1.54.534.4.357.598.808.598 1.353 0 .028.007.118.021.272.014.154.021.308.021.462v4.34c0 .936-.167 1.607-.503 2.013-.335.405-.88.608-1.635.608-.713 0-1.251-.19-1.615-.567-.363-.377-.545-.936-.545-1.677v-.377h-3.69v6.269h9.75v-2.495c0-.937.178-1.608.534-2.013.357-.405.94-.608 1.75-.608.798 0 1.367.2 1.71.597.342.399.513 1.073.513 2.024v5.074c0 .755-.146 1.258-.44 1.51-.293.251-.873.377-1.74.377h-17.172c-.923 0-1.583-.182-1.982-.545-.398-.364-.597-.958-.597-1.782 0-.741.189-1.304.566-1.688.377-.385.93-.577 1.656-.577h.357V17.326h-.357c-.712 0-1.261-.2-1.646-.598-.384-.398-.576-.968-.576-1.709 0-.81.203-1.401.608-1.771.405-.37 1.062-.556 1.97-.556h17.173c.853 0 1.43.13 1.73.388.3.258.45.772.45 1.54v4.698c0 .95-.174 1.631-.524 2.044-.35.412-.915.618-1.698.618-.81 0-1.394-.21-1.75-.629-.357-.419-.535-1.097-.535-2.033v-2.202zM19.77 47.641c.267-.504.55-.86.85-1.07.3-.21.675-.314 1.122-.314.685 0 1.17.181 1.457.545.287.363.43.985.43 1.866l.042 5.451c0 .965-.157 1.615-.472 1.95-.314.336-.891.504-1.73.504-.587 0-1.045-.144-1.373-.43-.329-.287-.598-.8-.807-1.541-.378-1.342-.958-2.3-1.74-2.873-.783-.573-1.88-.86-3.292-.86-2.153 0-3.799.727-4.938 2.181-1.14 1.454-1.709 3.557-1.709 6.311s.598 4.882 1.793 6.385C10.599 67.248 12.294 68 14.488 68c.503 0 1.077-.06 1.72-.179a23.809 23.809 0 002.264-.555v-3.313h-2.37c-.95 0-1.624-.175-2.023-.524-.398-.35-.597-.93-.597-1.74 0-.84.199-1.437.597-1.793.399-.357 1.073-.535 2.024-.535h7.569c.978 0 1.667.175 2.065.524.398.35.598.937.598 1.762 0 .74-.2 1.31-.598 1.708-.398.399-.975.598-1.73.598h-.335v5.242c0 .447-.05.758-.147.933-.098.174-.293.353-.587.534-.797.476-2.062.895-3.795 1.258a25.576 25.576 0 01-5.263.546c-3.662 0-6.625-1.21-8.89-3.628-2.264-2.418-3.397-5.577-3.397-9.477 0-3.76 1.147-6.884 3.44-9.372 2.292-2.488 5.199-3.732 8.721-3.732.979 0 1.954.112 2.925.335.972.224 2.003.573 3.093 1.049zm15.84 3.941v4.823h6.857v-4.823h-.336c-.754 0-1.331-.195-1.73-.587-.398-.391-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.364 1.093-.545 2.044-.545h5.41c.95 0 1.624.181 2.023.545.398.363.597.957.597 1.782 0 .755-.192 1.328-.576 1.72-.385.39-.947.586-1.688.586h-.357v15.642h.357c.755 0 1.328.192 1.719.576.391.385.587.947.587 1.688 0 .825-.203 1.419-.608 1.782-.405.364-1.09.546-2.055.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.2-1.303.598-1.688.398-.384.975-.576 1.73-.576h.335v-6.186h-6.856v6.186h.335c.755 0 1.331.192 1.73.576.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.412.364-1.094.546-2.044.546h-5.41c-.964 0-1.65-.179-2.055-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.392-.384.965-.576 1.72-.576h.356V51.582h-.356c-.741 0-1.304-.195-1.688-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.073-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.335zm31.754 0v15.642h3.523c.95 0 1.632.178 2.044.534.412.357.618.933.618 1.73 0 .811-.21 1.402-.629 1.772-.419.37-1.097.556-2.033.556H58.433c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.957-.619-1.782 0-.81.203-1.39.608-1.74.406-.35 1.09-.524 2.055-.524h3.523V51.582h-3.523c-.95 0-1.632-.181-2.044-.545-.412-.363-.619-.95-.619-1.761 0-.825.203-1.412.608-1.761.406-.35 1.09-.524 2.055-.524h12.455c.992 0 1.684.174 2.075.524.392.35.587.936.587 1.761 0 .81-.202 1.398-.608 1.761-.405.364-1.09.545-2.054.545h-3.523zm30.496 0v11.994c0 1.873-.122 3.228-.367 4.067a5.876 5.876 0 01-1.227 2.244c-.74.852-1.768 1.495-3.082 1.929-1.314.433-2.893.65-4.738.65-1.3 0-2.555-.126-3.764-.378a16.843 16.843 0 01-3.491-1.132c-.615-.28-1.017-.643-1.206-1.09-.188-.448-.283-1.175-.283-2.18v-4.32c0-1.202.175-2.04.525-2.516.349-.475.957-.713 1.824-.713 1.244 0 1.929.915 2.054 2.747.014.321.035.566.063.733.168 1.622.545 2.73 1.133 3.324.587.594 1.523.89 2.81.89 1.593 0 2.714-.422 3.364-1.268.65-.845.975-2.386.975-4.623V51.582H88.93c-.95 0-1.632-.181-2.044-.545-.413-.363-.619-.95-.619-1.761 0-.825.2-1.412.598-1.761.398-.35 1.086-.524 2.065-.524h10.693c.979 0 1.667.174 2.065.524.399.35.598.936.598 1.761 0 .81-.206 1.398-.619 1.761-.412.364-1.093.545-2.044.545h-1.761zm14.644 0v6.353l6.48-6.478c-.728-.084-1.238-.29-1.531-.619-.294-.328-.44-.85-.44-1.562 0-.825.198-1.419.597-1.782.398-.364 1.073-.545 2.023-.545h5.137c.95 0 1.625.181 2.023.545.399.363.598.957.598 1.782 0 .769-.2 1.345-.598 1.73-.398.384-.982.576-1.75.576h-.483l-6.101 6.06c1.132.839 2.167 1.94 3.103 3.302.937 1.363 2.034 3.456 3.292 6.28h.692c.825 0 1.44.188 1.845.566.405.377.608.943.608 1.698 0 .825-.206 1.419-.619 1.782-.412.364-1.093.546-2.044.546h-2.579c-1.132 0-2.048-.762-2.746-2.286-.126-.28-.224-.503-.294-.67-.923-1.958-1.768-3.467-2.537-4.53a16.616 16.616 0 00-2.705-2.914l-1.97 1.887v3.92h.335c.755 0 1.331.193 1.73.577.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.413.364-1.094.546-2.045.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.391-.384.965-.576 1.72-.576h.356V51.582h-.357c-.74 0-1.303-.195-1.687-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.072-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.336zM13.44 96.326l4.005-11.889c.251-.782.6-1.352 1.048-1.709.447-.356 1.041-.534 1.782-.534h3.271c.95 0 1.632.182 2.044.545.413.363.619.957.619 1.782 0 .755-.2 1.328-.598 1.72-.398.39-.975.587-1.73.587h-.335l.587 15.641h.357c.754 0 1.32.192 1.698.577.377.384.566.947.566 1.687 0 .825-.2 1.42-.598 1.783-.398.363-1.072.545-2.023.545h-4.718c-.95 0-1.624-.178-2.023-.535-.398-.356-.597-.954-.597-1.793 0-.74.192-1.303.576-1.687.385-.385.954-.577 1.709-.577h.335l-.293-12.79-3.061 9.52c-.224.712-.542 1.226-.954 1.54-.413.315-.982.472-1.709.472-.727 0-1.303-.157-1.73-.472-.426-.314-.751-.828-.975-1.54l-3.04-9.52-.294 12.79h.336c.755 0 1.324.192 1.709.577.384.384.576.947.576 1.687 0 .825-.202 1.42-.608 1.783-.405.363-1.076.545-2.013.545H2.621c-.937 0-1.608-.182-2.013-.545-.405-.364-.608-.958-.608-1.783 0-.74.192-1.303.577-1.687.384-.385.954-.577 1.708-.577h.336l.608-15.641h-.336c-.754 0-1.331-.196-1.73-.588-.398-.39-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.363 1.093-.545 2.044-.545h3.27c.728 0 1.311.175 1.752.524.44.35.8.923 1.08 1.72l4.109 11.888zm30.454 2.054V86.828H42.74c-.922 0-1.583-.182-1.981-.546-.398-.363-.598-.95-.598-1.76 0-.812.2-1.402.598-1.773.398-.37 1.059-.555 1.981-.555h5.955c.909 0 1.566.185 1.97.555.406.37.609.961.609 1.772 0 .741-.192 1.31-.577 1.709-.384.398-.933.598-1.646.598h-.356v19.038c0 .657-.07 1.069-.21 1.237-.14.167-.454.251-.943.251h-2.097c-.67 0-1.143-.07-1.415-.21-.273-.14-.507-.384-.703-.733l-8.722-15.327v11.385h1.216c.909 0 1.559.175 1.95.524.392.35.587.93.587 1.74 0 .825-.199 1.42-.597 1.783-.399.363-1.045.545-1.94.545h-6.017c-.909 0-1.566-.182-1.971-.545-.406-.364-.608-.958-.608-1.783 0-.74.188-1.303.566-1.687.377-.385.936-.577 1.677-.577h.336V86.828h-.336c-.713 0-1.265-.2-1.656-.598-.392-.398-.587-.968-.587-1.709 0-.81.206-1.401.618-1.772.413-.37 1.066-.555 1.96-.555h3.44c.824 0 1.383.108 1.677.325.293.216.622.653.985 1.31l7.989 14.551zM64.66 86.366c-1.803 0-3.218.727-4.245 2.18-1.028 1.455-1.541 3.474-1.541 6.06 0 2.586.517 4.613 1.551 6.08 1.034 1.468 2.446 2.202 4.235 2.202 1.804 0 3.222-.73 4.257-2.19 1.034-1.461 1.551-3.492 1.551-6.092 0-2.586-.513-4.605-1.54-6.06-1.028-1.453-2.45-2.18-4.268-2.18zm0-4.864c3.44 0 6.27 1.23 8.492 3.69 2.223 2.46 3.334 5.598 3.334 9.414 0 3.844-1.104 6.99-3.313 9.436-2.208 2.446-5.046 3.669-8.513 3.669-3.424 0-6.255-1.234-8.491-3.701-2.237-2.467-3.355-5.602-3.355-9.404 0-3.83 1.108-6.971 3.323-9.424 2.216-2.454 5.057-3.68 8.523-3.68zM87.461 98.17v4.298h2.16c.908 0 1.555.175 1.94.524.384.35.576.93.576 1.74 0 .825-.196 1.42-.587 1.783-.392.363-1.035.545-1.93.545h-7.254c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.783 0-.74.189-1.303.566-1.687.378-.385.93-.577 1.657-.577h.356V86.828h-.356c-.713 0-1.262-.2-1.646-.598-.385-.398-.577-.968-.577-1.709 0-.81.203-1.401.608-1.772.406-.37 1.063-.555 1.971-.555h8.66c3.424 0 6.014.657 7.768 1.97 1.754 1.315 2.631 3.25 2.631 5.809 0 2.697-.873 4.738-2.62 6.122-1.748 1.384-4.34 2.076-7.78 2.076h-3.564zm0-11.343v6.625h2.977c1.65 0 2.89-.28 3.722-.839.832-.559 1.248-1.397 1.248-2.516 0-1.048-.43-1.855-1.29-2.421-.86-.566-2.086-.85-3.68-.85h-2.977zm27.267 20.568l-1.636 1.636a12.37 12.37 0 011.772-.44c.58-.098 1.15-.147 1.709-.147 1.104 0 2.268.164 3.491.492 1.223.329 1.967.493 2.233.493.447 0 1.03-.15 1.75-.45.72-.301 1.206-.452 1.458-.452.517 0 .947.2 1.29.598.342.398.513.898.513 1.5 0 .796-.472 1.474-1.415 2.033-.944.56-2.1.839-3.47.839-.937 0-2.139-.22-3.607-.66-1.467-.441-2.53-.661-3.187-.661-.992 0-2.11.272-3.354.817-1.244.546-2.013.818-2.307.818a2.14 2.14 0 01-1.53-.597c-.42-.399-.63-.878-.63-1.437 0-.391.134-.807.4-1.247.265-.44.733-1.01 1.404-1.709l2.118-2.139c-2.335-.852-4.194-2.386-5.578-4.602-1.384-2.215-2.075-4.763-2.075-7.642 0-3.802 1.104-6.909 3.312-9.32 2.209-2.411 5.053-3.617 8.534-3.617 3.467 0 6.304 1.209 8.513 3.627 2.208 2.418 3.312 5.522 3.312 9.31 0 3.774-1.097 6.884-3.291 9.33-2.195 2.446-4.977 3.67-8.345 3.67a22.5 22.5 0 01-1.384-.043zm1.195-21.03c-1.803 0-3.218.727-4.246 2.18-1.027 1.455-1.54 3.474-1.54 6.06 0 2.586.516 4.613 1.55 6.08 1.035 1.468 2.447 2.202 4.236 2.202 1.803 0 3.222-.73 4.256-2.19 1.035-1.461 1.552-3.492 1.552-6.092 0-2.586-.514-4.605-1.541-6.06-1.028-1.453-2.45-2.18-4.267-2.18z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/mono-line">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-mono-line tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M60.437 84.523h.908c1.922 0 3.381.489 4.378 1.468.997.979 1.495 2.411 1.495 4.298 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388h-16.07c-2.456 0-4.2-.454-5.232-1.361-1.032-.908-1.548-2.43-1.548-4.565 0-2.065.516-3.542 1.548-4.432 1.032-.89 2.776-1.334 5.232-1.334h1.869l-2.19-6.247H20.983l-2.296 6.247h1.87c2.42 0 4.155.453 5.205 1.361 1.05.908 1.575 2.376 1.575 4.405 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388H6.781c-2.456 0-4.2-.463-5.233-1.388C.516 93.9 0 92.389 0 90.289c0-1.887.498-3.32 1.495-4.298.997-.979 2.456-1.468 4.378-1.468h.908l14.308-39.83h-4.271c-2.42 0-4.156-.462-5.206-1.387-1.05-.926-1.575-2.42-1.575-4.485 0-2.1.525-3.613 1.575-4.538 1.05-.926 2.785-1.388 5.206-1.388h20.021c3.168 0 5.392 1.708 6.674 5.125v.16l16.924 46.343zm-27.976-39.83L24.72 67.225h15.483l-7.742-22.53zM89.506 68.56v16.284h8.008c5.66 0 9.646-.623 11.96-1.869 2.313-1.245 3.47-3.328 3.47-6.246 0-2.955-1.103-5.055-3.31-6.3-2.207-1.246-6.069-1.869-11.586-1.869h-8.542zm27.229-5.926c3.88 1.423 6.727 3.372 8.542 5.846 1.815 2.474 2.723 5.633 2.723 9.477 0 3.239-.783 6.193-2.35 8.862-1.565 2.67-3.808 4.859-6.726 6.567-1.709.997-3.622 1.718-5.74 2.163-2.118.445-5.116.667-8.996.667h-27.87c-2.349 0-4.03-.463-5.045-1.388-1.014-.926-1.521-2.438-1.521-4.538 0-1.887.48-3.32 1.441-4.298.961-.979 2.367-1.468 4.218-1.468h.907v-39.83h-.907c-1.851 0-3.257-.498-4.218-1.494-.961-.997-1.441-2.456-1.441-4.378 0-2.065.516-3.568 1.548-4.512 1.032-.943 2.705-1.414 5.018-1.414h24.56c7.51 0 13.214 1.459 17.111 4.377 3.898 2.92 5.847 7.19 5.847 12.814 0 2.776-.597 5.223-1.789 7.341-1.192 2.118-2.963 3.853-5.312 5.206zm-27.23-18.26v13.455h7.208c4.378 0 7.466-.516 9.264-1.549 1.797-1.032 2.696-2.776 2.696-5.232 0-2.313-.81-4.004-2.43-5.072-1.619-1.068-4.244-1.602-7.874-1.602h-8.863z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/new-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-new-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M56 72H8.007C3.591 72 0 68.418 0 64c0-4.41 3.585-8 8.007-8H56V8.007C56 3.591 59.582 0 64 0c4.41 0 8 3.585 8 8.007V56h47.993c4.416 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H72v47.993c0 4.416-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V72z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/new-here-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-new-here-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M55.838 20.935l-3.572.938c-3.688.968-8.23 4.43-10.136 7.731L3.37 96.738c-1.905 3.3-.771 7.524 2.534 9.432l33.717 19.466c3.297 1.904 7.53.78 9.435-2.521l38.76-67.134c1.905-3.3 2.632-8.963 1.623-12.646L83.285 20.88c-1.009-3.68-4.821-5.884-8.513-4.915l-7.603 1.995.043.287c.524 3.394 2.053 7.498 4.18 11.55.418.163.829.36 1.23.59a8.864 8.864 0 014.438 8.169c.104.132.21.264.316.395l-.386.318a8.663 8.663 0 01-1.082 3.137c-2.42 4.192-7.816 5.608-12.051 3.163-4.12-2.379-5.624-7.534-3.476-11.671-2.177-4.394-3.788-8.874-4.543-12.964z&quot;/&gt;&lt;path d=&quot;M69.554 44.76c-5.944-7.476-10.74-17.196-11.955-25.059-1.68-10.875 3.503-18.216 15.082-18.04 10.407.158 19.975 5.851 24.728 13.785 5.208 8.695 2.95 17.868-6.855 20.496l-2.037-7.601c4.232-1.134 4.999-4.248 2.24-8.853-3.37-5.626-10.465-9.848-18.146-9.965-6.392-.097-8.31 2.62-7.323 9.01.999 6.465 5.318 15.138 10.582 21.65l-.072.06c.559 1.553-4.17 6.44-5.938 4.888l-.005.004-.028-.034a1.323 1.323 0 01-.124-.135 2.618 2.618 0 01-.149-.205z&quot;/&gt;&lt;rect width=&quot;16&quot; height=&quot;48&quot; x=&quot;96&quot; y=&quot;80&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;48&quot; height=&quot;16&quot; x=&quot;80&quot; y=&quot;96&quot; rx=&quot;8&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/new-image-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-new-image-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M81.362 73.627l15.826-27.41a2.626 2.626 0 00-.962-3.59l-50.01-28.872a2.626 2.626 0 00-3.588.961L30.058 36.49l10.04-5.261c3.042-1.595 6.771.114 7.55 3.46l3.607 17.702 9.88.85a5.25 5.25 0 014.571 3.77c.034.115.1.344.199.671.165.553.353 1.172.562 1.843.595 1.914 1.23 3.85 1.872 5.678.207.588.412 1.156.614 1.701.625 1.685 1.209 3.114 1.725 4.207.255.54.485.977.726 1.427.214.212.547.425 1.011.622 1.141.482 2.784.74 4.657.758.864.008 1.71-.034 2.492-.11.448-.043.753-.085.871-.104.315-.053.625-.077.927-.076zM37.47 2.649A5.257 5.257 0 0144.649.725l63.645 36.746a5.257 5.257 0 011.923 7.178L73.47 108.294a5.257 5.257 0 01-7.177 1.923L2.649 73.47a5.257 5.257 0 01-1.924-7.177L37.471 2.649zm42.837 50.49a5.25 5.25 0 105.25-9.092 5.25 5.25 0 00-5.25 9.093zM96 112h-7.993c-4.419 0-8.007-3.582-8.007-8 0-4.41 3.585-8 8.007-8H96v-7.993C96 83.588 99.582 80 104 80c4.41 0 8 3.585 8 8.007V96h7.993c4.419 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H112v7.993c0 4.419-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V112zM33.347 51.791c7.428 7.948 9.01 10.69 7.449 13.394-1.56 2.703-13.838-2.328-16.094 1.58-2.256 3.908-.907 3.258-2.437 5.908l19.73 11.39s-5.605-8.255-4.235-10.628c2.515-4.356 8.77-1.256 10.365-4.019 2.414-4.181-5.103-9.639-14.778-17.625z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/new-journal-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-new-journal-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M102.545 112.818v11.818c0 1.306 1.086 2.364 2.425 2.364h6.06c1.34 0 2.425-1.058 2.425-2.364v-11.818h12.12c1.34 0 2.425-1.058 2.425-2.363v-5.91c0-1.305-1.085-2.363-2.424-2.363h-12.121V90.364c0-1.306-1.086-2.364-2.425-2.364h-6.06c-1.34 0-2.425 1.058-2.425 2.364v11.818h-12.12c-1.34 0-2.425 1.058-2.425 2.363v5.91c0 1.305 1.085 2.363 2.424 2.363h12.121zM60.016 4.965c-4.781-2.76-10.897-1.118-13.656 3.66L5.553 79.305A9.993 9.993 0 009.21 92.963l51.04 29.468c4.78 2.76 10.897 1.118 13.655-3.66l40.808-70.681a9.993 9.993 0 00-3.658-13.656L60.016 4.965zm-3.567 27.963a6 6 0 106-10.393 6 6 0 00-6 10.393zm31.697 17.928a6 6 0 106-10.392 6 6 0 00-6 10.392z&quot;/&gt;&lt;text class=&quot;tc-fill-background&quot; font-family=&quot;Helvetica&quot; font-size=&quot;47.172&quot; font-weight=&quot;bold&quot; transform=&quot;rotate(30 25.742 95.82)&quot;&gt;&lt;tspan x=&quot;42&quot; y=&quot;77.485&quot; text-anchor=&quot;middle&quot;&gt;&lt;&lt;now &quot;DD&quot;&gt;&gt;&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/opacity">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-opacity tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M102.362 65a51.595 51.595 0 01-1.942 6H82.584a35.867 35.867 0 002.997-6h16.78zm.472-2c.423-1.961.734-3.963.929-6H87.656a35.78 35.78 0 01-1.368 6h16.546zm-3.249 10a51.847 51.847 0 01-3.135 6H75.812a36.205 36.205 0 005.432-6h18.341zm-4.416 8c-1.424 2.116-3 4.12-4.71 6H60.46a35.843 35.843 0 0012.874-6h21.834zm-7.513-34h16.107C101.247 20.627 79.033 0 52 0 23.281 0 0 23.281 0 52c0 25.228 17.965 46.26 41.8 51h20.4a51.66 51.66 0 0015.875-6H39v-2h42.25a52.257 52.257 0 007.288-6H39v-2h4.539C27.739 83.194 16 68.968 16 52c0-19.882 16.118-36 36-36 18.186 0 33.222 13.484 35.656 31zm.22 2h16.039a52.823 52.823 0 010 6H87.877a36.483 36.483 0 000-6z&quot;/&gt;&lt;path d=&quot;M76 128c28.719 0 52-23.281 52-52s-23.281-52-52-52-52 23.281-52 52 23.281 52 52 52zm0-16c19.882 0 36-16.118 36-36S95.882 40 76 40 40 56.118 40 76s16.118 36 36 36z&quot;/&gt;&lt;path d=&quot;M37 58h53v4H37v-4zm3-8h53v4H40v-4zm0-8h53v4H40v-4zm-8 24h53v4H32v-4zm-2 8h53v4H30v-4zm-3 8h53v4H27v-4z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/open-window">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-open-window tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M16 112h88.994c3.87 0 7.006 3.59 7.006 8 0 4.418-3.142 8-7.006 8H7.006C3.136 128 0 124.41 0 120a9.321 9.321 0 010-.01V24.01C0 19.586 3.59 16 8 16c4.418 0 8 3.584 8 8.01V112z&quot;/&gt;&lt;path d=&quot;M96 43.196V56a8 8 0 1016 0V24c0-4.41-3.585-8-8.007-8H72.007C67.588 16 64 19.582 64 24c0 4.41 3.585 8 8.007 8H84.57l-36.3 36.299a8 8 0 00-.001 11.316c3.117 3.117 8.19 3.123 11.316-.003L96 43.196zM32 7.999C32 3.581 35.588 0 40 0h80c4.419 0 8 3.588 8 8v80c0 4.419-3.588 8-8 8H40c-4.419 0-8-3.588-8-8V8z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/options-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-options-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M110.488 76a47.712 47.712 0 01-5.134 12.384l6.724 6.724c3.123 3.123 3.132 8.192.011 11.313l-5.668 5.668c-3.12 3.12-8.186 3.117-11.313-.01l-6.724-6.725c-3.82 2.258-7.98 4-12.384 5.134v9.505c0 4.417-3.578 8.007-7.992 8.007h-8.016C55.58 128 52 124.415 52 119.993v-9.505a47.712 47.712 0 01-12.384-5.134l-6.724 6.725c-3.123 3.122-8.192 3.131-11.313.01l-5.668-5.668c-3.12-3.12-3.116-8.186.01-11.313l6.725-6.724c-2.257-3.82-4-7.98-5.134-12.384H8.007C3.591 76 0 72.422 0 68.01v-8.017C0 55.58 3.585 52 8.007 52h9.505a47.712 47.712 0 015.134-12.383l-6.724-6.725c-3.123-3.122-3.132-8.191-.011-11.312l5.668-5.669c3.12-3.12 8.186-3.116 11.313.01l6.724 6.725c3.82-2.257 7.98-4 12.384-5.134V8.007C52 3.591 55.578 0 59.992 0h8.016C72.42 0 76 3.585 76 8.007v9.505a47.712 47.712 0 0112.384 5.134l6.724-6.724c3.123-3.123 8.192-3.132 11.313-.01l5.668 5.668c3.12 3.12 3.116 8.186-.01 11.312l-6.725 6.725c2.257 3.82 4 7.979 5.134 12.383h9.505c4.416 0 8.007 3.578 8.007 7.992v8.017c0 4.411-3.585 7.991-8.007 7.991h-9.505zM64 96c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/paint">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-paint tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M83.527 76.19C90.43 69.287 91.892 59 87.91 50.665l37.903-37.902c2.919-2.92 2.913-7.659 0-10.572a7.474 7.474 0 00-10.572 0L77.338 40.093c-8.335-3.982-18.622-2.521-25.526 4.383l31.715 31.715zm-2.643 2.644L49.169 47.119S8.506 81.243 0 80.282c0 0 3.782 5.592 6.827 8.039 14.024-5.69 37.326-24.6 37.326-24.6l.661.66S19.45 90.222 9.18 92.047c1.222 1.44 4.354 4.053 6.247 5.776 5.417-1.488 34.733-28.57 34.733-28.57l.661.66-32.407 31.022 5.285 5.286L56.106 75.2l.662.66s-27.864 30.536-28.684 32.432c0 0 6.032 6.853 7.569 7.824.702-2.836 27.884-33.485 27.884-33.485l.661.66s-20.597 23.755-24.964 36.732c3.21 3.549 7.5 5.137 10.926 6.298-2.19-11.817 30.724-47.487 30.724-47.487z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/palette">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-palette tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M80.247 39.182a93.52 93.52 0 00-16.228-1.4C28.662 37.781 0 57.131 0 81.002c0 9.642 4.676 18.546 12.58 25.735C23.504 91.19 26.34 72.395 36.89 63.562c15.183-12.713 26.538-7.828 26.538-7.828l16.82-16.552zm26.535 9.655c13.049 7.913 21.257 19.392 21.257 32.166 0 9.35.519 17.411-11.874 25.08-10.797 6.681-3.824-6.536-11.844-10.898s-19.946 1.308-18.213 7.906c3.2 12.181 19.422 11.455 6.314 16.658-13.107 5.202-18.202 4.476-28.403 4.476-7.821 0-15.315-.947-22.243-2.68 9.844-4.197 27.88-12.539 33.354-19.456C82.788 92.409 87.37 80 83.324 72.484c-.194-.359 11.215-11.668 23.458-23.647zM1.134 123.867l-.66.002c33.479-14.94 22.161-64.226 58.818-64.226.317 1.418.644 2.944 1.062 4.494-25.907-4.166-23.567 48.031-59.22 59.73zm.713-.007c38.872-.506 78.152-22.347 78.152-44.813-9.27 0-14.073-3.48-16.816-7.942-16.597-7.003-30.365 45.715-61.336 52.755zm65.351-64.008c-4.45 4.115 4.886 16.433 11.318 11.318l45.27-45.27c11.317-11.318 0-22.635-11.318-11.318-11.317 11.318-33.518 34.405-45.27 45.27z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/permalink-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-permalink-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M80.483 48l-7.387 32h-25.58l7.388-32h25.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L100.598 32h3.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-7.096l-7.387 32H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H85.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L69.402 96h-25.58L38.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L27.402 96h-3.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h7.096l7.387-32H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h18.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L58.598 32h25.58z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/permaview-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-permaview-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M81.483 48l-1.846 8h-5.58l1.847-8h5.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L101.598 32h2.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-6.096l-1.847 8h7.944c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H92.364l-1.846 8H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H86.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L70.402 96h-5.58L59.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L48.402 96h-5.58L37.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L26.402 96h-2.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h6.096l1.847-8h-7.944C19.59 72 16 68.418 16 64c0-4.41 3.581-8 8-8h11.637l1.846-8H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h17.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L57.598 32h5.58L68.8 7.642c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L79.598 32h5.58zM53.904 48l-1.847 8h5.58l1.846-8h-5.579zm22.039 24l-1.847 8h-5.58l1.847-8h5.58zm-27.58 0l-1.846 8h5.579l1.847-8h-5.58z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/picture">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-picture tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M112 68.233v-48.23A4.001 4.001 0 00107.997 16H20.003A4.001 4.001 0 0016 20.003v38.31l9.241-14.593c2.8-4.422 9.023-5.008 12.6-1.186l18.247 20.613 13.687-6.407a8 8 0 018.903 1.492 264.97 264.97 0 002.92 2.739 249.44 249.44 0 006.798 6.066 166.5 166.5 0 002.106 1.778c2.108 1.747 3.967 3.188 5.482 4.237.748.518 1.383.92 2.044 1.33.444.117 1.046.144 1.809.05 1.873-.233 4.238-1.144 6.723-2.547a36.016 36.016 0 003.205-2.044c.558-.4.93-.686 1.07-.802.376-.31.765-.577 1.165-.806zM0 8.007A8.01 8.01 0 018.007 0h111.986A8.01 8.01 0 01128 8.007v111.986a8.01 8.01 0 01-8.007 8.007H8.007A8.01 8.01 0 010 119.993V8.007zM95 42a8 8 0 100-16 8 8 0 000 16zM32 76c15.859 4.83 20.035 7.244 20.035 12S32 95.471 32 102.347c0 6.876 1.285 4.99 1.285 9.653H68s-13.685-6.625-13.685-10.8c0-7.665 10.615-8.34 10.615-13.2 0-7.357-14.078-8.833-32.93-12z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/plugin-generic-language">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M61.207 68.137c-4.324 2.795-6.999 6.656-6.999 10.921 0 7.906 9.19 14.424 21.042 15.336 2.162 3.902 8.598 6.785 16.318 7.01-5.126-1.125-9.117-3.742-10.62-7.01C92.805 93.487 102 86.967 102 79.059c0-8.53-10.699-15.445-23.896-15.445-6.599 0-12.572 1.729-16.897 4.524zm12.794-14.158c-4.324 2.795-10.298 4.524-16.897 4.524-2.619 0-5.14-.272-7.497-.775-3.312 2.25-8.383 3.69-14.067 3.69l-.255-.002c4.119-.892 7.511-2.747 9.478-5.13-6.925-2.704-11.555-7.617-11.555-13.228 0-8.53 10.699-15.445 23.896-15.445C70.301 27.613 81 34.528 81 43.058c0 4.265-2.675 8.126-6.999 10.921zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/plugin-generic-plugin">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M40.397 76.446V95.34h14.12l-.001-.005a6.912 6.912 0 005.364-11.593l.046-.023a6.912 6.912 0 119.979.526l.086.055a6.914 6.914 0 004.408 10.948l-.023.092h21.32V75.568l-.15.038a6.912 6.912 0 00-11.593-5.364l-.022-.046a6.912 6.912 0 11.526-9.979l.055-.086a6.914 6.914 0 0010.948-4.408c.079.018.158.038.236.059v-15.74h-21.32l.023-.094a6.914 6.914 0 01-4.408-10.947 10.23 10.23 0 00-.086-.055 6.912 6.912 0 10-9.979-.526l-.046.023a6.912 6.912 0 01-5.364 11.593l.001.005h-14.12v12.847A6.912 6.912 0 0129.5 59.843l-.054.086a6.912 6.912 0 10-.526 9.979l.023.046a6.912 6.912 0 0111.455 6.492zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/plugin-generic-theme">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M29.408 91.472L51.469 69.41l-.004-.005a2.22 2.22 0 01.004-3.146c.87-.87 2.281-.872 3.147-.005l9.465 9.464a2.22 2.22 0 01-.005 3.147c-.87.87-2.28.871-3.147.005l-.005-.005-22.061 22.062a6.686 6.686 0 11-9.455-9.455zM60.802 66.38c-2.436-2.704-4.465-5.091-5.817-6.869-6.855-9.014-10.313-4.268-14.226 0-3.913 4.268 1.03 7.726-2.683 10.741-3.713 3.015-3.484 4.06-9.752-1.455-6.267-5.516-6.7-7.034-3.823-10.181 2.877-3.147 5.281 1.808 11.159-3.785 5.877-5.593.94-10.55.94-10.55s12.237-25.014 28.588-23.167c16.351 1.848-6.186-2.392-11.792 17.226-2.4 8.4.447 6.42 4.998 9.968 1.394 1.086 6.03 4.401 11.794 8.685l20.677-20.676 1.615-4.766 7.84-4.689 3.151 3.152-4.688 7.84-4.766 1.615-20.224 20.223c12.663 9.547 28.312 22.146 28.312 26.709 0 7.217-3.071 11.526-9.535 9.164-4.693-1.715-18.768-15.192-28.753-25.897l-2.893 2.893-3.151-3.152 3.029-3.029zM63.953 0l54.56 32v64l-54.56 32-54.56-32V32l54.56-32z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/preview-closed">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-preview-closed tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M.088 64a7.144 7.144 0 001.378 5.458C16.246 88.818 39.17 100.414 64 100.414c24.83 0 47.753-11.596 62.534-30.956A7.144 7.144 0 00127.912 64C110.582 78.416 88.304 87.086 64 87.086 39.696 87.086 17.418 78.416.088 64z&quot;/&gt;&lt;rect width=&quot;4&quot; height=&quot;16&quot; x=&quot;62&quot; y=&quot;96&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;4&quot; height=&quot;16&quot; x=&quot;78&quot; y=&quot;93&quot; rx=&quot;4&quot; transform=&quot;rotate(-5 80 101)&quot;/&gt;&lt;rect width=&quot;4&quot; height=&quot;16&quot; x=&quot;46&quot; y=&quot;93&quot; rx=&quot;4&quot; transform=&quot;rotate(5 48 101)&quot;/&gt;&lt;rect width=&quot;4&quot; height=&quot;16&quot; x=&quot;30&quot; y=&quot;88&quot; rx=&quot;4&quot; transform=&quot;rotate(10 32 96)&quot;/&gt;&lt;rect width=&quot;4&quot; height=&quot;16&quot; x=&quot;94&quot; y=&quot;88&quot; rx=&quot;4&quot; transform=&quot;rotate(-10 96 96)&quot;/&gt;&lt;rect width=&quot;4&quot; height=&quot;16&quot; x=&quot;110&quot; y=&quot;80&quot; rx=&quot;4&quot; transform=&quot;rotate(-20 112 88)&quot;/&gt;&lt;rect width=&quot;4&quot; height=&quot;16&quot; x=&quot;14&quot; y=&quot;80&quot; rx=&quot;4&quot; transform=&quot;rotate(20 16 88)&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/preview-open">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-preview-open tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M64.11 99.588c-24.83 0-47.754-11.596-62.534-30.957a7.148 7.148 0 010-8.675C16.356 40.596 39.28 29 64.11 29c24.83 0 47.753 11.596 62.534 30.956a7.148 7.148 0 010 8.675c-14.78 19.36-37.703 30.957-62.534 30.957zm46.104-32.007c1.44-1.524 1.44-3.638 0-5.162C99.326 50.9 82.439 44 64.147 44S28.968 50.9 18.08 62.42c-1.44 1.523-1.44 3.637 0 5.16C28.968 79.1 45.855 86 64.147 86s35.179-6.9 46.067-18.42z&quot;/&gt;&lt;path d=&quot;M63.5 88C76.479 88 87 77.479 87 64.5S76.479 41 63.5 41 40 51.521 40 64.5 50.521 88 63.5 88z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/print-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-print-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M112 71V30.5h-.032c-.035-2-.816-3.99-2.343-5.516L86.998 2.357A7.978 7.978 0 0081 .02V0H24a8 8 0 00-8 8v63h8V8h57v14.5c0 4.422 3.582 8 8 8h15V71h8z&quot;/&gt;&lt;rect width=&quot;64&quot; height=&quot;8&quot; x=&quot;32&quot; y=&quot;36&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;64&quot; height=&quot;8&quot; x=&quot;32&quot; y=&quot;52&quot; rx=&quot;4&quot;/&gt;&lt;rect width=&quot;40&quot; height=&quot;8&quot; x=&quot;32&quot; y=&quot;20&quot; rx=&quot;4&quot;/&gt;&lt;path d=&quot;M0 80.005C0 71.165 7.156 64 16 64h96c8.836 0 16 7.155 16 16.005v31.99c0 8.84-7.156 16.005-16 16.005H16c-8.836 0-16-7.155-16-16.005v-31.99zM104 96a8 8 0 100-16 8 8 0 000 16z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/quote">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-quote tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M51.219 117.713V62.199H27.427c0-8.891 1.683-16.401 5.047-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.36 3.184-20.728 6.669-6.368 3.484-11.835 7.87-16.401 13.157C9.524 27.113 5.98 33.241 3.456 40.21.933 47.18-.21 54.63.03 62.56v55.153H51.22zm76.781 0V62.199h-23.791c0-8.891 1.682-16.401 5.046-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.359 3.184-20.727 6.669-6.369 3.484-11.836 7.87-16.402 13.157-4.566 5.287-8.11 11.415-10.634 18.384-2.523 6.97-3.665 14.42-3.424 22.35v55.153H128z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/refresh-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-refresh-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M106.369 39.433c10.16 20.879 6.57 46.764-10.771 64.106-21.87 21.87-57.327 21.87-79.196 0-21.87-21.87-21.87-57.326 0-79.196a8 8 0 1111.314 11.314c-15.621 15.62-15.621 40.947 0 56.568 15.62 15.621 40.947 15.621 56.568 0C97.72 78.79 99.6 58.175 89.924 42.73l-6.44 12.264a8 8 0 11-14.166-7.437L84.435 18.76a8 8 0 0110.838-3.345l28.873 15.345a8 8 0 11-7.51 14.129l-10.267-5.457zm-8.222-12.368c-.167-.19-.336-.38-.506-.57l.96-.296-.454.866z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/right-arrow">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-right-arrow tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path d=&quot;M99.069 64.173c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/rotate-left">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-rotate-left tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;rect width=&quot;32&quot; height=&quot;80&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;80&quot; height=&quot;32&quot; x=&quot;48&quot; y=&quot;96&quot; rx=&quot;8&quot;/&gt;&lt;path d=&quot;M61.32 36.65c19.743 2.45 35.023 19.287 35.023 39.693a4 4 0 01-8 0c0-15.663-11.254-28.698-26.117-31.46l3.916 3.916a4 4 0 11-5.657 5.657L49.172 43.142a4 4 0 010-5.657l11.313-11.313a4 4 0 115.657 5.656l-4.821 4.822z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/save-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-save-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M120.783 34.33c4.641 8.862 7.266 18.948 7.266 29.646 0 35.347-28.653 64-64 64-35.346 0-64-28.653-64-64 0-35.346 28.654-64 64-64 18.808 0 35.72 8.113 47.43 21.03l2.68-2.68c3.13-3.13 8.197-3.132 11.321-.008 3.118 3.118 3.121 8.193-.007 11.32l-4.69 4.691zm-12.058 12.058a47.876 47.876 0 013.324 17.588c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48c14.39 0 27.3 6.332 36.098 16.362L58.941 73.544 41.976 56.578c-3.127-3.127-8.201-3.123-11.32-.005-3.123 3.124-3.119 8.194.006 11.319l22.617 22.617a7.992 7.992 0 005.659 2.347c2.05 0 4.101-.783 5.667-2.349l44.12-44.12z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/size">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-size tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path d=&quot;M92.343 26l-9.171 9.172a4 4 0 105.656 5.656l16-16a4 4 0 000-5.656l-16-16a4 4 0 10-5.656 5.656L92.343 18H22a4 4 0 00-4 4v70.343l-9.172-9.171a4 4 0 10-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656L26 92.343V22l-4 4h70.343zM112 52v64l4-4H52a4 4 0 100 8h64a4 4 0 004-4V52a4 4 0 10-8 0z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/spiral">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-spiral tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path d=&quot;M64.534 68.348c3.39 0 6.097-2.62 6.476-5.968l-4.755-.538 4.75.583c.377-3.07-1.194-6.054-3.89-7.78-2.757-1.773-6.34-2.01-9.566-.7-3.46 1.403-6.14 4.392-7.35 8.148l-.01.026c-1.3 4.08-.72 8.64 1.58 12.52 2.5 4.2 6.77 7.2 11.76 8.27 5.37 1.15 11.11-.05 15.83-3.31 5.04-3.51 8.46-9.02 9.45-15.3 1.05-6.7-.72-13.63-4.92-19.19l.02.02c-4.42-5.93-11.2-9.82-18.78-10.78-7.96-1.01-16.13 1.31-22.59 6.43-6.81 5.39-11.18 13.41-12.11 22.26-.98 9.27 1.87 18.65 7.93 26.02 6.32 7.69 15.6 12.56 25.74 13.48 10.54.96 21.15-2.42 29.45-9.4l.01-.01c8.58-7.25 13.94-17.78 14.86-29.21.94-11.84-2.96-23.69-10.86-32.9-8.19-9.5-19.95-15.36-32.69-16.27-13.16-.94-26.24 3.49-36.34 12.34l.01-.01c-10.41 9.08-16.78 22.1-17.68 36.15-.93 14.44 4.03 28.77 13.79 39.78 10.03 11.32 24.28 18.2 39.6 19.09 15.73.92 31.31-4.56 43.24-15.234 12.23-10.954 19.61-26.44 20.5-43.074a4.785 4.785 0 00-4.52-5.03 4.778 4.778 0 00-5.03 4.52c-.75 14.1-7 27.2-17.33 36.45-10.03 8.98-23.11 13.58-36.3 12.81-12.79-.75-24.67-6.48-33-15.89-8.07-9.11-12.17-20.94-11.41-32.827.74-11.52 5.942-22.15 14.43-29.54l.01-.01c8.18-7.17 18.74-10.75 29.35-9.998 10.21.726 19.6 5.41 26.11 12.96 6.24 7.273 9.32 16.61 8.573 25.894-.718 8.9-4.88 17.064-11.504 22.66l.01-.007c-6.36 5.342-14.44 7.92-22.425 7.19-7.604-.68-14.52-4.314-19.21-10.027-4.44-5.4-6.517-12.23-5.806-18.94.67-6.3 3.76-11.977 8.54-15.766 4.46-3.54 10.05-5.128 15.44-4.44 5.03.63 9.46 3.18 12.32 7.01l.02.024c2.65 3.5 3.75 7.814 3.1 11.92-.59 3.71-2.58 6.925-5.45 8.924-2.56 1.767-5.61 2.403-8.38 1.81-2.42-.516-4.42-1.92-5.53-3.79-.93-1.56-1.15-3.3-.69-4.75l-4.56-1.446L59.325 65c.36-1.12 1.068-1.905 1.84-2.22.25-.103.48-.14.668-.13.06.006.11.015.14.025.01 0 .01 0-.01-.01a1.047 1.047 0 01-.264-.332c-.15-.29-.23-.678-.18-1.11l-.005.04c.15-1.332 1.38-2.523 3.035-2.523-2.65 0-4.79 2.144-4.79 4.787s2.14 4.785 4.78 4.785z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/stamp">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-stamp tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M49.733 64H16.01C11.584 64 8 67.583 8 72.003V97h112V72.003A8 8 0 00111.99 64H78.267A22.813 22.813 0 0175.5 53.077c0-6.475 2.687-12.324 7.009-16.497A22.818 22.818 0 0087 22.952C87 10.276 76.703 0 64 0S41 10.276 41 22.952c0 5.103 1.669 9.817 4.491 13.628 4.322 4.173 7.009 10.022 7.009 16.497 0 3.954-1.002 7.675-2.767 10.923zM8 104h112v8H8v-8z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/star-filled">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-star-filled tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path d=&quot;M61.836 96.823l37.327 27.287c2.72 1.99 6.379-.69 5.343-3.912L90.29 75.988l-1.26 3.91 37.285-27.345c2.718-1.993 1.32-6.327-2.041-6.33l-46.113-.036 3.3 2.416L67.176 4.416c-1.04-3.221-5.563-3.221-6.604 0L46.29 48.603l3.3-2.416-46.113.036c-3.362.003-4.759 4.337-2.04 6.33L38.72 79.898l-1.26-3.91-14.216 44.21c-1.036 3.223 2.622 5.901 5.343 3.912l37.326-27.287h-4.078z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/storyview-classic">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-storyview-classic tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm0 48C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0 32C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/storyview-pop">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-storyview-pop tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm-7.99 40C11.587 56 8 59.578 8 63.992v16.016C8 84.422 11.584 88 16.01 88h95.98c4.424 0 8.01-3.578 8.01-7.992V63.992c0-4.414-3.584-7.992-8.01-7.992H16.01zM24 96C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0-32C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/storyview-zoomin">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-storyview-zoomin tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16A8 8 0 0016 24.009V71.99C16 76.414 19.588 80 24 80h80a8 8 0 008-8.009V24.01c0-4.423-3.588-8.009-8-8.009H24z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/strikethrough">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-strikethrough tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M92.794 38.726h15.422c-.229-6.74-1.514-12.538-3.856-17.393-2.342-4.855-5.54-8.881-9.596-12.08-4.055-3.199-8.767-5.54-14.136-7.025C75.258.743 69.433 0 63.15 0a62.76 62.76 0 00-16.364 2.142C41.474 3.57 36.733 5.74 32.564 8.653c-4.17 2.913-7.511 6.626-10.025 11.138-2.513 4.512-3.77 9.853-3.77 16.022 0 5.597 1.115 10.252 3.342 13.965 2.228 3.712 5.198 6.74 8.91 9.081 3.713 2.342 7.911 4.227 12.595 5.655a194.641 194.641 0 0014.308 3.77c4.855 1.085 9.624 2.142 14.308 3.17 4.683 1.028 8.881 2.37 12.594 4.027 3.713 1.656 6.683 3.798 8.91 6.425 2.228 2.628 3.342 6.055 3.342 10.281 0 4.456-.914 8.111-2.742 10.967a19.953 19.953 0 01-7.197 6.768c-2.97 1.657-6.311 2.828-10.024 3.513a60.771 60.771 0 01-11.052 1.028c-4.57 0-9.025-.571-13.366-1.713-4.34-1.143-8.139-2.913-11.394-5.312-3.256-2.4-5.884-5.455-7.883-9.168-1.999-3.712-2.998-8.139-2.998-13.28H15c0 7.426 1.342 13.852 4.027 19.278 2.684 5.426 6.34 9.881 10.966 13.365 4.627 3.484 9.996 6.083 16.107 7.797 6.112 1.713 12.595 2.57 19.449 2.57 5.597 0 11.223-.657 16.878-1.97 5.655-1.314 10.767-3.428 15.336-6.34 4.57-2.914 8.31-6.683 11.224-11.31 2.913-4.626 4.37-10.195 4.37-16.707 0-6.054-1.115-11.08-3.342-15.079-2.228-3.998-5.198-7.31-8.91-9.938-3.713-2.627-7.911-4.712-12.595-6.254a170.83 170.83 0 00-14.308-4.027 549.669 549.669 0 00-14.308-3.17c-4.683-.971-8.881-2.2-12.594-3.684-3.713-1.485-6.683-3.399-8.91-5.74-2.228-2.342-3.342-5.398-3.342-9.168 0-3.998.771-7.34 2.313-10.024 1.543-2.685 3.599-4.826 6.17-6.426 2.57-1.599 5.51-2.741 8.824-3.427a49.767 49.767 0 0110.11-1.028c8.453 0 15.393 1.97 20.819 5.912 5.426 3.94 8.596 10.31 9.51 19.106z&quot;/&gt;&lt;path d=&quot;M5 54h118v16H5z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/subscript">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-subscript tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 128.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/superscript">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-superscript tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 63.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/tag-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-tag-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M18.164 47.66l.004 4.105c.003 3.823 2.19 9.097 4.885 11.792l61.85 61.85c2.697 2.697 7.068 2.69 9.769-.01L125.767 94.3a6.903 6.903 0 00.01-9.77L63.928 22.683c-2.697-2.697-7.976-4.88-11.796-4.881l-27.076-.007a6.902 6.902 0 00-6.91 6.91l.008 9.96.287.033c3.73.411 8.489-.044 13.365-1.153a9.702 9.702 0 0111.14-3.662l.291-.13.128.285a9.7 9.7 0 013.3 2.17c3.796 3.796 3.801 9.945.012 13.734-3.618 3.618-9.386 3.777-13.204.482-5.365 1.122-10.674 1.596-15.309 1.237z&quot;/&gt;&lt;path d=&quot;M47.633 39.532l.023.051c-9.689 4.356-21.584 6.799-30.396 5.828C5.273 44.089-1.028 36.43 2.443 24.078 5.562 12.976 14.3 4.361 24.047 1.548c10.68-3.083 19.749 1.968 19.749 13.225h-8.623c0-4.859-3.078-6.573-8.735-4.94-6.91 1.995-13.392 8.383-15.694 16.577-1.915 6.818.417 9.653 7.46 10.43 7.126.785 17.531-1.352 25.917-5.121l.027.06.036-.017c1.76-.758 6.266 6.549 3.524 7.74a2.8 2.8 0 01-.075.03z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div caption="telegram-plane" collection="Solid" created="20210613065042962" creator="M0" library="Font Awesome" library_version="5.15.2" modified="20210925133033568" modifier="M0" tags="$:/tags/Image Icons Images SVG" title="$:/core/images/telegram">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-fa-telegram-plane tc-image-button&quot; viewBox=&quot;0 0 448 512&quot;&gt;&lt;path style=&quot;fill:#000000;&quot; d=&quot;M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/theme-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-theme-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M55.854 66.945a122.626 122.626 0 01-3.9-4.819c-11.064-14.548-16.645-6.888-22.96 0-6.315 6.888 1.664 12.47-4.33 17.335-5.993 4.866-5.623 6.552-15.737-2.35-10.115-8.9-10.815-11.351-6.172-16.43 4.644-5.08 8.524 2.918 18.01-6.108 9.485-9.026 1.517-17.026 1.517-17.026S42.03-2.824 68.42.157c26.39 2.982-9.984-3.86-19.031 27.801-3.874 13.556.72 10.362 8.066 16.087 1.707 1.33 6.428 4.732 12.671 9.318-6.129 5.879-11.157 10.669-14.273 13.582zm11.641 12.947c16.013 17.036 37.742 37.726 45.117 40.42 10.432 3.813 15.388-3.141 15.388-14.79 0-7.151-23.83-26.542-43.924-41.769-7.408 7.156-13.376 12.953-16.58 16.139z&quot;/&gt;&lt;path d=&quot;M11.069 109.828L46.31 74.587a3.56 3.56 0 115.037-5.032l15.098 15.098a3.56 3.56 0 11-5.032 5.037l-35.24 35.241c-4.171 4.17-10.933 4.17-15.104 0-4.17-4.17-4.17-10.933 0-15.103zM124.344 6.622l5.034 5.034-7.49 12.524-7.613 2.58L61.413 79.62l-5.034-5.034 52.861-52.862 2.58-7.614 12.524-7.49z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/timestamp-off">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-timestamp-off tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z&quot;/&gt;&lt;path d=&quot;M58.25 35.88c-18.777 0-33.998 15.224-33.998 33.998 0 18.773 15.22 34.002 33.998 34.002 18.784 0 34.002-15.23 34.002-34.002 0-18.774-15.218-33.998-34.002-33.998zm-3.03 50.123H44.196v-34H55.22v34zm16.976 0H61.17v-34h11.025v34z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/timestamp-on">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-timestamp-on tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z&quot;/&gt;&lt;path d=&quot;M13.41 27.178a5.005 5.005 0 01-7.045-.613 5.008 5.008 0 01.616-7.047l9.95-8.348a5 5 0 016.429 7.661l-9.95 8.348zm89.573 0a5.005 5.005 0 007.045-.613 5.008 5.008 0 00-.616-7.047l-9.95-8.348a5 5 0 00-6.428 7.661l9.95 8.348zM65.097 71.072c0 3.826-3.09 6.928-6.897 6.928-3.804.006-6.9-3.102-6.903-6.928 0 0 4.76-39.072 6.903-39.072s6.897 39.072 6.897 39.072z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/tip">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-tip tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M64 128.242c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64-35.346 0-64 28.654-64 64 0 35.346 28.654 64 64 64zm11.936-36.789c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349C54.33 94.05 58.824 95.82 64 95.82c5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.456c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zM64.3 24.242c11.618 0 23.699 7.82 23.699 24.2S75.92 71.754 75.92 83.576c0 5.873-5.868 9.26-11.92 9.26s-12.027-3.006-12.027-9.26C51.973 71.147 40 65.47 40 48.442s12.683-24.2 24.301-24.2z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/transcludify">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-transcludify-button tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M0 59.482c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.651-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02C1.36 67.377.591 67.288 0 67.288v-7.806zm24.66 0c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.65-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02c-.946-.177-1.715-.266-2.306-.266v-7.806zm43.965-3.538L80.6 52.041l2.306 7.097-12.063 3.903 7.628 10.378-6.12 4.435-7.63-10.467-7.45 10.201-5.943-4.524 7.628-10.023-12.152-4.17 2.306-7.096 12.064 4.17V43.347h7.451v12.596zm34.425 11.344c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806zm24.66 0c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div created="20210925043640995" modified="20210925043713338" tags="$:/tags/Image" title="$:/core/images/twitter">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-twitter tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path style=&quot;fill:#000000;&quot; d=&quot;M41.626 115.803A73.376 73.376 0 012 104.235c2.022.238 4.08.36 6.166.36 12.111 0 23.258-4.117 32.105-11.023-11.312-.208-20.859-7.653-24.148-17.883a25.98 25.98 0 0011.674-.441C15.971 72.881 7.061 62.474 7.061 49.997c0-.108 0-.216.002-.323a25.824 25.824 0 0011.709 3.22c-6.936-4.617-11.5-12.5-11.5-21.433 0-4.719 1.274-9.142 3.5-12.945 12.75 15.579 31.797 25.83 53.281 26.904-.44-1.884-.67-3.85-.67-5.868 0-14.22 11.575-25.75 25.852-25.75a25.865 25.865 0 0118.869 8.132 51.892 51.892 0 0016.415-6.248c-1.93 6.012-6.029 11.059-11.366 14.246A51.844 51.844 0 00128 25.878a52.428 52.428 0 01-12.9 13.33c.05 1.104.075 2.214.075 3.33 0 34.028-26 73.265-73.549 73.265&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/underline">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-underline tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M7 117.421h114.248V128H7v-10.579zm97.871-18.525V0h-16.26v55.856c0 4.463-.605 8.576-1.816 12.338-1.212 3.762-3.03 7.046-5.452 9.851-2.423 2.806-5.452 4.974-9.086 6.504-3.635 1.53-7.939 2.296-12.912 2.296-6.25 0-11.159-1.786-14.73-5.356-3.57-3.571-5.356-8.417-5.356-14.538V0H23v65.038c0 5.356.542 10.234 1.626 14.633 1.084 4.4 2.965 8.194 5.643 11.382 2.678 3.188 6.185 5.643 10.52 7.365 4.337 1.721 9.756 2.582 16.26 2.582 7.27 0 13.582-1.435 18.938-4.304 5.356-2.87 9.755-7.365 13.199-13.486h.382v15.686h15.303z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/unfold-all-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-unfold-all tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;rect width=&quot;128&quot; height=&quot;16&quot; rx=&quot;8&quot;/&gt;&lt;rect width=&quot;128&quot; height=&quot;16&quot; y=&quot;64&quot; rx=&quot;8&quot;/&gt;&lt;path d=&quot;M63.945 60.624c-2.05 0-4.101-.78-5.666-2.345L35.662 35.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 41.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 58.279a7.986 7.986 0 01-5.663 2.346zM64.004 124.565c-2.05 0-4.102-.78-5.666-2.345L35.721 99.603c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 105.255l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.662 122.22a7.986 7.986 0 01-5.663 2.346z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/unfold-button">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-unfold tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;rect width=&quot;128&quot; height=&quot;16&quot; rx=&quot;8&quot;/&gt;&lt;path d=&quot;M63.945 63.624c-2.05 0-4.101-.78-5.666-2.345L35.662 38.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 44.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 61.279a7.986 7.986 0 01-5.663 2.346zM64.004 105.682c-2.05.001-4.102-.78-5.666-2.344L35.721 80.721c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 86.373l16.966-16.966c3.124-3.125 8.194-3.13 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319l-22.617 22.617a7.986 7.986 0 01-5.663 2.346z&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/unlocked-padlock">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-unlocked-padlock tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M48.627 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h6.136c-10.455-12.651-27.364-35.788-4.3-55.142 24.636-20.672 45.835 4.353 55.777 16.201 9.943 11.85-2.676 22.437-12.457 9.892-9.78-12.545-21.167-24.146-33.207-14.043-12.041 10.104-1.757 22.36 8.813 34.958 2.467 2.94 3.641 5.732 3.865 8.134zm19.105 28.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div created="20150316000544368" modified="20150316000831867" tags="$:/tags/Image" title="$:/core/images/up-arrow">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-up-arrow tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path d=&quot;M63.892.281c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.104 3.092-11.196 0L63.894 19.393 13.513 69.774a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98A7.892 7.892 0 0163.893.28z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/video">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-video tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M64 12c-34.91 0-55.273 2.917-58.182 5.833C2.91 20.75 0 41.167 0 64.5c0 23.333 2.91 43.75 5.818 46.667C8.728 114.083 29.091 117 64 117c34.91 0 55.273-2.917 58.182-5.833C125.09 108.25 128 87.833 128 64.5c0-23.333-2.91-43.75-5.818-46.667C119.272 14.917 98.909 12 64 12zm-9.084 32.618c-3.813-2.542-6.905-.879-6.905 3.698v31.368c0 4.585 3.099 6.235 6.905 3.698l22.168-14.779c3.813-2.542 3.806-6.669 0-9.206L54.916 44.618z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Image" title="$:/core/images/warning">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-warning tc-image-button&quot; viewBox=&quot;0 0 128 128&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M57.072 11c3.079-5.333 10.777-5.333 13.856 0l55.426 96c3.079 5.333-.77 12-6.928 12H8.574c-6.158 0-10.007-6.667-6.928-12l55.426-96zM64 37c-4.418 0-8 3.582-8 7.994v28.012C56 77.421 59.59 81 64 81c4.418 0 8-3.582 8-7.994V44.994C72 40.579 68.41 37 64 37zm0 67a8 8 0 100-16 8 8 0 000 16z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div caption="social-whatsapp" collection="windows" library="svg-icon" tags="$:/tags/Image Icons Images SVG" title="$:/core/images/whatsapp">
<pre>&lt;svg class=&quot;tc-image-social-whatsapp tc-image-button&quot; width=&quot;22pt&quot; height=&quot;22pt&quot; viewBox=&quot;0 0 38 38.295997619628906&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M28.092 22.894c-.468-.256-2.766-1.496-3.196-1.671-.43-.175-.745-.267-1.08.199-.336.463-1.289 1.502-1.578 1.81-.29.307-.57.335-1.036.079-.468-.256-1.984-.817-3.741-2.506-1.368-1.315-2.266-2.91-2.526-3.397-.26-.487-.002-.736.245-.964.223-.205.498-.538.746-.807.248-.27.336-.465.506-.776.17-.313.102-.593-.008-.836-.11-.243-.975-2.621-1.336-3.59-.361-.967-.764-.823-1.042-.834-.277-.01-.594-.062-.911-.074-.318-.012-.838.088-1.292.549-.454.459-1.728 1.565-1.815 3.908-.088 2.343 1.533 4.671 1.759 4.997.226.327 3.096 5.405 7.865 7.494 4.77 2.088 4.794 1.452 5.67 1.405.875-.046 2.86-1.047 3.299-2.143.439-1.097.474-2.05.362-2.254-.112-.202-.425-.334-.891-.59zm-8.747 11.29c-3.154 0-6.092-.946-8.544-2.567l-5.968 1.91 1.94-5.767a15.447 15.447 0 0 1-2.957-9.105c0-8.564 6.966-15.53 15.529-15.53 8.563 0 15.53 6.966 15.53 15.53 0 8.563-6.967 15.53-15.53 15.53zm0-34.184C9.042 0 .69 8.352.69 18.655c0 3.525.979 6.82 2.677 9.633L0 38.296l10.329-3.306a18.577 18.577 0 0 0 9.016 2.32C29.647 37.31 38 28.957 38 18.655 38 8.352 29.647 0 19.345 0z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/colour-picker">
<pre>\define colour-picker-update-recent()
&lt;$action-listops
$tiddler=&quot;$:/config/ColourPicker/Recent&quot;
$subfilter=&quot;$(colour-picker-value)$ [list[$:/config/ColourPicker/Recent]remove[$(colour-picker-value)$]] +[limit[8]]&quot;
/&gt;
\end
\define colour-picker-inner(actions)
&lt;$button tag=&quot;a&quot; tooltip=&quot;&quot;&quot;$(colour-picker-value)$&quot;&quot;&quot;&gt;
$(colour-picker-update-recent)$
$actions$
&lt;span style=&quot;display:inline-block; background-color: $(colour-picker-value)$; width: 100%; height: 100%; border-radius: 50%;&quot;/&gt;
&lt;/$button&gt;
\end
\define colour-picker-recent-inner(actions)
&lt;$set name=&quot;colour-picker-value&quot; value=&quot;$(recentColour)$&quot;&gt;
&lt;$macrocall $name=&quot;colour-picker-inner&quot; actions=&quot;&quot;&quot;$actions$&quot;&quot;&quot;/&gt;
&lt;/$set&gt;
\end
\define colour-picker-recent(actions)
{{$:/language/ColourPicker/Recent}} &lt;$list filter=&quot;[list[$:/config/ColourPicker/Recent]]&quot; variable=&quot;recentColour&quot;&gt;
&lt;$macrocall $name=&quot;colour-picker-recent-inner&quot; actions=&quot;&quot;&quot;$actions$&quot;&quot;&quot;/&gt;&lt;/$list&gt;
\end
\define colour-picker(actions)
&lt;div class=&quot;tc-colour-chooser&quot;&gt;
&lt;$macrocall $name=&quot;colour-picker-recent&quot; actions=&quot;&quot;&quot;$actions$&quot;&quot;&quot;/&gt;
---
&lt;$list filter=&quot;LightPink Pink Crimson LavenderBlush PaleVioletRed HotPink DeepPink MediumVioletRed Orchid Thistle Plum Violet Magenta Fuchsia DarkMagenta Purple MediumOrchid DarkViolet DarkOrchid Indigo BlueViolet MediumPurple MediumSlateBlue SlateBlue DarkSlateBlue Lavender GhostWhite Blue MediumBlue MidnightBlue DarkBlue Navy RoyalBlue CornflowerBlue LightSteelBlue LightSlateGrey SlateGrey DodgerBlue AliceBlue SteelBlue LightSkyBlue SkyBlue DeepSkyBlue LightBlue PowderBlue CadetBlue Azure LightCyan PaleTurquoise Cyan Aqua DarkTurquoise DarkSlateGrey DarkCyan Teal MediumTurquoise LightSeaGreen Turquoise Aquamarine MediumAquamarine MediumSpringGreen MintCream SpringGreen MediumSeaGreen SeaGreen Honeydew LightGreen PaleGreen DarkSeaGreen LimeGreen Lime ForestGreen Green DarkGreen Chartreuse LawnGreen GreenYellow DarkOliveGreen YellowGreen OliveDrab Beige LightGoldenrodYellow Ivory LightYellow Yellow Olive DarkKhaki LemonChiffon PaleGoldenrod Khaki Gold Cornsilk Goldenrod DarkGoldenrod FloralWhite OldLace Wheat Moccasin Orange PapayaWhip BlanchedAlmond NavajoWhite AntiqueWhite Tan BurlyWood Bisque DarkOrange Linen Peru PeachPuff SandyBrown Chocolate SaddleBrown Seashell Sienna LightSalmon Coral OrangeRed DarkSalmon Tomato MistyRose Salmon Snow LightCoral RosyBrown IndianRed Red Brown FireBrick DarkRed Maroon White WhiteSmoke Gainsboro LightGrey Silver DarkGrey Grey DimGrey Black&quot; variable=&quot;colour-picker-value&quot;&gt;
&lt;$macrocall $name=&quot;colour-picker-inner&quot; actions=&quot;&quot;&quot;$actions$&quot;&quot;&quot;/&gt;
&lt;/$list&gt;
---
&lt;$edit-text tiddler=&quot;$:/config/ColourPicker/New&quot; tag=&quot;input&quot; default=&quot;&quot; placeholder=&quot;&quot;/&gt;
&lt;$edit-text tiddler=&quot;$:/config/ColourPicker/New&quot; type=&quot;color&quot; tag=&quot;input&quot;/&gt;
&lt;$set name=&quot;colour-picker-value&quot; value={{$:/config/ColourPicker/New}}&gt;
&lt;$macrocall $name=&quot;colour-picker-inner&quot; actions=&quot;&quot;&quot;$actions$&quot;&quot;&quot;/&gt;
&lt;/$set&gt;
&lt;/div&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/copy-to-clipboard">
<pre>\define copy-to-clipboard(src,class:&quot;tc-btn-invisible&quot;,style)
&lt;$button class=&lt;&lt;__class__&gt;&gt; style=&lt;&lt;__style__&gt;&gt; message=&quot;tm-copy-to-clipboard&quot; param=&lt;&lt;__src__&gt;&gt; tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}&gt;
{{$:/core/images/copy-clipboard}} &lt;$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/&gt;
&lt;/$button&gt;
\end
\define copy-to-clipboard-above-right(src,class:&quot;tc-btn-invisible&quot;,style)
&lt;div style=&quot;position: relative;&quot;&gt;
&lt;div style=&quot;position: absolute; bottom: 0; right: 0;&quot;&gt;
&lt;$macrocall $name=&quot;copy-to-clipboard&quot; src=&lt;&lt;__src__&gt;&gt; class=&lt;&lt;__class__&gt;&gt; style=&lt;&lt;__style__&gt;&gt;/&gt;
&lt;/div&gt;
&lt;/div&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/CSS">
<pre>\define colour(name)
&lt;$transclude tiddler={{$:/palette}} index=&quot;$name$&quot;&gt;&lt;$transclude tiddler=&quot;$:/palettes/Vanilla&quot; index=&quot;$name$&quot;&gt;&lt;$transclude tiddler=&quot;$:/config/DefaultColourMappings/$name$&quot;/&gt;&lt;/$transclude&gt;&lt;/$transclude&gt;
\end
\define color(name)
&lt;&lt;colour $name$&gt;&gt;
\end
\define box-shadow(shadow)
``
-webkit-box-shadow: $shadow$;
-moz-box-shadow: $shadow$;
box-shadow: $shadow$;
``
\end
\define filter(filter)
``
-webkit-filter: $filter$;
-moz-filter: $filter$;
filter: $filter$;
``
\end
\define transition(transition)
``
-webkit-transition: $transition$;
-moz-transition: $transition$;
transition: $transition$;
``
\end
\define transform-origin(origin)
``
-webkit-transform-origin: $origin$;
-moz-transform-origin: $origin$;
transform-origin: $origin$;
``
\end
\define background-linear-gradient(gradient)
``
background-image: linear-gradient($gradient$);
background-image: -o-linear-gradient($gradient$);
background-image: -moz-linear-gradient($gradient$);
background-image: -webkit-linear-gradient($gradient$);
background-image: -ms-linear-gradient($gradient$);
``
\end
\define column-count(columns)
``
-moz-column-count: $columns$;
-webkit-column-count: $columns$;
column-count: $columns$;
``
\end
\define datauri(title)
&lt;$macrocall $name=&quot;makedatauri&quot; type={{$title$!!type}} text={{$title$}} _canonical_uri={{$title$!!_canonical_uri}}/&gt;
\end
\define if-sidebar(text)
&lt;$reveal state=&quot;$:/state/sidebar&quot; type=&quot;match&quot; text=&quot;yes&quot; default=&quot;yes&quot;&gt;$text$&lt;/$reveal&gt;
\end
\define if-no-sidebar(text)
&lt;$reveal state=&quot;$:/state/sidebar&quot; type=&quot;nomatch&quot; text=&quot;yes&quot; default=&quot;yes&quot;&gt;$text$&lt;/$reveal&gt;
\end
\define if-background-attachment(text)
&lt;$reveal state=&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimage&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;$text$&lt;/$reveal&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/diff">
<pre>\define compareTiddlerText(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle)
&lt;$set name=&quot;source&quot; tiddler=&lt;&lt;__sourceTiddlerTitle__&gt;&gt; subtiddler=&lt;&lt;__sourceSubTiddlerTitle__&gt;&gt;&gt;
&lt;$set name=&quot;dest&quot; tiddler=&lt;&lt;__destTiddlerTitle__&gt;&gt; subtiddler=&lt;&lt;__destSubTiddlerTitle__&gt;&gt;&gt;
&lt;$diff-text source=&lt;&lt;source&gt;&gt; dest=&lt;&lt;dest&gt;&gt;/&gt;
&lt;/$set&gt;
&lt;/$set&gt;
\end
\define compareTiddlers(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle,exclude)
&lt;table class=&quot;tc-diff-tiddlers&quot;&gt;
&lt;tbody&gt;
&lt;$set name=&quot;sourceFields&quot; filter=&quot;[&lt;__sourceTiddlerTitle__&gt;fields[]sort[]]&quot;&gt;
&lt;$set name=&quot;destFields&quot; filter=&quot;[&lt;__destSubTiddlerTitle__&gt;subtiddlerfields&lt;__destTiddlerTitle__&gt;sort[]]&quot;&gt;
&lt;$list filter=&quot;[enlist&lt;sourceFields&gt;] [enlist&lt;destFields&gt;] -[enlist&lt;__exclude__&gt;] +[sort[]]&quot; variable=&quot;fieldName&quot;&gt;
&lt;tr&gt;
&lt;th&gt;
&lt;$text text=&lt;&lt;fieldName&gt;&gt;/&gt;
&lt;/th&gt;
&lt;td&gt;
&lt;$set name=&quot;source&quot; tiddler=&lt;&lt;__sourceTiddlerTitle__&gt;&gt; subtiddler=&lt;&lt;__sourceSubTiddlerTitle__&gt;&gt; field=&lt;&lt;fieldName&gt;&gt;&gt;
&lt;$set name=&quot;dest&quot; tiddler=&lt;&lt;__destTiddlerTitle__&gt;&gt; subtiddler=&lt;&lt;__destSubTiddlerTitle__&gt;&gt; field=&lt;&lt;fieldName&gt;&gt;&gt;
&lt;$diff-text source=&lt;&lt;source&gt;&gt; dest=&lt;&lt;dest&gt;&gt;&gt;
&lt;/$diff-text&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/tbody&gt;
&lt;/table&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/dumpvariables">
<pre>\define dumpvariables()
&lt;ul&gt;
&lt;$list filter=&quot;[variables[]]&quot; variable=&quot;varname&quot;&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;&lt;$text text=&lt;&lt;varname&gt;&gt;/&gt;&lt;/code&gt;&lt;/strong&gt;:&lt;br/&gt;
&lt;$codeblock code={{{ [&lt;varname&gt;getvariable[]] }}}/&gt;
&lt;/li&gt;
&lt;/$list&gt;
&lt;/ul&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/export">
<pre>\define exportButtonFilename(baseFilename)
$baseFilename$$(extension)$
\end
\define exportButton(exportFilter:&quot;[!is[system]sort[title]]&quot;,lingoBase,baseFilename:&quot;tiddlers&quot;)
&lt;span class=&quot;tc-popup-keep&quot;&gt;&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/export&quot;&gt;&gt; tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=&quot;tc-selected&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/export-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$lingoBase$Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;&lt;/span&gt;&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/export&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;below&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-drop-down&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/Exporter]]&quot;&gt;
&lt;$set name=&quot;extension&quot; value={{!!extension}}&gt;
&lt;$button class=&quot;tc-btn-invisible&quot;&gt;
&lt;$action-sendmessage $message=&quot;tm-download-file&quot; $param=&lt;&lt;currentTiddler&gt;&gt; exportFilter=&quot;&quot;&quot;$exportFilter$&quot;&quot;&quot; filename=&lt;&lt;exportButtonFilename &quot;&quot;&quot;$baseFilename$&quot;&quot;&quot;&gt;&gt;/&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;qualify &quot;$:/state/popup/export&quot;&gt;&gt;/&gt;
&lt;$transclude field=&quot;description&quot;/&gt;
&lt;/$button&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
\end
</pre>
</div>
<div created="20170715180840889" modified="20170715180914005" tags="$:/tags/Macro" title="$:/core/macros/image-picker" type="text/vnd.tiddlywiki">
<pre>\define image-picker-thumbnail(actions)
&lt;$button tag=&quot;a&quot; tooltip=&quot;&quot;&quot;$(imageTitle)$&quot;&quot;&quot;&gt;
$actions$
&lt;$transclude tiddler=&lt;&lt;imageTitle&gt;&gt;/&gt;
&lt;/$button&gt;
\end
\define image-picker-list(filter,actions)
&lt;$list filter=&quot;&quot;&quot;$filter$&quot;&quot;&quot; variable=&quot;imageTitle&quot;&gt;
&lt;$macrocall $name=&quot;image-picker-thumbnail&quot; actions=&quot;&quot;&quot;$actions$&quot;&quot;&quot;/&gt;
&lt;/$list&gt;
\end
\define image-picker(actions,filter:&quot;[all[shadows+tiddlers]is[image]] -[type[application/pdf]] +[!has[draft.of]$subfilter$sort[title]]&quot;,subfilter:&quot;&quot;)
&lt;div class=&quot;tc-image-chooser&quot;&gt;
&lt;$vars state-system=&lt;&lt;qualify &quot;$:/state/image-picker/system&quot;&gt;&gt;&gt;
&lt;$checkbox tiddler=&lt;&lt;state-system&gt;&gt; field=&quot;text&quot; checked=&quot;show&quot; unchecked=&quot;hide&quot; default=&quot;hide&quot;&gt;
{{$:/language/SystemTiddlers/Include/Prompt}}
&lt;/$checkbox&gt;
&lt;$reveal state=&lt;&lt;state-system&gt;&gt; type=&quot;match&quot; text=&quot;hide&quot; default=&quot;hide&quot; tag=&quot;div&quot;&gt;
&lt;$macrocall $name=&quot;image-picker-list&quot; filter=&quot;&quot;&quot;$filter$ +[!is[system]]&quot;&quot;&quot; actions=&quot;&quot;&quot;$actions$&quot;&quot;&quot;/&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&lt;&lt;state-system&gt;&gt; type=&quot;nomatch&quot; text=&quot;hide&quot; default=&quot;hide&quot; tag=&quot;div&quot;&gt;
&lt;$macrocall $name=&quot;image-picker-list&quot; filter=&quot;&quot;&quot;$filter$&quot;&quot;&quot; actions=&quot;&quot;&quot;$actions$&quot;&quot;&quot;/&gt;
&lt;/$reveal&gt;
&lt;/$vars&gt;
&lt;/div&gt;
\end
\define image-picker-include-tagged-images(actions)
&lt;$macrocall $name=&quot;image-picker&quot; filter=&quot;[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[!has[draft.of]sort[title]]&quot; actions=&quot;&quot;&quot;$actions$&quot;&quot;&quot;/&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/lingo">
<pre>\define lingo-base()
$:/language/
\end
\define lingo(title)
{{$(lingo-base)$$title$}}
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/list">
<pre>\define list-links(filter,type:&quot;ul&quot;,subtype:&quot;li&quot;,class:&quot;&quot;,emptyMessage)
\whitespace trim
&lt;$type$ class=&quot;$class$&quot;&gt;
&lt;$list filter=&quot;$filter$&quot; emptyMessage=&lt;&lt;__emptyMessage__&gt;&gt;&gt;
&lt;$subtype$&gt;
&lt;$link to={{!!title}}&gt;
&lt;$transclude field=&quot;caption&quot;&gt;
&lt;$view field=&quot;title&quot;/&gt;
&lt;/$transclude&gt;
&lt;/$link&gt;
&lt;/$subtype$&gt;
&lt;/$list&gt;
&lt;/$type$&gt;
\end
\define list-links-draggable-drop-actions()
&lt;$action-listops $tiddler=&lt;&lt;targetTiddler&gt;&gt; $field=&lt;&lt;targetField&gt;&gt; $subfilter=&quot;+[insertbefore:currentTiddler&lt;actionTiddler&gt;]&quot;/&gt;
\end
\define list-links-draggable(tiddler,field:&quot;list&quot;,type:&quot;ul&quot;,subtype:&quot;li&quot;,class:&quot;&quot;,itemTemplate)
\whitespace trim
&lt;span class=&quot;tc-links-draggable-list&quot;&gt;
&lt;$vars targetTiddler=&quot;&quot;&quot;$tiddler$&quot;&quot;&quot; targetField=&quot;&quot;&quot;$field$&quot;&quot;&quot;&gt;
&lt;$type$ class=&quot;$class$&quot;&gt;
&lt;$list filter=&quot;[list[$tiddler$!!$field$]]&quot;&gt;
&lt;$droppable actions=&lt;&lt;list-links-draggable-drop-actions&gt;&gt; tag=&quot;&quot;&quot;$subtype$&quot;&quot;&quot; enable=&lt;&lt;tv-enable-drag-and-drop&gt;&gt;&gt;
&lt;div class=&quot;tc-droppable-placeholder&quot;/&gt;
&lt;div&gt;
&lt;$transclude tiddler=&quot;&quot;&quot;$itemTemplate$&quot;&quot;&quot;&gt;
&lt;$link to={{!!title}}&gt;
&lt;$transclude field=&quot;caption&quot;&gt;
&lt;$view field=&quot;title&quot;/&gt;
&lt;/$transclude&gt;
&lt;/$link&gt;
&lt;/$transclude&gt;
&lt;/div&gt;
&lt;/$droppable&gt;
&lt;/$list&gt;
&lt;/$type$&gt;
&lt;$tiddler tiddler=&quot;&quot;&gt;
&lt;$droppable actions=&lt;&lt;list-links-draggable-drop-actions&gt;&gt; tag=&quot;div&quot; enable=&lt;&lt;tv-enable-drag-and-drop&gt;&gt;&gt;
&lt;div class=&quot;tc-droppable-placeholder&quot;&gt;
&amp;nbsp;
&lt;/div&gt;
&lt;div style=&quot;height:0.5em;&quot;/&gt;
&lt;/$droppable&gt;
&lt;/$tiddler&gt;
&lt;/$vars&gt;
&lt;/span&gt;
\end
\define list-tagged-draggable-drop-actions(tag)
&lt;!-- Save the current ordering of the tiddlers with this tag --&gt;
&lt;$set name=&quot;order&quot; filter=&quot;[&lt;__tag__&gt;tagging[]]&quot;&gt;
&lt;!-- Remove any list-after or list-before fields from the tiddlers with this tag --&gt;
&lt;$list filter=&quot;[&lt;__tag__&gt;tagging[]]&quot;&gt;
&lt;$action-deletefield $field=&quot;list-before&quot;/&gt;
&lt;$action-deletefield $field=&quot;list-after&quot;/&gt;
&lt;/$list&gt;
&lt;!-- Save the new order to the Tag Tiddler --&gt;
&lt;$action-listops $tiddler=&lt;&lt;__tag__&gt;&gt; $field=&quot;list&quot; $filter=&quot;+[enlist&lt;order&gt;] +[insertbefore:currentTiddler&lt;actionTiddler&gt;]&quot;/&gt;
&lt;!-- Make sure the newly added item has the right tag --&gt;
&lt;!-- Removing this line makes dragging tags within the dropdown work as intended --&gt;
&lt;!--&lt;$action-listops $tiddler=&lt;&lt;actionTiddler&gt;&gt; $tags=&lt;&lt;__tag__&gt;&gt;/&gt;--&gt;
&lt;!-- Using the following 5 lines as replacement makes dragging titles from outside into the dropdown apply the tag --&gt;
&lt;$list filter=&quot;[&lt;actionTiddler&gt;!contains:tags&lt;__tag__&gt;]&quot;&gt;
&lt;$fieldmangler tiddler=&lt;&lt;actionTiddler&gt;&gt;&gt;
&lt;$action-sendmessage $message=&quot;tm-add-tag&quot; $param=&lt;&lt;__tag__&gt;&gt;/&gt;
&lt;/$fieldmangler&gt;
&lt;/$list&gt;
&lt;/$set&gt;
\end
\define list-tagged-draggable(tag,subFilter,emptyMessage,itemTemplate,elementTag:&quot;div&quot;,storyview:&quot;&quot;)
\whitespace trim
&lt;span class=&quot;tc-tagged-draggable-list&quot;&gt;
&lt;$set name=&quot;tag&quot; value=&lt;&lt;__tag__&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;__tag__&gt;tagging[]$subFilter$]&quot; emptyMessage=&lt;&lt;__emptyMessage__&gt;&gt; storyview=&lt;&lt;__storyview__&gt;&gt;&gt;
&lt;$elementTag$ class=&quot;tc-menu-list-item&quot;&gt;
&lt;$droppable actions=&quot;&quot;&quot;&lt;$macrocall $name=&quot;list-tagged-draggable-drop-actions&quot; tag=&lt;&lt;__tag__&gt;&gt;/&gt;&quot;&quot;&quot; enable=&lt;&lt;tv-enable-drag-and-drop&gt;&gt;&gt;
&lt;$elementTag$ class=&quot;tc-droppable-placeholder&quot;/&gt;
&lt;$elementTag$&gt;
&lt;$transclude tiddler=&quot;&quot;&quot;$itemTemplate$&quot;&quot;&quot;&gt;
&lt;$link to={{!!title}}&gt;
&lt;$view field=&quot;title&quot;/&gt;
&lt;/$link&gt;
&lt;/$transclude&gt;
&lt;/$elementTag$&gt;
&lt;/$droppable&gt;
&lt;/$elementTag$&gt;
&lt;/$list&gt;
&lt;$tiddler tiddler=&quot;&quot;&gt;
&lt;$droppable actions=&quot;&quot;&quot;&lt;$macrocall $name=&quot;list-tagged-draggable-drop-actions&quot; tag=&lt;&lt;__tag__&gt;&gt;/&gt;&quot;&quot;&quot; enable=&lt;&lt;tv-enable-drag-and-drop&gt;&gt;&gt;
&lt;$elementTag$ class=&quot;tc-droppable-placeholder&quot;/&gt;
&lt;$elementTag$ style=&quot;height:0.5em;&quot;&gt;
&lt;/$elementTag$&gt;
&lt;/$droppable&gt;
&lt;/$tiddler&gt;
&lt;/$set&gt;
&lt;/span&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/tabs">
<pre>\define tabs(tabsList,default,state:&quot;$:/state/tab&quot;,class,template,buttonTemplate,retain)
&lt;div class=&quot;tc-tab-set $class$&quot;&gt;
&lt;div class=&quot;tc-tab-buttons $class$&quot;&gt;
&lt;$list filter=&quot;$tabsList$&quot; variable=&quot;currentTab&quot; storyview=&quot;pop&quot;&gt;&lt;$set name=&quot;save-currentTiddler&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;$tiddler tiddler=&lt;&lt;currentTab&gt;&gt;&gt;&lt;$button set=&lt;&lt;qualify &quot;$state$&quot;&gt;&gt; setTo=&lt;&lt;currentTab&gt;&gt; default=&quot;$default$&quot; selectedClass=&quot;tc-tab-selected&quot; tooltip={{!!tooltip}}&gt;
&lt;$tiddler tiddler=&lt;&lt;save-currentTiddler&gt;&gt;&gt;
&lt;$set name=&quot;tv-wikilinks&quot; value=&quot;no&quot;&gt;
&lt;$transclude tiddler=&quot;$buttonTemplate$&quot; mode=&quot;inline&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;currentTab&gt;&gt; field=&quot;caption&quot;&gt;
&lt;$macrocall $name=&quot;currentTab&quot; $type=&quot;text/plain&quot; $output=&quot;text/plain&quot;/&gt;
&lt;/$transclude&gt;
&lt;/$transclude&gt;
&lt;/$set&gt;&lt;/$tiddler&gt;&lt;/$button&gt;&lt;/$tiddler&gt;&lt;/$set&gt;&lt;/$list&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-tab-divider $class$&quot;/&gt;
&lt;div class=&quot;tc-tab-content $class$&quot;&gt;
&lt;$list filter=&quot;$tabsList$&quot; variable=&quot;currentTab&quot;&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;qualify &quot;$state$&quot;&gt;&gt; text=&lt;&lt;currentTab&gt;&gt; default=&quot;$default$&quot; retain=&quot;&quot;&quot;$retain$&quot;&quot;&quot;&gt;
&lt;$transclude tiddler=&quot;$template$&quot; mode=&quot;block&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;currentTab&gt;&gt; mode=&quot;block&quot;/&gt;
&lt;/$transclude&gt;
&lt;/$reveal&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/div&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/tag">
<pre>\define tag-pill-styles()
background-color:$(backgroundColor)$;
fill:$(foregroundColor)$;
color:$(foregroundColor)$;
\end
\define tag-pill-inner(tag,icon,colour,fallbackTarget,colourA,colourB,element-tag,element-attributes,actions)
&lt;$vars foregroundColor=&lt;&lt;contrastcolour target:&quot;&quot;&quot;$colour$&quot;&quot;&quot; fallbackTarget:&quot;&quot;&quot;$fallbackTarget$&quot;&quot;&quot; colourA:&quot;&quot;&quot;$colourA$&quot;&quot;&quot; colourB:&quot;&quot;&quot;$colourB$&quot;&quot;&quot;&gt;&gt; backgroundColor=&quot;&quot;&quot;$colour$&quot;&quot;&quot;&gt;
&lt;$element-tag$ $element-attributes$ class=&quot;tc-tag-label tc-btn-invisible&quot; style=&lt;&lt;tag-pill-styles&gt;&gt;&gt;
$actions$&lt;$transclude tiddler=&quot;&quot;&quot;$icon$&quot;&quot;&quot;/&gt;&lt;$view tiddler=&lt;&lt;__tag__&gt;&gt; field=&quot;title&quot; format=&quot;text&quot; /&gt;
&lt;/$element-tag$&gt;
&lt;/$vars&gt;
\end
\define tag-pill-body(tag,icon,colour,palette,element-tag,element-attributes,actions)
&lt;$macrocall $name=&quot;tag-pill-inner&quot; tag=&lt;&lt;__tag__&gt;&gt; icon=&quot;&quot;&quot;$icon$&quot;&quot;&quot; colour=&quot;&quot;&quot;$colour$&quot;&quot;&quot; fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} element-tag=&quot;&quot;&quot;$element-tag$&quot;&quot;&quot; element-attributes=&quot;&quot;&quot;$element-attributes$&quot;&quot;&quot; actions=&quot;&quot;&quot;$actions$&quot;&quot;&quot;/&gt;
\end
\define tag-pill(tag,element-tag:&quot;span&quot;,element-attributes:&quot;&quot;,actions:&quot;&quot;)
&lt;span class=&quot;tc-tag-list-item&quot;&gt;
&lt;$macrocall $name=&quot;tag-pill-body&quot; tag=&lt;&lt;__tag__&gt;&gt; icon={{{ [&lt;__tag__&gt;get[icon]] }}} colour={{{ [&lt;__tag__&gt;get[color]] }}} palette={{$:/palette}} element-tag=&quot;&quot;&quot;$element-tag$&quot;&quot;&quot; element-attributes=&quot;&quot;&quot;$element-attributes$&quot;&quot;&quot; actions=&quot;&quot;&quot;$actions$&quot;&quot;&quot;/&gt;
&lt;/span&gt;
\end
\define tag(tag)
{{$tag$||$:/core/ui/TagTemplate}}
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/tag-picker">
<pre>\define add-tag-actions()
&lt;$action-sendmessage $message=&quot;tm-add-tag&quot; $param={{{ [&lt;newTagNameTiddler&gt;get[text]] }}}/&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;newTagNameTiddler&gt;&gt;/&gt;
\end
\define tag-button()
&lt;$button class=&quot;tc-btn-invisible&quot; tag=&quot;a&quot; tooltip={{$:/language/EditTemplate/Tags/Add/Button/Hint}}&gt;
&lt;$action-sendmessage $message=&quot;tm-add-tag&quot; $param=&lt;&lt;tag&gt;&gt;/&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;newTagNameTiddler&gt;&gt;/&gt;
&lt;$macrocall $name=&quot;tag-pill&quot; tag=&lt;&lt;tag&gt;&gt;/&gt;
&lt;/$button&gt;
\end
\define tag-picker-inner()
\whitespace trim
&lt;div class=&quot;tc-edit-add-tag&quot;&gt;
&lt;span class=&quot;tc-add-tag-name&quot;&gt;
&lt;$keyboard key=&quot;ENTER&quot; actions=&lt;&lt;add-tag-actions&gt;&gt;&gt;
&lt;$edit-text tiddler=&lt;&lt;newTagNameTiddler&gt;&gt; tag=&quot;input&quot; default=&quot;&quot; placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=&lt;&lt;qualify &quot;$:/state/popup/tags-auto-complete&quot;&gt;&gt; class=&quot;tc-edit-texteditor tc-popup-handle&quot; tabindex=&lt;&lt;tabIndex&gt;&gt; focus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}}/&gt;
&lt;/$keyboard&gt;
&lt;/span&gt;&amp;nbsp;&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/tags-auto-complete&quot;&gt;&gt; class=&quot;tc-btn-invisible&quot; tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}&gt;{{$:/core/images/down-arrow}}&lt;/$button&gt;&amp;nbsp;&lt;span class=&quot;tc-add-tag-button&quot;&gt;
&lt;$set name=&quot;tag&quot; value={{{ [&lt;newTagNameTiddler&gt;get[text]] }}}&gt;
&lt;$button set=&quot;$:/temp/NewTagName&quot; setTo=&quot;&quot; class=&quot;&quot;&gt;
&lt;&lt;add-tag-actions&gt;&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;newTagNameTiddler&gt;&gt;/&gt;
{{$:/language/EditTemplate/Tags/Add/Button}}
&lt;/$button&gt;
&lt;/$set&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-block-dropdown-wrapper&quot;&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/tags-auto-complete&quot;&gt;&gt; type=&quot;nomatch&quot; text=&quot;&quot; default=&quot;&quot;&gt;
&lt;div class=&quot;tc-block-dropdown&quot;&gt;
&lt;$set name=&quot;newTagName&quot; value={{{ [&lt;newTagNameTiddler&gt;get[text]] }}}&gt;
&lt;$list filter=&quot;[&lt;newTagName&gt;minlength{$:/config/Tags/MinLength}limit[1]]&quot; emptyMessage=&quot;&quot;&quot;&lt;div class=&quot;tc-search-results&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;&quot;&quot;&quot; variable=&quot;listItem&quot;&gt;
&lt;$list filter=&quot;[tags[]!is[system]search:title&lt;newTagName&gt;sort[]]&quot; variable=&quot;tag&quot;&gt;
&lt;&lt;tag-button&gt;&gt;
&lt;/$list&gt;&lt;/$list&gt;
&lt;hr&gt;
&lt;$list filter=&quot;[&lt;newTagName&gt;minlength{$:/config/Tags/MinLength}limit[1]]&quot; emptyMessage=&quot;&quot;&quot;&lt;div class=&quot;tc-search-results&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;&quot;&quot;&quot; variable=&quot;listItem&quot;&gt;
&lt;$list filter=&quot;[tags[]is[system]search:title&lt;newTagName&gt;sort[]]&quot; variable=&quot;tag&quot;&gt;
&lt;&lt;tag-button&gt;&gt;
&lt;/$list&gt;&lt;/$list&gt;
&lt;/$set&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
\end
\define tag-picker()
\whitespace trim
&lt;$list filter=&quot;[&lt;newTagNameTiddler&gt;match[]]&quot; emptyMessage=&lt;&lt;tag-picker-inner&gt;&gt;&gt;
&lt;$set name=&quot;newTagNameTiddler&quot; value=&lt;&lt;qualify &quot;$:/temp/NewTagName&quot;&gt;&gt;&gt;
&lt;&lt;tag-picker-inner&gt;&gt;
&lt;/$set&gt;
&lt;/$list&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/thumbnails">
<pre>\define thumbnail(link,icon,color,background-color,image,caption,width:&quot;280&quot;,height:&quot;157&quot;)
&lt;$link to=&quot;&quot;&quot;$link$&quot;&quot;&quot;&gt;&lt;div class=&quot;tc-thumbnail-wrapper&quot;&gt;
&lt;div class=&quot;tc-thumbnail-image&quot; style=&quot;width:$width$px;height:$height$px;&quot;&gt;&lt;$reveal type=&quot;nomatch&quot; text=&quot;&quot; default=&quot;&quot;&quot;$image$&quot;&quot;&quot; tag=&quot;div&quot; style=&quot;width:$width$px;height:$height$px;&quot;&gt;
[img[$image$]]
&lt;/$reveal&gt;&lt;$reveal type=&quot;match&quot; text=&quot;&quot; default=&quot;&quot;&quot;$image$&quot;&quot;&quot; tag=&quot;div&quot; class=&quot;tc-thumbnail-background&quot; style=&quot;width:$width$px;height:$height$px;background-color:$background-color$;&quot;&gt;&lt;/$reveal&gt;&lt;/div&gt;&lt;div class=&quot;tc-thumbnail-icon&quot; style=&quot;fill:$color$;color:$color$;&quot;&gt;
$icon$
&lt;/div&gt;&lt;div class=&quot;tc-thumbnail-caption&quot;&gt;
$caption$
&lt;/div&gt;
&lt;/div&gt;&lt;/$link&gt;
\end
\define thumbnail-right(link,icon,color,background-color,image,caption,width:&quot;280&quot;,height:&quot;157&quot;)
&lt;div class=&quot;tc-thumbnail-right-wrapper&quot;&gt;&lt;&lt;thumbnail &quot;&quot;&quot;$link$&quot;&quot;&quot; &quot;&quot;&quot;$icon$&quot;&quot;&quot; &quot;&quot;&quot;$color$&quot;&quot;&quot; &quot;&quot;&quot;$background-color$&quot;&quot;&quot; &quot;&quot;&quot;$image$&quot;&quot;&quot; &quot;&quot;&quot;$caption$&quot;&quot;&quot; &quot;&quot;&quot;$width$&quot;&quot;&quot; &quot;&quot;&quot;$height$&quot;&quot;&quot;&gt;&gt;&lt;/div&gt;
\end
\define list-thumbnails(filter,width:&quot;280&quot;,height:&quot;157&quot;)
&lt;$list filter=&quot;&quot;&quot;$filter$&quot;&quot;&quot;&gt;&lt;$macrocall $name=&quot;thumbnail&quot; link={{!!link}} icon={{!!icon}} color={{!!color}} background-color={{!!background-color}} image={{!!image}} caption={{!!caption}} width=&quot;&quot;&quot;$width$&quot;&quot;&quot; height=&quot;&quot;&quot;$height$&quot;&quot;&quot;/&gt;&lt;/$list&gt;
\end
</pre>
</div>
<div created="20141212105914482" modified="20141212110330815" tags="$:/tags/Macro" title="$:/core/macros/timeline">
<pre>\define timeline-title()
\whitespace trim
&lt;!-- Override this macro with a global macro
of the same name if you need to change
how titles are displayed on the timeline
--&gt;
&lt;$view field=&quot;title&quot;/&gt;
\end
\define timeline(limit:&quot;100&quot;,format:&quot;DDth MMM YYYY&quot;,subfilter:&quot;&quot;,dateField:&quot;modified&quot;)
&lt;div class=&quot;tc-timeline&quot;&gt;
&lt;$list filter=&quot;[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]&quot;&gt;
&lt;div class=&quot;tc-menu-list-item&quot;&gt;
&lt;$view field=&quot;$dateField$&quot; format=&quot;date&quot; template=&quot;$format$&quot;/&gt;
&lt;$list filter=&quot;[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]&quot;&gt;
&lt;div class=&quot;tc-menu-list-subitem&quot;&gt;
&lt;$link to={{!!title}}&gt;&lt;&lt;timeline-title&gt;&gt;&lt;/$link&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;/div&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/toc">
<pre>\define toc-caption()
&lt;$set name=&quot;tv-wikilinks&quot; value=&quot;no&quot;&gt;
&lt;$transclude field=&quot;caption&quot;&gt;
&lt;$view field=&quot;title&quot;/&gt;
&lt;/$transclude&gt;
&lt;/$set&gt;
\end
\define toc-body(tag,sort:&quot;&quot;,itemClassFilter,exclude,path)
&lt;ol class=&quot;tc-toc&quot;&gt;
&lt;$list filter=&quot;&quot;&quot;[all[shadows+tiddlers]tag&lt;__tag__&gt;!has[draft.of]$sort$] -[&lt;__tag__&gt;] -[enlist&lt;__exclude__&gt;]&quot;&quot;&quot;&gt;
&lt;$vars item=&lt;&lt;currentTiddler&gt;&gt; path={{{ [&lt;__path__&gt;addsuffix[/]addsuffix&lt;__tag__&gt;] }}}&gt;
&lt;$set name=&quot;excluded&quot; filter=&quot;&quot;&quot;[enlist&lt;__exclude__&gt;] [&lt;__tag__&gt;]&quot;&quot;&quot;&gt;
&lt;$set name=&quot;toc-item-class&quot; filter=&lt;&lt;__itemClassFilter__&gt;&gt; emptyValue=&quot;toc-item-selected&quot; value=&quot;toc-item&quot;&gt;
&lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;
&lt;$list filter=&quot;[all[current]toc-link[no]]&quot; emptyMessage=&quot;&lt;$link&gt;&lt;$view field='caption'&gt;&lt;$view field='title'/&gt;&lt;/$view&gt;&lt;/$link&gt;&quot;&gt;
&lt;&lt;toc-caption&gt;&gt;
&lt;/$list&gt;
&lt;$macrocall $name=&quot;toc-body&quot; tag=&lt;&lt;item&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;excluded&gt;&gt; path=&lt;&lt;path&gt;&gt;/&gt;
&lt;/li&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$vars&gt;
&lt;/$list&gt;
&lt;/ol&gt;
\end
\define toc(tag,sort:&quot;&quot;,itemClassFilter:&quot;&quot;)
&lt;$macrocall $name=&quot;toc-body&quot; tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; /&gt;
\end
\define toc-linked-expandable-body(tag,sort:&quot;&quot;,itemClassFilter,exclude,path)
&lt;!-- helper function --&gt;
&lt;$qualify name=&quot;toc-state&quot; title={{{ [[$:/state/toc]addsuffix&lt;__path__&gt;addsuffix[-]addsuffix&lt;currentTiddler&gt;] }}}&gt;
&lt;$set name=&quot;toc-item-class&quot; filter=&lt;&lt;__itemClassFilter__&gt;&gt; emptyValue=&quot;toc-item-selected&quot; value=&quot;toc-item&quot;&gt;
&lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;
&lt;$link&gt;
&lt;$reveal type=&quot;nomatch&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=&quot;open&quot; class=&quot;tc-btn-invisible tc-popup-keep&quot;&gt;
{{$:/core/images/right-arrow}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=&quot;close&quot; class=&quot;tc-btn-invisible tc-popup-keep&quot;&gt;
{{$:/core/images/down-arrow}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;&lt;toc-caption&gt;&gt;
&lt;/$link&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$macrocall $name=&quot;toc-expandable&quot; tag=&lt;&lt;currentTiddler&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;__exclude__&gt;&gt; path=&lt;&lt;__path__&gt;&gt;/&gt;
&lt;/$reveal&gt;
&lt;/li&gt;
&lt;/$set&gt;
&lt;/$qualify&gt;
\end
\define toc-unlinked-expandable-body(tag,sort:&quot;&quot;,itemClassFilter,exclude,path)
&lt;!-- helper function --&gt;
&lt;$qualify name=&quot;toc-state&quot; title={{{ [[$:/state/toc]addsuffix&lt;__path__&gt;addsuffix[-]addsuffix&lt;currentTiddler&gt;] }}}&gt;
&lt;$set name=&quot;toc-item-class&quot; filter=&lt;&lt;__itemClassFilter__&gt;&gt; emptyValue=&quot;toc-item-selected&quot; value=&quot;toc-item&quot;&gt;
&lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;
&lt;$reveal type=&quot;nomatch&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=&quot;open&quot; class=&quot;tc-btn-invisible tc-popup-keep&quot;&gt;
{{$:/core/images/right-arrow}}
&lt;&lt;toc-caption&gt;&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=&quot;close&quot; class=&quot;tc-btn-invisible tc-popup-keep&quot;&gt;
{{$:/core/images/down-arrow}}
&lt;&lt;toc-caption&gt;&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$macrocall $name=&quot;toc-expandable&quot; tag=&lt;&lt;currentTiddler&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;__exclude__&gt;&gt; path=&lt;&lt;__path__&gt;&gt;/&gt;
&lt;/$reveal&gt;
&lt;/li&gt;
&lt;/$set&gt;
&lt;/$qualify&gt;
\end
\define toc-expandable-empty-message()
&lt;$macrocall $name=&quot;toc-linked-expandable-body&quot; tag=&lt;&lt;tag&gt;&gt; sort=&lt;&lt;sort&gt;&gt; itemClassFilter=&lt;&lt;itemClassFilter&gt;&gt; exclude=&lt;&lt;excluded&gt;&gt; path=&lt;&lt;path&gt;&gt;/&gt;
\end
\define toc-expandable(tag,sort:&quot;&quot;,itemClassFilter:&quot;&quot;,exclude,path)
&lt;$vars tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; path={{{ [&lt;__path__&gt;addsuffix[/]addsuffix&lt;__tag__&gt;] }}}&gt;
&lt;$set name=&quot;excluded&quot; filter=&quot;&quot;&quot;[enlist&lt;__exclude__&gt;] [&lt;__tag__&gt;]&quot;&quot;&quot;&gt;
&lt;ol class=&quot;tc-toc toc-expandable&quot;&gt;
&lt;$list filter=&quot;&quot;&quot;[all[shadows+tiddlers]tag&lt;__tag__&gt;!has[draft.of]$sort$] -[&lt;__tag__&gt;] -[enlist&lt;__exclude__&gt;]&quot;&quot;&quot;&gt;
&lt;$list filter=&quot;[all[current]toc-link[no]]&quot; emptyMessage=&lt;&lt;toc-expandable-empty-message&gt;&gt; &gt;
&lt;$macrocall $name=&quot;toc-unlinked-expandable-body&quot; tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&quot;&quot;&quot;itemClassFilter&quot;&quot;&quot; exclude=&lt;&lt;excluded&gt;&gt; path=&lt;&lt;path&gt;&gt; /&gt;
&lt;/$list&gt;
&lt;/$list&gt;
&lt;/ol&gt;
&lt;/$set&gt;
&lt;/$vars&gt;
\end
\define toc-linked-selective-expandable-body(tag,sort:&quot;&quot;,itemClassFilter,exclude,path)
&lt;$qualify name=&quot;toc-state&quot; title={{{ [[$:/state/toc]addsuffix&lt;__path__&gt;addsuffix[-]addsuffix&lt;currentTiddler&gt;] }}}&gt;
&lt;$set name=&quot;toc-item-class&quot; filter=&lt;&lt;__itemClassFilter__&gt;&gt; emptyValue=&quot;toc-item-selected&quot; value=&quot;toc-item&quot; &gt;
&lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;
&lt;$link&gt;
&lt;$list filter=&quot;[all[current]tagging[]$sort$limit[1]]&quot; variable=&quot;ignore&quot; emptyMessage=&quot;&lt;$button class='tc-btn-invisible'&gt;{{$:/core/images/blank}}&lt;/$button&gt;&quot;&gt;
&lt;$reveal type=&quot;nomatch&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=&quot;open&quot; class=&quot;tc-btn-invisible tc-popup-keep&quot;&gt;
{{$:/core/images/right-arrow}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=&quot;close&quot; class=&quot;tc-btn-invisible tc-popup-keep&quot;&gt;
{{$:/core/images/down-arrow}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/$list&gt;
&lt;&lt;toc-caption&gt;&gt;
&lt;/$link&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$macrocall $name=&quot;toc-selective-expandable&quot; tag=&lt;&lt;currentTiddler&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;__exclude__&gt;&gt; path=&lt;&lt;__path__&gt;&gt;/&gt;
&lt;/$reveal&gt;
&lt;/li&gt;
&lt;/$set&gt;
&lt;/$qualify&gt;
\end
\define toc-unlinked-selective-expandable-body(tag,sort:&quot;&quot;,itemClassFilter,exclude,path)
&lt;$qualify name=&quot;toc-state&quot; title={{{ [[$:/state/toc]addsuffix&lt;__path__&gt;addsuffix[-]addsuffix&lt;currentTiddler&gt;] }}}&gt;
&lt;$set name=&quot;toc-item-class&quot; filter=&lt;&lt;__itemClassFilter__&gt;&gt; emptyValue=&quot;toc-item-selected&quot; value=&quot;toc-item&quot;&gt;
&lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;
&lt;$list filter=&quot;[all[current]tagging[]$sort$limit[1]]&quot; variable=&quot;ignore&quot; emptyMessage=&quot;&lt;$button class='tc-btn-invisible'&gt;{{$:/core/images/blank}}&lt;/$button&gt; &lt;$view field='caption'&gt;&lt;$view field='title'/&gt;&lt;/$view&gt;&quot;&gt;
&lt;$reveal type=&quot;nomatch&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=&quot;open&quot; class=&quot;tc-btn-invisible tc-popup-keep&quot;&gt;
{{$:/core/images/right-arrow}}
&lt;&lt;toc-caption&gt;&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$button setTitle=&lt;&lt;toc-state&gt;&gt; setTo=&quot;close&quot; class=&quot;tc-btn-invisible tc-popup-keep&quot;&gt;
{{$:/core/images/down-arrow}}
&lt;&lt;toc-caption&gt;&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/$list&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;toc-state&gt;&gt; text=&quot;open&quot;&gt;
&lt;$macrocall $name=&quot;toc-selective-expandable&quot; tag=&lt;&lt;currentTiddler&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;__exclude__&gt;&gt; path=&lt;&lt;__path__&gt;&gt;/&gt;
&lt;/$reveal&gt;
&lt;/li&gt;
&lt;/$set&gt;
&lt;/$qualify&gt;
\end
\define toc-selective-expandable-empty-message()
&lt;$macrocall $name=&quot;toc-linked-selective-expandable-body&quot; tag=&lt;&lt;tag&gt;&gt; sort=&lt;&lt;sort&gt;&gt; itemClassFilter=&lt;&lt;itemClassFilter&gt;&gt; exclude=&lt;&lt;excluded&gt;&gt; path=&lt;&lt;path&gt;&gt;/&gt;
\end
\define toc-selective-expandable(tag,sort:&quot;&quot;,itemClassFilter,exclude,path)
&lt;$vars tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; path={{{ [&lt;__path__&gt;addsuffix[/]addsuffix&lt;__tag__&gt;] }}}&gt;
&lt;$set name=&quot;excluded&quot; filter=&quot;&quot;&quot;[enlist&lt;__exclude__&gt;] [&lt;__tag__&gt;]&quot;&quot;&quot;&gt;
&lt;ol class=&quot;tc-toc toc-selective-expandable&quot;&gt;
&lt;$list filter=&quot;&quot;&quot;[all[shadows+tiddlers]tag&lt;__tag__&gt;!has[draft.of]$sort$] -[&lt;__tag__&gt;] -[enlist&lt;__exclude__&gt;]&quot;&quot;&quot;&gt;
&lt;$list filter=&quot;[all[current]toc-link[no]]&quot; variable=&quot;ignore&quot; emptyMessage=&lt;&lt;toc-selective-expandable-empty-message&gt;&gt; &gt;
&lt;$macrocall $name=&quot;toc-unlinked-selective-expandable-body&quot; tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&lt;&lt;__itemClassFilter__&gt;&gt; exclude=&lt;&lt;excluded&gt;&gt; path=&lt;&lt;path&gt;&gt;/&gt;
&lt;/$list&gt;
&lt;/$list&gt;
&lt;/ol&gt;
&lt;/$set&gt;
&lt;/$vars&gt;
\end
\define toc-tabbed-external-nav(tag,sort:&quot;&quot;,selectedTiddler:&quot;$:/temp/toc/selectedTiddler&quot;,unselectedText,missingText,template:&quot;&quot;)
&lt;$tiddler tiddler={{{ [&lt;__selectedTiddler__&gt;get[text]] }}}&gt;
&lt;div class=&quot;tc-tabbed-table-of-contents&quot;&gt;
&lt;$linkcatcher to=&lt;&lt;__selectedTiddler__&gt;&gt;&gt;
&lt;div class=&quot;tc-table-of-contents&quot;&gt;
&lt;$macrocall $name=&quot;toc-selective-expandable&quot; tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; itemClassFilter=&quot;[all[current]] -[&lt;__selectedTiddler__&gt;get[text]]&quot;/&gt;
&lt;/div&gt;
&lt;/$linkcatcher&gt;
&lt;div class=&quot;tc-tabbed-table-of-contents-content&quot;&gt;
&lt;$reveal stateTitle=&lt;&lt;__selectedTiddler__&gt;&gt; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$transclude mode=&quot;block&quot; tiddler=&lt;&lt;__template__&gt;&gt;&gt;
&lt;h1&gt;&lt;&lt;toc-caption&gt;&gt;&lt;/h1&gt;
&lt;$transclude mode=&quot;block&quot;&gt;$missingText$&lt;/$transclude&gt;
&lt;/$transclude&gt;
&lt;/$reveal&gt;
&lt;$reveal stateTitle=&lt;&lt;__selectedTiddler__&gt;&gt; type=&quot;match&quot; text=&quot;&quot;&gt;
$unselectedText$
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/$tiddler&gt;
\end
\define toc-tabbed-internal-nav(tag,sort:&quot;&quot;,selectedTiddler:&quot;$:/temp/toc/selectedTiddler&quot;,unselectedText,missingText,template:&quot;&quot;)
&lt;$linkcatcher to=&lt;&lt;__selectedTiddler__&gt;&gt;&gt;
&lt;$macrocall $name=&quot;toc-tabbed-external-nav&quot; tag=&lt;&lt;__tag__&gt;&gt; sort=&lt;&lt;__sort__&gt;&gt; selectedTiddler=&lt;&lt;__selectedTiddler__&gt;&gt; unselectedText=&lt;&lt;__unselectedText__&gt;&gt; missingText=&lt;&lt;__missingText__&gt;&gt; template=&lt;&lt;__template__&gt;&gt;/&gt;
&lt;/$linkcatcher&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/translink">
<pre>\define translink(title,mode:&quot;block&quot;)
&lt;div style=&quot;border:1px solid #ccc; padding: 0.5em; background: black; foreground; white;&quot;&gt;
&lt;$link to=&quot;&quot;&quot;$title$&quot;&quot;&quot;&gt;
&lt;$text text=&quot;&quot;&quot;$title$&quot;&quot;&quot;/&gt;
&lt;/$link&gt;
&lt;div style=&quot;border:1px solid #ccc; padding: 0.5em; background: white; foreground; black;&quot;&gt;
&lt;$transclude tiddler=&quot;&quot;&quot;$title$&quot;&quot;&quot; mode=&quot;$mode$&quot;&gt;
&quot;&lt;$text text=&quot;&quot;&quot;$title$&quot;&quot;&quot;/&gt;&quot; is missing
&lt;/$transclude&gt;
&lt;/div&gt;
&lt;/div&gt;
\end
</pre>
</div>
<div tags="$:/tags/Macro" title="$:/core/macros/tree">
<pre>\define leaf-link(full-title,chunk,separator: &quot;/&quot;)
&lt;$link to=&lt;&lt;__full-title__&gt;&gt;&gt;&lt;$text text=&lt;&lt;__chunk__&gt;&gt;/&gt;&lt;/$link&gt;
\end
\define leaf-node(prefix,chunk)
&lt;li&gt;
&lt;$list filter=&quot;[&lt;__prefix__&gt;addsuffix&lt;__chunk__&gt;is[shadow]] [&lt;__prefix__&gt;addsuffix&lt;__chunk__&gt;is[tiddler]]&quot; variable=&quot;full-title&quot;&gt;
&lt;$list filter=&quot;[&lt;full-title&gt;removeprefix&lt;__prefix__&gt;]&quot; variable=&quot;chunk&quot;&gt;
&lt;span&gt;{{$:/core/images/file}}&lt;/span&gt; &lt;$macrocall $name=&quot;leaf-link&quot; full-title=&lt;&lt;full-title&gt;&gt; chunk=&lt;&lt;chunk&gt;&gt;/&gt;
&lt;/$list&gt;
&lt;/$list&gt;
&lt;/li&gt;
\end
\define branch-node(prefix,chunk,separator: &quot;/&quot;)
&lt;li&gt;
&lt;$set name=&quot;reveal-state&quot; value={{{ [[$:/state/tree/]addsuffix&lt;__prefix__&gt;addsuffix&lt;__chunk__&gt;] }}}&gt;
&lt;$reveal type=&quot;nomatch&quot; stateTitle=&lt;&lt;reveal-state&gt;&gt; text=&quot;show&quot;&gt;
&lt;$button setTitle=&lt;&lt;reveal-state&gt;&gt; setTo=&quot;show&quot; class=&quot;tc-btn-invisible&quot;&gt;
{{$:/core/images/folder}} &lt;$text text=&lt;&lt;__chunk__&gt;&gt;/&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;reveal-state&gt;&gt; text=&quot;show&quot;&gt;
&lt;$button setTitle=&lt;&lt;reveal-state&gt;&gt; setTo=&quot;hide&quot; class=&quot;tc-btn-invisible&quot;&gt;
{{$:/core/images/folder}} &lt;$text text=&lt;&lt;__chunk__&gt;&gt;/&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;span&gt;(&lt;$count filter=&quot;[all[shadows+tiddlers]removeprefix&lt;__prefix__&gt;removeprefix&lt;__chunk__&gt;] -[&lt;__prefix__&gt;addsuffix&lt;__chunk__&gt;]&quot;/&gt;)&lt;/span&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;reveal-state&gt;&gt; text=&quot;show&quot;&gt;
&lt;$macrocall $name=&quot;tree-node&quot; prefix={{{ [&lt;__prefix__&gt;addsuffix&lt;__chunk__&gt;] }}} separator=&lt;&lt;__separator__&gt;&gt;/&gt;
&lt;/$reveal&gt;
&lt;/$set&gt;
&lt;/li&gt;
\end
\define tree-node(prefix,separator: &quot;/&quot;)
&lt;ol&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]removeprefix&lt;__prefix__&gt;splitbefore&lt;__separator__&gt;sort[]!suffix&lt;__separator__&gt;]&quot; variable=&quot;chunk&quot;&gt;
&lt;$macrocall $name=&quot;leaf-node&quot; prefix=&lt;&lt;__prefix__&gt;&gt; chunk=&lt;&lt;chunk&gt;&gt; separator=&lt;&lt;__separator__&gt;&gt;/&gt;
&lt;/$list&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]removeprefix&lt;__prefix__&gt;splitbefore&lt;__separator__&gt;sort[]suffix&lt;__separator__&gt;]&quot; variable=&quot;chunk&quot;&gt;
&lt;$macrocall $name=&quot;branch-node&quot; prefix=&lt;&lt;__prefix__&gt;&gt; chunk=&lt;&lt;chunk&gt;&gt; separator=&lt;&lt;__separator__&gt;&gt;/&gt;
&lt;/$list&gt;
&lt;/ol&gt;
\end
\define tree(prefix: &quot;$:/&quot;,separator: &quot;/&quot;)
&lt;div class=&quot;tc-tree&quot;&gt;
&lt;span&gt;&lt;$text text=&lt;&lt;__prefix__&gt;&gt;/&gt;&lt;/span&gt;
&lt;div&gt;
&lt;$macrocall $name=&quot;tree-node&quot; prefix=&lt;&lt;__prefix__&gt;&gt; separator=&lt;&lt;__separator__&gt;&gt;/&gt;
&lt;/div&gt;
&lt;/div&gt;
\end
</pre>
</div>
<div title="$:/core/macros/utils">
<pre>\define colour(colour)
$colour$
\end
</pre>
</div>
<div module-type="startup" title="$:/core/modules/browser-messaging.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/browser-messaging.js
type: application/javascript
module-type: startup
Browser message handling
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;browser-messaging&quot;;
exports.platforms = [&quot;browser&quot;];
exports.after = [&quot;startup&quot;];
exports.synchronous = true;
/*
Load a specified url as an iframe and call the callback when it is loaded. If the url is already loaded then the existing iframe instance is used
*/
function loadIFrame(url,callback) {
// Check if iframe already exists
var iframeInfo = $tw.browserMessaging.iframeInfoMap[url];
if(iframeInfo) {
// We've already got the iframe
callback(null,iframeInfo);
} else {
// Create the iframe and save it in the list
var iframe = document.createElement(&quot;iframe&quot;);
iframeInfo = {
url: url,
status: &quot;loading&quot;,
domNode: iframe
};
$tw.browserMessaging.iframeInfoMap[url] = iframeInfo;
saveIFrameInfoTiddler(iframeInfo);
// Add the iframe to the DOM and hide it
iframe.style.display = &quot;none&quot;;
iframe.setAttribute(&quot;library&quot;,&quot;true&quot;);
document.body.appendChild(iframe);
// Set up onload
iframe.onload = function() {
iframeInfo.status = &quot;loaded&quot;;
saveIFrameInfoTiddler(iframeInfo);
callback(null,iframeInfo);
};
iframe.onerror = function() {
callback(&quot;Cannot load iframe&quot;);
};
try {
iframe.src = url;
} catch(ex) {
callback(ex);
}
}
}
/*
Unload library iframe for given url
*/
function unloadIFrame(url){
$tw.utils.each(document.getElementsByTagName('iframe'), function(iframe) {
if(iframe.getAttribute(&quot;library&quot;) === &quot;true&quot; &amp;&amp;
iframe.getAttribute(&quot;src&quot;) === url) {
iframe.parentNode.removeChild(iframe);
}
});
}
function saveIFrameInfoTiddler(iframeInfo) {
$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),{
title: &quot;$:/temp/ServerConnection/&quot; + iframeInfo.url,
text: iframeInfo.status,
tags: [&quot;$:/tags/ServerConnection&quot;],
url: iframeInfo.url
},$tw.wiki.getModificationFields()));
}
exports.startup = function() {
// Initialise the store of iframes we've created
$tw.browserMessaging = {
iframeInfoMap: {} // Hashmap by URL of {url:,status:&quot;loading/loaded&quot;,domNode:}
};
// Listen for widget messages to control loading the plugin library
$tw.rootWidget.addEventListener(&quot;tm-load-plugin-library&quot;,function(event) {
var paramObject = event.paramObject || {},
url = paramObject.url;
if(url) {
loadIFrame(url,function(err,iframeInfo) {
if(err) {
alert($tw.language.getString(&quot;Error/LoadingPluginLibrary&quot;) + &quot;: &quot; + url);
} else {
iframeInfo.domNode.contentWindow.postMessage({
verb: &quot;GET&quot;,
url: &quot;recipes/library/tiddlers.json&quot;,
cookies: {
type: &quot;save-info&quot;,
infoTitlePrefix: paramObject.infoTitlePrefix || &quot;$:/temp/RemoteAssetInfo/&quot;,
url: url
}
},&quot;*&quot;);
}
});
}
});
// Listen for widget messages to control unloading the plugin library
$tw.rootWidget.addEventListener(&quot;tm-unload-plugin-library&quot;,function(event) {
var paramObject = event.paramObject || {},
url = paramObject.url;
$tw.browserMessaging.iframeInfoMap[url] = undefined;
if(url) {
unloadIFrame(url);
$tw.utils.each(
$tw.wiki.filterTiddlers(&quot;[[$:/temp/ServerConnection/&quot; + url + &quot;]] [prefix[$:/temp/RemoteAssetInfo/&quot; + url + &quot;/]]&quot;),
function(title) {
$tw.wiki.deleteTiddler(title);
}
);
}
});
$tw.rootWidget.addEventListener(&quot;tm-load-plugin-from-library&quot;,function(event) {
var paramObject = event.paramObject || {},
url = paramObject.url,
title = paramObject.title;
if(url &amp;&amp; title) {
loadIFrame(url,function(err,iframeInfo) {
if(err) {
alert($tw.language.getString(&quot;Error/LoadingPluginLibrary&quot;) + &quot;: &quot; + url);
} else {
iframeInfo.domNode.contentWindow.postMessage({
verb: &quot;GET&quot;,
url: &quot;recipes/library/tiddlers/&quot; + encodeURIComponent(title) + &quot;.json&quot;,
cookies: {
type: &quot;save-tiddler&quot;,
url: url
}
},&quot;*&quot;);
}
});
}
});
// Listen for window messages from other windows
window.addEventListener(&quot;message&quot;,function listener(event){
// console.log(&quot;browser-messaging: &quot;,document.location.toString())
// console.log(&quot;browser-messaging: Received message from&quot;,event.origin);
// console.log(&quot;browser-messaging: Message content&quot;,event.data);
switch(event.data.verb) {
case &quot;GET-RESPONSE&quot;:
if(event.data.status.charAt(0) === &quot;2&quot;) {
if(event.data.cookies) {
if(event.data.cookies.type === &quot;save-info&quot;) {
var tiddlers = JSON.parse(event.data.body);
$tw.utils.each(tiddlers,function(tiddler) {
$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),tiddler,{
title: event.data.cookies.infoTitlePrefix + event.data.cookies.url + &quot;/&quot; + tiddler.title,
&quot;original-title&quot;: tiddler.title,
text: &quot;&quot;,
type: &quot;text/vnd.tiddlywiki&quot;,
&quot;original-type&quot;: tiddler.type,
&quot;plugin-type&quot;: undefined,
&quot;original-plugin-type&quot;: tiddler[&quot;plugin-type&quot;],
&quot;module-type&quot;: undefined,
&quot;original-module-type&quot;: tiddler[&quot;module-type&quot;],
tags: [&quot;$:/tags/RemoteAssetInfo&quot;],
&quot;original-tags&quot;: $tw.utils.stringifyList(tiddler.tags || []),
&quot;server-url&quot;: event.data.cookies.url
},$tw.wiki.getModificationFields()));
});
} else if(event.data.cookies.type === &quot;save-tiddler&quot;) {
var tiddler = JSON.parse(event.data.body);
$tw.wiki.addTiddler(new $tw.Tiddler(tiddler));
}
}
}
break;
}
},false);
};
})();
</pre>
</div>
<div module-type="global" title="$:/core/modules/commander.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commander.js
type: application/javascript
module-type: global
The $tw.Commander class is a command interpreter
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Parse a sequence of commands
commandTokens: an array of command string tokens
wiki: reference to the wiki store object
streams: {output:, error:}, each of which has a write(string) method
callback: a callback invoked as callback(err) where err is null if there was no error
*/
var Commander = function(commandTokens,callback,wiki,streams) {
var path = require(&quot;path&quot;);
this.commandTokens = commandTokens;
this.nextToken = 0;
this.callback = callback;
this.wiki = wiki;
this.streams = streams;
this.outputPath = path.resolve($tw.boot.wikiPath,$tw.config.wikiOutputSubDir);
};
/*
Log a string if verbose flag is set
*/
Commander.prototype.log = function(str) {
if(this.verbose) {
this.streams.output.write(str + &quot;\n&quot;);
}
};
/*
Write a string if verbose flag is set
*/
Commander.prototype.write = function(str) {
if(this.verbose) {
this.streams.output.write(str);
}
};
/*
Add a string of tokens to the command queue
*/
Commander.prototype.addCommandTokens = function(commandTokens) {
var params = commandTokens.slice(0);
params.unshift(0);
params.unshift(this.nextToken);
Array.prototype.splice.apply(this.commandTokens,params);
};
/*
Execute the sequence of commands and invoke a callback on completion
*/
Commander.prototype.execute = function() {
this.executeNextCommand();
};
/*
Execute the next command in the sequence
*/
Commander.prototype.executeNextCommand = function() {
var self = this;
// Invoke the callback if there are no more commands
if(this.nextToken &gt;= this.commandTokens.length) {
this.callback(null);
} else {
// Get and check the command token
var commandName = this.commandTokens[this.nextToken++];
if(commandName.substr(0,2) !== &quot;--&quot;) {
this.callback(&quot;Missing command: &quot; + commandName);
} else {
commandName = commandName.substr(2); // Trim off the --
// Accumulate the parameters to the command
var params = [];
while(this.nextToken &lt; this.commandTokens.length &amp;&amp;
this.commandTokens[this.nextToken].substr(0,2) !== &quot;--&quot;) {
params.push(this.commandTokens[this.nextToken++]);
}
// Get the command info
var command = $tw.commands[commandName],
c,err;
if(!command) {
this.callback(&quot;Unknown command: &quot; + commandName);
} else {
if(this.verbose) {
this.streams.output.write(&quot;Executing command: &quot; + commandName + &quot; &quot; + params.join(&quot; &quot;) + &quot;\n&quot;);
}
// Parse named parameters if required
if(command.info.namedParameterMode) {
params = this.extractNamedParameters(params,command.info.mandatoryParameters);
if(typeof params === &quot;string&quot;) {
return this.callback(params);
}
}
if(command.info.synchronous) {
// Synchronous command
c = new command.Command(params,this);
err = c.execute();
if(err) {
this.callback(err);
} else {
this.executeNextCommand();
}
} else {
// Asynchronous command
c = new command.Command(params,this,function(err) {
if(err) {
self.callback(err);
} else {
self.executeNextCommand();
}
});
err = c.execute();
if(err) {
this.callback(err);
}
}
}
}
}
};
/*
Given an array of parameter strings `params` in name:value format, and an array of mandatory parameter names in `mandatoryParameters`, returns a hashmap of values or a string if error
*/
Commander.prototype.extractNamedParameters = function(params,mandatoryParameters) {
mandatoryParameters = mandatoryParameters || [];
var errors = [],
paramsByName = Object.create(null);
// Extract the parameters
$tw.utils.each(params,function(param) {
var index = param.indexOf(&quot;=&quot;);
if(index &lt; 1) {
errors.push(&quot;malformed named parameter: '&quot; + param + &quot;'&quot;);
}
paramsByName[param.slice(0,index)] = $tw.utils.trim(param.slice(index+1));
});
// Check the mandatory parameters are present
$tw.utils.each(mandatoryParameters,function(mandatoryParameter) {
if(!$tw.utils.hop(paramsByName,mandatoryParameter)) {
errors.push(&quot;missing mandatory parameter: '&quot; + mandatoryParameter + &quot;'&quot;);
}
});
// Return any errors
if(errors.length &gt; 0) {
return errors.join(&quot; and\n&quot;);
} else {
return paramsByName;
}
};
Commander.initCommands = function(moduleType) {
moduleType = moduleType || &quot;command&quot;;
$tw.commands = {};
$tw.modules.forEachModuleOfType(moduleType,function(title,module) {
var c = $tw.commands[module.info.name] = {};
// Add the methods defined by the module
for(var f in module) {
if($tw.utils.hop(module,f)) {
c[f] = module[f];
}
}
});
};
exports.Commander = Commander;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/build.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/build.js
type: application/javascript
module-type: command
Command to build a build target
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;build&quot;,
synchronous: true
};
var Command = function(params,commander) {
this.params = params;
this.commander = commander;
};
Command.prototype.execute = function() {
// Get the build targets defined in the wiki
var buildTargets = $tw.boot.wikiInfo.build;
if(!buildTargets) {
return &quot;No build targets defined&quot;;
}
// Loop through each of the specified targets
var targets;
if(this.params.length &gt; 0) {
targets = this.params;
} else {
targets = Object.keys(buildTargets);
}
for(var targetIndex=0; targetIndex&lt;targets.length; targetIndex++) {
var target = targets[targetIndex],
commands = buildTargets[target];
if(!commands) {
return &quot;Build target '&quot; + target + &quot;' not found&quot;;
}
// Add the commands to the queue
this.commander.addCommandTokens(commands);
}
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/clearpassword.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/clearpassword.js
type: application/javascript
module-type: command
Clear password for crypto operations
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;clearpassword&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
$tw.crypto.setPassword(null);
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/deletetiddlers.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/deletetiddlers.js
type: application/javascript
module-type: command
Command to delete tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;deletetiddlers&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 1) {
return &quot;Missing filter&quot;;
}
var self = this,
wiki = this.commander.wiki,
filter = this.params[0],
tiddlers = wiki.filterTiddlers(filter);
$tw.utils.each(tiddlers,function(title) {
wiki.deleteTiddler(title);
});
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/editions.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/editions.js
type: application/javascript
module-type: command
Command to list the available editions
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;editions&quot;,
synchronous: true
};
var Command = function(params,commander) {
this.params = params;
this.commander = commander;
};
Command.prototype.execute = function() {
var self = this;
// Output the list
this.commander.streams.output.write(&quot;Available editions:\n\n&quot;);
var editionInfo = $tw.utils.getEditionInfo();
$tw.utils.each(editionInfo,function(info,name) {
self.commander.streams.output.write(&quot; &quot; + name + &quot;: &quot; + info.description + &quot;\n&quot;);
});
this.commander.streams.output.write(&quot;\n&quot;);
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/fetch.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/fetch.js
type: application/javascript
module-type: command
Commands to fetch external tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;fetch&quot;,
synchronous: false
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 2) {
return &quot;Missing subcommand and url&quot;;
}
switch(this.params[0]) {
case &quot;raw-file&quot;:
return this.fetchFiles({
raw: true,
url: this.params[1],
transformFilter: this.params[2] || &quot;&quot;,
callback: this.callback
});
break;
case &quot;file&quot;:
return this.fetchFiles({
url: this.params[1],
importFilter: this.params[2],
transformFilter: this.params[3] || &quot;&quot;,
callback: this.callback
});
break;
case &quot;raw-files&quot;:
return this.fetchFiles({
raw: true,
urlFilter: this.params[1],
transformFilter: this.params[2] || &quot;&quot;,
callback: this.callback
});
break;
case &quot;files&quot;:
return this.fetchFiles({
urlFilter: this.params[1],
importFilter: this.params[2],
transformFilter: this.params[3] || &quot;&quot;,
callback: this.callback
});
break;
}
return null;
};
Command.prototype.fetchFiles = function(options) {
var self = this;
// Get the list of URLs
var urls;
if(options.url) {
urls = [options.url]
} else if(options.urlFilter) {
urls = $tw.wiki.filterTiddlers(options.urlFilter);
} else {
return &quot;Missing URL&quot;;
}
// Process each URL in turn
var next = 0;
var getNextFile = function(err) {
if(err) {
return options.callback(err);
}
if(next &lt; urls.length) {
self.fetchFile(urls[next++],options,getNextFile);
} else {
options.callback(null);
}
};
getNextFile(null);
// Success
return null;
};
Command.prototype.fetchFile = function(url,options,callback,redirectCount) {
if(redirectCount &gt; 10) {
return callback(&quot;Error too many redirects retrieving &quot; + url);
}
var self = this,
lib = url.substr(0,8) === &quot;https://&quot; ? require(&quot;https&quot;) : require(&quot;http&quot;);
lib.get(url).on(&quot;response&quot;,function(response) {
var type = (response.headers[&quot;content-type&quot;] || &quot;&quot;).split(&quot;;&quot;)[0],
data = [];
self.commander.write(&quot;Reading &quot; + url + &quot;: &quot;);
response.on(&quot;data&quot;,function(chunk) {
data.push(chunk);
self.commander.write(&quot;.&quot;);
});
response.on(&quot;end&quot;,function() {
self.commander.write(&quot;\n&quot;);
if(response.statusCode === 200) {
self.processBody(Buffer.concat(data),type,options,url);
callback(null);
} else {
if(response.statusCode === 302 || response.statusCode === 303 || response.statusCode === 307) {
return self.fetchFile(response.headers.location,options,callback,redirectCount + 1);
} else {
return callback(&quot;Error &quot; + response.statusCode + &quot; retrieving &quot; + url)
}
}
});
response.on(&quot;error&quot;,function(e) {
console.log(&quot;Error on GET request: &quot; + e);
callback(e);
});
});
return null;
};
Command.prototype.processBody = function(body,type,options,url) {
var self = this;
// Collect the tiddlers in a wiki
var incomingWiki = new $tw.Wiki();
if(options.raw) {
var typeInfo = type ? $tw.config.contentTypeInfo[type] : null,
encoding = typeInfo ? typeInfo.encoding : &quot;utf8&quot;;
incomingWiki.addTiddler(new $tw.Tiddler({
title: url,
type: type,
text: body.toString(encoding)
}));
} else {
// Deserialise the file to extract the tiddlers
var tiddlers = this.commander.wiki.deserializeTiddlers(type || &quot;text/html&quot;,body.toString(&quot;utf8&quot;),{});
$tw.utils.each(tiddlers,function(tiddler) {
incomingWiki.addTiddler(new $tw.Tiddler(tiddler));
});
}
// Filter the tiddlers to select the ones we want
var filteredTitles = incomingWiki.filterTiddlers(options.importFilter || &quot;[all[tiddlers]]&quot;);
// Import the selected tiddlers
var count = 0;
incomingWiki.each(function(tiddler,title) {
if(filteredTitles.indexOf(title) !== -1) {
var newTiddler;
if(options.transformFilter) {
var transformedTitle = (incomingWiki.filterTiddlers(options.transformFilter,null,self.commander.wiki.makeTiddlerIterator([title])) || [&quot;&quot;])[0];
if(transformedTitle) {
self.commander.log(&quot;Importing &quot; + title + &quot; as &quot; + transformedTitle)
newTiddler = new $tw.Tiddler(tiddler,{title: transformedTitle});
}
} else {
self.commander.log(&quot;Importing &quot; + title)
newTiddler = tiddler;
}
self.commander.wiki.importTiddler(newTiddler);
count++;
}
});
self.commander.log(&quot;Imported &quot; + count + &quot; tiddlers&quot;)
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/help.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/help.js
type: application/javascript
module-type: command
Help command
\*/
(function(){
/*jshint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;help&quot;,
synchronous: true
};
var Command = function(params,commander) {
this.params = params;
this.commander = commander;
};
Command.prototype.execute = function() {
var subhelp = this.params[0] || &quot;default&quot;,
helpBase = &quot;$:/language/Help/&quot;,
text;
if(!this.commander.wiki.getTiddler(helpBase + subhelp)) {
subhelp = &quot;notfound&quot;;
}
// Wikify the help as formatted text (ie block elements generate newlines)
text = this.commander.wiki.renderTiddler(&quot;text/plain-formatted&quot;,helpBase + subhelp);
// Remove any leading linebreaks
text = text.replace(/^(\r?\n)*/g,&quot;&quot;);
this.commander.streams.output.write(text);
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/import.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/import.js
type: application/javascript
module-type: command
Command to import tiddlers from a file
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;import&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
var self = this,
fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;);
if(this.params.length &lt; 2) {
return &quot;Missing parameters&quot;;
}
var filename = self.params[0],
deserializer = self.params[1],
title = self.params[2] || filename,
encoding = self.params[3] || &quot;utf8&quot;,
text = fs.readFileSync(filename,encoding),
tiddlers = this.commander.wiki.deserializeTiddlers(null,text,{title: title},{deserializer: deserializer});
$tw.utils.each(tiddlers,function(tiddler) {
self.commander.wiki.importTiddler(new $tw.Tiddler(tiddler));
});
this.commander.log(tiddlers.length + &quot; tiddler(s) imported&quot;);
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/init.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/init.js
type: application/javascript
module-type: command
Command to initialise an empty wiki folder
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;init&quot;,
synchronous: true
};
var Command = function(params,commander) {
this.params = params;
this.commander = commander;
};
Command.prototype.execute = function() {
var fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;);
// Check that we don't already have a valid wiki folder
if($tw.boot.wikiTiddlersPath || ($tw.utils.isDirectory($tw.boot.wikiPath) &amp;&amp; !$tw.utils.isDirectoryEmpty($tw.boot.wikiPath))) {
return &quot;Wiki folder is not empty&quot;;
}
// Loop through each of the specified editions
var editions = this.params.length &gt; 0 ? this.params : [&quot;empty&quot;];
for(var editionIndex=0; editionIndex&lt;editions.length; editionIndex++) {
var editionName = editions[editionIndex];
// Check the edition exists
var editionPath = $tw.findLibraryItem(editionName,$tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar));
if(!$tw.utils.isDirectory(editionPath)) {
return &quot;Edition '&quot; + editionName + &quot;' not found&quot;;
}
// Copy the edition content
var err = $tw.utils.copyDirectory(editionPath,$tw.boot.wikiPath);
if(!err) {
this.commander.streams.output.write(&quot;Copied edition '&quot; + editionName + &quot;' to &quot; + $tw.boot.wikiPath + &quot;\n&quot;);
} else {
return err;
}
}
// Tweak the tiddlywiki.info to remove any included wikis
var packagePath = $tw.boot.wikiPath + &quot;/tiddlywiki.info&quot;,
packageJson = JSON.parse(fs.readFileSync(packagePath));
delete packageJson.includeWikis;
fs.writeFileSync(packagePath,JSON.stringify(packageJson,null,$tw.config.preferences.jsonSpaces));
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/listen.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/listen.js
type: application/javascript
module-type: command
Listen for HTTP requests and serve tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Server = require(&quot;$:/core/modules/server/server.js&quot;).Server;
exports.info = {
name: &quot;listen&quot;,
synchronous: true,
namedParameterMode: true,
mandatoryParameters: [],
};
var Command = function(params,commander,callback) {
var self = this;
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
var self = this;
if(!$tw.boot.wikiTiddlersPath) {
$tw.utils.warning(&quot;Warning: Wiki folder '&quot; + $tw.boot.wikiPath + &quot;' does not exist or is missing a tiddlywiki.info file&quot;);
}
// Set up server
this.server = new Server({
wiki: this.commander.wiki,
variables: self.params
});
var nodeServer = this.server.listen();
$tw.hooks.invokeHook(&quot;th-server-command-post-start&quot;,this.server,nodeServer,&quot;tiddlywiki&quot;);
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/load.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/load.js
type: application/javascript
module-type: command
Command to load tiddlers from a file or directory
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;load&quot;,
synchronous: false
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
var self = this,
fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;);
if(this.params.length &lt; 1) {
return &quot;Missing filename&quot;;
}
var tiddlers = $tw.loadTiddlersFromPath(self.params[0]),
count = 0;
$tw.utils.each(tiddlers,function(tiddlerInfo) {
$tw.utils.each(tiddlerInfo.tiddlers,function(tiddler) {
self.commander.wiki.importTiddler(new $tw.Tiddler(tiddler));
count++;
});
});
if(!count &amp;&amp; self.params[1] !== &quot;noerror&quot;) {
self.callback(&quot;No tiddlers found in file \&quot;&quot; + self.params[0] + &quot;\&quot;&quot;);
} else {
self.callback(null);
}
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/makelibrary.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/makelibrary.js
type: application/javascript
module-type: command
Command to pack all of the plugins in the library into a plugin tiddler of type &quot;library&quot;
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;makelibrary&quot;,
synchronous: true
};
var UPGRADE_LIBRARY_TITLE = &quot;$:/UpgradeLibrary&quot;;
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
var wiki = this.commander.wiki,
fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;),
upgradeLibraryTitle = this.params[0] || UPGRADE_LIBRARY_TITLE,
tiddlers = {};
// Collect up the library plugins
var collectPlugins = function(folder) {
var pluginFolders = fs.readdirSync(folder);
for(var p=0; p&lt;pluginFolders.length; p++) {
if(!$tw.boot.excludeRegExp.test(pluginFolders[p])) {
pluginFields = $tw.loadPluginFolder(path.resolve(folder,&quot;./&quot; + pluginFolders[p]));
if(pluginFields &amp;&amp; pluginFields.title) {
tiddlers[pluginFields.title] = pluginFields;
}
}
}
},
collectPublisherPlugins = function(folder) {
var publisherFolders = fs.readdirSync(folder);
for(var t=0; t&lt;publisherFolders.length; t++) {
if(!$tw.boot.excludeRegExp.test(publisherFolders[t])) {
collectPlugins(path.resolve(folder,&quot;./&quot; + publisherFolders[t]));
}
}
};
$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.pluginsPath,$tw.config.pluginsEnvVar),collectPublisherPlugins);
$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.themesPath,$tw.config.themesEnvVar),collectPublisherPlugins);
$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.languagesPath,$tw.config.languagesEnvVar),collectPlugins);
// Save the upgrade library tiddler
var pluginFields = {
title: upgradeLibraryTitle,
type: &quot;application/json&quot;,
&quot;plugin-type&quot;: &quot;library&quot;,
&quot;text&quot;: JSON.stringify({tiddlers: tiddlers})
};
wiki.addTiddler(new $tw.Tiddler(pluginFields));
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/output.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/output.js
type: application/javascript
module-type: command
Command to set the default output location (defaults to current working directory)
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;output&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
var fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;);
if(this.params.length &lt; 1) {
return &quot;Missing output path&quot;;
}
this.commander.outputPath = path.resolve(process.cwd(),this.params[0]);
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/password.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/password.js
type: application/javascript
module-type: command
Save password for crypto operations
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;password&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 1) {
return &quot;Missing password&quot;;
}
$tw.crypto.setPassword(this.params[0]);
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/render.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/render.js
type: application/javascript
module-type: command
Render individual tiddlers and save the results to the specified files
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var widget = require(&quot;$:/core/modules/widgets/widget.js&quot;);
exports.info = {
name: &quot;render&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 1) {
return &quot;Missing tiddler filter&quot;;
}
var self = this,
fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;),
wiki = this.commander.wiki,
tiddlerFilter = this.params[0],
filenameFilter = this.params[1] || &quot;[is[tiddler]addsuffix[.html]]&quot;,
type = this.params[2] || &quot;text/html&quot;,
template = this.params[3],
varName = this.params[4],
varValue = this.params[5],
tiddlers = wiki.filterTiddlers(tiddlerFilter);
$tw.utils.each(tiddlers,function(title) {
var parser = wiki.parseTiddler(template || title),
variables = {currentTiddler: title};
if(varName) {
variables[varName] = varValue || &quot;&quot;;
}
var widgetNode = wiki.makeWidget(parser,{variables: variables}),
container = $tw.fakeDocument.createElement(&quot;div&quot;);
widgetNode.render(container,null);
var text = type === &quot;text/html&quot; ? container.innerHTML : container.textContent,
filepath = path.resolve(self.commander.outputPath,wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]))[0]);
if(self.commander.verbose) {
console.log(&quot;Rendering \&quot;&quot; + title + &quot;\&quot; to \&quot;&quot; + filepath + &quot;\&quot;&quot;);
}
$tw.utils.createFileDirectories(filepath);
fs.writeFileSync(filepath,text,&quot;utf8&quot;);
});
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/rendertiddler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/rendertiddler.js
type: application/javascript
module-type: command
Command to render a tiddler and save it to a file
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;rendertiddler&quot;,
synchronous: false
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 2) {
return &quot;Missing filename&quot;;
}
var self = this,
fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;),
title = this.params[0],
filename = path.resolve(this.commander.outputPath,this.params[1]),
type = this.params[2] || &quot;text/html&quot;,
template = this.params[3],
name = this.params[4],
value = this.params[5],
variables = {};
$tw.utils.createFileDirectories(filename);
if(template) {
variables.currentTiddler = title;
title = template;
}
if(name &amp;&amp; value) {
variables[name] = value;
}
fs.writeFile(filename,this.commander.wiki.renderTiddler(type,title,{variables: variables}),&quot;utf8&quot;,function(err) {
self.callback(err);
});
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/rendertiddlers.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/rendertiddlers.js
type: application/javascript
module-type: command
Command to render several tiddlers to a folder of files
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var widget = require(&quot;$:/core/modules/widgets/widget.js&quot;);
exports.info = {
name: &quot;rendertiddlers&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 2) {
return &quot;Missing filename&quot;;
}
var self = this,
fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;),
wiki = this.commander.wiki,
filter = this.params[0],
template = this.params[1],
outputPath = this.commander.outputPath,
pathname = path.resolve(outputPath,this.params[2]),
type = this.params[3] || &quot;text/html&quot;,
extension = this.params[4] || &quot;.html&quot;,
deleteDirectory = (this.params[5] || &quot;&quot;).toLowerCase() !== &quot;noclean&quot;,
tiddlers = wiki.filterTiddlers(filter);
if(deleteDirectory) {
$tw.utils.deleteDirectory(pathname);
}
$tw.utils.each(tiddlers,function(title) {
var parser = wiki.parseTiddler(template),
widgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}}),
container = $tw.fakeDocument.createElement(&quot;div&quot;);
widgetNode.render(container,null);
var text = type === &quot;text/html&quot; ? container.innerHTML : container.textContent,
exportPath = null;
if($tw.utils.hop($tw.macros,&quot;tv-get-export-path&quot;)) {
var macroPath = $tw.macros[&quot;tv-get-export-path&quot;].run.apply(self,[title]);
if(macroPath) {
exportPath = path.resolve(outputPath,macroPath + extension);
}
}
var finalPath = exportPath || path.resolve(pathname,encodeURIComponent(title) + extension);
$tw.utils.createFileDirectories(finalPath);
fs.writeFileSync(finalPath,text,&quot;utf8&quot;);
});
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/save.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/save.js
type: application/javascript
module-type: command
Saves individual tiddlers in their raw text or binary format to the specified files
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;save&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 1) {
return &quot;Missing filename filter&quot;;
}
var self = this,
fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;),
wiki = this.commander.wiki,
tiddlerFilter = this.params[0],
filenameFilter = this.params[1] || &quot;[is[tiddler]]&quot;,
tiddlers = wiki.filterTiddlers(tiddlerFilter);
$tw.utils.each(tiddlers,function(title) {
var tiddler = self.commander.wiki.getTiddler(title),
type = tiddler.fields.type || &quot;text/vnd.tiddlywiki&quot;,
contentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: &quot;utf8&quot;},
filepath = path.resolve(self.commander.outputPath,wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]))[0]);
if(self.commander.verbose) {
console.log(&quot;Saving \&quot;&quot; + title + &quot;\&quot; to \&quot;&quot; + filepath + &quot;\&quot;&quot;);
}
$tw.utils.createFileDirectories(filepath);
fs.writeFileSync(filepath,tiddler.fields.text,contentTypeInfo.encoding);
});
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/savelibrarytiddlers.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/savelibrarytiddlers.js
type: application/javascript
module-type: command
Command to save the subtiddlers of a bundle tiddler as a series of JSON files
--savelibrarytiddlers &lt;tiddler&gt; &lt;pathname&gt; &lt;skinnylisting&gt;
The tiddler identifies the bundle tiddler that contains the subtiddlers.
The pathname specifies the pathname to the folder in which the JSON files should be saved. The filename is the URL encoded title of the subtiddler.
The skinnylisting specifies the title of the tiddler to which a JSON catalogue of the subtiddlers will be saved. The JSON file contains the same data as the bundle tiddler but with the `text` field removed.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;savelibrarytiddlers&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 2) {
return &quot;Missing filename&quot;;
}
var self = this,
fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;),
containerTitle = this.params[0],
filter = this.params[1],
basepath = this.params[2],
skinnyListTitle = this.params[3];
// Get the container tiddler as data
var containerData = self.commander.wiki.getTiddlerDataCached(containerTitle,undefined);
if(!containerData) {
return &quot;'&quot; + containerTitle + &quot;' is not a tiddler bundle&quot;;
}
// Filter the list of plugins
var pluginList = [];
$tw.utils.each(containerData.tiddlers,function(tiddler,title) {
pluginList.push(title);
});
var filteredPluginList;
if(filter) {
filteredPluginList = self.commander.wiki.filterTiddlers(filter,null,self.commander.wiki.makeTiddlerIterator(pluginList));
} else {
filteredPluginList = pluginList;
}
// Iterate through the plugins
var skinnyList = [];
$tw.utils.each(filteredPluginList,function(title) {
var tiddler = containerData.tiddlers[title];
// Save each JSON file and collect the skinny data
var pathname = path.resolve(self.commander.outputPath,basepath + encodeURIComponent(title) + &quot;.json&quot;);
$tw.utils.createFileDirectories(pathname);
fs.writeFileSync(pathname,JSON.stringify(tiddler),&quot;utf8&quot;);
// Collect the skinny list data
var pluginTiddlers = JSON.parse(tiddler.text),
readmeContent = (pluginTiddlers.tiddlers[title + &quot;/readme&quot;] || {}).text,
doesRequireReload = !!$tw.wiki.doesPluginInfoRequireReload(pluginTiddlers),
iconTiddler = pluginTiddlers.tiddlers[title + &quot;/icon&quot;] || {},
iconType = iconTiddler.type,
iconText = iconTiddler.text,
iconContent;
if(iconType &amp;&amp; iconText) {
iconContent = $tw.utils.makeDataUri(iconText,iconType);
}
skinnyList.push($tw.utils.extend({},tiddler,{
text: undefined,
readme: readmeContent,
&quot;requires-reload&quot;: doesRequireReload ? &quot;yes&quot; : &quot;no&quot;,
icon: iconContent
}));
});
// Save the catalogue tiddler
if(skinnyListTitle) {
self.commander.wiki.setTiddlerData(skinnyListTitle,skinnyList);
}
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/savetiddler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/savetiddler.js
type: application/javascript
module-type: command
Command to save the content of a tiddler to a file
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;savetiddler&quot;,
synchronous: false
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 2) {
return &quot;Missing filename&quot;;
}
var self = this,
fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;),
title = this.params[0],
filename = path.resolve(this.commander.outputPath,this.params[1]),
tiddler = this.commander.wiki.getTiddler(title);
if(tiddler) {
var type = tiddler.fields.type || &quot;text/vnd.tiddlywiki&quot;,
contentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: &quot;utf8&quot;};
$tw.utils.createFileDirectories(filename);
fs.writeFile(filename,tiddler.fields.text,contentTypeInfo.encoding,function(err) {
self.callback(err);
});
} else {
return &quot;Missing tiddler: &quot; + title;
}
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/savetiddlers.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/savetiddlers.js
type: application/javascript
module-type: command
Command to save several tiddlers to a folder of files
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var widget = require(&quot;$:/core/modules/widgets/widget.js&quot;);
exports.info = {
name: &quot;savetiddlers&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 1) {
return &quot;Missing filename&quot;;
}
var self = this,
fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;),
wiki = this.commander.wiki,
filter = this.params[0],
pathname = path.resolve(this.commander.outputPath,this.params[1]),
deleteDirectory = (this.params[2] || &quot;&quot;).toLowerCase() !== &quot;noclean&quot;,
tiddlers = wiki.filterTiddlers(filter);
if(deleteDirectory) {
$tw.utils.deleteDirectory(pathname);
}
$tw.utils.createDirectory(pathname);
$tw.utils.each(tiddlers,function(title) {
var tiddler = self.commander.wiki.getTiddler(title),
type = tiddler.fields.type || &quot;text/vnd.tiddlywiki&quot;,
contentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: &quot;utf8&quot;},
filename = path.resolve(pathname,encodeURIComponent(title));
fs.writeFileSync(filename,tiddler.fields.text,contentTypeInfo.encoding);
});
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/savewikifolder.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/savewikifolder.js
type: application/javascript
module-type: command
Command to save the current wiki as a wiki folder
--savewikifolder &lt;wikifolderpath&gt; [&lt;filter&gt;]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;savewikifolder&quot;,
synchronous: true
};
var fs,path;
if($tw.node) {
fs = require(&quot;fs&quot;);
path = require(&quot;path&quot;);
}
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 1) {
return &quot;Missing wiki folder path&quot;;
}
var wikifoldermaker = new WikiFolderMaker(this.params[0],this.params[1],this.commander);
return wikifoldermaker.save();
};
function WikiFolderMaker(wikiFolderPath,wikiFilter,commander) {
this.wikiFolderPath = wikiFolderPath;
this.wikiFilter = wikiFilter || &quot;[all[tiddlers]]&quot;;
this.commander = commander;
this.wiki = commander.wiki;
this.savedPaths = []; // So that we can detect filename clashes
}
WikiFolderMaker.prototype.log = function(str) {
if(this.commander.verbose) {
console.log(str);
}
};
WikiFolderMaker.prototype.tiddlersToIgnore = [
&quot;$:/boot/boot.css&quot;,
&quot;$:/boot/boot.js&quot;,
&quot;$:/boot/bootprefix.js&quot;,
&quot;$:/core&quot;,
&quot;$:/library/sjcl.js&quot;,
&quot;$:/temp/info-plugin&quot;
];
/*
Returns null if successful, or an error string if there was an error
*/
WikiFolderMaker.prototype.save = function() {
var self = this;
// Check that the output directory doesn't exist
if(fs.existsSync(this.wikiFolderPath) &amp;&amp; !$tw.utils.isDirectoryEmpty(this.wikiFolderPath)) {
return &quot;The unpackwiki command requires that the output wiki folder be empty&quot;;
}
// Get the tiddlers from the source wiki
var tiddlerTitles = this.wiki.filterTiddlers(this.wikiFilter);
// Initialise a new tiddlwiki.info file
var newWikiInfo = {};
// Process each incoming tiddler in turn
$tw.utils.each(tiddlerTitles,function(title) {
var tiddler = self.wiki.getTiddler(title);
if(tiddler) {
if(self.tiddlersToIgnore.indexOf(title) !== -1) {
// Ignore the core plugin and the ephemeral info plugin
self.log(&quot;Ignoring tiddler: &quot; + title);
} else {
var type = tiddler.fields.type,
pluginType = tiddler.fields[&quot;plugin-type&quot;];
if(type === &quot;application/json&quot; &amp;&amp; pluginType) {
// Plugin tiddler
var libraryDetails = self.findPluginInLibrary(title);
if(libraryDetails) {
// A plugin from the core library
self.log(&quot;Adding built-in plugin: &quot; + libraryDetails.name);
newWikiInfo[libraryDetails.type] = newWikiInfo[libraryDetails.type] || [];
$tw.utils.pushTop(newWikiInfo[libraryDetails.type],libraryDetails.name);
} else {
// A custom plugin
self.log(&quot;Processing custom plugin: &quot; + title);
self.saveCustomPlugin(tiddler);
}
} else {
// Ordinary tiddler
self.saveTiddler(&quot;tiddlers&quot;,tiddler);
}
}
}
});
// Save the tiddlywiki.info file
this.saveJSONFile(&quot;tiddlywiki.info&quot;,newWikiInfo);
self.log(&quot;Writing tiddlywiki.info: &quot; + JSON.stringify(newWikiInfo,null,$tw.config.preferences.jsonSpaces));
return null;
};
/*
Test whether the specified tiddler is a plugin in the plugin library
*/
WikiFolderMaker.prototype.findPluginInLibrary = function(title) {
var parts = title.split(&quot;/&quot;),
pluginPath, type, name;
if(parts[0] === &quot;$:&quot;) {
if(parts[1] === &quot;languages&quot; &amp;&amp; parts.length === 3) {
pluginPath = &quot;languages&quot; + path.sep + parts[2];
type = parts[1];
name = parts[2];
} else if(parts[1] === &quot;plugins&quot; || parts[1] === &quot;themes&quot; &amp;&amp; parts.length === 4) {
pluginPath = parts[1] + path.sep + parts[2] + path.sep + parts[3];
type = parts[1];
name = parts[2] + &quot;/&quot; + parts[3];
}
}
if(pluginPath &amp;&amp; type &amp;&amp; name) {
pluginPath = path.resolve($tw.boot.bootPath,&quot;..&quot;,pluginPath);
if(fs.existsSync(pluginPath)) {
return {
pluginPath: pluginPath,
type: type,
name: name
};
}
}
return false;
};
WikiFolderMaker.prototype.saveCustomPlugin = function(pluginTiddler) {
var self = this,
pluginTitle = pluginTiddler.fields.title,
titleParts = pluginTitle.split(&quot;/&quot;),
directory = $tw.utils.generateTiddlerFilepath(titleParts[titleParts.length - 1],{
directory: path.resolve(this.wikiFolderPath,pluginTiddler.fields[&quot;plugin-type&quot;] + &quot;s&quot;)
}),
pluginInfo = pluginTiddler.getFieldStrings({exclude: [&quot;text&quot;,&quot;type&quot;]});
this.saveJSONFile(directory + path.sep + &quot;plugin.info&quot;,pluginInfo);
self.log(&quot;Writing &quot; + directory + path.sep + &quot;plugin.info: &quot; + JSON.stringify(pluginInfo,null,$tw.config.preferences.jsonSpaces));
var pluginTiddlers = JSON.parse(pluginTiddler.fields.text).tiddlers; // A hashmap of tiddlers in the plugin
$tw.utils.each(pluginTiddlers,function(tiddler) {
self.saveTiddler(directory,new $tw.Tiddler(tiddler));
});
};
WikiFolderMaker.prototype.saveTiddler = function(directory,tiddler) {
var fileInfo = $tw.utils.generateTiddlerFileInfo(tiddler,{
directory: path.resolve(this.wikiFolderPath,directory),
wiki: this.wiki
});
$tw.utils.saveTiddlerToFileSync(tiddler,fileInfo);
};
WikiFolderMaker.prototype.saveJSONFile = function(filename,json) {
this.saveTextFile(filename,JSON.stringify(json,null,$tw.config.preferences.jsonSpaces));
};
WikiFolderMaker.prototype.saveTextFile = function(filename,data) {
this.saveFile(filename,&quot;utf8&quot;,data);
};
WikiFolderMaker.prototype.saveFile = function(filename,encoding,data) {
var filepath = path.resolve(this.wikiFolderPath,filename);
$tw.utils.createFileDirectories(filepath);
fs.writeFileSync(filepath,data,encoding);
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/server.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/server.js
type: application/javascript
module-type: command
Deprecated legacy command for serving tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Server = require(&quot;$:/core/modules/server/server.js&quot;).Server;
exports.info = {
name: &quot;server&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
var self = this;
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(!$tw.boot.wikiTiddlersPath) {
$tw.utils.warning(&quot;Warning: Wiki folder '&quot; + $tw.boot.wikiPath + &quot;' does not exist or is missing a tiddlywiki.info file&quot;);
}
// Set up server
this.server = new Server({
wiki: this.commander.wiki,
variables: {
port: this.params[0],
host: this.params[6],
&quot;root-tiddler&quot;: this.params[1],
&quot;root-render-type&quot;: this.params[2],
&quot;root-serve-type&quot;: this.params[3],
username: this.params[4],
password: this.params[5],
&quot;path-prefix&quot;: this.params[7],
&quot;debug-level&quot;: this.params[8]
}
});
var nodeServer = this.server.listen();
$tw.hooks.invokeHook(&quot;th-server-command-post-start&quot;,this.server,nodeServer,&quot;tiddlywiki&quot;);
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/setfield.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/setfield.js
type: application/javascript
module-type: command
Command to modify selected tiddlers to set a field to the text of a template tiddler that has been wikified with the selected tiddler as the current tiddler.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var widget = require(&quot;$:/core/modules/widgets/widget.js&quot;);
exports.info = {
name: &quot;setfield&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 4) {
return &quot;Missing parameters&quot;;
}
var self = this,
wiki = this.commander.wiki,
filter = this.params[0],
fieldname = this.params[1] || &quot;text&quot;,
templatetitle = this.params[2],
rendertype = this.params[3] || &quot;text/plain&quot;,
tiddlers = wiki.filterTiddlers(filter);
$tw.utils.each(tiddlers,function(title) {
var parser = wiki.parseTiddler(templatetitle),
newFields = {},
tiddler = wiki.getTiddler(title);
if(parser) {
var widgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}});
var container = $tw.fakeDocument.createElement(&quot;div&quot;);
widgetNode.render(container,null);
newFields[fieldname] = rendertype === &quot;text/html&quot; ? container.innerHTML : container.textContent;
} else {
newFields[fieldname] = undefined;
}
wiki.addTiddler(new $tw.Tiddler(tiddler,newFields));
});
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/unpackplugin.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/unpackplugin.js
type: application/javascript
module-type: command
Command to extract the shadow tiddlers from within a plugin
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;unpackplugin&quot;,
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length &lt; 1) {
return &quot;Missing plugin name&quot;;
}
var self = this,
title = this.params[0],
pluginData = this.commander.wiki.getTiddlerDataCached(title);
if(!pluginData) {
return &quot;Plugin '&quot; + title + &quot;' not found&quot;;
}
$tw.utils.each(pluginData.tiddlers,function(tiddler) {
self.commander.wiki.addTiddler(new $tw.Tiddler(tiddler));
});
return null;
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/verbose.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/verbose.js
type: application/javascript
module-type: command
Verbose command
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;verbose&quot;,
synchronous: true
};
var Command = function(params,commander) {
this.params = params;
this.commander = commander;
};
Command.prototype.execute = function() {
this.commander.verbose = true;
// Output the boot message log
this.commander.streams.output.write(&quot;Boot log:\n &quot; + $tw.boot.logMessages.join(&quot;\n &quot;) + &quot;\n&quot;);
return null; // No error
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="command" title="$:/core/modules/commands/version.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/commands/version.js
type: application/javascript
module-type: command
Version command
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.info = {
name: &quot;version&quot;,
synchronous: true
};
var Command = function(params,commander) {
this.params = params;
this.commander = commander;
};
Command.prototype.execute = function() {
this.commander.streams.output.write($tw.version + &quot;\n&quot;);
return null; // No error
};
exports.Command = Command;
})();
</pre>
</div>
<div module-type="config" title="$:/core/modules/config.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/config.js
type: application/javascript
module-type: config
Core configuration constants
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.preferences = {};
exports.preferences.notificationDuration = 3 * 1000;
exports.preferences.jsonSpaces = 4;
exports.textPrimitives = {
upperLetter: &quot;[A-Z\u00c0-\u00d6\u00d8-\u00de\u0150\u0170]&quot;,
lowerLetter: &quot;[a-z\u00df-\u00f6\u00f8-\u00ff\u0151\u0171]&quot;,
anyLetter: &quot;[A-Za-z0-9\u00c0-\u00d6\u00d8-\u00de\u00df-\u00f6\u00f8-\u00ff\u0150\u0170\u0151\u0171]&quot;,
blockPrefixLetters: &quot;[A-Za-z0-9-_\u00c0-\u00d6\u00d8-\u00de\u00df-\u00f6\u00f8-\u00ff\u0150\u0170\u0151\u0171]&quot;
};
exports.textPrimitives.unWikiLink = &quot;~&quot;;
exports.textPrimitives.wikiLink = exports.textPrimitives.upperLetter + &quot;+&quot; +
exports.textPrimitives.lowerLetter + &quot;+&quot; +
exports.textPrimitives.upperLetter +
exports.textPrimitives.anyLetter + &quot;*&quot;;
exports.htmlEntities = {quot:34, amp:38, apos:39, lt:60, gt:62, nbsp:160, iexcl:161, cent:162, pound:163, curren:164, yen:165, brvbar:166, sect:167, uml:168, copy:169, ordf:170, laquo:171, not:172, shy:173, reg:174, macr:175, deg:176, plusmn:177, sup2:178, sup3:179, acute:180, micro:181, para:182, middot:183, cedil:184, sup1:185, ordm:186, raquo:187, frac14:188, frac12:189, frac34:190, iquest:191, Agrave:192, Aacute:193, Acirc:194, Atilde:195, Auml:196, Aring:197, AElig:198, Ccedil:199, Egrave:200, Eacute:201, Ecirc:202, Euml:203, Igrave:204, Iacute:205, Icirc:206, Iuml:207, ETH:208, Ntilde:209, Ograve:210, Oacute:211, Ocirc:212, Otilde:213, Ouml:214, times:215, Oslash:216, Ugrave:217, Uacute:218, Ucirc:219, Uuml:220, Yacute:221, THORN:222, szlig:223, agrave:224, aacute:225, acirc:226, atilde:227, auml:228, aring:229, aelig:230, ccedil:231, egrave:232, eacute:233, ecirc:234, euml:235, igrave:236, iacute:237, icirc:238, iuml:239, eth:240, ntilde:241, ograve:242, oacute:243, ocirc:244, otilde:245, ouml:246, divide:247, oslash:248, ugrave:249, uacute:250, ucirc:251, uuml:252, yacute:253, thorn:254, yuml:255, OElig:338, oelig:339, Scaron:352, scaron:353, Yuml:376, fnof:402, circ:710, tilde:732, Alpha:913, Beta:914, Gamma:915, Delta:916, Epsilon:917, Zeta:918, Eta:919, Theta:920, Iota:921, Kappa:922, Lambda:923, Mu:924, Nu:925, Xi:926, Omicron:927, Pi:928, Rho:929, Sigma:931, Tau:932, Upsilon:933, Phi:934, Chi:935, Psi:936, Omega:937, alpha:945, beta:946, gamma:947, delta:948, epsilon:949, zeta:950, eta:951, theta:952, iota:953, kappa:954, lambda:955, mu:956, nu:957, xi:958, omicron:959, pi:960, rho:961, sigmaf:962, sigma:963, tau:964, upsilon:965, phi:966, chi:967, psi:968, omega:969, thetasym:977, upsih:978, piv:982, ensp:8194, emsp:8195, thinsp:8201, zwnj:8204, zwj:8205, lrm:8206, rlm:8207, ndash:8211, mdash:8212, lsquo:8216, rsquo:8217, sbquo:8218, ldquo:8220, rdquo:8221, bdquo:8222, dagger:8224, Dagger:8225, bull:8226, hellip:8230, permil:8240, prime:8242, Prime:8243, lsaquo:8249, rsaquo:8250, oline:8254, frasl:8260, euro:8364, image:8465, weierp:8472, real:8476, trade:8482, alefsym:8501, larr:8592, uarr:8593, rarr:8594, darr:8595, harr:8596, crarr:8629, lArr:8656, uArr:8657, rArr:8658, dArr:8659, hArr:8660, forall:8704, part:8706, exist:8707, empty:8709, nabla:8711, isin:8712, notin:8713, ni:8715, prod:8719, sum:8721, minus:8722, lowast:8727, radic:8730, prop:8733, infin:8734, ang:8736, and:8743, or:8744, cap:8745, cup:8746, int:8747, there4:8756, sim:8764, cong:8773, asymp:8776, ne:8800, equiv:8801, le:8804, ge:8805, sub:8834, sup:8835, nsub:8836, sube:8838, supe:8839, oplus:8853, otimes:8855, perp:8869, sdot:8901, lceil:8968, rceil:8969, lfloor:8970, rfloor:8971, lang:9001, rang:9002, loz:9674, spades:9824, clubs:9827, hearts:9829, diams:9830 };
exports.htmlVoidElements = &quot;area,base,br,col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr&quot;.split(&quot;,&quot;);
exports.htmlBlockElements = &quot;address,article,aside,audio,blockquote,canvas,dd,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,li,noscript,ol,output,p,pre,section,table,tfoot,ul,video&quot;.split(&quot;,&quot;);
exports.htmlUnsafeElements = &quot;script&quot;.split(&quot;,&quot;);
})();
</pre>
</div>
<div module-type="tiddlerdeserializer" title="$:/core/modules/deserializers.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/deserializers.js
type: application/javascript
module-type: tiddlerdeserializer
Functions to deserialise tiddlers from a block of text
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Utility function to parse an old-style tiddler DIV in a *.tid file. It looks like this:
&lt;div title=&quot;Title&quot; creator=&quot;JoeBloggs&quot; modifier=&quot;JoeBloggs&quot; created=&quot;201102111106&quot; modified=&quot;201102111310&quot; tags=&quot;myTag [[my long tag]]&quot;&gt;
&lt;pre&gt;The text of the tiddler (without the expected HTML encoding).
&lt;/pre&gt;
&lt;/div&gt;
Note that the field attributes are HTML encoded, but that the body of the &lt;PRE&gt; tag is not encoded.
When these tiddler DIVs are encountered within a TiddlyWiki HTML file then the body is encoded in the usual way.
*/
var parseTiddlerDiv = function(text /* [,fields] */) {
// Slot together the default results
var result = {};
if(arguments.length &gt; 1) {
for(var f=1; f&lt;arguments.length; f++) {
var fields = arguments[f];
for(var t in fields) {
result[t] = fields[t];
}
}
}
// Parse the DIV body
var startRegExp = /^\s*&lt;div\s+([^&gt;]*)&gt;(\s*&lt;pre&gt;)?/gi,
endRegExp,
match = startRegExp.exec(text);
if(match) {
// Old-style DIVs don't have the &lt;pre&gt; tag
if(match[2]) {
endRegExp = /&lt;\/pre&gt;\s*&lt;\/div&gt;\s*$/gi;
} else {
endRegExp = /&lt;\/div&gt;\s*$/gi;
}
var endMatch = endRegExp.exec(text);
if(endMatch) {
// Extract the text
result.text = text.substring(match.index + match[0].length,endMatch.index);
// Process the attributes
var attrRegExp = /\s*([^=\s]+)\s*=\s*(?:&quot;([^&quot;]*)&quot;|'([^']*)')/gi,
attrMatch;
do {
attrMatch = attrRegExp.exec(match[1]);
if(attrMatch) {
var name = attrMatch[1];
var value = attrMatch[2] !== undefined ? attrMatch[2] : attrMatch[3];
result[name] = value;
}
} while(attrMatch);
return result;
}
}
return undefined;
};
exports[&quot;application/x-tiddler-html-div&quot;] = function(text,fields) {
return [parseTiddlerDiv(text,fields)];
};
exports[&quot;application/json&quot;] = function(text,fields) {
var incoming,
results = [];
try {
incoming = JSON.parse(text);
} catch(e) {
incoming = [{
title: &quot;JSON error: &quot; + e,
text: &quot;&quot;
}]
}
if(!$tw.utils.isArray(incoming)) {
incoming = [incoming];
}
for(var t=0; t&lt;incoming.length; t++) {
var incomingFields = incoming[t],
fields = {};
for(var f in incomingFields) {
if(typeof incomingFields[f] === &quot;string&quot;) {
fields[f] = incomingFields[f];
}
}
results.push(fields);
}
return results;
};
/*
Parse an HTML file into tiddlers. There are three possibilities:
# A TiddlyWiki classic HTML file containing `text/x-tiddlywiki` tiddlers
# A TiddlyWiki5 HTML file containing `text/vnd.tiddlywiki` tiddlers
# An ordinary HTML file
*/
exports[&quot;text/html&quot;] = function(text,fields) {
// Check if we've got a store area
var storeAreaMarkerRegExp = /&lt;div id=[&quot;']?storeArea['&quot;]?( style=[&quot;']?display:none;[&quot;']?)?&gt;/gi,
match = storeAreaMarkerRegExp.exec(text);
if(match) {
// If so, it's either a classic TiddlyWiki file or an unencrypted TW5 file
// First read the normal tiddlers
var results = deserializeTiddlyWikiFile(text,storeAreaMarkerRegExp.lastIndex,!!match[1],fields);
// Then any system tiddlers
var systemAreaMarkerRegExp = /&lt;div id=[&quot;']?systemArea['&quot;]?( style=[&quot;']?display:none;[&quot;']?)?&gt;/gi,
sysMatch = systemAreaMarkerRegExp.exec(text);
if(sysMatch) {
results.push.apply(results,deserializeTiddlyWikiFile(text,systemAreaMarkerRegExp.lastIndex,!!sysMatch[1],fields));
}
return results;
} else {
// Check whether we've got an encrypted file
var encryptedStoreArea = $tw.utils.extractEncryptedStoreArea(text);
if(encryptedStoreArea) {
// If so, attempt to decrypt it using the current password
return $tw.utils.decryptStoreArea(encryptedStoreArea);
} else {
// It's not a TiddlyWiki so we'll return the entire HTML file as a tiddler
return deserializeHtmlFile(text,fields);
}
}
};
function deserializeHtmlFile(text,fields) {
var result = {};
$tw.utils.each(fields,function(value,name) {
result[name] = value;
});
result.text = text;
result.type = &quot;text/html&quot;;
return [result];
}
function deserializeTiddlyWikiFile(text,storeAreaEnd,isTiddlyWiki5,fields) {
var results = [],
endOfDivRegExp = /(&lt;\/div&gt;\s*)/gi,
startPos = storeAreaEnd,
defaultType = isTiddlyWiki5 ? undefined : &quot;text/x-tiddlywiki&quot;;
endOfDivRegExp.lastIndex = startPos;
var match = endOfDivRegExp.exec(text);
while(match) {
var endPos = endOfDivRegExp.lastIndex,
tiddlerFields = parseTiddlerDiv(text.substring(startPos,endPos),fields,{type: defaultType});
if(!tiddlerFields) {
break;
}
$tw.utils.each(tiddlerFields,function(value,name) {
if(typeof value === &quot;string&quot;) {
tiddlerFields[name] = $tw.utils.htmlDecode(value);
}
});
if(tiddlerFields.text !== null) {
results.push(tiddlerFields);
}
startPos = endPos;
match = endOfDivRegExp.exec(text);
}
return results;
}
})();
</pre>
</div>
<div module-type="library" title="$:/core/modules/editor/engines/framed.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/engines/framed.js
type: application/javascript
module-type: library
Text editor engine based on a simple input or textarea within an iframe. This is done so that the selection is preserved even when clicking away from the textarea
\*/
(function(){
/*jslint node: true,browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var HEIGHT_VALUE_TITLE = &quot;$:/config/TextEditor/EditorHeight/Height&quot;;
function FramedEngine(options) {
// Save our options
options = options || {};
this.widget = options.widget;
this.value = options.value;
this.parentNode = options.parentNode;
this.nextSibling = options.nextSibling;
// Create our hidden dummy text area for reading styles
this.dummyTextArea = this.widget.document.createElement(&quot;textarea&quot;);
if(this.widget.editClass) {
this.dummyTextArea.className = this.widget.editClass;
}
this.dummyTextArea.setAttribute(&quot;hidden&quot;,&quot;true&quot;);
this.parentNode.insertBefore(this.dummyTextArea,this.nextSibling);
this.widget.domNodes.push(this.dummyTextArea);
// Create the iframe
this.iframeNode = this.widget.document.createElement(&quot;iframe&quot;);
this.parentNode.insertBefore(this.iframeNode,this.nextSibling);
this.iframeDoc = this.iframeNode.contentWindow.document;
// (Firefox requires us to put some empty content in the iframe)
this.iframeDoc.open();
this.iframeDoc.write(&quot;&quot;);
this.iframeDoc.close();
// Style the iframe
this.iframeNode.className = this.dummyTextArea.className;
this.iframeNode.style.border = &quot;none&quot;;
this.iframeNode.style.padding = &quot;0&quot;;
this.iframeNode.style.resize = &quot;none&quot;;
this.iframeNode.style[&quot;background-color&quot;] = this.widget.wiki.extractTiddlerDataItem(this.widget.wiki.getTiddlerText(&quot;$:/palette&quot;),&quot;tiddler-editor-background&quot;);
this.iframeDoc.body.style.margin = &quot;0&quot;;
this.iframeDoc.body.style.padding = &quot;0&quot;;
this.widget.domNodes.push(this.iframeNode);
// Construct the textarea or input node
var tag = this.widget.editTag;
if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
tag = &quot;input&quot;;
}
this.domNode = this.iframeDoc.createElement(tag);
// Set the text
if(this.widget.editTag === &quot;textarea&quot;) {
this.domNode.appendChild(this.iframeDoc.createTextNode(this.value));
} else {
this.domNode.value = this.value;
}
// Set the attributes
if(this.widget.editType) {
this.domNode.setAttribute(&quot;type&quot;,this.widget.editType);
}
if(this.widget.editPlaceholder) {
this.domNode.setAttribute(&quot;placeholder&quot;,this.widget.editPlaceholder);
}
if(this.widget.editSize) {
this.domNode.setAttribute(&quot;size&quot;,this.widget.editSize);
}
if(this.widget.editRows) {
this.domNode.setAttribute(&quot;rows&quot;,this.widget.editRows);
}
if(this.widget.editTabIndex) {
this.iframeNode.setAttribute(&quot;tabindex&quot;,this.widget.editTabIndex);
}
// Copy the styles from the dummy textarea
this.copyStyles();
// Add event listeners
$tw.utils.addEventListeners(this.domNode,[
{name: &quot;click&quot;,handlerObject: this,handlerMethod: &quot;handleClickEvent&quot;},
{name: &quot;input&quot;,handlerObject: this,handlerMethod: &quot;handleInputEvent&quot;},
{name: &quot;keydown&quot;,handlerObject: this.widget,handlerMethod: &quot;handleKeydownEvent&quot;}
]);
// Insert the element into the DOM
this.iframeDoc.body.appendChild(this.domNode);
}
/*
Copy styles from the dummy text area to the textarea in the iframe
*/
FramedEngine.prototype.copyStyles = function() {
// Copy all styles
$tw.utils.copyStyles(this.dummyTextArea,this.domNode);
// Override the ones that should not be set the same as the dummy textarea
this.domNode.style.display = &quot;block&quot;;
this.domNode.style.width = &quot;100%&quot;;
this.domNode.style.margin = &quot;0&quot;;
this.domNode.style[&quot;background-color&quot;] = this.widget.wiki.extractTiddlerDataItem(this.widget.wiki.getTiddlerText(&quot;$:/palette&quot;),&quot;tiddler-editor-background&quot;);
// In Chrome setting -webkit-text-fill-color overrides the placeholder text colour
this.domNode.style[&quot;-webkit-text-fill-color&quot;] = &quot;currentcolor&quot;;
};
/*
Set the text of the engine if it doesn't currently have focus
*/
FramedEngine.prototype.setText = function(text,type) {
if(!this.domNode.isTiddlyWikiFakeDom) {
if(this.domNode.ownerDocument.activeElement !== this.domNode) {
this.domNode.value = text;
}
// Fix the height if needed
this.fixHeight();
}
};
/*
Get the text of the engine
*/
FramedEngine.prototype.getText = function() {
return this.domNode.value;
};
/*
Fix the height of textarea to fit content
*/
FramedEngine.prototype.fixHeight = function() {
// Make sure styles are updated
this.copyStyles();
// Adjust height
if(this.widget.editTag === &quot;textarea&quot;) {
if(this.widget.editAutoHeight) {
if(this.domNode &amp;&amp; !this.domNode.isTiddlyWikiFakeDom) {
var newHeight = $tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight);
this.iframeNode.style.height = (newHeight + 14) + &quot;px&quot;; // +14 for the border on the textarea
}
} else {
var fixedHeight = parseInt(this.widget.wiki.getTiddlerText(HEIGHT_VALUE_TITLE,&quot;400px&quot;),10);
fixedHeight = Math.max(fixedHeight,20);
this.domNode.style.height = fixedHeight + &quot;px&quot;;
this.iframeNode.style.height = (fixedHeight + 14) + &quot;px&quot;;
}
}
};
/*
Focus the engine node
*/
FramedEngine.prototype.focus = function() {
if(this.domNode.focus &amp;&amp; this.domNode.select) {
this.domNode.focus();
this.domNode.select();
}
};
/*
Handle a click
*/
FramedEngine.prototype.handleClickEvent = function(event) {
this.fixHeight();
return true;
};
/*
Handle a dom &quot;input&quot; event which occurs when the text has changed
*/
FramedEngine.prototype.handleInputEvent = function(event) {
this.widget.saveChanges(this.getText());
this.fixHeight();
return true;
};
/*
Create a blank structure representing a text operation
*/
FramedEngine.prototype.createTextOperation = function() {
var operation = {
text: this.domNode.value,
selStart: this.domNode.selectionStart,
selEnd: this.domNode.selectionEnd,
cutStart: null,
cutEnd: null,
replacement: null,
newSelStart: null,
newSelEnd: null
};
operation.selection = operation.text.substring(operation.selStart,operation.selEnd);
return operation;
};
/*
Execute a text operation
*/
FramedEngine.prototype.executeTextOperation = function(operation) {
// Perform the required changes to the text area and the underlying tiddler
var newText = operation.text;
if(operation.replacement !== null) {
newText = operation.text.substring(0,operation.cutStart) + operation.replacement + operation.text.substring(operation.cutEnd);
// Attempt to use a execCommand to modify the value of the control
if(this.iframeDoc.queryCommandSupported(&quot;insertText&quot;) &amp;&amp; this.iframeDoc.queryCommandSupported(&quot;delete&quot;) &amp;&amp; !$tw.browser.isFirefox) {
this.domNode.focus();
this.domNode.setSelectionRange(operation.cutStart,operation.cutEnd);
if(operation.replacement === &quot;&quot;) {
this.iframeDoc.execCommand(&quot;delete&quot;,false,&quot;&quot;);
} else {
this.iframeDoc.execCommand(&quot;insertText&quot;,false,operation.replacement);
}
} else {
this.domNode.value = newText;
}
this.domNode.focus();
this.domNode.setSelectionRange(operation.newSelStart,operation.newSelEnd);
}
this.domNode.focus();
return newText;
};
exports.FramedEngine = FramedEngine;
})();
</pre>
</div>
<div module-type="library" title="$:/core/modules/editor/engines/simple.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/engines/simple.js
type: application/javascript
module-type: library
Text editor engine based on a simple input or textarea tag
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var HEIGHT_VALUE_TITLE = &quot;$:/config/TextEditor/EditorHeight/Height&quot;;
function SimpleEngine(options) {
// Save our options
options = options || {};
this.widget = options.widget;
this.value = options.value;
this.parentNode = options.parentNode;
this.nextSibling = options.nextSibling;
// Construct the textarea or input node
var tag = this.widget.editTag;
if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
tag = &quot;input&quot;;
}
this.domNode = this.widget.document.createElement(tag);
// Set the text
if(this.widget.editTag === &quot;textarea&quot;) {
this.domNode.appendChild(this.widget.document.createTextNode(this.value));
} else {
this.domNode.value = this.value;
}
// Set the attributes
if(this.widget.editType) {
this.domNode.setAttribute(&quot;type&quot;,this.widget.editType);
}
if(this.widget.editPlaceholder) {
this.domNode.setAttribute(&quot;placeholder&quot;,this.widget.editPlaceholder);
}
if(this.widget.editSize) {
this.domNode.setAttribute(&quot;size&quot;,this.widget.editSize);
}
if(this.widget.editRows) {
this.domNode.setAttribute(&quot;rows&quot;,this.widget.editRows);
}
if(this.widget.editClass) {
this.domNode.className = this.widget.editClass;
}
if(this.widget.editTabIndex) {
this.domNode.setAttribute(&quot;tabindex&quot;,this.widget.editTabIndex);
}
// Add an input event handler
$tw.utils.addEventListeners(this.domNode,[
{name: &quot;focus&quot;, handlerObject: this, handlerMethod: &quot;handleFocusEvent&quot;},
{name: &quot;input&quot;, handlerObject: this, handlerMethod: &quot;handleInputEvent&quot;}
]);
// Insert the element into the DOM
this.parentNode.insertBefore(this.domNode,this.nextSibling);
this.widget.domNodes.push(this.domNode);
}
/*
Set the text of the engine if it doesn't currently have focus
*/
SimpleEngine.prototype.setText = function(text,type) {
if(!this.domNode.isTiddlyWikiFakeDom) {
if(this.domNode.ownerDocument.activeElement !== this.domNode || text === &quot;&quot;) {
this.domNode.value = text;
}
// Fix the height if needed
this.fixHeight();
}
};
/*
Get the text of the engine
*/
SimpleEngine.prototype.getText = function() {
return this.domNode.value;
};
/*
Fix the height of textarea to fit content
*/
SimpleEngine.prototype.fixHeight = function() {
if(this.widget.editTag === &quot;textarea&quot;) {
if(this.widget.editAutoHeight) {
if(this.domNode &amp;&amp; !this.domNode.isTiddlyWikiFakeDom) {
$tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight);
}
} else {
var fixedHeight = parseInt(this.widget.wiki.getTiddlerText(HEIGHT_VALUE_TITLE,&quot;400px&quot;),10);
fixedHeight = Math.max(fixedHeight,20);
this.domNode.style.height = fixedHeight + &quot;px&quot;;
}
}
};
/*
Focus the engine node
*/
SimpleEngine.prototype.focus = function() {
if(this.domNode.focus &amp;&amp; this.domNode.select) {
this.domNode.focus();
this.domNode.select();
}
};
/*
Handle a dom &quot;input&quot; event which occurs when the text has changed
*/
SimpleEngine.prototype.handleInputEvent = function(event) {
this.widget.saveChanges(this.getText());
this.fixHeight();
return true;
};
/*
Handle a dom &quot;focus&quot; event
*/
SimpleEngine.prototype.handleFocusEvent = function(event) {
if(this.widget.editFocusPopup) {
$tw.popup.triggerPopup({
domNode: this.domNode,
title: this.widget.editFocusPopup,
wiki: this.widget.wiki,
force: true
});
}
return true;
};
/*
Create a blank structure representing a text operation
*/
SimpleEngine.prototype.createTextOperation = function() {
return null;
};
/*
Execute a text operation
*/
SimpleEngine.prototype.executeTextOperation = function(operation) {
};
exports.SimpleEngine = SimpleEngine;
})();
</pre>
</div>
<div module-type="library" title="$:/core/modules/editor/factory.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/factory.js
type: application/javascript
module-type: library
Factory for constructing text editor widgets with specified engines for the toolbar and non-toolbar cases
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var DEFAULT_MIN_TEXT_AREA_HEIGHT = &quot;100px&quot;; // Minimum height of textareas in pixels
// Configuration tiddlers
var HEIGHT_MODE_TITLE = &quot;$:/config/TextEditor/EditorHeight/Mode&quot;;
var ENABLE_TOOLBAR_TITLE = &quot;$:/config/TextEditor/EnableToolbar&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) {
var EditTextWidget = function(parseTreeNode,options) {
// Initialise the editor operations if they've not been done already
if(!this.editorOperations) {
EditTextWidget.prototype.editorOperations = {};
$tw.modules.applyMethods(&quot;texteditoroperation&quot;,this.editorOperations);
}
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
EditTextWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
EditTextWidget.prototype.render = function(parent,nextSibling) {
// Save the parent dom node
this.parentDomNode = parent;
// Compute our attributes
this.computeAttributes();
// Execute our logic
this.execute();
// Create the wrapper for the toolbar and render its content
if(this.editShowToolbar) {
this.toolbarNode = this.document.createElement(&quot;div&quot;);
this.toolbarNode.className = &quot;tc-editor-toolbar&quot;;
parent.insertBefore(this.toolbarNode,nextSibling);
this.renderChildren(this.toolbarNode,null);
this.domNodes.push(this.toolbarNode);
}
// Create our element
var editInfo = this.getEditInfo(),
Engine = this.editShowToolbar ? toolbarEngine : nonToolbarEngine;
this.engine = new Engine({
widget: this,
value: editInfo.value,
type: editInfo.type,
parentNode: parent,
nextSibling: nextSibling
});
// Call the postRender hook
if(this.postRender) {
this.postRender();
}
// Fix height
this.engine.fixHeight();
// Focus if required
if(this.editFocus === &quot;true&quot; || this.editFocus === &quot;yes&quot;) {
this.engine.focus();
}
// Add widget message listeners
this.addEventListeners([
{type: &quot;tm-edit-text-operation&quot;, handler: &quot;handleEditTextOperationMessage&quot;}
]);
};
/*
Get the tiddler being edited and current value
*/
EditTextWidget.prototype.getEditInfo = function() {
// Get the edit value
var self = this,
value,
type = &quot;text/plain&quot;,
update;
if(this.editIndex) {
value = this.wiki.extractTiddlerDataItem(this.editTitle,this.editIndex,this.editDefault);
update = function(value) {
var data = self.wiki.getTiddlerData(self.editTitle,{});
if(data[self.editIndex] !== value) {
data[self.editIndex] = value;
self.wiki.setTiddlerData(self.editTitle,data);
}
};
} else {
// Get the current tiddler and the field name
var tiddler = this.wiki.getTiddler(this.editTitle);
if(tiddler) {
// If we've got a tiddler, the value to display is the field string value
value = tiddler.getFieldString(this.editField);
if(this.editField === &quot;text&quot;) {
type = tiddler.fields.type || &quot;text/vnd.tiddlywiki&quot;;
}
} else {
// Otherwise, we need to construct a default value for the editor
switch(this.editField) {
case &quot;text&quot;:
value = &quot;Type the text for the tiddler '&quot; + this.editTitle + &quot;'&quot;;
type = &quot;text/vnd.tiddlywiki&quot;;
break;
case &quot;title&quot;:
value = this.editTitle;
break;
default:
value = &quot;&quot;;
break;
}
if(this.editDefault !== undefined) {
value = this.editDefault;
}
}
update = function(value) {
var tiddler = self.wiki.getTiddler(self.editTitle),
updateFields = {
title: self.editTitle
};
updateFields[self.editField] = value;
self.wiki.addTiddler(new $tw.Tiddler(self.wiki.getCreationFields(),tiddler,updateFields,self.wiki.getModificationFields()));
};
}
if(this.editType) {
type = this.editType;
}
return {value: value || &quot;&quot;, type: type, update: update};
};
/*
Handle an edit text operation message from the toolbar
*/
EditTextWidget.prototype.handleEditTextOperationMessage = function(event) {
// Prepare information about the operation
var operation = this.engine.createTextOperation();
// Invoke the handler for the selected operation
var handler = this.editorOperations[event.param];
if(handler) {
handler.call(this,event,operation);
}
// Execute the operation via the engine
var newText = this.engine.executeTextOperation(operation);
// Fix the tiddler height and save changes
this.engine.fixHeight();
this.saveChanges(newText);
};
/*
Compute the internal state of the widget
*/
EditTextWidget.prototype.execute = function() {
// Get our parameters
this.editTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.editField = this.getAttribute(&quot;field&quot;,&quot;text&quot;);
this.editIndex = this.getAttribute(&quot;index&quot;);
this.editDefault = this.getAttribute(&quot;default&quot;);
this.editClass = this.getAttribute(&quot;class&quot;);
this.editPlaceholder = this.getAttribute(&quot;placeholder&quot;);
this.editSize = this.getAttribute(&quot;size&quot;);
this.editRows = this.getAttribute(&quot;rows&quot;);
this.editAutoHeight = this.wiki.getTiddlerText(HEIGHT_MODE_TITLE,&quot;auto&quot;);
this.editAutoHeight = this.getAttribute(&quot;autoHeight&quot;,this.editAutoHeight === &quot;auto&quot; ? &quot;yes&quot; : &quot;no&quot;) === &quot;yes&quot;;
this.editMinHeight = this.getAttribute(&quot;minHeight&quot;,DEFAULT_MIN_TEXT_AREA_HEIGHT);
this.editFocusPopup = this.getAttribute(&quot;focusPopup&quot;);
this.editFocus = this.getAttribute(&quot;focus&quot;);
this.editTabIndex = this.getAttribute(&quot;tabindex&quot;);
// Get the default editor element tag and type
var tag,type;
if(this.editField === &quot;text&quot;) {
tag = &quot;textarea&quot;;
} else {
tag = &quot;input&quot;;
var fieldModule = $tw.Tiddler.fieldModules[this.editField];
if(fieldModule &amp;&amp; fieldModule.editTag) {
tag = fieldModule.editTag;
}
if(fieldModule &amp;&amp; fieldModule.editType) {
type = fieldModule.editType;
}
type = type || &quot;text&quot;;
}
// Get the rest of our parameters
this.editTag = this.getAttribute(&quot;tag&quot;,tag) || &quot;input&quot;;
this.editType = this.getAttribute(&quot;type&quot;,type);
// Make the child widgets
this.makeChildWidgets();
// Determine whether to show the toolbar
this.editShowToolbar = this.wiki.getTiddlerText(ENABLE_TOOLBAR_TITLE,&quot;yes&quot;);
this.editShowToolbar = (this.editShowToolbar === &quot;yes&quot;) &amp;&amp; !!(this.children &amp;&amp; this.children.length &gt; 0) &amp;&amp; (!this.document.isTiddlyWikiFakeDom);
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
EditTextWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
// Completely rerender if any of our attributes have changed
if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes[&quot;default&quot;] || changedAttributes[&quot;class&quot;] || changedAttributes.placeholder || changedAttributes.size || changedAttributes.autoHeight || changedAttributes.minHeight || changedAttributes.focusPopup || changedAttributes.rows || changedAttributes.tabindex || changedTiddlers[HEIGHT_MODE_TITLE] || changedTiddlers[ENABLE_TOOLBAR_TITLE]) {
this.refreshSelf();
return true;
} else if(changedTiddlers[this.editTitle]) {
var editInfo = this.getEditInfo();
this.updateEditor(editInfo.value,editInfo.type);
}
this.engine.fixHeight();
if(this.editShowToolbar) {
return this.refreshChildren(changedTiddlers);
} else {
return false;
}
};
/*
Update the editor with new text. This method is separate from updateEditorDomNode()
so that subclasses can override updateEditor() and still use updateEditorDomNode()
*/
EditTextWidget.prototype.updateEditor = function(text,type) {
this.updateEditorDomNode(text,type);
};
/*
Update the editor dom node with new text
*/
EditTextWidget.prototype.updateEditorDomNode = function(text,type) {
this.engine.setText(text,type);
};
/*
Save changes back to the tiddler store
*/
EditTextWidget.prototype.saveChanges = function(text) {
var editInfo = this.getEditInfo();
if(text !== editInfo.value) {
editInfo.update(text);
}
};
/*
Handle a dom &quot;keydown&quot; event, which we'll bubble up to our container for the keyboard widgets benefit
*/
EditTextWidget.prototype.handleKeydownEvent = function(event) {
// Check for a keyboard shortcut
if(this.toolbarNode) {
var shortcutElements = this.toolbarNode.querySelectorAll(&quot;[data-tw-keyboard-shortcut]&quot;);
for(var index=0; index&lt;shortcutElements.length; index++) {
var el = shortcutElements[index],
shortcutData = el.getAttribute(&quot;data-tw-keyboard-shortcut&quot;),
keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(shortcutData,{
wiki: this.wiki
});
if($tw.keyboardManager.checkKeyDescriptors(event,keyInfoArray)) {
var clickEvent = this.document.createEvent(&quot;Events&quot;);
clickEvent.initEvent(&quot;click&quot;,true,false);
el.dispatchEvent(clickEvent);
event.preventDefault();
event.stopPropagation();
return true;
}
}
}
// Propogate the event to the container
if(this.propogateKeydownEvent(event)) {
// Ignore the keydown if it was already handled
event.preventDefault();
event.stopPropagation();
return true;
}
// Otherwise, process the keydown normally
return false;
};
/*
Propogate keydown events to our container for the keyboard widgets benefit
*/
EditTextWidget.prototype.propogateKeydownEvent = function(event) {
var newEvent = this.document.createEventObject ? this.document.createEventObject() : this.document.createEvent(&quot;Events&quot;);
if(newEvent.initEvent) {
newEvent.initEvent(&quot;keydown&quot;, true, true);
}
newEvent.keyCode = event.keyCode;
newEvent.which = event.which;
newEvent.metaKey = event.metaKey;
newEvent.ctrlKey = event.ctrlKey;
newEvent.altKey = event.altKey;
newEvent.shiftKey = event.shiftKey;
return !this.parentDomNode.dispatchEvent(newEvent);
};
return EditTextWidget;
}
exports.editTextWidgetFactory = editTextWidgetFactory;
})();
</pre>
</div>
<div module-type="bitmapeditoroperation" title="$:/core/modules/editor/operations/bitmap/clear.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/operations/bitmap/clear.js
type: application/javascript
module-type: bitmapeditoroperation
Bitmap editor operation to clear the image
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports[&quot;clear&quot;] = function(event) {
var ctx = this.canvasDomNode.getContext(&quot;2d&quot;);
ctx.globalAlpha = 1;
ctx.fillStyle = event.paramObject.colour || &quot;white&quot;;
ctx.fillRect(0,0,this.canvasDomNode.width,this.canvasDomNode.height);
// Save changes
this.strokeEnd();
};
})();
</pre>
</div>
<div module-type="bitmapeditoroperation" title="$:/core/modules/editor/operations/bitmap/resize.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/operations/bitmap/resize.js
type: application/javascript
module-type: bitmapeditoroperation
Bitmap editor operation to resize the image
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports[&quot;resize&quot;] = function(event) {
// Get the new width
var newWidth = parseInt(event.paramObject.width || this.canvasDomNode.width,10),
newHeight = parseInt(event.paramObject.height || this.canvasDomNode.height,10);
// Update if necessary
if(newWidth &gt; 0 &amp;&amp; newHeight &gt; 0 &amp;&amp; !(newWidth === this.currCanvas.width &amp;&amp; newHeight === this.currCanvas.height)) {
this.changeCanvasSize(newWidth,newHeight);
}
// Update the input controls
this.refreshToolbar();
// Save the image into the tiddler
this.saveChanges();
};
})();
</pre>
</div>
<div module-type="bitmapeditoroperation" title="$:/core/modules/editor/operations/bitmap/rotate-left.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/operations/bitmap/rotate-left.js
type: application/javascript
module-type: bitmapeditoroperation
Bitmap editor operation to rotate the image left by 90 degrees
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports[&quot;rotate-left&quot;] = function(event) {
// Rotate the canvas left by 90 degrees
this.rotateCanvasLeft();
// Update the input controls
this.refreshToolbar();
// Save the image into the tiddler
this.saveChanges();
};
})();
</pre>
</div>
<div module-type="texteditoroperation" title="$:/core/modules/editor/operations/text/excise.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/operations/text/excise.js
type: application/javascript
module-type: texteditoroperation
Text editor operation to excise the selection to a new tiddler
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports[&quot;excise&quot;] = function(event,operation) {
var editTiddler = this.wiki.getTiddler(this.editTitle),
editTiddlerTitle = this.editTitle;
if(editTiddler &amp;&amp; editTiddler.fields[&quot;draft.of&quot;]) {
editTiddlerTitle = editTiddler.fields[&quot;draft.of&quot;];
}
var excisionTitle = event.paramObject.title || this.wiki.generateNewTitle(&quot;New Excision&quot;);
this.wiki.addTiddler(new $tw.Tiddler(
this.wiki.getCreationFields(),
this.wiki.getModificationFields(),
{
title: excisionTitle,
text: operation.selection,
tags: event.paramObject.tagnew === &quot;yes&quot; ? [editTiddlerTitle] : []
}
));
operation.replacement = excisionTitle;
switch(event.paramObject.type || &quot;transclude&quot;) {
case &quot;transclude&quot;:
operation.replacement = &quot;{{&quot; + operation.replacement+ &quot;}}&quot;;
break;
case &quot;link&quot;:
operation.replacement = &quot;[[&quot; + operation.replacement+ &quot;]]&quot;;
break;
case &quot;macro&quot;:
operation.replacement = &quot;&lt;&lt;&quot; + (event.paramObject.macro || &quot;translink&quot;) + &quot; \&quot;\&quot;\&quot;&quot; + operation.replacement + &quot;\&quot;\&quot;\&quot;&gt;&gt;&quot;;
break;
}
operation.cutStart = operation.selStart;
operation.cutEnd = operation.selEnd;
operation.newSelStart = operation.selStart;
operation.newSelEnd = operation.selStart + operation.replacement.length;
};
})();
</pre>
</div>
<div module-type="texteditoroperation" title="$:/core/modules/editor/operations/text/make-link.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/operations/text/make-link.js
type: application/javascript
module-type: texteditoroperation
Text editor operation to make a link
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports[&quot;make-link&quot;] = function(event,operation) {
if(operation.selection) {
operation.replacement = &quot;[[&quot; + operation.selection + &quot;|&quot; + event.paramObject.text + &quot;]]&quot;;
operation.cutStart = operation.selStart;
operation.cutEnd = operation.selEnd;
} else {
operation.replacement = &quot;[[&quot; + event.paramObject.text + &quot;]]&quot;;
operation.cutStart = operation.selStart;
operation.cutEnd = operation.selEnd;
}
operation.newSelStart = operation.selStart + operation.replacement.length;
operation.newSelEnd = operation.newSelStart;
};
})();
</pre>
</div>
<div module-type="texteditoroperation" title="$:/core/modules/editor/operations/text/prefix-lines.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/operations/text/prefix-lines.js
type: application/javascript
module-type: texteditoroperation
Text editor operation to add a prefix to the selected lines
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports[&quot;prefix-lines&quot;] = function(event,operation) {
var targetCount = parseInt(event.paramObject.count + &quot;&quot;,10);
// Cut just past the preceding line break, or the start of the text
operation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);
// Cut to just past the following line break, or to the end of the text
operation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd);
// Compose the required prefix
var prefix = $tw.utils.repeat(event.paramObject.character,targetCount);
// Process each line
var lines = operation.text.substring(operation.cutStart,operation.cutEnd).split(/\r?\n/mg);
$tw.utils.each(lines,function(line,index) {
// Remove and count any existing prefix characters
var count = 0;
while(line.charAt(0) === event.paramObject.character) {
line = line.substring(1);
count++;
}
// Remove any whitespace
while(line.charAt(0) === &quot; &quot;) {
line = line.substring(1);
}
// We're done if we removed the exact required prefix, otherwise add it
if(count !== targetCount) {
// Apply the prefix
line = prefix + &quot; &quot; + line;
}
// Save the modified line
lines[index] = line;
});
// Stitch the replacement text together and set the selection
operation.replacement = lines.join(&quot;\n&quot;);
if(lines.length === 1) {
operation.newSelStart = operation.cutStart + operation.replacement.length;
operation.newSelEnd = operation.newSelStart;
} else {
operation.newSelStart = operation.cutStart;
operation.newSelEnd = operation.newSelStart + operation.replacement.length;
}
};
})();
</pre>
</div>
<div module-type="texteditoroperation" title="$:/core/modules/editor/operations/text/replace-all.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/operations/text/replace-all.js
type: application/javascript
module-type: texteditoroperation
Text editor operation to replace the entire text
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports[&quot;replace-all&quot;] = function(event,operation) {
operation.cutStart = 0;
operation.cutEnd = operation.text.length;
operation.replacement = event.paramObject.text;
operation.newSelStart = 0;
operation.newSelEnd = operation.replacement.length;
};
})();
</pre>
</div>
<div module-type="texteditoroperation" title="$:/core/modules/editor/operations/text/replace-selection.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/operations/text/replace-selection.js
type: application/javascript
module-type: texteditoroperation
Text editor operation to replace the selection
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports[&quot;replace-selection&quot;] = function(event,operation) {
operation.replacement = event.paramObject.text;
operation.cutStart = operation.selStart;
operation.cutEnd = operation.selEnd;
operation.newSelStart = operation.selStart;
operation.newSelEnd = operation.selStart + operation.replacement.length;
};
})();
</pre>
</div>
<div module-type="texteditoroperation" title="$:/core/modules/editor/operations/text/save-selection.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/operations/text/save-selection.js
type: application/javascript
module-type: texteditoroperation
Text editor operation to save the current selection in a specified tiddler
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports[&quot;save-selection&quot;] = function(event,operation) {
var tiddler = event.paramObject.tiddler,
field = event.paramObject.field || &quot;text&quot;;
if(tiddler &amp;&amp; field) {
this.wiki.setText(tiddler,field,null,operation.text.substring(operation.selStart,operation.selEnd));
}
};
})();
</pre>
</div>
<div module-type="texteditoroperation" title="$:/core/modules/editor/operations/text/wrap-lines.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/operations/text/wrap-lines.js
type: application/javascript
module-type: texteditoroperation
Text editor operation to wrap the selected lines with a prefix and suffix
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports[&quot;wrap-lines&quot;] = function(event,operation) {
// Cut just past the preceding line break, or the start of the text
operation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);
// Cut to just past the following line break, or to the end of the text
operation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd);
// Add the prefix and suffix
operation.replacement = event.paramObject.prefix + &quot;\n&quot; +
operation.text.substring(operation.cutStart,operation.cutEnd) + &quot;\n&quot; +
event.paramObject.suffix + &quot;\n&quot;;
operation.newSelStart = operation.cutStart + event.paramObject.prefix.length + 1;
operation.newSelEnd = operation.newSelStart + (operation.cutEnd - operation.cutStart);
};
})();
</pre>
</div>
<div module-type="texteditoroperation" title="$:/core/modules/editor/operations/text/wrap-selection.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/editor/operations/text/wrap-selection.js
type: application/javascript
module-type: texteditoroperation
Text editor operation to wrap the selection with the specified prefix and suffix
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports[&quot;wrap-selection&quot;] = function(event,operation) {
if(operation.selStart === operation.selEnd) {
// No selection; check if we're within the prefix/suffix
if(operation.text.substring(operation.selStart - event.paramObject.prefix.length,operation.selStart + event.paramObject.suffix.length) === event.paramObject.prefix + event.paramObject.suffix) {
// Remove the prefix and suffix
operation.cutStart = operation.selStart - event.paramObject.prefix.length;
operation.cutEnd = operation.selEnd + event.paramObject.suffix.length;
operation.replacement = &quot;&quot;;
operation.newSelStart = operation.cutStart;
operation.newSelEnd = operation.newSelStart;
} else {
// Wrap the cursor instead
operation.cutStart = operation.selStart;
operation.cutEnd = operation.selEnd;
operation.replacement = event.paramObject.prefix + event.paramObject.suffix;
operation.newSelStart = operation.selStart + event.paramObject.prefix.length;
operation.newSelEnd = operation.newSelStart;
}
} else if(operation.text.substring(operation.selStart,operation.selStart + event.paramObject.prefix.length) === event.paramObject.prefix &amp;&amp; operation.text.substring(operation.selEnd - event.paramObject.suffix.length,operation.selEnd) === event.paramObject.suffix) {
// Prefix and suffix are already present, so remove them
operation.cutStart = operation.selStart;
operation.cutEnd = operation.selEnd;
operation.replacement = operation.selection.substring(event.paramObject.prefix.length,operation.selection.length - event.paramObject.suffix.length);
operation.newSelStart = operation.selStart;
operation.newSelEnd = operation.selStart + operation.replacement.length;
} else {
// Add the prefix and suffix
operation.cutStart = operation.selStart;
operation.cutEnd = operation.selEnd;
operation.replacement = event.paramObject.prefix + operation.selection + event.paramObject.suffix;
operation.newSelStart = operation.selStart;
operation.newSelEnd = operation.selStart + operation.replacement.length;
}
};
})();
</pre>
</div>
<div module-type="wikimethod" title="$:/core/modules/filters.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters.js
type: application/javascript
module-type: wikimethod
Adds tiddler filtering methods to the $tw.Wiki object.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Parses an operation (i.e. a run) within a filter string
operators: Array of array of operator nodes into which results should be inserted
filterString: filter string
p: start position within the string
Returns the new start position, after the parsed operation
*/
function parseFilterOperation(operators,filterString,p) {
var nextBracketPos, operator;
// Skip the starting square bracket
if(filterString.charAt(p++) !== &quot;[&quot;) {
throw &quot;Missing [ in filter expression&quot;;
}
// Process each operator in turn
do {
operator = {};
// Check for an operator prefix
if(filterString.charAt(p) === &quot;!&quot;) {
operator.prefix = filterString.charAt(p++);
}
// Get the operator name
nextBracketPos = filterString.substring(p).search(/[\[\{&lt;\/]/);
if(nextBracketPos === -1) {
throw &quot;Missing [ in filter expression&quot;;
}
nextBracketPos += p;
var bracket = filterString.charAt(nextBracketPos);
operator.operator = filterString.substring(p,nextBracketPos);
// Any suffix?
var colon = operator.operator.indexOf(':');
if(colon &gt; -1) {
// The raw suffix for older filters
operator.suffix = operator.operator.substring(colon + 1);
operator.operator = operator.operator.substring(0,colon) || &quot;field&quot;;
// The processed suffix for newer filters
operator.suffixes = [];
$tw.utils.each(operator.suffix.split(&quot;:&quot;),function(subsuffix) {
operator.suffixes.push([]);
$tw.utils.each(subsuffix.split(&quot;,&quot;),function(entry) {
entry = $tw.utils.trim(entry);
if(entry) {
operator.suffixes[operator.suffixes.length - 1].push(entry);
}
});
});
}
// Empty operator means: title
else if(operator.operator === &quot;&quot;) {
operator.operator = &quot;title&quot;;
}
p = nextBracketPos + 1;
switch (bracket) {
case &quot;{&quot;: // Curly brackets
operator.indirect = true;
nextBracketPos = filterString.indexOf(&quot;}&quot;,p);
break;
case &quot;[&quot;: // Square brackets
nextBracketPos = filterString.indexOf(&quot;]&quot;,p);
break;
case &quot;&lt;&quot;: // Angle brackets
operator.variable = true;
nextBracketPos = filterString.indexOf(&quot;&gt;&quot;,p);
break;
case &quot;/&quot;: // regexp brackets
var rex = /^((?:[^\\\/]*|\\.)*)\/(?:\(([mygi]+)\))?/g,
rexMatch = rex.exec(filterString.substring(p));
if(rexMatch) {
operator.regexp = new RegExp(rexMatch[1], rexMatch[2]);
// DEPRECATION WARNING
console.log(&quot;WARNING: Filter&quot;,operator.operator,&quot;has a deprecated regexp operand&quot;,operator.regexp);
nextBracketPos = p + rex.lastIndex - 1;
}
else {
throw &quot;Unterminated regular expression in filter expression&quot;;
}
break;
}
if(nextBracketPos === -1) {
throw &quot;Missing closing bracket in filter expression&quot;;
}
if(!operator.regexp) {
operator.operand = filterString.substring(p,nextBracketPos);
}
p = nextBracketPos + 1;
// Push this operator
operators.push(operator);
} while(filterString.charAt(p) !== &quot;]&quot;);
// Skip the ending square bracket
if(filterString.charAt(p++) !== &quot;]&quot;) {
throw &quot;Missing ] in filter expression&quot;;
}
// Return the parsing position
return p;
}
/*
Parse a filter string
*/
exports.parseFilter = function(filterString) {
filterString = filterString || &quot;&quot;;
var results = [], // Array of arrays of operator nodes {operator:,operand:}
p = 0, // Current position in the filter string
match;
var whitespaceRegExp = /(\s+)/mg,
operandRegExp = /((?:\+|\-|~|=)?)(?:(\[)|(?:&quot;([^&quot;]*)&quot;)|(?:'([^']*)')|([^\s\[\]]+))/mg;
while(p &lt; filterString.length) {
// Skip any whitespace
whitespaceRegExp.lastIndex = p;
match = whitespaceRegExp.exec(filterString);
if(match &amp;&amp; match.index === p) {
p = p + match[0].length;
}
// Match the start of the operation
if(p &lt; filterString.length) {
operandRegExp.lastIndex = p;
match = operandRegExp.exec(filterString);
if(!match || match.index !== p) {
throw $tw.language.getString(&quot;Error/FilterSyntax&quot;);
}
var operation = {
prefix: &quot;&quot;,
operators: []
};
if(match[1]) {
operation.prefix = match[1];
p++;
}
if(match[2]) { // Opening square bracket
p = parseFilterOperation(operation.operators,filterString,p);
} else {
p = match.index + match[0].length;
}
if(match[3] || match[4] || match[5]) { // Double quoted string, single quoted string or unquoted title
operation.operators.push(
{operator: &quot;title&quot;, operand: match[3] || match[4] || match[5]}
);
}
results.push(operation);
}
}
return results;
};
exports.getFilterOperators = function() {
if(!this.filterOperators) {
$tw.Wiki.prototype.filterOperators = {};
$tw.modules.applyMethods(&quot;filteroperator&quot;,this.filterOperators);
}
return this.filterOperators;
};
exports.filterTiddlers = function(filterString,widget,source) {
var fn = this.compileFilter(filterString);
return fn.call(this,source,widget);
};
/*
Compile a filter into a function with the signature fn(source,widget) where:
source: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)
widget: an optional widget node for retrieving the current tiddler etc.
*/
exports.compileFilter = function(filterString) {
var filterParseTree;
try {
filterParseTree = this.parseFilter(filterString);
} catch(e) {
return function(source,widget) {
return [$tw.language.getString(&quot;Error/Filter&quot;) + &quot;: &quot; + e];
};
}
// Get the hashmap of filter operator functions
var filterOperators = this.getFilterOperators();
// Assemble array of functions, one for each operation
var operationFunctions = [];
// Step through the operations
var self = this;
$tw.utils.each(filterParseTree,function(operation) {
// Create a function for the chain of operators in the operation
var operationSubFunction = function(source,widget) {
var accumulator = source,
results = [],
currTiddlerTitle = widget &amp;&amp; widget.getVariable(&quot;currentTiddler&quot;);
$tw.utils.each(operation.operators,function(operator) {
var operand = operator.operand,
operatorFunction;
if(!operator.operator) {
operatorFunction = filterOperators.title;
} else if(!filterOperators[operator.operator]) {
operatorFunction = filterOperators.field;
} else {
operatorFunction = filterOperators[operator.operator];
}
if(operator.indirect) {
operand = self.getTextReference(operator.operand,&quot;&quot;,currTiddlerTitle);
}
if(operator.variable) {
operand = widget.getVariable(operator.operand,{defaultValue: &quot;&quot;});
}
// Invoke the appropriate filteroperator module
results = operatorFunction(accumulator,{
operator: operator.operator,
operand: operand,
prefix: operator.prefix,
suffix: operator.suffix,
suffixes: operator.suffixes,
regexp: operator.regexp
},{
wiki: self,
widget: widget
});
if($tw.utils.isArray(results)) {
accumulator = self.makeTiddlerIterator(results);
} else {
accumulator = results;
}
});
if($tw.utils.isArray(results)) {
return results;
} else {
var resultArray = [];
results(function(tiddler,title) {
resultArray.push(title);
});
return resultArray;
}
};
// Wrap the operator functions in a wrapper function that depends on the prefix
operationFunctions.push((function() {
switch(operation.prefix || &quot;&quot;) {
case &quot;&quot;: // No prefix means that the operation is unioned into the result
return function(results,source,widget) {
$tw.utils.pushTop(results,operationSubFunction(source,widget));
};
case &quot;=&quot;: // The results of the operation are pushed into the result without deduplication
return function(results,source,widget) {
Array.prototype.push.apply(results,operationSubFunction(source,widget));
};
case &quot;-&quot;: // The results of this operation are removed from the main result
return function(results,source,widget) {
$tw.utils.removeArrayEntries(results,operationSubFunction(source,widget));
};
case &quot;+&quot;: // This operation is applied to the main results so far
return function(results,source,widget) {
// This replaces all the elements of the array, but keeps the actual array so that references to it are preserved
source = self.makeTiddlerIterator(results);
results.splice(0,results.length);
$tw.utils.pushTop(results,operationSubFunction(source,widget));
};
case &quot;~&quot;: // This operation is unioned into the result only if the main result so far is empty
return function(results,source,widget) {
if(results.length === 0) {
// Main result so far is empty
$tw.utils.pushTop(results,operationSubFunction(source,widget));
}
};
}
})());
});
// Return a function that applies the operations to a source iterator of tiddler titles
return $tw.perf.measure(&quot;filter: &quot; + filterString,function filterFunction(source,widget) {
if(!source) {
source = self.each;
} else if(typeof source === &quot;object&quot;) { // Array or hashmap
source = self.makeTiddlerIterator(source);
}
var results = [];
$tw.utils.each(operationFunctions,function(operationFunction) {
operationFunction(results,source,widget);
});
return results;
});
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/addprefix.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/addprefix.js
type: application/javascript
module-type: filteroperator
Filter operator for adding a prefix to each title in the list. This is
especially useful in contexts where only a filter expression is allowed
and macro substitution isn't available.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.addprefix = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(operator.operand + title);
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/addsuffix.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/addsuffix.js
type: application/javascript
module-type: filteroperator
Filter operator for adding a suffix to each title in the list. This is
especially useful in contexts where only a filter expression is allowed
and macro substitution isn't available.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.addsuffix = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(title + operator.operand);
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/after.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/after.js
type: application/javascript
module-type: filteroperator
Filter operator returning the tiddler from the current list that is after the tiddler named in the operand.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.after = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(title);
});
var index = results.indexOf(operator.operand);
if(index === -1 || index &gt; (results.length - 2)) {
return [];
} else {
return [results[index + 1]];
}
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/all.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/all.js
type: application/javascript
module-type: filteroperator
Filter operator for selecting tiddlers
[all[shadows+tiddlers]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var allFilterOperators;
function getAllFilterOperators() {
if(!allFilterOperators) {
allFilterOperators = {};
$tw.modules.applyMethods(&quot;allfilteroperator&quot;,allFilterOperators);
}
return allFilterOperators;
}
/*
Export our filter function
*/
exports.all = function(source,operator,options) {
// Get our suboperators
var allFilterOperators = getAllFilterOperators();
// Cycle through the suboperators accumulating their results
var results = [],
subops = operator.operand.split(&quot;+&quot;);
// Check for common optimisations
if(subops.length === 1 &amp;&amp; subops[0] === &quot;&quot;) {
return source;
} else if(subops.length === 1 &amp;&amp; subops[0] === &quot;tiddlers&quot;) {
return options.wiki.each;
} else if(subops.length === 1 &amp;&amp; subops[0] === &quot;shadows&quot;) {
return options.wiki.eachShadow;
} else if(subops.length === 2 &amp;&amp; subops[0] === &quot;tiddlers&quot; &amp;&amp; subops[1] === &quot;shadows&quot;) {
return options.wiki.eachTiddlerPlusShadows;
} else if(subops.length === 2 &amp;&amp; subops[0] === &quot;shadows&quot; &amp;&amp; subops[1] === &quot;tiddlers&quot;) {
return options.wiki.eachShadowPlusTiddlers;
}
// Do it the hard way
for(var t=0; t&lt;subops.length; t++) {
var subop = allFilterOperators[subops[t]];
if(subop) {
$tw.utils.pushTop(results,subop(source,operator.prefix,options));
}
}
return results;
};
})();
</pre>
</div>
<div module-type="allfilteroperator" title="$:/core/modules/filters/all/current.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/all/current.js
type: application/javascript
module-type: allfilteroperator
Filter function for [all[current]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.current = function(source,prefix,options) {
var currTiddlerTitle = options.widget &amp;&amp; options.widget.getVariable(&quot;currentTiddler&quot;);
if(currTiddlerTitle) {
return [currTiddlerTitle];
} else {
return [];
}
};
})();
</pre>
</div>
<div module-type="allfilteroperator" title="$:/core/modules/filters/all/missing.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/all/missing.js
type: application/javascript
module-type: allfilteroperator
Filter function for [all[missing]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.missing = function(source,prefix,options) {
return options.wiki.getMissingTitles();
};
})();
</pre>
</div>
<div module-type="allfilteroperator" title="$:/core/modules/filters/all/orphans.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/all/orphans.js
type: application/javascript
module-type: allfilteroperator
Filter function for [all[orphans]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.orphans = function(source,prefix,options) {
return options.wiki.getOrphanTitles();
};
})();
</pre>
</div>
<div module-type="allfilteroperator" title="$:/core/modules/filters/all/shadows.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/all/shadows.js
type: application/javascript
module-type: allfilteroperator
Filter function for [all[shadows]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.shadows = function(source,prefix,options) {
return options.wiki.allShadowTitles();
};
})();
</pre>
</div>
<div module-type="allfilteroperator" title="$:/core/modules/filters/all/tags.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/all/tags.js
type: application/javascript
module-type: allfilteroperator
Filter function for [all[tags]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.tags = function(source,prefix,options) {
return Object.keys(options.wiki.getTagMap());
};
})();
</pre>
</div>
<div module-type="allfilteroperator" title="$:/core/modules/filters/all/tiddlers.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/all/tiddlers.js
type: application/javascript
module-type: allfilteroperator
Filter function for [all[tiddlers]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.tiddlers = function(source,prefix,options) {
return options.wiki.allTitles();
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/backlinks.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/backlinks.js
type: application/javascript
module-type: filteroperator
Filter operator for returning all the backlinks from a tiddler
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.backlinks = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
$tw.utils.pushTop(results,options.wiki.getTiddlerBacklinks(title));
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/before.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/before.js
type: application/javascript
module-type: filteroperator
Filter operator returning the tiddler from the current list that is before the tiddler named in the operand.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.before = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(title);
});
var index = results.indexOf(operator.operand);
if(index &lt;= 0) {
return [];
} else {
return [results[index - 1]];
}
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/commands.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/commands.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the names of the commands available in this wiki
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.commands = function(source,operator,options) {
var results = [];
$tw.utils.each($tw.commands,function(commandInfo,name) {
results.push(name);
});
results.sort();
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/compare.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/compare.js
type: application/javascript
module-type: filteroperator
General purpose comparison operator
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.compare = function(source,operator,options) {
var suffixes = operator.suffixes || [],
type = (suffixes[0] || [])[0],
mode = (suffixes[1] || [])[0],
typeFn = types[type] || types.number,
modeFn = modes[mode] || modes.eq,
invert = operator.prefix === &quot;!&quot;,
results = [];
source(function(tiddler,title) {
if(modeFn(typeFn(title,operator.operand)) !== invert) {
results.push(title);
}
});
return results;
};
var types = {
&quot;number&quot;: function(a,b) {
return compare($tw.utils.parseNumber(a),$tw.utils.parseNumber(b));
},
&quot;integer&quot;: function(a,b) {
return compare($tw.utils.parseInt(a),$tw.utils.parseInt(b));
},
&quot;string&quot;: function(a,b) {
return compare(&quot;&quot; + a,&quot;&quot; +b);
},
&quot;date&quot;: function(a,b) {
var dateA = $tw.utils.parseDate(a),
dateB = $tw.utils.parseDate(b);
if(!isFinite(dateA)) {
dateA = new Date(0);
}
if(!isFinite(dateB)) {
dateB = new Date(0);
}
return compare(dateA,dateB);
},
&quot;version&quot;: function(a,b) {
return $tw.utils.compareVersions(a,b);
}
};
function compare(a,b) {
if(a &gt; b) {
return +1;
} else if(a &lt; b) {
return -1;
} else {
return 0;
}
};
var modes = {
&quot;eq&quot;: function(value) {return value === 0;},
&quot;ne&quot;: function(value) {return value !== 0;},
&quot;gteq&quot;: function(value) {return value &gt;= 0;},
&quot;gt&quot;: function(value) {return value &gt; 0;},
&quot;lteq&quot;: function(value) {return value &lt;= 0;},
&quot;lt&quot;: function(value) {return value &lt; 0;}
}
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/contains.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/contains.js
type: application/javascript
module-type: filteroperator
Filter operator for finding values in array fields
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.contains = function(source,operator,options) {
var results = [],
fieldname = (operator.suffix || &quot;list&quot;).toLowerCase();
if(operator.prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(tiddler) {
var list = tiddler.getFieldList(fieldname);
if(list.indexOf(operator.operand) === -1) {
results.push(title);
}
} else {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(tiddler) {
var list = tiddler.getFieldList(fieldname);
if(list.indexOf(operator.operand) !== -1) {
results.push(title);
}
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/count.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/count.js
type: application/javascript
module-type: filteroperator
Filter operator returning the number of entries in the current list.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.count = function(source,operator,options) {
var count = 0;
source(function(tiddler,title) {
count++;
});
return [count + &quot;&quot;];
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/days.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/days.js
type: application/javascript
module-type: filteroperator
Filter operator that selects tiddlers with a specified date field within a specified date interval.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.days = function(source,operator,options) {
var results = [],
fieldName = operator.suffix || &quot;modified&quot;,
dayInterval = (parseInt(operator.operand,10)||0),
dayIntervalSign = $tw.utils.sign(dayInterval),
targetTimeStamp = (new Date()).setHours(0,0,0,0) + 1000*60*60*24*dayInterval,
isWithinDays = function(dateField) {
var sign = $tw.utils.sign(targetTimeStamp - (new Date(dateField)).setHours(0,0,0,0));
return sign === 0 || sign === dayIntervalSign;
};
if(operator.prefix === &quot;!&quot;) {
targetTimeStamp = targetTimeStamp - 1000*60*60*24*dayIntervalSign;
source(function(tiddler,title) {
if(tiddler &amp;&amp; tiddler.fields[fieldName]) {
if(!isWithinDays($tw.utils.parseDate(tiddler.fields[fieldName]))) {
results.push(title);
}
}
});
} else {
source(function(tiddler,title) {
if(tiddler &amp;&amp; tiddler.fields[fieldName]) {
if(isWithinDays($tw.utils.parseDate(tiddler.fields[fieldName]))) {
results.push(title);
}
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/decodeuricomponent.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/decodeuricomponent.js
type: application/javascript
module-type: filteroperator
Filter operator for applying decodeURIComponent() to each item.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter functions
*/
exports.decodeuricomponent = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
var value = title;
try {
value = decodeURIComponent(title);
} catch(e) {
}
results.push(value);
});
return results;
};
exports.encodeuricomponent = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(encodeURIComponent(title));
});
return results;
};
exports.decodeuri = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
var value = title;
try {
value = decodeURI(title);
} catch(e) {
}
results.push(value);
});
return results;
};
exports.encodeuri = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(encodeURI(title));
});
return results;
};
exports.decodehtml = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push($tw.utils.htmlDecode(title));
});
return results;
};
exports.encodehtml = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push($tw.utils.htmlEncode(title));
});
return results;
};
exports.stringify = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push($tw.utils.stringify(title));
});
return results;
};
exports.jsonstringify = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push($tw.utils.jsonStringify(title));
});
return results;
};
exports.escaperegexp = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push($tw.utils.escapeRegExp(title));
});
return results;
};
exports.escapecss = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
// escape any character with a special meaning in CSS using CSS.escape()
results.push(CSS.escape(title));
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/each.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/each.js
type: application/javascript
module-type: filteroperator
Filter operator that selects one tiddler for each unique value of the specified field.
With suffix &quot;list&quot;, selects all tiddlers that are values in a specified list field.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.each = function(source,operator,options) {
var results =[] ,
value,values = {},
field = operator.operand || &quot;title&quot;;
if(operator.suffix === &quot;value&quot; &amp;&amp; field === &quot;title&quot;) {
source(function(tiddler,title) {
if(!$tw.utils.hop(values,title)) {
values[title] = true;
results.push(title);
}
});
} else if(operator.suffix !== &quot;list-item&quot;) {
if(field === &quot;title&quot;) {
source(function(tiddler,title) {
if(tiddler &amp;&amp; !$tw.utils.hop(values,title)) {
values[title] = true;
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(tiddler) {
value = tiddler.getFieldString(field);
if(!$tw.utils.hop(values,value)) {
values[value] = true;
results.push(title);
}
}
});
}
} else {
source(function(tiddler,title) {
if(tiddler) {
$tw.utils.each(
options.wiki.getTiddlerList(title,field),
function(value) {
if(!$tw.utils.hop(values,value)) {
values[value] = true;
results.push(value);
}
}
);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/eachday.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/eachday.js
type: application/javascript
module-type: filteroperator
Filter operator that selects one tiddler for each unique day covered by the specified date field
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.eachday = function(source,operator,options) {
var results = [],
values = [],
fieldName = operator.operand || &quot;modified&quot;;
// Function to convert a date/time to a date integer
var toDate = function(value) {
value = (new Date(value)).setHours(0,0,0,0);
return value+0;
};
source(function(tiddler,title) {
if(tiddler &amp;&amp; tiddler.fields[fieldName]) {
var value = toDate($tw.utils.parseDate(tiddler.fields[fieldName]));
if(values.indexOf(value) === -1) {
values.push(value);
results.push(title);
}
}
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/editiondescription.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/editiondescription.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the descriptions of the specified edition names
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.editiondescription = function(source,operator,options) {
var results = [],
editionInfo = $tw.utils.getEditionInfo();
if(editionInfo) {
source(function(tiddler,title) {
if($tw.utils.hop(editionInfo,title)) {
results.push(editionInfo[title].description || &quot;&quot;);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/editions.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/editions.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the names of the available editions in this wiki
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.editions = function(source,operator,options) {
var results = [],
editionInfo = $tw.utils.getEditionInfo();
if(editionInfo) {
$tw.utils.each(editionInfo,function(info,name) {
results.push(name);
});
}
results.sort();
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/else.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/else.js
type: application/javascript
module-type: filteroperator
Filter operator for replacing an empty input list with a constant, passing a non-empty input list straight through
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.else = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(title);
});
if(results.length === 0) {
return [operator.operand];
} else {
return results;
}
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/enlist.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/enlist.js
type: application/javascript
module-type: filteroperator
Filter operator returning its operand parsed as a list
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.enlist = function(source,operator,options) {
var allowDuplicates = false;
switch(operator.suffix) {
case &quot;raw&quot;:
allowDuplicates = true;
break;
case &quot;dedupe&quot;:
allowDuplicates = false;
break;
}
var list = $tw.utils.parseStringArray(operator.operand,allowDuplicates);
if(operator.prefix === &quot;!&quot;) {
var results = [];
source(function(tiddler,title) {
if(list.indexOf(title) === -1) {
results.push(title);
}
});
return results;
} else {
return list;
}
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/field.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/field.js
type: application/javascript
module-type: filteroperator
Filter operator for comparing fields for equality
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.field = function(source,operator,options) {
var results = [],indexedResults,
fieldname = (operator.suffix || operator.operator || &quot;title&quot;).toLowerCase();
if(operator.prefix === &quot;!&quot;) {
if(operator.regexp) {
source(function(tiddler,title) {
if(tiddler) {
var text = tiddler.getFieldString(fieldname);
if(text !== null &amp;&amp; !operator.regexp.exec(text)) {
results.push(title);
}
} else {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(tiddler) {
var text = tiddler.getFieldString(fieldname);
if(text !== null &amp;&amp; text !== operator.operand) {
results.push(title);
}
} else {
results.push(title);
}
});
}
} else {
if(operator.regexp) {
source(function(tiddler,title) {
if(tiddler) {
var text = tiddler.getFieldString(fieldname);
if(text !== null &amp;&amp; !!operator.regexp.exec(text)) {
results.push(title);
}
}
});
} else {
if(source.byField &amp;&amp; operator.operand) {
indexedResults = source.byField(fieldname,operator.operand);
if(indexedResults) {
return indexedResults
}
}
source(function(tiddler,title) {
if(tiddler) {
var text = tiddler.getFieldString(fieldname);
if(text !== null &amp;&amp; text === operator.operand) {
results.push(title);
}
}
});
}
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/fields.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/fields.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the names of the fields on the selected tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.fields = function(source,operator,options) {
var results = [],
fieldName,
suffixes = (operator.suffixes || [])[0] || [],
operand = $tw.utils.parseStringArray(operator.operand);
source(function(tiddler,title) {
if(tiddler) {
if(suffixes.indexOf(&quot;include&quot;) !== -1) {
for(fieldName in tiddler.fields) {
(operand.indexOf(fieldName) !== -1) ? $tw.utils.pushTop(results,fieldName) : &quot;&quot;;
}
} else if (suffixes.indexOf(&quot;exclude&quot;) !== -1) {
for(fieldName in tiddler.fields) {
(operand.indexOf(fieldName) !== -1) ? &quot;&quot; : $tw.utils.pushTop(results,fieldName);
}
} // else if
else {
for(fieldName in tiddler.fields) {
$tw.utils.pushTop(results,fieldName);
}
} // else
} // if (tiddler)
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/get.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/get.js
type: application/javascript
module-type: filteroperator
Filter operator for replacing tiddler titles by the value of the field specified in the operand.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.get = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
if(tiddler) {
var value = tiddler.getFieldString(operator.operand);
if(value) {
results.push(value);
}
}
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/getindex.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/getindex.js
type: application/javascript
module-type: filteroperator
returns the value at a given index of datatiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.getindex = function(source,operator,options) {
var data,title,results = [];
if(operator.operand){
source(function(tiddler,title) {
title = tiddler ? tiddler.fields.title : title;
data = options.wiki.extractTiddlerDataItem(tiddler,operator.operand);
if(data) {
results.push(data);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/getvariable.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/getvariable.js
type: application/javascript
module-type: filteroperator
Filter operator for replacing input values by the value of the variable with the same name, or blank if the variable is missing
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.getvariable = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(options.widget.getVariable(title) || &quot;&quot;);
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/has.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/has.js
type: application/javascript
module-type: filteroperator
Filter operator for checking if a tiddler has the specified field or index
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.has = function(source,operator,options) {
var results = [],
invert = operator.prefix === &quot;!&quot;;
if(operator.suffix === &quot;field&quot;) {
if(invert) {
source(function(tiddler,title) {
if(!tiddler || (tiddler &amp;&amp; (!$tw.utils.hop(tiddler.fields,operator.operand)))) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(tiddler &amp;&amp; $tw.utils.hop(tiddler.fields,operator.operand)) {
results.push(title);
}
});
}
}
else if(operator.suffix === &quot;index&quot;) {
if(invert) {
source(function(tiddler,title) {
if(!tiddler || (tiddler &amp;&amp; (!$tw.utils.hop($tw.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)))) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(tiddler &amp;&amp; $tw.utils.hop($tw.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)) {
results.push(title);
}
});
}
}
else {
if(invert) {
source(function(tiddler,title) {
if(!tiddler || !$tw.utils.hop(tiddler.fields,operator.operand) || (tiddler.fields[operator.operand] === &quot;&quot;)) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(tiddler &amp;&amp; $tw.utils.hop(tiddler.fields,operator.operand) &amp;&amp; !(tiddler.fields[operator.operand] === &quot;&quot; || tiddler.fields[operator.operand].length === 0)) {
results.push(title);
}
});
}
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/haschanged.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/haschanged.js
type: application/javascript
module-type: filteroperator
Filter operator returns tiddlers from the list that have a non-zero changecount.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.haschanged = function(source,operator,options) {
var results = [];
if(operator.prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(options.wiki.getChangeCount(title) === 0) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(options.wiki.getChangeCount(title) &gt; 0) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/indexes.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/indexes.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the indexes of a data tiddler
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.indexes = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
var data = options.wiki.getTiddlerDataCached(title);
if(data) {
$tw.utils.pushTop(results,Object.keys(data));
}
});
results.sort();
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/insertbefore.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/insertbefore.js
type: application/javascript
module-type: filteroperator
Insert an item before another item in a list
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Order a list
*/
exports.insertbefore = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(title);
});
var target = options.widget &amp;&amp; options.widget.getVariable(operator.suffix || &quot;currentTiddler&quot;);
if(target !== operator.operand) {
// Remove the entry from the list if it is present
var pos = results.indexOf(operator.operand);
if(pos !== -1) {
results.splice(pos,1);
}
// Insert the entry before the target marker
pos = results.indexOf(target);
if(pos !== -1) {
results.splice(pos,0,operator.operand);
} else {
results.push(operator.operand);
}
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/is.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is.js
type: application/javascript
module-type: filteroperator
Filter operator for checking tiddler properties
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var isFilterOperators;
function getIsFilterOperators() {
if(!isFilterOperators) {
isFilterOperators = {};
$tw.modules.applyMethods(&quot;isfilteroperator&quot;,isFilterOperators);
}
return isFilterOperators;
}
/*
Export our filter function
*/
exports.is = function(source,operator,options) {
// Dispatch to the correct isfilteroperator
var isFilterOperators = getIsFilterOperators();
if(operator.operand) {
var isFilterOperator = isFilterOperators[operator.operand];
if(isFilterOperator) {
return isFilterOperator(source,operator.prefix,options);
} else {
return [$tw.language.getString(&quot;Error/IsFilterOperator&quot;)];
}
} else {
// Return all tiddlers if the operand is missing
var results = [];
source(function(tiddler,title) {
results.push(title);
});
return results;
}
};
})();</pre>
</div>
<div module-type="isfilteroperator" title="$:/core/modules/filters/is/binary.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is/binary.js
type: application/javascript
module-type: isfilteroperator
Filter function for [is[binary]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.binary = function(source,prefix,options) {
var results = [];
if(prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(!options.wiki.isBinaryTiddler(title)) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(options.wiki.isBinaryTiddler(title)) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="isfilteroperator" title="$:/core/modules/filters/is/blank.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is/blank.js
type: application/javascript
module-type: isfilteroperator
Filter function for [is[blank]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.blank = function(source,prefix,options) {
var results = [];
if(prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(title) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(!title) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="isfilteroperator" title="$:/core/modules/filters/is/current.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is/current.js
type: application/javascript
module-type: isfilteroperator
Filter function for [is[current]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.current = function(source,prefix,options) {
var results = [],
currTiddlerTitle = options.widget &amp;&amp; options.widget.getVariable(&quot;currentTiddler&quot;);
if(prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(title !== currTiddlerTitle) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(title === currTiddlerTitle) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="isfilteroperator" title="$:/core/modules/filters/is/image.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is/image.js
type: application/javascript
module-type: isfilteroperator
Filter function for [is[image]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.image = function(source,prefix,options) {
var results = [];
if(prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(!options.wiki.isImageTiddler(title)) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(options.wiki.isImageTiddler(title)) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="isfilteroperator" title="$:/core/modules/filters/is/missing.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is/missing.js
type: application/javascript
module-type: isfilteroperator
Filter function for [is[missing]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.missing = function(source,prefix,options) {
var results = [];
if(prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(options.wiki.tiddlerExists(title)) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(!options.wiki.tiddlerExists(title)) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="isfilteroperator" title="$:/core/modules/filters/is/orphan.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is/orphan.js
type: application/javascript
module-type: isfilteroperator
Filter function for [is[orphan]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.orphan = function(source,prefix,options) {
var results = [],
orphanTitles = options.wiki.getOrphanTitles();
if(prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(orphanTitles.indexOf(title) === -1) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(orphanTitles.indexOf(title) !== -1) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="isfilteroperator" title="$:/core/modules/filters/is/shadow.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is/shadow.js
type: application/javascript
module-type: isfilteroperator
Filter function for [is[shadow]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.shadow = function(source,prefix,options) {
var results = [];
if(prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(!options.wiki.isShadowTiddler(title)) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(options.wiki.isShadowTiddler(title)) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="isfilteroperator" title="$:/core/modules/filters/is/system.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is/system.js
type: application/javascript
module-type: isfilteroperator
Filter function for [is[system]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.system = function(source,prefix,options) {
var results = [];
if(prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(!options.wiki.isSystemTiddler(title)) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(options.wiki.isSystemTiddler(title)) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="isfilteroperator" title="$:/core/modules/filters/is/tag.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is/tag.js
type: application/javascript
module-type: isfilteroperator
Filter function for [is[tag]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.tag = function(source,prefix,options) {
var results = [],
tagMap = options.wiki.getTagMap();
if(prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(!$tw.utils.hop(tagMap,title)) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if($tw.utils.hop(tagMap,title)) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="isfilteroperator" title="$:/core/modules/filters/is/tiddler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is/tiddler.js
type: application/javascript
module-type: isfilteroperator
Filter function for [is[tiddler]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.tiddler = function(source,prefix,options) {
var results = [];
if(prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(!options.wiki.tiddlerExists(title)) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(options.wiki.tiddlerExists(title)) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="isfilteroperator" title="$:/core/modules/filters/is/variable.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/is/variable.js
type: application/javascript
module-type: isfilteroperator
Filter function for [is[variable]]
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.variable = function(source,prefix,options) {
var results = [];
if(prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(!(title in options.widget.variables)) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(title in options.widget.variables) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/limit.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/limit.js
type: application/javascript
module-type: filteroperator
Filter operator for chopping the results to a specified maximum number of entries
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.limit = function(source,operator,options) {
var results = [];
// Convert to an array
source(function(tiddler,title) {
results.push(title);
});
// Slice the array if necessary
var limit = Math.min(results.length,parseInt(operator.operand,10));
if(operator.prefix === &quot;!&quot;) {
results = results.slice(-limit);
} else {
results = results.slice(0,limit);
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/links.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/links.js
type: application/javascript
module-type: filteroperator
Filter operator for returning all the links from a tiddler
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.links = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
$tw.utils.pushTop(results,options.wiki.getTiddlerLinks(title));
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/list.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/list.js
type: application/javascript
module-type: filteroperator
Filter operator returning the tiddlers whose title is listed in the operand tiddler
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.list = function(source,operator,options) {
var results = [],
tr = $tw.utils.parseTextReference(operator.operand),
currTiddlerTitle = options.widget &amp;&amp; options.widget.getVariable(&quot;currentTiddler&quot;),
list = options.wiki.getTiddlerList(tr.title || currTiddlerTitle,tr.field,tr.index);
if(operator.prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(list.indexOf(title) === -1) {
results.push(title);
}
});
} else {
results = list;
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/listed.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/listed.js
type: application/javascript
module-type: filteroperator
Filter operator returning all tiddlers that have the selected tiddlers in a list
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.listed = function(source,operator,options) {
var field = operator.operand || &quot;list&quot;,
results = [];
source(function(tiddler,title) {
$tw.utils.pushTop(results,options.wiki.findListingsOfTiddler(title,field));
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/listops.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/listops.js
type: application/javascript
module-type: filteroperator
Filter operators for manipulating the current selection list
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Order a list
*/
exports.order = function(source,operator,options) {
var results = [];
if(operator.operand.toLowerCase() === &quot;reverse&quot;) {
source(function(tiddler,title) {
results.unshift(title);
});
} else {
source(function(tiddler,title) {
results.push(title);
});
}
return results;
};
/*
Reverse list
*/
exports.reverse = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.unshift(title);
});
return results;
};
/*
First entry/entries in list
*/
exports.first = function(source,operator,options) {
var count = $tw.utils.getInt(operator.operand,1),
results = [];
source(function(tiddler,title) {
results.push(title);
});
return results.slice(0,count);
};
/*
Last entry/entries in list
*/
exports.last = function(source,operator,options) {
var count = $tw.utils.getInt(operator.operand,1),
results = [];
source(function(tiddler,title) {
results.push(title);
});
return results.slice(-count);
};
/*
All but the first entry/entries of the list
*/
exports.rest = function(source,operator,options) {
var count = $tw.utils.getInt(operator.operand,1),
results = [];
source(function(tiddler,title) {
results.push(title);
});
return results.slice(count);
};
exports.butfirst = exports.rest;
exports.bf = exports.rest;
/*
All but the last entry/entries of the list
*/
exports.butlast = function(source,operator,options) {
var count = $tw.utils.getInt(operator.operand,1),
results = [];
source(function(tiddler,title) {
results.push(title);
});
return results.slice(0,-count);
};
exports.bl = exports.butlast;
/*
The nth member of the list
*/
exports.nth = function(source,operator,options) {
var count = $tw.utils.getInt(operator.operand,1),
results = [];
source(function(tiddler,title) {
results.push(title);
});
return results.slice(count - 1,count);
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/lookup.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/lookup.js
type: application/javascript
module-type: filteroperator
Filter operator that looks up values via a title prefix
[lookup:&lt;field&gt;[&lt;prefix&gt;]]
Prepends the prefix to the selected items and returns the specified field value
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.lookup = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(options.wiki.getTiddlerText(operator.operand + title) || options.wiki.getTiddlerText(operator.operand + operator.suffix));
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/match.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/match.js
type: application/javascript
module-type: filteroperator
Filter operator for checking if a title matches a string
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.match = function(source,operator,options) {
var results = [],
suffixes = (operator.suffixes || [])[0] || [];
if(suffixes.indexOf(&quot;caseinsensitive&quot;) !== -1) {
if(operator.prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(title.toLowerCase() !== (operator.operand || &quot;&quot;).toLowerCase()) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(title.toLowerCase() === (operator.operand || &quot;&quot;).toLowerCase()) {
results.push(title);
}
});
}
} else {
if(operator.prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(title !== operator.operand) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(title === operator.operand) {
results.push(title);
}
});
}
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/math.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/math.js
type: application/javascript
module-type: filteroperator
Filter operators for math. Unary/binary operators work on each item in turn, and return a new item list.
Sum/product/maxall/minall operate on the entire list, returning a single item.
Note that strings are converted to numbers automatically. Trailing non-digits are ignored.
* &quot;&quot; converts to 0
* &quot;12kk&quot; converts to 12
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.negate = makeNumericBinaryOperator(
function(a) {return -a}
);
exports.abs = makeNumericBinaryOperator(
function(a) {return Math.abs(a)}
);
exports.ceil = makeNumericBinaryOperator(
function(a) {return Math.ceil(a)}
);
exports.floor = makeNumericBinaryOperator(
function(a) {return Math.floor(a)}
);
exports.round = makeNumericBinaryOperator(
function(a) {return Math.round(a)}
);
exports.trunc = makeNumericBinaryOperator(
function(a) {return Math.trunc(a)}
);
exports.untrunc = makeNumericBinaryOperator(
function(a) {return Math.ceil(Math.abs(a)) * Math.sign(a)}
);
exports.sign = makeNumericBinaryOperator(
function(a) {return Math.sign(a)}
);
exports.add = makeNumericBinaryOperator(
function(a,b) {return a + b;}
);
exports.subtract = makeNumericBinaryOperator(
function(a,b) {return a - b;}
);
exports.multiply = makeNumericBinaryOperator(
function(a,b) {return a * b;}
);
exports.divide = makeNumericBinaryOperator(
function(a,b) {return a / b;}
);
exports.remainder = makeNumericBinaryOperator(
function(a,b) {return a % b;}
);
exports.max = makeNumericBinaryOperator(
function(a,b) {return Math.max(a,b);}
);
exports.min = makeNumericBinaryOperator(
function(a,b) {return Math.min(a,b);}
);
exports.fixed = makeNumericBinaryOperator(
function(a,b) {return Number.prototype.toFixed.call(a,Math.min(Math.max(b,0),100));}
);
exports.precision = makeNumericBinaryOperator(
function(a,b) {return Number.prototype.toPrecision.call(a,Math.min(Math.max(b,1),100));}
);
exports.exponential = makeNumericBinaryOperator(
function(a,b) {return Number.prototype.toExponential.call(a,Math.min(Math.max(b,0),100));}
);
exports.sum = makeNumericReducingOperator(
function(accumulator,value) {return accumulator + value},
0 // Initial value
);
exports.product = makeNumericReducingOperator(
function(accumulator,value) {return accumulator * value},
1 // Initial value
);
exports.maxall = makeNumericReducingOperator(
function(accumulator,value) {return Math.max(accumulator,value)},
-Infinity // Initial value
);
exports.minall = makeNumericReducingOperator(
function(accumulator,value) {return Math.min(accumulator,value)},
Infinity // Initial value
);
function makeNumericBinaryOperator(fnCalc) {
return function(source,operator,options) {
var result = [],
numOperand = $tw.utils.parseNumber(operator.operand);
source(function(tiddler,title) {
result.push($tw.utils.stringifyNumber(fnCalc($tw.utils.parseNumber(title),numOperand)));
});
return result;
};
}
function makeNumericReducingOperator(fnCalc,initialValue) {
initialValue = initialValue || 0;
return function(source,operator,options) {
var result = [];
source(function(tiddler,title) {
result.push(title);
});
return [$tw.utils.stringifyNumber(result.reduce(function(accumulator,currentValue) {
return fnCalc(accumulator,$tw.utils.parseNumber(currentValue));
},initialValue))];
};
}
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/minlength.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/minlength.js
type: application/javascript
module-type: filteroperator
Filter operator for filtering out titles that don't meet the minimum length in the operand
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.minlength = function(source,operator,options) {
var results = [],
minLength = parseInt(operator.operand || &quot;&quot;,10) || 0;
source(function(tiddler,title) {
if(title.length &gt;= minLength) {
results.push(title);
}
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/modules.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/modules.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the titles of the modules of a given type in this wiki
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.modules = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
$tw.utils.each($tw.modules.types[title],function(moduleInfo,moduleName) {
results.push(moduleName);
});
});
results.sort();
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/moduletypes.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/moduletypes.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the names of the module types in this wiki
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.moduletypes = function(source,operator,options) {
var results = [];
$tw.utils.each($tw.modules.types,function(moduleInfo,type) {
results.push(type);
});
results.sort();
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/next.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/next.js
type: application/javascript
module-type: filteroperator
Filter operator returning the tiddler whose title occurs next in the list supplied in the operand tiddler
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.next = function(source,operator,options) {
var results = [],
list = options.wiki.getTiddlerList(operator.operand);
source(function(tiddler,title) {
var match = list.indexOf(title);
// increment match and then test if result is in range
match++;
if(match &gt; 0 &amp;&amp; match &lt; list.length) {
results.push(list[match]);
}
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/plugintiddlers.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/plugintiddlers.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the titles of the shadow tiddlers within a plugin
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.plugintiddlers = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
var pluginInfo = options.wiki.getPluginInfo(title) || options.wiki.getTiddlerDataCached(title,{tiddlers:[]});
if(pluginInfo &amp;&amp; pluginInfo.tiddlers) {
$tw.utils.each(pluginInfo.tiddlers,function(fields,title) {
results.push(title);
});
}
});
results.sort();
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/prefix.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/prefix.js
type: application/javascript
module-type: filteroperator
Filter operator for checking if a title starts with a prefix
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.prefix = function(source,operator,options) {
var results = [];
if(operator.prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(title.substr(0,operator.operand.length) !== operator.operand) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(title.substr(0,operator.operand.length) === operator.operand) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/previous.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/previous.js
type: application/javascript
module-type: filteroperator
Filter operator returning the tiddler whose title occurs immediately prior in the list supplied in the operand tiddler
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.previous = function(source,operator,options) {
var results = [],
list = options.wiki.getTiddlerList(operator.operand);
source(function(tiddler,title) {
var match = list.indexOf(title);
// increment match and then test if result is in range
match--;
if(match &gt;= 0) {
results.push(list[match]);
}
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/range.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/range.js
type: application/javascript
module-type: filteroperator
Filter operator for generating a numeric range.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.range = function(source,operator,options) {
var results = [];
// Split the operand into numbers delimited by these symbols
var parts = operator.operand.split(/[,:;]/g),
beg, end, inc, i, fixed = 0;
for (i=0; i&lt;parts.length; i++) {
// Validate real number
if(!/^\s*[+-]?((\d+(\.\d*)?)|(\.\d+))\s*$/.test(parts[i])) {
return [&quot;range: bad number \&quot;&quot; + parts[i] + &quot;\&quot;&quot;];
}
// Count digits; the most precise number determines decimal places in output.
var frac = /\.\d+/.exec(parts[i]);
if(frac) {
fixed = Math.max(fixed,frac[0].length-1);
}
parts[i] = parseFloat(parts[i]);
}
switch(parts.length) {
case 1:
end = parts[0];
if (end &gt;= 1) {
beg = 1;
}
else if (end &lt;= -1) {
beg = -1;
}
else {
return [];
}
inc = 1;
break;
case 2:
beg = parts[0];
end = parts[1];
inc = 1;
break;
case 3:
beg = parts[0];
end = parts[1];
inc = Math.abs(parts[2]);
break;
}
if(inc === 0) {
return [&quot;range: increment 0 causes infinite loop&quot;];
}
// May need to count backwards
var direction = ((end &lt; beg) ? -1 : 1);
inc *= direction;
// Estimate number of resulting elements
if((end - beg) / inc &gt; 10000) {
return [&quot;range: too many steps (over 10K)&quot;];
}
// Avoid rounding error on last step
end += direction * 0.5 * Math.pow(0.1,fixed);
var safety = 10010;
// Enumerate the range
if (end&lt;beg) {
for(i=beg; i&gt;end; i+=inc) {
results.push(i.toFixed(fixed));
if(--safety&lt;0) {
break;
}
}
} else {
for(i=beg; i&lt;end; i+=inc) {
results.push(i.toFixed(fixed));
if(--safety&lt;0) {
break;
}
}
}
if(safety&lt;0) {
return [&quot;range: unexpectedly large output&quot;];
}
// Reverse?
if(operator.prefix === &quot;!&quot;) {
results.reverse();
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/regexp.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/regexp.js
type: application/javascript
module-type: filteroperator
Filter operator for regexp matching
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.regexp = function(source,operator,options) {
var results = [],
fieldname = (operator.suffix || &quot;title&quot;).toLowerCase(),
regexpString, regexp, flags = &quot;&quot;, match,
getFieldString = function(tiddler,title) {
if(tiddler) {
return tiddler.getFieldString(fieldname);
} else if(fieldname === &quot;title&quot;) {
return title;
} else {
return null;
}
};
// Process flags and construct regexp
regexpString = operator.operand;
match = /^\(\?([gim]+)\)/.exec(regexpString);
if(match) {
flags = match[1];
regexpString = regexpString.substr(match[0].length);
} else {
match = /\(\?([gim]+)\)$/.exec(regexpString);
if(match) {
flags = match[1];
regexpString = regexpString.substr(0,regexpString.length - match[0].length);
}
}
try {
regexp = new RegExp(regexpString,flags);
} catch(e) {
return [&quot;&quot; + e];
}
// Process the incoming tiddlers
if(operator.prefix === &quot;!&quot;) {
source(function(tiddler,title) {
var text = getFieldString(tiddler,title);
if(text !== null) {
if(!regexp.exec(text)) {
results.push(title);
}
}
});
} else {
source(function(tiddler,title) {
var text = getFieldString(tiddler,title);
if(text !== null) {
if(!!regexp.exec(text)) {
results.push(title);
}
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/removeprefix.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/removeprefix.js
type: application/javascript
module-type: filteroperator
Filter operator for removing a prefix from each title in the list. Titles that do not start with the prefix are removed.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.removeprefix = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
if(title.substr(0,operator.operand.length) === operator.operand) {
results.push(title.substr(operator.operand.length));
}
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/removesuffix.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/removesuffix.js
type: application/javascript
module-type: filteroperator
Filter operator for removing a suffix from each title in the list. Titles that do not end with the suffix are removed.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.removesuffix = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
if(title &amp;&amp; title.substr(-operator.operand.length) === operator.operand) {
results.push(title.substr(0,title.length - operator.operand.length));
}
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/sameday.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/sameday.js
type: application/javascript
module-type: filteroperator
Filter operator that selects tiddlers with a modified date field on the same day as the provided value.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.sameday = function(source,operator,options) {
var results = [],
fieldName = operator.suffix || &quot;modified&quot;,
targetDate = (new Date($tw.utils.parseDate(operator.operand))).setHours(0,0,0,0);
// Function to convert a date/time to a date integer
source(function(tiddler,title) {
if(tiddler) {
if(tiddler.getFieldDay(fieldName) === targetDate) {
results.push(title);
}
}
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/search.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/search.js
type: application/javascript
module-type: filteroperator
Filter operator for searching for the text in the operand tiddler
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.search = function(source,operator,options) {
var invert = operator.prefix === &quot;!&quot;;
if(operator.suffixes) {
var hasFlag = function(flag) {
return (operator.suffixes[1] || []).indexOf(flag) !== -1;
},
excludeFields = false,
fieldList = operator.suffixes[0] || [],
firstField = fieldList[0] || &quot;&quot;,
firstChar = firstField.charAt(0),
fields;
if(firstChar === &quot;-&quot;) {
fields = [firstField.slice(1)].concat(fieldList.slice(1));
excludeFields = true;
} else if(fieldList[0] === &quot;*&quot;){
fields = [];
excludeFields = true;
} else {
fields = fieldList.slice(0);
}
return options.wiki.search(operator.operand,{
source: source,
invert: invert,
field: fields,
excludeField: excludeFields,
caseSensitive: hasFlag(&quot;casesensitive&quot;),
literal: hasFlag(&quot;literal&quot;),
whitespace: hasFlag(&quot;whitespace&quot;),
anchored: hasFlag(&quot;anchored&quot;),
regexp: hasFlag(&quot;regexp&quot;),
words: hasFlag(&quot;words&quot;)
});
} else {
return options.wiki.search(operator.operand,{
source: source,
invert: invert
});
}
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/shadowsource.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/shadowsource.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the source plugins for shadow tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.shadowsource = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
var source = options.wiki.getShadowSource(title);
if(source) {
$tw.utils.pushTop(results,source);
}
});
results.sort();
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/sort.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/sort.js
type: application/javascript
module-type: filteroperator
Filter operator for sorting
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.sort = function(source,operator,options) {
var results = prepare_results(source);
options.wiki.sortTiddlers(results,operator.operand || &quot;title&quot;,operator.prefix === &quot;!&quot;,false,false);
return results;
};
exports.nsort = function(source,operator,options) {
var results = prepare_results(source);
options.wiki.sortTiddlers(results,operator.operand || &quot;title&quot;,operator.prefix === &quot;!&quot;,false,true);
return results;
};
exports.sortan = function(source, operator, options) {
var results = prepare_results(source);
options.wiki.sortTiddlers(results, operator.operand || &quot;title&quot;, operator.prefix === &quot;!&quot;,false,false,true);
return results;
};
exports.sortcs = function(source,operator,options) {
var results = prepare_results(source);
options.wiki.sortTiddlers(results,operator.operand || &quot;title&quot;,operator.prefix === &quot;!&quot;,true,false);
return results;
};
exports.nsortcs = function(source,operator,options) {
var results = prepare_results(source);
options.wiki.sortTiddlers(results,operator.operand || &quot;title&quot;,operator.prefix === &quot;!&quot;,true,true);
return results;
};
var prepare_results = function (source) {
var results = [];
source(function(tiddler,title) {
results.push(title);
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/splitbefore.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/splitbefore.js
type: application/javascript
module-type: filteroperator
Filter operator that splits each result on the first occurance of the specified separator and returns the unique values.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.splitbefore = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
var parts = title.split(operator.operand);
if(parts.length === 1) {
$tw.utils.pushTop(results,parts[0]);
} else {
$tw.utils.pushTop(results,parts[0] + operator.operand);
}
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/storyviews.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/storyviews.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the names of the story views in this wiki
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.storyviews = function(source,operator,options) {
var results = [],
storyviews = {};
$tw.modules.applyMethods(&quot;storyview&quot;,storyviews);
$tw.utils.each(storyviews,function(info,name) {
results.push(name);
});
results.sort();
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/strings.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/strings.js
type: application/javascript
module-type: filteroperator
Filter operators for strings. Unary/binary operators work on each item in turn, and return a new item list.
Sum/product/maxall/minall operate on the entire list, returning a single item.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.length = makeStringBinaryOperator(
function(a) {return [&quot;&quot; + (&quot;&quot; + a).length];}
);
exports.uppercase = makeStringBinaryOperator(
function(a) {return [(&quot;&quot; + a).toUpperCase()];}
);
exports.lowercase = makeStringBinaryOperator(
function(a) {return [(&quot;&quot; + a).toLowerCase()];}
);
exports.sentencecase = makeStringBinaryOperator(
function(a) {return [$tw.utils.toSentenceCase(a)];}
);
exports.titlecase = makeStringBinaryOperator(
function(a) {return [$tw.utils.toTitleCase(a)];}
);
exports.trim = makeStringBinaryOperator(
function(a) {return [$tw.utils.trim(a)];}
);
exports.split = makeStringBinaryOperator(
function(a,b) {return (&quot;&quot; + a).split(b);}
);
exports.join = makeStringReducingOperator(
function(accumulator,value,operand) {
if(accumulator === null) {
return value;
} else {
return accumulator + operand + value;
}
},null
);
function makeStringBinaryOperator(fnCalc) {
return function(source,operator,options) {
var result = [];
source(function(tiddler,title) {
Array.prototype.push.apply(result,fnCalc(title,operator.operand || &quot;&quot;));
});
return result;
};
}
function makeStringReducingOperator(fnCalc,initialValue) {
return function(source,operator,options) {
var result = [];
source(function(tiddler,title) {
result.push(title);
});
return [result.reduce(function(accumulator,currentValue) {
return fnCalc(accumulator,currentValue,operator.operand || &quot;&quot;);
},initialValue) || &quot;&quot;];
};
}
exports.splitregexp = function(source,operator,options) {
var result = [],
suffix = operator.suffix || &quot;&quot;,
flags = (suffix.indexOf(&quot;m&quot;) !== -1 ? &quot;m&quot; : &quot;&quot;) + (suffix.indexOf(&quot;i&quot;) !== -1 ? &quot;i&quot; : &quot;&quot;),
regExp;
try {
regExp = new RegExp(operator.operand || &quot;&quot;,flags);
} catch(ex) {
return [&quot;RegExp error: &quot; + ex];
}
source(function(tiddler,title) {
Array.prototype.push.apply(result,title.split(regExp));
});
return result;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/subfilter.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/subfilter.js
type: application/javascript
module-type: filteroperator
Filter operator returning its operand evaluated as a filter
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.subfilter = function(source,operator,options) {
var list = options.wiki.filterTiddlers(operator.operand,options.widget,source);
if(operator.prefix === &quot;!&quot;) {
var results = [];
source(function(tiddler,title) {
if(list.indexOf(title) === -1) {
results.push(title);
}
});
return results;
} else {
return list;
}
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/subtiddlerfields.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/subtiddlerfields.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the names of the fields on the selected subtiddlers of the plugin named in the operand
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.subtiddlerfields = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
var subtiddler = options.wiki.getSubTiddler(operator.operand,title);
if(subtiddler) {
for(var fieldName in subtiddler.fields) {
$tw.utils.pushTop(results,fieldName);
}
}
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/suffix.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/suffix.js
type: application/javascript
module-type: filteroperator
Filter operator for checking if a title ends with a suffix
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.suffix = function(source,operator,options) {
var results = [];
if(operator.prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(title.substr(-operator.operand.length) !== operator.operand) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(title.substr(-operator.operand.length) === operator.operand) {
results.push(title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/tag.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/tag.js
type: application/javascript
module-type: filteroperator
Filter operator for checking for the presence of a tag
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.tag = function(source,operator,options) {
var results = [],indexedResults;
if((operator.suffix || &quot;&quot;).toLowerCase() === &quot;strict&quot; &amp;&amp; !operator.operand) {
// New semantics:
// Always return copy of input if operator.operand is missing
source(function(tiddler,title) {
results.push(title);
});
} else {
// Old semantics:
var tiddlers;
if(operator.prefix === &quot;!&quot;) {
// Returns a copy of the input if operator.operand is missing
tiddlers = options.wiki.getTiddlersWithTag(operator.operand);
source(function(tiddler,title) {
if(tiddlers.indexOf(title) === -1) {
results.push(title);
}
});
} else {
// Returns empty results if operator.operand is missing
if(source.byTag) {
indexedResults = source.byTag(operator.operand);
if(indexedResults) {
return indexedResults;
}
} else {
tiddlers = options.wiki.getTiddlersWithTag(operator.operand);
source(function(tiddler,title) {
if(tiddlers.indexOf(title) !== -1) {
results.push(title);
}
});
results = options.wiki.sortByList(results,operator.operand);
}
}
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/tagging.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/tagging.js
type: application/javascript
module-type: filteroperator
Filter operator returning all tiddlers that are tagged with the selected tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.tagging = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
$tw.utils.pushTop(results,options.wiki.getTiddlersWithTag(title));
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/tags.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/tags.js
type: application/javascript
module-type: filteroperator
Filter operator returning all the tags of the selected tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.tags = function(source,operator,options) {
var tags = {};
source(function(tiddler,title) {
var t, length;
if(tiddler &amp;&amp; tiddler.fields.tags) {
for(t=0, length=tiddler.fields.tags.length; t&lt;length; t++) {
tags[tiddler.fields.tags[t]] = true;
}
}
});
return Object.keys(tags);
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/then.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/then.js
type: application/javascript
module-type: filteroperator
Filter operator for replacing any titles with a constant
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.then = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(operator.operand);
});
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/title.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/title.js
type: application/javascript
module-type: filteroperator
Filter operator for comparing title fields for equality
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.title = function(source,operator,options) {
var results = [];
if(operator.prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(tiddler &amp;&amp; tiddler.fields.title !== operator.operand) {
results.push(title);
}
});
} else {
results.push(operator.operand);
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/untagged.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/untagged.js
type: application/javascript
module-type: filteroperator
Filter operator returning all the selected tiddlers that are untagged
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.untagged = function(source,operator,options) {
var results = [];
if(operator.prefix === &quot;!&quot;) {
source(function(tiddler,title) {
if(tiddler &amp;&amp; $tw.utils.isArray(tiddler.fields.tags) &amp;&amp; tiddler.fields.tags.length &gt; 0) {
$tw.utils.pushTop(results,title);
}
});
} else {
source(function(tiddler,title) {
if(!tiddler || !tiddler.hasField(&quot;tags&quot;) || ($tw.utils.isArray(tiddler.fields.tags) &amp;&amp; tiddler.fields.tags.length === 0)) {
$tw.utils.pushTop(results,title);
}
});
}
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/variables.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/variables.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the names of the active variables
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.variables = function(source,operator,options) {
var names = [];
for(var variable in options.widget.variables) {
names.push(variable);
}
return names.sort();
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/wikiparserrules.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/wikiparserrules.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the names of the wiki parser rules in this wiki
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Export our filter function
*/
exports.wikiparserrules = function(source,operator,options) {
var results = [],
operand = operator.operand;
$tw.utils.each($tw.modules.types.wikirule,function(mod) {
var exp = mod.exports;
if(!operand || exp.types[operand]) {
results.push(exp.name);
}
});
results.sort();
return results;
};
})();
</pre>
</div>
<div module-type="filteroperator" title="$:/core/modules/filters/x-listops.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/filters/x-listops.js
type: application/javascript
module-type: filteroperator
Extended filter operators to manipulate the current list.
\*/
(function () {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Fetch titles from the current list
*/
var prepare_results = function (source) {
var results = [];
source(function (tiddler, title) {
results.push(title);
});
return results;
};
/*
Moves a number of items from the tail of the current list before the item named in the operand
*/
exports.putbefore = function (source, operator) {
var results = prepare_results(source),
index = results.indexOf(operator.operand),
count = $tw.utils.getInt(operator.suffix,1);
return (index === -1) ?
results.slice(0, -1) :
results.slice(0, index).concat(results.slice(-count)).concat(results.slice(index, -count));
};
/*
Moves a number of items from the tail of the current list after the item named in the operand
*/
exports.putafter = function (source, operator) {
var results = prepare_results(source),
index = results.indexOf(operator.operand),
count = $tw.utils.getInt(operator.suffix,1);
return (index === -1) ?
results.slice(0, -1) :
results.slice(0, index + 1).concat(results.slice(-count)).concat(results.slice(index + 1, -count));
};
/*
Replaces the item named in the operand with a number of items from the tail of the current list
*/
exports.replace = function (source, operator) {
var results = prepare_results(source),
index = results.indexOf(operator.operand),
count = $tw.utils.getInt(operator.suffix,1);
return (index === -1) ?
results.slice(0, -count) :
results.slice(0, index).concat(results.slice(-count)).concat(results.slice(index + 1, -count));
};
/*
Moves a number of items from the tail of the current list to the head of the list
*/
exports.putfirst = function (source, operator) {
var results = prepare_results(source),
count = $tw.utils.getInt(operator.suffix,1);
return results.slice(-count).concat(results.slice(0, -count));
};
/*
Moves a number of items from the head of the current list to the tail of the list
*/
exports.putlast = function (source, operator) {
var results = prepare_results(source),
count = $tw.utils.getInt(operator.suffix,1);
return results.slice(count).concat(results.slice(0, count));
};
/*
Moves the item named in the operand a number of places forward or backward in the list
*/
exports.move = function (source, operator) {
var results = prepare_results(source),
index = results.indexOf(operator.operand),
count = $tw.utils.getInt(operator.suffix,1),
marker = results.splice(index, 1),
offset = (index + count) &gt; 0 ? index + count : 0;
return results.slice(0, offset).concat(marker).concat(results.slice(offset));
};
/*
Returns the items from the current list that are after the item named in the operand
*/
exports.allafter = function (source, operator) {
var results = prepare_results(source),
index = results.indexOf(operator.operand);
return (index === -1) ? [] :
(operator.suffix) ? results.slice(index) :
results.slice(index + 1);
};
/*
Returns the items from the current list that are before the item named in the operand
*/
exports.allbefore = function (source, operator) {
var results = prepare_results(source),
index = results.indexOf(operator.operand);
return (index === -1) ? [] :
(operator.suffix) ? results.slice(0, index + 1) :
results.slice(0, index);
};
/*
Appends the items listed in the operand array to the tail of the current list
*/
exports.append = function (source, operator) {
var append = $tw.utils.parseStringArray(operator.operand, &quot;true&quot;),
results = prepare_results(source),
count = parseInt(operator.suffix) || append.length;
return (append.length === 0) ? results :
(operator.prefix) ? results.concat(append.slice(-count)) :
results.concat(append.slice(0, count));
};
/*
Prepends the items listed in the operand array to the head of the current list
*/
exports.prepend = function (source, operator) {
var prepend = $tw.utils.parseStringArray(operator.operand, &quot;true&quot;),
results = prepare_results(source),
count = $tw.utils.getInt(operator.suffix,prepend.length);
return (prepend.length === 0) ? results :
(operator.prefix) ? prepend.slice(-count).concat(results) :
prepend.slice(0, count).concat(results);
};
/*
Returns all items from the current list except the items listed in the operand array
*/
exports.remove = function (source, operator) {
var array = $tw.utils.parseStringArray(operator.operand, &quot;true&quot;),
results = prepare_results(source),
count = parseInt(operator.suffix) || array.length,
p,
len,
index;
len = array.length - 1;
for (p = 0; p &lt; count; ++p) {
if (operator.prefix) {
index = results.indexOf(array[len - p]);
} else {
index = results.indexOf(array[p]);
}
if (index !== -1) {
results.splice(index, 1);
}
}
return results;
};
/*
Returns all items from the current list sorted in the order of the items in the operand array
*/
exports.sortby = function (source, operator) {
var results = prepare_results(source);
if (!results || results.length &lt; 2) {
return results;
}
var lookup = $tw.utils.parseStringArray(operator.operand, &quot;true&quot;);
results.sort(function (a, b) {
return lookup.indexOf(a) - lookup.indexOf(b);
});
return results;
};
/*
Removes all duplicate items from the current list
*/
exports.unique = function (source, operator) {
var results = prepare_results(source);
var set = results.reduce(function (a, b) {
if (a.indexOf(b) &lt; 0) {
a.push(b);
}
return a;
}, []);
return set;
};
})();
</pre>
</div>
<div module-type="indexer" title="$:/core/modules/indexers/backlinks-indexer.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/indexers/backlinks-indexer.js
type: application/javascript
module-type: indexer
Indexes the tiddlers' backlinks
\*/
(function(){
/*jslint node: true, browser: true */
/*global modules: false */
&quot;use strict&quot;;
function BacklinksIndexer(wiki) {
this.wiki = wiki;
}
BacklinksIndexer.prototype.init = function() {
this.index = null;
}
BacklinksIndexer.prototype.rebuild = function() {
this.index = null;
}
BacklinksIndexer.prototype._getLinks = function(tiddler) {
var parser = this.wiki.parseText(tiddler.fields.type, tiddler.fields.text, {});
if(parser) {
return this.wiki.extractLinks(parser.tree);
}
return [];
}
BacklinksIndexer.prototype.update = function(updateDescriptor) {
if(!this.index) {
return;
}
var newLinks = [],
oldLinks = [],
self = this;
if(updateDescriptor.old.exists) {
oldLinks = this._getLinks(updateDescriptor.old.tiddler);
}
if(updateDescriptor.new.exists) {
newLinks = this._getLinks(updateDescriptor.new.tiddler);
}
$tw.utils.each(oldLinks,function(link) {
if(self.index[link]) {
delete self.index[link][updateDescriptor.old.tiddler.fields.title];
}
});
$tw.utils.each(newLinks,function(link) {
if(!self.index[link]) {
self.index[link] = Object.create(null);
}
self.index[link][updateDescriptor.new.tiddler.fields.title] = true;
});
}
BacklinksIndexer.prototype.lookup = function(title) {
if(!this.index) {
this.index = Object.create(null);
var self = this;
this.wiki.forEachTiddler(function(title,tiddler) {
var links = self._getLinks(tiddler);
$tw.utils.each(links, function(link) {
if(!self.index[link]) {
self.index[link] = Object.create(null);
}
self.index[link][title] = true;
});
});
}
if(this.index[title]) {
return Object.keys(this.index[title]);
} else {
return [];
}
}
exports.BacklinksIndexer = BacklinksIndexer;
})();
</pre>
</div>
<div module-type="indexer" title="$:/core/modules/indexers/field-indexer.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/indexers/field-indexer.js
type: application/javascript
module-type: indexer
Indexes the tiddlers with each field value
\*/
(function(){
/*jslint node: true, browser: true */
/*global modules: false */
&quot;use strict&quot;;
var DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH = 128;
function FieldIndexer(wiki) {
this.wiki = wiki;
}
FieldIndexer.prototype.init = function() {
this.index = null;
this.maxIndexedValueLength = DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH;
this.addIndexMethods();
}
// Provided for testing
FieldIndexer.prototype.setMaxIndexedValueLength = function(length) {
this.index = null;
this.maxIndexedValueLength = length;
};
FieldIndexer.prototype.addIndexMethods = function() {
var self = this;
this.wiki.each.byField = function(name,value) {
var titles = self.wiki.allTitles(),
lookup = self.lookup(name,value);
return lookup &amp;&amp; lookup.filter(function(title) {
return titles.indexOf(title) !== -1;
});
};
this.wiki.eachShadow.byField = function(name,value) {
var titles = self.wiki.allShadowTitles(),
lookup = self.lookup(name,value);
return lookup &amp;&amp; lookup.filter(function(title) {
return titles.indexOf(title) !== -1;
});
};
this.wiki.eachTiddlerPlusShadows.byField = function(name,value) {
var lookup = self.lookup(name,value);
return lookup ? lookup.slice(0) : null;
};
this.wiki.eachShadowPlusTiddlers.byField = function(name,value) {
var lookup = self.lookup(name,value);
return lookup ? lookup.slice(0) : null;
};
};
/*
Tear down and then rebuild the index as if all tiddlers have changed
*/
FieldIndexer.prototype.rebuild = function() {
// Invalidate the index so that it will be rebuilt when it is next used
this.index = null;
};
/*
Build the index for a particular field
*/
FieldIndexer.prototype.buildIndexForField = function(name) {
var self = this;
// Hashmap by field name of hashmap by field value of array of tiddler titles
this.index = this.index || Object.create(null);
this.index[name] = Object.create(null);
var baseIndex = this.index[name];
// Update the index for each tiddler
this.wiki.eachTiddlerPlusShadows(function(tiddler,title) {
if(name in tiddler.fields) {
var value = tiddler.getFieldString(name);
// Skip any values above the maximum length
if(value.length &lt; self.maxIndexedValueLength) {
baseIndex[value] = baseIndex[value] || [];
baseIndex[value].push(title);
}
}
});
};
/*
Update the index in the light of a tiddler value changing; note that the title must be identical. (Renames are handled as a separate delete and create)
updateDescriptor: {old: {tiddler: &lt;tiddler&gt;, shadow: &lt;boolean&gt;, exists: &lt;boolean&gt;},new: {tiddler: &lt;tiddler&gt;, shadow: &lt;boolean&gt;, exists: &lt;boolean&gt;}}
*/
FieldIndexer.prototype.update = function(updateDescriptor) {
var self = this;
// Don't do anything if the index hasn't been built yet
if(this.index === null) {
return;
}
// Remove the old tiddler from the index
if(updateDescriptor.old.tiddler) {
$tw.utils.each(this.index,function(indexEntry,name) {
if(name in updateDescriptor.old.tiddler.fields) {
var value = updateDescriptor.old.tiddler.getFieldString(name),
tiddlerList = indexEntry[value];
if(tiddlerList) {
var index = tiddlerList.indexOf(updateDescriptor.old.tiddler.fields.title);
if(index !== -1) {
tiddlerList.splice(index,1);
}
}
}
});
}
// Add the new tiddler to the index
if(updateDescriptor[&quot;new&quot;].tiddler) {
$tw.utils.each(this.index,function(indexEntry,name) {
if(name in updateDescriptor[&quot;new&quot;].tiddler.fields) {
var value = updateDescriptor[&quot;new&quot;].tiddler.getFieldString(name);
if(value.length &lt; self.maxIndexedValueLength) {
indexEntry[value] = indexEntry[value] || [];
indexEntry[value].push(updateDescriptor[&quot;new&quot;].tiddler.fields.title);
}
}
});
}
};
// Lookup the given field returning a list of tiddler titles
FieldIndexer.prototype.lookup = function(name,value) {
// Fail the lookup if the value is too long
if(value.length &gt;= this.maxIndexedValueLength) {
return null;
}
// Update the index if it has yet to be built
if(this.index === null || !this.index[name]) {
this.buildIndexForField(name);
}
return this.index[name][value] || [];
};
exports.FieldIndexer = FieldIndexer;
})();
</pre>
</div>
<div module-type="indexer" title="$:/core/modules/indexers/tag-indexer.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/indexers/tag-indexer.js
type: application/javascript
module-type: indexer
Indexes the tiddlers with each tag
\*/
(function(){
/*jslint node: true, browser: true */
/*global modules: false */
&quot;use strict&quot;;
function TagIndexer(wiki) {
this.wiki = wiki;
}
TagIndexer.prototype.init = function() {
this.subIndexers = [
new TagSubIndexer(this,&quot;each&quot;),
new TagSubIndexer(this,&quot;eachShadow&quot;),
new TagSubIndexer(this,&quot;eachTiddlerPlusShadows&quot;),
new TagSubIndexer(this,&quot;eachShadowPlusTiddlers&quot;)
];
$tw.utils.each(this.subIndexers,function(subIndexer) {
subIndexer.addIndexMethod();
});
};
TagIndexer.prototype.rebuild = function() {
$tw.utils.each(this.subIndexers,function(subIndexer) {
subIndexer.rebuild();
});
};
TagIndexer.prototype.update = function(updateDescriptor) {
$tw.utils.each(this.subIndexers,function(subIndexer) {
subIndexer.update(updateDescriptor);
});
};
function TagSubIndexer(indexer,iteratorMethod) {
this.indexer = indexer;
this.iteratorMethod = iteratorMethod;
this.index = null; // Hashmap of tag title to {isSorted: bool, titles: [array]} or null if not yet initialised
}
TagSubIndexer.prototype.addIndexMethod = function() {
var self = this;
this.indexer.wiki[this.iteratorMethod].byTag = function(tag) {
return self.lookup(tag).slice(0);
};
};
TagSubIndexer.prototype.rebuild = function() {
var self = this;
// Hashmap by tag of array of {isSorted:, titles:[]}
this.index = Object.create(null);
// Add all the tags
this.indexer.wiki[this.iteratorMethod](function(tiddler,title) {
$tw.utils.each(tiddler.fields.tags,function(tag) {
if(!self.index[tag]) {
self.index[tag] = {isSorted: false, titles: [title]};
} else {
self.index[tag].titles.push(title);
}
});
});
};
TagSubIndexer.prototype.update = function(updateDescriptor) {
this.index = null;
};
TagSubIndexer.prototype.lookup = function(tag) {
// Update the index if it has yet to be built
if(this.index === null) {
this.rebuild();
}
var indexRecord = this.index[tag];
if(indexRecord) {
if(!indexRecord.isSorted) {
if(this.indexer.wiki.sortByList) {
indexRecord.titles = this.indexer.wiki.sortByList(indexRecord.titles,tag);
}
indexRecord.isSorted = true;
}
return indexRecord.titles;
} else {
return [];
}
};
exports.TagIndexer = TagIndexer;
})();
</pre>
</div>
<div module-type="info" title="$:/core/modules/info/platform.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/info/platform.js
type: application/javascript
module-type: info
Initialise basic platform $:/info/ tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.getInfoTiddlerFields = function() {
var mapBoolean = function(value) {return value ? &quot;yes&quot; : &quot;no&quot;;},
infoTiddlerFields = [];
// Basics
infoTiddlerFields.push({title: &quot;$:/info/browser&quot;, text: mapBoolean(!!$tw.browser)});
infoTiddlerFields.push({title: &quot;$:/info/node&quot;, text: mapBoolean(!!$tw.node)});
if($tw.browser) {
// Document location
var setLocationProperty = function(name,value) {
infoTiddlerFields.push({title: &quot;$:/info/url/&quot; + name, text: value});
},
location = document.location;
setLocationProperty(&quot;full&quot;, (location.toString()).split(&quot;#&quot;)[0]);
setLocationProperty(&quot;host&quot;, location.host);
setLocationProperty(&quot;hostname&quot;, location.hostname);
setLocationProperty(&quot;protocol&quot;, location.protocol);
setLocationProperty(&quot;port&quot;, location.port);
setLocationProperty(&quot;pathname&quot;, location.pathname);
setLocationProperty(&quot;search&quot;, location.search);
setLocationProperty(&quot;origin&quot;, location.origin);
// Screen size
infoTiddlerFields.push({title: &quot;$:/info/browser/screen/width&quot;, text: window.screen.width.toString()});
infoTiddlerFields.push({title: &quot;$:/info/browser/screen/height&quot;, text: window.screen.height.toString()});
// Language
infoTiddlerFields.push({title: &quot;$:/info/browser/language&quot;, text: navigator.language || &quot;&quot;});
}
return infoTiddlerFields;
};
})();
</pre>
</div>
<div module-type="global" title="$:/core/modules/keyboard.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/keyboard.js
type: application/javascript
module-type: global
Keyboard handling utilities
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var namedKeys = {
&quot;cancel&quot;: 3,
&quot;help&quot;: 6,
&quot;backspace&quot;: 8,
&quot;tab&quot;: 9,
&quot;clear&quot;: 12,
&quot;return&quot;: 13,
&quot;enter&quot;: 13,
&quot;pause&quot;: 19,
&quot;escape&quot;: 27,
&quot;space&quot;: 32,
&quot;page_up&quot;: 33,
&quot;page_down&quot;: 34,
&quot;end&quot;: 35,
&quot;home&quot;: 36,
&quot;left&quot;: 37,
&quot;up&quot;: 38,
&quot;right&quot;: 39,
&quot;down&quot;: 40,
&quot;printscreen&quot;: 44,
&quot;insert&quot;: 45,
&quot;delete&quot;: 46,
&quot;0&quot;: 48,
&quot;1&quot;: 49,
&quot;2&quot;: 50,
&quot;3&quot;: 51,
&quot;4&quot;: 52,
&quot;5&quot;: 53,
&quot;6&quot;: 54,
&quot;7&quot;: 55,
&quot;8&quot;: 56,
&quot;9&quot;: 57,
&quot;firefoxsemicolon&quot;: 59,
&quot;firefoxequals&quot;: 61,
&quot;a&quot;: 65,
&quot;b&quot;: 66,
&quot;c&quot;: 67,
&quot;d&quot;: 68,
&quot;e&quot;: 69,
&quot;f&quot;: 70,
&quot;g&quot;: 71,
&quot;h&quot;: 72,
&quot;i&quot;: 73,
&quot;j&quot;: 74,
&quot;k&quot;: 75,
&quot;l&quot;: 76,
&quot;m&quot;: 77,
&quot;n&quot;: 78,
&quot;o&quot;: 79,
&quot;p&quot;: 80,
&quot;q&quot;: 81,
&quot;r&quot;: 82,
&quot;s&quot;: 83,
&quot;t&quot;: 84,
&quot;u&quot;: 85,
&quot;v&quot;: 86,
&quot;w&quot;: 87,
&quot;x&quot;: 88,
&quot;y&quot;: 89,
&quot;z&quot;: 90,
&quot;numpad0&quot;: 96,
&quot;numpad1&quot;: 97,
&quot;numpad2&quot;: 98,
&quot;numpad3&quot;: 99,
&quot;numpad4&quot;: 100,
&quot;numpad5&quot;: 101,
&quot;numpad6&quot;: 102,
&quot;numpad7&quot;: 103,
&quot;numpad8&quot;: 104,
&quot;numpad9&quot;: 105,
&quot;multiply&quot;: 106,
&quot;add&quot;: 107,
&quot;separator&quot;: 108,
&quot;subtract&quot;: 109,
&quot;decimal&quot;: 110,
&quot;divide&quot;: 111,
&quot;f1&quot;: 112,
&quot;f2&quot;: 113,
&quot;f3&quot;: 114,
&quot;f4&quot;: 115,
&quot;f5&quot;: 116,
&quot;f6&quot;: 117,
&quot;f7&quot;: 118,
&quot;f8&quot;: 119,
&quot;f9&quot;: 120,
&quot;f10&quot;: 121,
&quot;f11&quot;: 122,
&quot;f12&quot;: 123,
&quot;f13&quot;: 124,
&quot;f14&quot;: 125,
&quot;f15&quot;: 126,
&quot;f16&quot;: 127,
&quot;f17&quot;: 128,
&quot;f18&quot;: 129,
&quot;f19&quot;: 130,
&quot;f20&quot;: 131,
&quot;f21&quot;: 132,
&quot;f22&quot;: 133,
&quot;f23&quot;: 134,
&quot;f24&quot;: 135,
&quot;firefoxminus&quot;: 173,
&quot;semicolon&quot;: 186,
&quot;equals&quot;: 187,
&quot;comma&quot;: 188,
&quot;dash&quot;: 189,
&quot;period&quot;: 190,
&quot;slash&quot;: 191,
&quot;backquote&quot;: 192,
&quot;openbracket&quot;: 219,
&quot;backslash&quot;: 220,
&quot;closebracket&quot;: 221,
&quot;quote&quot;: 222
};
function KeyboardManager(options) {
var self = this;
options = options || &quot;&quot;;
// Save the named key hashmap
this.namedKeys = namedKeys;
// Create a reverse mapping of code to keyname
this.keyNames = [];
$tw.utils.each(namedKeys,function(keyCode,name) {
self.keyNames[keyCode] = name.substr(0,1).toUpperCase() + name.substr(1);
});
// Save the platform-specific name of the &quot;meta&quot; key
this.metaKeyName = $tw.platform.isMac ? &quot;cmd-&quot; : &quot;win-&quot;;
this.shortcutKeysList = [], // Stores the shortcut-key descriptors
this.shortcutActionList = [], // Stores the corresponding action strings
this.shortcutParsedList = []; // Stores the parsed key descriptors
this.lookupNames = [&quot;shortcuts&quot;];
this.lookupNames.push($tw.platform.isMac ? &quot;shortcuts-mac&quot; : &quot;shortcuts-not-mac&quot;)
this.lookupNames.push($tw.platform.isWindows ? &quot;shortcuts-windows&quot; : &quot;shortcuts-not-windows&quot;);
this.lookupNames.push($tw.platform.isLinux ? &quot;shortcuts-linux&quot; : &quot;shortcuts-not-linux&quot;);
this.updateShortcutLists(this.getShortcutTiddlerList());
$tw.wiki.addEventListener(&quot;change&quot;,function(changes) {
self.handleShortcutChanges(changes);
});
}
/*
Return an array of keycodes for the modifier keys ctrl, shift, alt, meta
*/
KeyboardManager.prototype.getModifierKeys = function() {
return [
16, // Shift
17, // Ctrl
18, // Alt
20, // CAPS LOCK
91, // Meta (left)
93, // Meta (right)
224 // Meta (Firefox)
]
};
/*
Parses a key descriptor into the structure:
{
keyCode: numeric keycode
shiftKey: boolean
altKey: boolean
ctrlKey: boolean
metaKey: boolean
}
Key descriptors have the following format:
ctrl+enter
ctrl+shift+alt+A
*/
KeyboardManager.prototype.parseKeyDescriptor = function(keyDescriptor) {
var components = keyDescriptor.split(/\+|\-/),
info = {
keyCode: 0,
shiftKey: false,
altKey: false,
ctrlKey: false,
metaKey: false
};
for(var t=0; t&lt;components.length; t++) {
var s = components[t].toLowerCase(),
c = s.charCodeAt(0);
// Look for modifier keys
if(s === &quot;ctrl&quot;) {
info.ctrlKey = true;
} else if(s === &quot;shift&quot;) {
info.shiftKey = true;
} else if(s === &quot;alt&quot;) {
info.altKey = true;
} else if(s === &quot;meta&quot; || s === &quot;cmd&quot; || s === &quot;win&quot;) {
info.metaKey = true;
}
// Replace named keys with their code
if(this.namedKeys[s]) {
info.keyCode = this.namedKeys[s];
}
}
if(info.keyCode) {
return info;
} else {
return null;
}
};
/*
Parse a list of key descriptors into an array of keyInfo objects. The key descriptors can be passed as an array of strings or a space separated string
*/
KeyboardManager.prototype.parseKeyDescriptors = function(keyDescriptors,options) {
var self = this;
options = options || {};
options.stack = options.stack || [];
var wiki = options.wiki || $tw.wiki;
if(typeof keyDescriptors === &quot;string&quot; &amp;&amp; keyDescriptors === &quot;&quot;) {
return [];
}
if(!$tw.utils.isArray(keyDescriptors)) {
keyDescriptors = keyDescriptors.split(&quot; &quot;);
}
var result = [];
$tw.utils.each(keyDescriptors,function(keyDescriptor) {
// Look for a named shortcut
if(keyDescriptor.substr(0,2) === &quot;((&quot; &amp;&amp; keyDescriptor.substr(-2,2) === &quot;))&quot;) {
if(options.stack.indexOf(keyDescriptor) === -1) {
options.stack.push(keyDescriptor);
var name = keyDescriptor.substring(2,keyDescriptor.length - 2),
lookupName = function(configName) {
var keyDescriptors = wiki.getTiddlerText(&quot;$:/config/&quot; + configName + &quot;/&quot; + name);
if(keyDescriptors) {
result.push.apply(result,self.parseKeyDescriptors(keyDescriptors,options));
}
};
$tw.utils.each(self.lookupNames,function(platformDescriptor) {
lookupName(platformDescriptor);
});
}
} else {
result.push(self.parseKeyDescriptor(keyDescriptor));
}
});
return result;
};
KeyboardManager.prototype.getPrintableShortcuts = function(keyInfoArray) {
var self = this,
result = [];
$tw.utils.each(keyInfoArray,function(keyInfo) {
if(keyInfo) {
result.push((keyInfo.ctrlKey ? &quot;ctrl-&quot; : &quot;&quot;) +
(keyInfo.shiftKey ? &quot;shift-&quot; : &quot;&quot;) +
(keyInfo.altKey ? &quot;alt-&quot; : &quot;&quot;) +
(keyInfo.metaKey ? self.metaKeyName : &quot;&quot;) +
(self.keyNames[keyInfo.keyCode]));
}
});
return result;
}
KeyboardManager.prototype.checkKeyDescriptor = function(event,keyInfo) {
return keyInfo &amp;&amp;
event.keyCode === keyInfo.keyCode &amp;&amp;
event.shiftKey === keyInfo.shiftKey &amp;&amp;
event.altKey === keyInfo.altKey &amp;&amp;
event.ctrlKey === keyInfo.ctrlKey &amp;&amp;
event.metaKey === keyInfo.metaKey;
};
KeyboardManager.prototype.checkKeyDescriptors = function(event,keyInfoArray) {
for(var t=0; t&lt;keyInfoArray.length; t++) {
if(this.checkKeyDescriptor(event,keyInfoArray[t])) {
return true;
}
}
return false;
};
KeyboardManager.prototype.getShortcutTiddlerList = function() {
return $tw.wiki.getTiddlersWithTag(&quot;$:/tags/KeyboardShortcut&quot;);
};
KeyboardManager.prototype.updateShortcutLists = function(tiddlerList) {
this.shortcutTiddlers = tiddlerList;
for(var i=0; i&lt;tiddlerList.length; i++) {
var title = tiddlerList[i],
tiddlerFields = $tw.wiki.getTiddler(title).fields;
this.shortcutKeysList[i] = tiddlerFields.key !== undefined ? tiddlerFields.key : undefined;
this.shortcutActionList[i] = tiddlerFields.text;
this.shortcutParsedList[i] = this.shortcutKeysList[i] !== undefined ? this.parseKeyDescriptors(this.shortcutKeysList[i]) : undefined;
}
};
KeyboardManager.prototype.handleKeydownEvent = function(event) {
var key, action;
for(var i=0; i&lt;this.shortcutTiddlers.length; i++) {
if(this.shortcutParsedList[i] !== undefined &amp;&amp; this.checkKeyDescriptors(event,this.shortcutParsedList[i])) {
key = this.shortcutParsedList[i];
action = this.shortcutActionList[i];
}
}
if(key !== undefined) {
event.preventDefault();
event.stopPropagation();
$tw.rootWidget.invokeActionString(action,$tw.rootWidget);
return true;
}
return false;
};
KeyboardManager.prototype.detectNewShortcuts = function(changedTiddlers) {
var shortcutConfigTiddlers = [],
handled = false;
$tw.utils.each(this.lookupNames,function(platformDescriptor) {
var descriptorString = &quot;$:/config/&quot; + platformDescriptor + &quot;/&quot;;
Object.keys(changedTiddlers).forEach(function(configTiddler) {
var configString = configTiddler.substr(0, configTiddler.lastIndexOf(&quot;/&quot;) + 1);
if(configString === descriptorString) {
shortcutConfigTiddlers.push(configTiddler);
handled = true;
}
});
});
if(handled) {
return $tw.utils.hopArray(changedTiddlers,shortcutConfigTiddlers);
} else {
return false;
}
};
KeyboardManager.prototype.handleShortcutChanges = function(changedTiddlers) {
var newList = this.getShortcutTiddlerList();
var hasChanged = $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers) ? true :
($tw.utils.hopArray(changedTiddlers,newList) ? true :
(this.detectNewShortcuts(changedTiddlers))
);
// Re-cache shortcuts if something changed
if(hasChanged) {
this.updateShortcutLists(newList);
}
};
exports.KeyboardManager = KeyboardManager;
})();
</pre>
</div>
<div module-type="global" title="$:/core/modules/language.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/language.js
type: application/javascript
module-type: global
The $tw.Language() manages translateable strings
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Create an instance of the language manager. Options include:
wiki: wiki from which to retrieve translation tiddlers
*/
function Language(options) {
options = options || &quot;&quot;;
this.wiki = options.wiki || $tw.wiki;
}
/*
Return a wikified translateable string. The title is automatically prefixed with &quot;$:/language/&quot;
Options include:
variables: optional hashmap of variables to supply to the language wikification
*/
Language.prototype.getString = function(title,options) {
options = options || {};
title = &quot;$:/language/&quot; + title;
return this.wiki.renderTiddler(&quot;text/plain&quot;,title,{variables: options.variables});
};
/*
Return a raw, unwikified translateable string. The title is automatically prefixed with &quot;$:/language/&quot;
*/
Language.prototype.getRawString = function(title) {
title = &quot;$:/language/&quot; + title;
return this.wiki.getTiddlerText(title);
};
exports.Language = Language;
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/changecount.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/changecount.js
type: application/javascript
module-type: macro
Macro to return the changecount for the current tiddler
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Information about this macro
*/
exports.name = &quot;changecount&quot;;
exports.params = [];
/*
Run the macro
*/
exports.run = function() {
return this.wiki.getChangeCount(this.getVariable(&quot;currentTiddler&quot;)) + &quot;&quot;;
};
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/contrastcolour.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/contrastcolour.js
type: application/javascript
module-type: macro
Macro to choose which of two colours has the highest contrast with a base colour
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Information about this macro
*/
exports.name = &quot;contrastcolour&quot;;
exports.params = [
{name: &quot;target&quot;},
{name: &quot;fallbackTarget&quot;},
{name: &quot;colourA&quot;},
{name: &quot;colourB&quot;}
];
/*
Run the macro
*/
exports.run = function(target,fallbackTarget,colourA,colourB) {
var rgbTarget = $tw.utils.parseCSSColor(target) || $tw.utils.parseCSSColor(fallbackTarget);
if(!rgbTarget) {
return colourA;
}
var rgbColourA = $tw.utils.parseCSSColor(colourA),
rgbColourB = $tw.utils.parseCSSColor(colourB);
if(rgbColourA &amp;&amp; !rgbColourB) {
return rgbColourA;
}
if(rgbColourB &amp;&amp; !rgbColourA) {
return rgbColourB;
}
if(!rgbColourA &amp;&amp; !rgbColourB) {
// If neither colour is readable, return a crude inverse of the target
return [255 - rgbTarget[0],255 - rgbTarget[1],255 - rgbTarget[2],rgbTarget[3]];
}
// Colour brightness formula derived from http://www.w3.org/WAI/ER/WD-AERT/#color-contrast
var brightnessTarget = rgbTarget[0] * 0.299 + rgbTarget[1] * 0.587 + rgbTarget[2] * 0.114,
brightnessA = rgbColourA[0] * 0.299 + rgbColourA[1] * 0.587 + rgbColourA[2] * 0.114,
brightnessB = rgbColourB[0] * 0.299 + rgbColourB[1] * 0.587 + rgbColourB[2] * 0.114;
return Math.abs(brightnessTarget - brightnessA) &gt; Math.abs(brightnessTarget - brightnessB) ? colourA : colourB;
};
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/csvtiddlers.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/csvtiddlers.js
type: application/javascript
module-type: macro
Macro to output tiddlers matching a filter to CSV
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Information about this macro
*/
exports.name = &quot;csvtiddlers&quot;;
exports.params = [
{name: &quot;filter&quot;},
{name: &quot;format&quot;},
];
/*
Run the macro
*/
exports.run = function(filter,format) {
var self = this,
tiddlers = this.wiki.filterTiddlers(filter),
tiddler,
fields = [],
t,f;
// Collect all the fields
for(t=0;t&lt;tiddlers.length; t++) {
tiddler = this.wiki.getTiddler(tiddlers[t]);
for(f in tiddler.fields) {
if(fields.indexOf(f) === -1) {
fields.push(f);
}
}
}
// Sort the fields and bring the standard ones to the front
fields.sort();
&quot;title text modified modifier created creator&quot;.split(&quot; &quot;).reverse().forEach(function(value,index) {
var p = fields.indexOf(value);
if(p !== -1) {
fields.splice(p,1);
fields.unshift(value)
}
});
// Output the column headings
var output = [], row = [];
fields.forEach(function(value) {
row.push(quoteAndEscape(value))
});
output.push(row.join(&quot;,&quot;));
// Output each tiddler
for(var t=0;t&lt;tiddlers.length; t++) {
row = [];
tiddler = this.wiki.getTiddler(tiddlers[t]);
for(f=0; f&lt;fields.length; f++) {
row.push(quoteAndEscape(tiddler ? tiddler.getFieldString(fields[f]) || &quot;&quot; : &quot;&quot;));
}
output.push(row.join(&quot;,&quot;));
}
return output.join(&quot;\n&quot;);
};
function quoteAndEscape(value) {
return &quot;\&quot;&quot; + value.replace(/&quot;/mg,&quot;\&quot;\&quot;&quot;) + &quot;\&quot;&quot;;
}
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/displayshortcuts.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/displayshortcuts.js
type: application/javascript
module-type: macro
Macro to display a list of keyboard shortcuts in human readable form. Notably, it resolves named shortcuts like `((bold))` to the underlying keystrokes.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Information about this macro
*/
exports.name = &quot;displayshortcuts&quot;;
exports.params = [
{name: &quot;shortcuts&quot;},
{name: &quot;prefix&quot;},
{name: &quot;separator&quot;},
{name: &quot;suffix&quot;}
];
/*
Run the macro
*/
exports.run = function(shortcuts,prefix,separator,suffix) {
var shortcutArray = $tw.keyboardManager.getPrintableShortcuts($tw.keyboardManager.parseKeyDescriptors(shortcuts,{
wiki: this.wiki
}));
if(shortcutArray.length &gt; 0) {
shortcutArray.sort(function(a,b) {
return a.toLowerCase().localeCompare(b.toLowerCase());
})
return prefix + shortcutArray.join(separator) + suffix;
} else {
return &quot;&quot;;
}
};
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/jsontiddler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/jsontiddler.js
type: application/javascript
module-type: macro
Macro to output a single tiddler to JSON
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Information about this macro
*/
exports.name = &quot;jsontiddler&quot;;
exports.params = [
{name: &quot;title&quot;}
];
/*
Run the macro
*/
exports.run = function(title) {
title = title || this.getVariable(&quot;currentTiddler&quot;);
var tiddler = !!title &amp;&amp; this.wiki.getTiddler(title),
fields = new Object();
if(tiddler) {
for(var field in tiddler.fields) {
fields[field] = tiddler.getFieldString(field);
}
}
return JSON.stringify(fields,null,$tw.config.preferences.jsonSpaces);
};
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/jsontiddlers.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/jsontiddlers.js
type: application/javascript
module-type: macro
Macro to output tiddlers matching a filter to JSON
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Information about this macro
*/
exports.name = &quot;jsontiddlers&quot;;
exports.params = [
{name: &quot;filter&quot;},
{name: &quot;spaces&quot;}
];
/*
Run the macro
*/
exports.run = function(filter,spaces) {
return this.wiki.getTiddlersAsJson(filter,$tw.utils.parseInt(spaces));
};
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/makedatauri.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/makedatauri.js
type: application/javascript
module-type: macro
Macro to convert a string of text to a data URI
&lt;&lt;makedatauri text:&quot;Text to be converted&quot; type:&quot;text/vnd.tiddlywiki&quot;&gt;&gt;
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Information about this macro
*/
exports.name = &quot;makedatauri&quot;;
exports.params = [
{name: &quot;text&quot;},
{name: &quot;type&quot;},
{name: &quot;_canonical_uri&quot;}
];
/*
Run the macro
*/
exports.run = function(text,type,_canonical_uri) {
return $tw.utils.makeDataUri(text,type,_canonical_uri);
};
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/now.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/now.js
type: application/javascript
module-type: macro
Macro to return a formatted version of the current time
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Information about this macro
*/
exports.name = &quot;now&quot;;
exports.params = [
{name: &quot;format&quot;}
];
/*
Run the macro
*/
exports.run = function(format) {
return $tw.utils.formatDateString(new Date(),format || &quot;0hh:0mm, DDth MMM YYYY&quot;);
};
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/qualify.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/qualify.js
type: application/javascript
module-type: macro
Macro to qualify a state tiddler title according
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Information about this macro
*/
exports.name = &quot;qualify&quot;;
exports.params = [
{name: &quot;title&quot;}
];
/*
Run the macro
*/
exports.run = function(title) {
return title + &quot;-&quot; + this.getStateQualifier();
};
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/resolvepath.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/resolvepath.js
type: application/javascript
module-type: macro
Resolves a relative path for an absolute rootpath.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;resolvepath&quot;;
exports.params = [
{name: &quot;source&quot;},
{name: &quot;root&quot;}
];
/*
Run the macro
*/
exports.run = function(source, root) {
return $tw.utils.resolvePath(source, root);
};
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/unusedtitle.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/unusedtitle.js
type: application/javascript
module-type: macro
Macro to return a new title that is unused in the wiki. It can be given a name as a base.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Information about this macro
*/
exports.name = &quot;unusedtitle&quot;;
exports.params = [
{name: &quot;baseName&quot;},
{name: &quot;options&quot;}
];
/*
Run the macro
*/
exports.run = function(baseName, options) {
if(!baseName) {
baseName = $tw.language.getString(&quot;DefaultNewTiddlerTitle&quot;);
}
return this.wiki.generateNewTitle(baseName, options);
};
})();
</pre>
</div>
<div module-type="macro" title="$:/core/modules/macros/version.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/macros/version.js
type: application/javascript
module-type: macro
Macro to return the TiddlyWiki core version number
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Information about this macro
*/
exports.name = &quot;version&quot;;
exports.params = [];
/*
Run the macro
*/
exports.run = function() {
return $tw.version;
};
})();
</pre>
</div>
<div module-type="parser" title="$:/core/modules/parsers/audioparser.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/audioparser.js
type: application/javascript
module-type: parser
The audio parser parses an audio tiddler into an embeddable HTML element
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var AudioParser = function(type,text,options) {
var element = {
type: &quot;element&quot;,
tag: &quot;audio&quot;,
attributes: {
controls: {type: &quot;string&quot;, value: &quot;controls&quot;},
style: {type: &quot;string&quot;, value: &quot;width: 100%; object-fit: contain&quot;}
}
},
src;
if(options._canonical_uri) {
element.attributes.src = {type: &quot;string&quot;, value: options._canonical_uri};
} else if(text) {
element.attributes.src = {type: &quot;string&quot;, value: &quot;data:&quot; + type + &quot;;base64,&quot; + text};
}
this.tree = [element];
};
exports[&quot;audio/ogg&quot;] = AudioParser;
exports[&quot;audio/mpeg&quot;] = AudioParser;
exports[&quot;audio/mp3&quot;] = AudioParser;
exports[&quot;audio/mp4&quot;] = AudioParser;
})();
</pre>
</div>
<div module-type="parser" title="$:/core/modules/parsers/binaryparser.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/binaryparser.js
type: application/javascript
module-type: parser
The binary parser parses a binary tiddler into a warning message and download link
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var BINARY_WARNING_MESSAGE = &quot;$:/core/ui/BinaryWarning&quot;;
var EXPORT_BUTTON_IMAGE = &quot;$:/core/images/export-button&quot;;
var BinaryParser = function(type,text,options) {
// Transclude the binary data tiddler warning message
var warn = {
type: &quot;element&quot;,
tag: &quot;p&quot;,
children: [{
type: &quot;transclude&quot;,
attributes: {
tiddler: {type: &quot;string&quot;, value: BINARY_WARNING_MESSAGE}
}
}]
};
// Create download link based on binary tiddler title
var link = {
type: &quot;element&quot;,
tag: &quot;a&quot;,
attributes: {
title: {type: &quot;indirect&quot;, textReference: &quot;!!title&quot;},
download: {type: &quot;indirect&quot;, textReference: &quot;!!title&quot;}
},
children: [{
type: &quot;transclude&quot;,
attributes: {
tiddler: {type: &quot;string&quot;, value: EXPORT_BUTTON_IMAGE}
}
}]
};
// Set the link href to external or internal data URI
if(options._canonical_uri) {
link.attributes.href = {
type: &quot;string&quot;,
value: options._canonical_uri
};
} else if(text) {
link.attributes.href = {
type: &quot;string&quot;,
value: &quot;data:&quot; + type + &quot;;base64,&quot; + text
};
}
// Combine warning message and download link in a div
var element = {
type: &quot;element&quot;,
tag: &quot;div&quot;,
attributes: {
class: {type: &quot;string&quot;, value: &quot;tc-binary-warning&quot;}
},
children: [warn, link]
}
this.tree = [element];
};
exports[&quot;application/octet-stream&quot;] = BinaryParser;
})();
</pre>
</div>
<div module-type="parser" title="$:/core/modules/parsers/csvparser.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/csvparser.js
type: application/javascript
module-type: parser
The CSV text parser processes CSV files into a table wrapped in a scrollable widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var CsvParser = function(type,text,options) {
// Table framework
this.tree = [{
&quot;type&quot;: &quot;scrollable&quot;, &quot;children&quot;: [{
&quot;type&quot;: &quot;element&quot;, &quot;tag&quot;: &quot;table&quot;, &quot;children&quot;: [{
&quot;type&quot;: &quot;element&quot;, &quot;tag&quot;: &quot;tbody&quot;, &quot;children&quot;: []
}], &quot;attributes&quot;: {
&quot;class&quot;: {&quot;type&quot;: &quot;string&quot;, &quot;value&quot;: &quot;tc-csv-table&quot;}
}
}]
}];
// Split the text into lines
var lines = text.split(/\r?\n/mg),
tag = &quot;th&quot;;
for(var line=0; line&lt;lines.length; line++) {
var lineText = lines[line];
if(lineText) {
var row = {
&quot;type&quot;: &quot;element&quot;, &quot;tag&quot;: &quot;tr&quot;, &quot;children&quot;: []
};
var columns = lineText.split(&quot;,&quot;);
for(var column=0; column&lt;columns.length; column++) {
row.children.push({
&quot;type&quot;: &quot;element&quot;, &quot;tag&quot;: tag, &quot;children&quot;: [{
&quot;type&quot;: &quot;text&quot;,
&quot;text&quot;: columns[column]
}]
});
}
tag = &quot;td&quot;;
this.tree[0].children[0].children[0].children.push(row);
}
}
};
exports[&quot;text/csv&quot;] = CsvParser;
})();
</pre>
</div>
<div module-type="parser" title="$:/core/modules/parsers/htmlparser.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/htmlparser.js
type: application/javascript
module-type: parser
The HTML parser displays text as raw HTML
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var HtmlParser = function(type,text,options) {
var src;
if(options._canonical_uri) {
src = options._canonical_uri;
} else if(text) {
src = &quot;data:text/html;charset=utf-8,&quot; + encodeURIComponent(text);
}
this.tree = [{
type: &quot;element&quot;,
tag: &quot;iframe&quot;,
attributes: {
src: {type: &quot;string&quot;, value: src},
sandbox: {type: &quot;string&quot;, value: &quot;&quot;}
}
}];
};
exports[&quot;text/html&quot;] = HtmlParser;
})();
</pre>
</div>
<div module-type="parser" title="$:/core/modules/parsers/imageparser.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/imageparser.js
type: application/javascript
module-type: parser
The image parser parses an image into an embeddable HTML element
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var ImageParser = function(type,text,options) {
var element = {
type: &quot;element&quot;,
tag: &quot;img&quot;,
attributes: {}
};
if(options._canonical_uri) {
element.attributes.src = {type: &quot;string&quot;, value: options._canonical_uri};
} else if(text) {
if(type === &quot;image/svg+xml&quot; || type === &quot;.svg&quot;) {
element.attributes.src = {type: &quot;string&quot;, value: &quot;data:image/svg+xml,&quot; + encodeURIComponent(text)};
} else {
element.attributes.src = {type: &quot;string&quot;, value: &quot;data:&quot; + type + &quot;;base64,&quot; + text};
}
}
this.tree = [element];
};
exports[&quot;image/svg+xml&quot;] = ImageParser;
exports[&quot;image/jpg&quot;] = ImageParser;
exports[&quot;image/jpeg&quot;] = ImageParser;
exports[&quot;image/png&quot;] = ImageParser;
exports[&quot;image/gif&quot;] = ImageParser;
exports[&quot;image/webp&quot;] = ImageParser;
exports[&quot;image/heic&quot;] = ImageParser;
exports[&quot;image/heif&quot;] = ImageParser;
exports[&quot;image/x-icon&quot;] = ImageParser;
})();
</pre>
</div>
<div module-type="parser" title="$:/core/modules/parsers/pdfparser.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/pdfparser.js
type: application/javascript
module-type: parser
The PDF parser embeds a PDF viewer
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var ImageParser = function(type,text,options) {
var element = {
type: &quot;element&quot;,
tag: &quot;embed&quot;,
attributes: {}
},
src;
if(options._canonical_uri) {
element.attributes.src = {type: &quot;string&quot;, value: options._canonical_uri};
} else if(text) {
element.attributes.src = {type: &quot;string&quot;, value: &quot;data:application/pdf;base64,&quot; + text};
}
this.tree = [element];
};
exports[&quot;application/pdf&quot;] = ImageParser;
})();
</pre>
</div>
<div module-type="parser" title="$:/core/modules/parsers/textparser.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/textparser.js
type: application/javascript
module-type: parser
The plain text parser processes blocks of source text into a degenerate parse tree consisting of a single text node
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var TextParser = function(type,text,options) {
this.tree = [{
type: &quot;codeblock&quot;,
attributes: {
code: {type: &quot;string&quot;, value: text},
language: {type: &quot;string&quot;, value: type}
}
}];
};
exports[&quot;text/plain&quot;] = TextParser;
exports[&quot;text/x-tiddlywiki&quot;] = TextParser;
exports[&quot;application/javascript&quot;] = TextParser;
exports[&quot;application/json&quot;] = TextParser;
exports[&quot;text/css&quot;] = TextParser;
exports[&quot;application/x-tiddler-dictionary&quot;] = TextParser;
})();
</pre>
</div>
<div module-type="parser" title="$:/core/modules/parsers/videoparser.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/videoparser.js
type: application/javascript
module-type: parser
The video parser parses a video tiddler into an embeddable HTML element
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var VideoParser = function(type,text,options) {
var element = {
type: &quot;element&quot;,
tag: &quot;video&quot;,
attributes: {
controls: {type: &quot;string&quot;, value: &quot;controls&quot;},
style: {type: &quot;string&quot;, value: &quot;width: 100%; object-fit: contain&quot;}
}
},
src;
if(options._canonical_uri) {
element.attributes.src = {type: &quot;string&quot;, value: options._canonical_uri};
} else if(text) {
element.attributes.src = {type: &quot;string&quot;, value: &quot;data:&quot; + type + &quot;;base64,&quot; + text};
}
this.tree = [element];
};
exports[&quot;video/ogg&quot;] = VideoParser;
exports[&quot;video/webm&quot;] = VideoParser;
exports[&quot;video/mp4&quot;] = VideoParser;
exports[&quot;video/quicktime&quot;] = VideoParser;
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/codeblock.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/codeblock.js
type: application/javascript
module-type: wikirule
Wiki text rule for code blocks. For example:
```
```
This text will not be //wikified//
```
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;codeblock&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match and get language if defined
this.matchRegExp = /```([\w-]*)\r?\n/mg;
};
exports.parse = function() {
var reEnd = /(\r?\n```$)/mg;
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Look for the end of the block
reEnd.lastIndex = this.parser.pos;
var match = reEnd.exec(this.parser.source),
text;
// Process the block
if(match) {
text = this.parser.source.substring(this.parser.pos,match.index);
this.parser.pos = match.index + match[0].length;
} else {
text = this.parser.source.substr(this.parser.pos);
this.parser.pos = this.parser.sourceLength;
}
// Return the $codeblock widget
return [{
type: &quot;codeblock&quot;,
attributes: {
code: {type: &quot;string&quot;, value: text},
language: {type: &quot;string&quot;, value: this.match[1]}
}
}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/codeinline.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/codeinline.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for code runs. For example:
```
This is a `code run`.
This is another ``code run``
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;codeinline&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /(``?)/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
var reEnd = new RegExp(this.match[1], &quot;mg&quot;);
// Look for the end marker
reEnd.lastIndex = this.parser.pos;
var match = reEnd.exec(this.parser.source),
text;
// Process the text
if(match) {
text = this.parser.source.substring(this.parser.pos,match.index);
this.parser.pos = match.index + match[0].length;
} else {
text = this.parser.source.substr(this.parser.pos);
this.parser.pos = this.parser.sourceLength;
}
return [{
type: &quot;element&quot;,
tag: &quot;code&quot;,
children: [{
type: &quot;text&quot;,
text: text
}]
}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/commentblock.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/commentblock.js
type: application/javascript
module-type: wikirule
Wiki text block rule for HTML comments. For example:
```
&lt;!-- This is a comment --&gt;
```
Note that the syntax for comments is simplified to an opening &quot;&lt;!--&quot; sequence and a closing &quot;--&gt;&quot; sequence -- HTML itself implements a more complex format (see http://ostermiller.org/findhtmlcomment.html)
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;commentblock&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
this.matchRegExp = /&lt;!--/mg;
this.endMatchRegExp = /--&gt;/mg;
};
exports.findNextMatch = function(startPos) {
this.matchRegExp.lastIndex = startPos;
this.match = this.matchRegExp.exec(this.parser.source);
if(this.match) {
this.endMatchRegExp.lastIndex = startPos + this.match[0].length;
this.endMatch = this.endMatchRegExp.exec(this.parser.source);
if(this.endMatch) {
return this.match.index;
}
}
return undefined;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.endMatchRegExp.lastIndex;
// Don't return any elements
return [];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/commentinline.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/commentinline.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for HTML comments. For example:
```
&lt;!-- This is a comment --&gt;
```
Note that the syntax for comments is simplified to an opening &quot;&lt;!--&quot; sequence and a closing &quot;--&gt;&quot; sequence -- HTML itself implements a more complex format (see http://ostermiller.org/findhtmlcomment.html)
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;commentinline&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
this.matchRegExp = /&lt;!--/mg;
this.endMatchRegExp = /--&gt;/mg;
};
exports.findNextMatch = function(startPos) {
this.matchRegExp.lastIndex = startPos;
this.match = this.matchRegExp.exec(this.parser.source);
if(this.match) {
this.endMatchRegExp.lastIndex = startPos + this.match[0].length;
this.endMatch = this.endMatchRegExp.exec(this.parser.source);
if(this.endMatch) {
return this.match.index;
}
}
return undefined;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.endMatchRegExp.lastIndex;
// Don't return any elements
return [];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/dash.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/dash.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for dashes. For example:
```
This is an en-dash: --
This is an em-dash: ---
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;dash&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /-{2,3}(?!-)/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
var dash = this.match[0].length === 2 ? &quot;&amp;ndash;&quot; : &quot;&amp;mdash;&quot;;
return [{
type: &quot;entity&quot;,
entity: dash
}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/emphasis/bold.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/emphasis/bold.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for emphasis - bold. For example:
```
This is ''bold'' text
```
This wikiparser can be modified using the rules eg:
```
\rules except bold
\rules only bold
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;bold&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /''/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Parse the run including the terminator
var tree = this.parser.parseInlineRun(/''/mg,{eatTerminator: true});
// Return the classed span
return [{
type: &quot;element&quot;,
tag: &quot;strong&quot;,
children: tree
}];
};
})();</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/emphasis/italic.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/emphasis/italic.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for emphasis - italic. For example:
```
This is //italic// text
```
This wikiparser can be modified using the rules eg:
```
\rules except italic
\rules only italic
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;italic&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /\/\//mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Parse the run including the terminator
var tree = this.parser.parseInlineRun(/\/\//mg,{eatTerminator: true});
// Return the classed span
return [{
type: &quot;element&quot;,
tag: &quot;em&quot;,
children: tree
}];
};
})();</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for emphasis - strikethrough. For example:
```
This is ~~strikethrough~~ text
```
This wikiparser can be modified using the rules eg:
```
\rules except strikethrough
\rules only strikethrough
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;strikethrough&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /~~/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Parse the run including the terminator
var tree = this.parser.parseInlineRun(/~~/mg,{eatTerminator: true});
// Return the classed span
return [{
type: &quot;element&quot;,
tag: &quot;strike&quot;,
children: tree
}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for emphasis - subscript. For example:
```
This is ,,subscript,, text
```
This wikiparser can be modified using the rules eg:
```
\rules except subscript
\rules only subscript
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;subscript&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /,,/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Parse the run including the terminator
var tree = this.parser.parseInlineRun(/,,/mg,{eatTerminator: true});
// Return the classed span
return [{
type: &quot;element&quot;,
tag: &quot;sub&quot;,
children: tree
}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for emphasis - superscript. For example:
```
This is ^^superscript^^ text
```
This wikiparser can be modified using the rules eg:
```
\rules except superscript
\rules only superscript
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;superscript&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /\^\^/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Parse the run including the terminator
var tree = this.parser.parseInlineRun(/\^\^/mg,{eatTerminator: true});
// Return the classed span
return [{
type: &quot;element&quot;,
tag: &quot;sup&quot;,
children: tree
}];
};
})();</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for emphasis - underscore. For example:
```
This is __underscore__ text
```
This wikiparser can be modified using the rules eg:
```
\rules except underscore
\rules only underscore
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;underscore&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /__/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Parse the run including the terminator
var tree = this.parser.parseInlineRun(/__/mg,{eatTerminator: true});
// Return the classed span
return [{
type: &quot;element&quot;,
tag: &quot;u&quot;,
children: tree
}];
};
})();</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/entity.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/entity.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for HTML entities. For example:
```
This is a copyright symbol: &amp;copy;
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;entity&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /(&amp;#?[a-zA-Z0-9]{2,8};)/mg;
};
/*
Parse the most recent match
*/
exports.parse = function() {
// Get all the details of the match
var entityString = this.match[1];
// Move past the macro call
this.parser.pos = this.matchRegExp.lastIndex;
// Return the entity
return [{type: &quot;entity&quot;, entity: this.match[0]}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/extlink.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/extlink.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for external links. For example:
```
An external link: https://www.tiddlywiki.com/
A suppressed external link: ~http://www.tiddlyspace.com/
```
External links can be suppressed by preceding them with `~`.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;extlink&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s&lt;&gt;{}\[\]`|&quot;\\^]+(?:\/|\b)/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Create the link unless it is suppressed
if(this.match[0].substr(0,1) === &quot;~&quot;) {
return [{type: &quot;text&quot;, text: this.match[0].substr(1)}];
} else {
return [{
type: &quot;element&quot;,
tag: &quot;a&quot;,
attributes: {
href: {type: &quot;string&quot;, value: this.match[0]},
&quot;class&quot;: {type: &quot;string&quot;, value: &quot;tc-tiddlylink-external&quot;},
target: {type: &quot;string&quot;, value: &quot;_blank&quot;},
rel: {type: &quot;string&quot;, value: &quot;noopener noreferrer&quot;}
},
children: [{
type: &quot;text&quot;, text: this.match[0]
}]
}];
}
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js
type: application/javascript
module-type: wikirule
Wiki text rule for block-level filtered transclusion. For example:
```
{{{ [tag[docs]] }}}
{{{ [tag[docs]] |tooltip}}}
{{{ [tag[docs]] ||TemplateTitle}}}
{{{ [tag[docs]] |tooltip||TemplateTitle}}}
{{{ [tag[docs]] }}width:40;height:50;}.class.class
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;filteredtranscludeblock&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /\{\{\{([^\|]+?)(?:\|([^\|\{\}]+))?(?:\|\|([^\|\{\}]+))?\}\}([^\}]*)\}(?:\.(\S+))?(?:\r?\n|$)/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Get the match details
var filter = this.match[1],
tooltip = this.match[2],
template = $tw.utils.trim(this.match[3]),
style = this.match[4],
classes = this.match[5];
// Return the list widget
var node = {
type: &quot;list&quot;,
attributes: {
filter: {type: &quot;string&quot;, value: filter}
},
isBlock: true
};
if(tooltip) {
node.attributes.tooltip = {type: &quot;string&quot;, value: tooltip};
}
if(template) {
node.attributes.template = {type: &quot;string&quot;, value: template};
}
if(style) {
node.attributes.style = {type: &quot;string&quot;, value: style};
}
if(classes) {
node.attributes.itemClass = {type: &quot;string&quot;, value: classes.split(&quot;.&quot;).join(&quot; &quot;)};
}
return [node];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js
type: application/javascript
module-type: wikirule
Wiki text rule for inline filtered transclusion. For example:
```
{{{ [tag[docs]] }}}
{{{ [tag[docs]] |tooltip}}}
{{{ [tag[docs]] ||TemplateTitle}}}
{{{ [tag[docs]] |tooltip||TemplateTitle}}}
{{{ [tag[docs]] }}width:40;height:50;}.class.class
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;filteredtranscludeinline&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /\{\{\{([^\|]+?)(?:\|([^\|\{\}]+))?(?:\|\|([^\|\{\}]+))?\}\}([^\}]*)\}(?:\.(\S+))?/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Get the match details
var filter = this.match[1],
tooltip = this.match[2],
template = $tw.utils.trim(this.match[3]),
style = this.match[4],
classes = this.match[5];
// Return the list widget
var node = {
type: &quot;list&quot;,
attributes: {
filter: {type: &quot;string&quot;, value: filter}
}
};
if(tooltip) {
node.attributes.tooltip = {type: &quot;string&quot;, value: tooltip};
}
if(template) {
node.attributes.template = {type: &quot;string&quot;, value: template};
}
if(style) {
node.attributes.style = {type: &quot;string&quot;, value: style};
}
if(classes) {
node.attributes.itemClass = {type: &quot;string&quot;, value: classes.split(&quot;.&quot;).join(&quot; &quot;)};
}
return [node];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for marking areas with hard line breaks. For example:
```
&quot;&quot;&quot;
This is some text
That is set like
It is a Poem
When it is
Clearly
Not
&quot;&quot;&quot;
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;hardlinebreaks&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /&quot;&quot;&quot;(?:\r?\n)?/mg;
};
exports.parse = function() {
var reEnd = /(&quot;&quot;&quot;)|(\r?\n)/mg,
tree = [],
match;
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
do {
// Parse the run up to the terminator
tree.push.apply(tree,this.parser.parseInlineRun(reEnd,{eatTerminator: false}));
// Redo the terminator match
reEnd.lastIndex = this.parser.pos;
match = reEnd.exec(this.parser.source);
if(match) {
this.parser.pos = reEnd.lastIndex;
// Add a line break if the terminator was a line break
if(match[2]) {
tree.push({type: &quot;element&quot;, tag: &quot;br&quot;});
}
}
} while(match &amp;&amp; !match[1]);
// Return the nodes
return tree;
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/heading.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/heading.js
type: application/javascript
module-type: wikirule
Wiki text block rule for headings
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;heading&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /(!{1,6})/mg;
};
/*
Parse the most recent match
*/
exports.parse = function() {
// Get all the details of the match
var headingLevel = this.match[1].length;
// Move past the !s
this.parser.pos = this.matchRegExp.lastIndex;
// Parse any classes, whitespace and then the heading itself
var classes = this.parser.parseClasses();
this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});
var tree = this.parser.parseInlineRun(/(\r?\n)/mg);
// Return the heading
return [{
type: &quot;element&quot;,
tag: &quot;h&quot; + headingLevel,
attributes: {
&quot;class&quot;: {type: &quot;string&quot;, value: classes.join(&quot; &quot;)}
},
children: tree
}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/horizrule.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/horizrule.js
type: application/javascript
module-type: wikirule
Wiki text block rule for rules. For example:
```
---
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;horizrule&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /-{3,}\r?(?:\n|$)/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
return [{type: &quot;element&quot;, tag: &quot;hr&quot;}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/html.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/html.js
type: application/javascript
module-type: wikirule
Wiki rule for HTML elements and widgets. For example:
{{{
&lt;aside&gt;
This is an HTML5 aside element
&lt;/aside&gt;
&lt;$slider target=&quot;MyTiddler&quot;&gt;
This is a widget invocation
&lt;/$slider&gt;
}}}
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;html&quot;;
exports.types = {inline: true, block: true};
exports.init = function(parser) {
this.parser = parser;
};
exports.findNextMatch = function(startPos) {
// Find the next tag
this.nextTag = this.findNextTag(this.parser.source,startPos,{
requireLineBreak: this.is.block
});
return this.nextTag ? this.nextTag.start : undefined;
};
/*
Parse the most recent match
*/
exports.parse = function() {
// Retrieve the most recent match so that recursive calls don't overwrite it
var tag = this.nextTag;
this.nextTag = null;
// Advance the parser position to past the tag
this.parser.pos = tag.end;
// Check for an immediately following double linebreak
var hasLineBreak = !tag.isSelfClosing &amp;&amp; !!$tw.utils.parseTokenRegExp(this.parser.source,this.parser.pos,/([^\S\n\r]*\r?\n(?:[^\S\n\r]*\r?\n|$))/g);
// Set whether we're in block mode
tag.isBlock = this.is.block || hasLineBreak;
// Parse the body if we need to
if(!tag.isSelfClosing &amp;&amp; $tw.config.htmlVoidElements.indexOf(tag.tag) === -1) {
var reEndString = &quot;&lt;/&quot; + $tw.utils.escapeRegExp(tag.tag) + &quot;&gt;&quot;,
reEnd = new RegExp(&quot;(&quot; + reEndString + &quot;)&quot;,&quot;mg&quot;);
if(hasLineBreak) {
tag.children = this.parser.parseBlocks(reEndString);
} else {
tag.children = this.parser.parseInlineRun(reEnd);
}
reEnd.lastIndex = this.parser.pos;
var endMatch = reEnd.exec(this.parser.source);
if(endMatch &amp;&amp; endMatch.index === this.parser.pos) {
this.parser.pos = endMatch.index + endMatch[0].length;
}
}
// Return the tag
return [tag];
};
/*
Look for an HTML tag. Returns null if not found, otherwise returns {type: &quot;element&quot;, name:, attributes: [], isSelfClosing:, start:, end:,}
*/
exports.parseTag = function(source,pos,options) {
options = options || {};
var token,
node = {
type: &quot;element&quot;,
start: pos,
attributes: {}
};
// Define our regexps
var reTagName = /([a-zA-Z0-9\-\$]+)/g;
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Look for a less than sign
token = $tw.utils.parseTokenString(source,pos,&quot;&lt;&quot;);
if(!token) {
return null;
}
pos = token.end;
// Get the tag name
token = $tw.utils.parseTokenRegExp(source,pos,reTagName);
if(!token) {
return null;
}
node.tag = token.match[1];
if(node.tag.slice(1).indexOf(&quot;$&quot;) !== -1) {
return null;
}
if(node.tag.charAt(0) === &quot;$&quot;) {
node.type = node.tag.substr(1);
}
pos = token.end;
// Check that the tag is terminated by a space, / or &gt;
if(!$tw.utils.parseWhiteSpace(source,pos) &amp;&amp; !(source.charAt(pos) === &quot;/&quot;) &amp;&amp; !(source.charAt(pos) === &quot;&gt;&quot;) ) {
return null;
}
// Process attributes
var attribute = $tw.utils.parseAttribute(source,pos);
while(attribute) {
node.attributes[attribute.name] = attribute;
pos = attribute.end;
// Get the next attribute
attribute = $tw.utils.parseAttribute(source,pos);
}
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Look for a closing slash
token = $tw.utils.parseTokenString(source,pos,&quot;/&quot;);
if(token) {
pos = token.end;
node.isSelfClosing = true;
}
// Look for a greater than sign
token = $tw.utils.parseTokenString(source,pos,&quot;&gt;&quot;);
if(!token) {
return null;
}
pos = token.end;
// Check for a required line break
if(options.requireLineBreak) {
token = $tw.utils.parseTokenRegExp(source,pos,/([^\S\n\r]*\r?\n(?:[^\S\n\r]*\r?\n|$))/g);
if(!token) {
return null;
}
}
// Update the end position
node.end = pos;
return node;
};
exports.findNextTag = function(source,pos,options) {
// A regexp for finding candidate HTML tags
var reLookahead = /&lt;([a-zA-Z\-\$]+)/g;
// Find the next candidate
reLookahead.lastIndex = pos;
var match = reLookahead.exec(source);
while(match) {
// Try to parse the candidate as a tag
var tag = this.parseTag(source,match.index,options);
// Return success
if(tag &amp;&amp; this.isLegalTag(tag)) {
return tag;
}
// Look for the next match
reLookahead.lastIndex = match.index + 1;
match = reLookahead.exec(source);
}
// Failed
return null;
};
exports.isLegalTag = function(tag) {
// Widgets are always OK
if(tag.type !== &quot;element&quot;) {
return true;
// If it's an HTML tag that starts with a dash then it's not legal
} else if(tag.tag.charAt(0) === &quot;-&quot;) {
return false;
} else {
// Otherwise it's OK
return true;
}
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/image.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/image.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for embedding images. For example:
```
[img[https://tiddlywiki.com/fractalveg.jpg]]
[img width=23 height=24 [https://tiddlywiki.com/fractalveg.jpg]]
[img width={{!!width}} height={{!!height}} [https://tiddlywiki.com/fractalveg.jpg]]
[img[Description of image|https://tiddlywiki.com/fractalveg.jpg]]
[img[TiddlerTitle]]
[img[Description of image|TiddlerTitle]]
```
Generates the `&lt;$image&gt;` widget.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;image&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
};
exports.findNextMatch = function(startPos) {
// Find the next tag
this.nextImage = this.findNextImage(this.parser.source,startPos);
return this.nextImage ? this.nextImage.start : undefined;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.nextImage.end;
var node = {
type: &quot;image&quot;,
attributes: this.nextImage.attributes
};
return [node];
};
/*
Find the next image from the current position
*/
exports.findNextImage = function(source,pos) {
// A regexp for finding candidate HTML tags
var reLookahead = /(\[img)/g;
// Find the next candidate
reLookahead.lastIndex = pos;
var match = reLookahead.exec(source);
while(match) {
// Try to parse the candidate as a tag
var tag = this.parseImage(source,match.index);
// Return success
if(tag) {
return tag;
}
// Look for the next match
reLookahead.lastIndex = match.index + 1;
match = reLookahead.exec(source);
}
// Failed
return null;
};
/*
Look for an image at the specified position. Returns null if not found, otherwise returns {type: &quot;image&quot;, attributes: [], isSelfClosing:, start:, end:,}
*/
exports.parseImage = function(source,pos) {
var token,
node = {
type: &quot;image&quot;,
start: pos,
attributes: {}
};
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Look for the `[img`
token = $tw.utils.parseTokenString(source,pos,&quot;[img&quot;);
if(!token) {
return null;
}
pos = token.end;
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Process attributes
if(source.charAt(pos) !== &quot;[&quot;) {
var attribute = $tw.utils.parseAttribute(source,pos);
while(attribute) {
node.attributes[attribute.name] = attribute;
pos = attribute.end;
pos = $tw.utils.skipWhiteSpace(source,pos);
if(source.charAt(pos) !== &quot;[&quot;) {
// Get the next attribute
attribute = $tw.utils.parseAttribute(source,pos);
} else {
attribute = null;
}
}
}
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Look for the `[` after the attributes
token = $tw.utils.parseTokenString(source,pos,&quot;[&quot;);
if(!token) {
return null;
}
pos = token.end;
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Get the source up to the terminating `]]`
token = $tw.utils.parseTokenRegExp(source,pos,/(?:([^|\]]*?)\|)?([^\]]+?)\]\]/g);
if(!token) {
return null;
}
pos = token.end;
if(token.match[1]) {
node.attributes.tooltip = {type: &quot;string&quot;, value: token.match[1].trim()};
}
node.attributes.source = {type: &quot;string&quot;, value: (token.match[2] || &quot;&quot;).trim()};
// Update the end position
node.end = pos;
return node;
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/import.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/import.js
type: application/javascript
module-type: wikirule
Wiki pragma rule for importing variable definitions
```
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;import&quot;;
exports.types = {pragma: true};
/*
Instantiate parse rule
*/
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /^\\import[^\S\n]/mg;
};
/*
Parse the most recent match
*/
exports.parse = function() {
var self = this;
// Move past the pragma invocation
this.parser.pos = this.matchRegExp.lastIndex;
// Parse the filter terminated by a line break
var reMatch = /(.*)(\r?\n)|$/mg;
reMatch.lastIndex = this.parser.pos;
var match = reMatch.exec(this.parser.source);
this.parser.pos = reMatch.lastIndex;
// Parse tree nodes to return
return [{
type: &quot;importvariables&quot;,
attributes: {
filter: {type: &quot;string&quot;, value: match[1]}
},
children: []
}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/list.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/list.js
type: application/javascript
module-type: wikirule
Wiki text block rule for lists. For example:
```
* This is an unordered list
* It has two items
# This is a numbered list
## With a subitem
# And a third item
; This is a term that is being defined
: This is the definition of that term
```
Note that lists can be nested arbitrarily:
```
#** One
#* Two
#** Three
#**** Four
#**# Five
#**## Six
## Seven
### Eight
## Nine
```
A CSS class can be applied to a list item as follows:
```
* List item one
*.active List item two has the class `active`
* List item three
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;list&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /([\*#;:&gt;]+)/mg;
};
var listTypes = {
&quot;*&quot;: {listTag: &quot;ul&quot;, itemTag: &quot;li&quot;},
&quot;#&quot;: {listTag: &quot;ol&quot;, itemTag: &quot;li&quot;},
&quot;;&quot;: {listTag: &quot;dl&quot;, itemTag: &quot;dt&quot;},
&quot;:&quot;: {listTag: &quot;dl&quot;, itemTag: &quot;dd&quot;},
&quot;&gt;&quot;: {listTag: &quot;blockquote&quot;, itemTag: &quot;div&quot;}
};
/*
Parse the most recent match
*/
exports.parse = function() {
// Array of parse tree nodes for the previous row of the list
var listStack = [];
// Cycle through the items in the list
while(true) {
// Match the list marker
var reMatch = /([\*#;:&gt;]+)/mg;
reMatch.lastIndex = this.parser.pos;
var match = reMatch.exec(this.parser.source);
if(!match || match.index !== this.parser.pos) {
break;
}
// Check whether the list type of the top level matches
var listInfo = listTypes[match[0].charAt(0)];
if(listStack.length &gt; 0 &amp;&amp; listStack[0].tag !== listInfo.listTag) {
break;
}
// Move past the list marker
this.parser.pos = match.index + match[0].length;
// Walk through the list markers for the current row
for(var t=0; t&lt;match[0].length; t++) {
listInfo = listTypes[match[0].charAt(t)];
// Remove any stacked up element if we can't re-use it because the list type doesn't match
if(listStack.length &gt; t &amp;&amp; listStack[t].tag !== listInfo.listTag) {
listStack.splice(t,listStack.length - t);
}
// Construct the list element or reuse the previous one at this level
if(listStack.length &lt;= t) {
var listElement = {type: &quot;element&quot;, tag: listInfo.listTag, children: [
{type: &quot;element&quot;, tag: listInfo.itemTag, children: []}
]};
// Link this list element into the last child item of the parent list item
if(t) {
var prevListItem = listStack[t-1].children[listStack[t-1].children.length-1];
prevListItem.children.push(listElement);
}
// Save this element in the stack
listStack[t] = listElement;
} else if(t === (match[0].length - 1)) {
listStack[t].children.push({type: &quot;element&quot;, tag: listInfo.itemTag, children: []});
}
}
if(listStack.length &gt; match[0].length) {
listStack.splice(match[0].length,listStack.length - match[0].length);
}
// Process the body of the list item into the last list item
var lastListChildren = listStack[listStack.length-1].children,
lastListItem = lastListChildren[lastListChildren.length-1],
classes = this.parser.parseClasses();
this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});
var tree = this.parser.parseInlineRun(/(\r?\n)/mg);
lastListItem.children.push.apply(lastListItem.children,tree);
if(classes.length &gt; 0) {
$tw.utils.addClassToParseTreeNode(lastListItem,classes.join(&quot; &quot;));
}
// Consume any whitespace following the list item
this.parser.skipWhitespace();
}
// Return the root element of the list
return [listStack[0]];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/macrocallblock.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/macrocallblock.js
type: application/javascript
module-type: wikirule
Wiki rule for block macro calls
```
&lt;&lt;name value value2&gt;&gt;
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;macrocallblock&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /&lt;&lt;([^&gt;\s]+)(?:\s*)((?:[^&gt;]|(?:&gt;(?!&gt;)))*?)&gt;&gt;(?:\r?\n|$)/mg;
};
/*
Parse the most recent match
*/
exports.parse = function() {
// Get all the details of the match
var macroName = this.match[1],
paramString = this.match[2];
// Move past the macro call
this.parser.pos = this.matchRegExp.lastIndex;
var params = [],
reParam = /\s*(?:([A-Za-z0-9\-_]+)\s*:)?(?:\s*(?:&quot;&quot;&quot;([\s\S]*?)&quot;&quot;&quot;|&quot;([^&quot;]*)&quot;|'([^']*)'|\[\[([^\]]*)\]\]|([^&quot;'\s]+)))/mg,
paramMatch = reParam.exec(paramString);
while(paramMatch) {
// Process this parameter
var paramInfo = {
value: paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5] || paramMatch[6]
};
if(paramMatch[1]) {
paramInfo.name = paramMatch[1];
}
params.push(paramInfo);
// Find the next match
paramMatch = reParam.exec(paramString);
}
return [{
type: &quot;macrocall&quot;,
name: macroName,
params: params,
isBlock: true
}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/macrocallinline.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/macrocallinline.js
type: application/javascript
module-type: wikirule
Wiki rule for macro calls
```
&lt;&lt;name value value2&gt;&gt;
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;macrocallinline&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /&lt;&lt;([^\s&gt;]+)\s*([\s\S]*?)&gt;&gt;/mg;
};
/*
Parse the most recent match
*/
exports.parse = function() {
// Get all the details of the match
var macroName = this.match[1],
paramString = this.match[2];
// Move past the macro call
this.parser.pos = this.matchRegExp.lastIndex;
var params = [],
reParam = /\s*(?:([A-Za-z0-9\-_]+)\s*:)?(?:\s*(?:&quot;&quot;&quot;([\s\S]*?)&quot;&quot;&quot;|&quot;([^&quot;]*)&quot;|'([^']*)'|\[\[([^\]]*)\]\]|([^&quot;'\s]+)))/mg,
paramMatch = reParam.exec(paramString);
while(paramMatch) {
// Process this parameter
var paramInfo = {
value: paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5]|| paramMatch[6]
};
if(paramMatch[1]) {
paramInfo.name = paramMatch[1];
}
params.push(paramInfo);
// Find the next match
paramMatch = reParam.exec(paramString);
}
return [{
type: &quot;macrocall&quot;,
name: macroName,
params: params
}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/macrodef.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/macrodef.js
type: application/javascript
module-type: wikirule
Wiki pragma rule for macro definitions
```
\define name(param:defaultvalue,param2:defaultvalue)
definition text, including $param$ markers
\end
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;macrodef&quot;;
exports.types = {pragma: true};
/*
Instantiate parse rule
*/
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /^\\define\s+([^(\s]+)\(\s*([^)]*)\)(\s*\r?\n)?/mg;
};
/*
Parse the most recent match
*/
exports.parse = function() {
// Move past the macro name and parameters
this.parser.pos = this.matchRegExp.lastIndex;
// Parse the parameters
var paramString = this.match[2],
params = [];
if(paramString !== &quot;&quot;) {
var reParam = /\s*([A-Za-z0-9\-_]+)(?:\s*:\s*(?:&quot;&quot;&quot;([\s\S]*?)&quot;&quot;&quot;|&quot;([^&quot;]*)&quot;|'([^']*)'|\[\[([^\]]*)\]\]|([^&quot;'\s]+)))?/mg,
paramMatch = reParam.exec(paramString);
while(paramMatch) {
// Save the parameter details
var paramInfo = {name: paramMatch[1]},
defaultValue = paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5] || paramMatch[6];
if(defaultValue) {
paramInfo[&quot;default&quot;] = defaultValue;
}
params.push(paramInfo);
// Look for the next parameter
paramMatch = reParam.exec(paramString);
}
}
// Is this a multiline definition?
var reEnd;
if(this.match[3]) {
// If so, the end of the body is marked with \end
reEnd = /(\r?\n\\end[^\S\n\r]*(?:$|\r?\n))/mg;
} else {
// Otherwise, the end of the definition is marked by the end of the line
reEnd = /($|\r?\n)/mg;
// Move past any whitespace
this.parser.pos = $tw.utils.skipWhiteSpace(this.parser.source,this.parser.pos);
}
// Find the end of the definition
reEnd.lastIndex = this.parser.pos;
var text,
endMatch = reEnd.exec(this.parser.source);
if(endMatch) {
text = this.parser.source.substring(this.parser.pos,endMatch.index);
this.parser.pos = endMatch.index + endMatch[0].length;
} else {
// We didn't find the end of the definition, so we'll make it blank
text = &quot;&quot;;
}
// Save the macro definition
return [{
type: &quot;set&quot;,
attributes: {
name: {type: &quot;string&quot;, value: this.match[1]},
value: {type: &quot;string&quot;, value: text}
},
children: [],
params: params,
isMacroDefinition: true
}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/prettyextlink.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/prettyextlink.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for external links. For example:
```
[ext[https://tiddlywiki.com/fractalveg.jpg]]
[ext[Tooltip|https://tiddlywiki.com/fractalveg.jpg]]
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;prettyextlink&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
};
exports.findNextMatch = function(startPos) {
// Find the next tag
this.nextLink = this.findNextLink(this.parser.source,startPos);
return this.nextLink ? this.nextLink.start : undefined;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.nextLink.end;
return [this.nextLink];
};
/*
Find the next link from the current position
*/
exports.findNextLink = function(source,pos) {
// A regexp for finding candidate links
var reLookahead = /(\[ext\[)/g;
// Find the next candidate
reLookahead.lastIndex = pos;
var match = reLookahead.exec(source);
while(match) {
// Try to parse the candidate as a link
var link = this.parseLink(source,match.index);
// Return success
if(link) {
return link;
}
// Look for the next match
reLookahead.lastIndex = match.index + 1;
match = reLookahead.exec(source);
}
// Failed
return null;
};
/*
Look for an link at the specified position. Returns null if not found, otherwise returns {type: &quot;element&quot;, tag: &quot;a&quot;, attributes: [], isSelfClosing:, start:, end:,}
*/
exports.parseLink = function(source,pos) {
var token,
textNode = {
type: &quot;text&quot;
},
node = {
type: &quot;element&quot;,
tag: &quot;a&quot;,
start: pos,
attributes: {
&quot;class&quot;: {type: &quot;string&quot;, value: &quot;tc-tiddlylink-external&quot;},
},
children: [textNode]
};
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Look for the `[ext[`
token = $tw.utils.parseTokenString(source,pos,&quot;[ext[&quot;);
if(!token) {
return null;
}
pos = token.end;
// Look ahead for the terminating `]]`
var closePos = source.indexOf(&quot;]]&quot;,pos);
if(closePos === -1) {
return null;
}
// Look for a `|` separating the tooltip
var splitPos = source.indexOf(&quot;|&quot;,pos);
if(splitPos === -1 || splitPos &gt; closePos) {
splitPos = null;
}
// Pull out the tooltip and URL
var tooltip, URL;
if(splitPos) {
URL = source.substring(splitPos + 1,closePos).trim();
textNode.text = source.substring(pos,splitPos).trim();
} else {
URL = source.substring(pos,closePos).trim();
textNode.text = URL;
}
node.attributes.href = {type: &quot;string&quot;, value: URL};
node.attributes.target = {type: &quot;string&quot;, value: &quot;_blank&quot;};
node.attributes.rel = {type: &quot;string&quot;, value: &quot;noopener noreferrer&quot;};
// Update the end position
node.end = closePos + 2;
return node;
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/prettylink.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/prettylink.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for pretty links. For example:
```
[[Introduction]]
[[Link description|TiddlerTitle]]
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;prettylink&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /\[\[(.*?)(?:\|(.*?))?\]\]/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Process the link
var text = this.match[1],
link = this.match[2] || text;
if($tw.utils.isLinkExternal(link)) {
return [{
type: &quot;element&quot;,
tag: &quot;a&quot;,
attributes: {
href: {type: &quot;string&quot;, value: link},
&quot;class&quot;: {type: &quot;string&quot;, value: &quot;tc-tiddlylink-external&quot;},
target: {type: &quot;string&quot;, value: &quot;_blank&quot;},
rel: {type: &quot;string&quot;, value: &quot;noopener noreferrer&quot;}
},
children: [{
type: &quot;text&quot;, text: text
}]
}];
} else {
return [{
type: &quot;link&quot;,
attributes: {
to: {type: &quot;string&quot;, value: link}
},
children: [{
type: &quot;text&quot;, text: text
}]
}];
}
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/quoteblock.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/quoteblock.js
type: application/javascript
module-type: wikirule
Wiki text rule for quote blocks. For example:
```
&lt;&lt;&lt;.optionalClass(es) optional cited from
a quote
&lt;&lt;&lt;
&lt;&lt;&lt;.optionalClass(es)
a quote
&lt;&lt;&lt; optional cited from
```
Quotes can be quoted by putting more &lt;s
```
&lt;&lt;&lt;
Quote Level 1
&lt;&lt;&lt;&lt;
QuoteLevel 2
&lt;&lt;&lt;&lt;
&lt;&lt;&lt;
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;quoteblock&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /(&lt;&lt;&lt;+)/mg;
};
exports.parse = function() {
var classes = [&quot;tc-quote&quot;];
// Get all the details of the match
var reEndString = &quot;^&quot; + this.match[1] + &quot;(?!&lt;)&quot;;
// Move past the &lt;s
this.parser.pos = this.matchRegExp.lastIndex;
// Parse any classes, whitespace and then the optional cite itself
classes.push.apply(classes, this.parser.parseClasses());
this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});
var cite = this.parser.parseInlineRun(/(\r?\n)/mg);
// before handling the cite, parse the body of the quote
var tree= this.parser.parseBlocks(reEndString);
// If we got a cite, put it before the text
if(cite.length &gt; 0) {
tree.unshift({
type: &quot;element&quot;,
tag: &quot;cite&quot;,
children: cite
});
}
// Parse any optional cite
this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});
cite = this.parser.parseInlineRun(/(\r?\n)/mg);
// If we got a cite, push it
if(cite.length &gt; 0) {
tree.push({
type: &quot;element&quot;,
tag: &quot;cite&quot;,
children: cite
});
}
// Return the blockquote element
return [{
type: &quot;element&quot;,
tag: &quot;blockquote&quot;,
attributes: {
class: { type: &quot;string&quot;, value: classes.join(&quot; &quot;) },
},
children: tree
}];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/rules.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/rules.js
type: application/javascript
module-type: wikirule
Wiki pragma rule for rules specifications
```
\rules except ruleone ruletwo rulethree
\rules only ruleone ruletwo rulethree
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;rules&quot;;
exports.types = {pragma: true};
/*
Instantiate parse rule
*/
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /^\\rules[^\S\n]/mg;
};
/*
Parse the most recent match
*/
exports.parse = function() {
// Move past the pragma invocation
this.parser.pos = this.matchRegExp.lastIndex;
// Parse whitespace delimited tokens terminated by a line break
var reMatch = /[^\S\n]*(\S+)|(\r?\n)/mg,
tokens = [];
reMatch.lastIndex = this.parser.pos;
var match = reMatch.exec(this.parser.source);
while(match &amp;&amp; match.index === this.parser.pos) {
this.parser.pos = reMatch.lastIndex;
// Exit if we've got the line break
if(match[2]) {
break;
}
// Process the token
if(match[1]) {
tokens.push(match[1]);
}
// Match the next token
match = reMatch.exec(this.parser.source);
}
// Process the tokens
if(tokens.length &gt; 0) {
this.parser.amendRules(tokens[0],tokens.slice(1));
}
// No parse tree nodes to return
return [];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/styleblock.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/styleblock.js
type: application/javascript
module-type: wikirule
Wiki text block rule for assigning styles and classes to paragraphs and other blocks. For example:
```
@@.myClass
@@background-color:red;
This paragraph will have the CSS class `myClass`.
* The `&lt;ul&gt;` around this list will also have the class `myClass`
* List item 2
@@
```
Note that classes and styles can be mixed subject to the rule that styles must precede classes. For example
```
@@.myFirstClass.mySecondClass
@@width:100px;.myThirdClass
This is a paragraph
@@
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;styleblock&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /@@((?:[^\.\r\n\s:]+:[^\r\n;]+;)+)?(?:\.([^\r\n\s]+))?\r?\n/mg;
};
exports.parse = function() {
var reEndString = &quot;^@@(?:\\r?\\n)?&quot;;
var classes = [], styles = [];
do {
// Get the class and style
if(this.match[1]) {
styles.push(this.match[1]);
}
if(this.match[2]) {
classes.push(this.match[2].split(&quot;.&quot;).join(&quot; &quot;));
}
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Look for another line of classes and styles
this.match = this.matchRegExp.exec(this.parser.source);
} while(this.match &amp;&amp; this.match.index === this.parser.pos);
// Parse the body
var tree = this.parser.parseBlocks(reEndString);
for(var t=0; t&lt;tree.length; t++) {
if(classes.length &gt; 0) {
$tw.utils.addClassToParseTreeNode(tree[t],classes.join(&quot; &quot;));
}
if(styles.length &gt; 0) {
$tw.utils.addAttributeToParseTreeNode(tree[t],&quot;style&quot;,styles.join(&quot;&quot;));
}
}
return tree;
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/styleinline.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/styleinline.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for assigning styles and classes to inline runs. For example:
```
@@.myClass This is some text with a class@@
@@background-color:red;This is some text with a background colour@@
@@width:100px;.myClass This is some text with a class and a width@@
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;styleinline&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /@@((?:[^\.\r\n\s:]+:[^\r\n;]+;)+)?(\.(?:[^\r\n\s]+)\s+)?/mg;
};
exports.parse = function() {
var reEnd = /@@/g;
// Get the styles and class
var stylesString = this.match[1],
classString = this.match[2] ? this.match[2].split(&quot;.&quot;).join(&quot; &quot;) : undefined;
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Parse the run up to the terminator
var tree = this.parser.parseInlineRun(reEnd,{eatTerminator: true});
// Return the classed span
var node = {
type: &quot;element&quot;,
tag: &quot;span&quot;,
attributes: {
&quot;class&quot;: {type: &quot;string&quot;, value: &quot;tc-inline-style&quot;}
},
children: tree
};
if(classString) {
$tw.utils.addClassToParseTreeNode(node,classString);
}
if(stylesString) {
$tw.utils.addAttributeToParseTreeNode(node,&quot;style&quot;,stylesString);
}
return [node];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/syslink.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/syslink.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for system tiddler links.
Can be suppressed preceding them with `~`.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;syslink&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = new RegExp(
&quot;~?\\$:\\/[&quot; +
$tw.config.textPrimitives.anyLetter.substr(1,$tw.config.textPrimitives.anyLetter.length - 2) +
&quot;\/._-]+&quot;,
&quot;mg&quot;
);
};
exports.parse = function() {
var match = this.match[0];
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Create the link unless it is suppressed
if(match.substr(0,1) === &quot;~&quot;) {
return [{type: &quot;text&quot;, text: match.substr(1)}];
} else {
return [{
type: &quot;link&quot;,
attributes: {
to: {type: &quot;string&quot;, value: match}
},
children: [{
type: &quot;text&quot;,
text: match
}]
}];
}
};
})();</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/table.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/table.js
type: application/javascript
module-type: wikirule
Wiki text block rule for tables.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;table&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /^\|(?:[^\n]*)\|(?:[fhck]?)\r?(?:\n|$)/mg;
};
var processRow = function(prevColumns) {
var cellRegExp = /(?:\|([^\n\|]*)\|)|(\|[fhck]?\r?(?:\n|$))/mg,
cellTermRegExp = /((?:\x20*)\|)/mg,
tree = [],
col = 0,
colSpanCount = 1,
prevCell,
vAlign;
// Match a single cell
cellRegExp.lastIndex = this.parser.pos;
var cellMatch = cellRegExp.exec(this.parser.source);
while(cellMatch &amp;&amp; cellMatch.index === this.parser.pos) {
if(cellMatch[1] === &quot;~&quot;) {
// Rowspan
var last = prevColumns[col];
if(last) {
last.rowSpanCount++;
$tw.utils.addAttributeToParseTreeNode(last.element,&quot;rowspan&quot;,last.rowSpanCount);
vAlign = $tw.utils.getAttributeValueFromParseTreeNode(last.element,&quot;valign&quot;,&quot;center&quot;);
$tw.utils.addAttributeToParseTreeNode(last.element,&quot;valign&quot;,vAlign);
if(colSpanCount &gt; 1) {
$tw.utils.addAttributeToParseTreeNode(last.element,&quot;colspan&quot;,colSpanCount);
colSpanCount = 1;
}
}
// Move to just before the `|` terminating the cell
this.parser.pos = cellRegExp.lastIndex - 1;
} else if(cellMatch[1] === &quot;&gt;&quot;) {
// Colspan
colSpanCount++;
// Move to just before the `|` terminating the cell
this.parser.pos = cellRegExp.lastIndex - 1;
} else if(cellMatch[1] === &quot;&lt;&quot; &amp;&amp; prevCell) {
colSpanCount = 1 + $tw.utils.getAttributeValueFromParseTreeNode(prevCell,&quot;colspan&quot;,1);
$tw.utils.addAttributeToParseTreeNode(prevCell,&quot;colspan&quot;,colSpanCount);
colSpanCount = 1;
// Move to just before the `|` terminating the cell
this.parser.pos = cellRegExp.lastIndex - 1;
} else if(cellMatch[2]) {
// End of row
if(prevCell &amp;&amp; colSpanCount &gt; 1) {
if(prevCell.attributes &amp;&amp; prevCell.attributes &amp;&amp; prevCell.attributes.colspan) {
colSpanCount += prevCell.attributes.colspan.value;
} else {
colSpanCount -= 1;
}
$tw.utils.addAttributeToParseTreeNode(prevCell,&quot;colspan&quot;,colSpanCount);
}
this.parser.pos = cellRegExp.lastIndex - 1;
break;
} else {
// For ordinary cells, step beyond the opening `|`
this.parser.pos++;
// Look for a space at the start of the cell
var spaceLeft = false;
vAlign = null;
if(this.parser.source.substr(this.parser.pos).search(/^\^([^\^]|\^\^)/) === 0) {
vAlign = &quot;top&quot;;
} else if(this.parser.source.substr(this.parser.pos).search(/^,([^,]|,,)/) === 0) {
vAlign = &quot;bottom&quot;;
}
if(vAlign) {
this.parser.pos++;
}
var chr = this.parser.source.substr(this.parser.pos,1);
while(chr === &quot; &quot;) {
spaceLeft = true;
this.parser.pos++;
chr = this.parser.source.substr(this.parser.pos,1);
}
// Check whether this is a heading cell
var cell;
if(chr === &quot;!&quot;) {
this.parser.pos++;
cell = {type: &quot;element&quot;, tag: &quot;th&quot;, children: []};
} else {
cell = {type: &quot;element&quot;, tag: &quot;td&quot;, children: []};
}
tree.push(cell);
// Record information about this cell
prevCell = cell;
prevColumns[col] = {rowSpanCount:1,element:cell};
// Check for a colspan
if(colSpanCount &gt; 1) {
$tw.utils.addAttributeToParseTreeNode(cell,&quot;colspan&quot;,colSpanCount);
colSpanCount = 1;
}
// Parse the cell
cell.children = this.parser.parseInlineRun(cellTermRegExp,{eatTerminator: true});
// Set the alignment for the cell
if(vAlign) {
$tw.utils.addAttributeToParseTreeNode(cell,&quot;valign&quot;,vAlign);
}
if(this.parser.source.substr(this.parser.pos - 2,1) === &quot; &quot;) { // spaceRight
$tw.utils.addAttributeToParseTreeNode(cell,&quot;align&quot;,spaceLeft ? &quot;center&quot; : &quot;left&quot;);
} else if(spaceLeft) {
$tw.utils.addAttributeToParseTreeNode(cell,&quot;align&quot;,&quot;right&quot;);
}
// Move back to the closing `|`
this.parser.pos--;
}
col++;
cellRegExp.lastIndex = this.parser.pos;
cellMatch = cellRegExp.exec(this.parser.source);
}
return tree;
};
exports.parse = function() {
var rowContainerTypes = {&quot;c&quot;:&quot;caption&quot;, &quot;h&quot;:&quot;thead&quot;, &quot;&quot;:&quot;tbody&quot;, &quot;f&quot;:&quot;tfoot&quot;},
table = {type: &quot;element&quot;, tag: &quot;table&quot;, children: []},
rowRegExp = /^\|([^\n]*)\|([fhck]?)\r?(?:\n|$)/mg,
rowTermRegExp = /(\|(?:[fhck]?)\r?(?:\n|$))/mg,
prevColumns = [],
currRowType,
rowContainer,
rowCount = 0;
// Match the row
rowRegExp.lastIndex = this.parser.pos;
var rowMatch = rowRegExp.exec(this.parser.source);
while(rowMatch &amp;&amp; rowMatch.index === this.parser.pos) {
var rowType = rowMatch[2];
// Check if it is a class assignment
if(rowType === &quot;k&quot;) {
$tw.utils.addClassToParseTreeNode(table,rowMatch[1]);
this.parser.pos = rowMatch.index + rowMatch[0].length;
} else {
// Otherwise, create a new row if this one is of a different type
if(rowType !== currRowType) {
rowContainer = {type: &quot;element&quot;, tag: rowContainerTypes[rowType], children: []};
table.children.push(rowContainer);
currRowType = rowType;
}
// Is this a caption row?
if(currRowType === &quot;c&quot;) {
// If so, move past the opening `|` of the row
this.parser.pos++;
// Move the caption to the first row if it isn't already
if(table.children.length !== 1) {
table.children.pop(); // Take rowContainer out of the children array
table.children.splice(0,0,rowContainer); // Insert it at the bottom
}
// Set the alignment - TODO: figure out why TW did this
// rowContainer.attributes.align = rowCount === 0 ? &quot;top&quot; : &quot;bottom&quot;;
// Parse the caption
rowContainer.children = this.parser.parseInlineRun(rowTermRegExp,{eatTerminator: true});
} else {
// Create the row
var theRow = {type: &quot;element&quot;, tag: &quot;tr&quot;, children: []};
$tw.utils.addClassToParseTreeNode(theRow,rowCount%2 ? &quot;oddRow&quot; : &quot;evenRow&quot;);
rowContainer.children.push(theRow);
// Process the row
theRow.children = processRow.call(this,prevColumns);
this.parser.pos = rowMatch.index + rowMatch[0].length;
// Increment the row count
rowCount++;
}
}
rowMatch = rowRegExp.exec(this.parser.source);
}
return [table];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/transcludeblock.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/transcludeblock.js
type: application/javascript
module-type: wikirule
Wiki text rule for block-level transclusion. For example:
```
{{MyTiddler}}
{{MyTiddler||TemplateTitle}}
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;transcludeblock&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /\{\{([^\{\}\|]*)(?:\|\|([^\|\{\}]+))?\}\}(?:\r?\n|$)/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Get the match details
var template = $tw.utils.trim(this.match[2]),
textRef = $tw.utils.trim(this.match[1]);
// Prepare the transclude widget
var transcludeNode = {
type: &quot;transclude&quot;,
attributes: {},
isBlock: true
};
// Prepare the tiddler widget
var tr, targetTitle, targetField, targetIndex, tiddlerNode;
if(textRef) {
tr = $tw.utils.parseTextReference(textRef);
targetTitle = tr.title;
targetField = tr.field;
targetIndex = tr.index;
tiddlerNode = {
type: &quot;tiddler&quot;,
attributes: {
tiddler: {type: &quot;string&quot;, value: targetTitle}
},
isBlock: true,
children: [transcludeNode]
};
}
if(template) {
transcludeNode.attributes.tiddler = {type: &quot;string&quot;, value: template};
if(textRef) {
return [tiddlerNode];
} else {
return [transcludeNode];
}
} else {
if(textRef) {
transcludeNode.attributes.tiddler = {type: &quot;string&quot;, value: targetTitle};
if(targetField) {
transcludeNode.attributes.field = {type: &quot;string&quot;, value: targetField};
}
if(targetIndex) {
transcludeNode.attributes.index = {type: &quot;string&quot;, value: targetIndex};
}
return [tiddlerNode];
} else {
return [transcludeNode];
}
}
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/transcludeinline.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/transcludeinline.js
type: application/javascript
module-type: wikirule
Wiki text rule for inline-level transclusion. For example:
```
{{MyTiddler}}
{{MyTiddler||TemplateTitle}}
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;transcludeinline&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /\{\{([^\{\}\|]*)(?:\|\|([^\|\{\}]+))?\}\}/mg;
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Get the match details
var template = $tw.utils.trim(this.match[2]),
textRef = $tw.utils.trim(this.match[1]);
// Prepare the transclude widget
var transcludeNode = {
type: &quot;transclude&quot;,
attributes: {}
};
// Prepare the tiddler widget
var tr, targetTitle, targetField, targetIndex, tiddlerNode;
if(textRef) {
tr = $tw.utils.parseTextReference(textRef);
targetTitle = tr.title;
targetField = tr.field;
targetIndex = tr.index;
tiddlerNode = {
type: &quot;tiddler&quot;,
attributes: {
tiddler: {type: &quot;string&quot;, value: targetTitle}
},
children: [transcludeNode]
};
}
if(template) {
transcludeNode.attributes.tiddler = {type: &quot;string&quot;, value: template};
if(textRef) {
return [tiddlerNode];
} else {
return [transcludeNode];
}
} else {
if(textRef) {
transcludeNode.attributes.tiddler = {type: &quot;string&quot;, value: targetTitle};
if(targetField) {
transcludeNode.attributes.field = {type: &quot;string&quot;, value: targetField};
}
if(targetIndex) {
transcludeNode.attributes.index = {type: &quot;string&quot;, value: targetIndex};
}
return [tiddlerNode];
} else {
return [transcludeNode];
}
}
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/typedblock.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/typedblock.js
type: application/javascript
module-type: wikirule
Wiki text rule for typed blocks. For example:
```
$$$.js
This will be rendered as JavaScript
$$$
$$$.svg
&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;150&quot; height=&quot;100&quot;&gt;
&lt;circle cx=&quot;100&quot; cy=&quot;50&quot; r=&quot;40&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; fill=&quot;red&quot; /&gt;
&lt;/svg&gt;
$$$
$$$text/vnd.tiddlywiki&gt;text/html
This will be rendered as an //HTML representation// of WikiText
$$$
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var widget = require(&quot;$:/core/modules/widgets/widget.js&quot;);
exports.name = &quot;typedblock&quot;;
exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /\$\$\$([^ &gt;\r\n]*)(?: *&gt; *([^ \r\n]+))?\r?\n/mg;
};
exports.parse = function() {
var reEnd = /\r?\n\$\$\$\r?(?:\n|$)/mg;
// Save the type
var parseType = this.match[1],
renderType = this.match[2];
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Look for the end of the block
reEnd.lastIndex = this.parser.pos;
var match = reEnd.exec(this.parser.source),
text;
// Process the block
if(match) {
text = this.parser.source.substring(this.parser.pos,match.index);
this.parser.pos = match.index + match[0].length;
} else {
text = this.parser.source.substr(this.parser.pos);
this.parser.pos = this.parser.sourceLength;
}
// Parse the block according to the specified type
var parser = this.parser.wiki.parseText(parseType,text,{defaultType: &quot;text/plain&quot;});
// If there's no render type, just return the parse tree
if(!renderType) {
return parser.tree;
} else {
// Otherwise, render to the rendertype and return in a &lt;PRE&gt; tag
var widgetNode = this.parser.wiki.makeWidget(parser),
container = $tw.fakeDocument.createElement(&quot;div&quot;);
widgetNode.render(container,null);
text = renderType === &quot;text/html&quot; ? container.innerHTML : container.textContent;
return [{
type: &quot;element&quot;,
tag: &quot;pre&quot;,
children: [{
type: &quot;text&quot;,
text: text
}]
}];
}
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/whitespace.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/whitespace.js
type: application/javascript
module-type: wikirule
Wiki pragma rule for whitespace specifications
```
\whitespace trim
\whitespace notrim
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;whitespace&quot;;
exports.types = {pragma: true};
/*
Instantiate parse rule
*/
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /^\\whitespace[^\S\n]/mg;
};
/*
Parse the most recent match
*/
exports.parse = function() {
var self = this;
// Move past the pragma invocation
this.parser.pos = this.matchRegExp.lastIndex;
// Parse whitespace delimited tokens terminated by a line break
var reMatch = /[^\S\n]*(\S+)|(\r?\n)/mg,
tokens = [];
reMatch.lastIndex = this.parser.pos;
var match = reMatch.exec(this.parser.source);
while(match &amp;&amp; match.index === this.parser.pos) {
this.parser.pos = reMatch.lastIndex;
// Exit if we've got the line break
if(match[2]) {
break;
}
// Process the token
if(match[1]) {
tokens.push(match[1]);
}
// Match the next token
match = reMatch.exec(this.parser.source);
}
// Process the tokens
$tw.utils.each(tokens,function(token) {
switch(token) {
case &quot;trim&quot;:
self.parser.configTrimWhiteSpace = true;
break;
case &quot;notrim&quot;:
self.parser.configTrimWhiteSpace = false;
break;
}
});
// No parse tree nodes to return
return [];
};
})();
</pre>
</div>
<div module-type="wikirule" title="$:/core/modules/parsers/wikiparser/rules/wikilink.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/wikilink.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for wiki links. For example:
```
AWikiLink
AnotherLink
~SuppressedLink
```
Precede a camel case word with `~` to prevent it from being recognised as a link.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.name = &quot;wikilink&quot;;
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = new RegExp($tw.config.textPrimitives.unWikiLink + &quot;?&quot; + $tw.config.textPrimitives.wikiLink,&quot;mg&quot;);
};
/*
Parse the most recent match
*/
exports.parse = function() {
// Get the details of the match
var linkText = this.match[0];
// Move past the macro call
this.parser.pos = this.matchRegExp.lastIndex;
// If the link starts with the unwikilink character then just output it as plain text
if(linkText.substr(0,1) === $tw.config.textPrimitives.unWikiLink) {
return [{type: &quot;text&quot;, text: linkText.substr(1)}];
}
// If the link has been preceded with a blocked letter then don't treat it as a link
if(this.match.index &gt; 0) {
var preRegExp = new RegExp($tw.config.textPrimitives.blockPrefixLetters,&quot;mg&quot;);
preRegExp.lastIndex = this.match.index-1;
var preMatch = preRegExp.exec(this.parser.source);
if(preMatch &amp;&amp; preMatch.index === this.match.index-1) {
return [{type: &quot;text&quot;, text: linkText}];
}
}
return [{
type: &quot;link&quot;,
attributes: {
to: {type: &quot;string&quot;, value: linkText}
},
children: [{
type: &quot;text&quot;,
text: linkText
}]
}];
};
})();
</pre>
</div>
<div module-type="global" title="$:/core/modules/parsers/wikiparser/rules/wikirulebase.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/rules/wikirulebase.js
type: application/javascript
module-type: global
Base class for wiki parser rules
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
This constructor is always overridden with a blank constructor, and so shouldn't be used
*/
var WikiRuleBase = function() {
};
/*
To be overridden by individual rules
*/
WikiRuleBase.prototype.init = function(parser) {
this.parser = parser;
};
/*
Default implementation of findNextMatch uses RegExp matching
*/
WikiRuleBase.prototype.findNextMatch = function(startPos) {
this.matchRegExp.lastIndex = startPos;
this.match = this.matchRegExp.exec(this.parser.source);
return this.match ? this.match.index : undefined;
};
exports.WikiRuleBase = WikiRuleBase;
})();
</pre>
</div>
<div module-type="parser" title="$:/core/modules/parsers/wikiparser/wikiparser.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/parsers/wikiparser/wikiparser.js
type: application/javascript
module-type: parser
The wiki text parser processes blocks of source text into a parse tree.
The parse tree is made up of nested arrays of these JavaScript objects:
{type: &quot;element&quot;, tag: &lt;string&gt;, attributes: {}, children: []} - an HTML element
{type: &quot;text&quot;, text: &lt;string&gt;} - a text node
{type: &quot;entity&quot;, value: &lt;string&gt;} - an entity
{type: &quot;raw&quot;, html: &lt;string&gt;} - raw HTML
Attributes are stored as hashmaps of the following objects:
{type: &quot;string&quot;, value: &lt;string&gt;} - literal string
{type: &quot;indirect&quot;, textReference: &lt;textReference&gt;} - indirect through a text reference
{type: &quot;macro&quot;, macro: &lt;TBD&gt;} - indirect through a macro invocation
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var WikiParser = function(type,text,options) {
this.wiki = options.wiki;
var self = this;
// Check for an externally linked tiddler
if($tw.browser &amp;&amp; (text || &quot;&quot;) === &quot;&quot; &amp;&amp; options._canonical_uri) {
this.loadRemoteTiddler(options._canonical_uri);
text = $tw.language.getRawString(&quot;LazyLoadingWarning&quot;);
}
// Initialise the classes if we don't have them already
if(!this.pragmaRuleClasses) {
WikiParser.prototype.pragmaRuleClasses = $tw.modules.createClassesFromModules(&quot;wikirule&quot;,&quot;pragma&quot;,$tw.WikiRuleBase);
this.setupRules(WikiParser.prototype.pragmaRuleClasses,&quot;$:/config/WikiParserRules/Pragmas/&quot;);
}
if(!this.blockRuleClasses) {
WikiParser.prototype.blockRuleClasses = $tw.modules.createClassesFromModules(&quot;wikirule&quot;,&quot;block&quot;,$tw.WikiRuleBase);
this.setupRules(WikiParser.prototype.blockRuleClasses,&quot;$:/config/WikiParserRules/Block/&quot;);
}
if(!this.inlineRuleClasses) {
WikiParser.prototype.inlineRuleClasses = $tw.modules.createClassesFromModules(&quot;wikirule&quot;,&quot;inline&quot;,$tw.WikiRuleBase);
this.setupRules(WikiParser.prototype.inlineRuleClasses,&quot;$:/config/WikiParserRules/Inline/&quot;);
}
// Save the parse text
this.type = type || &quot;text/vnd.tiddlywiki&quot;;
this.source = text || &quot;&quot;;
this.sourceLength = this.source.length;
// Flag for ignoring whitespace
this.configTrimWhiteSpace = false;
// Set current parse position
this.pos = 0;
// Instantiate the pragma parse rules
this.pragmaRules = this.instantiateRules(this.pragmaRuleClasses,&quot;pragma&quot;,0);
// Instantiate the parser block and inline rules
this.blockRules = this.instantiateRules(this.blockRuleClasses,&quot;block&quot;,0);
this.inlineRules = this.instantiateRules(this.inlineRuleClasses,&quot;inline&quot;,0);
// Parse any pragmas
this.tree = [];
var topBranch = this.parsePragmas();
// Parse the text into inline runs or blocks
if(options.parseAsInline) {
topBranch.push.apply(topBranch,this.parseInlineRun());
} else {
topBranch.push.apply(topBranch,this.parseBlocks());
}
// Return the parse tree
};
/*
*/
WikiParser.prototype.loadRemoteTiddler = function(url) {
var self = this;
$tw.utils.httpRequest({
url: url,
type: &quot;GET&quot;,
callback: function(err,data) {
if(!err) {
var tiddlers = self.wiki.deserializeTiddlers(&quot;.tid&quot;,data,self.wiki.getCreationFields());
$tw.utils.each(tiddlers,function(tiddler) {
tiddler[&quot;_canonical_uri&quot;] = url;
});
if(tiddlers) {
self.wiki.addTiddlers(tiddlers);
}
}
}
});
};
/*
*/
WikiParser.prototype.setupRules = function(proto,configPrefix) {
var self = this;
if(!$tw.safemode) {
$tw.utils.each(proto,function(object,name) {
if(self.wiki.getTiddlerText(configPrefix + name,&quot;enable&quot;) !== &quot;enable&quot;) {
delete proto[name];
}
});
}
};
/*
Instantiate an array of parse rules
*/
WikiParser.prototype.instantiateRules = function(classes,type,startPos) {
var rulesInfo = [],
self = this;
$tw.utils.each(classes,function(RuleClass) {
// Instantiate the rule
var rule = new RuleClass(self);
rule.is = {};
rule.is[type] = true;
rule.init(self);
var matchIndex = rule.findNextMatch(startPos);
if(matchIndex !== undefined) {
rulesInfo.push({
rule: rule,
matchIndex: matchIndex
});
}
});
return rulesInfo;
};
/*
Skip any whitespace at the current position. Options are:
treatNewlinesAsNonWhitespace: true if newlines are NOT to be treated as whitespace
*/
WikiParser.prototype.skipWhitespace = function(options) {
options = options || {};
var whitespaceRegExp = options.treatNewlinesAsNonWhitespace ? /([^\S\n]+)/mg : /(\s+)/mg;
whitespaceRegExp.lastIndex = this.pos;
var whitespaceMatch = whitespaceRegExp.exec(this.source);
if(whitespaceMatch &amp;&amp; whitespaceMatch.index === this.pos) {
this.pos = whitespaceRegExp.lastIndex;
}
};
/*
Get the next match out of an array of parse rule instances
*/
WikiParser.prototype.findNextMatch = function(rules,startPos) {
// Find the best matching rule by finding the closest match position
var matchingRule,
matchingRulePos = this.sourceLength;
// Step through each rule
for(var t=0; t&lt;rules.length; t++) {
var ruleInfo = rules[t];
// Ask the rule to get the next match if we've moved past the current one
if(ruleInfo.matchIndex !== undefined &amp;&amp; ruleInfo.matchIndex &lt; startPos) {
ruleInfo.matchIndex = ruleInfo.rule.findNextMatch(startPos);
}
// Adopt this match if it's closer than the current best match
if(ruleInfo.matchIndex !== undefined &amp;&amp; ruleInfo.matchIndex &lt;= matchingRulePos) {
matchingRule = ruleInfo;
matchingRulePos = ruleInfo.matchIndex;
}
}
return matchingRule;
};
/*
Parse any pragmas at the beginning of a block of parse text
*/
WikiParser.prototype.parsePragmas = function() {
var currentTreeBranch = this.tree;
while(true) {
// Skip whitespace
this.skipWhitespace();
// Check for the end of the text
if(this.pos &gt;= this.sourceLength) {
break;
}
// Check if we've arrived at a pragma rule match
var nextMatch = this.findNextMatch(this.pragmaRules,this.pos);
// If not, just exit
if(!nextMatch || nextMatch.matchIndex !== this.pos) {
break;
}
// Process the pragma rule
var subTree = nextMatch.rule.parse();
if(subTree.length &gt; 0) {
// Quick hack; we only cope with a single parse tree node being returned, which is true at the moment
currentTreeBranch.push.apply(currentTreeBranch,subTree);
subTree[0].children = [];
currentTreeBranch = subTree[0].children;
}
}
return currentTreeBranch;
};
/*
Parse a block from the current position
terminatorRegExpString: optional regular expression string that identifies the end of plain paragraphs. Must not include capturing parenthesis
*/
WikiParser.prototype.parseBlock = function(terminatorRegExpString) {
var terminatorRegExp = terminatorRegExpString ? new RegExp(&quot;(&quot; + terminatorRegExpString + &quot;|\\r?\\n\\r?\\n)&quot;,&quot;mg&quot;) : /(\r?\n\r?\n)/mg;
this.skipWhitespace();
if(this.pos &gt;= this.sourceLength) {
return [];
}
// Look for a block rule that applies at the current position
var nextMatch = this.findNextMatch(this.blockRules,this.pos);
if(nextMatch &amp;&amp; nextMatch.matchIndex === this.pos) {
return nextMatch.rule.parse();
}
// Treat it as a paragraph if we didn't find a block rule
return [{type: &quot;element&quot;, tag: &quot;p&quot;, children: this.parseInlineRun(terminatorRegExp)}];
};
/*
Parse a series of blocks of text until a terminating regexp is encountered or the end of the text
terminatorRegExpString: terminating regular expression
*/
WikiParser.prototype.parseBlocks = function(terminatorRegExpString) {
if(terminatorRegExpString) {
return this.parseBlocksTerminated(terminatorRegExpString);
} else {
return this.parseBlocksUnterminated();
}
};
/*
Parse a block from the current position to the end of the text
*/
WikiParser.prototype.parseBlocksUnterminated = function() {
var tree = [];
while(this.pos &lt; this.sourceLength) {
tree.push.apply(tree,this.parseBlock());
}
return tree;
};
/*
Parse blocks of text until a terminating regexp is encountered
*/
WikiParser.prototype.parseBlocksTerminated = function(terminatorRegExpString) {
var terminatorRegExp = new RegExp(&quot;(&quot; + terminatorRegExpString + &quot;)&quot;,&quot;mg&quot;),
tree = [];
// Skip any whitespace
this.skipWhitespace();
// Check if we've got the end marker
terminatorRegExp.lastIndex = this.pos;
var match = terminatorRegExp.exec(this.source);
// Parse the text into blocks
while(this.pos &lt; this.sourceLength &amp;&amp; !(match &amp;&amp; match.index === this.pos)) {
var blocks = this.parseBlock(terminatorRegExpString);
tree.push.apply(tree,blocks);
// Skip any whitespace
this.skipWhitespace();
// Check if we've got the end marker
terminatorRegExp.lastIndex = this.pos;
match = terminatorRegExp.exec(this.source);
}
if(match &amp;&amp; match.index === this.pos) {
this.pos = match.index + match[0].length;
}
return tree;
};
/*
Parse a run of text at the current position
terminatorRegExp: a regexp at which to stop the run
options: see below
Options available:
eatTerminator: move the parse position past any encountered terminator (default false)
*/
WikiParser.prototype.parseInlineRun = function(terminatorRegExp,options) {
if(terminatorRegExp) {
return this.parseInlineRunTerminated(terminatorRegExp,options);
} else {
return this.parseInlineRunUnterminated(options);
}
};
WikiParser.prototype.parseInlineRunUnterminated = function(options) {
var tree = [];
// Find the next occurrence of an inline rule
var nextMatch = this.findNextMatch(this.inlineRules,this.pos);
// Loop around the matches until we've reached the end of the text
while(this.pos &lt; this.sourceLength &amp;&amp; nextMatch) {
// Process the text preceding the run rule
if(nextMatch.matchIndex &gt; this.pos) {
this.pushTextWidget(tree,this.source.substring(this.pos,nextMatch.matchIndex));
this.pos = nextMatch.matchIndex;
}
// Process the run rule
tree.push.apply(tree,nextMatch.rule.parse());
// Look for the next run rule
nextMatch = this.findNextMatch(this.inlineRules,this.pos);
}
// Process the remaining text
if(this.pos &lt; this.sourceLength) {
this.pushTextWidget(tree,this.source.substr(this.pos));
}
this.pos = this.sourceLength;
return tree;
};
WikiParser.prototype.parseInlineRunTerminated = function(terminatorRegExp,options) {
options = options || {};
var tree = [];
// Find the next occurrence of the terminator
terminatorRegExp.lastIndex = this.pos;
var terminatorMatch = terminatorRegExp.exec(this.source);
// Find the next occurrence of a inlinerule
var inlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos);
// Loop around until we've reached the end of the text
while(this.pos &lt; this.sourceLength &amp;&amp; (terminatorMatch || inlineRuleMatch)) {
// Return if we've found the terminator, and it precedes any inline rule match
if(terminatorMatch) {
if(!inlineRuleMatch || inlineRuleMatch.matchIndex &gt;= terminatorMatch.index) {
if(terminatorMatch.index &gt; this.pos) {
this.pushTextWidget(tree,this.source.substring(this.pos,terminatorMatch.index));
}
this.pos = terminatorMatch.index;
if(options.eatTerminator) {
this.pos += terminatorMatch[0].length;
}
return tree;
}
}
// Process any inline rule, along with the text preceding it
if(inlineRuleMatch) {
// Preceding text
if(inlineRuleMatch.matchIndex &gt; this.pos) {
this.pushTextWidget(tree,this.source.substring(this.pos,inlineRuleMatch.matchIndex));
this.pos = inlineRuleMatch.matchIndex;
}
// Process the inline rule
tree.push.apply(tree,inlineRuleMatch.rule.parse());
// Look for the next inline rule
inlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos);
// Look for the next terminator match
terminatorRegExp.lastIndex = this.pos;
terminatorMatch = terminatorRegExp.exec(this.source);
}
}
// Process the remaining text
if(this.pos &lt; this.sourceLength) {
this.pushTextWidget(tree,this.source.substr(this.pos));
}
this.pos = this.sourceLength;
return tree;
};
/*
Push a text widget onto an array, respecting the configTrimWhiteSpace setting
*/
WikiParser.prototype.pushTextWidget = function(array,text) {
if(this.configTrimWhiteSpace) {
text = $tw.utils.trim(text);
}
if(text) {
array.push({type: &quot;text&quot;, text: text});
}
};
/*
Parse zero or more class specifiers `.classname`
*/
WikiParser.prototype.parseClasses = function() {
var classRegExp = /\.([^\s\.]+)/mg,
classNames = [];
classRegExp.lastIndex = this.pos;
var match = classRegExp.exec(this.source);
while(match &amp;&amp; match.index === this.pos) {
this.pos = match.index + match[0].length;
classNames.push(match[1]);
match = classRegExp.exec(this.source);
}
return classNames;
};
/*
Amend the rules used by this instance of the parser
type: `only` keeps just the named rules, `except` keeps all but the named rules
names: array of rule names
*/
WikiParser.prototype.amendRules = function(type,names) {
names = names || [];
// Define the filter function
var keepFilter;
if(type === &quot;only&quot;) {
keepFilter = function(name) {
return names.indexOf(name) !== -1;
};
} else if(type === &quot;except&quot;) {
keepFilter = function(name) {
return names.indexOf(name) === -1;
};
} else {
return;
}
// Define a function to process each of our rule arrays
var processRuleArray = function(ruleArray) {
for(var t=ruleArray.length-1; t&gt;=0; t--) {
if(!keepFilter(ruleArray[t].rule.name)) {
ruleArray.splice(t,1);
}
}
};
// Process each rule array
processRuleArray(this.pragmaRules);
processRuleArray(this.blockRules);
processRuleArray(this.inlineRules);
};
exports[&quot;text/vnd.tiddlywiki&quot;] = WikiParser;
})();
</pre>
</div>
<div module-type="global" title="$:/core/modules/pluginswitcher.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/pluginswitcher.js
type: application/javascript
module-type: global
Manages switching plugins for themes and languages.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
options:
wiki: wiki store to be used
pluginType: type of plugin to be switched
controllerTitle: title of tiddler used to control switching of this resource
defaultPlugins: array of default plugins to be used if nominated plugin isn't found
onSwitch: callback when plugin is switched (single parameter is array of plugin titles)
*/
function PluginSwitcher(options) {
this.wiki = options.wiki;
this.pluginType = options.pluginType;
this.controllerTitle = options.controllerTitle;
this.defaultPlugins = options.defaultPlugins || [];
this.onSwitch = options.onSwitch;
// Switch to the current plugin
this.switchPlugins();
// Listen for changes to the selected plugin
var self = this;
this.wiki.addEventListener(&quot;change&quot;,function(changes) {
if($tw.utils.hop(changes,self.controllerTitle)) {
self.switchPlugins();
}
});
}
PluginSwitcher.prototype.switchPlugins = function() {
// Get the name of the current theme
var selectedPluginTitle = this.wiki.getTiddlerText(this.controllerTitle);
// If it doesn't exist, then fallback to one of the default themes
var index = 0;
while(!this.wiki.getTiddler(selectedPluginTitle) &amp;&amp; index &lt; this.defaultPlugins.length) {
selectedPluginTitle = this.defaultPlugins[index++];
}
// Accumulate the titles of the plugins that we need to load
var plugins = [],
self = this,
accumulatePlugin = function(title) {
var tiddler = self.wiki.getTiddler(title);
if(tiddler &amp;&amp; tiddler.isPlugin() &amp;&amp; plugins.indexOf(title) === -1) {
plugins.push(title);
var pluginInfo = JSON.parse(self.wiki.getTiddlerText(title)),
dependents = $tw.utils.parseStringArray(tiddler.fields.dependents || &quot;&quot;);
$tw.utils.each(dependents,function(title) {
accumulatePlugin(title);
});
}
};
accumulatePlugin(selectedPluginTitle);
// Read the plugin info for the incoming plugins
var changes = $tw.wiki.readPluginInfo(plugins);
// Unregister any existing theme tiddlers
var unregisteredTiddlers = $tw.wiki.unregisterPluginTiddlers(this.pluginType);
// Register any new theme tiddlers
var registeredTiddlers = $tw.wiki.registerPluginTiddlers(this.pluginType,plugins);
// Unpack the current theme tiddlers
$tw.wiki.unpackPluginTiddlers();
// Call the switch handler
if(this.onSwitch) {
this.onSwitch(plugins);
}
};
exports.PluginSwitcher = PluginSwitcher;
})();
</pre>
</div>
<div module-type="global" title="$:/core/modules/saver-handler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/saver-handler.js
type: application/javascript
module-type: global
The saver handler tracks changes to the store and handles saving the entire wiki via saver modules.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Instantiate the saver handler with the following options:
wiki: wiki to be synced
dirtyTracking: true if dirty tracking should be performed
*/
function SaverHandler(options) {
var self = this;
this.wiki = options.wiki;
this.dirtyTracking = options.dirtyTracking;
this.preloadDirty = options.preloadDirty || [];
this.pendingAutoSave = false;
// Make a logger
this.logger = new $tw.utils.Logger(&quot;saver-handler&quot;);
// Initialise our savers
if($tw.browser) {
this.initSavers();
}
// Only do dirty tracking if required
if($tw.browser &amp;&amp; this.dirtyTracking) {
// Compile the dirty tiddler filter
this.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));
// Count of changes that have not yet been saved
var filteredChanges = self.filterFn.call(self.wiki,function(iterator) {
$tw.utils.each(self.preloadDirty,function(title) {
var tiddler = self.wiki.getTiddler(title);
iterator(tiddler,title);
});
});
this.numChanges = filteredChanges.length;
// Listen out for changes to tiddlers
this.wiki.addEventListener(&quot;change&quot;,function(changes) {
// Filter the changes so that we only count changes to tiddlers that we care about
var filteredChanges = self.filterFn.call(self.wiki,function(iterator) {
$tw.utils.each(changes,function(change,title) {
var tiddler = self.wiki.getTiddler(title);
iterator(tiddler,title);
});
});
// Adjust the number of changes
self.numChanges += filteredChanges.length;
self.updateDirtyStatus();
// Do any autosave if one is pending and there's no more change events
if(self.pendingAutoSave &amp;&amp; self.wiki.getSizeOfTiddlerEventQueue() === 0) {
// Check if we're dirty
if(self.numChanges &gt; 0) {
self.saveWiki({
method: &quot;autosave&quot;,
downloadType: &quot;text/plain&quot;
});
}
self.pendingAutoSave = false;
}
});
// Listen for the autosave event
$tw.rootWidget.addEventListener(&quot;tm-auto-save-wiki&quot;,function(event) {
// Do the autosave unless there are outstanding tiddler change events
if(self.wiki.getSizeOfTiddlerEventQueue() === 0) {
// Check if we're dirty
if(self.numChanges &gt; 0) {
self.saveWiki({
method: &quot;autosave&quot;,
downloadType: &quot;text/plain&quot;
});
}
} else {
// Otherwise put ourselves in the &quot;pending autosave&quot; state and wait for the change event before we do the autosave
self.pendingAutoSave = true;
}
});
// Set up our beforeunload handler
$tw.addUnloadTask(function(event) {
var confirmationMessage;
if(self.isDirty()) {
confirmationMessage = $tw.language.getString(&quot;UnsavedChangesWarning&quot;);
event.returnValue = confirmationMessage; // Gecko
}
return confirmationMessage;
});
}
// Install the save action handlers
if($tw.browser) {
$tw.rootWidget.addEventListener(&quot;tm-save-wiki&quot;,function(event) {
self.saveWiki({
template: event.param,
downloadType: &quot;text/plain&quot;,
variables: event.paramObject
});
});
$tw.rootWidget.addEventListener(&quot;tm-download-file&quot;,function(event) {
self.saveWiki({
method: &quot;download&quot;,
template: event.param,
downloadType: &quot;text/plain&quot;,
variables: event.paramObject
});
});
}
}
SaverHandler.prototype.titleSyncFilter = &quot;$:/config/SaverFilter&quot;;
SaverHandler.prototype.titleAutoSave = &quot;$:/config/AutoSave&quot;;
SaverHandler.prototype.titleSavedNotification = &quot;$:/language/Notifications/Save/Done&quot;;
/*
Select the appropriate saver modules and set them up
*/
SaverHandler.prototype.initSavers = function(moduleType) {
moduleType = moduleType || &quot;saver&quot;;
// Instantiate the available savers
this.savers = [];
var self = this;
$tw.modules.forEachModuleOfType(moduleType,function(title,module) {
if(module.canSave(self)) {
self.savers.push(module.create(self.wiki));
}
});
// Sort the savers into priority order
this.savers.sort(function(a,b) {
if(a.info.priority &lt; b.info.priority) {
return -1;
} else {
if(a.info.priority &gt; b.info.priority) {
return +1;
} else {
return 0;
}
}
});
};
/*
Save the wiki contents. Options are:
method: &quot;save&quot;, &quot;autosave&quot; or &quot;download&quot;
template: the tiddler containing the template to save
downloadType: the content type for the saved file
*/
SaverHandler.prototype.saveWiki = function(options) {
options = options || {};
var self = this,
method = options.method || &quot;save&quot;;
// Ignore autosave if disabled
if(method === &quot;autosave&quot; &amp;&amp; this.wiki.getTiddlerText(this.titleAutoSave,&quot;yes&quot;) !== &quot;yes&quot;) {
return false;
}
var variables = options.variables || {},
template = options.template || &quot;$:/core/save/all&quot;,
downloadType = options.downloadType || &quot;text/plain&quot;,
text = this.wiki.renderTiddler(downloadType,template,options),
callback = function(err) {
if(err) {
alert($tw.language.getString(&quot;Error/WhileSaving&quot;) + &quot;:\n\n&quot; + err);
} else {
// Clear the task queue if we're saving (rather than downloading)
if(method !== &quot;download&quot;) {
self.numChanges = 0;
self.updateDirtyStatus();
}
$tw.notifier.display(self.titleSavedNotification);
if(options.callback) {
options.callback();
}
}
};
// Call the highest priority saver that supports this method
for(var t=this.savers.length-1; t&gt;=0; t--) {
var saver = this.savers[t];
if(saver.info.capabilities.indexOf(method) !== -1 &amp;&amp; saver.save(text,method,callback,{variables: {filename: variables.filename}})) {
this.logger.log(&quot;Saving wiki with method&quot;,method,&quot;through saver&quot;,saver.info.name);
return true;
}
}
return false;
};
/*
Checks whether the wiki is dirty (ie the window shouldn't be closed)
*/
SaverHandler.prototype.isDirty = function() {
return this.numChanges &gt; 0;
};
/*
Update the document body with the class &quot;tc-dirty&quot; if the wiki has unsaved/unsynced changes
*/
SaverHandler.prototype.updateDirtyStatus = function() {
if($tw.browser) {
$tw.utils.toggleClass(document.body,&quot;tc-dirty&quot;,this.isDirty());
}
};
exports.SaverHandler = SaverHandler;
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/andtidwiki.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/andtidwiki.js
type: application/javascript
module-type: saver
Handles saving changes via the AndTidWiki Android app
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false, netscape: false, Components: false */
&quot;use strict&quot;;
var AndTidWiki = function(wiki) {
};
AndTidWiki.prototype.save = function(text,method,callback,options) {
var filename = options &amp;&amp; options.variables ? options.variables.filename : null;
if (method === &quot;download&quot;) {
// Support download
if (window.twi.saveDownload) {
try {
window.twi.saveDownload(text,filename);
} catch(err) {
if (err.message === &quot;Method not found&quot;) {
window.twi.saveDownload(text);
}
}
} else {
var link = document.createElement(&quot;a&quot;);
link.setAttribute(&quot;href&quot;,&quot;data:text/plain,&quot; + encodeURIComponent(text));
if (filename) {
link.setAttribute(&quot;download&quot;,filename);
}
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
} else if (window.twi.saveWiki) {
// Direct save in Tiddloid
window.twi.saveWiki(text);
} else {
// Get the pathname of this document
var pathname = decodeURIComponent(document.location.toString().split(&quot;#&quot;)[0]);
// Strip the file://
if(pathname.indexOf(&quot;file://&quot;) === 0) {
pathname = pathname.substr(7);
}
// Strip any query or location part
var p = pathname.indexOf(&quot;?&quot;);
if(p !== -1) {
pathname = pathname.substr(0,p);
}
p = pathname.indexOf(&quot;#&quot;);
if(p !== -1) {
pathname = pathname.substr(0,p);
}
// Save the file
window.twi.saveFile(pathname,text);
}
// Call the callback
callback(null);
return true;
};
/*
Information about this saver
*/
AndTidWiki.prototype.info = {
name: &quot;andtidwiki&quot;,
priority: 1600,
capabilities: [&quot;save&quot;, &quot;autosave&quot;, &quot;download&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return !!window.twi &amp;&amp; !!window.twi.saveFile;
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new AndTidWiki(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/beaker.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/beaker.js
type: application/javascript
module-type: saver
Saves files using the Beaker browser's (https://beakerbrowser.com) Dat protocol (https://datproject.org/)
Compatible with beaker &gt;= V0.7.2
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Set up the saver
*/
var BeakerSaver = function(wiki) {
this.wiki = wiki;
};
BeakerSaver.prototype.save = function(text,method,callback) {
var dat = new DatArchive(&quot;&quot; + window.location),
pathname = (&quot;&quot; + window.location.pathname).split(&quot;#&quot;)[0];
dat.stat(pathname).then(function(value) {
if(value.isDirectory()) {
pathname = pathname + &quot;/index.html&quot;;
}
dat.writeFile(pathname,text,&quot;utf8&quot;).then(function(value) {
callback(null);
},function(reason) {
callback(&quot;Beaker Saver Write Error: &quot; + reason);
});
},function(reason) {
callback(&quot;Beaker Saver Stat Error: &quot; + reason);
});
return true;
};
/*
Information about this saver
*/
BeakerSaver.prototype.info = {
name: &quot;beaker&quot;,
priority: 3000,
capabilities: [&quot;save&quot;, &quot;autosave&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return !!window.DatArchive &amp;&amp; location.protocol===&quot;dat:&quot;;
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new BeakerSaver(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/download.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/download.js
type: application/javascript
module-type: saver
Handles saving changes via HTML5's download APIs
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Select the appropriate saver module and set it up
*/
var DownloadSaver = function(wiki) {
};
DownloadSaver.prototype.save = function(text,method,callback,options) {
options = options || {};
// Get the current filename
var filename = options.variables.filename;
if(!filename) {
var p = document.location.pathname.lastIndexOf(&quot;/&quot;);
if(p !== -1) {
// We decode the pathname because document.location is URL encoded by the browser
filename = decodeURIComponent(document.location.pathname.substr(p+1));
}
}
if(!filename) {
filename = &quot;tiddlywiki.html&quot;;
}
// Set up the link
var link = document.createElement(&quot;a&quot;);
if(Blob !== undefined) {
var blob = new Blob([text], {type: &quot;text/html&quot;});
link.setAttribute(&quot;href&quot;, URL.createObjectURL(blob));
} else {
link.setAttribute(&quot;href&quot;,&quot;data:text/html,&quot; + encodeURIComponent(text));
}
link.setAttribute(&quot;download&quot;,filename);
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
// Callback that we succeeded
callback(null);
return true;
};
/*
Information about this saver
*/
DownloadSaver.prototype.info = {
name: &quot;download&quot;,
priority: 100
};
Object.defineProperty(DownloadSaver.prototype.info, &quot;capabilities&quot;, {
get: function() {
var capabilities = [&quot;save&quot;, &quot;download&quot;];
if(($tw.wiki.getTextReference(&quot;$:/config/DownloadSaver/AutoSave&quot;) || &quot;&quot;).toLowerCase() === &quot;yes&quot;) {
capabilities.push(&quot;autosave&quot;);
}
return capabilities;
}
});
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return document.createElement(&quot;a&quot;).download !== undefined;
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new DownloadSaver(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/fsosaver.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/fsosaver.js
type: application/javascript
module-type: saver
Handles saving changes via MS FileSystemObject ActiveXObject
Note: Since TiddlyWiki's markup contains the MOTW, the FileSystemObject normally won't be available.
However, if the wiki is loaded as an .HTA file (Windows HTML Applications) then the FSO can be used.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Select the appropriate saver module and set it up
*/
var FSOSaver = function(wiki) {
};
FSOSaver.prototype.save = function(text,method,callback) {
// Get the pathname of this document
var pathname = unescape(document.location.pathname);
// Test for a Windows path of the form /x:\blah...
if(/^\/[A-Z]\:\\[^\\]+/i.test(pathname)) { // ie: ^/[a-z]:/[^/]+
// Remove the leading slash
pathname = pathname.substr(1);
} else if(document.location.hostname !== &quot;&quot; &amp;&amp; /^\/\\[^\\]+\\[^\\]+/i.test(pathname)) { // test for \\server\share\blah... - ^/[^/]+/[^/]+
// Remove the leading slash
pathname = pathname.substr(1);
// reconstruct UNC path
pathname = &quot;\\\\&quot; + document.location.hostname + pathname;
} else {
return false;
}
// Save the file (as UTF-16)
var fso = new ActiveXObject(&quot;Scripting.FileSystemObject&quot;);
var file = fso.OpenTextFile(pathname,2,-1,-1);
file.Write(text);
file.Close();
// Callback that we succeeded
callback(null);
return true;
};
/*
Information about this saver
*/
FSOSaver.prototype.info = {
name: &quot;FSOSaver&quot;,
priority: 120,
capabilities: [&quot;save&quot;, &quot;autosave&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
try {
return (window.location.protocol === &quot;file:&quot;) &amp;&amp; !!(new ActiveXObject(&quot;Scripting.FileSystemObject&quot;));
} catch(e) { return false; }
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new FSOSaver(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/gitea.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/gitea.js
type: application/javascript
module-type: saver
Saves wiki by pushing a commit to the gitea
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Select the appropriate saver module and set it up
*/
var GiteaSaver = function(wiki) {
this.wiki = wiki;
};
GiteaSaver.prototype.save = function(text,method,callback) {
var self = this,
username = this.wiki.getTiddlerText(&quot;$:/Gitea/Username&quot;),
password = $tw.utils.getPassword(&quot;Gitea&quot;),
repo = this.wiki.getTiddlerText(&quot;$:/Gitea/Repo&quot;),
path = this.wiki.getTiddlerText(&quot;$:/Gitea/Path&quot;,&quot;&quot;),
filename = this.wiki.getTiddlerText(&quot;$:/Gitea/Filename&quot;),
branch = this.wiki.getTiddlerText(&quot;$:/Gitea/Branch&quot;) || &quot;master&quot;,
endpoint = this.wiki.getTiddlerText(&quot;$:/Gitea/ServerURL&quot;) || &quot;https://gitea&quot;,
headers = {
&quot;Accept&quot;: &quot;application/json&quot;,
&quot;Content-Type&quot;: &quot;application/json;charset=UTF-8&quot;,
&quot;Authorization&quot;: &quot;Basic &quot; + window.btoa(username + &quot;:&quot; + password)
};
// Bail if we don't have everything we need
if(!username || !password || !repo || !path || !filename) {
return false;
}
// Make sure the path start and ends with a slash
if(path.substring(0,1) !== &quot;/&quot;) {
path = &quot;/&quot; + path;
}
if(path.substring(path.length - 1) !== &quot;/&quot;) {
path = path + &quot;/&quot;;
}
// Compose the base URI
var uri = endpoint + &quot;/repos/&quot; + repo + &quot;/contents&quot; + path;
// Perform a get request to get the details (inc shas) of files in the same path as our file
$tw.utils.httpRequest({
url: uri,
type: &quot;GET&quot;,
headers: headers,
data: {
ref: branch
},
callback: function(err,getResponseDataJson,xhr) {
var getResponseData,sha = &quot;&quot;;
if(err &amp;&amp; xhr.status !== 404) {
return callback(err);
}
var use_put = true;
if(xhr.status !== 404) {
getResponseData = JSON.parse(getResponseDataJson);
$tw.utils.each(getResponseData,function(details) {
if(details.name === filename) {
sha = details.sha;
}
});
if(sha === &quot;&quot;){
use_put = false;
}
}
var data = {
message: $tw.language.getRawString(&quot;ControlPanel/Saving/GitService/CommitMessage&quot;),
content: $tw.utils.base64Encode(text),
sha: sha
};
$tw.utils.httpRequest({
url: endpoint + &quot;/repos/&quot; + repo + &quot;/branches/&quot; + branch,
type: &quot;GET&quot;,
headers: headers,
callback: function(err,getResponseDataJson,xhr) {
if(xhr.status === 404) {
callback(&quot;Please ensure the branch in the Gitea repo exists&quot;);
}else{
data[&quot;branch&quot;] = branch;
self.upload(uri + filename, use_put?&quot;PUT&quot;:&quot;POST&quot;, headers, data, callback);
}
}
});
}
});
return true;
};
GiteaSaver.prototype.upload = function(uri,method,headers,data,callback) {
$tw.utils.httpRequest({
url: uri,
type: method,
headers: headers,
data: JSON.stringify(data),
callback: function(err,putResponseDataJson,xhr) {
if(err) {
return callback(err);
}
var putResponseData = JSON.parse(putResponseDataJson);
callback(null);
}
});
};
/*
Information about this saver
*/
GiteaSaver.prototype.info = {
name: &quot;Gitea&quot;,
priority: 2000,
capabilities: [&quot;save&quot;, &quot;autosave&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return true;
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new GiteaSaver(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/github.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/github.js
type: application/javascript
module-type: saver
Saves wiki by pushing a commit to the GitHub v3 REST API
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Select the appropriate saver module and set it up
*/
var GitHubSaver = function(wiki) {
this.wiki = wiki;
};
GitHubSaver.prototype.save = function(text,method,callback) {
var self = this,
username = this.wiki.getTiddlerText(&quot;$:/GitHub/Username&quot;),
password = $tw.utils.getPassword(&quot;github&quot;),
repo = this.wiki.getTiddlerText(&quot;$:/GitHub/Repo&quot;),
path = this.wiki.getTiddlerText(&quot;$:/GitHub/Path&quot;,&quot;&quot;),
filename = this.wiki.getTiddlerText(&quot;$:/GitHub/Filename&quot;),
branch = this.wiki.getTiddlerText(&quot;$:/GitHub/Branch&quot;) || &quot;master&quot;,
endpoint = this.wiki.getTiddlerText(&quot;$:/GitHub/ServerURL&quot;) || &quot;https://api.github.com&quot;,
headers = {
&quot;Accept&quot;: &quot;application/vnd.github.v3+json&quot;,
&quot;Content-Type&quot;: &quot;application/json;charset=UTF-8&quot;,
&quot;Authorization&quot;: &quot;Basic &quot; + window.btoa(username + &quot;:&quot; + password)
};
// Bail if we don't have everything we need
if(!username || !password || !repo || !path || !filename) {
return false;
}
// Make sure the path start and ends with a slash
if(path.substring(0,1) !== &quot;/&quot;) {
path = &quot;/&quot; + path;
}
if(path.substring(path.length - 1) !== &quot;/&quot;) {
path = path + &quot;/&quot;;
}
// Compose the base URI
var uri = endpoint + &quot;/repos/&quot; + repo + &quot;/contents&quot; + path;
// Perform a get request to get the details (inc shas) of files in the same path as our file
$tw.utils.httpRequest({
url: uri,
type: &quot;GET&quot;,
headers: headers,
data: {
ref: branch
},
callback: function(err,getResponseDataJson,xhr) {
var getResponseData,sha = &quot;&quot;;
if(err &amp;&amp; xhr.status !== 404) {
return callback(err);
}
if(xhr.status !== 404) {
getResponseData = JSON.parse(getResponseDataJson);
$tw.utils.each(getResponseData,function(details) {
if(details.name === filename) {
sha = details.sha;
}
});
}
var data = {
message: $tw.language.getRawString(&quot;ControlPanel/Saving/GitService/CommitMessage&quot;),
content: $tw.utils.base64Encode(text),
branch: branch,
sha: sha
};
// Perform a PUT request to save the file
$tw.utils.httpRequest({
url: uri + filename,
type: &quot;PUT&quot;,
headers: headers,
data: JSON.stringify(data),
callback: function(err,putResponseDataJson,xhr) {
if(err) {
return callback(err);
}
var putResponseData = JSON.parse(putResponseDataJson);
callback(null);
}
});
}
});
return true;
};
/*
Information about this saver
*/
GitHubSaver.prototype.info = {
name: &quot;github&quot;,
priority: 2000,
capabilities: [&quot;save&quot;, &quot;autosave&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return true;
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new GitHubSaver(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/gitlab.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/gitlab.js
type: application/javascript
module-type: saver
Saves wiki by pushing a commit to the GitLab REST API
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: true */
&quot;use strict&quot;;
/*
Select the appropriate saver module and set it up
*/
var GitLabSaver = function(wiki) {
this.wiki = wiki;
};
GitLabSaver.prototype.save = function(text,method,callback) {
/* See https://docs.gitlab.com/ee/api/repository_files.html */
var self = this,
username = this.wiki.getTiddlerText(&quot;$:/GitLab/Username&quot;),
password = $tw.utils.getPassword(&quot;gitlab&quot;),
repo = this.wiki.getTiddlerText(&quot;$:/GitLab/Repo&quot;),
path = this.wiki.getTiddlerText(&quot;$:/GitLab/Path&quot;,&quot;&quot;),
filename = this.wiki.getTiddlerText(&quot;$:/GitLab/Filename&quot;),
branch = this.wiki.getTiddlerText(&quot;$:/GitLab/Branch&quot;) || &quot;master&quot;,
endpoint = this.wiki.getTiddlerText(&quot;$:/GitLab/ServerURL&quot;) || &quot;https://gitlab.com/api/v4&quot;,
headers = {
&quot;Content-Type&quot;: &quot;application/json;charset=UTF-8&quot;,
&quot;Private-Token&quot;: password
};
// Bail if we don't have everything we need
if(!username || !password || !repo || !path || !filename) {
return false;
}
// Make sure the path start and ends with a slash
if(path.substring(0,1) !== &quot;/&quot;) {
path = &quot;/&quot; + path;
}
if(path.substring(path.length - 1) !== &quot;/&quot;) {
path = path + &quot;/&quot;;
}
// Compose the base URI
var uri = endpoint + &quot;/projects/&quot; + encodeURIComponent(repo) + &quot;/repository/&quot;;
// Perform a get request to get the details (inc shas) of files in the same path as our file
$tw.utils.httpRequest({
url: uri + &quot;tree/?path=&quot; + encodeURIComponent(path.replace(/^\/+|\/$/g, '')) + &quot;&amp;branch=&quot; + encodeURIComponent(branch.replace(/^\/+|\/$/g, '')),
type: &quot;GET&quot;,
headers: headers,
callback: function(err,getResponseDataJson,xhr) {
var getResponseData,sha = &quot;&quot;;
if(err &amp;&amp; xhr.status !== 404) {
return callback(err);
}
var requestType = &quot;POST&quot;;
if(xhr.status !== 404) {
getResponseData = JSON.parse(getResponseDataJson);
$tw.utils.each(getResponseData,function(details) {
if(details.name === filename) {
requestType = &quot;PUT&quot;;
sha = details.sha;
}
});
}
var data = {
commit_message: $tw.language.getRawString(&quot;ControlPanel/Saving/GitService/CommitMessage&quot;),
content: text,
branch: branch,
sha: sha
};
// Perform a request to save the file
$tw.utils.httpRequest({
url: uri + &quot;files/&quot; + encodeURIComponent(path.replace(/^\/+/, '') + filename),
type: requestType,
headers: headers,
data: JSON.stringify(data),
callback: function(err,putResponseDataJson,xhr) {
if(err) {
return callback(err);
}
var putResponseData = JSON.parse(putResponseDataJson);
callback(null);
}
});
}
});
return true;
};
/*
Information about this saver
*/
GitLabSaver.prototype.info = {
name: &quot;gitlab&quot;,
priority: 2000,
capabilities: [&quot;save&quot;, &quot;autosave&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return true;
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new GitLabSaver(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/manualdownload.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/manualdownload.js
type: application/javascript
module-type: saver
Handles saving changes via HTML5's download APIs
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Title of the tiddler containing the download message
var downloadInstructionsTitle = &quot;$:/language/Modals/Download&quot;;
/*
Select the appropriate saver module and set it up
*/
var ManualDownloadSaver = function(wiki) {
};
ManualDownloadSaver.prototype.save = function(text,method,callback) {
$tw.modal.display(downloadInstructionsTitle,{
downloadLink: &quot;data:text/html,&quot; + encodeURIComponent(text)
});
// Callback that we succeeded
callback(null);
return true;
};
/*
Information about this saver
*/
ManualDownloadSaver.prototype.info = {
name: &quot;manualdownload&quot;,
priority: 0,
capabilities: [&quot;save&quot;, &quot;download&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return true;
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new ManualDownloadSaver(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/msdownload.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/msdownload.js
type: application/javascript
module-type: saver
Handles saving changes via window.navigator.msSaveBlob()
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Select the appropriate saver module and set it up
*/
var MsDownloadSaver = function(wiki) {
};
MsDownloadSaver.prototype.save = function(text,method,callback) {
// Get the current filename
var filename = &quot;tiddlywiki.html&quot;,
p = document.location.pathname.lastIndexOf(&quot;/&quot;);
if(p !== -1) {
filename = document.location.pathname.substr(p+1);
}
// Set up the link
var blob = new Blob([text], {type: &quot;text/html&quot;});
window.navigator.msSaveBlob(blob,filename);
// Callback that we succeeded
callback(null);
return true;
};
/*
Information about this saver
*/
MsDownloadSaver.prototype.info = {
name: &quot;msdownload&quot;,
priority: 110,
capabilities: [&quot;save&quot;, &quot;download&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return !!window.navigator.msSaveBlob;
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new MsDownloadSaver(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/put.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/put.js
type: application/javascript
module-type: saver
Saves wiki by performing a PUT request to the server
Works with any server which accepts a PUT request
to the current URL, such as a WebDAV server.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Retrieve ETag if available
*/
var retrieveETag = function(self) {
var headers = {
Accept: &quot;*/*;charset=UTF-8&quot;
};
$tw.utils.httpRequest({
url: self.uri(),
type: &quot;HEAD&quot;,
headers: headers,
callback: function(err,data,xhr) {
if(err) {
return;
}
var etag = xhr.getResponseHeader(&quot;ETag&quot;);
if(!etag) {
return;
}
self.etag = etag.replace(/^W\//,&quot;&quot;);
}
});
};
/*
Select the appropriate saver module and set it up
*/
var PutSaver = function(wiki) {
this.wiki = wiki;
var self = this;
var uri = this.uri();
// Async server probe. Until probe finishes, save will fail fast
// See also https://github.com/Jermolene/TiddlyWiki5/issues/2276
$tw.utils.httpRequest({
url: uri,
type: &quot;OPTIONS&quot;,
callback: function(err,data,xhr) {
// Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1
if(!err) {
self.serverAcceptsPuts = xhr.status === 200 &amp;&amp; !!xhr.getResponseHeader(&quot;dav&quot;);
}
}
});
retrieveETag(this);
};
PutSaver.prototype.uri = function() {
return document.location.toString().split(&quot;#&quot;)[0];
};
// TODO: in case of edit conflict
// Prompt: Do you want to save over this? Y/N
// Merging would be ideal, and may be possible using future generic merge flow
PutSaver.prototype.save = function(text,method,callback) {
if(!this.serverAcceptsPuts) {
return false;
}
var self = this;
var headers = {
&quot;Content-Type&quot;: &quot;text/html;charset=UTF-8&quot;
};
if(this.etag) {
headers[&quot;If-Match&quot;] = this.etag;
}
$tw.utils.httpRequest({
url: this.uri(),
type: &quot;PUT&quot;,
headers: headers,
data: text,
callback: function(err,data,xhr) {
if(err) {
// response is textual: &quot;XMLHttpRequest error code: 412&quot;
var status = Number(err.substring(err.indexOf(':') + 2, err.length))
if(status === 412) { // edit conflict
var message = $tw.language.getString(&quot;Error/EditConflict&quot;);
callback(message);
} else {
callback(err); // fail
}
} else {
self.etag = xhr.getResponseHeader(&quot;ETag&quot;);
if(self.etag == null) {
retrieveETag(self);
}
callback(null); // success
}
}
});
return true;
};
/*
Information about this saver
*/
PutSaver.prototype.info = {
name: &quot;put&quot;,
priority: 2000,
capabilities: [&quot;save&quot;,&quot;autosave&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return /^https?:/.test(location.protocol);
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new PutSaver(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/tiddlyfox.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/tiddlyfox.js
type: application/javascript
module-type: saver
Handles saving changes via the TiddlyFox file extension
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false, netscape: false, Components: false */
&quot;use strict&quot;;
var TiddlyFoxSaver = function(wiki) {
};
TiddlyFoxSaver.prototype.save = function(text,method,callback) {
var messageBox = document.getElementById(&quot;tiddlyfox-message-box&quot;);
if(messageBox) {
// Get the pathname of this document
var pathname = document.location.toString().split(&quot;#&quot;)[0];
// Replace file://localhost/ with file:///
if(pathname.indexOf(&quot;file://localhost/&quot;) === 0) {
pathname = &quot;file://&quot; + pathname.substr(16);
}
// Windows path file:///x:/blah/blah --&gt; x:\blah\blah
if(/^file\:\/\/\/[A-Z]\:\//i.test(pathname)) {
// Remove the leading slash and convert slashes to backslashes
pathname = pathname.substr(8).replace(/\//g,&quot;\\&quot;);
// Firefox Windows network path file://///server/share/blah/blah --&gt; //server/share/blah/blah
} else if(pathname.indexOf(&quot;file://///&quot;) === 0) {
pathname = &quot;\\\\&quot; + unescape(pathname.substr(10)).replace(/\//g,&quot;\\&quot;);
// Mac/Unix local path file:///path/path --&gt; /path/path
} else if(pathname.indexOf(&quot;file:///&quot;) === 0) {
pathname = unescape(pathname.substr(7));
// Mac/Unix local path file:/path/path --&gt; /path/path
} else if(pathname.indexOf(&quot;file:/&quot;) === 0) {
pathname = unescape(pathname.substr(5));
// Otherwise Windows networth path file://server/share/path/path --&gt; \\server\share\path\path
} else {
pathname = &quot;\\\\&quot; + unescape(pathname.substr(7)).replace(new RegExp(&quot;/&quot;,&quot;g&quot;),&quot;\\&quot;);
}
// Create the message element and put it in the message box
var message = document.createElement(&quot;div&quot;);
message.setAttribute(&quot;data-tiddlyfox-path&quot;,decodeURIComponent(pathname));
message.setAttribute(&quot;data-tiddlyfox-content&quot;,text);
messageBox.appendChild(message);
// Add an event handler for when the file has been saved
message.addEventListener(&quot;tiddlyfox-have-saved-file&quot;,function(event) {
callback(null);
}, false);
// Create and dispatch the custom event to the extension
var event = document.createEvent(&quot;Events&quot;);
event.initEvent(&quot;tiddlyfox-save-file&quot;,true,false);
message.dispatchEvent(event);
return true;
} else {
return false;
}
};
/*
Information about this saver
*/
TiddlyFoxSaver.prototype.info = {
name: &quot;tiddlyfox&quot;,
priority: 1500,
capabilities: [&quot;save&quot;, &quot;autosave&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return true;
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new TiddlyFoxSaver(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/tiddlyie.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/tiddlyie.js
type: application/javascript
module-type: saver
Handles saving changes via Internet Explorer BHO extenion (TiddlyIE)
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Select the appropriate saver module and set it up
*/
var TiddlyIESaver = function(wiki) {
};
TiddlyIESaver.prototype.save = function(text,method,callback) {
// Check existence of TiddlyIE BHO extension (note: only works after document is complete)
if(typeof(window.TiddlyIE) != &quot;undefined&quot;) {
// Get the pathname of this document
var pathname = unescape(document.location.pathname);
// Test for a Windows path of the form /x:/blah...
if(/^\/[A-Z]\:\/[^\/]+/i.test(pathname)) { // ie: ^/[a-z]:/[^/]+ (is this better?: ^/[a-z]:/[^/]+(/[^/]+)*\.[^/]+ )
// Remove the leading slash
pathname = pathname.substr(1);
// Convert slashes to backslashes
pathname = pathname.replace(/\//g,&quot;\\&quot;);
} else if(document.hostname !== &quot;&quot; &amp;&amp; /^\/[^\/]+\/[^\/]+/i.test(pathname)) { // test for \\server\share\blah... - ^/[^/]+/[^/]+
// Convert slashes to backslashes
pathname = pathname.replace(/\//g,&quot;\\&quot;);
// reconstruct UNC path
pathname = &quot;\\\\&quot; + document.location.hostname + pathname;
} else return false;
// Prompt the user to save the file
window.TiddlyIE.save(pathname, text);
// Callback that we succeeded
callback(null);
return true;
} else {
return false;
}
};
/*
Information about this saver
*/
TiddlyIESaver.prototype.info = {
name: &quot;tiddlyiesaver&quot;,
priority: 1500,
capabilities: [&quot;save&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return (window.location.protocol === &quot;file:&quot;);
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new TiddlyIESaver(wiki);
};
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/twedit.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/twedit.js
type: application/javascript
module-type: saver
Handles saving changes via the TWEdit iOS app
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false, netscape: false, Components: false */
&quot;use strict&quot;;
var TWEditSaver = function(wiki) {
};
TWEditSaver.prototype.save = function(text,method,callback) {
// Bail if we're not running under TWEdit
if(typeof DeviceInfo !== &quot;object&quot;) {
return false;
}
// Get the pathname of this document
var pathname = decodeURIComponent(document.location.pathname);
// Strip any query or location part
var p = pathname.indexOf(&quot;?&quot;);
if(p !== -1) {
pathname = pathname.substr(0,p);
}
p = pathname.indexOf(&quot;#&quot;);
if(p !== -1) {
pathname = pathname.substr(0,p);
}
// Remove the leading &quot;/Documents&quot; from path
var prefix = &quot;/Documents&quot;;
if(pathname.indexOf(prefix) === 0) {
pathname = pathname.substr(prefix.length);
}
// Error handler
var errorHandler = function(event) {
// Error
callback($tw.language.getString(&quot;Error/SavingToTWEdit&quot;) + &quot;: &quot; + event.target.error.code);
};
// Get the file system
window.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(fileSystem) {
// Now we've got the filesystem, get the fileEntry
fileSystem.root.getFile(pathname, {create: true}, function(fileEntry) {
// Now we've got the fileEntry, create the writer
fileEntry.createWriter(function(writer) {
writer.onerror = errorHandler;
writer.onwrite = function() {
callback(null);
};
writer.position = 0;
writer.write(text);
},errorHandler);
}, errorHandler);
}, errorHandler);
return true;
};
/*
Information about this saver
*/
TWEditSaver.prototype.info = {
name: &quot;twedit&quot;,
priority: 1600,
capabilities: [&quot;save&quot;, &quot;autosave&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return true;
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new TWEditSaver(wiki);
};
/////////////////////////// Hack
// HACK: This ensures that TWEdit recognises us as a TiddlyWiki document
if($tw.browser) {
window.version = {title: &quot;TiddlyWiki&quot;};
}
})();
</pre>
</div>
<div module-type="saver" title="$:/core/modules/savers/upload.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/savers/upload.js
type: application/javascript
module-type: saver
Handles saving changes via upload to a server.
Designed to be compatible with BidiX's UploadPlugin at http://tiddlywiki.bidix.info/#UploadPlugin
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Select the appropriate saver module and set it up
*/
var UploadSaver = function(wiki) {
this.wiki = wiki;
};
UploadSaver.prototype.save = function(text,method,callback) {
// Get the various parameters we need
var backupDir = this.wiki.getTextReference(&quot;$:/UploadBackupDir&quot;) || &quot;.&quot;,
username = this.wiki.getTextReference(&quot;$:/UploadName&quot;),
password = $tw.utils.getPassword(&quot;upload&quot;),
uploadDir = this.wiki.getTextReference(&quot;$:/UploadDir&quot;) || &quot;.&quot;,
uploadFilename = this.wiki.getTextReference(&quot;$:/UploadFilename&quot;) || &quot;index.html&quot;,
url = this.wiki.getTextReference(&quot;$:/UploadURL&quot;);
// Bail out if we don't have the bits we need
if(!username || username.toString().trim() === &quot;&quot; || !password || password.toString().trim() === &quot;&quot;) {
return false;
}
// Construct the url if not provided
if(!url) {
url = &quot;http://&quot; + username + &quot;.tiddlyspot.com/store.cgi&quot;;
}
// Assemble the header
var boundary = &quot;---------------------------&quot; + &quot;AaB03x&quot;;
var uploadFormName = &quot;UploadPlugin&quot;;
var head = [];
head.push(&quot;--&quot; + boundary + &quot;\r\nContent-disposition: form-data; name=\&quot;UploadPlugin\&quot;\r\n&quot;);
head.push(&quot;backupDir=&quot; + backupDir + &quot;;user=&quot; + username + &quot;;password=&quot; + password + &quot;;uploaddir=&quot; + uploadDir + &quot;;;&quot;);
head.push(&quot;\r\n&quot; + &quot;--&quot; + boundary);
head.push(&quot;Content-disposition: form-data; name=\&quot;userfile\&quot;; filename=\&quot;&quot; + uploadFilename + &quot;\&quot;&quot;);
head.push(&quot;Content-Type: text/html;charset=UTF-8&quot;);
head.push(&quot;Content-Length: &quot; + text.length + &quot;\r\n&quot;);
head.push(&quot;&quot;);
// Assemble the tail and the data itself
var tail = &quot;\r\n--&quot; + boundary + &quot;--\r\n&quot;,
data = head.join(&quot;\r\n&quot;) + text + tail;
// Do the HTTP post
var http = new XMLHttpRequest();
http.open(&quot;POST&quot;,url,true,username,password);
http.setRequestHeader(&quot;Content-Type&quot;,&quot;multipart/form-data; charset=UTF-8; boundary=&quot; + boundary);
http.onreadystatechange = function() {
if(http.readyState == 4 &amp;&amp; http.status == 200) {
if(http.responseText.substr(0,4) === &quot;0 - &quot;) {
callback(null);
} else {
callback(http.responseText);
}
}
};
try {
http.send(data);
} catch(ex) {
return callback($tw.language.getString(&quot;Error/Caption&quot;) + &quot;:&quot; + ex);
}
$tw.notifier.display(&quot;$:/language/Notifications/Save/Starting&quot;);
return true;
};
/*
Information about this saver
*/
UploadSaver.prototype.info = {
name: &quot;upload&quot;,
priority: 2000,
capabilities: [&quot;save&quot;, &quot;autosave&quot;]
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return true;
};
/*
Create an instance of this saver
*/
exports.create = function(wiki) {
return new UploadSaver(wiki);
};
})();
</pre>
</div>
<div module-type="authenticator" title="$:/core/modules/server/authenticators/basic.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/authenticators/basic.js
type: application/javascript
module-type: authenticator
Authenticator for WWW basic authentication
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
if($tw.node) {
var util = require(&quot;util&quot;),
fs = require(&quot;fs&quot;),
url = require(&quot;url&quot;),
path = require(&quot;path&quot;);
}
function BasicAuthenticator(server) {
this.server = server;
this.credentialsData = [];
}
/*
Returns true if the authenticator is active, false if it is inactive, or a string if there is an error
*/
BasicAuthenticator.prototype.init = function() {
// Read the credentials data
this.credentialsFilepath = this.server.get(&quot;credentials&quot;);
if(this.credentialsFilepath) {
var resolveCredentialsFilepath = path.resolve($tw.boot.wikiPath,this.credentialsFilepath);
if(fs.existsSync(resolveCredentialsFilepath) &amp;&amp; !fs.statSync(resolveCredentialsFilepath).isDirectory()) {
var credentialsText = fs.readFileSync(resolveCredentialsFilepath,&quot;utf8&quot;),
credentialsData = $tw.utils.parseCsvStringWithHeader(credentialsText);
if(typeof credentialsData === &quot;string&quot;) {
return &quot;Error: &quot; + credentialsData + &quot; reading credentials from '&quot; + resolveCredentialsFilepath + &quot;'&quot;;
} else {
this.credentialsData = credentialsData;
}
} else {
return &quot;Error: Unable to load user credentials from '&quot; + resolveCredentialsFilepath + &quot;'&quot;;
}
}
// Add the hardcoded username and password if specified
if(this.server.get(&quot;username&quot;) &amp;&amp; this.server.get(&quot;password&quot;)) {
this.credentialsData = this.credentialsData || [];
this.credentialsData.push({
username: this.server.get(&quot;username&quot;),
password: this.server.get(&quot;password&quot;)
});
}
return this.credentialsData.length &gt; 0;
};
/*
Returns true if the request is authenticated and assigns the &quot;authenticatedUsername&quot; state variable.
Returns false if the request couldn't be authenticated having sent an appropriate response to the browser
*/
BasicAuthenticator.prototype.authenticateRequest = function(request,response,state) {
// Extract the incoming username and password from the request
var header = request.headers.authorization || &quot;&quot;;
if(!header &amp;&amp; state.allowAnon) {
// If there's no header and anonymous access is allowed then we don't set authenticatedUsername
return true;
}
var token = header.split(/\s+/).pop() || &quot;&quot;,
auth = $tw.utils.base64Decode(token),
parts = auth.split(/:/),
incomingUsername = parts[0],
incomingPassword = parts[1];
// Check that at least one of the credentials matches
var matchingCredentials = this.credentialsData.find(function(credential) {
return credential.username === incomingUsername &amp;&amp; credential.password === incomingPassword;
});
if(matchingCredentials) {
// If so, add the authenticated username to the request state
state.authenticatedUsername = incomingUsername;
return true;
} else {
// If not, return an authentication challenge
response.writeHead(401,&quot;Authentication required&quot;,{
&quot;WWW-Authenticate&quot;: 'Basic realm=&quot;Please provide your username and password to login to ' + state.server.servername + '&quot;'
});
response.end();
return false;
}
};
exports.AuthenticatorClass = BasicAuthenticator;
})();
</pre>
</div>
<div module-type="authenticator" title="$:/core/modules/server/authenticators/header.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/authenticators/header.js
type: application/javascript
module-type: authenticator
Authenticator for trusted header authentication
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
function HeaderAuthenticator(server) {
this.server = server;
this.header = server.get(&quot;authenticated-user-header&quot;);
}
/*
Returns true if the authenticator is active, false if it is inactive, or a string if there is an error
*/
HeaderAuthenticator.prototype.init = function() {
return !!this.header;
};
/*
Returns true if the request is authenticated and assigns the &quot;authenticatedUsername&quot; state variable.
Returns false if the request couldn't be authenticated having sent an appropriate response to the browser
*/
HeaderAuthenticator.prototype.authenticateRequest = function(request,response,state) {
// Otherwise, authenticate as the username in the specified header
var username = request.headers[this.header];
if(!username &amp;&amp; !state.allowAnon) {
response.writeHead(401,&quot;Authorization header required to login to '&quot; + state.server.servername + &quot;'&quot;);
response.end();
return false;
} else {
// authenticatedUsername will be undefined for anonymous users
state.authenticatedUsername = username;
return true;
}
};
exports.AuthenticatorClass = HeaderAuthenticator;
})();
</pre>
</div>
<div module-type="route" title="$:/core/modules/server/routes/delete-tiddler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/routes/delete-tiddler.js
type: application/javascript
module-type: route
DELETE /recipes/default/tiddlers/:title
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.method = &quot;DELETE&quot;;
exports.path = /^\/bags\/default\/tiddlers\/(.+)$/;
exports.handler = function(request,response,state) {
var title = decodeURIComponent(state.params[0]);
state.wiki.deleteTiddler(title);
response.writeHead(204, &quot;OK&quot;, {
&quot;Content-Type&quot;: &quot;text/plain&quot;
});
response.end();
};
}());
</pre>
</div>
<div module-type="route" title="$:/core/modules/server/routes/get-favicon.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/routes/get-favicon.js
type: application/javascript
module-type: route
GET /favicon.ico
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.method = &quot;GET&quot;;
exports.path = /^\/favicon.ico$/;
exports.handler = function(request,response,state) {
response.writeHead(200, {&quot;Content-Type&quot;: &quot;image/x-icon&quot;});
var buffer = state.wiki.getTiddlerText(&quot;$:/favicon.ico&quot;,&quot;&quot;);
response.end(buffer,&quot;base64&quot;);
};
}());
</pre>
</div>
<div module-type="route" title="$:/core/modules/server/routes/get-file.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/routes/get-file.js
type: application/javascript
module-type: route
GET /files/:filepath
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.method = &quot;GET&quot;;
exports.path = /^\/files\/(.+)$/;
exports.handler = function(request,response,state) {
var path = require(&quot;path&quot;),
fs = require(&quot;fs&quot;),
util = require(&quot;util&quot;),
suppliedFilename = decodeURIComponent(state.params[0]),
filename = path.resolve($tw.boot.wikiPath,&quot;files&quot;,suppliedFilename),
extension = path.extname(filename);
fs.readFile(filename,function(err,content) {
var status,content,type = &quot;text/plain&quot;;
if(err) {
console.log(&quot;Error accessing file &quot; + filename + &quot;: &quot; + err.toString());
status = 404;
content = &quot;File '&quot; + suppliedFilename + &quot;' not found&quot;;
} else {
status = 200;
content = content;
type = ($tw.config.fileExtensionInfo[extension] ? $tw.config.fileExtensionInfo[extension].type : &quot;application/octet-stream&quot;);
}
response.writeHead(status,{
&quot;Content-Type&quot;: type
});
response.end(content);
});
};
}());
</pre>
</div>
<div module-type="route" title="$:/core/modules/server/routes/get-index.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/routes/get-index.js
type: application/javascript
module-type: route
GET /
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var zlib = require(&quot;zlib&quot;);
exports.method = &quot;GET&quot;;
exports.path = /^\/$/;
exports.handler = function(request,response,state) {
var acceptEncoding = request.headers[&quot;accept-encoding&quot;];
if(!acceptEncoding) {
acceptEncoding = &quot;&quot;;
}
var text = state.wiki.renderTiddler(state.server.get(&quot;root-render-type&quot;),state.server.get(&quot;root-tiddler&quot;)),
responseHeaders = {
&quot;Content-Type&quot;: state.server.get(&quot;root-serve-type&quot;)
};
/*
If the gzip=yes flag for `listen` is set, check if the user agent permits
compression. If so, compress our response. Note that we use the synchronous
functions from zlib to stay in the imperative style. The current `Server`
doesn't depend on this, and we may just as well use the async versions.
*/
if(state.server.enableGzip) {
if (/\bdeflate\b/.test(acceptEncoding)) {
responseHeaders[&quot;Content-Encoding&quot;] = &quot;deflate&quot;;
text = zlib.deflateSync(text);
} else if (/\bgzip\b/.test(acceptEncoding)) {
responseHeaders[&quot;Content-Encoding&quot;] = &quot;gzip&quot;;
text = zlib.gzipSync(text);
}
}
response.writeHead(200,responseHeaders);
response.end(text);
};
}());
</pre>
</div>
<div module-type="route" title="$:/core/modules/server/routes/get-login-basic.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/routes/get-login-basic.js
type: application/javascript
module-type: route
GET /login-basic -- force a Basic Authentication challenge
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.method = &quot;GET&quot;;
exports.path = /^\/login-basic$/;
exports.handler = function(request,response,state) {
if(!state.authenticatedUsername) {
// Challenge if there's no username
response.writeHead(401,{
&quot;WWW-Authenticate&quot;: 'Basic realm=&quot;Please provide your username and password to login to ' + state.server.servername + '&quot;'
});
response.end();
} else {
// Redirect to the root wiki if login worked
response.writeHead(302,{
Location: &quot;/&quot;
});
response.end();
}
};
}());
</pre>
</div>
<div module-type="route" title="$:/core/modules/server/routes/get-status.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/routes/get-status.js
type: application/javascript
module-type: route
GET /status
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.method = &quot;GET&quot;;
exports.path = /^\/status$/;
exports.handler = function(request,response,state) {
response.writeHead(200, {&quot;Content-Type&quot;: &quot;application/json&quot;});
var text = JSON.stringify({
username: state.authenticatedUsername || state.server.get(&quot;anon-username&quot;) || &quot;&quot;,
anonymous: !state.authenticatedUsername,
read_only: !state.server.isAuthorized(&quot;writers&quot;,state.authenticatedUsername),
space: {
recipe: &quot;default&quot;
},
tiddlywiki_version: $tw.version
});
response.end(text,&quot;utf8&quot;);
};
}());
</pre>
</div>
<div module-type="route" title="$:/core/modules/server/routes/get-tiddler-html.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/routes/get-tiddler-html.js
type: application/javascript
module-type: route
GET /:title
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.method = &quot;GET&quot;;
exports.path = /^\/([^\/]+)$/;
exports.handler = function(request,response,state) {
var title = decodeURIComponent(state.params[0]),
tiddler = state.wiki.getTiddler(title);
if(tiddler) {
var renderType = tiddler.getFieldString(&quot;_render_type&quot;),
renderTemplate = tiddler.getFieldString(&quot;_render_template&quot;);
// Tiddler fields '_render_type' and '_render_template' overwrite
// system wide settings for render type and template
if(state.wiki.isSystemTiddler(title)) {
renderType = renderType || state.server.get(&quot;system-tiddler-render-type&quot;);
renderTemplate = renderTemplate || state.server.get(&quot;system-tiddler-render-template&quot;);
} else {
renderType = renderType || state.server.get(&quot;tiddler-render-type&quot;);
renderTemplate = renderTemplate || state.server.get(&quot;tiddler-render-template&quot;);
}
var text = state.wiki.renderTiddler(renderType,renderTemplate,{parseAsInline: true, variables: {currentTiddler: title}});
// Naughty not to set a content-type, but it's the easiest way to ensure the browser will see HTML pages as HTML, and accept plain text tiddlers as CSS or JS
response.writeHead(200);
response.end(text,&quot;utf8&quot;);
} else {
response.writeHead(404);
response.end();
}
};
}());
</pre>
</div>
<div module-type="route" title="$:/core/modules/server/routes/get-tiddler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/routes/get-tiddler.js
type: application/javascript
module-type: route
GET /recipes/default/tiddlers/:title
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.method = &quot;GET&quot;;
exports.path = /^\/recipes\/default\/tiddlers\/(.+)$/;
exports.handler = function(request,response,state) {
var title = decodeURIComponent(state.params[0]),
tiddler = state.wiki.getTiddler(title),
tiddlerFields = {},
knownFields = [
&quot;bag&quot;, &quot;created&quot;, &quot;creator&quot;, &quot;modified&quot;, &quot;modifier&quot;, &quot;permissions&quot;, &quot;recipe&quot;, &quot;revision&quot;, &quot;tags&quot;, &quot;text&quot;, &quot;title&quot;, &quot;type&quot;, &quot;uri&quot;
];
if(tiddler) {
$tw.utils.each(tiddler.fields,function(field,name) {
var value = tiddler.getFieldString(name);
if(knownFields.indexOf(name) !== -1) {
tiddlerFields[name] = value;
} else {
tiddlerFields.fields = tiddlerFields.fields || {};
tiddlerFields.fields[name] = value;
}
});
tiddlerFields.revision = state.wiki.getChangeCount(title);
tiddlerFields.bag = &quot;default&quot;;
tiddlerFields.type = tiddlerFields.type || &quot;text/vnd.tiddlywiki&quot;;
response.writeHead(200, {&quot;Content-Type&quot;: &quot;application/json&quot;});
response.end(JSON.stringify(tiddlerFields),&quot;utf8&quot;);
} else {
response.writeHead(404);
response.end();
}
};
}());
</pre>
</div>
<div module-type="route" title="$:/core/modules/server/routes/get-tiddlers-json.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/routes/get-tiddlers-json.js
type: application/javascript
module-type: route
GET /recipes/default/tiddlers/tiddlers.json?filter=&lt;filter&gt;
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var DEFAULT_FILTER = &quot;[all[tiddlers]!is[system]sort[title]]&quot;;
exports.method = &quot;GET&quot;;
exports.path = /^\/recipes\/default\/tiddlers.json$/;
exports.handler = function(request,response,state) {
var filter = state.queryParameters.filter || DEFAULT_FILTER;
if($tw.wiki.getTiddlerText(&quot;$:/config/Server/AllowAllExternalFilters&quot;) !== &quot;yes&quot;) {
if($tw.wiki.getTiddlerText(&quot;$:/config/Server/ExternalFilters/&quot; + filter) !== &quot;yes&quot;) {
console.log(&quot;Blocked attempt to GET /recipes/default/tiddlers/tiddlers.json with filter: &quot; + filter);
response.writeHead(403);
response.end();
return;
}
}
var excludeFields = (state.queryParameters.exclude || &quot;text&quot;).split(&quot;,&quot;),
titles = state.wiki.filterTiddlers(filter);
response.writeHead(200, {&quot;Content-Type&quot;: &quot;application/json&quot;});
var tiddlers = [];
$tw.utils.each(titles,function(title) {
var tiddler = state.wiki.getTiddler(title);
if(tiddler) {
var tiddlerFields = tiddler.getFieldStrings({exclude: excludeFields});
tiddlerFields.revision = state.wiki.getChangeCount(title);
tiddlerFields.type = tiddlerFields.type || &quot;text/vnd.tiddlywiki&quot;;
tiddlers.push(tiddlerFields);
}
});
var text = JSON.stringify(tiddlers);
response.end(text,&quot;utf8&quot;);
};
}());
</pre>
</div>
<div module-type="route" title="$:/core/modules/server/routes/put-tiddler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/routes/put-tiddler.js
type: application/javascript
module-type: route
PUT /recipes/default/tiddlers/:title
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.method = &quot;PUT&quot;;
exports.path = /^\/recipes\/default\/tiddlers\/(.+)$/;
exports.handler = function(request,response,state) {
var title = decodeURIComponent(state.params[0]),
fields = JSON.parse(state.data);
// Pull up any subfields in the `fields` object
if(fields.fields) {
$tw.utils.each(fields.fields,function(field,name) {
fields[name] = field;
});
delete fields.fields;
}
// Remove any revision field
if(fields.revision) {
delete fields.revision;
}
state.wiki.addTiddler(new $tw.Tiddler(state.wiki.getCreationFields(),fields,{title: title},state.wiki.getModificationFields()));
var changeCount = state.wiki.getChangeCount(title).toString();
response.writeHead(204, &quot;OK&quot;,{
Etag: &quot;\&quot;default/&quot; + encodeURIComponent(title) + &quot;/&quot; + changeCount + &quot;:\&quot;&quot;,
&quot;Content-Type&quot;: &quot;text/plain&quot;
});
response.end();
};
}());
</pre>
</div>
<div module-type="library" title="$:/core/modules/server/server.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/server/server.js
type: application/javascript
module-type: library
Serve tiddlers over http
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
if($tw.node) {
var util = require(&quot;util&quot;),
fs = require(&quot;fs&quot;),
url = require(&quot;url&quot;),
path = require(&quot;path&quot;),
querystring = require(&quot;querystring&quot;);
}
/*
A simple HTTP server with regexp-based routes
options: variables - optional hashmap of variables to set (a misnomer - they are really constant parameters)
routes - optional array of routes to use
wiki - reference to wiki object
*/
function Server(options) {
var self = this;
this.routes = options.routes || [];
this.authenticators = options.authenticators || [];
this.wiki = options.wiki;
this.servername = $tw.utils.transliterateToSafeASCII(this.wiki.getTiddlerText(&quot;$:/SiteTitle&quot;) || &quot;TiddlyWiki5&quot;);
// Initialise the variables
this.variables = $tw.utils.extend({},this.defaultVariables);
if(options.variables) {
for(var variable in options.variables) {
if(options.variables[variable]) {
this.variables[variable] = options.variables[variable];
}
}
}
$tw.utils.extend({},this.defaultVariables,options.variables);
// Initialise CSRF
this.csrfDisable = this.get(&quot;csrf-disable&quot;) === &quot;yes&quot;;
// Initialize Gzip compression
this.enableGzip = this.get(&quot;gzip&quot;) === &quot;yes&quot;;
// Initialise authorization
var authorizedUserName = (this.get(&quot;username&quot;) &amp;&amp; this.get(&quot;password&quot;)) ? this.get(&quot;username&quot;) : &quot;(anon)&quot;;
this.authorizationPrincipals = {
readers: (this.get(&quot;readers&quot;) || authorizedUserName).split(&quot;,&quot;).map($tw.utils.trim),
writers: (this.get(&quot;writers&quot;) || authorizedUserName).split(&quot;,&quot;).map($tw.utils.trim)
}
// Load and initialise authenticators
$tw.modules.forEachModuleOfType(&quot;authenticator&quot;, function(title,authenticatorDefinition) {
// console.log(&quot;Loading server route &quot; + title);
self.addAuthenticator(authenticatorDefinition.AuthenticatorClass);
});
// Load route handlers
$tw.modules.forEachModuleOfType(&quot;route&quot;, function(title,routeDefinition) {
// console.log(&quot;Loading server route &quot; + title);
self.addRoute(routeDefinition);
});
// Initialise the http vs https
this.listenOptions = null;
this.protocol = &quot;http&quot;;
var tlsKeyFilepath = this.get(&quot;tls-key&quot;),
tlsCertFilepath = this.get(&quot;tls-cert&quot;);
if(tlsCertFilepath &amp;&amp; tlsKeyFilepath) {
this.listenOptions = {
key: fs.readFileSync(path.resolve($tw.boot.wikiPath,tlsKeyFilepath),&quot;utf8&quot;),
cert: fs.readFileSync(path.resolve($tw.boot.wikiPath,tlsCertFilepath),&quot;utf8&quot;)
};
this.protocol = &quot;https&quot;;
}
this.transport = require(this.protocol);
}
Server.prototype.defaultVariables = {
port: &quot;8080&quot;,
host: &quot;127.0.0.1&quot;,
&quot;root-tiddler&quot;: &quot;$:/core/save/all&quot;,
&quot;root-render-type&quot;: &quot;text/plain&quot;,
&quot;root-serve-type&quot;: &quot;text/html&quot;,
&quot;tiddler-render-type&quot;: &quot;text/html&quot;,
&quot;tiddler-render-template&quot;: &quot;$:/core/templates/server/static.tiddler.html&quot;,
&quot;system-tiddler-render-type&quot;: &quot;text/plain&quot;,
&quot;system-tiddler-render-template&quot;: &quot;$:/core/templates/wikified-tiddler&quot;,
&quot;debug-level&quot;: &quot;none&quot;,
&quot;gzip&quot;: &quot;no&quot;
};
Server.prototype.get = function(name) {
return this.variables[name];
};
Server.prototype.addRoute = function(route) {
this.routes.push(route);
};
Server.prototype.addAuthenticator = function(AuthenticatorClass) {
// Instantiate and initialise the authenticator
var authenticator = new AuthenticatorClass(this),
result = authenticator.init();
if(typeof result === &quot;string&quot;) {
$tw.utils.error(&quot;Error: &quot; + result);
} else if(result) {
// Only use the authenticator if it initialised successfully
this.authenticators.push(authenticator);
}
};
Server.prototype.findMatchingRoute = function(request,state) {
var pathprefix = this.get(&quot;path-prefix&quot;) || &quot;&quot;;
for(var t=0; t&lt;this.routes.length; t++) {
var potentialRoute = this.routes[t],
pathRegExp = potentialRoute.path,
pathname = state.urlInfo.pathname,
match;
if(pathprefix) {
if(pathname.substr(0,pathprefix.length) === pathprefix) {
pathname = pathname.substr(pathprefix.length) || &quot;/&quot;;
match = potentialRoute.path.exec(pathname);
} else {
match = false;
}
} else {
match = potentialRoute.path.exec(pathname);
}
if(match &amp;&amp; request.method === potentialRoute.method) {
state.params = [];
for(var p=1; p&lt;match.length; p++) {
state.params.push(match[p]);
}
return potentialRoute;
}
}
return null;
};
Server.prototype.methodMappings = {
&quot;GET&quot;: &quot;readers&quot;,
&quot;OPTIONS&quot;: &quot;readers&quot;,
&quot;HEAD&quot;: &quot;readers&quot;,
&quot;PUT&quot;: &quot;writers&quot;,
&quot;POST&quot;: &quot;writers&quot;,
&quot;DELETE&quot;: &quot;writers&quot;
};
/*
Check whether a given user is authorized for the specified authorizationType (&quot;readers&quot; or &quot;writers&quot;). Pass null or undefined as the username to check for anonymous access
*/
Server.prototype.isAuthorized = function(authorizationType,username) {
var principals = this.authorizationPrincipals[authorizationType] || [];
return principals.indexOf(&quot;(anon)&quot;) !== -1 || (username &amp;&amp; (principals.indexOf(&quot;(authenticated)&quot;) !== -1 || principals.indexOf(username) !== -1));
}
Server.prototype.requestHandler = function(request,response) {
// Compose the state object
var self = this;
var state = {};
state.wiki = self.wiki;
state.server = self;
state.urlInfo = url.parse(request.url);
state.queryParameters = querystring.parse(state.urlInfo.query);
// Get the principals authorized to access this resource
var authorizationType = this.methodMappings[request.method] || &quot;readers&quot;;
// Check for the CSRF header if this is a write
if(!this.csrfDisable &amp;&amp; authorizationType === &quot;writers&quot; &amp;&amp; request.headers[&quot;x-requested-with&quot;] !== &quot;TiddlyWiki&quot;) {
response.writeHead(403,&quot;'X-Requested-With' header required to login to '&quot; + this.servername + &quot;'&quot;);
response.end();
return;
}
// Check whether anonymous access is granted
state.allowAnon = this.isAuthorized(authorizationType,null);
// Authenticate with the first active authenticator
if(this.authenticators.length &gt; 0) {
if(!this.authenticators[0].authenticateRequest(request,response,state)) {
// Bail if we failed (the authenticator will have sent the response)
return;
}
}
// Authorize with the authenticated username
if(!this.isAuthorized(authorizationType,state.authenticatedUsername)) {
response.writeHead(401,&quot;'&quot; + state.authenticatedUsername + &quot;' is not authorized to access '&quot; + this.servername + &quot;'&quot;);
response.end();
return;
}
// Find the route that matches this path
var route = self.findMatchingRoute(request,state);
// Optionally output debug info
if(self.get(&quot;debug-level&quot;) !== &quot;none&quot;) {
console.log(&quot;Request path:&quot;,JSON.stringify(state.urlInfo));
console.log(&quot;Request headers:&quot;,JSON.stringify(request.headers));
console.log(&quot;authenticatedUsername:&quot;,state.authenticatedUsername);
}
// Return a 404 if we didn't find a route
if(!route) {
response.writeHead(404);
response.end();
return;
}
// Receive the request body if necessary and hand off to the route handler
if(route.bodyFormat === &quot;stream&quot; || request.method === &quot;GET&quot; || request.method === &quot;HEAD&quot;) {
// Let the route handle the request stream itself
route.handler(request,response,state);
} else if(route.bodyFormat === &quot;string&quot; || !route.bodyFormat) {
// Set the encoding for the incoming request
request.setEncoding(&quot;utf8&quot;);
var data = &quot;&quot;;
request.on(&quot;data&quot;,function(chunk) {
data += chunk.toString();
});
request.on(&quot;end&quot;,function() {
state.data = data;
route.handler(request,response,state);
});
} else if(route.bodyFormat === &quot;buffer&quot;) {
var data = [];
request.on(&quot;data&quot;,function(chunk) {
data.push(chunk);
});
request.on(&quot;end&quot;,function() {
state.data = Buffer.concat(data);
route.handler(request,response,state);
})
} else {
response.writeHead(400,&quot;Invalid bodyFormat &quot; + route.bodyFormat + &quot; in route &quot; + route.method + &quot; &quot; + route.path.source);
response.end();
}
};
/*
Listen for requests
port: optional port number (falls back to value of &quot;port&quot; variable)
host: optional host address (falls back to value of &quot;host&quot; variable)
prefix: optional prefix (falls back to value of &quot;path-prefix&quot; variable)
*/
Server.prototype.listen = function(port,host,prefix) {
var self = this;
// Handle defaults for port and host
port = port || this.get(&quot;port&quot;);
host = host || this.get(&quot;host&quot;);
prefix = prefix || this.get(&quot;path-prefix&quot;) || &quot;&quot;;
// Check for the port being a string and look it up as an environment variable
if(parseInt(port,10).toString() !== port) {
port = process.env[port] || 8080;
}
// Warn if required plugins are missing
if(!$tw.wiki.getTiddler(&quot;$:/plugins/tiddlywiki/tiddlyweb&quot;) || !$tw.wiki.getTiddler(&quot;$:/plugins/tiddlywiki/filesystem&quot;)) {
$tw.utils.warning(&quot;Warning: Plugins required for client-server operation (\&quot;tiddlywiki/filesystem\&quot; and \&quot;tiddlywiki/tiddlyweb\&quot;) are missing from tiddlywiki.info file&quot;);
}
// Create the server
var server;
if(this.listenOptions) {
server = this.transport.createServer(this.listenOptions,this.requestHandler.bind(this));
} else {
server = this.transport.createServer(this.requestHandler.bind(this));
}
// Display the port number after we've started listening (the port number might have been specified as zero, in which case we will get an assigned port)
server.on(&quot;listening&quot;,function() {
var address = server.address();
$tw.utils.log(&quot;Serving on &quot; + self.protocol + &quot;://&quot; + address.address + &quot;:&quot; + address.port + prefix,&quot;brown/orange&quot;);
$tw.utils.log(&quot;(press ctrl-C to exit)&quot;,&quot;red&quot;);
});
// Listen
return server.listen(port,host);
};
exports.Server = Server;
})();
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup.js
type: application/javascript
module-type: startup
Miscellaneous startup logic for both the client and server.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;startup&quot;;
exports.after = [&quot;load-modules&quot;];
exports.synchronous = true;
// Set to `true` to enable performance instrumentation
var PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE = &quot;$:/config/Performance/Instrumentation&quot;;
var widget = require(&quot;$:/core/modules/widgets/widget.js&quot;);
exports.startup = function() {
var modules,n,m,f;
// Minimal browser detection
if($tw.browser) {
$tw.browser.isIE = (/msie|trident/i.test(navigator.userAgent));
$tw.browser.isFirefox = !!document.mozFullScreenEnabled;
}
// Platform detection
$tw.platform = {};
if($tw.browser) {
$tw.platform.isMac = /Mac/.test(navigator.platform);
$tw.platform.isWindows = /win/i.test(navigator.platform);
$tw.platform.isLinux = /Linux/i.test(navigator.platform);
} else {
switch(require(&quot;os&quot;).platform()) {
case &quot;darwin&quot;:
$tw.platform.isMac = true;
break;
case &quot;win32&quot;:
$tw.platform.isWindows = true;
break;
case &quot;freebsd&quot;:
$tw.platform.isLinux = true;
break;
case &quot;linux&quot;:
$tw.platform.isLinux = true;
break;
}
}
// Initialise version
$tw.version = $tw.utils.extractVersionInfo();
// Set up the performance framework
$tw.perf = new $tw.Performance($tw.wiki.getTiddlerText(PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE,&quot;no&quot;) === &quot;yes&quot;);
// Create a root widget for attaching event handlers. By using it as the parentWidget for another widget tree, one can reuse the event handlers
$tw.rootWidget = new widget.widget({
type: &quot;widget&quot;,
children: []
},{
wiki: $tw.wiki,
document: $tw.browser ? document : $tw.fakeDocument
});
// Execute any startup actions
var executeStartupTiddlers = function(tag) {
$tw.utils.each($tw.wiki.filterTiddlers(&quot;[all[shadows+tiddlers]tag[&quot; + tag + &quot;]!has[draft.of]]&quot;),function(title) {
$tw.rootWidget.invokeActionString($tw.wiki.getTiddlerText(title),$tw.rootWidget);
});
};
executeStartupTiddlers(&quot;$:/tags/StartupAction&quot;);
if($tw.browser) {
executeStartupTiddlers(&quot;$:/tags/StartupAction/Browser&quot;);
}
if($tw.node) {
executeStartupTiddlers(&quot;$:/tags/StartupAction/Node&quot;);
}
// Kick off the language manager and switcher
$tw.language = new $tw.Language();
$tw.languageSwitcher = new $tw.PluginSwitcher({
wiki: $tw.wiki,
pluginType: &quot;language&quot;,
controllerTitle: &quot;$:/language&quot;,
defaultPlugins: [
&quot;$:/languages/en-GB&quot;
],
onSwitch: function(plugins) {
if($tw.browser) {
var pluginTiddler = $tw.wiki.getTiddler(plugins[0]);
if(pluginTiddler) {
document.documentElement.setAttribute(&quot;dir&quot;,pluginTiddler.getFieldString(&quot;text-direction&quot;) || &quot;auto&quot;);
} else {
document.documentElement.removeAttribute(&quot;dir&quot;);
}
}
}
});
// Kick off the theme manager
$tw.themeManager = new $tw.PluginSwitcher({
wiki: $tw.wiki,
pluginType: &quot;theme&quot;,
controllerTitle: &quot;$:/theme&quot;,
defaultPlugins: [
&quot;$:/themes/tiddlywiki/snowwhite&quot;,
&quot;$:/themes/tiddlywiki/vanilla&quot;
]
});
// Kick off the keyboard manager
$tw.keyboardManager = new $tw.KeyboardManager();
// Listen for shortcuts
if($tw.browser) {
$tw.utils.addEventListeners(document,[{
name: &quot;keydown&quot;,
handlerObject: $tw.keyboardManager,
handlerMethod: &quot;handleKeydownEvent&quot;
}]);
}
// Clear outstanding tiddler store change events to avoid an unnecessary refresh cycle at startup
$tw.wiki.clearTiddlerEventQueue();
// Find a working syncadaptor
$tw.syncadaptor = undefined;
$tw.modules.forEachModuleOfType(&quot;syncadaptor&quot;,function(title,module) {
if(!$tw.syncadaptor &amp;&amp; module.adaptorClass) {
$tw.syncadaptor = new module.adaptorClass({wiki: $tw.wiki});
}
});
// Set up the syncer object if we've got a syncadaptor
if($tw.syncadaptor) {
$tw.syncer = new $tw.Syncer({wiki: $tw.wiki, syncadaptor: $tw.syncadaptor});
}
// Setup the saver handler
$tw.saverHandler = new $tw.SaverHandler({
wiki: $tw.wiki,
dirtyTracking: !$tw.syncadaptor,
preloadDirty: $tw.boot.preloadDirty || []
});
// Host-specific startup
if($tw.browser) {
// Install the popup manager
$tw.popup = new $tw.utils.Popup();
// Install the animator
$tw.anim = new $tw.utils.Animator();
}
};
})();
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup/commands.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup/commands.js
type: application/javascript
module-type: startup
Command processing
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;commands&quot;;
exports.platforms = [&quot;node&quot;];
exports.after = [&quot;story&quot;];
exports.synchronous = false;
exports.startup = function(callback) {
// On the server, start a commander with the command line arguments
var commander = new $tw.Commander(
$tw.boot.argv,
function(err) {
if(err) {
return $tw.utils.error(&quot;Error: &quot; + err);
}
callback();
},
$tw.wiki,
{output: process.stdout, error: process.stderr}
);
commander.execute();
};
})();
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup/CSSescape.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup/CSSescape.js
type: application/javascript
module-type: startup
Polyfill for CSS.escape()
\*/
(function(root,factory){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;css-escape&quot;;
exports.platforms = [&quot;browser&quot;];
exports.after = [&quot;startup&quot;];
exports.synchronous = true;
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
// https://github.com/umdjs/umd/blob/master/returnExports.js
exports.startup = factory(root);
}(typeof global != 'undefined' ? global : this, function(root) {
if (root.CSS &amp;&amp; root.CSS.escape) {
return;
}
// https://drafts.csswg.org/cssom/#serialize-an-identifier
var cssEscape = function(value) {
if (arguments.length == 0) {
throw new TypeError('`CSS.escape` requires an argument.');
}
var string = String(value);
var length = string.length;
var index = -1;
var codeUnit;
var result = '';
var firstCodeUnit = string.charCodeAt(0);
while (++index &lt; length) {
codeUnit = string.charCodeAt(index);
// Note: theres no need to special-case astral symbols, surrogate
// pairs, or lone surrogates.
// If the character is NULL (U+0000), then the REPLACEMENT CHARACTER
// (U+FFFD).
if (codeUnit == 0x0000) {
result += '\uFFFD';
continue;
}
if (
// If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
// U+007F, […]
(codeUnit &gt;= 0x0001 &amp;&amp; codeUnit &lt;= 0x001F) || codeUnit == 0x007F ||
// If the character is the first character and is in the range [0-9]
// (U+0030 to U+0039), […]
(index == 0 &amp;&amp; codeUnit &gt;= 0x0030 &amp;&amp; codeUnit &lt;= 0x0039) ||
// If the character is the second character and is in the range [0-9]
// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
(
index == 1 &amp;&amp;
codeUnit &gt;= 0x0030 &amp;&amp; codeUnit &lt;= 0x0039 &amp;&amp;
firstCodeUnit == 0x002D
)
) {
// https://drafts.csswg.org/cssom/#escape-a-character-as-code-point
result += '\\' + codeUnit.toString(16) + ' ';
continue;
}
if (
// If the character is the first character and is a `-` (U+002D), and
// there is no second character, […]
index == 0 &amp;&amp;
length == 1 &amp;&amp;
codeUnit == 0x002D
) {
result += '\\' + string.charAt(index);
continue;
}
// If the character is not handled by one of the above rules and is
// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
// U+005A), or [a-z] (U+0061 to U+007A), […]
if (
codeUnit &gt;= 0x0080 ||
codeUnit == 0x002D ||
codeUnit == 0x005F ||
codeUnit &gt;= 0x0030 &amp;&amp; codeUnit &lt;= 0x0039 ||
codeUnit &gt;= 0x0041 &amp;&amp; codeUnit &lt;= 0x005A ||
codeUnit &gt;= 0x0061 &amp;&amp; codeUnit &lt;= 0x007A
) {
// the character itself
result += string.charAt(index);
continue;
}
// Otherwise, the escaped character.
// https://drafts.csswg.org/cssom/#escape-a-character
result += '\\' + string.charAt(index);
}
return result;
};
if (!root.CSS) {
root.CSS = {};
}
root.CSS.escape = cssEscape;
}));
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup/favicon.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup/favicon.js
type: application/javascript
module-type: startup
Favicon handling
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;favicon&quot;;
exports.platforms = [&quot;browser&quot;];
exports.after = [&quot;startup&quot;];
exports.synchronous = true;
// Favicon tiddler
var FAVICON_TITLE = &quot;$:/favicon.ico&quot;;
exports.startup = function() {
// Set up the favicon
setFavicon();
// Reset the favicon when the tiddler changes
$tw.wiki.addEventListener(&quot;change&quot;,function(changes) {
if($tw.utils.hop(changes,FAVICON_TITLE)) {
setFavicon();
}
});
};
function setFavicon() {
var tiddler = $tw.wiki.getTiddler(FAVICON_TITLE);
if(tiddler) {
var faviconLink = document.getElementById(&quot;faviconLink&quot;);
faviconLink.setAttribute(&quot;href&quot;,&quot;data:&quot; + tiddler.fields.type + &quot;;base64,&quot; + tiddler.fields.text);
}
}
})();
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup/info.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup/info.js
type: application/javascript
module-type: startup
Initialise $:/info tiddlers via $:/temp/info-plugin pseudo-plugin
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;info&quot;;
exports.before = [&quot;startup&quot;];
exports.after = [&quot;load-modules&quot;];
exports.synchronous = true;
var TITLE_INFO_PLUGIN = &quot;$:/temp/info-plugin&quot;;
exports.startup = function() {
// Collect up the info tiddlers
var infoTiddlerFields = {};
// Give each info module a chance to fill in as many info tiddlers as they want
$tw.modules.forEachModuleOfType(&quot;info&quot;,function(title,moduleExports) {
if(moduleExports &amp;&amp; moduleExports.getInfoTiddlerFields) {
var tiddlerFieldsArray = moduleExports.getInfoTiddlerFields(infoTiddlerFields);
$tw.utils.each(tiddlerFieldsArray,function(fields) {
if(fields) {
infoTiddlerFields[fields.title] = fields;
}
});
}
});
// Bake the info tiddlers into a plugin. We use the non-standard plugin-type &quot;info&quot; because ordinary plugins are only registered asynchronously after being loaded dynamically
var fields = {
title: TITLE_INFO_PLUGIN,
type: &quot;application/json&quot;,
&quot;plugin-type&quot;: &quot;info&quot;,
text: JSON.stringify({tiddlers: infoTiddlerFields},null,$tw.config.preferences.jsonSpaces)
};
$tw.wiki.addTiddler(new $tw.Tiddler(fields));
$tw.wiki.readPluginInfo([TITLE_INFO_PLUGIN]);
$tw.wiki.registerPluginTiddlers(&quot;info&quot;);
$tw.wiki.unpackPluginTiddlers();
};
})();
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup/load-modules.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup/load-modules.js
type: application/javascript
module-type: startup
Load core modules
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;load-modules&quot;;
exports.synchronous = true;
exports.startup = function() {
// Load modules
$tw.modules.applyMethods(&quot;utils&quot;,$tw.utils);
if($tw.node) {
$tw.modules.applyMethods(&quot;utils-node&quot;,$tw.utils);
}
$tw.modules.applyMethods(&quot;global&quot;,$tw);
$tw.modules.applyMethods(&quot;config&quot;,$tw.config);
$tw.Tiddler.fieldModules = $tw.modules.getModulesByTypeAsHashmap(&quot;tiddlerfield&quot;);
$tw.modules.applyMethods(&quot;tiddlermethod&quot;,$tw.Tiddler.prototype);
$tw.modules.applyMethods(&quot;wikimethod&quot;,$tw.Wiki.prototype);
$tw.wiki.addIndexersToWiki();
$tw.modules.applyMethods(&quot;tiddlerdeserializer&quot;,$tw.Wiki.tiddlerDeserializerModules);
$tw.macros = $tw.modules.getModulesByTypeAsHashmap(&quot;macro&quot;);
$tw.wiki.initParsers();
$tw.Commander.initCommands();
};
})();
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup/password.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup/password.js
type: application/javascript
module-type: startup
Password handling
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;password&quot;;
exports.platforms = [&quot;browser&quot;];
exports.after = [&quot;startup&quot;];
exports.synchronous = true;
exports.startup = function() {
$tw.rootWidget.addEventListener(&quot;tm-set-password&quot;,function(event) {
$tw.passwordPrompt.createPrompt({
serviceName: $tw.language.getString(&quot;Encryption/PromptSetPassword&quot;),
noUserName: true,
submitText: $tw.language.getString(&quot;Encryption/SetPassword&quot;),
canCancel: true,
repeatPassword: true,
callback: function(data) {
if(data) {
$tw.crypto.setPassword(data.password);
}
return true; // Get rid of the password prompt
}
});
});
$tw.rootWidget.addEventListener(&quot;tm-clear-password&quot;,function(event) {
if($tw.browser) {
if(!confirm($tw.language.getString(&quot;Encryption/ConfirmClearPassword&quot;))) {
return;
}
}
$tw.crypto.setPassword(null);
});
// Ensure that $:/isEncrypted is maintained properly
$tw.wiki.addEventListener(&quot;change&quot;,function(changes) {
if($tw.utils.hop(changes,&quot;$:/isEncrypted&quot;)) {
$tw.crypto.updateCryptoStateTiddler();
}
});
};
})();
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup/plugins.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup/plugins.js
type: application/javascript
module-type: startup
Startup logic concerned with managing plugins
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;plugins&quot;;
exports.after = [&quot;load-modules&quot;];
exports.synchronous = true;
var TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE = &quot;$:/status/RequireReloadDueToPluginChange&quot;;
var PREFIX_CONFIG_REGISTER_PLUGIN_TYPE = &quot;$:/config/RegisterPluginType/&quot;;
exports.startup = function() {
$tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: &quot;no&quot;});
$tw.wiki.addEventListener(&quot;change&quot;,function(changes) {
var changesToProcess = [],
requireReloadDueToPluginChange = false;
$tw.utils.each(Object.keys(changes),function(title) {
var tiddler = $tw.wiki.getTiddler(title),
requiresReload = $tw.wiki.doesPluginRequireReload(title);
if(requiresReload) {
requireReloadDueToPluginChange = true;
} else if(tiddler) {
var pluginType = tiddler.fields[&quot;plugin-type&quot;];
if($tw.wiki.getTiddlerText(PREFIX_CONFIG_REGISTER_PLUGIN_TYPE + (tiddler.fields[&quot;plugin-type&quot;] || &quot;&quot;),&quot;no&quot;) === &quot;yes&quot;) {
changesToProcess.push(title);
}
}
});
if(requireReloadDueToPluginChange) {
$tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: &quot;yes&quot;});
}
// Read or delete the plugin info of the changed tiddlers
if(changesToProcess.length &gt; 0) {
var changes = $tw.wiki.readPluginInfo(changesToProcess);
if(changes.modifiedPlugins.length &gt; 0 || changes.deletedPlugins.length &gt; 0) {
// (Re-)register any modified plugins
$tw.wiki.registerPluginTiddlers(null,changes.modifiedPlugins);
// Unregister any deleted plugins
$tw.wiki.unregisterPluginTiddlers(null,changes.deletedPlugins);
// Unpack the shadow tiddlers
$tw.wiki.unpackPluginTiddlers();
}
}
});
};
})();
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup/render.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup/render.js
type: application/javascript
module-type: startup
Title, stylesheet and page rendering
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;render&quot;;
exports.platforms = [&quot;browser&quot;];
exports.after = [&quot;story&quot;];
exports.synchronous = true;
// Default story and history lists
var PAGE_TITLE_TITLE = &quot;$:/core/wiki/title&quot;;
var PAGE_STYLESHEET_TITLE = &quot;$:/core/ui/PageStylesheet&quot;;
var PAGE_TEMPLATE_TITLE = &quot;$:/core/ui/PageTemplate&quot;;
// Time (in ms) that we defer refreshing changes to draft tiddlers
var DRAFT_TIDDLER_TIMEOUT_TITLE = &quot;$:/config/Drafts/TypingTimeout&quot;;
var THROTTLE_REFRESH_TIMEOUT = 400;
exports.startup = function() {
// Set up the title
$tw.titleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TITLE_TITLE,{document: $tw.fakeDocument, parseAsInline: true});
$tw.titleContainer = $tw.fakeDocument.createElement(&quot;div&quot;);
$tw.titleWidgetNode.render($tw.titleContainer,null);
document.title = $tw.titleContainer.textContent;
$tw.wiki.addEventListener(&quot;change&quot;,function(changes) {
if($tw.titleWidgetNode.refresh(changes,$tw.titleContainer,null)) {
document.title = $tw.titleContainer.textContent;
}
});
// Set up the styles
$tw.styleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_STYLESHEET_TITLE,{document: $tw.fakeDocument});
$tw.styleContainer = $tw.fakeDocument.createElement(&quot;style&quot;);
$tw.styleWidgetNode.render($tw.styleContainer,null);
$tw.styleElement = document.createElement(&quot;style&quot;);
$tw.styleElement.innerHTML = $tw.styleContainer.textContent;
document.head.insertBefore($tw.styleElement,document.head.firstChild);
$tw.wiki.addEventListener(&quot;change&quot;,$tw.perf.report(&quot;styleRefresh&quot;,function(changes) {
if($tw.styleWidgetNode.refresh(changes,$tw.styleContainer,null)) {
$tw.styleElement.innerHTML = $tw.styleContainer.textContent;
}
}));
// Display the $:/core/ui/PageTemplate tiddler to kick off the display
$tw.perf.report(&quot;mainRender&quot;,function() {
$tw.pageWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TEMPLATE_TITLE,{document: document, parentWidget: $tw.rootWidget});
$tw.pageContainer = document.createElement(&quot;div&quot;);
$tw.utils.addClass($tw.pageContainer,&quot;tc-page-container-wrapper&quot;);
document.body.insertBefore($tw.pageContainer,document.body.firstChild);
$tw.pageWidgetNode.render($tw.pageContainer,null);
$tw.hooks.invokeHook(&quot;th-page-refreshed&quot;);
})();
// Remove any splash screen elements
var removeList = document.querySelectorAll(&quot;.tc-remove-when-wiki-loaded&quot;);
$tw.utils.each(removeList,function(removeItem) {
if(removeItem.parentNode) {
removeItem.parentNode.removeChild(removeItem);
}
});
// Prepare refresh mechanism
var deferredChanges = Object.create(null),
timerId;
function refresh() {
// Process the refresh
$tw.hooks.invokeHook(&quot;th-page-refreshing&quot;);
$tw.pageWidgetNode.refresh(deferredChanges);
deferredChanges = Object.create(null);
$tw.hooks.invokeHook(&quot;th-page-refreshed&quot;);
}
// Add the change event handler
$tw.wiki.addEventListener(&quot;change&quot;,$tw.perf.report(&quot;mainRefresh&quot;,function(changes) {
// Check if only tiddlers that are throttled have changed
var onlyThrottledTiddlersHaveChanged = true;
for(var title in changes) {
var tiddler = $tw.wiki.getTiddler(title);
if(!tiddler || !(tiddler.hasField(&quot;draft.of&quot;) || tiddler.hasField(&quot;throttle.refresh&quot;))) {
onlyThrottledTiddlersHaveChanged = false;
}
}
// Defer the change if only drafts have changed
if(timerId) {
clearTimeout(timerId);
}
timerId = null;
if(onlyThrottledTiddlersHaveChanged) {
var timeout = parseInt($tw.wiki.getTiddlerText(DRAFT_TIDDLER_TIMEOUT_TITLE,&quot;&quot;),10);
if(isNaN(timeout)) {
timeout = THROTTLE_REFRESH_TIMEOUT;
}
timerId = setTimeout(refresh,timeout);
$tw.utils.extend(deferredChanges,changes);
} else {
$tw.utils.extend(deferredChanges,changes);
refresh();
}
}));
// Fix up the link between the root widget and the page container
$tw.rootWidget.domNodes = [$tw.pageContainer];
$tw.rootWidget.children = [$tw.pageWidgetNode];
};
})();
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup/rootwidget.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup/rootwidget.js
type: application/javascript
module-type: startup
Setup the root widget and the core root widget handlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;rootwidget&quot;;
exports.platforms = [&quot;browser&quot;];
exports.after = [&quot;startup&quot;];
exports.before = [&quot;story&quot;];
exports.synchronous = true;
exports.startup = function() {
// Install the modal message mechanism
$tw.modal = new $tw.utils.Modal($tw.wiki);
$tw.rootWidget.addEventListener(&quot;tm-modal&quot;,function(event) {
$tw.modal.display(event.param,{variables: event.paramObject, event: event});
});
// Install the notification mechanism
$tw.notifier = new $tw.utils.Notifier($tw.wiki);
$tw.rootWidget.addEventListener(&quot;tm-notify&quot;,function(event) {
$tw.notifier.display(event.param,{variables: event.paramObject});
});
// Install the copy-to-clipboard mechanism
$tw.rootWidget.addEventListener(&quot;tm-copy-to-clipboard&quot;,function(event) {
$tw.utils.copyToClipboard(event.param);
});
// Install the tm-focus-selector message
$tw.rootWidget.addEventListener(&quot;tm-focus-selector&quot;,function(event) {
var selector = event.param || &quot;&quot;,
element;
try {
element = document.querySelector(selector);
} catch(e) {
console.log(&quot;Error in selector: &quot;,selector)
}
if(element &amp;&amp; element.focus) {
element.focus(event.paramObject);
}
});
// Install the scroller
$tw.pageScroller = new $tw.utils.PageScroller();
$tw.rootWidget.addEventListener(&quot;tm-scroll&quot;,function(event) {
$tw.pageScroller.handleEvent(event);
});
var fullscreen = $tw.utils.getFullScreenApis();
if(fullscreen) {
$tw.rootWidget.addEventListener(&quot;tm-full-screen&quot;,function(event) {
var fullScreenDocument = event.event ? event.event.target.ownerDocument : document;
if(event.param === &quot;enter&quot;) {
fullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);
} else if(event.param === &quot;exit&quot;) {
fullScreenDocument[fullscreen._exitFullscreen]();
} else {
if(fullScreenDocument[fullscreen._fullscreenElement]) {
fullScreenDocument[fullscreen._exitFullscreen]();
} else {
fullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);
}
}
});
}
// If we're being viewed on a data: URI then give instructions for how to save
if(document.location.protocol === &quot;data:&quot;) {
$tw.rootWidget.dispatchEvent({
type: &quot;tm-modal&quot;,
param: &quot;$:/language/Modals/SaveInstructions&quot;
});
}
};
})();
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup/story.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup/story.js
type: application/javascript
module-type: startup
Load core modules
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;story&quot;;
exports.after = [&quot;startup&quot;];
exports.synchronous = true;
// Default story and history lists
var DEFAULT_STORY_TITLE = &quot;$:/StoryList&quot;;
var DEFAULT_HISTORY_TITLE = &quot;$:/HistoryList&quot;;
// Default tiddlers
var DEFAULT_TIDDLERS_TITLE = &quot;$:/DefaultTiddlers&quot;;
// Config
var CONFIG_UPDATE_ADDRESS_BAR = &quot;$:/config/Navigation/UpdateAddressBar&quot;; // Can be &quot;no&quot;, &quot;permalink&quot;, &quot;permaview&quot;
var CONFIG_UPDATE_HISTORY = &quot;$:/config/Navigation/UpdateHistory&quot;; // Can be &quot;yes&quot; or &quot;no&quot;
var CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD = &quot;$:/config/Navigation/Permalinkview/CopyToClipboard&quot;; // Can be &quot;yes&quot; (default) or &quot;no&quot;
var CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR = &quot;$:/config/Navigation/Permalinkview/UpdateAddressBar&quot;; // Can be &quot;yes&quot; (default) or &quot;no&quot;
// Links to help, if there is no param
var HELP_OPEN_EXTERNAL_WINDOW = &quot;http://tiddlywiki.com/#WidgetMessage%3A%20tm-open-external-window&quot;;
exports.startup = function() {
// Open startup tiddlers
openStartupTiddlers({
disableHistory: $tw.boot.disableStartupNavigation
});
if($tw.browser) {
// Set up location hash update
$tw.wiki.addEventListener(&quot;change&quot;,function(changes) {
if($tw.utils.hop(changes,DEFAULT_STORY_TITLE) || $tw.utils.hop(changes,DEFAULT_HISTORY_TITLE)) {
updateLocationHash({
updateAddressBar: $tw.wiki.getTiddlerText(CONFIG_UPDATE_ADDRESS_BAR,&quot;permaview&quot;).trim(),
updateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,&quot;no&quot;).trim()
});
}
});
// Listen for changes to the browser location hash
window.addEventListener(&quot;hashchange&quot;,function() {
var hash = $tw.utils.getLocationHash();
if(hash !== $tw.locationHash) {
$tw.locationHash = hash;
openStartupTiddlers({defaultToCurrentStory: true});
}
},false);
// Listen for the tm-browser-refresh message
$tw.rootWidget.addEventListener(&quot;tm-browser-refresh&quot;,function(event) {
window.location.reload(true);
});
// Listen for tm-open-external-window message
$tw.rootWidget.addEventListener(&quot;tm-open-external-window&quot;,function(event) {
var paramObject = event.paramObject || {},
strUrl = event.param || HELP_OPEN_EXTERNAL_WINDOW,
strWindowName = paramObject.windowName,
strWindowFeatures = paramObject.windowFeatures;
window.open(strUrl, strWindowName, strWindowFeatures);
});
// Listen for the tm-print message
$tw.rootWidget.addEventListener(&quot;tm-print&quot;,function(event) {
(event.event.view || window).print();
});
// Listen for the tm-home message
$tw.rootWidget.addEventListener(&quot;tm-home&quot;,function(event) {
window.location.hash = &quot;&quot;;
var storyFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE),
storyList = $tw.wiki.filterTiddlers(storyFilter);
//invoke any hooks that might change the default story list
storyList = $tw.hooks.invokeHook(&quot;th-opening-default-tiddlers-list&quot;,storyList);
$tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: &quot;&quot;, list: storyList},$tw.wiki.getModificationFields());
if(storyList[0]) {
$tw.wiki.addToHistory(storyList[0]);
}
});
// Listen for the tm-permalink message
$tw.rootWidget.addEventListener(&quot;tm-permalink&quot;,function(event) {
updateLocationHash({
updateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,&quot;yes&quot;).trim() === &quot;yes&quot; ? &quot;permalink&quot; : &quot;none&quot;,
updateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,&quot;no&quot;).trim(),
targetTiddler: event.param || event.tiddlerTitle,
copyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,&quot;yes&quot;).trim() === &quot;yes&quot; ? &quot;permalink&quot; : &quot;none&quot;
});
});
// Listen for the tm-permaview message
$tw.rootWidget.addEventListener(&quot;tm-permaview&quot;,function(event) {
updateLocationHash({
updateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,&quot;yes&quot;).trim() === &quot;yes&quot; ? &quot;permaview&quot; : &quot;none&quot;,
updateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,&quot;no&quot;).trim(),
targetTiddler: event.param || event.tiddlerTitle,
copyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,&quot;yes&quot;).trim() === &quot;yes&quot; ? &quot;permaview&quot; : &quot;none&quot;
});
});
}
};
/*
Process the location hash to open the specified tiddlers. Options:
disableHistory: if true $:/History is NOT updated
defaultToCurrentStory: If true, the current story is retained as the default, instead of opening the default tiddlers
*/
function openStartupTiddlers(options) {
options = options || {};
// Work out the target tiddler and the story filter. &quot;null&quot; means &quot;unspecified&quot;
var target = null,
storyFilter = null;
if($tw.locationHash.length &gt; 1) {
var hash = $tw.locationHash.substr(1),
split = hash.indexOf(&quot;:&quot;);
if(split === -1) {
target = decodeURIComponent(hash.trim());
} else {
target = decodeURIComponent(hash.substr(0,split).trim());
storyFilter = decodeURIComponent(hash.substr(split + 1).trim());
}
}
// If the story wasn't specified use the current tiddlers or a blank story
if(storyFilter === null) {
if(options.defaultToCurrentStory) {
var currStoryList = $tw.wiki.getTiddlerList(DEFAULT_STORY_TITLE);
storyFilter = $tw.utils.stringifyList(currStoryList);
} else {
if(target &amp;&amp; target !== &quot;&quot;) {
storyFilter = &quot;&quot;;
} else {
storyFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE);
}
}
}
// Process the story filter to get the story list
var storyList = $tw.wiki.filterTiddlers(storyFilter);
// Invoke any hooks that want to change the default story list
storyList = $tw.hooks.invokeHook(&quot;th-opening-default-tiddlers-list&quot;,storyList);
// If the target tiddler isn't included then splice it in at the top
if(target &amp;&amp; storyList.indexOf(target) === -1) {
storyList.unshift(target);
}
// Save the story list
$tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: &quot;&quot;, list: storyList},$tw.wiki.getModificationFields());
// Update history
if(!options.disableHistory) {
// If a target tiddler was specified add it to the history stack
if(target &amp;&amp; target !== &quot;&quot;) {
// The target tiddler doesn't need double square brackets, but we'll silently remove them if they're present
if(target.indexOf(&quot;[[&quot;) === 0 &amp;&amp; target.substr(-2) === &quot;]]&quot;) {
target = target.substr(2,target.length - 4);
}
$tw.wiki.addToHistory(target);
} else if(storyList.length &gt; 0) {
$tw.wiki.addToHistory(storyList[0]);
}
}
}
/*
options: See below
options.updateAddressBar: &quot;permalink&quot;, &quot;permaview&quot; or &quot;no&quot; (defaults to &quot;permaview&quot;)
options.updateHistory: &quot;yes&quot; or &quot;no&quot; (defaults to &quot;no&quot;)
options.copyToClipboard: &quot;permalink&quot;, &quot;permaview&quot; or &quot;no&quot; (defaults to &quot;no&quot;)
options.targetTiddler: optional title of target tiddler for permalink
*/
function updateLocationHash(options) {
// Get the story and the history stack
var storyList = $tw.wiki.getTiddlerList(DEFAULT_STORY_TITLE),
historyList = $tw.wiki.getTiddlerData(DEFAULT_HISTORY_TITLE,[]),
targetTiddler = &quot;&quot;;
if(options.targetTiddler) {
targetTiddler = options.targetTiddler;
} else {
// The target tiddler is the one at the top of the stack
if(historyList.length &gt; 0) {
targetTiddler = historyList[historyList.length-1].title;
}
// Blank the target tiddler if it isn't present in the story
if(storyList.indexOf(targetTiddler) === -1) {
targetTiddler = &quot;&quot;;
}
}
// Assemble the location hash
switch(options.updateAddressBar) {
case &quot;permalink&quot;:
$tw.locationHash = &quot;#&quot; + encodeURIComponent(targetTiddler);
break;
case &quot;permaview&quot;:
$tw.locationHash = &quot;#&quot; + encodeURIComponent(targetTiddler) + &quot;:&quot; + encodeURIComponent($tw.utils.stringifyList(storyList));
break;
}
// Copy URL to the clipboard
switch(options.copyToClipboard) {
case &quot;permalink&quot;:
$tw.utils.copyToClipboard($tw.utils.getLocationPath() + &quot;#&quot; + encodeURIComponent(targetTiddler));
break;
case &quot;permaview&quot;:
$tw.utils.copyToClipboard($tw.utils.getLocationPath() + &quot;#&quot; + encodeURIComponent(targetTiddler) + &quot;:&quot; + encodeURIComponent($tw.utils.stringifyList(storyList)));
break;
}
// Only change the location hash if we must, thus avoiding unnecessary onhashchange events
if($tw.utils.getLocationHash() !== $tw.locationHash) {
if(options.updateHistory === &quot;yes&quot;) {
// Assign the location hash so that history is updated
window.location.hash = $tw.locationHash;
} else {
// We use replace so that browser history isn't affected
window.location.replace(window.location.toString().split(&quot;#&quot;)[0] + $tw.locationHash);
}
}
}
})();
</pre>
</div>
<div module-type="startup" title="$:/core/modules/startup/windows.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/startup/windows.js
type: application/javascript
module-type: startup
Setup root widget handlers for the messages concerned with opening external browser windows
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Export name and synchronous status
exports.name = &quot;windows&quot;;
exports.platforms = [&quot;browser&quot;];
exports.after = [&quot;startup&quot;];
exports.synchronous = true;
// Global to keep track of open windows (hashmap by title)
var windows = {};
exports.startup = function() {
// Handle open window message
$tw.rootWidget.addEventListener(&quot;tm-open-window&quot;,function(event) {
// Get the parameters
var refreshHandler,
title = event.param || event.tiddlerTitle,
paramObject = event.paramObject || {},
windowTitle = paramObject.windowTitle || title,
template = paramObject.template || &quot;$:/core/templates/single.tiddler.window&quot;,
width = paramObject.width || &quot;700&quot;,
height = paramObject.height || &quot;600&quot;,
variables = $tw.utils.extend({},paramObject,{currentTiddler: title});
// Open the window
var srcWindow,
srcDocument;
// In case that popup blockers deny opening a new window
try {
srcWindow = window.open(&quot;&quot;,&quot;external-&quot; + title,&quot;scrollbars,width=&quot; + width + &quot;,height=&quot; + height),
srcDocument = srcWindow.document;
}
catch(e) {
return;
}
windows[title] = srcWindow;
// Check for reopening the same window
if(srcWindow.haveInitialisedWindow) {
return;
}
// Initialise the document
srcDocument.write(&quot;&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body class='tc-body tc-single-tiddler-window'&gt;&lt;/body&gt;&lt;/html&gt;&quot;);
srcDocument.close();
srcDocument.title = windowTitle;
srcWindow.addEventListener(&quot;beforeunload&quot;,function(event) {
delete windows[title];
$tw.wiki.removeEventListener(&quot;change&quot;,refreshHandler);
},false);
// Set up the styles
var styleWidgetNode = $tw.wiki.makeTranscludeWidget(&quot;$:/core/ui/PageStylesheet&quot;,{
document: $tw.fakeDocument,
variables: variables,
importPageMacros: true}),
styleContainer = $tw.fakeDocument.createElement(&quot;style&quot;);
styleWidgetNode.render(styleContainer,null);
var styleElement = srcDocument.createElement(&quot;style&quot;);
styleElement.innerHTML = styleContainer.textContent;
srcDocument.head.insertBefore(styleElement,srcDocument.head.firstChild);
// Render the text of the tiddler
var parser = $tw.wiki.parseTiddler(template),
widgetNode = $tw.wiki.makeWidget(parser,{document: srcDocument, parentWidget: $tw.rootWidget, variables: variables});
widgetNode.render(srcDocument.body,srcDocument.body.firstChild);
// Function to handle refreshes
refreshHandler = function(changes) {
if(styleWidgetNode.refresh(changes,styleContainer,null)) {
styleElement.innerHTML = styleContainer.textContent;
}
widgetNode.refresh(changes);
};
$tw.wiki.addEventListener(&quot;change&quot;,refreshHandler);
// Listen for keyboard shortcuts
$tw.utils.addEventListeners(srcDocument,[{
name: &quot;keydown&quot;,
handlerObject: $tw.keyboardManager,
handlerMethod: &quot;handleKeydownEvent&quot;
},{
name: &quot;click&quot;,
handlerObject: $tw.popup,
handlerMethod: &quot;handleEvent&quot;
}]);
srcWindow.haveInitialisedWindow = true;
});
// Close open windows when unloading main window
$tw.addUnloadTask(function() {
$tw.utils.each(windows,function(win) {
win.close();
});
});
};
})();
</pre>
</div>
<div module-type="global" title="$:/core/modules/story.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/story.js
type: application/javascript
module-type: global
Lightweight object for managing interactions with the story and history lists.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Construct Story object with options:
wiki: reference to wiki object to use to resolve tiddler titles
storyTitle: title of story list tiddler
historyTitle: title of history list tiddler
*/
function Story(options) {
options = options || {};
this.wiki = options.wiki || $tw.wiki;
this.storyTitle = options.storyTitle || &quot;$:/StoryList&quot;;
this.historyTitle = options.historyTitle || &quot;$:/HistoryList&quot;;
};
Story.prototype.navigateTiddler = function(navigateTo,navigateFromTitle,navigateFromClientRect) {
this.addToStory(navigateTo,navigateFromTitle);
this.addToHistory(navigateTo,navigateFromClientRect);
};
Story.prototype.getStoryList = function() {
return this.wiki.getTiddlerList(this.storyTitle) || [];
};
Story.prototype.addToStory = function(navigateTo,navigateFromTitle,options) {
options = options || {};
var storyList = this.getStoryList();
// See if the tiddler is already there
var slot = storyList.indexOf(navigateTo);
// Quit if it already exists in the story river
if(slot &gt;= 0) {
return;
}
// First we try to find the position of the story element we navigated from
var fromIndex = storyList.indexOf(navigateFromTitle);
if(fromIndex &gt;= 0) {
// The tiddler is added from inside the river
// Determine where to insert the tiddler; Fallback is &quot;below&quot;
switch(options.openLinkFromInsideRiver) {
case &quot;top&quot;:
slot = 0;
break;
case &quot;bottom&quot;:
slot = storyList.length;
break;
case &quot;above&quot;:
slot = fromIndex;
break;
case &quot;below&quot;: // Intentional fall-through
default:
slot = fromIndex + 1;
break;
}
} else {
// The tiddler is opened from outside the river. Determine where to insert the tiddler; default is &quot;top&quot;
if(options.openLinkFromOutsideRiver === &quot;bottom&quot;) {
// Insert at bottom
slot = storyList.length;
} else {
// Insert at top
slot = 0;
}
}
// Add the tiddler
storyList.splice(slot,0,navigateTo);
// Save the story
this.saveStoryList(storyList);
};
Story.prototype.saveStoryList = function(storyList) {
var storyTiddler = this.wiki.getTiddler(this.storyTitle);
this.wiki.addTiddler(new $tw.Tiddler(
this.wiki.getCreationFields(),
{title: this.storyTitle},
storyTiddler,
{list: storyList},
this.wiki.getModificationFields()
));
};
Story.prototype.addToHistory = function(navigateTo,navigateFromClientRect) {
var titles = $tw.utils.isArray(navigateTo) ? navigateTo : [navigateTo];
// Add a new record to the top of the history stack
var historyList = this.wiki.getTiddlerData(this.historyTitle,[]);
$tw.utils.each(titles,function(title) {
historyList.push({title: title, fromPageRect: navigateFromClientRect});
});
this.wiki.setTiddlerData(this.historyTitle,historyList,{&quot;current-tiddler&quot;: titles[titles.length-1]});
};
Story.prototype.storyCloseTiddler = function(targetTitle) {
// TBD
};
Story.prototype.storyCloseAllTiddlers = function() {
// TBD
};
Story.prototype.storyCloseOtherTiddlers = function(targetTitle) {
// TBD
};
Story.prototype.storyEditTiddler = function(targetTitle) {
// TBD
};
Story.prototype.storyDeleteTiddler = function(targetTitle) {
// TBD
};
Story.prototype.storySaveTiddler = function(targetTitle) {
// TBD
};
Story.prototype.storyCancelTiddler = function(targetTitle) {
// TBD
};
Story.prototype.storyNewTiddler = function(targetTitle) {
// TBD
};
exports.Story = Story;
})();
</pre>
</div>
<div module-type="storyview" title="$:/core/modules/storyviews/classic.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/storyviews/classic.js
type: application/javascript
module-type: storyview
Views the story as a linear sequence
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var easing = &quot;cubic-bezier(0.645, 0.045, 0.355, 1)&quot;; // From http://easings.net/#easeInOutCubic
var ClassicStoryView = function(listWidget) {
this.listWidget = listWidget;
};
ClassicStoryView.prototype.navigateTo = function(historyInfo) {
var duration = $tw.utils.getAnimationDuration()
var listElementIndex = this.listWidget.findListItem(0,historyInfo.title);
if(listElementIndex === undefined) {
return;
}
var listItemWidget = this.listWidget.children[listElementIndex],
targetElement = listItemWidget.findFirstDomNode();
// Abandon if the list entry isn't a DOM element (it might be a text node)
if(!(targetElement instanceof Element)) {
return;
}
if(duration) {
// Scroll the node into view
this.listWidget.dispatchEvent({type: &quot;tm-scroll&quot;, target: targetElement});
} else {
targetElement.scrollIntoView();
}
};
ClassicStoryView.prototype.insert = function(widget) {
var duration = $tw.utils.getAnimationDuration();
if(duration) {
var targetElement = widget.findFirstDomNode();
// Abandon if the list entry isn't a DOM element (it might be a text node)
if(!(targetElement instanceof Element)) {
return;
}
// Get the current height of the tiddler
var computedStyle = window.getComputedStyle(targetElement),
currMarginBottom = parseInt(computedStyle.marginBottom,10),
currMarginTop = parseInt(computedStyle.marginTop,10),
currHeight = targetElement.offsetHeight + currMarginTop;
// Reset the margin once the transition is over
setTimeout(function() {
$tw.utils.setStyle(targetElement,[
{transition: &quot;none&quot;},
{marginBottom: &quot;&quot;}
]);
},duration);
// Set up the initial position of the element
$tw.utils.setStyle(targetElement,[
{transition: &quot;none&quot;},
{marginBottom: (-currHeight) + &quot;px&quot;},
{opacity: &quot;0.0&quot;}
]);
$tw.utils.forceLayout(targetElement);
// Transition to the final position
$tw.utils.setStyle(targetElement,[
{transition: &quot;opacity &quot; + duration + &quot;ms &quot; + easing + &quot;, &quot; +
&quot;margin-bottom &quot; + duration + &quot;ms &quot; + easing},
{marginBottom: currMarginBottom + &quot;px&quot;},
{opacity: &quot;1.0&quot;}
]);
}
};
ClassicStoryView.prototype.remove = function(widget) {
var duration = $tw.utils.getAnimationDuration();
if(duration) {
var targetElement = widget.findFirstDomNode(),
removeElement = function() {
widget.removeChildDomNodes();
};
// Abandon if the list entry isn't a DOM element (it might be a text node)
if(!(targetElement instanceof Element)) {
removeElement();
return;
}
// Get the current height of the tiddler
var currWidth = targetElement.offsetWidth,
computedStyle = window.getComputedStyle(targetElement),
currMarginBottom = parseInt(computedStyle.marginBottom,10),
currMarginTop = parseInt(computedStyle.marginTop,10),
currHeight = targetElement.offsetHeight + currMarginTop;
// Remove the dom nodes of the widget at the end of the transition
setTimeout(removeElement,duration);
// Animate the closure
$tw.utils.setStyle(targetElement,[
{transition: &quot;none&quot;},
{transform: &quot;translateX(0px)&quot;},
{marginBottom: currMarginBottom + &quot;px&quot;},
{opacity: &quot;1.0&quot;}
]);
$tw.utils.forceLayout(targetElement);
$tw.utils.setStyle(targetElement,[
{transition: $tw.utils.roundTripPropertyName(&quot;transform&quot;) + &quot; &quot; + duration + &quot;ms &quot; + easing + &quot;, &quot; +
&quot;opacity &quot; + duration + &quot;ms &quot; + easing + &quot;, &quot; +
&quot;margin-bottom &quot; + duration + &quot;ms &quot; + easing},
{transform: &quot;translateX(-&quot; + currWidth + &quot;px)&quot;},
{marginBottom: (-currHeight) + &quot;px&quot;},
{opacity: &quot;0.0&quot;}
]);
} else {
widget.removeChildDomNodes();
}
};
exports.classic = ClassicStoryView;
})();</pre>
</div>
<div module-type="storyview" title="$:/core/modules/storyviews/pop.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/storyviews/pop.js
type: application/javascript
module-type: storyview
Animates list insertions and removals
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var PopStoryView = function(listWidget) {
this.listWidget = listWidget;
};
PopStoryView.prototype.navigateTo = function(historyInfo) {
var listElementIndex = this.listWidget.findListItem(0,historyInfo.title);
if(listElementIndex === undefined) {
return;
}
var listItemWidget = this.listWidget.children[listElementIndex],
targetElement = listItemWidget.findFirstDomNode();
// Abandon if the list entry isn't a DOM element (it might be a text node)
if(!(targetElement instanceof Element)) {
return;
}
// Scroll the node into view
this.listWidget.dispatchEvent({type: &quot;tm-scroll&quot;, target: targetElement});
};
PopStoryView.prototype.insert = function(widget) {
var targetElement = widget.findFirstDomNode(),
duration = $tw.utils.getAnimationDuration();
// Abandon if the list entry isn't a DOM element (it might be a text node)
if(!(targetElement instanceof Element)) {
return;
}
// Reset once the transition is over
setTimeout(function() {
$tw.utils.setStyle(targetElement,[
{transition: &quot;none&quot;},
{transform: &quot;none&quot;}
]);
$tw.utils.setStyle(widget.document.body,[
{&quot;overflow-x&quot;: &quot;&quot;}
]);
},duration);
// Prevent the page from overscrolling due to the zoom factor
$tw.utils.setStyle(widget.document.body,[
{&quot;overflow-x&quot;: &quot;hidden&quot;}
]);
// Set up the initial position of the element
$tw.utils.setStyle(targetElement,[
{transition: &quot;none&quot;},
{transform: &quot;scale(2)&quot;},
{opacity: &quot;0.0&quot;}
]);
$tw.utils.forceLayout(targetElement);
// Transition to the final position
$tw.utils.setStyle(targetElement,[
{transition: $tw.utils.roundTripPropertyName(&quot;transform&quot;) + &quot; &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;opacity &quot; + duration + &quot;ms ease-in-out&quot;},
{transform: &quot;scale(1)&quot;},
{opacity: &quot;1.0&quot;}
]);
};
PopStoryView.prototype.remove = function(widget) {
var targetElement = widget.findFirstDomNode(),
duration = $tw.utils.getAnimationDuration(),
removeElement = function() {
if(targetElement &amp;&amp; targetElement.parentNode) {
widget.removeChildDomNodes();
}
};
// Abandon if the list entry isn't a DOM element (it might be a text node)
if(!(targetElement instanceof Element)) {
removeElement();
return;
}
// Remove the element at the end of the transition
setTimeout(removeElement,duration);
// Animate the closure
$tw.utils.setStyle(targetElement,[
{transition: &quot;none&quot;},
{transform: &quot;scale(1)&quot;},
{opacity: &quot;1.0&quot;}
]);
$tw.utils.forceLayout(targetElement);
$tw.utils.setStyle(targetElement,[
{transition: $tw.utils.roundTripPropertyName(&quot;transform&quot;) + &quot; &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;opacity &quot; + duration + &quot;ms ease-in-out&quot;},
{transform: &quot;scale(0.1)&quot;},
{opacity: &quot;0.0&quot;}
]);
};
exports.pop = PopStoryView;
})();
</pre>
</div>
<div module-type="storyview" title="$:/core/modules/storyviews/zoomin.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/storyviews/zoomin.js
type: application/javascript
module-type: storyview
Zooms between individual tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var easing = &quot;cubic-bezier(0.645, 0.045, 0.355, 1)&quot;; // From http://easings.net/#easeInOutCubic
var ZoominListView = function(listWidget) {
var self = this;
this.listWidget = listWidget;
// Get the index of the tiddler that is at the top of the history
var history = this.listWidget.wiki.getTiddlerDataCached(this.listWidget.historyTitle,[]),
targetTiddler;
if(history.length &gt; 0) {
targetTiddler = history[history.length-1].title;
}
// Make all the tiddlers position absolute, and hide all but the top (or first) one
$tw.utils.each(this.listWidget.children,function(itemWidget,index) {
var domNode = itemWidget.findFirstDomNode();
// Abandon if the list entry isn't a DOM element (it might be a text node)
if(!(domNode instanceof Element)) {
return;
}
if((targetTiddler &amp;&amp; targetTiddler !== itemWidget.parseTreeNode.itemTitle) || (!targetTiddler &amp;&amp; index)) {
domNode.style.display = &quot;none&quot;;
} else {
self.currentTiddlerDomNode = domNode;
}
$tw.utils.addClass(domNode,&quot;tc-storyview-zoomin-tiddler&quot;);
});
};
ZoominListView.prototype.navigateTo = function(historyInfo) {
var duration = $tw.utils.getAnimationDuration(),
listElementIndex = this.listWidget.findListItem(0,historyInfo.title);
if(listElementIndex === undefined) {
return;
}
var listItemWidget = this.listWidget.children[listElementIndex],
targetElement = listItemWidget.findFirstDomNode();
// Abandon if the list entry isn't a DOM element (it might be a text node)
if(!(targetElement instanceof Element)) {
return;
}
// Make the new tiddler be position absolute and visible so that we can measure it
$tw.utils.addClass(targetElement,&quot;tc-storyview-zoomin-tiddler&quot;);
$tw.utils.setStyle(targetElement,[
{display: &quot;block&quot;},
{transformOrigin: &quot;0 0&quot;},
{transform: &quot;translateX(0px) translateY(0px) scale(1)&quot;},
{transition: &quot;none&quot;},
{opacity: &quot;0.0&quot;}
]);
// Get the position of the source node, or use the centre of the window as the source position
var sourceBounds = historyInfo.fromPageRect || {
left: window.innerWidth/2 - 2,
top: window.innerHeight/2 - 2,
width: window.innerWidth/8,
height: window.innerHeight/8
};
// Try to find the title node in the target tiddler
var titleDomNode = findTitleDomNode(listItemWidget) || listItemWidget.findFirstDomNode(),
zoomBounds = titleDomNode.getBoundingClientRect();
// Compute the transform for the target tiddler to make the title lie over the source rectange
var targetBounds = targetElement.getBoundingClientRect(),
scale = sourceBounds.width / zoomBounds.width,
x = sourceBounds.left - targetBounds.left - (zoomBounds.left - targetBounds.left) * scale,
y = sourceBounds.top - targetBounds.top - (zoomBounds.top - targetBounds.top) * scale;
// Transform the target tiddler to its starting position
$tw.utils.setStyle(targetElement,[
{transform: &quot;translateX(&quot; + x + &quot;px) translateY(&quot; + y + &quot;px) scale(&quot; + scale + &quot;)&quot;}
]);
// Force layout
$tw.utils.forceLayout(targetElement);
// Apply the ending transitions with a timeout to ensure that the previously applied transformations are applied first
var self = this,
prevCurrentTiddler = this.currentTiddlerDomNode;
this.currentTiddlerDomNode = targetElement;
// Transform the target tiddler to its natural size
$tw.utils.setStyle(targetElement,[
{transition: $tw.utils.roundTripPropertyName(&quot;transform&quot;) + &quot; &quot; + duration + &quot;ms &quot; + easing + &quot;, opacity &quot; + duration + &quot;ms &quot; + easing},
{opacity: &quot;1.0&quot;},
{transform: &quot;translateX(0px) translateY(0px) scale(1)&quot;},
{zIndex: &quot;500&quot;},
]);
// Transform the previous tiddler out of the way and then hide it
if(prevCurrentTiddler &amp;&amp; prevCurrentTiddler !== targetElement) {
scale = zoomBounds.width / sourceBounds.width;
x = zoomBounds.left - targetBounds.left - (sourceBounds.left - targetBounds.left) * scale;
y = zoomBounds.top - targetBounds.top - (sourceBounds.top - targetBounds.top) * scale;
$tw.utils.setStyle(prevCurrentTiddler,[
{transition: $tw.utils.roundTripPropertyName(&quot;transform&quot;) + &quot; &quot; + duration + &quot;ms &quot; + easing + &quot;, opacity &quot; + duration + &quot;ms &quot; + easing},
{opacity: &quot;0.0&quot;},
{transformOrigin: &quot;0 0&quot;},
{transform: &quot;translateX(&quot; + x + &quot;px) translateY(&quot; + y + &quot;px) scale(&quot; + scale + &quot;)&quot;},
{zIndex: &quot;0&quot;}
]);
// Hide the tiddler when the transition has finished
setTimeout(function() {
if(self.currentTiddlerDomNode !== prevCurrentTiddler) {
prevCurrentTiddler.style.display = &quot;none&quot;;
}
},duration);
}
// Scroll the target into view
// $tw.pageScroller.scrollIntoView(targetElement);
};
/*
Find the first child DOM node of a widget that has the class &quot;tc-title&quot;
*/
function findTitleDomNode(widget,targetClass) {
targetClass = targetClass || &quot;tc-title&quot;;
var domNode = widget.findFirstDomNode();
if(domNode &amp;&amp; domNode.querySelector) {
return domNode.querySelector(&quot;.&quot; + targetClass);
}
return null;
}
ZoominListView.prototype.insert = function(widget) {
var targetElement = widget.findFirstDomNode();
// Abandon if the list entry isn't a DOM element (it might be a text node)
if(!(targetElement instanceof Element)) {
return;
}
// Make the newly inserted node position absolute and hidden
$tw.utils.addClass(targetElement,&quot;tc-storyview-zoomin-tiddler&quot;);
$tw.utils.setStyle(targetElement,[
{display: &quot;none&quot;}
]);
};
ZoominListView.prototype.remove = function(widget) {
var targetElement = widget.findFirstDomNode(),
duration = $tw.utils.getAnimationDuration(),
removeElement = function() {
widget.removeChildDomNodes();
};
// Abandon if the list entry isn't a DOM element (it might be a text node)
if(!(targetElement instanceof Element)) {
removeElement();
return;
}
// Abandon if hidden
if(targetElement.style.display != &quot;block&quot; ) {
removeElement();
return;
}
// Set up the tiddler that is being closed
$tw.utils.addClass(targetElement,&quot;tc-storyview-zoomin-tiddler&quot;);
$tw.utils.setStyle(targetElement,[
{display: &quot;block&quot;},
{transformOrigin: &quot;50% 50%&quot;},
{transform: &quot;translateX(0px) translateY(0px) scale(1)&quot;},
{transition: &quot;none&quot;},
{zIndex: &quot;0&quot;}
]);
// We'll move back to the previous or next element in the story
var toWidget = widget.previousSibling();
if(!toWidget) {
toWidget = widget.nextSibling();
}
var toWidgetDomNode = toWidget &amp;&amp; toWidget.findFirstDomNode();
// Set up the tiddler we're moving back in
if(toWidgetDomNode) {
$tw.utils.addClass(toWidgetDomNode,&quot;tc-storyview-zoomin-tiddler&quot;);
$tw.utils.setStyle(toWidgetDomNode,[
{display: &quot;block&quot;},
{transformOrigin: &quot;50% 50%&quot;},
{transform: &quot;translateX(0px) translateY(0px) scale(10)&quot;},
{transition: $tw.utils.roundTripPropertyName(&quot;transform&quot;) + &quot; &quot; + duration + &quot;ms &quot; + easing + &quot;, opacity &quot; + duration + &quot;ms &quot; + easing},
{opacity: &quot;0&quot;},
{zIndex: &quot;500&quot;}
]);
this.currentTiddlerDomNode = toWidgetDomNode;
}
// Animate them both
// Force layout
$tw.utils.forceLayout(this.listWidget.parentDomNode);
// First, the tiddler we're closing
$tw.utils.setStyle(targetElement,[
{transformOrigin: &quot;50% 50%&quot;},
{transform: &quot;translateX(0px) translateY(0px) scale(0.1)&quot;},
{transition: $tw.utils.roundTripPropertyName(&quot;transform&quot;) + &quot; &quot; + duration + &quot;ms &quot; + easing + &quot;, opacity &quot; + duration + &quot;ms &quot; + easing},
{opacity: &quot;0&quot;},
{zIndex: &quot;0&quot;}
]);
setTimeout(removeElement,duration);
// Now the tiddler we're going back to
if(toWidgetDomNode) {
$tw.utils.setStyle(toWidgetDomNode,[
{transform: &quot;translateX(0px) translateY(0px) scale(1)&quot;},
{opacity: &quot;1&quot;}
]);
}
return true; // Indicate that we'll delete the DOM node
};
exports.zoomin = ZoominListView;
})();
</pre>
</div>
<div module-type="global" title="$:/core/modules/syncer.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/syncer.js
type: application/javascript
module-type: global
The syncer tracks changes to the store and synchronises them to a remote data store represented as a &quot;sync adaptor&quot;
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Defaults
*/
Syncer.prototype.titleIsLoggedIn = &quot;$:/status/IsLoggedIn&quot;;
Syncer.prototype.titleIsAnonymous = &quot;$:/status/IsAnonymous&quot;;
Syncer.prototype.titleIsReadOnly = &quot;$:/status/IsReadOnly&quot;;
Syncer.prototype.titleUserName = &quot;$:/status/UserName&quot;;
Syncer.prototype.titleSyncFilter = &quot;$:/config/SyncFilter&quot;;
Syncer.prototype.titleSyncPollingInterval = &quot;$:/config/SyncPollingInterval&quot;;
Syncer.prototype.titleSyncDisableLazyLoading = &quot;$:/config/SyncDisableLazyLoading&quot;;
Syncer.prototype.titleSavedNotification = &quot;$:/language/Notifications/Save/Done&quot;;
Syncer.prototype.titleSyncThrottleInterval = &quot;$:/config/SyncThrottleInterval&quot;;
Syncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync timer
Syncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers if they've changed in the last 1s...
Syncer.prototype.errorRetryInterval = 5 * 1000; // Interval to retry after an error
Syncer.prototype.fallbackInterval = 10 * 1000; // Unless the task is older than 10s
Syncer.prototype.pollTimerInterval = 60 * 1000; // Interval for polling for changes from the adaptor
/*
Instantiate the syncer with the following options:
syncadaptor: reference to syncadaptor to be used
wiki: wiki to be synced
*/
function Syncer(options) {
var self = this;
this.wiki = options.wiki;
// Save parameters
this.syncadaptor = options.syncadaptor;
this.disableUI = !!options.disableUI;
this.titleIsLoggedIn = options.titleIsLoggedIn || this.titleIsLoggedIn;
this.titleUserName = options.titleUserName || this.titleUserName;
this.titleSyncFilter = options.titleSyncFilter || this.titleSyncFilter;
this.titleSavedNotification = options.titleSavedNotification || this.titleSavedNotification;
this.taskTimerInterval = options.taskTimerInterval || this.taskTimerInterval;
this.throttleInterval = options.throttleInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncThrottleInterval,&quot;&quot;),10) || this.throttleInterval;
this.errorRetryInterval = options.errorRetryInterval || this.errorRetryInterval;
this.fallbackInterval = options.fallbackInterval || this.fallbackInterval;
this.pollTimerInterval = options.pollTimerInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncPollingInterval,&quot;&quot;),10) || this.pollTimerInterval;
this.logging = &quot;logging&quot; in options ? options.logging : true;
// Make a logger
this.logger = new $tw.utils.Logger(&quot;syncer&quot; + ($tw.browser ? &quot;-browser&quot; : &quot;&quot;) + ($tw.node ? &quot;-server&quot; : &quot;&quot;) + (this.syncadaptor.name ? (&quot;-&quot; + this.syncadaptor.name) : &quot;&quot;),{
colour: &quot;cyan&quot;,
enable: this.logging,
saveHistory: true
});
// Make another logger for connection errors
this.loggerConnection = new $tw.utils.Logger(&quot;syncer&quot; + ($tw.browser ? &quot;-browser&quot; : &quot;&quot;) + ($tw.node ? &quot;-server&quot; : &quot;&quot;) + (this.syncadaptor.name ? (&quot;-&quot; + this.syncadaptor.name) : &quot;&quot;) + &quot;-connection&quot;,{
colour: &quot;cyan&quot;,
enable: this.logging
});
// Ask the syncadaptor to use the main logger
if(this.syncadaptor.setLoggerSaveBuffer) {
this.syncadaptor.setLoggerSaveBuffer(this.logger);
}
// Compile the dirty tiddler filter
this.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));
// Record information for known tiddlers
this.readTiddlerInfo();
this.titlesToBeLoaded = {}; // Hashmap of titles of tiddlers that need loading from the server
this.titlesHaveBeenLazyLoaded = {}; // Hashmap of titles of tiddlers that have already been lazily loaded from the server
// Timers
this.taskTimerId = null; // Timer for task dispatch
this.pollTimerId = null; // Timer for polling server
// Number of outstanding requests
this.numTasksInProgress = 0;
// Listen out for changes to tiddlers
this.wiki.addEventListener(&quot;change&quot;,function(changes) {
// Filter the changes to just include ones that are being synced
var filteredChanges = self.getSyncedTiddlers(function(callback) {
$tw.utils.each(changes,function(change,title) {
var tiddler = self.wiki.tiddlerExists(title) &amp;&amp; self.wiki.getTiddler(title);
callback(tiddler,title);
});
});
if(filteredChanges.length &gt; 0) {
self.processTaskQueue();
} else {
// Look for deletions of tiddlers we're already syncing
var outstandingDeletion = false
$tw.utils.each(changes,function(change,title,object) {
if(change.deleted &amp;&amp; $tw.utils.hop(self.tiddlerInfo,title)) {
outstandingDeletion = true;
}
});
if(outstandingDeletion) {
self.processTaskQueue();
}
}
});
// Browser event handlers
if($tw.browser &amp;&amp; !this.disableUI) {
// Set up our beforeunload handler
$tw.addUnloadTask(function(event) {
var confirmationMessage;
if(self.isDirty()) {
confirmationMessage = $tw.language.getString(&quot;UnsavedChangesWarning&quot;);
event.returnValue = confirmationMessage; // Gecko
}
return confirmationMessage;
});
// Listen out for login/logout/refresh events in the browser
$tw.rootWidget.addEventListener(&quot;tm-login&quot;,function() {
self.handleLoginEvent();
});
$tw.rootWidget.addEventListener(&quot;tm-logout&quot;,function() {
self.handleLogoutEvent();
});
$tw.rootWidget.addEventListener(&quot;tm-server-refresh&quot;,function() {
self.handleRefreshEvent();
});
$tw.rootWidget.addEventListener(&quot;tm-copy-syncer-logs-to-clipboard&quot;,function() {
$tw.utils.copyToClipboard($tw.utils.getSystemInfo() + &quot;\n\nLog:\n&quot; + self.logger.getBuffer());
});
}
// Listen out for lazyLoad events
if(!this.disableUI &amp;&amp; $tw.wiki.getTiddlerText(this.titleSyncDisableLazyLoading) !== &quot;yes&quot;) {
this.wiki.addEventListener(&quot;lazyLoad&quot;,function(title) {
self.handleLazyLoadEvent(title);
});
}
// Get the login status
this.getStatus(function(err,isLoggedIn) {
// Do a sync from the server
self.syncFromServer();
});
}
/*
Show a generic network error alert
*/
Syncer.prototype.displayError = function(msg,err) {
if(err === ($tw.language.getString(&quot;Error/XMLHttpRequest&quot;) + &quot;: 0&quot;)) {
this.loggerConnection.alert($tw.language.getString(&quot;Error/NetworkErrorAlert&quot;));
this.logger.log(msg + &quot;:&quot;,err);
} else {
this.logger.alert(msg + &quot;:&quot;,err);
}
};
/*
Return an array of the tiddler titles that are subjected to syncing
*/
Syncer.prototype.getSyncedTiddlers = function(source) {
return this.filterFn.call(this.wiki,source);
};
/*
Return an array of the tiddler titles that are subjected to syncing
*/
Syncer.prototype.getTiddlerRevision = function(title) {
if(this.syncadaptor &amp;&amp; this.syncadaptor.getTiddlerRevision) {
return this.syncadaptor.getTiddlerRevision(title);
} else {
return this.wiki.getTiddler(title).fields.revision;
}
};
/*
Read (or re-read) the latest tiddler info from the store
*/
Syncer.prototype.readTiddlerInfo = function() {
// Hashmap by title of {revision:,changeCount:,adaptorInfo:}
// &quot;revision&quot; is the revision of the tiddler last seen on the server, and &quot;changecount&quot; is the corresponding local changecount
this.tiddlerInfo = {};
// Record information for known tiddlers
var self = this,
tiddlers = this.getSyncedTiddlers();
$tw.utils.each(tiddlers,function(title) {
var tiddler = self.wiki.tiddlerExists(title) &amp;&amp; self.wiki.getTiddler(title);
self.tiddlerInfo[title] = {
revision: self.getTiddlerRevision(title),
adaptorInfo: self.syncadaptor &amp;&amp; self.syncadaptor.getTiddlerInfo(tiddler),
changeCount: self.wiki.getChangeCount(title)
};
});
};
/*
Checks whether the wiki is dirty (ie the window shouldn't be closed)
*/
Syncer.prototype.isDirty = function() {
this.logger.log(&quot;Checking dirty status&quot;);
// Check tiddlers that are in the store and included in the filter function
var titles = this.getSyncedTiddlers();
for(var index=0; index&lt;titles.length; index++) {
var title = titles[index],
tiddlerInfo = this.tiddlerInfo[title];
if(this.wiki.tiddlerExists(title)) {
if(tiddlerInfo) {
// If the tiddler is known on the server and has been modified locally then it needs to be saved to the server
if($tw.wiki.getChangeCount(title) &gt; tiddlerInfo.changeCount) {
return true;
}
} else {
// If the tiddler isn't known on the server then it needs to be saved to the server
return true;
}
}
}
// Check tiddlers that are known from the server but not currently in the store
titles = Object.keys(this.tiddlerInfo);
for(index=0; index&lt;titles.length; index++) {
if(!this.wiki.tiddlerExists(titles[index])) {
// There must be a pending delete
return true;
}
}
return false;
};
/*
Update the document body with the class &quot;tc-dirty&quot; if the wiki has unsaved/unsynced changes
*/
Syncer.prototype.updateDirtyStatus = function() {
if($tw.browser &amp;&amp; !this.disableUI) {
var dirty = this.isDirty();
$tw.utils.toggleClass(document.body,&quot;tc-dirty&quot;,dirty);
if(!dirty) {
this.loggerConnection.clearAlerts();
}
}
};
/*
Save an incoming tiddler in the store, and updates the associated tiddlerInfo
*/
Syncer.prototype.storeTiddler = function(tiddlerFields) {
// Save the tiddler
var tiddler = new $tw.Tiddler(tiddlerFields);
this.wiki.addTiddler(tiddler);
// Save the tiddler revision and changeCount details
this.tiddlerInfo[tiddlerFields.title] = {
revision: this.getTiddlerRevision(tiddlerFields.title),
adaptorInfo: this.syncadaptor.getTiddlerInfo(tiddler),
changeCount: this.wiki.getChangeCount(tiddlerFields.title)
};
};
Syncer.prototype.getStatus = function(callback) {
var self = this;
// Check if the adaptor supports getStatus()
if(this.syncadaptor &amp;&amp; this.syncadaptor.getStatus) {
// Mark us as not logged in
this.wiki.addTiddler({title: this.titleIsLoggedIn,text: &quot;no&quot;});
// Get login status
this.syncadaptor.getStatus(function(err,isLoggedIn,username,isReadOnly,isAnonymous) {
if(err) {
self.logger.alert(err);
} else {
// Set the various status tiddlers
self.wiki.addTiddler({title: self.titleIsReadOnly,text: isReadOnly ? &quot;yes&quot; : &quot;no&quot;});
self.wiki.addTiddler({title: self.titleIsAnonymous,text: isAnonymous ? &quot;yes&quot; : &quot;no&quot;});
self.wiki.addTiddler({title: self.titleIsLoggedIn,text: isLoggedIn ? &quot;yes&quot; : &quot;no&quot;});
if(isLoggedIn) {
self.wiki.addTiddler({title: self.titleUserName,text: username || &quot;&quot;});
}
}
// Invoke the callback
if(callback) {
callback(err,isLoggedIn,username);
}
});
} else {
callback(null,true,&quot;UNAUTHENTICATED&quot;);
}
};
/*
Synchronise from the server by reading the skinny tiddler list and queuing up loads for any tiddlers that we don't already have up to date
*/
Syncer.prototype.syncFromServer = function() {
var self = this,
cancelNextSync = function() {
if(self.pollTimerId) {
clearTimeout(self.pollTimerId);
self.pollTimerId = null;
}
},
triggerNextSync = function() {
self.pollTimerId = setTimeout(function() {
self.pollTimerId = null;
self.syncFromServer.call(self);
},self.pollTimerInterval);
};
if(this.syncadaptor &amp;&amp; this.syncadaptor.getUpdatedTiddlers) {
this.logger.log(&quot;Retrieving updated tiddler list&quot;);
cancelNextSync();
this.syncadaptor.getUpdatedTiddlers(self,function(err,updates) {
triggerNextSync();
if(err) {
self.displayError($tw.language.getString(&quot;Error/RetrievingSkinny&quot;),err);
return;
}
if(updates) {
$tw.utils.each(updates.modifications,function(title) {
self.titlesToBeLoaded[title] = true;
});
$tw.utils.each(updates.deletions,function(title) {
delete self.tiddlerInfo[title];
self.logger.log(&quot;Deleting tiddler missing from server:&quot;,title);
self.wiki.deleteTiddler(title);
});
if(updates.modifications.length &gt; 0 || updates.deletions.length &gt; 0) {
self.processTaskQueue();
}
}
});
} else if(this.syncadaptor &amp;&amp; this.syncadaptor.getSkinnyTiddlers) {
this.logger.log(&quot;Retrieving skinny tiddler list&quot;);
cancelNextSync();
this.syncadaptor.getSkinnyTiddlers(function(err,tiddlers) {
triggerNextSync();
// Check for errors
if(err) {
self.displayError($tw.language.getString(&quot;Error/RetrievingSkinny&quot;),err);
return;
}
// Keep track of which tiddlers we already know about have been reported this time
var previousTitles = Object.keys(self.tiddlerInfo);
// Process each incoming tiddler
for(var t=0; t&lt;tiddlers.length; t++) {
// Get the incoming tiddler fields, and the existing tiddler
var tiddlerFields = tiddlers[t],
incomingRevision = tiddlerFields.revision + &quot;&quot;,
tiddler = self.wiki.tiddlerExists(tiddlerFields.title) &amp;&amp; self.wiki.getTiddler(tiddlerFields.title),
tiddlerInfo = self.tiddlerInfo[tiddlerFields.title],
currRevision = tiddlerInfo ? tiddlerInfo.revision : null,
indexInPreviousTitles = previousTitles.indexOf(tiddlerFields.title);
if(indexInPreviousTitles !== -1) {
previousTitles.splice(indexInPreviousTitles,1);
}
// Ignore the incoming tiddler if it's the same as the revision we've already got
if(currRevision !== incomingRevision) {
// Only load the skinny version if we don't already have a fat version of the tiddler
if(!tiddler || tiddler.fields.text === undefined) {
self.storeTiddler(tiddlerFields);
}
// Do a full load of this tiddler
self.titlesToBeLoaded[tiddlerFields.title] = true;
}
}
// Delete any tiddlers that were previously reported but missing this time
$tw.utils.each(previousTitles,function(title) {
delete self.tiddlerInfo[title];
self.logger.log(&quot;Deleting tiddler missing from server:&quot;,title);
self.wiki.deleteTiddler(title);
});
self.processTaskQueue();
});
}
};
/*
Force load a tiddler from the server
*/
Syncer.prototype.enqueueLoadTiddler = function(title) {
this.titlesToBeLoaded[title] = true;
this.processTaskQueue();
};
/*
Lazily load a skinny tiddler if we can
*/
Syncer.prototype.handleLazyLoadEvent = function(title) {
// Ignore if the syncadaptor doesn't handle it
if(!this.syncadaptor.supportsLazyLoading) {
return;
}
// Don't lazy load the same tiddler twice
if(!this.titlesHaveBeenLazyLoaded[title]) {
// Don't lazy load if the tiddler isn't included in the sync filter
if(this.getSyncedTiddlers().indexOf(title) !== -1) {
// Mark the tiddler as needing loading, and having already been lazily loaded
this.titlesToBeLoaded[title] = true;
this.titlesHaveBeenLazyLoaded[title] = true;
}
}
};
/*
Dispay a password prompt and allow the user to login
*/
Syncer.prototype.handleLoginEvent = function() {
var self = this;
this.getStatus(function(err,isLoggedIn,username) {
if(!err &amp;&amp; !isLoggedIn) {
$tw.passwordPrompt.createPrompt({
serviceName: $tw.language.getString(&quot;LoginToTiddlySpace&quot;),
callback: function(data) {
self.login(data.username,data.password,function(err,isLoggedIn) {
self.syncFromServer();
});
return true; // Get rid of the password prompt
}
});
}
});
};
/*
Attempt to login to TiddlyWeb.
username: username
password: password
callback: invoked with arguments (err,isLoggedIn)
*/
Syncer.prototype.login = function(username,password,callback) {
this.logger.log(&quot;Attempting to login as&quot;,username);
var self = this;
if(this.syncadaptor.login) {
this.syncadaptor.login(username,password,function(err) {
if(err) {
return callback(err);
}
self.getStatus(function(err,isLoggedIn,username) {
if(callback) {
callback(err,isLoggedIn);
}
});
});
} else {
callback(null,true);
}
};
/*
Attempt to log out of TiddlyWeb
*/
Syncer.prototype.handleLogoutEvent = function() {
this.logger.log(&quot;Attempting to logout&quot;);
var self = this;
if(this.syncadaptor.logout) {
this.syncadaptor.logout(function(err) {
if(err) {
self.logger.alert(err);
} else {
self.getStatus();
}
});
}
};
/*
Immediately refresh from the server
*/
Syncer.prototype.handleRefreshEvent = function() {
this.syncFromServer();
};
/*
Process the next task
*/
Syncer.prototype.processTaskQueue = function() {
var self = this;
// Only process a task if the sync adaptor is fully initialised and we're not already performing
// a task. If we are already performing a task then we'll dispatch the next one when it completes
if((!this.syncadaptor.isReady || this.syncadaptor.isReady()) &amp;&amp; this.numTasksInProgress === 0) {
// Choose the next task to perform
var task = this.chooseNextTask();
// Perform the task if we had one
if(typeof task === &quot;object&quot; &amp;&amp; task !== null) {
this.numTasksInProgress += 1;
task.run(function(err) {
self.numTasksInProgress -= 1;
if(err) {
self.displayError(&quot;Sync error while processing &quot; + task.type + &quot; of '&quot; + task.title + &quot;'&quot;,err);
self.updateDirtyStatus();
self.triggerTimeout(self.errorRetryInterval);
} else {
self.updateDirtyStatus();
// Process the next task
self.processTaskQueue.call(self);
}
});
} else {
// No task is ready so update the status
this.updateDirtyStatus();
// And trigger a timeout if there is a pending task
if(task === true) {
this.triggerTimeout();
}
}
} else {
this.updateDirtyStatus();
}
};
Syncer.prototype.triggerTimeout = function(interval) {
var self = this;
if(!this.taskTimerId) {
this.taskTimerId = setTimeout(function() {
self.taskTimerId = null;
self.processTaskQueue.call(self);
},interval || self.taskTimerInterval);
}
};
/*
Choose the next sync task. We prioritise saves, then deletes, then loads from the server
Returns either a task object, null if there's no upcoming tasks, or the boolean true if there are pending tasks that aren't yet due
*/
Syncer.prototype.chooseNextTask = function() {
var thresholdLastSaved = (new Date()) - this.throttleInterval,
havePending = null;
// First we look for tiddlers that have been modified locally and need saving back to the server
var titles = this.getSyncedTiddlers();
for(var index=0; index&lt;titles.length; index++) {
var title = titles[index],
tiddler = this.wiki.tiddlerExists(title) &amp;&amp; this.wiki.getTiddler(title),
tiddlerInfo = this.tiddlerInfo[title];
if(tiddler) {
// If the tiddler is not known on the server, or has been modified locally no more recently than the threshold then it needs to be saved to the server
var hasChanged = !tiddlerInfo || $tw.wiki.getChangeCount(title) &gt; tiddlerInfo.changeCount,
isReadyToSave = !tiddlerInfo || !tiddlerInfo.timestampLastSaved || tiddlerInfo.timestampLastSaved &lt; thresholdLastSaved;
if(hasChanged) {
if(isReadyToSave) {
return new SaveTiddlerTask(this,title);
} else {
havePending = true;
}
}
}
}
// Second, we check tiddlers that are known from the server but not currently in the store, and so need deleting on the server
titles = Object.keys(this.tiddlerInfo);
for(index=0; index&lt;titles.length; index++) {
title = titles[index];
tiddlerInfo = this.tiddlerInfo[title];
tiddler = this.wiki.tiddlerExists(title) &amp;&amp; this.wiki.getTiddler(title);
if(!tiddler) {
return new DeleteTiddlerTask(this,title);
}
}
// Check for tiddlers that need loading
title = Object.keys(this.titlesToBeLoaded)[0];
if(title) {
delete this.titlesToBeLoaded[title];
return new LoadTiddlerTask(this,title);
}
// No tasks are ready
return havePending;
};
function SaveTiddlerTask(syncer,title) {
this.syncer = syncer;
this.title = title;
this.type = &quot;save&quot;;
}
SaveTiddlerTask.prototype.run = function(callback) {
var self = this,
changeCount = this.syncer.wiki.getChangeCount(this.title),
tiddler = this.syncer.wiki.tiddlerExists(this.title) &amp;&amp; this.syncer.wiki.getTiddler(this.title);
this.syncer.logger.log(&quot;Dispatching 'save' task:&quot;,this.title);
if(tiddler) {
this.syncer.syncadaptor.saveTiddler(tiddler,function(err,adaptorInfo,revision) {
// If there's an error, exit without changing any internal state
if(err) {
return callback(err);
}
// Adjust the info stored about this tiddler
self.syncer.tiddlerInfo[self.title] = {
changeCount: changeCount,
adaptorInfo: adaptorInfo,
revision: revision,
timestampLastSaved: new Date()
};
// Invoke the callback
callback(null);
});
} else {
this.syncer.logger.log(&quot; Not Dispatching 'save' task:&quot;,this.title,&quot;tiddler does not exist&quot;);
$tw.utils.nextTick(callback(null));
}
};
function DeleteTiddlerTask(syncer,title) {
this.syncer = syncer;
this.title = title;
this.type = &quot;delete&quot;;
}
DeleteTiddlerTask.prototype.run = function(callback) {
var self = this;
this.syncer.logger.log(&quot;Dispatching 'delete' task:&quot;,this.title);
this.syncer.syncadaptor.deleteTiddler(this.title,function(err) {
// If there's an error, exit without changing any internal state
if(err) {
return callback(err);
}
// Remove the info stored about this tiddler
delete self.syncer.tiddlerInfo[self.title];
// Invoke the callback
callback(null);
},{
tiddlerInfo: self.syncer.tiddlerInfo[this.title]
});
};
function LoadTiddlerTask(syncer,title) {
this.syncer = syncer;
this.title = title;
this.type = &quot;load&quot;;
}
LoadTiddlerTask.prototype.run = function(callback) {
var self = this;
this.syncer.logger.log(&quot;Dispatching 'load' task:&quot;,this.title);
this.syncer.syncadaptor.loadTiddler(this.title,function(err,tiddlerFields) {
// If there's an error, exit without changing any internal state
if(err) {
return callback(err);
}
// Update the info stored about this tiddler
if(tiddlerFields) {
self.syncer.storeTiddler(tiddlerFields);
}
// Invoke the callback
callback(null);
});
};
exports.Syncer = Syncer;
})();
</pre>
</div>
<div module-type="tiddlermethod" title="$:/core/modules/tiddler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/tiddler.js
type: application/javascript
module-type: tiddlermethod
Extension methods for the $tw.Tiddler object (constructor and methods required at boot time are in boot/boot.js)
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.hasTag = function(tag) {
return this.fields.tags &amp;&amp; this.fields.tags.indexOf(tag) !== -1;
};
exports.isPlugin = function() {
return this.fields.type === &quot;application/json&quot; &amp;&amp; this.hasField(&quot;plugin-type&quot;);
};
exports.isDraft = function() {
return this.hasField(&quot;draft.of&quot;);
};
exports.getFieldString = function(field) {
var value = this.fields[field];
// Check for a missing field
if(value === undefined || value === null) {
return &quot;&quot;;
}
// Parse the field with the associated module (if any)
var fieldModule = $tw.Tiddler.fieldModules[field];
if(fieldModule &amp;&amp; fieldModule.stringify) {
return fieldModule.stringify.call(this,value);
} else {
return value.toString();
}
};
/*
Get the value of a field as a list
*/
exports.getFieldList = function(field) {
var value = this.fields[field];
// Check for a missing field
if(value === undefined || value === null) {
return [];
}
return $tw.utils.parseStringArray(value);
};
/*
Get all the fields as a hashmap of strings. Options:
exclude: an array of field names to exclude
*/
exports.getFieldStrings = function(options) {
options = options || {};
var exclude = options.exclude || [];
var fields = {};
for(var field in this.fields) {
if($tw.utils.hop(this.fields,field)) {
if(exclude.indexOf(field) === -1) {
fields[field] = this.getFieldString(field);
}
}
}
return fields;
};
/*
Get all the fields as a name:value block. Options:
exclude: an array of field names to exclude
*/
exports.getFieldStringBlock = function(options) {
options = options || {};
var exclude = options.exclude || [],
fields = Object.keys(this.fields).sort(),
result = [];
for(var t=0; t&lt;fields.length; t++) {
var field = fields[t];
if(exclude.indexOf(field) === -1) {
result.push(field + &quot;: &quot; + this.getFieldString(field));
}
}
return result.join(&quot;\n&quot;);
};
exports.getFieldDay = function(field) {
if(this.cache &amp;&amp; this.cache.day &amp;&amp; $tw.utils.hop(this.cache.day,field) ) {
return this.cache.day[field];
}
var day = &quot;&quot;;
if(this.fields[field]) {
day = (new Date($tw.utils.parseDate(this.fields[field]))).setHours(0,0,0,0);
}
this.cache.day = this.cache.day || {};
this.cache.day[field] = day;
return day;
};
})();
</pre>
</div>
<div module-type="upgrader" title="$:/core/modules/upgraders/plugins.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/upgraders/plugins.js
type: application/javascript
module-type: upgrader
Upgrader module that checks that plugins are newer than any already installed version
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var UPGRADE_LIBRARY_TITLE = &quot;$:/UpgradeLibrary&quot;;
var BLOCKED_PLUGINS = {
&quot;$:/themes/tiddlywiki/stickytitles&quot;: {
versions: [&quot;*&quot;]
},
&quot;$:/plugins/tiddlywiki/fullscreen&quot;: {
versions: [&quot;*&quot;]
}
};
exports.upgrade = function(wiki,titles,tiddlers) {
var self = this,
messages = {},
upgradeLibrary,
getLibraryTiddler = function(title) {
if(!upgradeLibrary) {
upgradeLibrary = wiki.getTiddlerData(UPGRADE_LIBRARY_TITLE,{});
upgradeLibrary.tiddlers = upgradeLibrary.tiddlers || {};
}
return upgradeLibrary.tiddlers[title];
};
// Go through all the incoming tiddlers
$tw.utils.each(titles,function(title) {
var incomingTiddler = tiddlers[title];
// Check if we're dealing with a plugin
if(incomingTiddler &amp;&amp; incomingTiddler[&quot;plugin-type&quot;]) {
// Check whether the plugin contains JS modules
var requiresReload = $tw.wiki.doesPluginInfoRequireReload(JSON.parse(incomingTiddler.text)) ? ($tw.wiki.getTiddlerText(&quot;$:/language/ControlPanel/Plugins/PluginWillRequireReload&quot;) + &quot; &quot;) : &quot;&quot;;
messages[title] = requiresReload;
if(incomingTiddler.version) {
// Upgrade the incoming plugin if it is in the upgrade library
var libraryTiddler = getLibraryTiddler(title);
if(libraryTiddler &amp;&amp; libraryTiddler[&quot;plugin-type&quot;] &amp;&amp; libraryTiddler.version) {
tiddlers[title] = libraryTiddler;
messages[title] = requiresReload + $tw.language.getString(&quot;Import/Upgrader/Plugins/Upgraded&quot;,{variables: {incoming: incomingTiddler.version, upgraded: libraryTiddler.version}});
return;
}
// Suppress the incoming plugin if it is older than the currently installed one
var existingTiddler = wiki.getTiddler(title);
if(existingTiddler &amp;&amp; existingTiddler.hasField(&quot;plugin-type&quot;) &amp;&amp; existingTiddler.hasField(&quot;version&quot;)) {
// Reject the incoming plugin by blanking all its fields
if($tw.utils.checkVersions(existingTiddler.fields.version,incomingTiddler.version)) {
tiddlers[title] = Object.create(null);
messages[title] = requiresReload + $tw.language.getString(&quot;Import/Upgrader/Plugins/Suppressed/Version&quot;,{variables: {incoming: incomingTiddler.version, existing: existingTiddler.fields.version}});
return;
}
}
}
// Check whether the plugin is on the blocked list
var blockInfo = BLOCKED_PLUGINS[title];
if(blockInfo) {
if(blockInfo.versions.indexOf(&quot;*&quot;) !== -1 || (incomingTiddler.version &amp;&amp; blockInfo.versions.indexOf(incomingTiddler.version) !== -1)) {
tiddlers[title] = Object.create(null);
messages[title] = $tw.language.getString(&quot;Import/Upgrader/Plugins/Suppressed/Incompatible&quot;);
return;
}
}
}
});
return messages;
};
})();
</pre>
</div>
<div module-type="upgrader" title="$:/core/modules/upgraders/system.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/upgraders/system.js
type: application/javascript
module-type: upgrader
Upgrader module that suppresses certain system tiddlers that shouldn't be imported
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var DONT_IMPORT_LIST = [&quot;$:/StoryList&quot;,&quot;$:/HistoryList&quot;],
DONT_IMPORT_PREFIX_LIST = [&quot;$:/temp/&quot;,&quot;$:/state/&quot;,&quot;$:/Import&quot;],
WARN_IMPORT_PREFIX_LIST = [&quot;$:/core/modules/&quot;];
exports.upgrade = function(wiki,titles,tiddlers) {
var self = this,
messages = {},
showAlert = false;
// Check for tiddlers on our list
$tw.utils.each(titles,function(title) {
if(DONT_IMPORT_LIST.indexOf(title) !== -1) {
tiddlers[title] = Object.create(null);
messages[title] = $tw.language.getString(&quot;Import/Upgrader/System/Suppressed&quot;);
} else {
for(var t=0; t&lt;DONT_IMPORT_PREFIX_LIST.length; t++) {
var prefix = DONT_IMPORT_PREFIX_LIST[t];
if(title.substr(0,prefix.length) === prefix) {
tiddlers[title] = Object.create(null);
messages[title] = $tw.language.getString(&quot;Import/Upgrader/State/Suppressed&quot;);
}
}
for(var t=0; t&lt;WARN_IMPORT_PREFIX_LIST.length; t++) {
var prefix = WARN_IMPORT_PREFIX_LIST[t];
if(title.substr(0,prefix.length) === prefix &amp;&amp; wiki.isShadowTiddler(title)) {
showAlert = true;
messages[title] = $tw.language.getString(&quot;Import/Upgrader/System/Warning&quot;);
}
}
}
});
if(showAlert) {
var logger = new $tw.utils.Logger(&quot;import&quot;);
logger.alert($tw.language.getString(&quot;Import/Upgrader/System/Alert&quot;));
}
return messages;
};
})();
</pre>
</div>
<div module-type="upgrader" title="$:/core/modules/upgraders/themetweaks.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/upgraders/themetweaks.js
type: application/javascript
module-type: upgrader
Upgrader module that handles the change in theme tweak storage introduced in 5.0.14-beta.
Previously, theme tweaks were stored in two data tiddlers:
* $:/themes/tiddlywiki/vanilla/metrics
* $:/themes/tiddlywiki/vanilla/settings
Now, each tweak is stored in its own separate tiddler.
This upgrader copies any values from the old format to the new. The old data tiddlers are not deleted in case they have been used to store additional indexes.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var MAPPINGS = {
&quot;$:/themes/tiddlywiki/vanilla/metrics&quot;: {
&quot;fontsize&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/fontsize&quot;,
&quot;lineheight&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/lineheight&quot;,
&quot;storyleft&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/storyleft&quot;,
&quot;storytop&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/storytop&quot;,
&quot;storyright&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/storyright&quot;,
&quot;storywidth&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/storywidth&quot;,
&quot;tiddlerwidth&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/settings&quot;: {
&quot;fontfamily&quot;: &quot;$:/themes/tiddlywiki/vanilla/settings/fontfamily&quot;
}
};
exports.upgrade = function(wiki,titles,tiddlers) {
var self = this,
messages = {};
// Check for tiddlers on our list
$tw.utils.each(titles,function(title) {
var mapping = MAPPINGS[title];
if(mapping) {
var tiddler = new $tw.Tiddler(tiddlers[title]),
tiddlerData = wiki.getTiddlerDataCached(tiddler,{});
for(var index in mapping) {
var mappedTitle = mapping[index];
if(!tiddlers[mappedTitle] || tiddlers[mappedTitle].title !== mappedTitle) {
tiddlers[mappedTitle] = {
title: mappedTitle,
text: tiddlerData[index]
};
messages[mappedTitle] = $tw.language.getString(&quot;Import/Upgrader/ThemeTweaks/Created&quot;,{variables: {
from: title + &quot;##&quot; + index
}});
}
}
}
});
return messages;
};
})();
</pre>
</div>
<div module-type="library" title="$:/core/modules/utils/base64-utf8/base64-utf8.module.js" type="application/javascript">
<pre>(function(){// From https://gist.github.com/Nijikokun/5192472
//
// UTF8 Module
//
// Cleaner and modularized utf-8 encoding and decoding library for javascript.
//
// copyright: MIT
// author: Nijiko Yonskai, @nijikokun, nijikokun@gmail.com
!function(r,e,o,t){void 0!==o.module&amp;&amp;o.module.exports?o.module.exports=e.apply(o):void 0!==o.define&amp;&amp;&quot;function&quot;===o.define&amp;&amp;o.define.amd?define(&quot;utf8&quot;,[],e):o.utf8=e.apply(o)}(0,function(){return{encode:function(r){if(&quot;string&quot;!=typeof r)return r;r=r.replace(/\r\n/g,&quot;\n&quot;);for(var e,o=&quot;&quot;,t=0;t&lt;r.length;t++)(e=r.charCodeAt(t))&lt;128?o+=String.fromCharCode(e):e&gt;127&amp;&amp;e&lt;2048?(o+=String.fromCharCode(e&gt;&gt;6|192),o+=String.fromCharCode(63&amp;e|128)):(o+=String.fromCharCode(e&gt;&gt;12|224),o+=String.fromCharCode(e&gt;&gt;6&amp;63|128),o+=String.fromCharCode(63&amp;e|128));return o},decode:function(r){if(&quot;string&quot;!=typeof r)return r;for(var e=&quot;&quot;,o=0,t=0;o&lt;r.length;)(t=r.charCodeAt(o))&lt;128?(e+=String.fromCharCode(t),o++):t&gt;191&amp;&amp;t&lt;224?(e+=String.fromCharCode((31&amp;t)&lt;&lt;6|63&amp;r.charCodeAt(o+1)),o+=2):(e+=String.fromCharCode((15&amp;t)&lt;&lt;12|(63&amp;r.charCodeAt(o+1))&lt;&lt;6|63&amp;r.charCodeAt(o+2)),o+=3);return e}}},this),function(r,e,o,t){if(void 0!==o.module&amp;&amp;o.module.exports){if(t&amp;&amp;o.require)for(var n=0;n&lt;t.length;n++)o[t[n]]=o.require(t[n]);o.module.exports=e.apply(o)}else void 0!==o.define&amp;&amp;&quot;function&quot;===o.define&amp;&amp;o.define.amd?define(&quot;base64&quot;,t||[],e):o.base64=e.apply(o)}(0,function(r){var e=r||this.utf8,o=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=&quot;;return{encode:function(r){if(void 0===e)throw{error:&quot;MissingMethod&quot;,message:&quot;UTF8 Module is missing.&quot;};if(&quot;string&quot;!=typeof r)return r;r=e.encode(r);for(var t,n,i,d,f,a,h,c=&quot;&quot;,u=0;u&lt;r.length;)d=(t=r.charCodeAt(u++))&gt;&gt;2,f=(3&amp;t)&lt;&lt;4|(n=r.charCodeAt(u++))&gt;&gt;4,a=(15&amp;n)&lt;&lt;2|(i=r.charCodeAt(u++))&gt;&gt;6,h=63&amp;i,isNaN(n)?a=h=64:isNaN(i)&amp;&amp;(h=64),c+=o.charAt(d)+o.charAt(f)+o.charAt(a)+o.charAt(h);return c},decode:function(r){if(void 0===e)throw{error:&quot;MissingMethod&quot;,message:&quot;UTF8 Module is missing.&quot;};if(&quot;string&quot;!=typeof r)return r;r=r.replace(/[^A-Za-z0-9\+\/\=]/g,&quot;&quot;);for(var t,n,i,d,f,a,h=&quot;&quot;,c=0;c&lt;r.length;)t=o.indexOf(r.charAt(c++))&lt;&lt;2|(d=o.indexOf(r.charAt(c++)))&gt;&gt;4,n=(15&amp;d)&lt;&lt;4|(f=o.indexOf(r.charAt(c++)))&gt;&gt;2,i=(3&amp;f)&lt;&lt;6|(a=o.indexOf(r.charAt(c++))),h+=String.fromCharCode(t),64!=f&amp;&amp;(h+=String.fromCharCode(n)),64!=a&amp;&amp;(h+=String.fromCharCode(i));return e.decode(h)}}},this,[&quot;utf8&quot;]);}).call(exports);</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/crypto.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/crypto.js
type: application/javascript
module-type: utils
Utility functions related to crypto.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Look for an encrypted store area in the text of a TiddlyWiki file
*/
exports.extractEncryptedStoreArea = function(text) {
var encryptedStoreAreaStartMarker = &quot;&lt;pre id=\&quot;encryptedStoreArea\&quot; type=\&quot;text/plain\&quot; style=\&quot;display:none;\&quot;&gt;&quot;,
encryptedStoreAreaStart = text.indexOf(encryptedStoreAreaStartMarker);
if(encryptedStoreAreaStart !== -1) {
var encryptedStoreAreaEnd = text.indexOf(&quot;&lt;/pre&gt;&quot;,encryptedStoreAreaStart);
if(encryptedStoreAreaEnd !== -1) {
return $tw.utils.htmlDecode(text.substring(encryptedStoreAreaStart + encryptedStoreAreaStartMarker.length,encryptedStoreAreaEnd-1));
}
}
return null;
};
/*
Attempt to extract the tiddlers from an encrypted store area using the current password. If the password is not provided then the password in the password store will be used
*/
exports.decryptStoreArea = function(encryptedStoreArea,password) {
var decryptedText = $tw.crypto.decrypt(encryptedStoreArea,password);
if(decryptedText) {
var json = JSON.parse(decryptedText),
tiddlers = [];
for(var title in json) {
if(title !== &quot;$:/isEncrypted&quot;) {
tiddlers.push(json[title]);
}
}
return tiddlers;
} else {
return null;
}
};
/*
Attempt to extract the tiddlers from an encrypted store area using the current password. If that fails, the user is prompted for a password.
encryptedStoreArea: text of the TiddlyWiki encrypted store area
callback: function(tiddlers) called with the array of decrypted tiddlers
The following configuration settings are supported:
$tw.config.usePasswordVault: causes any password entered by the user to also be put into the system password vault
*/
exports.decryptStoreAreaInteractive = function(encryptedStoreArea,callback,options) {
// Try to decrypt with the current password
var tiddlers = $tw.utils.decryptStoreArea(encryptedStoreArea);
if(tiddlers) {
callback(tiddlers);
} else {
// Prompt for a new password and keep trying
$tw.passwordPrompt.createPrompt({
serviceName: &quot;Enter a password to decrypt the imported TiddlyWiki&quot;,
noUserName: true,
canCancel: true,
submitText: &quot;Decrypt&quot;,
callback: function(data) {
// Exit if the user cancelled
if(!data) {
return false;
}
// Attempt to decrypt the tiddlers
var tiddlers = $tw.utils.decryptStoreArea(encryptedStoreArea,data.password);
if(tiddlers) {
if($tw.config.usePasswordVault) {
$tw.crypto.setPassword(data.password);
}
callback(tiddlers);
// Exit and remove the password prompt
return true;
} else {
// We didn't decrypt everything, so continue to prompt for password
return false;
}
}
});
}
};
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/csv.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/csv.js
type: application/javascript
module-type: utils
A barebones CSV parser
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Parse a CSV string with a header row and return an array of hashmaps.
*/
exports.parseCsvStringWithHeader = function(text,options) {
options = options || {};
var separator = options.separator || &quot;,&quot;,
rows = text.split(/\r?\n/mg).map(function(row) {
return $tw.utils.trim(row);
}).filter(function(row) {
return row !== &quot;&quot;;
});
if(rows.length &lt; 1) {
return &quot;Missing header row&quot;;
}
var headings = rows[0].split(separator),
results = [];
for(var row=1; row&lt;rows.length; row++) {
var columns = rows[row].split(separator),
columnResult = Object.create(null);
if(columns.length !== headings.length) {
return &quot;Malformed CSV row '&quot; + rows[row] + &quot;'&quot;;
}
for(var column=0; column&lt;columns.length; column++) {
var columnName = headings[column];
columnResult[columnName] = $tw.utils.trim(columns[column] || &quot;&quot;);
}
results.push(columnResult);
}
return results;
}
})();
</pre>
</div>
<div module-type="library" title="$:/core/modules/utils/diff-match-patch/diff_match_patch.js" type="application/javascript">
<pre>(function(){function diff_match_patch(){this.Diff_Timeout=1;this.Diff_EditCost=4;this.Match_Threshold=.5;this.Match_Distance=1E3;this.Patch_DeleteThreshold=.5;this.Patch_Margin=4;this.Match_MaxBits=32}var DIFF_DELETE=-1,DIFF_INSERT=1,DIFF_EQUAL=0;
diff_match_patch.prototype.diff_main=function(a,b,c,d){&quot;undefined&quot;==typeof d&amp;&amp;(d=0&gt;=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1E3*this.Diff_Timeout);if(null==a||null==b)throw Error(&quot;Null input. (diff_main)&quot;);if(a==b)return a?[[DIFF_EQUAL,a]]:[];&quot;undefined&quot;==typeof c&amp;&amp;(c=!0);var e=c,f=this.diff_commonPrefix(a,b);c=a.substring(0,f);a=a.substring(f);b=b.substring(f);f=this.diff_commonSuffix(a,b);var g=a.substring(a.length-f);a=a.substring(0,a.length-f);b=b.substring(0,b.length-f);a=this.diff_compute_(a,
b,e,d);c&amp;&amp;a.unshift([DIFF_EQUAL,c]);g&amp;&amp;a.push([DIFF_EQUAL,g]);this.diff_cleanupMerge(a);return a};
diff_match_patch.prototype.diff_compute_=function(a,b,c,d){if(!a)return[[DIFF_INSERT,b]];if(!b)return[[DIFF_DELETE,a]];var e=a.length&gt;b.length?a:b,f=a.length&gt;b.length?b:a,g=e.indexOf(f);return-1!=g?(c=[[DIFF_INSERT,e.substring(0,g)],[DIFF_EQUAL,f],[DIFF_INSERT,e.substring(g+f.length)]],a.length&gt;b.length&amp;&amp;(c[0][0]=c[2][0]=DIFF_DELETE),c):1==f.length?[[DIFF_DELETE,a],[DIFF_INSERT,b]]:(e=this.diff_halfMatch_(a,b))?(b=e[1],f=e[3],a=e[4],e=this.diff_main(e[0],e[2],c,d),c=this.diff_main(b,f,c,d),e.concat([[DIFF_EQUAL,
a]],c)):c&amp;&amp;100&lt;a.length&amp;&amp;100&lt;b.length?this.diff_lineMode_(a,b,d):this.diff_bisect_(a,b,d)};
diff_match_patch.prototype.diff_lineMode_=function(a,b,c){var d=this.diff_linesToChars_(a,b);a=d.chars1;b=d.chars2;d=d.lineArray;a=this.diff_main(a,b,!1,c);this.diff_charsToLines_(a,d);this.diff_cleanupSemantic(a);a.push([DIFF_EQUAL,&quot;&quot;]);for(var e=d=b=0,f=&quot;&quot;,g=&quot;&quot;;b&lt;a.length;){switch(a[b][0]){case DIFF_INSERT:e++;g+=a[b][1];break;case DIFF_DELETE:d++;f+=a[b][1];break;case DIFF_EQUAL:if(1&lt;=d&amp;&amp;1&lt;=e){a.splice(b-d-e,d+e);b=b-d-e;d=this.diff_main(f,g,!1,c);for(e=d.length-1;0&lt;=e;e--)a.splice(b,0,d[e]);b+=
d.length}d=e=0;g=f=&quot;&quot;}b++}a.pop();return a};
diff_match_patch.prototype.diff_bisect_=function(a,b,c){for(var d=a.length,e=b.length,f=Math.ceil((d+e)/2),g=2*f,h=Array(g),l=Array(g),k=0;k&lt;g;k++)h[k]=-1,l[k]=-1;h[f+1]=0;l[f+1]=0;k=d-e;for(var m=0!=k%2,p=0,x=0,w=0,q=0,t=0;t&lt;f&amp;&amp;!((new Date).getTime()&gt;c);t++){for(var v=-t+p;v&lt;=t-x;v+=2){var n=f+v;var r=v==-t||v!=t&amp;&amp;h[n-1]&lt;h[n+1]?h[n+1]:h[n-1]+1;for(var y=r-v;r&lt;d&amp;&amp;y&lt;e&amp;&amp;a.charAt(r)==b.charAt(y);)r++,y++;h[n]=r;if(r&gt;d)x+=2;else if(y&gt;e)p+=2;else if(m&amp;&amp;(n=f+k-v,0&lt;=n&amp;&amp;n&lt;g&amp;&amp;-1!=l[n])){var u=d-l[n];if(r&gt;=
u)return this.diff_bisectSplit_(a,b,r,y,c)}}for(v=-t+w;v&lt;=t-q;v+=2){n=f+v;u=v==-t||v!=t&amp;&amp;l[n-1]&lt;l[n+1]?l[n+1]:l[n-1]+1;for(r=u-v;u&lt;d&amp;&amp;r&lt;e&amp;&amp;a.charAt(d-u-1)==b.charAt(e-r-1);)u++,r++;l[n]=u;if(u&gt;d)q+=2;else if(r&gt;e)w+=2;else if(!m&amp;&amp;(n=f+k-v,0&lt;=n&amp;&amp;n&lt;g&amp;&amp;-1!=h[n]&amp;&amp;(r=h[n],y=f+r-n,u=d-u,r&gt;=u)))return this.diff_bisectSplit_(a,b,r,y,c)}}return[[DIFF_DELETE,a],[DIFF_INSERT,b]]};
diff_match_patch.prototype.diff_bisectSplit_=function(a,b,c,d,e){var f=a.substring(0,c),g=b.substring(0,d);a=a.substring(c);b=b.substring(d);f=this.diff_main(f,g,!1,e);e=this.diff_main(a,b,!1,e);return f.concat(e)};
diff_match_patch.prototype.diff_linesToChars_=function(a,b){function c(a){for(var b=&quot;&quot;,c=0,f=-1,g=d.length;f&lt;a.length-1;){f=a.indexOf(&quot;\n&quot;,c);-1==f&amp;&amp;(f=a.length-1);var h=a.substring(c,f+1);c=f+1;(e.hasOwnProperty?e.hasOwnProperty(h):void 0!==e[h])?b+=String.fromCharCode(e[h]):(b+=String.fromCharCode(g),e[h]=g,d[g++]=h)}return b}var d=[],e={};d[0]=&quot;&quot;;var f=c(a),g=c(b);return{chars1:f,chars2:g,lineArray:d}};
diff_match_patch.prototype.diff_charsToLines_=function(a,b){for(var c=0;c&lt;a.length;c++){for(var d=a[c][1],e=[],f=0;f&lt;d.length;f++)e[f]=b[d.charCodeAt(f)];a[c][1]=e.join(&quot;&quot;)}};diff_match_patch.prototype.diff_commonPrefix=function(a,b){if(!a||!b||a.charAt(0)!=b.charAt(0))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c&lt;e;)a.substring(f,e)==b.substring(f,e)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e};
diff_match_patch.prototype.diff_commonSuffix=function(a,b){if(!a||!b||a.charAt(a.length-1)!=b.charAt(b.length-1))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c&lt;e;)a.substring(a.length-e,a.length-f)==b.substring(b.length-e,b.length-f)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e};
diff_match_patch.prototype.diff_commonOverlap_=function(a,b){var c=a.length,d=b.length;if(0==c||0==d)return 0;c&gt;d?a=a.substring(c-d):c&lt;d&amp;&amp;(b=b.substring(0,c));c=Math.min(c,d);if(a==b)return c;d=0;for(var e=1;;){var f=a.substring(c-e);f=b.indexOf(f);if(-1==f)return d;e+=f;if(0==f||a.substring(c-e)==b.substring(0,e))d=e,e++}};
diff_match_patch.prototype.diff_halfMatch_=function(a,b){function c(a,b,c){for(var d=a.substring(c,c+Math.floor(a.length/4)),e=-1,g=&quot;&quot;,h,k,l,m;-1!=(e=b.indexOf(d,e+1));){var p=f.diff_commonPrefix(a.substring(c),b.substring(e)),u=f.diff_commonSuffix(a.substring(0,c),b.substring(0,e));g.length&lt;u+p&amp;&amp;(g=b.substring(e-u,e)+b.substring(e,e+p),h=a.substring(0,c-u),k=a.substring(c+p),l=b.substring(0,e-u),m=b.substring(e+p))}return 2*g.length&gt;=a.length?[h,k,l,m,g]:null}if(0&gt;=this.Diff_Timeout)return null;
var d=a.length&gt;b.length?a:b,e=a.length&gt;b.length?b:a;if(4&gt;d.length||2*e.length&lt;d.length)return null;var f=this,g=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));if(g||d)g=d?g?g[4].length&gt;d[4].length?g:d:d:g;else return null;if(a.length&gt;b.length){d=g[0];e=g[1];var h=g[2];var l=g[3]}else h=g[0],l=g[1],d=g[2],e=g[3];return[d,e,h,l,g[4]]};
diff_match_patch.prototype.diff_cleanupSemantic=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=0,h=0,l=0,k=0;f&lt;a.length;)a[f][0]==DIFF_EQUAL?(c[d++]=f,g=l,h=k,k=l=0,e=a[f][1]):(a[f][0]==DIFF_INSERT?l+=a[f][1].length:k+=a[f][1].length,e&amp;&amp;e.length&lt;=Math.max(g,h)&amp;&amp;e.length&lt;=Math.max(l,k)&amp;&amp;(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,d--,f=0&lt;d?c[d-1]:-1,k=l=h=g=0,e=null,b=!0)),f++;b&amp;&amp;this.diff_cleanupMerge(a);this.diff_cleanupSemanticLossless(a);for(f=1;f&lt;a.length;){if(a[f-1][0]==
DIFF_DELETE&amp;&amp;a[f][0]==DIFF_INSERT){b=a[f-1][1];c=a[f][1];d=this.diff_commonOverlap_(b,c);e=this.diff_commonOverlap_(c,b);if(d&gt;=e){if(d&gt;=b.length/2||d&gt;=c.length/2)a.splice(f,0,[DIFF_EQUAL,c.substring(0,d)]),a[f-1][1]=b.substring(0,b.length-d),a[f+1][1]=c.substring(d),f++}else if(e&gt;=b.length/2||e&gt;=c.length/2)a.splice(f,0,[DIFF_EQUAL,b.substring(0,e)]),a[f-1][0]=DIFF_INSERT,a[f-1][1]=c.substring(0,c.length-e),a[f+1][0]=DIFF_DELETE,a[f+1][1]=b.substring(e),f++;f++}f++}};
diff_match_patch.prototype.diff_cleanupSemanticLossless=function(a){function b(a,b){if(!a||!b)return 6;var c=a.charAt(a.length-1),d=b.charAt(0),e=c.match(diff_match_patch.nonAlphaNumericRegex_),f=d.match(diff_match_patch.nonAlphaNumericRegex_),g=e&amp;&amp;c.match(diff_match_patch.whitespaceRegex_),h=f&amp;&amp;d.match(diff_match_patch.whitespaceRegex_);c=g&amp;&amp;c.match(diff_match_patch.linebreakRegex_);d=h&amp;&amp;d.match(diff_match_patch.linebreakRegex_);var k=c&amp;&amp;a.match(diff_match_patch.blanklineEndRegex_),l=d&amp;&amp;b.match(diff_match_patch.blanklineStartRegex_);
return k||l?5:c||d?4:e&amp;&amp;!g&amp;&amp;h?3:g||h?2:e||f?1:0}for(var c=1;c&lt;a.length-1;){if(a[c-1][0]==DIFF_EQUAL&amp;&amp;a[c+1][0]==DIFF_EQUAL){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],g=this.diff_commonSuffix(d,e);if(g){var h=e.substring(e.length-g);d=d.substring(0,d.length-g);e=h+e.substring(0,e.length-g);f=h+f}g=d;h=e;for(var l=f,k=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+f.charAt(0);f=f.substring(1);var m=b(d,e)+b(e,f);m&gt;=k&amp;&amp;(k=m,g=d,h=e,l=f)}a[c-1][1]!=g&amp;&amp;(g?a[c-1][1]=g:(a.splice(c-
1,1),c--),a[c][1]=h,l?a[c+1][1]=l:(a.splice(c+1,1),c--))}c++}};diff_match_patch.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;diff_match_patch.whitespaceRegex_=/\s/;diff_match_patch.linebreakRegex_=/[\r\n]/;diff_match_patch.blanklineEndRegex_=/\n\r?\n$/;diff_match_patch.blanklineStartRegex_=/^\r?\n\r?\n/;
diff_match_patch.prototype.diff_cleanupEfficiency=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=!1,h=!1,l=!1,k=!1;f&lt;a.length;)a[f][0]==DIFF_EQUAL?(a[f][1].length&lt;this.Diff_EditCost&amp;&amp;(l||k)?(c[d++]=f,g=l,h=k,e=a[f][1]):(d=0,e=null),l=k=!1):(a[f][0]==DIFF_DELETE?k=!0:l=!0,e&amp;&amp;(g&amp;&amp;h&amp;&amp;l&amp;&amp;k||e.length&lt;this.Diff_EditCost/2&amp;&amp;3==g+h+l+k)&amp;&amp;(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,e=null,g&amp;&amp;h?(l=k=!0,d=0):(d--,f=0&lt;d?c[d-1]:-1,l=k=!1),b=!0)),f++;b&amp;&amp;this.diff_cleanupMerge(a)};
diff_match_patch.prototype.diff_cleanupMerge=function(a){a.push([DIFF_EQUAL,&quot;&quot;]);for(var b=0,c=0,d=0,e=&quot;&quot;,f=&quot;&quot;,g;b&lt;a.length;)switch(a[b][0]){case DIFF_INSERT:d++;f+=a[b][1];b++;break;case DIFF_DELETE:c++;e+=a[b][1];b++;break;case DIFF_EQUAL:1&lt;c+d?(0!==c&amp;&amp;0!==d&amp;&amp;(g=this.diff_commonPrefix(f,e),0!==g&amp;&amp;(0&lt;b-c-d&amp;&amp;a[b-c-d-1][0]==DIFF_EQUAL?a[b-c-d-1][1]+=f.substring(0,g):(a.splice(0,0,[DIFF_EQUAL,f.substring(0,g)]),b++),f=f.substring(g),e=e.substring(g)),g=this.diff_commonSuffix(f,e),0!==g&amp;&amp;(a[b][1]=f.substring(f.length-
g)+a[b][1],f=f.substring(0,f.length-g),e=e.substring(0,e.length-g))),0===c?a.splice(b-d,c+d,[DIFF_INSERT,f]):0===d?a.splice(b-c,c+d,[DIFF_DELETE,e]):a.splice(b-c-d,c+d,[DIFF_DELETE,e],[DIFF_INSERT,f]),b=b-c-d+(c?1:0)+(d?1:0)+1):0!==b&amp;&amp;a[b-1][0]==DIFF_EQUAL?(a[b-1][1]+=a[b][1],a.splice(b,1)):b++,c=d=0,f=e=&quot;&quot;}&quot;&quot;===a[a.length-1][1]&amp;&amp;a.pop();c=!1;for(b=1;b&lt;a.length-1;)a[b-1][0]==DIFF_EQUAL&amp;&amp;a[b+1][0]==DIFF_EQUAL&amp;&amp;(a[b][1].substring(a[b][1].length-a[b-1][1].length)==a[b-1][1]?(a[b][1]=a[b-1][1]+a[b][1].substring(0,
a[b][1].length-a[b-1][1].length),a[b+1][1]=a[b-1][1]+a[b+1][1],a.splice(b-1,1),c=!0):a[b][1].substring(0,a[b+1][1].length)==a[b+1][1]&amp;&amp;(a[b-1][1]+=a[b+1][1],a[b][1]=a[b][1].substring(a[b+1][1].length)+a[b+1][1],a.splice(b+1,1),c=!0)),b++;c&amp;&amp;this.diff_cleanupMerge(a)};
diff_match_patch.prototype.diff_xIndex=function(a,b){var c=0,d=0,e=0,f=0,g;for(g=0;g&lt;a.length;g++){a[g][0]!==DIFF_INSERT&amp;&amp;(c+=a[g][1].length);a[g][0]!==DIFF_DELETE&amp;&amp;(d+=a[g][1].length);if(c&gt;b)break;e=c;f=d}return a.length!=g&amp;&amp;a[g][0]===DIFF_DELETE?f:f+(b-e)};
diff_match_patch.prototype.diff_prettyHtml=function(a){for(var b=[],c=/&amp;/g,d=/&lt;/g,e=/&gt;/g,f=/\n/g,g=0;g&lt;a.length;g++){var h=a[g][0],l=a[g][1].replace(c,&quot;&amp;amp;&quot;).replace(d,&quot;&amp;lt;&quot;).replace(e,&quot;&amp;gt;&quot;).replace(f,&quot;&amp;para;&lt;br&gt;&quot;);switch(h){case DIFF_INSERT:b[g]='&lt;ins style=&quot;background:#e6ffe6;&quot;&gt;'+l+&quot;&lt;/ins&gt;&quot;;break;case DIFF_DELETE:b[g]='&lt;del style=&quot;background:#ffe6e6;&quot;&gt;'+l+&quot;&lt;/del&gt;&quot;;break;case DIFF_EQUAL:b[g]=&quot;&lt;span&gt;&quot;+l+&quot;&lt;/span&gt;&quot;}}return b.join(&quot;&quot;)};
diff_match_patch.prototype.diff_text1=function(a){for(var b=[],c=0;c&lt;a.length;c++)a[c][0]!==DIFF_INSERT&amp;&amp;(b[c]=a[c][1]);return b.join(&quot;&quot;)};diff_match_patch.prototype.diff_text2=function(a){for(var b=[],c=0;c&lt;a.length;c++)a[c][0]!==DIFF_DELETE&amp;&amp;(b[c]=a[c][1]);return b.join(&quot;&quot;)};
diff_match_patch.prototype.diff_levenshtein=function(a){for(var b=0,c=0,d=0,e=0;e&lt;a.length;e++){var f=a[e][1];switch(a[e][0]){case DIFF_INSERT:c+=f.length;break;case DIFF_DELETE:d+=f.length;break;case DIFF_EQUAL:b+=Math.max(c,d),d=c=0}}return b+=Math.max(c,d)};
diff_match_patch.prototype.diff_toDelta=function(a){for(var b=[],c=0;c&lt;a.length;c++)switch(a[c][0]){case DIFF_INSERT:b[c]=&quot;+&quot;+encodeURI(a[c][1]);break;case DIFF_DELETE:b[c]=&quot;-&quot;+a[c][1].length;break;case DIFF_EQUAL:b[c]=&quot;=&quot;+a[c][1].length}return b.join(&quot;\t&quot;).replace(/%20/g,&quot; &quot;)};
diff_match_patch.prototype.diff_fromDelta=function(a,b){for(var c=[],d=0,e=0,f=b.split(/\t/g),g=0;g&lt;f.length;g++){var h=f[g].substring(1);switch(f[g].charAt(0)){case &quot;+&quot;:try{c[d++]=[DIFF_INSERT,decodeURI(h)]}catch(k){throw Error(&quot;Illegal escape in diff_fromDelta: &quot;+h);}break;case &quot;-&quot;:case &quot;=&quot;:var l=parseInt(h,10);if(isNaN(l)||0&gt;l)throw Error(&quot;Invalid number in diff_fromDelta: &quot;+h);h=a.substring(e,e+=l);&quot;=&quot;==f[g].charAt(0)?c[d++]=[DIFF_EQUAL,h]:c[d++]=[DIFF_DELETE,h];break;default:if(f[g])throw Error(&quot;Invalid diff operation in diff_fromDelta: &quot;+
f[g]);}}if(e!=a.length)throw Error(&quot;Delta length (&quot;+e+&quot;) does not equal source text length (&quot;+a.length+&quot;).&quot;);return c};diff_match_patch.prototype.match_main=function(a,b,c){if(null==a||null==b||null==c)throw Error(&quot;Null input. (match_main)&quot;);c=Math.max(0,Math.min(c,a.length));return a==b?0:a.length?a.substring(c,c+b.length)==b?c:this.match_bitap_(a,b,c):-1};
diff_match_patch.prototype.match_bitap_=function(a,b,c){function d(a,d){var e=a/b.length,g=Math.abs(c-d);return f.Match_Distance?e+g/f.Match_Distance:g?1:e}if(b.length&gt;this.Match_MaxBits)throw Error(&quot;Pattern too long for this browser.&quot;);var e=this.match_alphabet_(b),f=this,g=this.Match_Threshold,h=a.indexOf(b,c);-1!=h&amp;&amp;(g=Math.min(d(0,h),g),h=a.lastIndexOf(b,c+b.length),-1!=h&amp;&amp;(g=Math.min(d(0,h),g)));var l=1&lt;&lt;b.length-1;h=-1;for(var k,m,p=b.length+a.length,x,w=0;w&lt;b.length;w++){k=0;for(m=p;k&lt;m;)d(w,
c+m)&lt;=g?k=m:p=m,m=Math.floor((p-k)/2+k);p=m;k=Math.max(1,c-m+1);var q=Math.min(c+m,a.length)+b.length;m=Array(q+2);for(m[q+1]=(1&lt;&lt;w)-1;q&gt;=k;q--){var t=e[a.charAt(q-1)];m[q]=0===w?(m[q+1]&lt;&lt;1|1)&amp;t:(m[q+1]&lt;&lt;1|1)&amp;t|(x[q+1]|x[q])&lt;&lt;1|1|x[q+1];if(m[q]&amp;l&amp;&amp;(t=d(w,q-1),t&lt;=g))if(g=t,h=q-1,h&gt;c)k=Math.max(1,2*c-h);else break}if(d(w+1,c)&gt;g)break;x=m}return h};
diff_match_patch.prototype.match_alphabet_=function(a){for(var b={},c=0;c&lt;a.length;c++)b[a.charAt(c)]=0;for(c=0;c&lt;a.length;c++)b[a.charAt(c)]|=1&lt;&lt;a.length-c-1;return b};
diff_match_patch.prototype.patch_addContext_=function(a,b){if(0!=b.length){for(var c=b.substring(a.start2,a.start2+a.length1),d=0;b.indexOf(c)!=b.lastIndexOf(c)&amp;&amp;c.length&lt;this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)d+=this.Patch_Margin,c=b.substring(a.start2-d,a.start2+a.length1+d);d+=this.Patch_Margin;(c=b.substring(a.start2-d,a.start2))&amp;&amp;a.diffs.unshift([DIFF_EQUAL,c]);(d=b.substring(a.start2+a.length1,a.start2+a.length1+d))&amp;&amp;a.diffs.push([DIFF_EQUAL,d]);a.start1-=c.length;a.start2-=
c.length;a.length1+=c.length+d.length;a.length2+=c.length+d.length}};
diff_match_patch.prototype.patch_make=function(a,b,c){if(&quot;string&quot;==typeof a&amp;&amp;&quot;string&quot;==typeof b&amp;&amp;&quot;undefined&quot;==typeof c){var d=a;b=this.diff_main(d,b,!0);2&lt;b.length&amp;&amp;(this.diff_cleanupSemantic(b),this.diff_cleanupEfficiency(b))}else if(a&amp;&amp;&quot;object&quot;==typeof a&amp;&amp;&quot;undefined&quot;==typeof b&amp;&amp;&quot;undefined&quot;==typeof c)b=a,d=this.diff_text1(b);else if(&quot;string&quot;==typeof a&amp;&amp;b&amp;&amp;&quot;object&quot;==typeof b&amp;&amp;&quot;undefined&quot;==typeof c)d=a;else if(&quot;string&quot;==typeof a&amp;&amp;&quot;string&quot;==typeof b&amp;&amp;c&amp;&amp;&quot;object&quot;==typeof c)d=a,b=c;else throw Error(&quot;Unknown call format to patch_make.&quot;);
if(0===b.length)return[];c=[];a=new diff_match_patch.patch_obj;for(var e=0,f=0,g=0,h=d,l=0;l&lt;b.length;l++){var k=b[l][0],m=b[l][1];e||k===DIFF_EQUAL||(a.start1=f,a.start2=g);switch(k){case DIFF_INSERT:a.diffs[e++]=b[l];a.length2+=m.length;d=d.substring(0,g)+m+d.substring(g);break;case DIFF_DELETE:a.length1+=m.length;a.diffs[e++]=b[l];d=d.substring(0,g)+d.substring(g+m.length);break;case DIFF_EQUAL:m.length&lt;=2*this.Patch_Margin&amp;&amp;e&amp;&amp;b.length!=l+1?(a.diffs[e++]=b[l],a.length1+=m.length,a.length2+=m.length):
m.length&gt;=2*this.Patch_Margin&amp;&amp;e&amp;&amp;(this.patch_addContext_(a,h),c.push(a),a=new diff_match_patch.patch_obj,e=0,h=d,f=g)}k!==DIFF_INSERT&amp;&amp;(f+=m.length);k!==DIFF_DELETE&amp;&amp;(g+=m.length)}e&amp;&amp;(this.patch_addContext_(a,h),c.push(a));return c};
diff_match_patch.prototype.patch_deepCopy=function(a){for(var b=[],c=0;c&lt;a.length;c++){var d=a[c],e=new diff_match_patch.patch_obj;e.diffs=[];for(var f=0;f&lt;d.diffs.length;f++)e.diffs[f]=d.diffs[f].slice();e.start1=d.start1;e.start2=d.start2;e.length1=d.length1;e.length2=d.length2;b[c]=e}return b};
diff_match_patch.prototype.patch_apply=function(a,b){if(0==a.length)return[b,[]];a=this.patch_deepCopy(a);var c=this.patch_addPadding(a);b=c+b+c;this.patch_splitMax(a);for(var d=0,e=[],f=0;f&lt;a.length;f++){var g=a[f].start2+d,h=this.diff_text1(a[f].diffs),l=-1;if(h.length&gt;this.Match_MaxBits){var k=this.match_main(b,h.substring(0,this.Match_MaxBits),g);-1!=k&amp;&amp;(l=this.match_main(b,h.substring(h.length-this.Match_MaxBits),g+h.length-this.Match_MaxBits),-1==l||k&gt;=l)&amp;&amp;(k=-1)}else k=this.match_main(b,h,
g);if(-1==k)e[f]=!1,d-=a[f].length2-a[f].length1;else if(e[f]=!0,d=k-g,g=-1==l?b.substring(k,k+h.length):b.substring(k,l+this.Match_MaxBits),h==g)b=b.substring(0,k)+this.diff_text2(a[f].diffs)+b.substring(k+h.length);else if(g=this.diff_main(h,g,!1),h.length&gt;this.Match_MaxBits&amp;&amp;this.diff_levenshtein(g)/h.length&gt;this.Patch_DeleteThreshold)e[f]=!1;else{this.diff_cleanupSemanticLossless(g);h=0;var m;for(l=0;l&lt;a[f].diffs.length;l++){var p=a[f].diffs[l];p[0]!==DIFF_EQUAL&amp;&amp;(m=this.diff_xIndex(g,h));p[0]===
DIFF_INSERT?b=b.substring(0,k+m)+p[1]+b.substring(k+m):p[0]===DIFF_DELETE&amp;&amp;(b=b.substring(0,k+m)+b.substring(k+this.diff_xIndex(g,h+p[1].length)));p[0]!==DIFF_DELETE&amp;&amp;(h+=p[1].length)}}}b=b.substring(c.length,b.length-c.length);return[b,e]};
diff_match_patch.prototype.patch_addPadding=function(a){for(var b=this.Patch_Margin,c=&quot;&quot;,d=1;d&lt;=b;d++)c+=String.fromCharCode(d);for(d=0;d&lt;a.length;d++)a[d].start1+=b,a[d].start2+=b;d=a[0];var e=d.diffs;if(0==e.length||e[0][0]!=DIFF_EQUAL)e.unshift([DIFF_EQUAL,c]),d.start1-=b,d.start2-=b,d.length1+=b,d.length2+=b;else if(b&gt;e[0][1].length){var f=b-e[0][1].length;e[0][1]=c.substring(e[0][1].length)+e[0][1];d.start1-=f;d.start2-=f;d.length1+=f;d.length2+=f}d=a[a.length-1];e=d.diffs;0==e.length||e[e.length-
1][0]!=DIFF_EQUAL?(e.push([DIFF_EQUAL,c]),d.length1+=b,d.length2+=b):b&gt;e[e.length-1][1].length&amp;&amp;(f=b-e[e.length-1][1].length,e[e.length-1][1]+=c.substring(0,f),d.length1+=f,d.length2+=f);return c};
diff_match_patch.prototype.patch_splitMax=function(a){for(var b=this.Match_MaxBits,c=0;c&lt;a.length;c++)if(!(a[c].length1&lt;=b)){var d=a[c];a.splice(c--,1);for(var e=d.start1,f=d.start2,g=&quot;&quot;;0!==d.diffs.length;){var h=new diff_match_patch.patch_obj,l=!0;h.start1=e-g.length;h.start2=f-g.length;&quot;&quot;!==g&amp;&amp;(h.length1=h.length2=g.length,h.diffs.push([DIFF_EQUAL,g]));for(;0!==d.diffs.length&amp;&amp;h.length1&lt;b-this.Patch_Margin;){g=d.diffs[0][0];var k=d.diffs[0][1];g===DIFF_INSERT?(h.length2+=k.length,f+=k.length,h.diffs.push(d.diffs.shift()),
l=!1):g===DIFF_DELETE&amp;&amp;1==h.diffs.length&amp;&amp;h.diffs[0][0]==DIFF_EQUAL&amp;&amp;k.length&gt;2*b?(h.length1+=k.length,e+=k.length,l=!1,h.diffs.push([g,k]),d.diffs.shift()):(k=k.substring(0,b-h.length1-this.Patch_Margin),h.length1+=k.length,e+=k.length,g===DIFF_EQUAL?(h.length2+=k.length,f+=k.length):l=!1,h.diffs.push([g,k]),k==d.diffs[0][1]?d.diffs.shift():d.diffs[0][1]=d.diffs[0][1].substring(k.length))}g=this.diff_text2(h.diffs);g=g.substring(g.length-this.Patch_Margin);k=this.diff_text1(d.diffs).substring(0,
this.Patch_Margin);&quot;&quot;!==k&amp;&amp;(h.length1+=k.length,h.length2+=k.length,0!==h.diffs.length&amp;&amp;h.diffs[h.diffs.length-1][0]===DIFF_EQUAL?h.diffs[h.diffs.length-1][1]+=k:h.diffs.push([DIFF_EQUAL,k]));l||a.splice(++c,0,h)}}};diff_match_patch.prototype.patch_toText=function(a){for(var b=[],c=0;c&lt;a.length;c++)b[c]=a[c];return b.join(&quot;&quot;)};
diff_match_patch.prototype.patch_fromText=function(a){var b=[];if(!a)return b;a=a.split(&quot;\n&quot;);for(var c=0,d=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;c&lt;a.length;){var e=a[c].match(d);if(!e)throw Error(&quot;Invalid patch string: &quot;+a[c]);var f=new diff_match_patch.patch_obj;b.push(f);f.start1=parseInt(e[1],10);&quot;&quot;===e[2]?(f.start1--,f.length1=1):&quot;0&quot;==e[2]?f.length1=0:(f.start1--,f.length1=parseInt(e[2],10));f.start2=parseInt(e[3],10);&quot;&quot;===e[4]?(f.start2--,f.length2=1):&quot;0&quot;==e[4]?f.length2=0:(f.start2--,f.length2=
parseInt(e[4],10));for(c++;c&lt;a.length;){e=a[c].charAt(0);try{var g=decodeURI(a[c].substring(1))}catch(h){throw Error(&quot;Illegal escape in patch_fromText: &quot;+g);}if(&quot;-&quot;==e)f.diffs.push([DIFF_DELETE,g]);else if(&quot;+&quot;==e)f.diffs.push([DIFF_INSERT,g]);else if(&quot; &quot;==e)f.diffs.push([DIFF_EQUAL,g]);else if(&quot;@&quot;==e)break;else if(&quot;&quot;!==e)throw Error('Invalid patch mode &quot;'+e+'&quot; in: '+g);c++}}return b};diff_match_patch.patch_obj=function(){this.diffs=[];this.start2=this.start1=null;this.length2=this.length1=0};
diff_match_patch.patch_obj.prototype.toString=function(){for(var a=[&quot;@@ -&quot;+(0===this.length1?this.start1+&quot;,0&quot;:1==this.length1?this.start1+1:this.start1+1+&quot;,&quot;+this.length1)+&quot; +&quot;+(0===this.length2?this.start2+&quot;,0&quot;:1==this.length2?this.start2+1:this.start2+1+&quot;,&quot;+this.length2)+&quot; @@\n&quot;],b,c=0;c&lt;this.diffs.length;c++){switch(this.diffs[c][0]){case DIFF_INSERT:b=&quot;+&quot;;break;case DIFF_DELETE:b=&quot;-&quot;;break;case DIFF_EQUAL:b=&quot; &quot;}a[c+1]=b+encodeURI(this.diffs[c][1])+&quot;\n&quot;}return a.join(&quot;&quot;).replace(/%20/g,&quot; &quot;)};
this.diff_match_patch=diff_match_patch;this.DIFF_DELETE=DIFF_DELETE;this.DIFF_INSERT=DIFF_INSERT;this.DIFF_EQUAL=DIFF_EQUAL;
}).call(exports);</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/dom.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/dom.js
type: application/javascript
module-type: utils
Various static DOM-related utility functions.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Determines whether element 'a' contains element 'b'
Code thanks to John Resig, http://ejohn.org/blog/comparing-document-position/
*/
exports.domContains = function(a,b) {
return a.contains ?
a !== b &amp;&amp; a.contains(b) :
!!(a.compareDocumentPosition(b) &amp; 16);
};
exports.removeChildren = function(node) {
while(node.hasChildNodes()) {
node.removeChild(node.firstChild);
}
};
exports.hasClass = function(el,className) {
return el &amp;&amp; el.className &amp;&amp; el.className.toString().split(&quot; &quot;).indexOf(className) !== -1;
};
exports.addClass = function(el,className) {
var c = el.className.split(&quot; &quot;);
if(c.indexOf(className) === -1) {
c.push(className);
el.className = c.join(&quot; &quot;);
}
};
exports.removeClass = function(el,className) {
var c = el.className.split(&quot; &quot;),
p = c.indexOf(className);
if(p !== -1) {
c.splice(p,1);
el.className = c.join(&quot; &quot;);
}
};
exports.toggleClass = function(el,className,status) {
if(status === undefined) {
status = !exports.hasClass(el,className);
}
if(status) {
exports.addClass(el,className);
} else {
exports.removeClass(el,className);
}
};
/*
Get the first parent element that has scrollbars or use the body as fallback.
*/
exports.getScrollContainer = function(el) {
var doc = el.ownerDocument;
while(el.parentNode) {
el = el.parentNode;
if(el.scrollTop) {
return el;
}
}
return doc.body;
};
/*
Get the scroll position of the viewport
Returns:
{
x: horizontal scroll position in pixels,
y: vertical scroll position in pixels
}
*/
exports.getScrollPosition = function(srcWindow) {
var scrollWindow = srcWindow || window;
if(&quot;scrollX&quot; in scrollWindow) {
return {x: scrollWindow.scrollX, y: scrollWindow.scrollY};
} else {
return {x: scrollWindow.document.documentElement.scrollLeft, y: scrollWindow.document.documentElement.scrollTop};
}
};
/*
Adjust the height of a textarea to fit its content, preserving scroll position, and return the height
*/
exports.resizeTextAreaToFit = function(domNode,minHeight) {
// Get the scroll container and register the current scroll position
var container = $tw.utils.getScrollContainer(domNode),
scrollTop = container.scrollTop;
// Measure the specified minimum height
domNode.style.height = minHeight;
var measuredHeight = domNode.offsetHeight || parseInt(minHeight,10);
// Set its height to auto so that it snaps to the correct height
domNode.style.height = &quot;auto&quot;;
// Calculate the revised height
var newHeight = Math.max(domNode.scrollHeight + domNode.offsetHeight - domNode.clientHeight,measuredHeight);
// Only try to change the height if it has changed
if(newHeight !== domNode.offsetHeight) {
domNode.style.height = newHeight + &quot;px&quot;;
// Make sure that the dimensions of the textarea are recalculated
$tw.utils.forceLayout(domNode);
// Set the container to the position we registered at the beginning
container.scrollTop = scrollTop;
}
return newHeight;
};
/*
Gets the bounding rectangle of an element in absolute page coordinates
*/
exports.getBoundingPageRect = function(element) {
var scrollPos = $tw.utils.getScrollPosition(element.ownerDocument.defaultView),
clientRect = element.getBoundingClientRect();
return {
left: clientRect.left + scrollPos.x,
width: clientRect.width,
right: clientRect.right + scrollPos.x,
top: clientRect.top + scrollPos.y,
height: clientRect.height,
bottom: clientRect.bottom + scrollPos.y
};
};
/*
Saves a named password in the browser
*/
exports.savePassword = function(name,password) {
var done = false;
try {
window.localStorage.setItem(&quot;tw5-password-&quot; + name,password);
done = true;
} catch(e) {
}
if(!done) {
$tw.savedPasswords = $tw.savedPasswords || Object.create(null);
$tw.savedPasswords[name] = password;
}
};
/*
Retrieve a named password from the browser
*/
exports.getPassword = function(name) {
var value;
try {
value = window.localStorage.getItem(&quot;tw5-password-&quot; + name);
} catch(e) {
}
if(value !== undefined) {
return value;
} else {
return ($tw.savedPasswords || Object.create(null))[name] || &quot;&quot;;
}
};
/*
Force layout of a dom node and its descendents
*/
exports.forceLayout = function(element) {
var dummy = element.offsetWidth;
};
/*
Pulse an element for debugging purposes
*/
exports.pulseElement = function(element) {
// Event handler to remove the class at the end
element.addEventListener($tw.browser.animationEnd,function handler(event) {
element.removeEventListener($tw.browser.animationEnd,handler,false);
$tw.utils.removeClass(element,&quot;pulse&quot;);
},false);
// Apply the pulse class
$tw.utils.removeClass(element,&quot;pulse&quot;);
$tw.utils.forceLayout(element);
$tw.utils.addClass(element,&quot;pulse&quot;);
};
/*
Attach specified event handlers to a DOM node
domNode: where to attach the event handlers
events: array of event handlers to be added (see below)
Each entry in the events array is an object with these properties:
handlerFunction: optional event handler function
handlerObject: optional event handler object
handlerMethod: optionally specifies object handler method name (defaults to `handleEvent`)
*/
exports.addEventListeners = function(domNode,events) {
$tw.utils.each(events,function(eventInfo) {
var handler;
if(eventInfo.handlerFunction) {
handler = eventInfo.handlerFunction;
} else if(eventInfo.handlerObject) {
if(eventInfo.handlerMethod) {
handler = function(event) {
eventInfo.handlerObject[eventInfo.handlerMethod].call(eventInfo.handlerObject,event);
};
} else {
handler = eventInfo.handlerObject;
}
}
domNode.addEventListener(eventInfo.name,handler,false);
});
};
/*
Get the computed styles applied to an element as an array of strings of individual CSS properties
*/
exports.getComputedStyles = function(domNode) {
var textAreaStyles = window.getComputedStyle(domNode,null),
styleDefs = [],
name;
for(var t=0; t&lt;textAreaStyles.length; t++) {
name = textAreaStyles[t];
styleDefs.push(name + &quot;: &quot; + textAreaStyles.getPropertyValue(name) + &quot;;&quot;);
}
return styleDefs;
};
/*
Apply a set of styles passed as an array of strings of individual CSS properties
*/
exports.setStyles = function(domNode,styleDefs) {
domNode.style.cssText = styleDefs.join(&quot;&quot;);
};
/*
Copy the computed styles from a source element to a destination element
*/
exports.copyStyles = function(srcDomNode,dstDomNode) {
$tw.utils.setStyles(dstDomNode,$tw.utils.getComputedStyles(srcDomNode));
};
/*
Copy plain text to the clipboard on browsers that support it
*/
exports.copyToClipboard = function(text,options) {
options = options || {};
var textArea = document.createElement(&quot;textarea&quot;);
textArea.style.position = &quot;fixed&quot;;
textArea.style.top = 0;
textArea.style.left = 0;
textArea.style.fontSize = &quot;12pt&quot;;
textArea.style.width = &quot;2em&quot;;
textArea.style.height = &quot;2em&quot;;
textArea.style.padding = 0;
textArea.style.border = &quot;none&quot;;
textArea.style.outline = &quot;none&quot;;
textArea.style.boxShadow = &quot;none&quot;;
textArea.style.background = &quot;transparent&quot;;
textArea.value = text;
document.body.appendChild(textArea);
textArea.select();
textArea.setSelectionRange(0,text.length);
var succeeded = false;
try {
succeeded = document.execCommand(&quot;copy&quot;);
} catch (err) {
}
if(!options.doNotNotify) {
$tw.notifier.display(succeeded ? &quot;$:/language/Notifications/CopiedToClipboard/Succeeded&quot; : &quot;$:/language/Notifications/CopiedToClipboard/Failed&quot;);
}
document.body.removeChild(textArea);
};
exports.getLocationPath = function() {
return window.location.toString().split(&quot;#&quot;)[0];
};
})();
</pre>
</div>
<div module-type="animation" title="$:/core/modules/utils/dom/animations/slide.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/dom/animations/slide.js
type: application/javascript
module-type: animation
A simple slide animation that varies the height of the element
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
function slideOpen(domNode,options) {
options = options || {};
var duration = options.duration || $tw.utils.getAnimationDuration();
// Get the current height of the domNode
var computedStyle = window.getComputedStyle(domNode),
currMarginBottom = parseInt(computedStyle.marginBottom,10),
currMarginTop = parseInt(computedStyle.marginTop,10),
currPaddingBottom = parseInt(computedStyle.paddingBottom,10),
currPaddingTop = parseInt(computedStyle.paddingTop,10),
currHeight = domNode.offsetHeight;
// Reset the margin once the transition is over
setTimeout(function() {
$tw.utils.setStyle(domNode,[
{transition: &quot;none&quot;},
{marginBottom: &quot;&quot;},
{marginTop: &quot;&quot;},
{paddingBottom: &quot;&quot;},
{paddingTop: &quot;&quot;},
{height: &quot;auto&quot;},
{opacity: &quot;&quot;}
]);
if(options.callback) {
options.callback();
}
},duration);
// Set up the initial position of the element
$tw.utils.setStyle(domNode,[
{transition: &quot;none&quot;},
{marginTop: &quot;0px&quot;},
{marginBottom: &quot;0px&quot;},
{paddingTop: &quot;0px&quot;},
{paddingBottom: &quot;0px&quot;},
{height: &quot;0px&quot;},
{opacity: &quot;0&quot;}
]);
$tw.utils.forceLayout(domNode);
// Transition to the final position
$tw.utils.setStyle(domNode,[
{transition: &quot;margin-top &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;margin-bottom &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;padding-top &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;padding-bottom &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;height &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;opacity &quot; + duration + &quot;ms ease-in-out&quot;},
{marginBottom: currMarginBottom + &quot;px&quot;},
{marginTop: currMarginTop + &quot;px&quot;},
{paddingBottom: currPaddingBottom + &quot;px&quot;},
{paddingTop: currPaddingTop + &quot;px&quot;},
{height: currHeight + &quot;px&quot;},
{opacity: &quot;1&quot;}
]);
}
function slideClosed(domNode,options) {
options = options || {};
var duration = options.duration || $tw.utils.getAnimationDuration(),
currHeight = domNode.offsetHeight;
// Clear the properties we've set when the animation is over
setTimeout(function() {
$tw.utils.setStyle(domNode,[
{transition: &quot;none&quot;},
{marginBottom: &quot;&quot;},
{marginTop: &quot;&quot;},
{paddingBottom: &quot;&quot;},
{paddingTop: &quot;&quot;},
{height: &quot;auto&quot;},
{opacity: &quot;&quot;}
]);
if(options.callback) {
options.callback();
}
},duration);
// Set up the initial position of the element
$tw.utils.setStyle(domNode,[
{height: currHeight + &quot;px&quot;},
{opacity: &quot;1&quot;}
]);
$tw.utils.forceLayout(domNode);
// Transition to the final position
$tw.utils.setStyle(domNode,[
{transition: &quot;margin-top &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;margin-bottom &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;padding-top &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;padding-bottom &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;height &quot; + duration + &quot;ms ease-in-out, &quot; +
&quot;opacity &quot; + duration + &quot;ms ease-in-out&quot;},
{marginTop: &quot;0px&quot;},
{marginBottom: &quot;0px&quot;},
{paddingTop: &quot;0px&quot;},
{paddingBottom: &quot;0px&quot;},
{height: &quot;0px&quot;},
{opacity: &quot;0&quot;}
]);
}
exports.slide = {
open: slideOpen,
close: slideClosed
};
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/dom/animator.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/dom/animator.js
type: application/javascript
module-type: utils
Orchestrates animations and transitions
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
function Animator() {
// Get the registered animation modules
this.animations = {};
$tw.modules.applyMethods(&quot;animation&quot;,this.animations);
}
Animator.prototype.perform = function(type,domNode,options) {
options = options || {};
// Find an animation that can handle this type
var chosenAnimation;
$tw.utils.each(this.animations,function(animation,name) {
if($tw.utils.hop(animation,type)) {
chosenAnimation = animation[type];
}
});
if(!chosenAnimation) {
chosenAnimation = function(domNode,options) {
if(options.callback) {
options.callback();
}
};
}
// Call the animation
chosenAnimation(domNode,options);
};
exports.Animator = Animator;
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/dom/browser.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/dom/browser.js
type: application/javascript
module-type: utils
Browser feature detection
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Set style properties of an element
element: dom node
styles: ordered array of {name: value} pairs
*/
exports.setStyle = function(element,styles) {
if(element.nodeType === 1) { // Element.ELEMENT_NODE
for(var t=0; t&lt;styles.length; t++) {
for(var styleName in styles[t]) {
element.style[$tw.utils.convertStyleNameToPropertyName(styleName)] = styles[t][styleName];
}
}
}
};
/*
Converts a standard CSS property name into the local browser-specific equivalent. For example:
&quot;background-color&quot; --&gt; &quot;backgroundColor&quot;
&quot;transition&quot; --&gt; &quot;webkitTransition&quot;
*/
var styleNameCache = {}; // We'll cache the style name conversions
exports.convertStyleNameToPropertyName = function(styleName) {
// Return from the cache if we can
if(styleNameCache[styleName]) {
return styleNameCache[styleName];
}
// Convert it by first removing any hyphens
var propertyName = $tw.utils.unHyphenateCss(styleName);
// Then check if it needs a prefix
if($tw.browser &amp;&amp; document.body.style[propertyName] === undefined) {
var prefixes = [&quot;O&quot;,&quot;MS&quot;,&quot;Moz&quot;,&quot;webkit&quot;];
for(var t=0; t&lt;prefixes.length; t++) {
var prefixedName = prefixes[t] + propertyName.substr(0,1).toUpperCase() + propertyName.substr(1);
if(document.body.style[prefixedName] !== undefined) {
propertyName = prefixedName;
break;
}
}
}
// Put it in the cache too
styleNameCache[styleName] = propertyName;
return propertyName;
};
/*
Converts a JS format CSS property name back into the dashed form used in CSS declarations. For example:
&quot;backgroundColor&quot; --&gt; &quot;background-color&quot;
&quot;webkitTransform&quot; --&gt; &quot;-webkit-transform&quot;
*/
exports.convertPropertyNameToStyleName = function(propertyName) {
// Rehyphenate the name
var styleName = $tw.utils.hyphenateCss(propertyName);
// If there's a webkit prefix, add a dash (other browsers have uppercase prefixes, and so get the dash automatically)
if(styleName.indexOf(&quot;webkit&quot;) === 0) {
styleName = &quot;-&quot; + styleName;
} else if(styleName.indexOf(&quot;-m-s&quot;) === 0) {
styleName = &quot;-ms&quot; + styleName.substr(4);
}
return styleName;
};
/*
Round trip a stylename to a property name and back again. For example:
&quot;transform&quot; --&gt; &quot;webkitTransform&quot; --&gt; &quot;-webkit-transform&quot;
*/
exports.roundTripPropertyName = function(propertyName) {
return $tw.utils.convertPropertyNameToStyleName($tw.utils.convertStyleNameToPropertyName(propertyName));
};
/*
Converts a standard event name into the local browser specific equivalent. For example:
&quot;animationEnd&quot; --&gt; &quot;webkitAnimationEnd&quot;
*/
var eventNameCache = {}; // We'll cache the conversions
var eventNameMappings = {
&quot;transitionEnd&quot;: {
correspondingCssProperty: &quot;transition&quot;,
mappings: {
transition: &quot;transitionend&quot;,
OTransition: &quot;oTransitionEnd&quot;,
MSTransition: &quot;msTransitionEnd&quot;,
MozTransition: &quot;transitionend&quot;,
webkitTransition: &quot;webkitTransitionEnd&quot;
}
},
&quot;animationEnd&quot;: {
correspondingCssProperty: &quot;animation&quot;,
mappings: {
animation: &quot;animationend&quot;,
OAnimation: &quot;oAnimationEnd&quot;,
MSAnimation: &quot;msAnimationEnd&quot;,
MozAnimation: &quot;animationend&quot;,
webkitAnimation: &quot;webkitAnimationEnd&quot;
}
}
};
exports.convertEventName = function(eventName) {
if(eventNameCache[eventName]) {
return eventNameCache[eventName];
}
var newEventName = eventName,
mappings = eventNameMappings[eventName];
if(mappings) {
var convertedProperty = $tw.utils.convertStyleNameToPropertyName(mappings.correspondingCssProperty);
if(mappings.mappings[convertedProperty]) {
newEventName = mappings.mappings[convertedProperty];
}
}
// Put it in the cache too
eventNameCache[eventName] = newEventName;
return newEventName;
};
/*
Return the names of the fullscreen APIs
*/
exports.getFullScreenApis = function() {
var d = document,
db = d.body,
result = {
&quot;_requestFullscreen&quot;: db.webkitRequestFullscreen !== undefined ? &quot;webkitRequestFullscreen&quot; :
db.mozRequestFullScreen !== undefined ? &quot;mozRequestFullScreen&quot; :
db.msRequestFullscreen !== undefined ? &quot;msRequestFullscreen&quot; :
db.requestFullscreen !== undefined ? &quot;requestFullscreen&quot; : &quot;&quot;,
&quot;_exitFullscreen&quot;: d.webkitExitFullscreen !== undefined ? &quot;webkitExitFullscreen&quot; :
d.mozCancelFullScreen !== undefined ? &quot;mozCancelFullScreen&quot; :
d.msExitFullscreen !== undefined ? &quot;msExitFullscreen&quot; :
d.exitFullscreen !== undefined ? &quot;exitFullscreen&quot; : &quot;&quot;,
&quot;_fullscreenElement&quot;: d.webkitFullscreenElement !== undefined ? &quot;webkitFullscreenElement&quot; :
d.mozFullScreenElement !== undefined ? &quot;mozFullScreenElement&quot; :
d.msFullscreenElement !== undefined ? &quot;msFullscreenElement&quot; :
d.fullscreenElement !== undefined ? &quot;fullscreenElement&quot; : &quot;&quot;,
&quot;_fullscreenChange&quot;: d.webkitFullscreenElement !== undefined ? &quot;webkitfullscreenchange&quot; :
d.mozFullScreenElement !== undefined ? &quot;mozfullscreenchange&quot; :
d.msFullscreenElement !== undefined ? &quot;MSFullscreenChange&quot; :
d.fullscreenElement !== undefined ? &quot;fullscreenchange&quot; : &quot;&quot;
};
if(!result._requestFullscreen || !result._exitFullscreen || !result._fullscreenElement || !result._fullscreenChange) {
return null;
} else {
return result;
}
};
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/dom/csscolorparser.js" type="application/javascript">
<pre>// (c) Dean McNamee &lt;dean@gmail.com&gt;, 2012.
//
// https://github.com/deanm/css-color-parser-js
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the &quot;Software&quot;), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
// http://www.w3.org/TR/css3-color/
var kCSSColorTable = {
&quot;transparent&quot;: [0,0,0,0], &quot;aliceblue&quot;: [240,248,255,1],
&quot;antiquewhite&quot;: [250,235,215,1], &quot;aqua&quot;: [0,255,255,1],
&quot;aquamarine&quot;: [127,255,212,1], &quot;azure&quot;: [240,255,255,1],
&quot;beige&quot;: [245,245,220,1], &quot;bisque&quot;: [255,228,196,1],
&quot;black&quot;: [0,0,0,1], &quot;blanchedalmond&quot;: [255,235,205,1],
&quot;blue&quot;: [0,0,255,1], &quot;blueviolet&quot;: [138,43,226,1],
&quot;brown&quot;: [165,42,42,1], &quot;burlywood&quot;: [222,184,135,1],
&quot;cadetblue&quot;: [95,158,160,1], &quot;chartreuse&quot;: [127,255,0,1],
&quot;chocolate&quot;: [210,105,30,1], &quot;coral&quot;: [255,127,80,1],
&quot;cornflowerblue&quot;: [100,149,237,1], &quot;cornsilk&quot;: [255,248,220,1],
&quot;crimson&quot;: [220,20,60,1], &quot;cyan&quot;: [0,255,255,1],
&quot;darkblue&quot;: [0,0,139,1], &quot;darkcyan&quot;: [0,139,139,1],
&quot;darkgoldenrod&quot;: [184,134,11,1], &quot;darkgray&quot;: [169,169,169,1],
&quot;darkgreen&quot;: [0,100,0,1], &quot;darkgrey&quot;: [169,169,169,1],
&quot;darkkhaki&quot;: [189,183,107,1], &quot;darkmagenta&quot;: [139,0,139,1],
&quot;darkolivegreen&quot;: [85,107,47,1], &quot;darkorange&quot;: [255,140,0,1],
&quot;darkorchid&quot;: [153,50,204,1], &quot;darkred&quot;: [139,0,0,1],
&quot;darksalmon&quot;: [233,150,122,1], &quot;darkseagreen&quot;: [143,188,143,1],
&quot;darkslateblue&quot;: [72,61,139,1], &quot;darkslategray&quot;: [47,79,79,1],
&quot;darkslategrey&quot;: [47,79,79,1], &quot;darkturquoise&quot;: [0,206,209,1],
&quot;darkviolet&quot;: [148,0,211,1], &quot;deeppink&quot;: [255,20,147,1],
&quot;deepskyblue&quot;: [0,191,255,1], &quot;dimgray&quot;: [105,105,105,1],
&quot;dimgrey&quot;: [105,105,105,1], &quot;dodgerblue&quot;: [30,144,255,1],
&quot;firebrick&quot;: [178,34,34,1], &quot;floralwhite&quot;: [255,250,240,1],
&quot;forestgreen&quot;: [34,139,34,1], &quot;fuchsia&quot;: [255,0,255,1],
&quot;gainsboro&quot;: [220,220,220,1], &quot;ghostwhite&quot;: [248,248,255,1],
&quot;gold&quot;: [255,215,0,1], &quot;goldenrod&quot;: [218,165,32,1],
&quot;gray&quot;: [128,128,128,1], &quot;green&quot;: [0,128,0,1],
&quot;greenyellow&quot;: [173,255,47,1], &quot;grey&quot;: [128,128,128,1],
&quot;honeydew&quot;: [240,255,240,1], &quot;hotpink&quot;: [255,105,180,1],
&quot;indianred&quot;: [205,92,92,1], &quot;indigo&quot;: [75,0,130,1],
&quot;ivory&quot;: [255,255,240,1], &quot;khaki&quot;: [240,230,140,1],
&quot;lavender&quot;: [230,230,250,1], &quot;lavenderblush&quot;: [255,240,245,1],
&quot;lawngreen&quot;: [124,252,0,1], &quot;lemonchiffon&quot;: [255,250,205,1],
&quot;lightblue&quot;: [173,216,230,1], &quot;lightcoral&quot;: [240,128,128,1],
&quot;lightcyan&quot;: [224,255,255,1], &quot;lightgoldenrodyellow&quot;: [250,250,210,1],
&quot;lightgray&quot;: [211,211,211,1], &quot;lightgreen&quot;: [144,238,144,1],
&quot;lightgrey&quot;: [211,211,211,1], &quot;lightpink&quot;: [255,182,193,1],
&quot;lightsalmon&quot;: [255,160,122,1], &quot;lightseagreen&quot;: [32,178,170,1],
&quot;lightskyblue&quot;: [135,206,250,1], &quot;lightslategray&quot;: [119,136,153,1],
&quot;lightslategrey&quot;: [119,136,153,1], &quot;lightsteelblue&quot;: [176,196,222,1],
&quot;lightyellow&quot;: [255,255,224,1], &quot;lime&quot;: [0,255,0,1],
&quot;limegreen&quot;: [50,205,50,1], &quot;linen&quot;: [250,240,230,1],
&quot;magenta&quot;: [255,0,255,1], &quot;maroon&quot;: [128,0,0,1],
&quot;mediumaquamarine&quot;: [102,205,170,1], &quot;mediumblue&quot;: [0,0,205,1],
&quot;mediumorchid&quot;: [186,85,211,1], &quot;mediumpurple&quot;: [147,112,219,1],
&quot;mediumseagreen&quot;: [60,179,113,1], &quot;mediumslateblue&quot;: [123,104,238,1],
&quot;mediumspringgreen&quot;: [0,250,154,1], &quot;mediumturquoise&quot;: [72,209,204,1],
&quot;mediumvioletred&quot;: [199,21,133,1], &quot;midnightblue&quot;: [25,25,112,1],
&quot;mintcream&quot;: [245,255,250,1], &quot;mistyrose&quot;: [255,228,225,1],
&quot;moccasin&quot;: [255,228,181,1], &quot;navajowhite&quot;: [255,222,173,1],
&quot;navy&quot;: [0,0,128,1], &quot;oldlace&quot;: [253,245,230,1],
&quot;olive&quot;: [128,128,0,1], &quot;olivedrab&quot;: [107,142,35,1],
&quot;orange&quot;: [255,165,0,1], &quot;orangered&quot;: [255,69,0,1],
&quot;orchid&quot;: [218,112,214,1], &quot;palegoldenrod&quot;: [238,232,170,1],
&quot;palegreen&quot;: [152,251,152,1], &quot;paleturquoise&quot;: [175,238,238,1],
&quot;palevioletred&quot;: [219,112,147,1], &quot;papayawhip&quot;: [255,239,213,1],
&quot;peachpuff&quot;: [255,218,185,1], &quot;peru&quot;: [205,133,63,1],
&quot;pink&quot;: [255,192,203,1], &quot;plum&quot;: [221,160,221,1],
&quot;powderblue&quot;: [176,224,230,1], &quot;purple&quot;: [128,0,128,1],
&quot;red&quot;: [255,0,0,1], &quot;rosybrown&quot;: [188,143,143,1],
&quot;royalblue&quot;: [65,105,225,1], &quot;saddlebrown&quot;: [139,69,19,1],
&quot;salmon&quot;: [250,128,114,1], &quot;sandybrown&quot;: [244,164,96,1],
&quot;seagreen&quot;: [46,139,87,1], &quot;seashell&quot;: [255,245,238,1],
&quot;sienna&quot;: [160,82,45,1], &quot;silver&quot;: [192,192,192,1],
&quot;skyblue&quot;: [135,206,235,1], &quot;slateblue&quot;: [106,90,205,1],
&quot;slategray&quot;: [112,128,144,1], &quot;slategrey&quot;: [112,128,144,1],
&quot;snow&quot;: [255,250,250,1], &quot;springgreen&quot;: [0,255,127,1],
&quot;steelblue&quot;: [70,130,180,1], &quot;tan&quot;: [210,180,140,1],
&quot;teal&quot;: [0,128,128,1], &quot;thistle&quot;: [216,191,216,1],
&quot;tomato&quot;: [255,99,71,1], &quot;turquoise&quot;: [64,224,208,1],
&quot;violet&quot;: [238,130,238,1], &quot;wheat&quot;: [245,222,179,1],
&quot;white&quot;: [255,255,255,1], &quot;whitesmoke&quot;: [245,245,245,1],
&quot;yellow&quot;: [255,255,0,1], &quot;yellowgreen&quot;: [154,205,50,1]}
function clamp_css_byte(i) { // Clamp to integer 0 .. 255.
i = Math.round(i); // Seems to be what Chrome does (vs truncation).
return i &lt; 0 ? 0 : i &gt; 255 ? 255 : i;
}
function clamp_css_float(f) { // Clamp to float 0.0 .. 1.0.
return f &lt; 0 ? 0 : f &gt; 1 ? 1 : f;
}
function parse_css_int(str) { // int or percentage.
if (str[str.length - 1] === '%')
return clamp_css_byte(parseFloat(str) / 100 * 255);
return clamp_css_byte(parseInt(str));
}
function parse_css_float(str) { // float or percentage.
if (str[str.length - 1] === '%')
return clamp_css_float(parseFloat(str) / 100);
return clamp_css_float(parseFloat(str));
}
function css_hue_to_rgb(m1, m2, h) {
if (h &lt; 0) h += 1;
else if (h &gt; 1) h -= 1;
if (h * 6 &lt; 1) return m1 + (m2 - m1) * h * 6;
if (h * 2 &lt; 1) return m2;
if (h * 3 &lt; 2) return m1 + (m2 - m1) * (2/3 - h) * 6;
return m1;
}
function parseCSSColor(css_str) {
// Remove all whitespace, not compliant, but should just be more accepting.
var str = css_str.replace(/ /g, '').toLowerCase();
// Color keywords (and transparent) lookup.
if (str in kCSSColorTable) return kCSSColorTable[str].slice(); // dup.
// #abc and #abc123 syntax.
if (str[0] === '#') {
if (str.length === 4) {
var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.
if (!(iv &gt;= 0 &amp;&amp; iv &lt;= 0xfff)) return null; // Covers NaN.
return [((iv &amp; 0xf00) &gt;&gt; 4) | ((iv &amp; 0xf00) &gt;&gt; 8),
(iv &amp; 0xf0) | ((iv &amp; 0xf0) &gt;&gt; 4),
(iv &amp; 0xf) | ((iv &amp; 0xf) &lt;&lt; 4),
1];
} else if (str.length === 7) {
var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.
if (!(iv &gt;= 0 &amp;&amp; iv &lt;= 0xffffff)) return null; // Covers NaN.
return [(iv &amp; 0xff0000) &gt;&gt; 16,
(iv &amp; 0xff00) &gt;&gt; 8,
iv &amp; 0xff,
1];
}
return null;
}
var op = str.indexOf('('), ep = str.indexOf(')');
if (op !== -1 &amp;&amp; ep + 1 === str.length) {
var fname = str.substr(0, op);
var params = str.substr(op+1, ep-(op+1)).split(',');
var alpha = 1; // To allow case fallthrough.
switch (fname) {
case 'rgba':
if (params.length !== 4) return null;
alpha = parse_css_float(params.pop());
// Fall through.
case 'rgb':
if (params.length !== 3) return null;
return [parse_css_int(params[0]),
parse_css_int(params[1]),
parse_css_int(params[2]),
alpha];
case 'hsla':
if (params.length !== 4) return null;
alpha = parse_css_float(params.pop());
// Fall through.
case 'hsl':
if (params.length !== 3) return null;
var h = (((parseFloat(params[0]) % 360) + 360) % 360) / 360; // 0 .. 1
// NOTE(deanm): According to the CSS spec s/l should only be
// percentages, but we don't bother and let float or percentage.
var s = parse_css_float(params[1]);
var l = parse_css_float(params[2]);
var m2 = l &lt;= 0.5 ? l * (s + 1) : l + s - l * s;
var m1 = l * 2 - m2;
return [clamp_css_byte(css_hue_to_rgb(m1, m2, h+1/3) * 255),
clamp_css_byte(css_hue_to_rgb(m1, m2, h) * 255),
clamp_css_byte(css_hue_to_rgb(m1, m2, h-1/3) * 255),
alpha];
default:
return null;
}
}
return null;
}
try { exports.parseCSSColor = parseCSSColor } catch(e) { }
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/dom/dragndrop.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/dom/dragndrop.js
type: application/javascript
module-type: utils
Browser data transfer utilities, used with the clipboard and drag and drop
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Options:
domNode: dom node to make draggable
dragImageType: &quot;pill&quot; or &quot;dom&quot;
dragTiddlerFn: optional function to retrieve the title of tiddler to drag
dragFilterFn: optional function to retreive the filter defining a list of tiddlers to drag
widget: widget to use as the contect for the filter
*/
exports.makeDraggable = function(options) {
var dragImageType = options.dragImageType || &quot;dom&quot;,
dragImage,
domNode = options.domNode;
// Make the dom node draggable (not necessary for anchor tags)
if((domNode.tagName || &quot;&quot;).toLowerCase() !== &quot;a&quot;) {
domNode.setAttribute(&quot;draggable&quot;,&quot;true&quot;);
}
// Add event handlers
$tw.utils.addEventListeners(domNode,[
{name: &quot;dragstart&quot;, handlerFunction: function(event) {
if(event.dataTransfer === undefined) {
return false;
}
// Collect the tiddlers being dragged
var dragTiddler = options.dragTiddlerFn &amp;&amp; options.dragTiddlerFn(),
dragFilter = options.dragFilterFn &amp;&amp; options.dragFilterFn(),
titles = dragTiddler ? [dragTiddler] : [],
startActions = options.startActions;
if(dragFilter) {
titles.push.apply(titles,options.widget.wiki.filterTiddlers(dragFilter,options.widget));
}
var titleString = $tw.utils.stringifyList(titles);
// Check that we've something to drag
if(titles.length &gt; 0 &amp;&amp; event.target === domNode) {
// Mark the drag in progress
$tw.dragInProgress = domNode;
// Set the dragging class on the element being dragged
$tw.utils.addClass(event.target,&quot;tc-dragging&quot;);
// Invoke drag-start actions if given
if(startActions !== undefined) {
options.widget.invokeActionString(startActions,options.widget,event,{actionTiddler: titleString});
}
// Create the drag image elements
dragImage = options.widget.document.createElement(&quot;div&quot;);
dragImage.className = &quot;tc-tiddler-dragger&quot;;
var inner = options.widget.document.createElement(&quot;div&quot;);
inner.className = &quot;tc-tiddler-dragger-inner&quot;;
inner.appendChild(options.widget.document.createTextNode(
titles.length === 1 ?
titles[0] :
titles.length + &quot; tiddlers&quot;
));
dragImage.appendChild(inner);
options.widget.document.body.appendChild(dragImage);
// Set the data transfer properties
var dataTransfer = event.dataTransfer;
// Set up the image
dataTransfer.effectAllowed = &quot;all&quot;;
if(dataTransfer.setDragImage) {
if(dragImageType === &quot;pill&quot;) {
dataTransfer.setDragImage(dragImage.firstChild,-16,-16);
} else {
var r = domNode.getBoundingClientRect();
dataTransfer.setDragImage(domNode,event.clientX-r.left,event.clientY-r.top);
}
}
// Set up the data transfer
if(dataTransfer.clearData) {
dataTransfer.clearData();
}
var jsonData = [];
if(titles.length &gt; 1) {
titles.forEach(function(title) {
jsonData.push(options.widget.wiki.getTiddlerAsJson(title));
});
jsonData = &quot;[&quot; + jsonData.join(&quot;,&quot;) + &quot;]&quot;;
} else {
jsonData = options.widget.wiki.getTiddlerAsJson(titles[0]);
}
// IE doesn't like these content types
if(!$tw.browser.isIE) {
dataTransfer.setData(&quot;text/vnd.tiddler&quot;,jsonData);
dataTransfer.setData(&quot;text/plain&quot;,titleString);
dataTransfer.setData(&quot;text/x-moz-url&quot;,&quot;data:text/vnd.tiddler,&quot; + encodeURIComponent(jsonData));
}
dataTransfer.setData(&quot;URL&quot;,&quot;data:text/vnd.tiddler,&quot; + encodeURIComponent(jsonData));
dataTransfer.setData(&quot;Text&quot;,titleString);
event.stopPropagation();
}
return false;
}},
{name: &quot;dragend&quot;, handlerFunction: function(event) {
if(event.target === domNode) {
// Collect the tiddlers being dragged
var dragTiddler = options.dragTiddlerFn &amp;&amp; options.dragTiddlerFn(),
dragFilter = options.dragFilterFn &amp;&amp; options.dragFilterFn(),
titles = dragTiddler ? [dragTiddler] : [],
endActions = options.endActions;
if(dragFilter) {
titles.push.apply(titles,options.widget.wiki.filterTiddlers(dragFilter,options.widget));
}
var titleString = $tw.utils.stringifyList(titles);
$tw.dragInProgress = null;
// Invoke drag-end actions if given
if(endActions !== undefined) {
options.widget.invokeActionString(endActions,options.widget,event,{actionTiddler: titleString});
}
// Remove the dragging class on the element being dragged
$tw.utils.removeClass(event.target,&quot;tc-dragging&quot;);
// Delete the drag image element
if(dragImage) {
dragImage.parentNode.removeChild(dragImage);
dragImage = null;
}
}
return false;
}}
]);
};
exports.importDataTransfer = function(dataTransfer,fallbackTitle,callback) {
// Try each provided data type in turn
if($tw.log.IMPORT) {
console.log(&quot;Available data types:&quot;);
for(var type=0; type&lt;dataTransfer.types.length; type++) {
console.log(&quot;type&quot;,dataTransfer.types[type],dataTransfer.getData(dataTransfer.types[type]))
}
}
for(var t=0; t&lt;importDataTypes.length; t++) {
if(!$tw.browser.isIE || importDataTypes[t].IECompatible) {
// Get the data
var dataType = importDataTypes[t];
var data = dataTransfer.getData(dataType.type);
// Import the tiddlers in the data
if(data !== &quot;&quot; &amp;&amp; data !== null) {
if($tw.log.IMPORT) {
console.log(&quot;Importing data type '&quot; + dataType.type + &quot;', data: '&quot; + data + &quot;'&quot;)
}
var tiddlerFields = dataType.toTiddlerFieldsArray(data,fallbackTitle);
callback(tiddlerFields);
return;
}
}
}
};
var importDataTypes = [
{type: &quot;text/vnd.tiddler&quot;, IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
return parseJSONTiddlers(data,fallbackTitle);
}},
{type: &quot;URL&quot;, IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {
// Check for tiddler data URI
var match = decodeURIComponent(data).match(/^data\:text\/vnd\.tiddler,(.*)/i);
if(match) {
return parseJSONTiddlers(match[1],fallbackTitle);
} else {
return [{title: fallbackTitle, text: data}]; // As URL string
}
}},
{type: &quot;text/x-moz-url&quot;, IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
// Check for tiddler data URI
var match = decodeURIComponent(data).match(/^data\:text\/vnd\.tiddler,(.*)/i);
if(match) {
return parseJSONTiddlers(match[1],fallbackTitle);
} else {
return [{title: fallbackTitle, text: data}]; // As URL string
}
}},
{type: &quot;text/html&quot;, IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
return [{title: fallbackTitle, text: data}];
}},
{type: &quot;text/plain&quot;, IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
return [{title: fallbackTitle, text: data}];
}},
{type: &quot;Text&quot;, IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {
return [{title: fallbackTitle, text: data}];
}},
{type: &quot;text/uri-list&quot;, IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
return [{title: fallbackTitle, text: data}];
}}
];
function parseJSONTiddlers(json,fallbackTitle) {
var data = JSON.parse(json);
if(!$tw.utils.isArray(data)) {
data = [data];
}
data.forEach(function(fields) {
fields.title = fields.title || fallbackTitle;
});
return data;
};
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/dom/http.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/dom/http.js
type: application/javascript
module-type: utils
Browser HTTP support
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
A quick and dirty HTTP function; to be refactored later. Options are:
url: URL to retrieve
headers: hashmap of headers to send
type: GET, PUT, POST etc
callback: function invoked with (err,data,xhr)
returnProp: string name of the property to return as first argument of callback
*/
exports.httpRequest = function(options) {
var type = options.type || &quot;GET&quot;,
url = options.url,
headers = options.headers || {accept: &quot;application/json&quot;},
returnProp = options.returnProp || &quot;responseText&quot;,
request = new XMLHttpRequest(),
data = &quot;&quot;,
f,results;
// Massage the data hashmap into a string
if(options.data) {
if(typeof options.data === &quot;string&quot;) { // Already a string
data = options.data;
} else { // A hashmap of strings
results = [];
$tw.utils.each(options.data,function(dataItem,dataItemTitle) {
results.push(dataItemTitle + &quot;=&quot; + encodeURIComponent(dataItem));
});
if(type === &quot;GET&quot; || type === &quot;HEAD&quot;) {
url += &quot;?&quot; + results.join(&quot;&amp;&quot;);
} else {
data = results.join(&quot;&amp;&quot;);
}
}
}
// Set up the state change handler
request.onreadystatechange = function() {
if(this.readyState === 4) {
if(this.status === 200 || this.status === 201 || this.status === 204) {
// Success!
options.callback(null,this[returnProp],this);
return;
}
// Something went wrong
options.callback($tw.language.getString(&quot;Error/XMLHttpRequest&quot;) + &quot;: &quot; + this.status,null,this);
}
};
// Make the request
request.open(type,url,true);
if(headers) {
$tw.utils.each(headers,function(header,headerTitle,object) {
request.setRequestHeader(headerTitle,header);
});
}
if(data &amp;&amp; !$tw.utils.hop(headers,&quot;Content-type&quot;)) {
request.setRequestHeader(&quot;Content-type&quot;,&quot;application/x-www-form-urlencoded; charset=UTF-8&quot;);
}
if(!$tw.utils.hop(headers,&quot;X-Requested-With&quot;)) {
request.setRequestHeader(&quot;X-Requested-With&quot;,&quot;TiddlyWiki&quot;);
}
try {
request.send(data);
} catch(e) {
options.callback(e,null,this);
}
return request;
};
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/dom/keyboard.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/dom/keyboard.js
type: application/javascript
module-type: utils
Keyboard utilities; now deprecated. Instead, use $tw.keyboardManager
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
[&quot;parseKeyDescriptor&quot;,&quot;checkKeyDescriptor&quot;].forEach(function(method) {
exports[method] = function() {
if($tw.keyboardManager) {
return $tw.keyboardManager[method].apply($tw.keyboardManager,Array.prototype.slice.call(arguments,0));
} else {
return null
}
};
});
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/dom/modal.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/dom/modal.js
type: application/javascript
module-type: utils
Modal message mechanism
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var widget = require(&quot;$:/core/modules/widgets/widget.js&quot;);
var Modal = function(wiki) {
this.wiki = wiki;
this.modalCount = 0;
};
/*
Display a modal dialogue
title: Title of tiddler to display
options: see below
Options include:
downloadLink: Text of a big download link to include
*/
Modal.prototype.display = function(title,options) {
options = options || {};
this.srcDocument = options.variables &amp;&amp; (options.variables.rootwindow === &quot;true&quot; ||
options.variables.rootwindow === &quot;yes&quot;) ? document :
(options.event.event &amp;&amp; options.event.event.target ? options.event.event.target.ownerDocument : document);
this.srcWindow = this.srcDocument.defaultView;
var self = this,
refreshHandler,
duration = $tw.utils.getAnimationDuration(),
tiddler = this.wiki.getTiddler(title);
// Don't do anything if the tiddler doesn't exist
if(!tiddler) {
return;
}
// Create the variables
var variables = $tw.utils.extend({currentTiddler: title},options.variables);
// Create the wrapper divs
var wrapper = this.srcDocument.createElement(&quot;div&quot;),
modalBackdrop = this.srcDocument.createElement(&quot;div&quot;),
modalWrapper = this.srcDocument.createElement(&quot;div&quot;),
modalHeader = this.srcDocument.createElement(&quot;div&quot;),
headerTitle = this.srcDocument.createElement(&quot;h3&quot;),
modalBody = this.srcDocument.createElement(&quot;div&quot;),
modalLink = this.srcDocument.createElement(&quot;a&quot;),
modalFooter = this.srcDocument.createElement(&quot;div&quot;),
modalFooterHelp = this.srcDocument.createElement(&quot;span&quot;),
modalFooterButtons = this.srcDocument.createElement(&quot;span&quot;);
// Up the modal count and adjust the body class
this.modalCount++;
this.adjustPageClass();
// Add classes
$tw.utils.addClass(wrapper,&quot;tc-modal-wrapper&quot;);
if(tiddler.fields &amp;&amp; tiddler.fields.class) {
$tw.utils.addClass(wrapper,tiddler.fields.class);
}
$tw.utils.addClass(modalBackdrop,&quot;tc-modal-backdrop&quot;);
$tw.utils.addClass(modalWrapper,&quot;tc-modal&quot;);
$tw.utils.addClass(modalHeader,&quot;tc-modal-header&quot;);
$tw.utils.addClass(modalBody,&quot;tc-modal-body&quot;);
$tw.utils.addClass(modalFooter,&quot;tc-modal-footer&quot;);
// Join them together
wrapper.appendChild(modalBackdrop);
wrapper.appendChild(modalWrapper);
modalHeader.appendChild(headerTitle);
modalWrapper.appendChild(modalHeader);
modalWrapper.appendChild(modalBody);
modalFooter.appendChild(modalFooterHelp);
modalFooter.appendChild(modalFooterButtons);
modalWrapper.appendChild(modalFooter);
// Render the title of the message
var headerWidgetNode = this.wiki.makeTranscludeWidget(title,{
field: &quot;subtitle&quot;,
mode: &quot;inline&quot;,
children: [{
type: &quot;text&quot;,
attributes: {
text: {
type: &quot;string&quot;,
value: title
}}}],
parentWidget: $tw.rootWidget,
document: this.srcDocument,
variables: variables,
importPageMacros: true
});
headerWidgetNode.render(headerTitle,null);
// Render the body of the message
var bodyWidgetNode = this.wiki.makeTranscludeWidget(title,{
parentWidget: $tw.rootWidget,
document: this.srcDocument,
variables: variables,
importPageMacros: true
});
bodyWidgetNode.render(modalBody,null);
// Setup the link if present
if(options.downloadLink) {
modalLink.href = options.downloadLink;
modalLink.appendChild(this.srcDocument.createTextNode(&quot;Right-click to save changes&quot;));
modalBody.appendChild(modalLink);
}
// Render the footer of the message
if(tiddler.fields &amp;&amp; tiddler.fields.help) {
var link = this.srcDocument.createElement(&quot;a&quot;);
link.setAttribute(&quot;href&quot;,tiddler.fields.help);
link.setAttribute(&quot;target&quot;,&quot;_blank&quot;);
link.setAttribute(&quot;rel&quot;,&quot;noopener noreferrer&quot;);
link.appendChild(this.srcDocument.createTextNode(&quot;Help&quot;));
modalFooterHelp.appendChild(link);
modalFooterHelp.style.float = &quot;left&quot;;
}
var footerWidgetNode = this.wiki.makeTranscludeWidget(title,{
field: &quot;footer&quot;,
mode: &quot;inline&quot;,
children: [{
type: &quot;button&quot;,
attributes: {
message: {
type: &quot;string&quot;,
value: &quot;tm-close-tiddler&quot;
}
},
children: [{
type: &quot;text&quot;,
attributes: {
text: {
type: &quot;string&quot;,
value: $tw.language.getString(&quot;Buttons/Close/Caption&quot;)
}}}
]}],
parentWidget: $tw.rootWidget,
document: this.srcDocument,
variables: variables,
importPageMacros: true
});
footerWidgetNode.render(modalFooterButtons,null);
// Set up the refresh handler
refreshHandler = function(changes) {
headerWidgetNode.refresh(changes,modalHeader,null);
bodyWidgetNode.refresh(changes,modalBody,null);
footerWidgetNode.refresh(changes,modalFooterButtons,null);
};
this.wiki.addEventListener(&quot;change&quot;,refreshHandler);
// Add the close event handler
var closeHandler = function(event) {
// Remove our refresh handler
self.wiki.removeEventListener(&quot;change&quot;,refreshHandler);
// Decrease the modal count and adjust the body class
self.modalCount--;
self.adjustPageClass();
// Force layout and animate the modal message away
$tw.utils.forceLayout(modalBackdrop);
$tw.utils.forceLayout(modalWrapper);
$tw.utils.setStyle(modalBackdrop,[
{opacity: &quot;0&quot;}
]);
$tw.utils.setStyle(modalWrapper,[
{transform: &quot;translateY(&quot; + self.srcWindow.innerHeight + &quot;px)&quot;}
]);
// Set up an event for the transition end
self.srcWindow.setTimeout(function() {
if(wrapper.parentNode) {
// Remove the modal message from the DOM
self.srcDocument.body.removeChild(wrapper);
}
},duration);
// Don't let anyone else handle the tm-close-tiddler message
return false;
};
headerWidgetNode.addEventListener(&quot;tm-close-tiddler&quot;,closeHandler,false);
bodyWidgetNode.addEventListener(&quot;tm-close-tiddler&quot;,closeHandler,false);
footerWidgetNode.addEventListener(&quot;tm-close-tiddler&quot;,closeHandler,false);
// Set the initial styles for the message
$tw.utils.setStyle(modalBackdrop,[
{opacity: &quot;0&quot;}
]);
$tw.utils.setStyle(modalWrapper,[
{transformOrigin: &quot;0% 0%&quot;},
{transform: &quot;translateY(&quot; + (-this.srcWindow.innerHeight) + &quot;px)&quot;}
]);
// Put the message into the document
this.srcDocument.body.appendChild(wrapper);
// Set up animation for the styles
$tw.utils.setStyle(modalBackdrop,[
{transition: &quot;opacity &quot; + duration + &quot;ms ease-out&quot;}
]);
$tw.utils.setStyle(modalWrapper,[
{transition: $tw.utils.roundTripPropertyName(&quot;transform&quot;) + &quot; &quot; + duration + &quot;ms ease-in-out&quot;}
]);
// Force layout
$tw.utils.forceLayout(modalBackdrop);
$tw.utils.forceLayout(modalWrapper);
// Set final animated styles
$tw.utils.setStyle(modalBackdrop,[
{opacity: &quot;0.7&quot;}
]);
$tw.utils.setStyle(modalWrapper,[
{transform: &quot;translateY(0px)&quot;}
]);
};
Modal.prototype.adjustPageClass = function() {
var windowContainer = $tw.pageContainer ? ($tw.pageContainer === this.srcDocument.body.firstChild ? $tw.pageContainer : this.srcDocument.body.firstChild) : null;
if(windowContainer) {
$tw.utils.toggleClass(windowContainer,&quot;tc-modal-displayed&quot;,this.modalCount &gt; 0);
}
};
exports.Modal = Modal;
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/dom/notifier.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/dom/notifier.js
type: application/javascript
module-type: utils
Notifier mechanism
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var widget = require(&quot;$:/core/modules/widgets/widget.js&quot;);
var Notifier = function(wiki) {
this.wiki = wiki;
};
/*
Display a notification
title: Title of tiddler containing the notification text
options: see below
Options include:
*/
Notifier.prototype.display = function(title,options) {
options = options || {};
// Create the wrapper divs
var self = this,
notification = document.createElement(&quot;div&quot;),
tiddler = this.wiki.getTiddler(title),
duration = $tw.utils.getAnimationDuration(),
refreshHandler;
// Don't do anything if the tiddler doesn't exist
if(!tiddler) {
return;
}
// Add classes
$tw.utils.addClass(notification,&quot;tc-notification&quot;);
// Create the variables
var variables = $tw.utils.extend({currentTiddler: title},options.variables);
// Render the body of the notification
var widgetNode = this.wiki.makeTranscludeWidget(title,{
parentWidget: $tw.rootWidget,
document: document,
variables: variables,
importPageMacros: true});
widgetNode.render(notification,null);
refreshHandler = function(changes) {
widgetNode.refresh(changes,notification,null);
};
this.wiki.addEventListener(&quot;change&quot;,refreshHandler);
// Set the initial styles for the notification
$tw.utils.setStyle(notification,[
{opacity: &quot;0&quot;},
{transformOrigin: &quot;0% 0%&quot;},
{transform: &quot;translateY(&quot; + (-window.innerHeight) + &quot;px)&quot;},
{transition: &quot;opacity &quot; + duration + &quot;ms ease-out, &quot; + $tw.utils.roundTripPropertyName(&quot;transform&quot;) + &quot; &quot; + duration + &quot;ms ease-in-out&quot;}
]);
// Add the notification to the DOM
document.body.appendChild(notification);
// Force layout
$tw.utils.forceLayout(notification);
// Set final animated styles
$tw.utils.setStyle(notification,[
{opacity: &quot;1.0&quot;},
{transform: &quot;translateY(0px)&quot;}
]);
// Set a timer to remove the notification
window.setTimeout(function() {
// Remove our change event handler
self.wiki.removeEventListener(&quot;change&quot;,refreshHandler);
// Force layout and animate the notification away
$tw.utils.forceLayout(notification);
$tw.utils.setStyle(notification,[
{opacity: &quot;0.0&quot;},
{transform: &quot;translateX(&quot; + (notification.offsetWidth) + &quot;px)&quot;}
]);
// Remove the modal message from the DOM once the transition ends
setTimeout(function() {
if(notification.parentNode) {
document.body.removeChild(notification);
}
},duration);
},$tw.config.preferences.notificationDuration);
};
exports.Notifier = Notifier;
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/dom/popup.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/dom/popup.js
type: application/javascript
module-type: utils
Module that creates a $tw.utils.Popup object prototype that manages popups in the browser
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Creates a Popup object with these options:
rootElement: the DOM element to which the popup zapper should be attached
*/
var Popup = function(options) {
options = options || {};
this.rootElement = options.rootElement || document.documentElement;
this.popups = []; // Array of {title:,wiki:,domNode:} objects
};
/*
Trigger a popup open or closed. Parameters are in a hashmap:
title: title of the tiddler where the popup details are stored
domNode: dom node to which the popup will be positioned (one of domNode or domNodeRect is required)
domNodeRect: rectangle to which the popup will be positioned
wiki: wiki
force: if specified, forces the popup state to true or false (instead of toggling it)
floating: if true, skips registering the popup, meaning that it will need manually clearing
*/
Popup.prototype.triggerPopup = function(options) {
// Check if this popup is already active
var index = this.findPopup(options.title);
// Compute the new state
var state = index === -1;
if(options.force !== undefined) {
state = options.force;
}
// Show or cancel the popup according to the new state
if(state) {
this.show(options);
} else {
this.cancel(index);
}
};
Popup.prototype.findPopup = function(title) {
var index = -1;
for(var t=0; t&lt;this.popups.length; t++) {
if(this.popups[t].title === title) {
index = t;
}
}
return index;
};
Popup.prototype.handleEvent = function(event) {
if(event.type === &quot;click&quot;) {
// Find out what was clicked on
var info = this.popupInfo(event.target),
cancelLevel = info.popupLevel - 1;
// Don't remove the level that was clicked on if we clicked on a handle
if(info.isHandle) {
cancelLevel++;
}
// Cancel
this.cancel(cancelLevel);
}
};
/*
Find the popup level containing a DOM node. Returns:
popupLevel: count of the number of nested popups containing the specified element
isHandle: true if the specified element is within a popup handle
*/
Popup.prototype.popupInfo = function(domNode) {
var isHandle = false,
popupCount = 0,
node = domNode;
// First check ancestors to see if we're within a popup handle
while(node) {
if($tw.utils.hasClass(node,&quot;tc-popup-handle&quot;)) {
isHandle = true;
popupCount++;
}
if($tw.utils.hasClass(node,&quot;tc-popup-keep&quot;)) {
isHandle = true;
}
node = node.parentNode;
}
// Then count the number of ancestor popups
node = domNode;
while(node) {
if($tw.utils.hasClass(node,&quot;tc-popup&quot;)) {
popupCount++;
}
node = node.parentNode;
}
var info = {
popupLevel: popupCount,
isHandle: isHandle
};
return info;
};
/*
Display a popup by adding it to the stack
*/
Popup.prototype.show = function(options) {
// Find out what was clicked on
var info = this.popupInfo(options.domNode);
// Cancel any higher level popups
this.cancel(info.popupLevel);
// Store the popup details if not already there
if(!options.floating &amp;&amp; this.findPopup(options.title) === -1) {
this.popups.push({
title: options.title,
wiki: options.wiki,
domNode: options.domNode,
noStateReference: options.noStateReference
});
}
// Set the state tiddler
var rect;
if(options.domNodeRect) {
rect = options.domNodeRect;
} else {
rect = {
left: options.domNode.offsetLeft,
top: options.domNode.offsetTop,
width: options.domNode.offsetWidth,
height: options.domNode.offsetHeight
};
}
var popupRect = &quot;(&quot; + rect.left + &quot;,&quot; + rect.top + &quot;,&quot; +
rect.width + &quot;,&quot; + rect.height + &quot;)&quot;;
if(options.noStateReference) {
options.wiki.setText(options.title,&quot;text&quot;,undefined,popupRect);
} else {
options.wiki.setTextReference(options.title,popupRect);
}
// Add the click handler if we have any popups
if(this.popups.length &gt; 0) {
this.rootElement.addEventListener(&quot;click&quot;,this,true);
}
};
/*
Cancel all popups at or above a specified level or DOM node
level: popup level to cancel (0 cancels all popups)
*/
Popup.prototype.cancel = function(level) {
var numPopups = this.popups.length;
level = Math.max(0,Math.min(level,numPopups));
for(var t=level; t&lt;numPopups; t++) {
var popup = this.popups.pop();
if(popup.title) {
if(popup.noStateReference) {
popup.wiki.deleteTiddler(popup.title);
} else {
popup.wiki.deleteTiddler($tw.utils.parseTextReference(popup.title).title);
}
}
}
if(this.popups.length === 0) {
this.rootElement.removeEventListener(&quot;click&quot;,this,false);
}
};
/*
Returns true if the specified title and text identifies an active popup
*/
Popup.prototype.readPopupState = function(text) {
var popupLocationRegExp = /^\((-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+)\)$/;
return popupLocationRegExp.test(text);
};
exports.Popup = Popup;
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/dom/scroller.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/dom/scroller.js
type: application/javascript
module-type: utils
Module that creates a $tw.utils.Scroller object prototype that manages scrolling in the browser
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Event handler for when the `tm-scroll` event hits the document body
*/
var PageScroller = function() {
this.idRequestFrame = null;
this.requestAnimationFrame = window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
function(callback) {
return window.setTimeout(callback, 1000/60);
};
this.cancelAnimationFrame = window.cancelAnimationFrame ||
window.webkitCancelAnimationFrame ||
window.webkitCancelRequestAnimationFrame ||
window.mozCancelAnimationFrame ||
window.mozCancelRequestAnimationFrame ||
function(id) {
window.clearTimeout(id);
};
};
PageScroller.prototype.isScrolling = function() {
return this.idRequestFrame !== null;
}
PageScroller.prototype.cancelScroll = function(srcWindow) {
if(this.idRequestFrame) {
this.cancelAnimationFrame.call(srcWindow,this.idRequestFrame);
this.idRequestFrame = null;
}
};
/*
Handle an event
*/
PageScroller.prototype.handleEvent = function(event) {
if(event.type === &quot;tm-scroll&quot;) {
return this.scrollIntoView(event.target);
}
return true;
};
/*
Handle a scroll event hitting the page document
*/
PageScroller.prototype.scrollIntoView = function(element,callback) {
var self = this,
duration = $tw.utils.getAnimationDuration(),
srcWindow = element ? element.ownerDocument.defaultView : window;
// Now get ready to scroll the body
this.cancelScroll(srcWindow);
this.startTime = Date.now();
// Get the height of any position:fixed toolbars
var toolbar = srcWindow.document.querySelector(&quot;.tc-adjust-top-of-scroll&quot;),
offset = 0;
if(toolbar) {
offset = toolbar.offsetHeight;
}
// Get the client bounds of the element and adjust by the scroll position
var getBounds = function() {
var clientBounds = typeof callback === 'function' ? callback() : element.getBoundingClientRect(),
scrollPosition = $tw.utils.getScrollPosition(srcWindow);
return {
left: clientBounds.left + scrollPosition.x,
top: clientBounds.top + scrollPosition.y - offset,
width: clientBounds.width,
height: clientBounds.height
};
},
// We'll consider the horizontal and vertical scroll directions separately via this function
// targetPos/targetSize - position and size of the target element
// currentPos/currentSize - position and size of the current scroll viewport
// returns: new position of the scroll viewport
getEndPos = function(targetPos,targetSize,currentPos,currentSize) {
var newPos = targetPos;
// If we are scrolling within 50 pixels of the top/left then snap to zero
if(newPos &lt; 50) {
newPos = 0;
}
return newPos;
},
drawFrame = function drawFrame() {
var t;
if(duration &lt;= 0) {
t = 1;
} else {
t = ((Date.now()) - self.startTime) / duration;
}
if(t &gt;= 1) {
self.cancelScroll(srcWindow);
t = 1;
}
t = $tw.utils.slowInSlowOut(t);
var scrollPosition = $tw.utils.getScrollPosition(srcWindow),
bounds = getBounds(),
endX = getEndPos(bounds.left,bounds.width,scrollPosition.x,srcWindow.innerWidth),
endY = getEndPos(bounds.top,bounds.height,scrollPosition.y,srcWindow.innerHeight);
srcWindow.scrollTo(scrollPosition.x + (endX - scrollPosition.x) * t,scrollPosition.y + (endY - scrollPosition.y) * t);
if(t &lt; 1) {
self.idRequestFrame = self.requestAnimationFrame.call(srcWindow,drawFrame);
}
};
drawFrame();
};
exports.PageScroller = PageScroller;
})();
</pre>
</div>
<div module-type="utils-node" title="$:/core/modules/utils/edition-info.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/edition-info.js
type: application/javascript
module-type: utils-node
Information about the available editions
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;);
var editionInfo;
exports.getEditionInfo = function() {
if(!editionInfo) {
// Enumerate the edition paths
var editionPaths = $tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar);
editionInfo = {};
for(var editionIndex=0; editionIndex&lt;editionPaths.length; editionIndex++) {
var editionPath = editionPaths[editionIndex];
// Enumerate the folders
var entries = fs.readdirSync(editionPath);
for(var entryIndex=0; entryIndex&lt;entries.length; entryIndex++) {
var entry = entries[entryIndex];
// Check if directories have a valid tiddlywiki.info
if(!editionInfo[entry] &amp;&amp; $tw.utils.isDirectory(path.resolve(editionPath,entry))) {
var info;
try {
info = JSON.parse(fs.readFileSync(path.resolve(editionPath,entry,&quot;tiddlywiki.info&quot;),&quot;utf8&quot;));
} catch(ex) {
}
if(info) {
editionInfo[entry] = info;
}
}
}
}
}
return editionInfo;
};
})();
</pre>
</div>
<div module-type="global" title="$:/core/modules/utils/fakedom.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/fakedom.js
type: application/javascript
module-type: global
A barebones implementation of DOM interfaces needed by the rendering mechanism.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Sequence number used to enable us to track objects for testing
var sequenceNumber = null;
var bumpSequenceNumber = function(object) {
if(sequenceNumber !== null) {
object.sequenceNumber = sequenceNumber++;
}
};
var TW_TextNode = function(text) {
bumpSequenceNumber(this);
this.textContent = text + &quot;&quot;;
};
Object.defineProperty(TW_TextNode.prototype, &quot;nodeType&quot;, {
get: function() {
return 3;
}
});
Object.defineProperty(TW_TextNode.prototype, &quot;formattedTextContent&quot;, {
get: function() {
return this.textContent.replace(/(\r?\n)/g,&quot;&quot;);
}
});
var TW_Element = function(tag,namespace) {
bumpSequenceNumber(this);
this.isTiddlyWikiFakeDom = true;
this.tag = tag;
this.attributes = {};
this.isRaw = false;
this.children = [];
this._style = {};
this.namespaceURI = namespace || &quot;http://www.w3.org/1999/xhtml&quot;;
};
Object.defineProperty(TW_Element.prototype, &quot;style&quot;, {
get: function() {
return this._style;
},
set: function(str) {
var self = this;
str = str || &quot;&quot;;
$tw.utils.each(str.split(&quot;;&quot;),function(declaration) {
var parts = declaration.split(&quot;:&quot;),
name = $tw.utils.trim(parts[0]),
value = $tw.utils.trim(parts[1]);
if(name &amp;&amp; value) {
self._style[$tw.utils.convertStyleNameToPropertyName(name)] = value;
}
});
}
});
Object.defineProperty(TW_Element.prototype, &quot;nodeType&quot;, {
get: function() {
return 1;
}
});
TW_Element.prototype.getAttribute = function(name) {
if(this.isRaw) {
throw &quot;Cannot getAttribute on a raw TW_Element&quot;;
}
return this.attributes[name];
};
TW_Element.prototype.setAttribute = function(name,value) {
if(this.isRaw) {
throw &quot;Cannot setAttribute on a raw TW_Element&quot;;
}
this.attributes[name] = value + &quot;&quot;;
};
TW_Element.prototype.setAttributeNS = function(namespace,name,value) {
this.setAttribute(name,value);
};
TW_Element.prototype.removeAttribute = function(name) {
if(this.isRaw) {
throw &quot;Cannot removeAttribute on a raw TW_Element&quot;;
}
if($tw.utils.hop(this.attributes,name)) {
delete this.attributes[name];
}
};
TW_Element.prototype.appendChild = function(node) {
this.children.push(node);
node.parentNode = this;
};
TW_Element.prototype.insertBefore = function(node,nextSibling) {
if(nextSibling) {
var p = this.children.indexOf(nextSibling);
if(p !== -1) {
this.children.splice(p,0,node);
node.parentNode = this;
} else {
this.appendChild(node);
}
} else {
this.appendChild(node);
}
};
TW_Element.prototype.removeChild = function(node) {
var p = this.children.indexOf(node);
if(p !== -1) {
this.children.splice(p,1);
}
};
TW_Element.prototype.hasChildNodes = function() {
return !!this.children.length;
};
Object.defineProperty(TW_Element.prototype, &quot;childNodes&quot;, {
get: function() {
return this.children;
}
});
Object.defineProperty(TW_Element.prototype, &quot;firstChild&quot;, {
get: function() {
return this.children[0];
}
});
TW_Element.prototype.addEventListener = function(type,listener,useCapture) {
// Do nothing
};
Object.defineProperty(TW_Element.prototype, &quot;tagName&quot;, {
get: function() {
return this.tag || &quot;&quot;;
}
});
Object.defineProperty(TW_Element.prototype, &quot;className&quot;, {
get: function() {
return this.attributes[&quot;class&quot;] || &quot;&quot;;
},
set: function(value) {
this.attributes[&quot;class&quot;] = value + &quot;&quot;;
}
});
Object.defineProperty(TW_Element.prototype, &quot;value&quot;, {
get: function() {
return this.attributes.value || &quot;&quot;;
},
set: function(value) {
this.attributes.value = value + &quot;&quot;;
}
});
Object.defineProperty(TW_Element.prototype, &quot;outerHTML&quot;, {
get: function() {
var output = [],attr,a,v;
output.push(&quot;&lt;&quot;,this.tag);
if(this.attributes) {
attr = [];
for(a in this.attributes) {
attr.push(a);
}
attr.sort();
for(a=0; a&lt;attr.length; a++) {
v = this.attributes[attr[a]];
if(v !== undefined) {
output.push(&quot; &quot;,attr[a],&quot;=\&quot;&quot;,$tw.utils.htmlEncode(v),&quot;\&quot;&quot;);
}
}
}
if(this._style) {
var style = [];
for(var s in this._style) {
style.push($tw.utils.convertPropertyNameToStyleName(s) + &quot;:&quot; + this._style[s] + &quot;;&quot;);
}
if(style.length &gt; 0) {
output.push(&quot; style=\&quot;&quot;,style.join(&quot;&quot;),&quot;\&quot;&quot;);
}
}
output.push(&quot;&gt;&quot;);
if($tw.config.htmlVoidElements.indexOf(this.tag) === -1) {
output.push(this.innerHTML);
output.push(&quot;&lt;/&quot;,this.tag,&quot;&gt;&quot;);
}
return output.join(&quot;&quot;);
}
});
Object.defineProperty(TW_Element.prototype, &quot;innerHTML&quot;, {
get: function() {
if(this.isRaw) {
return this.rawHTML;
} else {
var b = [];
$tw.utils.each(this.children,function(node) {
if(node instanceof TW_Element) {
b.push(node.outerHTML);
} else if(node instanceof TW_TextNode) {
b.push($tw.utils.htmlEncode(node.textContent));
}
});
return b.join(&quot;&quot;);
}
},
set: function(value) {
this.isRaw = true;
this.rawHTML = value;
this.rawTextContent = null;
}
});
Object.defineProperty(TW_Element.prototype, &quot;textInnerHTML&quot;, {
set: function(value) {
if(this.isRaw) {
this.rawTextContent = value;
} else {
throw &quot;Cannot set textInnerHTML of a non-raw TW_Element&quot;;
}
}
});
Object.defineProperty(TW_Element.prototype, &quot;textContent&quot;, {
get: function() {
if(this.isRaw) {
if(this.rawTextContent === null) {
return &quot;&quot;;
} else {
return this.rawTextContent;
}
} else {
var b = [];
$tw.utils.each(this.children,function(node) {
b.push(node.textContent);
});
return b.join(&quot;&quot;);
}
},
set: function(value) {
this.children = [new TW_TextNode(value)];
}
});
Object.defineProperty(TW_Element.prototype, &quot;formattedTextContent&quot;, {
get: function() {
if(this.isRaw) {
return &quot;&quot;;
} else {
var b = [],
isBlock = $tw.config.htmlBlockElements.indexOf(this.tag) !== -1;
if(isBlock) {
b.push(&quot;\n&quot;);
}
if(this.tag === &quot;li&quot;) {
b.push(&quot;* &quot;);
}
$tw.utils.each(this.children,function(node) {
b.push(node.formattedTextContent);
});
if(isBlock) {
b.push(&quot;\n&quot;);
}
return b.join(&quot;&quot;);
}
}
});
var document = {
setSequenceNumber: function(value) {
sequenceNumber = value;
},
createElementNS: function(namespace,tag) {
return new TW_Element(tag,namespace);
},
createElement: function(tag) {
return new TW_Element(tag);
},
createTextNode: function(text) {
return new TW_TextNode(text);
},
compatMode: &quot;CSS1Compat&quot;, // For KaTeX to know that we're not a browser in quirks mode
isTiddlyWikiFakeDom: true
};
exports.fakeDocument = document;
})();
</pre>
</div>
<div module-type="utils-node" title="$:/core/modules/utils/filesystem.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/filesystem.js
type: application/javascript
module-type: utils-node
File system utilities
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var fs = require(&quot;fs&quot;),
path = require(&quot;path&quot;);
/*
Recursively (and synchronously) copy a directory and all its content
*/
exports.copyDirectory = function(srcPath,dstPath) {
// Remove any trailing path separators
srcPath = $tw.utils.removeTrailingSeparator(srcPath);
dstPath = $tw.utils.removeTrailingSeparator(dstPath);
// Create the destination directory
var err = $tw.utils.createDirectory(dstPath);
if(err) {
return err;
}
// Function to copy a folder full of files
var copy = function(srcPath,dstPath) {
var srcStats = fs.lstatSync(srcPath),
dstExists = fs.existsSync(dstPath);
if(srcStats.isFile()) {
$tw.utils.copyFile(srcPath,dstPath);
} else if(srcStats.isDirectory()) {
var items = fs.readdirSync(srcPath);
for(var t=0; t&lt;items.length; t++) {
var item = items[t],
err = copy(srcPath + path.sep + item,dstPath + path.sep + item);
if(err) {
return err;
}
}
}
};
copy(srcPath,dstPath);
return null;
};
/*
Copy a file
*/
var FILE_BUFFER_LENGTH = 64 * 1024,
fileBuffer;
exports.copyFile = function(srcPath,dstPath) {
// Create buffer if required
if(!fileBuffer) {
fileBuffer = Buffer.alloc(FILE_BUFFER_LENGTH);
}
// Create any directories in the destination
$tw.utils.createDirectory(path.dirname(dstPath));
// Copy the file
var srcFile = fs.openSync(srcPath,&quot;r&quot;),
dstFile = fs.openSync(dstPath,&quot;w&quot;),
bytesRead = 1,
pos = 0;
while (bytesRead &gt; 0) {
bytesRead = fs.readSync(srcFile,fileBuffer,0,FILE_BUFFER_LENGTH,pos);
fs.writeSync(dstFile,fileBuffer,0,bytesRead);
pos += bytesRead;
}
fs.closeSync(srcFile);
fs.closeSync(dstFile);
return null;
};
/*
Remove trailing path separator
*/
exports.removeTrailingSeparator = function(dirPath) {
var len = dirPath.length;
if(dirPath.charAt(len-1) === path.sep) {
dirPath = dirPath.substr(0,len-1);
}
return dirPath;
};
/*
Recursively create a directory
*/
exports.createDirectory = function(dirPath) {
if(dirPath.substr(dirPath.length-1,1) !== path.sep) {
dirPath = dirPath + path.sep;
}
var pos = 1;
pos = dirPath.indexOf(path.sep,pos);
while(pos !== -1) {
var subDirPath = dirPath.substr(0,pos);
if(!$tw.utils.isDirectory(subDirPath)) {
try {
fs.mkdirSync(subDirPath);
} catch(e) {
return &quot;Error creating directory '&quot; + subDirPath + &quot;'&quot;;
}
}
pos = dirPath.indexOf(path.sep,pos + 1);
}
return null;
};
/*
Recursively create directories needed to contain a specified file
*/
exports.createFileDirectories = function(filePath) {
return $tw.utils.createDirectory(path.dirname(filePath));
};
/*
Recursively delete a directory
*/
exports.deleteDirectory = function(dirPath) {
if(fs.existsSync(dirPath)) {
var entries = fs.readdirSync(dirPath);
for(var entryIndex=0; entryIndex&lt;entries.length; entryIndex++) {
var currPath = dirPath + path.sep + entries[entryIndex];
if(fs.lstatSync(currPath).isDirectory()) {
$tw.utils.deleteDirectory(currPath);
} else {
fs.unlinkSync(currPath);
}
}
fs.rmdirSync(dirPath);
}
return null;
};
/*
Check if a path identifies a directory
*/
exports.isDirectory = function(dirPath) {
return fs.existsSync(dirPath) &amp;&amp; fs.statSync(dirPath).isDirectory();
};
/*
Check if a path identifies a directory that is empty
*/
exports.isDirectoryEmpty = function(dirPath) {
if(!$tw.utils.isDirectory(dirPath)) {
return false;
}
var files = fs.readdirSync(dirPath),
empty = true;
$tw.utils.each(files,function(file,index) {
if(file.charAt(0) !== &quot;.&quot;) {
empty = false;
}
});
return empty;
};
/*
Recursively delete a tree of empty directories
*/
exports.deleteEmptyDirs = function(dirpath,callback) {
var self = this;
fs.readdir(dirpath,function(err,files) {
if(err) {
return callback(err);
}
if(files.length &gt; 0) {
return callback(null);
}
fs.rmdir(dirpath,function(err) {
if(err) {
return callback(err);
}
self.deleteEmptyDirs(path.dirname(dirpath),callback);
});
});
};
/*
Create a fileInfo object for saving a tiddler:
filepath: the absolute path to the file containing the tiddler
type: the type of the tiddler file (NOT the type of the tiddler)
hasMetaFile: true if the file also has a companion .meta file
Options include:
directory: absolute path of root directory to which we are saving
pathFilters: optional array of filters to be used to generate the base path
wiki: optional wiki for evaluating the pathFilters
*/
exports.generateTiddlerFileInfo = function(tiddler,options) {
var fileInfo = {};
// Check if the tiddler has any unsafe fields that can't be expressed in a .tid or .meta file: containing control characters, or leading/trailing whitespace
var hasUnsafeFields = false;
$tw.utils.each(tiddler.getFieldStrings(),function(value,fieldName) {
if(fieldName !== &quot;text&quot;) {
hasUnsafeFields = hasUnsafeFields || /[\x00-\x1F]/mg.test(value);
hasUnsafeFields = hasUnsafeFields || ($tw.utils.trim(value) !== value);
}
});
// Check for field values
if(hasUnsafeFields) {
// Save as a JSON file
fileInfo.type = &quot;application/json&quot;;
fileInfo.hasMetaFile = false;
} else {
// Save as a .tid or a text/binary file plus a .meta file
var tiddlerType = tiddler.fields.type || &quot;text/vnd.tiddlywiki&quot;;
if(tiddlerType === &quot;text/vnd.tiddlywiki&quot;) {
// Save as a .tid file
fileInfo.type = &quot;application/x-tiddler&quot;;
fileInfo.hasMetaFile = false;
} else {
// Save as a text/binary file and a .meta file
fileInfo.type = tiddlerType;
fileInfo.hasMetaFile = true;
}
}
// Take the file extension from the tiddler content type
var contentTypeInfo = $tw.config.contentTypeInfo[fileInfo.type] || {extension: &quot;&quot;};
// Generate the filepath
fileInfo.filepath = $tw.utils.generateTiddlerFilepath(tiddler.fields.title,{
extension: contentTypeInfo.extension,
directory: options.directory,
pathFilters: options.pathFilters,
wiki: options.wiki
});
return fileInfo;
};
/*
Generate the filepath for saving a tiddler
Options include:
extension: file extension to be added the finished filepath
directory: absolute path of root directory to which we are saving
pathFilters: optional array of filters to be used to generate the base path
wiki: optional wiki for evaluating the pathFilters
*/
exports.generateTiddlerFilepath = function(title,options) {
var self = this,
directory = options.directory || &quot;&quot;,
extension = options.extension || &quot;&quot;,
filepath;
// Check if any of the pathFilters applies
if(options.pathFilters &amp;&amp; options.wiki) {
$tw.utils.each(options.pathFilters,function(filter) {
if(!filepath) {
var source = options.wiki.makeTiddlerIterator([title]),
result = options.wiki.filterTiddlers(filter,null,source);
if(result.length &gt; 0) {
filepath = result[0];
}
}
});
}
// If not, generate a base pathname
if(!filepath) {
filepath = title;
// If the filepath already ends in the extension then remove it
if(filepath.substring(filepath.length - extension.length) === extension) {
filepath = filepath.substring(0,filepath.length - extension.length);
}
// Remove any forward or backward slashes so we don't create directories
filepath = filepath.replace(/\/|\\/g,&quot;_&quot;);
}
// Don't let the filename start with a dot because such files are invisible on *nix
filepath = filepath.replace(/^\./g,&quot;_&quot;);
// Remove any characters that can't be used in cross-platform filenames
filepath = $tw.utils.transliterate(filepath.replace(/&lt;|&gt;|\:|\&quot;|\||\?|\*|\^/g,&quot;_&quot;));
// Truncate the filename if it is too long
if(filepath.length &gt; 200) {
filepath = filepath.substr(0,200);
}
// If the resulting filename is blank (eg because the title is just punctuation characters)
if(!filepath) {
// ...then just use the character codes of the title
filepath = &quot;&quot;;
$tw.utils.each(title.split(&quot;&quot;),function(char) {
if(filepath) {
filepath += &quot;-&quot;;
}
filepath += char.charCodeAt(0).toString();
});
}
// Add a uniquifier if the file already exists
var fullPath,
count = 0;
do {
fullPath = path.resolve(directory,filepath + (count ? &quot;_&quot; + count : &quot;&quot;) + extension);
count++;
} while(fs.existsSync(fullPath));
// Return the full path to the file
return fullPath;
};
/*
Save a tiddler to a file described by the fileInfo:
filepath: the absolute path to the file containing the tiddler
type: the type of the tiddler file (NOT the type of the tiddler)
hasMetaFile: true if the file also has a companion .meta file
*/
exports.saveTiddlerToFile = function(tiddler,fileInfo,callback) {
$tw.utils.createDirectory(path.dirname(fileInfo.filepath));
if(fileInfo.hasMetaFile) {
// Save the tiddler as a separate body and meta file
var typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || &quot;text/plain&quot;] || {encoding: &quot;utf8&quot;};
fs.writeFile(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding,function(err) {
if(err) {
return callback(err);
}
fs.writeFile(fileInfo.filepath + &quot;.meta&quot;,tiddler.getFieldStringBlock({exclude: [&quot;text&quot;,&quot;bag&quot;]}),&quot;utf8&quot;,callback);
});
} else {
// Save the tiddler as a self contained templated file
if(fileInfo.type === &quot;application/x-tiddler&quot;) {
fs.writeFile(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: [&quot;text&quot;,&quot;bag&quot;]}) + (!!tiddler.fields.text ? &quot;\n\n&quot; + tiddler.fields.text : &quot;&quot;),&quot;utf8&quot;,callback);
} else {
fs.writeFile(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: [&quot;bag&quot;]})],null,$tw.config.preferences.jsonSpaces),&quot;utf8&quot;,callback);
}
}
};
/*
Save a tiddler to a file described by the fileInfo:
filepath: the absolute path to the file containing the tiddler
type: the type of the tiddler file (NOT the type of the tiddler)
hasMetaFile: true if the file also has a companion .meta file
*/
exports.saveTiddlerToFileSync = function(tiddler,fileInfo) {
$tw.utils.createDirectory(path.dirname(fileInfo.filepath));
if(fileInfo.hasMetaFile) {
// Save the tiddler as a separate body and meta file
var typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || &quot;text/plain&quot;] || {encoding: &quot;utf8&quot;};
fs.writeFileSync(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding);
fs.writeFileSync(fileInfo.filepath + &quot;.meta&quot;,tiddler.getFieldStringBlock({exclude: [&quot;text&quot;,&quot;bag&quot;]}),&quot;utf8&quot;);
} else {
// Save the tiddler as a self contained templated file
if(fileInfo.type === &quot;application/x-tiddler&quot;) {
fs.writeFileSync(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: [&quot;text&quot;,&quot;bag&quot;]}) + (!!tiddler.fields.text ? &quot;\n\n&quot; + tiddler.fields.text : &quot;&quot;),&quot;utf8&quot;);
} else {
fs.writeFileSync(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: [&quot;bag&quot;]})],null,$tw.config.preferences.jsonSpaces),&quot;utf8&quot;);
}
}
};
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/logger.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/logger.js
type: application/javascript
module-type: utils
A basic logging implementation
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var ALERT_TAG = &quot;$:/tags/Alert&quot;;
/*
Make a new logger
*/
function Logger(componentName,options) {
options = options || {};
this.componentName = componentName || &quot;&quot;;
this.colour = options.colour || &quot;white&quot;;
this.enable = &quot;enable&quot; in options ? options.enable : true;
this.save = &quot;save&quot; in options ? options.save : true;
this.saveLimit = options.saveLimit || 100 * 1024;
this.saveBufferLogger = this;
this.buffer = &quot;&quot;;
this.alertCount = 0;
}
Logger.prototype.setSaveBuffer = function(logger) {
this.saveBufferLogger = logger;
};
/*
Log a message
*/
Logger.prototype.log = function(/* args */) {
var self = this;
if(this.enable) {
if(this.saveBufferLogger.save) {
this.saveBufferLogger.buffer += $tw.utils.formatDateString(new Date(),&quot;YYYY MM DD 0hh:0mm:0ss.0XXX&quot;) + &quot;:&quot;;
$tw.utils.each(Array.prototype.slice.call(arguments,0),function(arg,index) {
self.saveBufferLogger.buffer += &quot; &quot; + arg;
});
this.saveBufferLogger.buffer += &quot;\n&quot;;
this.saveBufferLogger.buffer = this.saveBufferLogger.buffer.slice(-this.saveBufferLogger.saveLimit);
}
if(console !== undefined &amp;&amp; console.log !== undefined) {
return Function.apply.call(console.log, console, [$tw.utils.terminalColour(this.colour),this.componentName + &quot;:&quot;].concat(Array.prototype.slice.call(arguments,0)).concat($tw.utils.terminalColour()));
}
}
};
/*
Read the message buffer
*/
Logger.prototype.getBuffer = function() {
return this.saveBufferLogger.buffer;
};
/*
Log a structure as a table
*/
Logger.prototype.table = function(value) {
(console.table || console.log)(value);
};
/*
Alert a message
*/
Logger.prototype.alert = function(/* args */) {
if(this.enable) {
// Prepare the text of the alert
var text = Array.prototype.join.call(arguments,&quot; &quot;);
// Create alert tiddlers in the browser
if($tw.browser) {
// Check if there is an existing alert with the same text and the same component
var existingAlerts = $tw.wiki.getTiddlersWithTag(ALERT_TAG),
alertFields,
existingCount,
self = this;
$tw.utils.each(existingAlerts,function(title) {
var tiddler = $tw.wiki.getTiddler(title);
if(tiddler.fields.text === text &amp;&amp; tiddler.fields.component === self.componentName &amp;&amp; tiddler.fields.modified &amp;&amp; (!alertFields || tiddler.fields.modified &lt; alertFields.modified)) {
alertFields = $tw.utils.extend({},tiddler.fields);
}
});
if(alertFields) {
existingCount = alertFields.count || 1;
} else {
alertFields = {
title: $tw.wiki.generateNewTitle(&quot;$:/temp/alerts/alert&quot;,{prefix: &quot;&quot;}),
text: text,
tags: [ALERT_TAG],
component: this.componentName
};
existingCount = 0;
this.alertCount += 1;
}
alertFields.modified = new Date();
if(++existingCount &gt; 1) {
alertFields.count = existingCount;
} else {
alertFields.count = undefined;
}
$tw.wiki.addTiddler(new $tw.Tiddler(alertFields));
// Log the alert as well
this.log.apply(this,Array.prototype.slice.call(arguments,0));
} else {
// Print an orange message to the console if not in the browser
console.error(&quot;\x1b[1;33m&quot; + text + &quot;\x1b[0m&quot;);
}
}
};
/*
Clear outstanding alerts
*/
Logger.prototype.clearAlerts = function() {
var self = this;
if($tw.browser &amp;&amp; this.alertCount &gt; 0) {
$tw.utils.each($tw.wiki.getTiddlersWithTag(ALERT_TAG),function(title) {
var tiddler = $tw.wiki.getTiddler(title);
if(tiddler.fields.component === self.componentName) {
$tw.wiki.deleteTiddler(title);
}
});
this.alertCount = 0;
}
};
exports.Logger = Logger;
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/parsetree.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/parsetree.js
type: application/javascript
module-type: utils
Parse tree utility functions.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
exports.addAttributeToParseTreeNode = function(node,name,value) {
node.attributes = node.attributes || {};
node.attributes[name] = {type: &quot;string&quot;, value: value};
};
exports.getAttributeValueFromParseTreeNode = function(node,name,defaultValue) {
if(node.attributes &amp;&amp; node.attributes[name] &amp;&amp; node.attributes[name].value !== undefined) {
return node.attributes[name].value;
}
return defaultValue;
};
exports.addClassToParseTreeNode = function(node,classString) {
var classes = [];
node.attributes = node.attributes || {};
node.attributes[&quot;class&quot;] = node.attributes[&quot;class&quot;] || {type: &quot;string&quot;, value: &quot;&quot;};
if(node.attributes[&quot;class&quot;].type === &quot;string&quot;) {
if(node.attributes[&quot;class&quot;].value !== &quot;&quot;) {
classes = node.attributes[&quot;class&quot;].value.split(&quot; &quot;);
}
if(classString !== &quot;&quot;) {
$tw.utils.pushTop(classes,classString.split(&quot; &quot;));
}
node.attributes[&quot;class&quot;].value = classes.join(&quot; &quot;);
}
};
exports.addStyleToParseTreeNode = function(node,name,value) {
node.attributes = node.attributes || {};
node.attributes.style = node.attributes.style || {type: &quot;string&quot;, value: &quot;&quot;};
if(node.attributes.style.type === &quot;string&quot;) {
node.attributes.style.value += name + &quot;:&quot; + value + &quot;;&quot;;
}
};
exports.findParseTreeNode = function(nodeArray,search) {
for(var t=0; t&lt;nodeArray.length; t++) {
if(nodeArray[t].type === search.type &amp;&amp; nodeArray[t].tag === search.tag) {
return nodeArray[t];
}
}
return undefined;
};
/*
Helper to get the text of a parse tree node or array of nodes
*/
exports.getParseTreeText = function getParseTreeText(tree) {
var output = [];
if($tw.utils.isArray(tree)) {
$tw.utils.each(tree,function(node) {
output.push(getParseTreeText(node));
});
} else {
if(tree.type === &quot;text&quot;) {
output.push(tree.text);
}
if(tree.children) {
return getParseTreeText(tree.children);
}
}
return output.join(&quot;&quot;);
};
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/parseutils.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/parseutils.js
type: application/javascript
module-type: utils
Utility functions concerned with parsing text into tokens.
Most functions have the following pattern:
* The parameters are:
** `source`: the source string being parsed
** `pos`: the current parse position within the string
** Any further parameters are used to identify the token that is being parsed
* The return value is:
** null if the token was not found at the specified position
** an object representing the token with the following standard fields:
*** `type`: string indicating the type of the token
*** `start`: start position of the token in the source string
*** `end`: end position of the token in the source string
*** Any further fields required to describe the token
The exception is `skipWhiteSpace`, which just returns the position after the whitespace.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Look for a whitespace token. Returns null if not found, otherwise returns {type: &quot;whitespace&quot;, start:, end:,}
*/
exports.parseWhiteSpace = function(source,pos) {
var p = pos,c;
while(true) {
c = source.charAt(p);
if((c === &quot; &quot;) || (c === &quot;\f&quot;) || (c === &quot;\n&quot;) || (c === &quot;\r&quot;) || (c === &quot;\t&quot;) || (c === &quot;\v&quot;) || (c === &quot;\u00a0&quot;)) { // Ignores some obscure unicode spaces
p++;
} else {
break;
}
}
if(p === pos) {
return null;
} else {
return {
type: &quot;whitespace&quot;,
start: pos,
end: p
}
}
};
/*
Convenience wrapper for parseWhiteSpace. Returns the position after the whitespace
*/
exports.skipWhiteSpace = function(source,pos) {
var c;
while(true) {
c = source.charAt(pos);
if((c === &quot; &quot;) || (c === &quot;\f&quot;) || (c === &quot;\n&quot;) || (c === &quot;\r&quot;) || (c === &quot;\t&quot;) || (c === &quot;\v&quot;) || (c === &quot;\u00a0&quot;)) { // Ignores some obscure unicode spaces
pos++;
} else {
return pos;
}
}
};
/*
Look for a given string token. Returns null if not found, otherwise returns {type: &quot;token&quot;, value:, start:, end:,}
*/
exports.parseTokenString = function(source,pos,token) {
var match = source.indexOf(token,pos) === pos;
if(match) {
return {
type: &quot;token&quot;,
value: token,
start: pos,
end: pos + token.length
};
}
return null;
};
/*
Look for a token matching a regex. Returns null if not found, otherwise returns {type: &quot;regexp&quot;, match:, start:, end:,}
*/
exports.parseTokenRegExp = function(source,pos,reToken) {
var node = {
type: &quot;regexp&quot;,
start: pos
};
reToken.lastIndex = pos;
node.match = reToken.exec(source);
if(node.match &amp;&amp; node.match.index === pos) {
node.end = pos + node.match[0].length;
return node;
} else {
return null;
}
};
/*
Look for a string literal. Returns null if not found, otherwise returns {type: &quot;string&quot;, value:, start:, end:,}
*/
exports.parseStringLiteral = function(source,pos) {
var node = {
type: &quot;string&quot;,
start: pos
};
var reString = /(?:&quot;&quot;&quot;([\s\S]*?)&quot;&quot;&quot;|&quot;([^&quot;]*)&quot;)|(?:'([^']*)')/g;
reString.lastIndex = pos;
var match = reString.exec(source);
if(match &amp;&amp; match.index === pos) {
node.value = match[1] !== undefined ? match[1] :(
match[2] !== undefined ? match[2] : match[3]
);
node.end = pos + match[0].length;
return node;
} else {
return null;
}
};
/*
Look for a macro invocation parameter. Returns null if not found, or {type: &quot;macro-parameter&quot;, name:, value:, start:, end:}
*/
exports.parseMacroParameter = function(source,pos) {
var node = {
type: &quot;macro-parameter&quot;,
start: pos
};
// Define our regexp
var reMacroParameter = /(?:([A-Za-z0-9\-_]+)\s*:)?(?:\s*(?:&quot;&quot;&quot;([\s\S]*?)&quot;&quot;&quot;|&quot;([^&quot;]*)&quot;|'([^']*)'|\[\[([^\]]*)\]\]|([^\s&gt;&quot;'=]+)))/g;
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Look for the parameter
var token = $tw.utils.parseTokenRegExp(source,pos,reMacroParameter);
if(!token) {
return null;
}
pos = token.end;
// Get the parameter details
node.value = token.match[2] !== undefined ? token.match[2] : (
token.match[3] !== undefined ? token.match[3] : (
token.match[4] !== undefined ? token.match[4] : (
token.match[5] !== undefined ? token.match[5] : (
token.match[6] !== undefined ? token.match[6] : (
&quot;&quot;
)
)
)
)
);
if(token.match[1]) {
node.name = token.match[1];
}
// Update the end position
node.end = pos;
return node;
};
/*
Look for a macro invocation. Returns null if not found, or {type: &quot;macrocall&quot;, name:, parameters:, start:, end:}
*/
exports.parseMacroInvocation = function(source,pos) {
var node = {
type: &quot;macrocall&quot;,
start: pos,
params: []
};
// Define our regexps
var reMacroName = /([^\s&gt;&quot;'=]+)/g;
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Look for a double less than sign
var token = $tw.utils.parseTokenString(source,pos,&quot;&lt;&lt;&quot;);
if(!token) {
return null;
}
pos = token.end;
// Get the macro name
var name = $tw.utils.parseTokenRegExp(source,pos,reMacroName);
if(!name) {
return null;
}
node.name = name.match[1];
pos = name.end;
// Process parameters
var parameter = $tw.utils.parseMacroParameter(source,pos);
while(parameter) {
node.params.push(parameter);
pos = parameter.end;
// Get the next parameter
parameter = $tw.utils.parseMacroParameter(source,pos);
}
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Look for a double greater than sign
token = $tw.utils.parseTokenString(source,pos,&quot;&gt;&gt;&quot;);
if(!token) {
return null;
}
pos = token.end;
// Update the end position
node.end = pos;
return node;
};
/*
Look for an HTML attribute definition. Returns null if not found, otherwise returns {type: &quot;attribute&quot;, name:, valueType: &quot;string|indirect|macro&quot;, value:, start:, end:,}
*/
exports.parseAttribute = function(source,pos) {
var node = {
start: pos
};
// Define our regexps
var reAttributeName = /([^\/\s&gt;&quot;'=]+)/g,
reUnquotedAttribute = /([^\/\s&lt;&gt;&quot;'=]+)/g,
reFilteredValue = /\{\{\{(.+?)\}\}\}/g,
reIndirectValue = /\{\{([^\}]+)\}\}/g;
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Get the attribute name
var name = $tw.utils.parseTokenRegExp(source,pos,reAttributeName);
if(!name) {
return null;
}
node.name = name.match[1];
pos = name.end;
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Look for an equals sign
var token = $tw.utils.parseTokenString(source,pos,&quot;=&quot;);
if(token) {
pos = token.end;
// Skip whitespace
pos = $tw.utils.skipWhiteSpace(source,pos);
// Look for a string literal
var stringLiteral = $tw.utils.parseStringLiteral(source,pos);
if(stringLiteral) {
pos = stringLiteral.end;
node.type = &quot;string&quot;;
node.value = stringLiteral.value;
} else {
// Look for a filtered value
var filteredValue = $tw.utils.parseTokenRegExp(source,pos,reFilteredValue);
if(filteredValue) {
pos = filteredValue.end;
node.type = &quot;filtered&quot;;
node.filter = filteredValue.match[1];
} else {
// Look for an indirect value
var indirectValue = $tw.utils.parseTokenRegExp(source,pos,reIndirectValue);
if(indirectValue) {
pos = indirectValue.end;
node.type = &quot;indirect&quot;;
node.textReference = indirectValue.match[1];
} else {
// Look for a unquoted value
var unquotedValue = $tw.utils.parseTokenRegExp(source,pos,reUnquotedAttribute);
if(unquotedValue) {
pos = unquotedValue.end;
node.type = &quot;string&quot;;
node.value = unquotedValue.match[1];
} else {
// Look for a macro invocation value
var macroInvocation = $tw.utils.parseMacroInvocation(source,pos);
if(macroInvocation) {
pos = macroInvocation.end;
node.type = &quot;macro&quot;;
node.value = macroInvocation;
} else {
node.type = &quot;string&quot;;
node.value = &quot;true&quot;;
}
}
}
}
}
} else {
node.type = &quot;string&quot;;
node.value = &quot;true&quot;;
}
// Update the end position
node.end = pos;
return node;
};
})();
</pre>
</div>
<div module-type="global" title="$:/core/modules/utils/performance.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/performance.js
type: application/javascript
module-type: global
Performance measurement.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
function Performance(enabled) {
this.enabled = !!enabled;
this.measures = {}; // Hashmap by measurement name of {time:, invocations:}
this.logger = new $tw.utils.Logger(&quot;performance&quot;);
this.showGreeting();
}
Performance.prototype.showGreeting = function() {
if($tw.browser) {
this.logger.log(&quot;Execute $tw.perf.log(); to see filter execution timings&quot;);
}
};
/*
Wrap performance reporting around a top level function
*/
Performance.prototype.report = function(name,fn) {
var self = this;
if(this.enabled) {
return function() {
var startTime = $tw.utils.timer(),
result = fn.apply(this,arguments);
self.logger.log(name + &quot;: &quot; + $tw.utils.timer(startTime).toFixed(2) + &quot;ms&quot;);
return result;
};
} else {
return fn;
}
};
Performance.prototype.log = function() {
var self = this,
totalTime = 0,
orderedMeasures = Object.keys(this.measures).sort(function(a,b) {
if(self.measures[a].time &gt; self.measures[b].time) {
return -1;
} else if (self.measures[a].time &lt; self.measures[b].time) {
return + 1;
} else {
return 0;
}
});
$tw.utils.each(orderedMeasures,function(name) {
totalTime += self.measures[name].time;
});
var results = []
$tw.utils.each(orderedMeasures,function(name) {
var measure = self.measures[name];
results.push({name: name,invocations: measure.invocations, avgTime: measure.time / measure.invocations, totalTime: measure.time, percentTime: (measure.time / totalTime) * 100})
});
self.logger.table(results);
};
/*
Wrap performance measurements around a subfunction
*/
Performance.prototype.measure = function(name,fn) {
var self = this;
if(this.enabled) {
return function() {
var startTime = $tw.utils.timer(),
result = fn.apply(this,arguments);
if(!(name in self.measures)) {
self.measures[name] = {time: 0, invocations: 0};
}
self.measures[name].time += $tw.utils.timer(startTime);
self.measures[name].invocations++;
return result;
};
} else {
return fn;
}
};
exports.Performance = Performance;
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/pluginmaker.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/pluginmaker.js
type: application/javascript
module-type: utils
A quick and dirty way to pack up plugins within the browser.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Repack a plugin, and then delete any non-shadow payload tiddlers
*/
exports.repackPlugin = function(title,additionalTiddlers,excludeTiddlers) {
additionalTiddlers = additionalTiddlers || [];
excludeTiddlers = excludeTiddlers || [];
// Get the plugin tiddler
var pluginTiddler = $tw.wiki.getTiddler(title);
if(!pluginTiddler) {
throw &quot;No such tiddler as &quot; + title;
}
// Extract the JSON
var jsonPluginTiddler;
try {
jsonPluginTiddler = JSON.parse(pluginTiddler.fields.text);
} catch(e) {
throw &quot;Cannot parse plugin tiddler &quot; + title + &quot;\n&quot; + $tw.language.getString(&quot;Error/Caption&quot;) + &quot;: &quot; + e;
}
// Get the list of tiddlers
var tiddlers = Object.keys(jsonPluginTiddler.tiddlers);
// Add the additional tiddlers
$tw.utils.pushTop(tiddlers,additionalTiddlers);
// Remove any excluded tiddlers
for(var t=tiddlers.length-1; t&gt;=0; t--) {
if(excludeTiddlers.indexOf(tiddlers[t]) !== -1) {
tiddlers.splice(t,1);
}
}
// Pack up the tiddlers into a block of JSON
var plugins = {};
$tw.utils.each(tiddlers,function(title) {
var tiddler = $tw.wiki.getTiddler(title),
fields = {};
$tw.utils.each(tiddler.fields,function (value,name) {
fields[name] = tiddler.getFieldString(name);
});
plugins[title] = fields;
});
// Retrieve and bump the version number
var pluginVersion = $tw.utils.parseVersion(pluginTiddler.getFieldString(&quot;version&quot;) || &quot;0.0.0&quot;) || {
major: &quot;0&quot;,
minor: &quot;0&quot;,
patch: &quot;0&quot;
};
pluginVersion.patch++;
var version = pluginVersion.major + &quot;.&quot; + pluginVersion.minor + &quot;.&quot; + pluginVersion.patch;
if(pluginVersion.prerelease) {
version += &quot;-&quot; + pluginVersion.prerelease;
}
if(pluginVersion.build) {
version += &quot;+&quot; + pluginVersion.build;
}
// Save the tiddler
$tw.wiki.addTiddler(new $tw.Tiddler(pluginTiddler,{text: JSON.stringify({tiddlers: plugins},null,4), version: version}));
// Delete any non-shadow constituent tiddlers
$tw.utils.each(tiddlers,function(title) {
if($tw.wiki.tiddlerExists(title)) {
$tw.wiki.deleteTiddler(title);
}
});
// Trigger an autosave
$tw.rootWidget.dispatchEvent({type: &quot;tm-auto-save-wiki&quot;});
// Return a heartwarming confirmation
return &quot;Plugin &quot; + title + &quot; successfully saved&quot;;
};
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/transliterate.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/transliterate.js
type: application/javascript
module-type: utils
Transliteration static utility functions.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Transliterate string to ASCII
(Some pairs taken from http://semplicewebsites.com/removing-accents-javascript)
*/
exports.transliterationPairs = {
&quot;Á&quot;:&quot;A&quot;,
&quot;Ă&quot;:&quot;A&quot;,
&quot;Ắ&quot;:&quot;A&quot;,
&quot;Ặ&quot;:&quot;A&quot;,
&quot;Ằ&quot;:&quot;A&quot;,
&quot;Ẳ&quot;:&quot;A&quot;,
&quot;Ẵ&quot;:&quot;A&quot;,
&quot;Ǎ&quot;:&quot;A&quot;,
&quot;Â&quot;:&quot;A&quot;,
&quot;Ấ&quot;:&quot;A&quot;,
&quot;Ậ&quot;:&quot;A&quot;,
&quot;Ầ&quot;:&quot;A&quot;,
&quot;Ẩ&quot;:&quot;A&quot;,
&quot;Ẫ&quot;:&quot;A&quot;,
&quot;Ä&quot;:&quot;A&quot;,
&quot;Ǟ&quot;:&quot;A&quot;,
&quot;Ȧ&quot;:&quot;A&quot;,
&quot;Ǡ&quot;:&quot;A&quot;,
&quot;Ạ&quot;:&quot;A&quot;,
&quot;Ȁ&quot;:&quot;A&quot;,
&quot;À&quot;:&quot;A&quot;,
&quot;Ả&quot;:&quot;A&quot;,
&quot;Ȃ&quot;:&quot;A&quot;,
&quot;Ā&quot;:&quot;A&quot;,
&quot;Ą&quot;:&quot;A&quot;,
&quot;Å&quot;:&quot;A&quot;,
&quot;Ǻ&quot;:&quot;A&quot;,
&quot;Ḁ&quot;:&quot;A&quot;,
&quot;Ⱥ&quot;:&quot;A&quot;,
&quot;Ã&quot;:&quot;A&quot;,
&quot;Ꜳ&quot;:&quot;AA&quot;,
&quot;Æ&quot;:&quot;AE&quot;,
&quot;Ǽ&quot;:&quot;AE&quot;,
&quot;Ǣ&quot;:&quot;AE&quot;,
&quot;Ꜵ&quot;:&quot;AO&quot;,
&quot;Ꜷ&quot;:&quot;AU&quot;,
&quot;Ꜹ&quot;:&quot;AV&quot;,
&quot;Ꜻ&quot;:&quot;AV&quot;,
&quot;Ꜽ&quot;:&quot;AY&quot;,
&quot;Ḃ&quot;:&quot;B&quot;,
&quot;Ḅ&quot;:&quot;B&quot;,
&quot;Ɓ&quot;:&quot;B&quot;,
&quot;Ḇ&quot;:&quot;B&quot;,
&quot;Ƀ&quot;:&quot;B&quot;,
&quot;Ƃ&quot;:&quot;B&quot;,
&quot;Ć&quot;:&quot;C&quot;,
&quot;Č&quot;:&quot;C&quot;,
&quot;Ç&quot;:&quot;C&quot;,
&quot;Ḉ&quot;:&quot;C&quot;,
&quot;Ĉ&quot;:&quot;C&quot;,
&quot;Ċ&quot;:&quot;C&quot;,
&quot;Ƈ&quot;:&quot;C&quot;,
&quot;Ȼ&quot;:&quot;C&quot;,
&quot;Ď&quot;:&quot;D&quot;,
&quot;Ḑ&quot;:&quot;D&quot;,
&quot;Ḓ&quot;:&quot;D&quot;,
&quot;Ḋ&quot;:&quot;D&quot;,
&quot;Ḍ&quot;:&quot;D&quot;,
&quot;Ɗ&quot;:&quot;D&quot;,
&quot;Ḏ&quot;:&quot;D&quot;,
&quot;Dz&quot;:&quot;D&quot;,
&quot;Dž&quot;:&quot;D&quot;,
&quot;Đ&quot;:&quot;D&quot;,
&quot;Ƌ&quot;:&quot;D&quot;,
&quot;DZ&quot;:&quot;DZ&quot;,
&quot;DŽ&quot;:&quot;DZ&quot;,
&quot;É&quot;:&quot;E&quot;,
&quot;Ĕ&quot;:&quot;E&quot;,
&quot;Ě&quot;:&quot;E&quot;,
&quot;Ȩ&quot;:&quot;E&quot;,
&quot;Ḝ&quot;:&quot;E&quot;,
&quot;Ê&quot;:&quot;E&quot;,
&quot;Ế&quot;:&quot;E&quot;,
&quot;Ệ&quot;:&quot;E&quot;,
&quot;Ề&quot;:&quot;E&quot;,
&quot;Ể&quot;:&quot;E&quot;,
&quot;Ễ&quot;:&quot;E&quot;,
&quot;Ḙ&quot;:&quot;E&quot;,
&quot;Ë&quot;:&quot;E&quot;,
&quot;Ė&quot;:&quot;E&quot;,
&quot;Ẹ&quot;:&quot;E&quot;,
&quot;Ȅ&quot;:&quot;E&quot;,
&quot;È&quot;:&quot;E&quot;,
&quot;Ẻ&quot;:&quot;E&quot;,
&quot;Ȇ&quot;:&quot;E&quot;,
&quot;Ē&quot;:&quot;E&quot;,
&quot;Ḗ&quot;:&quot;E&quot;,
&quot;Ḕ&quot;:&quot;E&quot;,
&quot;Ę&quot;:&quot;E&quot;,
&quot;Ɇ&quot;:&quot;E&quot;,
&quot;Ẽ&quot;:&quot;E&quot;,
&quot;Ḛ&quot;:&quot;E&quot;,
&quot;&quot;:&quot;ET&quot;,
&quot;Ḟ&quot;:&quot;F&quot;,
&quot;Ƒ&quot;:&quot;F&quot;,
&quot;Ǵ&quot;:&quot;G&quot;,
&quot;Ğ&quot;:&quot;G&quot;,
&quot;Ǧ&quot;:&quot;G&quot;,
&quot;Ģ&quot;:&quot;G&quot;,
&quot;Ĝ&quot;:&quot;G&quot;,
&quot;Ġ&quot;:&quot;G&quot;,
&quot;Ɠ&quot;:&quot;G&quot;,
&quot;Ḡ&quot;:&quot;G&quot;,
&quot;Ǥ&quot;:&quot;G&quot;,
&quot;Ḫ&quot;:&quot;H&quot;,
&quot;Ȟ&quot;:&quot;H&quot;,
&quot;Ḩ&quot;:&quot;H&quot;,
&quot;Ĥ&quot;:&quot;H&quot;,
&quot;Ⱨ&quot;:&quot;H&quot;,
&quot;Ḧ&quot;:&quot;H&quot;,
&quot;Ḣ&quot;:&quot;H&quot;,
&quot;Ḥ&quot;:&quot;H&quot;,
&quot;Ħ&quot;:&quot;H&quot;,
&quot;Í&quot;:&quot;I&quot;,
&quot;Ĭ&quot;:&quot;I&quot;,
&quot;Ǐ&quot;:&quot;I&quot;,
&quot;Î&quot;:&quot;I&quot;,
&quot;Ï&quot;:&quot;I&quot;,
&quot;Ḯ&quot;:&quot;I&quot;,
&quot;İ&quot;:&quot;I&quot;,
&quot;Ị&quot;:&quot;I&quot;,
&quot;Ȉ&quot;:&quot;I&quot;,
&quot;Ì&quot;:&quot;I&quot;,
&quot;Ỉ&quot;:&quot;I&quot;,
&quot;Ȋ&quot;:&quot;I&quot;,
&quot;Ī&quot;:&quot;I&quot;,
&quot;Į&quot;:&quot;I&quot;,
&quot;Ɨ&quot;:&quot;I&quot;,
&quot;Ĩ&quot;:&quot;I&quot;,
&quot;Ḭ&quot;:&quot;I&quot;,
&quot;Ꝺ&quot;:&quot;D&quot;,
&quot;Ꝼ&quot;:&quot;F&quot;,
&quot;Ᵹ&quot;:&quot;G&quot;,
&quot;Ꞃ&quot;:&quot;R&quot;,
&quot;Ꞅ&quot;:&quot;S&quot;,
&quot;Ꞇ&quot;:&quot;T&quot;,
&quot;Ꝭ&quot;:&quot;IS&quot;,
&quot;Ĵ&quot;:&quot;J&quot;,
&quot;Ɉ&quot;:&quot;J&quot;,
&quot;Ḱ&quot;:&quot;K&quot;,
&quot;Ǩ&quot;:&quot;K&quot;,
&quot;Ķ&quot;:&quot;K&quot;,
&quot;Ⱪ&quot;:&quot;K&quot;,
&quot;Ꝃ&quot;:&quot;K&quot;,
&quot;Ḳ&quot;:&quot;K&quot;,
&quot;Ƙ&quot;:&quot;K&quot;,
&quot;Ḵ&quot;:&quot;K&quot;,
&quot;Ꝁ&quot;:&quot;K&quot;,
&quot;Ꝅ&quot;:&quot;K&quot;,
&quot;Ĺ&quot;:&quot;L&quot;,
&quot;Ƚ&quot;:&quot;L&quot;,
&quot;Ľ&quot;:&quot;L&quot;,
&quot;Ļ&quot;:&quot;L&quot;,
&quot;Ḽ&quot;:&quot;L&quot;,
&quot;Ḷ&quot;:&quot;L&quot;,
&quot;Ḹ&quot;:&quot;L&quot;,
&quot;Ⱡ&quot;:&quot;L&quot;,
&quot;Ꝉ&quot;:&quot;L&quot;,
&quot;Ḻ&quot;:&quot;L&quot;,
&quot;Ŀ&quot;:&quot;L&quot;,
&quot;Ɫ&quot;:&quot;L&quot;,
&quot;Lj&quot;:&quot;L&quot;,
&quot;Ł&quot;:&quot;L&quot;,
&quot;LJ&quot;:&quot;LJ&quot;,
&quot;Ḿ&quot;:&quot;M&quot;,
&quot;Ṁ&quot;:&quot;M&quot;,
&quot;Ṃ&quot;:&quot;M&quot;,
&quot;Ɱ&quot;:&quot;M&quot;,
&quot;Ń&quot;:&quot;N&quot;,
&quot;Ň&quot;:&quot;N&quot;,
&quot;Ņ&quot;:&quot;N&quot;,
&quot;Ṋ&quot;:&quot;N&quot;,
&quot;Ṅ&quot;:&quot;N&quot;,
&quot;Ṇ&quot;:&quot;N&quot;,
&quot;Ǹ&quot;:&quot;N&quot;,
&quot;Ɲ&quot;:&quot;N&quot;,
&quot;Ṉ&quot;:&quot;N&quot;,
&quot;Ƞ&quot;:&quot;N&quot;,
&quot;Nj&quot;:&quot;N&quot;,
&quot;Ñ&quot;:&quot;N&quot;,
&quot;NJ&quot;:&quot;NJ&quot;,
&quot;Ó&quot;:&quot;O&quot;,
&quot;Ŏ&quot;:&quot;O&quot;,
&quot;Ǒ&quot;:&quot;O&quot;,
&quot;Ô&quot;:&quot;O&quot;,
&quot;Ố&quot;:&quot;O&quot;,
&quot;Ộ&quot;:&quot;O&quot;,
&quot;Ồ&quot;:&quot;O&quot;,
&quot;Ổ&quot;:&quot;O&quot;,
&quot;Ỗ&quot;:&quot;O&quot;,
&quot;Ö&quot;:&quot;O&quot;,
&quot;Ȫ&quot;:&quot;O&quot;,
&quot;Ȯ&quot;:&quot;O&quot;,
&quot;Ȱ&quot;:&quot;O&quot;,
&quot;Ọ&quot;:&quot;O&quot;,
&quot;Ő&quot;:&quot;O&quot;,
&quot;Ȍ&quot;:&quot;O&quot;,
&quot;Ò&quot;:&quot;O&quot;,
&quot;Ỏ&quot;:&quot;O&quot;,
&quot;Ơ&quot;:&quot;O&quot;,
&quot;Ớ&quot;:&quot;O&quot;,
&quot;Ợ&quot;:&quot;O&quot;,
&quot;Ờ&quot;:&quot;O&quot;,
&quot;Ở&quot;:&quot;O&quot;,
&quot;Ỡ&quot;:&quot;O&quot;,
&quot;Ȏ&quot;:&quot;O&quot;,
&quot;Ꝋ&quot;:&quot;O&quot;,
&quot;Ꝍ&quot;:&quot;O&quot;,
&quot;Ō&quot;:&quot;O&quot;,
&quot;Ṓ&quot;:&quot;O&quot;,
&quot;Ṑ&quot;:&quot;O&quot;,
&quot;Ɵ&quot;:&quot;O&quot;,
&quot;Ǫ&quot;:&quot;O&quot;,
&quot;Ǭ&quot;:&quot;O&quot;,
&quot;Ø&quot;:&quot;O&quot;,
&quot;Ǿ&quot;:&quot;O&quot;,
&quot;Õ&quot;:&quot;O&quot;,
&quot;Ṍ&quot;:&quot;O&quot;,
&quot;Ṏ&quot;:&quot;O&quot;,
&quot;Ȭ&quot;:&quot;O&quot;,
&quot;Ƣ&quot;:&quot;OI&quot;,
&quot;Ꝏ&quot;:&quot;OO&quot;,
&quot;Ɛ&quot;:&quot;E&quot;,
&quot;Ɔ&quot;:&quot;O&quot;,
&quot;Ȣ&quot;:&quot;OU&quot;,
&quot;Ṕ&quot;:&quot;P&quot;,
&quot;Ṗ&quot;:&quot;P&quot;,
&quot;Ꝓ&quot;:&quot;P&quot;,
&quot;Ƥ&quot;:&quot;P&quot;,
&quot;Ꝕ&quot;:&quot;P&quot;,
&quot;Ᵽ&quot;:&quot;P&quot;,
&quot;Ꝑ&quot;:&quot;P&quot;,
&quot;Ꝙ&quot;:&quot;Q&quot;,
&quot;Ꝗ&quot;:&quot;Q&quot;,
&quot;Ŕ&quot;:&quot;R&quot;,
&quot;Ř&quot;:&quot;R&quot;,
&quot;Ŗ&quot;:&quot;R&quot;,
&quot;Ṙ&quot;:&quot;R&quot;,
&quot;Ṛ&quot;:&quot;R&quot;,
&quot;Ṝ&quot;:&quot;R&quot;,
&quot;Ȑ&quot;:&quot;R&quot;,
&quot;Ȓ&quot;:&quot;R&quot;,
&quot;Ṟ&quot;:&quot;R&quot;,
&quot;Ɍ&quot;:&quot;R&quot;,
&quot;Ɽ&quot;:&quot;R&quot;,
&quot;Ꜿ&quot;:&quot;C&quot;,
&quot;Ǝ&quot;:&quot;E&quot;,
&quot;Ś&quot;:&quot;S&quot;,
&quot;Ṥ&quot;:&quot;S&quot;,
&quot;Š&quot;:&quot;S&quot;,
&quot;Ṧ&quot;:&quot;S&quot;,
&quot;Ş&quot;:&quot;S&quot;,
&quot;Ŝ&quot;:&quot;S&quot;,
&quot;Ș&quot;:&quot;S&quot;,
&quot;Ṡ&quot;:&quot;S&quot;,
&quot;Ṣ&quot;:&quot;S&quot;,
&quot;Ṩ&quot;:&quot;S&quot;,
&quot;Ť&quot;:&quot;T&quot;,
&quot;Ţ&quot;:&quot;T&quot;,
&quot;Ṱ&quot;:&quot;T&quot;,
&quot;Ț&quot;:&quot;T&quot;,
&quot;Ⱦ&quot;:&quot;T&quot;,
&quot;Ṫ&quot;:&quot;T&quot;,
&quot;Ṭ&quot;:&quot;T&quot;,
&quot;Ƭ&quot;:&quot;T&quot;,
&quot;Ṯ&quot;:&quot;T&quot;,
&quot;Ʈ&quot;:&quot;T&quot;,
&quot;Ŧ&quot;:&quot;T&quot;,
&quot;Ɐ&quot;:&quot;A&quot;,
&quot;Ꞁ&quot;:&quot;L&quot;,
&quot;Ɯ&quot;:&quot;M&quot;,
&quot;Ʌ&quot;:&quot;V&quot;,
&quot;Ꜩ&quot;:&quot;TZ&quot;,
&quot;Ú&quot;:&quot;U&quot;,
&quot;Ŭ&quot;:&quot;U&quot;,
&quot;Ǔ&quot;:&quot;U&quot;,
&quot;Û&quot;:&quot;U&quot;,
&quot;Ṷ&quot;:&quot;U&quot;,
&quot;Ü&quot;:&quot;U&quot;,
&quot;Ǘ&quot;:&quot;U&quot;,
&quot;Ǚ&quot;:&quot;U&quot;,
&quot;Ǜ&quot;:&quot;U&quot;,
&quot;Ǖ&quot;:&quot;U&quot;,
&quot;Ṳ&quot;:&quot;U&quot;,
&quot;Ụ&quot;:&quot;U&quot;,
&quot;Ű&quot;:&quot;U&quot;,
&quot;Ȕ&quot;:&quot;U&quot;,
&quot;Ù&quot;:&quot;U&quot;,
&quot;Ủ&quot;:&quot;U&quot;,
&quot;Ư&quot;:&quot;U&quot;,
&quot;Ứ&quot;:&quot;U&quot;,
&quot;Ự&quot;:&quot;U&quot;,
&quot;Ừ&quot;:&quot;U&quot;,
&quot;Ử&quot;:&quot;U&quot;,
&quot;Ữ&quot;:&quot;U&quot;,
&quot;Ȗ&quot;:&quot;U&quot;,
&quot;Ū&quot;:&quot;U&quot;,
&quot;Ṻ&quot;:&quot;U&quot;,
&quot;Ų&quot;:&quot;U&quot;,
&quot;Ů&quot;:&quot;U&quot;,
&quot;Ũ&quot;:&quot;U&quot;,
&quot;Ṹ&quot;:&quot;U&quot;,
&quot;Ṵ&quot;:&quot;U&quot;,
&quot;Ꝟ&quot;:&quot;V&quot;,
&quot;Ṿ&quot;:&quot;V&quot;,
&quot;Ʋ&quot;:&quot;V&quot;,
&quot;Ṽ&quot;:&quot;V&quot;,
&quot;Ꝡ&quot;:&quot;VY&quot;,
&quot;Ẃ&quot;:&quot;W&quot;,
&quot;Ŵ&quot;:&quot;W&quot;,
&quot;Ẅ&quot;:&quot;W&quot;,
&quot;Ẇ&quot;:&quot;W&quot;,
&quot;Ẉ&quot;:&quot;W&quot;,
&quot;Ẁ&quot;:&quot;W&quot;,
&quot;Ⱳ&quot;:&quot;W&quot;,
&quot;Ẍ&quot;:&quot;X&quot;,
&quot;Ẋ&quot;:&quot;X&quot;,
&quot;Ý&quot;:&quot;Y&quot;,
&quot;Ŷ&quot;:&quot;Y&quot;,
&quot;Ÿ&quot;:&quot;Y&quot;,
&quot;Ẏ&quot;:&quot;Y&quot;,
&quot;Ỵ&quot;:&quot;Y&quot;,
&quot;Ỳ&quot;:&quot;Y&quot;,
&quot;Ƴ&quot;:&quot;Y&quot;,
&quot;Ỷ&quot;:&quot;Y&quot;,
&quot;Ỿ&quot;:&quot;Y&quot;,
&quot;Ȳ&quot;:&quot;Y&quot;,
&quot;Ɏ&quot;:&quot;Y&quot;,
&quot;Ỹ&quot;:&quot;Y&quot;,
&quot;Ź&quot;:&quot;Z&quot;,
&quot;Ž&quot;:&quot;Z&quot;,
&quot;Ẑ&quot;:&quot;Z&quot;,
&quot;Ⱬ&quot;:&quot;Z&quot;,
&quot;Ż&quot;:&quot;Z&quot;,
&quot;Ẓ&quot;:&quot;Z&quot;,
&quot;Ȥ&quot;:&quot;Z&quot;,
&quot;Ẕ&quot;:&quot;Z&quot;,
&quot;Ƶ&quot;:&quot;Z&quot;,
&quot;IJ&quot;:&quot;IJ&quot;,
&quot;Œ&quot;:&quot;OE&quot;,
&quot;ᴀ&quot;:&quot;A&quot;,
&quot;ᴁ&quot;:&quot;AE&quot;,
&quot;ʙ&quot;:&quot;B&quot;,
&quot;ᴃ&quot;:&quot;B&quot;,
&quot;&quot;:&quot;C&quot;,
&quot;ᴅ&quot;:&quot;D&quot;,
&quot;ᴇ&quot;:&quot;E&quot;,
&quot;ꜰ&quot;:&quot;F&quot;,
&quot;ɢ&quot;:&quot;G&quot;,
&quot;ʛ&quot;:&quot;G&quot;,
&quot;ʜ&quot;:&quot;H&quot;,
&quot;ɪ&quot;:&quot;I&quot;,
&quot;ʁ&quot;:&quot;R&quot;,
&quot;ᴊ&quot;:&quot;J&quot;,
&quot;ᴋ&quot;:&quot;K&quot;,
&quot;ʟ&quot;:&quot;L&quot;,
&quot;ᴌ&quot;:&quot;L&quot;,
&quot;ᴍ&quot;:&quot;M&quot;,
&quot;ɴ&quot;:&quot;N&quot;,
&quot;&quot;:&quot;O&quot;,
&quot;ɶ&quot;:&quot;OE&quot;,
&quot;ᴐ&quot;:&quot;O&quot;,
&quot;ᴕ&quot;:&quot;OU&quot;,
&quot;ᴘ&quot;:&quot;P&quot;,
&quot;ʀ&quot;:&quot;R&quot;,
&quot;ᴎ&quot;:&quot;N&quot;,
&quot;ᴙ&quot;:&quot;R&quot;,
&quot;&quot;:&quot;S&quot;,
&quot;ᴛ&quot;:&quot;T&quot;,
&quot;ⱻ&quot;:&quot;E&quot;,
&quot;ᴚ&quot;:&quot;R&quot;,
&quot;&quot;:&quot;U&quot;,
&quot;&quot;:&quot;V&quot;,
&quot;&quot;:&quot;W&quot;,
&quot;ʏ&quot;:&quot;Y&quot;,
&quot;&quot;:&quot;Z&quot;,
&quot;á&quot;:&quot;a&quot;,
&quot;ă&quot;:&quot;a&quot;,
&quot;ắ&quot;:&quot;a&quot;,
&quot;ặ&quot;:&quot;a&quot;,
&quot;ằ&quot;:&quot;a&quot;,
&quot;ẳ&quot;:&quot;a&quot;,
&quot;ẵ&quot;:&quot;a&quot;,
&quot;ǎ&quot;:&quot;a&quot;,
&quot;â&quot;:&quot;a&quot;,
&quot;ấ&quot;:&quot;a&quot;,
&quot;ậ&quot;:&quot;a&quot;,
&quot;ầ&quot;:&quot;a&quot;,
&quot;ẩ&quot;:&quot;a&quot;,
&quot;ẫ&quot;:&quot;a&quot;,
&quot;ä&quot;:&quot;a&quot;,
&quot;ǟ&quot;:&quot;a&quot;,
&quot;ȧ&quot;:&quot;a&quot;,
&quot;ǡ&quot;:&quot;a&quot;,
&quot;ạ&quot;:&quot;a&quot;,
&quot;ȁ&quot;:&quot;a&quot;,
&quot;à&quot;:&quot;a&quot;,
&quot;ả&quot;:&quot;a&quot;,
&quot;ȃ&quot;:&quot;a&quot;,
&quot;ā&quot;:&quot;a&quot;,
&quot;ą&quot;:&quot;a&quot;,
&quot;ᶏ&quot;:&quot;a&quot;,
&quot;ẚ&quot;:&quot;a&quot;,
&quot;å&quot;:&quot;a&quot;,
&quot;ǻ&quot;:&quot;a&quot;,
&quot;ḁ&quot;:&quot;a&quot;,
&quot;ⱥ&quot;:&quot;a&quot;,
&quot;ã&quot;:&quot;a&quot;,
&quot;ꜳ&quot;:&quot;aa&quot;,
&quot;æ&quot;:&quot;ae&quot;,
&quot;ǽ&quot;:&quot;ae&quot;,
&quot;ǣ&quot;:&quot;ae&quot;,
&quot;ꜵ&quot;:&quot;ao&quot;,
&quot;ꜷ&quot;:&quot;au&quot;,
&quot;ꜹ&quot;:&quot;av&quot;,
&quot;ꜻ&quot;:&quot;av&quot;,
&quot;ꜽ&quot;:&quot;ay&quot;,
&quot;ḃ&quot;:&quot;b&quot;,
&quot;ḅ&quot;:&quot;b&quot;,
&quot;ɓ&quot;:&quot;b&quot;,
&quot;ḇ&quot;:&quot;b&quot;,
&quot;ᵬ&quot;:&quot;b&quot;,
&quot;ᶀ&quot;:&quot;b&quot;,
&quot;ƀ&quot;:&quot;b&quot;,
&quot;ƃ&quot;:&quot;b&quot;,
&quot;ɵ&quot;:&quot;o&quot;,
&quot;ć&quot;:&quot;c&quot;,
&quot;č&quot;:&quot;c&quot;,
&quot;ç&quot;:&quot;c&quot;,
&quot;ḉ&quot;:&quot;c&quot;,
&quot;ĉ&quot;:&quot;c&quot;,
&quot;ɕ&quot;:&quot;c&quot;,
&quot;ċ&quot;:&quot;c&quot;,
&quot;ƈ&quot;:&quot;c&quot;,
&quot;ȼ&quot;:&quot;c&quot;,
&quot;ď&quot;:&quot;d&quot;,
&quot;ḑ&quot;:&quot;d&quot;,
&quot;ḓ&quot;:&quot;d&quot;,
&quot;ȡ&quot;:&quot;d&quot;,
&quot;ḋ&quot;:&quot;d&quot;,
&quot;ḍ&quot;:&quot;d&quot;,
&quot;ɗ&quot;:&quot;d&quot;,
&quot;ᶑ&quot;:&quot;d&quot;,
&quot;ḏ&quot;:&quot;d&quot;,
&quot;ᵭ&quot;:&quot;d&quot;,
&quot;ᶁ&quot;:&quot;d&quot;,
&quot;đ&quot;:&quot;d&quot;,
&quot;ɖ&quot;:&quot;d&quot;,
&quot;ƌ&quot;:&quot;d&quot;,
&quot;ı&quot;:&quot;i&quot;,
&quot;ȷ&quot;:&quot;j&quot;,
&quot;ɟ&quot;:&quot;j&quot;,
&quot;ʄ&quot;:&quot;j&quot;,
&quot;dz&quot;:&quot;dz&quot;,
&quot;dž&quot;:&quot;dz&quot;,
&quot;é&quot;:&quot;e&quot;,
&quot;ĕ&quot;:&quot;e&quot;,
&quot;ě&quot;:&quot;e&quot;,
&quot;ȩ&quot;:&quot;e&quot;,
&quot;ḝ&quot;:&quot;e&quot;,
&quot;ê&quot;:&quot;e&quot;,
&quot;ế&quot;:&quot;e&quot;,
&quot;ệ&quot;:&quot;e&quot;,
&quot;ề&quot;:&quot;e&quot;,
&quot;ể&quot;:&quot;e&quot;,
&quot;ễ&quot;:&quot;e&quot;,
&quot;ḙ&quot;:&quot;e&quot;,
&quot;ë&quot;:&quot;e&quot;,
&quot;ė&quot;:&quot;e&quot;,
&quot;ẹ&quot;:&quot;e&quot;,
&quot;ȅ&quot;:&quot;e&quot;,
&quot;è&quot;:&quot;e&quot;,
&quot;ẻ&quot;:&quot;e&quot;,
&quot;ȇ&quot;:&quot;e&quot;,
&quot;ē&quot;:&quot;e&quot;,
&quot;ḗ&quot;:&quot;e&quot;,
&quot;ḕ&quot;:&quot;e&quot;,
&quot;ⱸ&quot;:&quot;e&quot;,
&quot;ę&quot;:&quot;e&quot;,
&quot;ᶒ&quot;:&quot;e&quot;,
&quot;ɇ&quot;:&quot;e&quot;,
&quot;ẽ&quot;:&quot;e&quot;,
&quot;ḛ&quot;:&quot;e&quot;,
&quot;ꝫ&quot;:&quot;et&quot;,
&quot;ḟ&quot;:&quot;f&quot;,
&quot;ƒ&quot;:&quot;f&quot;,
&quot;ᵮ&quot;:&quot;f&quot;,
&quot;ᶂ&quot;:&quot;f&quot;,
&quot;ǵ&quot;:&quot;g&quot;,
&quot;ğ&quot;:&quot;g&quot;,
&quot;ǧ&quot;:&quot;g&quot;,
&quot;ģ&quot;:&quot;g&quot;,
&quot;ĝ&quot;:&quot;g&quot;,
&quot;ġ&quot;:&quot;g&quot;,
&quot;ɠ&quot;:&quot;g&quot;,
&quot;ḡ&quot;:&quot;g&quot;,
&quot;&quot;:&quot;g&quot;,
&quot;ǥ&quot;:&quot;g&quot;,
&quot;ḫ&quot;:&quot;h&quot;,
&quot;ȟ&quot;:&quot;h&quot;,
&quot;ḩ&quot;:&quot;h&quot;,
&quot;ĥ&quot;:&quot;h&quot;,
&quot;ⱨ&quot;:&quot;h&quot;,
&quot;ḧ&quot;:&quot;h&quot;,
&quot;ḣ&quot;:&quot;h&quot;,
&quot;ḥ&quot;:&quot;h&quot;,
&quot;ɦ&quot;:&quot;h&quot;,
&quot;ẖ&quot;:&quot;h&quot;,
&quot;ħ&quot;:&quot;h&quot;,
&quot;ƕ&quot;:&quot;hv&quot;,
&quot;í&quot;:&quot;i&quot;,
&quot;ĭ&quot;:&quot;i&quot;,
&quot;ǐ&quot;:&quot;i&quot;,
&quot;î&quot;:&quot;i&quot;,
&quot;ï&quot;:&quot;i&quot;,
&quot;ḯ&quot;:&quot;i&quot;,
&quot;ị&quot;:&quot;i&quot;,
&quot;ȉ&quot;:&quot;i&quot;,
&quot;ì&quot;:&quot;i&quot;,
&quot;ỉ&quot;:&quot;i&quot;,
&quot;ȋ&quot;:&quot;i&quot;,
&quot;ī&quot;:&quot;i&quot;,
&quot;į&quot;:&quot;i&quot;,
&quot;ᶖ&quot;:&quot;i&quot;,
&quot;ɨ&quot;:&quot;i&quot;,
&quot;ĩ&quot;:&quot;i&quot;,
&quot;ḭ&quot;:&quot;i&quot;,
&quot;ꝺ&quot;:&quot;d&quot;,
&quot;ꝼ&quot;:&quot;f&quot;,
&quot;ᵹ&quot;:&quot;g&quot;,
&quot;ꞃ&quot;:&quot;r&quot;,
&quot;ꞅ&quot;:&quot;s&quot;,
&quot;ꞇ&quot;:&quot;t&quot;,
&quot;ꝭ&quot;:&quot;is&quot;,
&quot;ǰ&quot;:&quot;j&quot;,
&quot;ĵ&quot;:&quot;j&quot;,
&quot;ʝ&quot;:&quot;j&quot;,
&quot;ɉ&quot;:&quot;j&quot;,
&quot;ḱ&quot;:&quot;k&quot;,
&quot;ǩ&quot;:&quot;k&quot;,
&quot;ķ&quot;:&quot;k&quot;,
&quot;ⱪ&quot;:&quot;k&quot;,
&quot;ꝃ&quot;:&quot;k&quot;,
&quot;ḳ&quot;:&quot;k&quot;,
&quot;ƙ&quot;:&quot;k&quot;,
&quot;ḵ&quot;:&quot;k&quot;,
&quot;ᶄ&quot;:&quot;k&quot;,
&quot;ꝁ&quot;:&quot;k&quot;,
&quot;ꝅ&quot;:&quot;k&quot;,
&quot;ĺ&quot;:&quot;l&quot;,
&quot;ƚ&quot;:&quot;l&quot;,
&quot;ɬ&quot;:&quot;l&quot;,
&quot;ľ&quot;:&quot;l&quot;,
&quot;ļ&quot;:&quot;l&quot;,
&quot;ḽ&quot;:&quot;l&quot;,
&quot;ȴ&quot;:&quot;l&quot;,
&quot;ḷ&quot;:&quot;l&quot;,
&quot;ḹ&quot;:&quot;l&quot;,
&quot;ⱡ&quot;:&quot;l&quot;,
&quot;ꝉ&quot;:&quot;l&quot;,
&quot;ḻ&quot;:&quot;l&quot;,
&quot;ŀ&quot;:&quot;l&quot;,
&quot;ɫ&quot;:&quot;l&quot;,
&quot;ᶅ&quot;:&quot;l&quot;,
&quot;ɭ&quot;:&quot;l&quot;,
&quot;ł&quot;:&quot;l&quot;,
&quot;lj&quot;:&quot;lj&quot;,
&quot;ſ&quot;:&quot;s&quot;,
&quot;ẜ&quot;:&quot;s&quot;,
&quot;ẛ&quot;:&quot;s&quot;,
&quot;&quot;:&quot;s&quot;,
&quot;ḿ&quot;:&quot;m&quot;,
&quot;ṁ&quot;:&quot;m&quot;,
&quot;ṃ&quot;:&quot;m&quot;,
&quot;ɱ&quot;:&quot;m&quot;,
&quot;ᵯ&quot;:&quot;m&quot;,
&quot;ᶆ&quot;:&quot;m&quot;,
&quot;ń&quot;:&quot;n&quot;,
&quot;ň&quot;:&quot;n&quot;,
&quot;ņ&quot;:&quot;n&quot;,
&quot;ṋ&quot;:&quot;n&quot;,
&quot;ȵ&quot;:&quot;n&quot;,
&quot;ṅ&quot;:&quot;n&quot;,
&quot;ṇ&quot;:&quot;n&quot;,
&quot;ǹ&quot;:&quot;n&quot;,
&quot;ɲ&quot;:&quot;n&quot;,
&quot;ṉ&quot;:&quot;n&quot;,
&quot;ƞ&quot;:&quot;n&quot;,
&quot;ᵰ&quot;:&quot;n&quot;,
&quot;ᶇ&quot;:&quot;n&quot;,
&quot;ɳ&quot;:&quot;n&quot;,
&quot;ñ&quot;:&quot;n&quot;,
&quot;nj&quot;:&quot;nj&quot;,
&quot;ó&quot;:&quot;o&quot;,
&quot;ŏ&quot;:&quot;o&quot;,
&quot;ǒ&quot;:&quot;o&quot;,
&quot;ô&quot;:&quot;o&quot;,
&quot;ố&quot;:&quot;o&quot;,
&quot;ộ&quot;:&quot;o&quot;,
&quot;ồ&quot;:&quot;o&quot;,
&quot;ổ&quot;:&quot;o&quot;,
&quot;ỗ&quot;:&quot;o&quot;,
&quot;ö&quot;:&quot;o&quot;,
&quot;ȫ&quot;:&quot;o&quot;,
&quot;ȯ&quot;:&quot;o&quot;,
&quot;ȱ&quot;:&quot;o&quot;,
&quot;ọ&quot;:&quot;o&quot;,
&quot;ő&quot;:&quot;o&quot;,
&quot;ȍ&quot;:&quot;o&quot;,
&quot;ò&quot;:&quot;o&quot;,
&quot;ỏ&quot;:&quot;o&quot;,
&quot;ơ&quot;:&quot;o&quot;,
&quot;ớ&quot;:&quot;o&quot;,
&quot;ợ&quot;:&quot;o&quot;,
&quot;ờ&quot;:&quot;o&quot;,
&quot;ở&quot;:&quot;o&quot;,
&quot;ỡ&quot;:&quot;o&quot;,
&quot;ȏ&quot;:&quot;o&quot;,
&quot;ꝋ&quot;:&quot;o&quot;,
&quot;ꝍ&quot;:&quot;o&quot;,
&quot;ⱺ&quot;:&quot;o&quot;,
&quot;ō&quot;:&quot;o&quot;,
&quot;ṓ&quot;:&quot;o&quot;,
&quot;ṑ&quot;:&quot;o&quot;,
&quot;ǫ&quot;:&quot;o&quot;,
&quot;ǭ&quot;:&quot;o&quot;,
&quot;ø&quot;:&quot;o&quot;,
&quot;ǿ&quot;:&quot;o&quot;,
&quot;õ&quot;:&quot;o&quot;,
&quot;ṍ&quot;:&quot;o&quot;,
&quot;ṏ&quot;:&quot;o&quot;,
&quot;ȭ&quot;:&quot;o&quot;,
&quot;ƣ&quot;:&quot;oi&quot;,
&quot;ꝏ&quot;:&quot;oo&quot;,
&quot;ɛ&quot;:&quot;e&quot;,
&quot;ᶓ&quot;:&quot;e&quot;,
&quot;ɔ&quot;:&quot;o&quot;,
&quot;ᶗ&quot;:&quot;o&quot;,
&quot;ȣ&quot;:&quot;ou&quot;,
&quot;ṕ&quot;:&quot;p&quot;,
&quot;ṗ&quot;:&quot;p&quot;,
&quot;ꝓ&quot;:&quot;p&quot;,
&quot;ƥ&quot;:&quot;p&quot;,
&quot;ᵱ&quot;:&quot;p&quot;,
&quot;ᶈ&quot;:&quot;p&quot;,
&quot;ꝕ&quot;:&quot;p&quot;,
&quot;ᵽ&quot;:&quot;p&quot;,
&quot;ꝑ&quot;:&quot;p&quot;,
&quot;ꝙ&quot;:&quot;q&quot;,
&quot;ʠ&quot;:&quot;q&quot;,
&quot;ɋ&quot;:&quot;q&quot;,
&quot;ꝗ&quot;:&quot;q&quot;,
&quot;ŕ&quot;:&quot;r&quot;,
&quot;ř&quot;:&quot;r&quot;,
&quot;ŗ&quot;:&quot;r&quot;,
&quot;ṙ&quot;:&quot;r&quot;,
&quot;ṛ&quot;:&quot;r&quot;,
&quot;ṝ&quot;:&quot;r&quot;,
&quot;ȑ&quot;:&quot;r&quot;,
&quot;ɾ&quot;:&quot;r&quot;,
&quot;ᵳ&quot;:&quot;r&quot;,
&quot;ȓ&quot;:&quot;r&quot;,
&quot;ṟ&quot;:&quot;r&quot;,
&quot;ɼ&quot;:&quot;r&quot;,
&quot;ᵲ&quot;:&quot;r&quot;,
&quot;ᶉ&quot;:&quot;r&quot;,
&quot;ɍ&quot;:&quot;r&quot;,
&quot;ɽ&quot;:&quot;r&quot;,
&quot;ↄ&quot;:&quot;c&quot;,
&quot;ꜿ&quot;:&quot;c&quot;,
&quot;ɘ&quot;:&quot;e&quot;,
&quot;ɿ&quot;:&quot;r&quot;,
&quot;ś&quot;:&quot;s&quot;,
&quot;ṥ&quot;:&quot;s&quot;,
&quot;š&quot;:&quot;s&quot;,
&quot;ṧ&quot;:&quot;s&quot;,
&quot;ş&quot;:&quot;s&quot;,
&quot;ŝ&quot;:&quot;s&quot;,
&quot;ș&quot;:&quot;s&quot;,
&quot;ṡ&quot;:&quot;s&quot;,
&quot;ṣ&quot;:&quot;s&quot;,
&quot;ṩ&quot;:&quot;s&quot;,
&quot;ʂ&quot;:&quot;s&quot;,
&quot;ᵴ&quot;:&quot;s&quot;,
&quot;ᶊ&quot;:&quot;s&quot;,
&quot;ȿ&quot;:&quot;s&quot;,
&quot;ɡ&quot;:&quot;g&quot;,
&quot;&quot;:&quot;o&quot;,
&quot;ᴓ&quot;:&quot;o&quot;,
&quot;ᴝ&quot;:&quot;u&quot;,
&quot;ť&quot;:&quot;t&quot;,
&quot;ţ&quot;:&quot;t&quot;,
&quot;ṱ&quot;:&quot;t&quot;,
&quot;ț&quot;:&quot;t&quot;,
&quot;ȶ&quot;:&quot;t&quot;,
&quot;ẗ&quot;:&quot;t&quot;,
&quot;ⱦ&quot;:&quot;t&quot;,
&quot;ṫ&quot;:&quot;t&quot;,
&quot;ṭ&quot;:&quot;t&quot;,
&quot;ƭ&quot;:&quot;t&quot;,
&quot;ṯ&quot;:&quot;t&quot;,
&quot;ᵵ&quot;:&quot;t&quot;,
&quot;ƫ&quot;:&quot;t&quot;,
&quot;ʈ&quot;:&quot;t&quot;,
&quot;ŧ&quot;:&quot;t&quot;,
&quot;ᵺ&quot;:&quot;th&quot;,
&quot;ɐ&quot;:&quot;a&quot;,
&quot;ᴂ&quot;:&quot;ae&quot;,
&quot;ǝ&quot;:&quot;e&quot;,
&quot;ᵷ&quot;:&quot;g&quot;,
&quot;ɥ&quot;:&quot;h&quot;,
&quot;ʮ&quot;:&quot;h&quot;,
&quot;ʯ&quot;:&quot;h&quot;,
&quot;ᴉ&quot;:&quot;i&quot;,
&quot;ʞ&quot;:&quot;k&quot;,
&quot;ꞁ&quot;:&quot;l&quot;,
&quot;ɯ&quot;:&quot;m&quot;,
&quot;ɰ&quot;:&quot;m&quot;,
&quot;ᴔ&quot;:&quot;oe&quot;,
&quot;ɹ&quot;:&quot;r&quot;,
&quot;ɻ&quot;:&quot;r&quot;,
&quot;ɺ&quot;:&quot;r&quot;,
&quot;ⱹ&quot;:&quot;r&quot;,
&quot;ʇ&quot;:&quot;t&quot;,
&quot;ʌ&quot;:&quot;v&quot;,
&quot;ʍ&quot;:&quot;w&quot;,
&quot;ʎ&quot;:&quot;y&quot;,
&quot;ꜩ&quot;:&quot;tz&quot;,
&quot;ú&quot;:&quot;u&quot;,
&quot;ŭ&quot;:&quot;u&quot;,
&quot;ǔ&quot;:&quot;u&quot;,
&quot;û&quot;:&quot;u&quot;,
&quot;ṷ&quot;:&quot;u&quot;,
&quot;ü&quot;:&quot;u&quot;,
&quot;ǘ&quot;:&quot;u&quot;,
&quot;ǚ&quot;:&quot;u&quot;,
&quot;ǜ&quot;:&quot;u&quot;,
&quot;ǖ&quot;:&quot;u&quot;,
&quot;ṳ&quot;:&quot;u&quot;,
&quot;ụ&quot;:&quot;u&quot;,
&quot;ű&quot;:&quot;u&quot;,
&quot;ȕ&quot;:&quot;u&quot;,
&quot;ù&quot;:&quot;u&quot;,
&quot;ủ&quot;:&quot;u&quot;,
&quot;ư&quot;:&quot;u&quot;,
&quot;ứ&quot;:&quot;u&quot;,
&quot;ự&quot;:&quot;u&quot;,
&quot;ừ&quot;:&quot;u&quot;,
&quot;ử&quot;:&quot;u&quot;,
&quot;ữ&quot;:&quot;u&quot;,
&quot;ȗ&quot;:&quot;u&quot;,
&quot;ū&quot;:&quot;u&quot;,
&quot;ṻ&quot;:&quot;u&quot;,
&quot;ų&quot;:&quot;u&quot;,
&quot;ᶙ&quot;:&quot;u&quot;,
&quot;ů&quot;:&quot;u&quot;,
&quot;ũ&quot;:&quot;u&quot;,
&quot;ṹ&quot;:&quot;u&quot;,
&quot;ṵ&quot;:&quot;u&quot;,
&quot;ᵫ&quot;:&quot;ue&quot;,
&quot;&quot;:&quot;um&quot;,
&quot;ⱴ&quot;:&quot;v&quot;,
&quot;ꝟ&quot;:&quot;v&quot;,
&quot;ṿ&quot;:&quot;v&quot;,
&quot;ʋ&quot;:&quot;v&quot;,
&quot;&quot;:&quot;v&quot;,
&quot;ⱱ&quot;:&quot;v&quot;,
&quot;ṽ&quot;:&quot;v&quot;,
&quot;ꝡ&quot;:&quot;vy&quot;,
&quot;ẃ&quot;:&quot;w&quot;,
&quot;ŵ&quot;:&quot;w&quot;,
&quot;ẅ&quot;:&quot;w&quot;,
&quot;ẇ&quot;:&quot;w&quot;,
&quot;ẉ&quot;:&quot;w&quot;,
&quot;ẁ&quot;:&quot;w&quot;,
&quot;ⱳ&quot;:&quot;w&quot;,
&quot;ẘ&quot;:&quot;w&quot;,
&quot;ẍ&quot;:&quot;x&quot;,
&quot;ẋ&quot;:&quot;x&quot;,
&quot;ᶍ&quot;:&quot;x&quot;,
&quot;ý&quot;:&quot;y&quot;,
&quot;ŷ&quot;:&quot;y&quot;,
&quot;ÿ&quot;:&quot;y&quot;,
&quot;ẏ&quot;:&quot;y&quot;,
&quot;ỵ&quot;:&quot;y&quot;,
&quot;ỳ&quot;:&quot;y&quot;,
&quot;ƴ&quot;:&quot;y&quot;,
&quot;ỷ&quot;:&quot;y&quot;,
&quot;ỿ&quot;:&quot;y&quot;,
&quot;ȳ&quot;:&quot;y&quot;,
&quot;ẙ&quot;:&quot;y&quot;,
&quot;ɏ&quot;:&quot;y&quot;,
&quot;ỹ&quot;:&quot;y&quot;,
&quot;ź&quot;:&quot;z&quot;,
&quot;ž&quot;:&quot;z&quot;,
&quot;ẑ&quot;:&quot;z&quot;,
&quot;ʑ&quot;:&quot;z&quot;,
&quot;ⱬ&quot;:&quot;z&quot;,
&quot;ż&quot;:&quot;z&quot;,
&quot;ẓ&quot;:&quot;z&quot;,
&quot;ȥ&quot;:&quot;z&quot;,
&quot;ẕ&quot;:&quot;z&quot;,
&quot;ᵶ&quot;:&quot;z&quot;,
&quot;ᶎ&quot;:&quot;z&quot;,
&quot;ʐ&quot;:&quot;z&quot;,
&quot;ƶ&quot;:&quot;z&quot;,
&quot;ɀ&quot;:&quot;z&quot;,
&quot;ff&quot;:&quot;ff&quot;,
&quot;ffi&quot;:&quot;ffi&quot;,
&quot;ffl&quot;:&quot;ffl&quot;,
&quot;fi&quot;:&quot;fi&quot;,
&quot;fl&quot;:&quot;fl&quot;,
&quot;ij&quot;:&quot;ij&quot;,
&quot;œ&quot;:&quot;oe&quot;,
&quot;st&quot;:&quot;st&quot;,
&quot;ₐ&quot;:&quot;a&quot;,
&quot;ₑ&quot;:&quot;e&quot;,
&quot;ᵢ&quot;:&quot;i&quot;,
&quot;ⱼ&quot;:&quot;j&quot;,
&quot;ₒ&quot;:&quot;o&quot;,
&quot;ᵣ&quot;:&quot;r&quot;,
&quot;ᵤ&quot;:&quot;u&quot;,
&quot;ᵥ&quot;:&quot;v&quot;,
&quot;ₓ&quot;:&quot;x&quot;,
&quot;Ё&quot;:&quot;YO&quot;,
&quot;Й&quot;:&quot;I&quot;,
&quot;Ц&quot;:&quot;TS&quot;,
&quot;У&quot;:&quot;U&quot;,
&quot;К&quot;:&quot;K&quot;,
&quot;Е&quot;:&quot;E&quot;,
&quot;Н&quot;:&quot;N&quot;,
&quot;Г&quot;:&quot;G&quot;,
&quot;Ш&quot;:&quot;SH&quot;,
&quot;Щ&quot;:&quot;SCH&quot;,
&quot;З&quot;:&quot;Z&quot;,
&quot;Х&quot;:&quot;H&quot;,
&quot;Ъ&quot;:&quot;'&quot;,
&quot;ё&quot;:&quot;yo&quot;,
&quot;й&quot;:&quot;i&quot;,
&quot;ц&quot;:&quot;ts&quot;,
&quot;у&quot;:&quot;u&quot;,
&quot;к&quot;:&quot;k&quot;,
&quot;е&quot;:&quot;e&quot;,
&quot;н&quot;:&quot;n&quot;,
&quot;г&quot;:&quot;g&quot;,
&quot;ш&quot;:&quot;sh&quot;,
&quot;щ&quot;:&quot;sch&quot;,
&quot;з&quot;:&quot;z&quot;,
&quot;х&quot;:&quot;h&quot;,
&quot;ъ&quot;:&quot;'&quot;,
&quot;Ф&quot;:&quot;F&quot;,
&quot;Ы&quot;:&quot;I&quot;,
&quot;В&quot;:&quot;V&quot;,
&quot;А&quot;:&quot;a&quot;,
&quot;П&quot;:&quot;P&quot;,
&quot;Р&quot;:&quot;R&quot;,
&quot;О&quot;:&quot;O&quot;,
&quot;Л&quot;:&quot;L&quot;,
&quot;Д&quot;:&quot;D&quot;,
&quot;Ж&quot;:&quot;ZH&quot;,
&quot;Э&quot;:&quot;E&quot;,
&quot;ф&quot;:&quot;f&quot;,
&quot;ы&quot;:&quot;i&quot;,
&quot;в&quot;:&quot;v&quot;,
&quot;а&quot;:&quot;a&quot;,
&quot;п&quot;:&quot;p&quot;,
&quot;р&quot;:&quot;r&quot;,
&quot;о&quot;:&quot;o&quot;,
&quot;л&quot;:&quot;l&quot;,
&quot;д&quot;:&quot;d&quot;,
&quot;ж&quot;:&quot;zh&quot;,
&quot;э&quot;:&quot;e&quot;,
&quot;Я&quot;:&quot;Ya&quot;,
&quot;Ч&quot;:&quot;CH&quot;,
&quot;С&quot;:&quot;S&quot;,
&quot;М&quot;:&quot;M&quot;,
&quot;И&quot;:&quot;I&quot;,
&quot;Т&quot;:&quot;T&quot;,
&quot;Ь&quot;:&quot;'&quot;,
&quot;Б&quot;:&quot;B&quot;,
&quot;Ю&quot;:&quot;YU&quot;,
&quot;я&quot;:&quot;ya&quot;,
&quot;ч&quot;:&quot;ch&quot;,
&quot;с&quot;:&quot;s&quot;,
&quot;м&quot;:&quot;m&quot;,
&quot;и&quot;:&quot;i&quot;,
&quot;т&quot;:&quot;t&quot;,
&quot;ь&quot;:&quot;'&quot;,
&quot;б&quot;:&quot;b&quot;,
&quot;ю&quot;:&quot;yu&quot;
};
exports.transliterate = function(str) {
return str.replace(/[^A-Za-z0-9\[\] ]/g,function(ch) {
return exports.transliterationPairs[ch] || ch
});
};
exports.transliterateToSafeASCII = function(str) {
return str.replace(/[^\x00-\x7F]/g,function(ch) {
return exports.transliterationPairs[ch] || &quot;&quot;
});
};
})();
</pre>
</div>
<div module-type="utils" title="$:/core/modules/utils/utils.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/utils/utils.js
type: application/javascript
module-type: utils
Various static utility functions.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var base64utf8 = require(&quot;$:/core/modules/utils/base64-utf8/base64-utf8.module.js&quot;);
/*
Display a message, in colour if we're on a terminal
*/
exports.log = function(text,colour) {
console.log($tw.node ? exports.terminalColour(colour) + text + exports.terminalColour() : text);
};
exports.terminalColour = function(colour) {
if(!$tw.browser &amp;&amp; $tw.node &amp;&amp; process.stdout.isTTY) {
if(colour) {
var code = exports.terminalColourLookup[colour];
if(code) {
return &quot;\x1b[&quot; + code + &quot;m&quot;;
}
} else {
return &quot;\x1b[0m&quot;; // Cancel colour
}
}
return &quot;&quot;;
};
exports.terminalColourLookup = {
&quot;black&quot;: &quot;0;30&quot;,
&quot;red&quot;: &quot;0;31&quot;,
&quot;green&quot;: &quot;0;32&quot;,
&quot;brown/orange&quot;: &quot;0;33&quot;,
&quot;blue&quot;: &quot;0;34&quot;,
&quot;purple&quot;: &quot;0;35&quot;,
&quot;cyan&quot;: &quot;0;36&quot;,
&quot;light gray&quot;: &quot;0;37&quot;
};
/*
Display a warning, in colour if we're on a terminal
*/
exports.warning = function(text) {
exports.log(text,&quot;brown/orange&quot;);
};
/*
Return the integer represented by the str (string).
Return the dflt (default) parameter if str is not a base-10 number.
*/
exports.getInt = function(str,deflt) {
var i = parseInt(str,10);
return isNaN(i) ? deflt : i;
}
/*
Repeatedly replaces a substring within a string. Like String.prototype.replace, but without any of the default special handling of $ sequences in the replace string
*/
exports.replaceString = function(text,search,replace) {
return text.replace(search,function() {
return replace;
});
};
/*
Repeats a string
*/
exports.repeat = function(str,count) {
var result = &quot;&quot;;
for(var t=0;t&lt;count;t++) {
result += str;
}
return result;
};
/*
Trim whitespace from the start and end of a string
Thanks to Steven Levithan, http://blog.stevenlevithan.com/archives/faster-trim-javascript
*/
exports.trim = function(str) {
if(typeof str === &quot;string&quot;) {
return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
} else {
return str;
}
};
/*
Convert a string to sentence case (ie capitalise first letter)
*/
exports.toSentenceCase = function(str) {
return (str || &quot;&quot;).replace(/^\S/, function(c) {return c.toUpperCase();});
}
/*
Convert a string to title case (ie capitalise each initial letter)
*/
exports.toTitleCase = function(str) {
return (str || &quot;&quot;).replace(/(^|\s)\S/g, function(c) {return c.toUpperCase();});
}
/*
Find the line break preceding a given position in a string
Returns position immediately after that line break, or the start of the string
*/
exports.findPrecedingLineBreak = function(text,pos) {
var result = text.lastIndexOf(&quot;\n&quot;,pos - 1);
if(result === -1) {
result = 0;
} else {
result++;
if(text.charAt(result) === &quot;\r&quot;) {
result++;
}
}
return result;
};
/*
Find the line break following a given position in a string
*/
exports.findFollowingLineBreak = function(text,pos) {
// Cut to just past the following line break, or to the end of the text
var result = text.indexOf(&quot;\n&quot;,pos);
if(result === -1) {
result = text.length;
} else {
if(text.charAt(result) === &quot;\r&quot;) {
result++;
}
}
return result;
};
/*
Return the number of keys in an object
*/
exports.count = function(object) {
return Object.keys(object || {}).length;
};
/*
Determine whether an array-item is an object-property
*/
exports.hopArray = function(object,array) {
for(var i=0; i&lt;array.length; i++) {
if($tw.utils.hop(object,array[i])) {
return true;
}
}
return false;
};
/*
Remove entries from an array
array: array to modify
value: a single value to remove, or an array of values to remove
*/
exports.removeArrayEntries = function(array,value) {
var t,p;
if($tw.utils.isArray(value)) {
for(t=0; t&lt;value.length; t++) {
p = array.indexOf(value[t]);
if(p !== -1) {
array.splice(p,1);
}
}
} else {
p = array.indexOf(value);
if(p !== -1) {
array.splice(p,1);
}
}
};
/*
Check whether any members of a hashmap are present in another hashmap
*/
exports.checkDependencies = function(dependencies,changes) {
var hit = false;
$tw.utils.each(changes,function(change,title) {
if($tw.utils.hop(dependencies,title)) {
hit = true;
}
});
return hit;
};
exports.extend = function(object /* [, src] */) {
$tw.utils.each(Array.prototype.slice.call(arguments, 1), function(source) {
if(source) {
for(var property in source) {
object[property] = source[property];
}
}
});
return object;
};
exports.deepCopy = function(object) {
var result,t;
if($tw.utils.isArray(object)) {
// Copy arrays
result = object.slice(0);
} else if(typeof object === &quot;object&quot;) {
result = {};
for(t in object) {
if(object[t] !== undefined) {
result[t] = $tw.utils.deepCopy(object[t]);
}
}
} else {
result = object;
}
return result;
};
exports.extendDeepCopy = function(object,extendedProperties) {
var result = $tw.utils.deepCopy(object),t;
for(t in extendedProperties) {
if(extendedProperties[t] !== undefined) {
result[t] = $tw.utils.deepCopy(extendedProperties[t]);
}
}
return result;
};
exports.deepFreeze = function deepFreeze(object) {
var property, key;
if(object) {
Object.freeze(object);
for(key in object) {
property = object[key];
if($tw.utils.hop(object,key) &amp;&amp; (typeof property === &quot;object&quot;) &amp;&amp; !Object.isFrozen(property)) {
deepFreeze(property);
}
}
}
};
exports.slowInSlowOut = function(t) {
return (1 - ((Math.cos(t * Math.PI) + 1) / 2));
};
exports.formatDateString = function(date,template) {
var result = &quot;&quot;,
t = template,
matches = [
[/^0hh12/, function() {
return $tw.utils.pad($tw.utils.getHours12(date));
}],
[/^wYYYY/, function() {
return $tw.utils.getYearForWeekNo(date);
}],
[/^hh12/, function() {
return $tw.utils.getHours12(date);
}],
[/^DDth/, function() {
return date.getDate() + $tw.utils.getDaySuffix(date);
}],
[/^YYYY/, function() {
return date.getFullYear();
}],
[/^0hh/, function() {
return $tw.utils.pad(date.getHours());
}],
[/^0mm/, function() {
return $tw.utils.pad(date.getMinutes());
}],
[/^0ss/, function() {
return $tw.utils.pad(date.getSeconds());
}],
[/^0XXX/, function() {
return $tw.utils.pad(date.getMilliseconds(),3);
}],
[/^0DD/, function() {
return $tw.utils.pad(date.getDate());
}],
[/^0MM/, function() {
return $tw.utils.pad(date.getMonth()+1);
}],
[/^0WW/, function() {
return $tw.utils.pad($tw.utils.getWeek(date));
}],
[/^ddd/, function() {
return $tw.language.getString(&quot;Date/Short/Day/&quot; + date.getDay());
}],
[/^mmm/, function() {
return $tw.language.getString(&quot;Date/Short/Month/&quot; + (date.getMonth() + 1));
}],
[/^DDD/, function() {
return $tw.language.getString(&quot;Date/Long/Day/&quot; + date.getDay());
}],
[/^MMM/, function() {
return $tw.language.getString(&quot;Date/Long/Month/&quot; + (date.getMonth() + 1));
}],
[/^TZD/, function() {
var tz = date.getTimezoneOffset(),
atz = Math.abs(tz);
return (tz &lt; 0 ? '+' : '-') + $tw.utils.pad(Math.floor(atz / 60)) + ':' + $tw.utils.pad(atz % 60);
}],
[/^wYY/, function() {
return $tw.utils.pad($tw.utils.getYearForWeekNo(date) - 2000);
}],
[/^[ap]m/, function() {
return $tw.utils.getAmPm(date).toLowerCase();
}],
[/^hh/, function() {
return date.getHours();
}],
[/^mm/, function() {
return date.getMinutes();
}],
[/^ss/, function() {
return date.getSeconds();
}],
[/^XXX/, function() {
return date.getMilliseconds();
}],
[/^[AP]M/, function() {
return $tw.utils.getAmPm(date).toUpperCase();
}],
[/^DD/, function() {
return date.getDate();
}],
[/^MM/, function() {
return date.getMonth() + 1;
}],
[/^WW/, function() {
return $tw.utils.getWeek(date);
}],
[/^YY/, function() {
return $tw.utils.pad(date.getFullYear() - 2000);
}]
];
// If the user wants everything in UTC, shift the datestamp
// Optimize for format string that essentially means
// 'return raw UTC (tiddlywiki style) date string.'
if(t.indexOf(&quot;[UTC]&quot;) == 0 ) {
if(t == &quot;[UTC]YYYY0MM0DD0hh0mm0ssXXX&quot;)
return $tw.utils.stringifyDate(new Date());
var offset = date.getTimezoneOffset() ; // in minutes
date = new Date(date.getTime()+offset*60*1000) ;
t = t.substr(5) ;
}
while(t.length){
var matchString = &quot;&quot;;
$tw.utils.each(matches, function(m) {
var match = m[0].exec(t);
if(match) {
matchString = m[1].call();
t = t.substr(match[0].length);
return false;
}
});
if(matchString) {
result += matchString;
} else {
result += t.charAt(0);
t = t.substr(1);
}
}
result = result.replace(/\\(.)/g,&quot;$1&quot;);
return result;
};
exports.getAmPm = function(date) {
return $tw.language.getString(&quot;Date/Period/&quot; + (date.getHours() &gt;= 12 ? &quot;pm&quot; : &quot;am&quot;));
};
exports.getDaySuffix = function(date) {
return $tw.language.getString(&quot;Date/DaySuffix/&quot; + date.getDate());
};
exports.getWeek = function(date) {
var dt = new Date(date.getTime());
var d = dt.getDay();
if(d === 0) {
d = 7; // JavaScript Sun=0, ISO Sun=7
}
dt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week to calculate weekNo
var x = new Date(dt.getFullYear(),0,1);
var n = Math.floor((dt.getTime() - x.getTime()) / 86400000);
return Math.floor(n / 7) + 1;
};
exports.getYearForWeekNo = function(date) {
var dt = new Date(date.getTime());
var d = dt.getDay();
if(d === 0) {
d = 7; // JavaScript Sun=0, ISO Sun=7
}
dt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week
return dt.getFullYear();
};
exports.getHours12 = function(date) {
var h = date.getHours();
return h &gt; 12 ? h-12 : ( h &gt; 0 ? h : 12 );
};
/*
Convert a date delta in milliseconds into a string representation of &quot;23 seconds ago&quot;, &quot;27 minutes ago&quot; etc.
delta: delta in milliseconds
Returns an object with these members:
description: string describing the delta period
updatePeriod: time in millisecond until the string will be inaccurate
*/
exports.getRelativeDate = function(delta) {
var futurep = false;
if(delta &lt; 0) {
delta = -1 * delta;
futurep = true;
}
var units = [
{name: &quot;Years&quot;, duration: 365 * 24 * 60 * 60 * 1000},
{name: &quot;Months&quot;, duration: (365/12) * 24 * 60 * 60 * 1000},
{name: &quot;Days&quot;, duration: 24 * 60 * 60 * 1000},
{name: &quot;Hours&quot;, duration: 60 * 60 * 1000},
{name: &quot;Minutes&quot;, duration: 60 * 1000},
{name: &quot;Seconds&quot;, duration: 1000}
];
for(var t=0; t&lt;units.length; t++) {
var result = Math.floor(delta / units[t].duration);
if(result &gt;= 2) {
return {
delta: delta,
description: $tw.language.getString(
&quot;RelativeDate/&quot; + (futurep ? &quot;Future&quot; : &quot;Past&quot;) + &quot;/&quot; + units[t].name,
{variables:
{period: result.toString()}
}
),
updatePeriod: units[t].duration
};
}
}
return {
delta: delta,
description: $tw.language.getString(
&quot;RelativeDate/&quot; + (futurep ? &quot;Future&quot; : &quot;Past&quot;) + &quot;/Second&quot;,
{variables:
{period: &quot;1&quot;}
}
),
updatePeriod: 1000
};
};
// Convert &amp; to &quot;&amp;amp;&quot;, &lt; to &quot;&amp;lt;&quot;, &gt; to &quot;&amp;gt;&quot;, &quot; to &quot;&amp;quot;&quot;
exports.htmlEncode = function(s) {
if(s) {
return s.toString().replace(/&amp;/mg,&quot;&amp;amp;&quot;).replace(/&lt;/mg,&quot;&amp;lt;&quot;).replace(/&gt;/mg,&quot;&amp;gt;&quot;).replace(/\&quot;/mg,&quot;&amp;quot;&quot;);
} else {
return &quot;&quot;;
}
};
// Converts all HTML entities to their character equivalents
exports.entityDecode = function(s) {
var converter = String.fromCodePoint || String.fromCharCode,
e = s.substr(1,s.length-2), // Strip the &amp; and the ;
c;
if(e.charAt(0) === &quot;#&quot;) {
if(e.charAt(1) === &quot;x&quot; || e.charAt(1) === &quot;X&quot;) {
c = parseInt(e.substr(2),16);
} else {
c = parseInt(e.substr(1),10);
}
if(isNaN(c)) {
return s;
} else {
return converter(c);
}
} else {
c = $tw.config.htmlEntities[e];
if(c) {
return converter(c);
} else {
return s; // Couldn't convert it as an entity, just return it raw
}
}
};
exports.unescapeLineBreaks = function(s) {
return s.replace(/\\n/mg,&quot;\n&quot;).replace(/\\b/mg,&quot; &quot;).replace(/\\s/mg,&quot;\\&quot;).replace(/\r/mg,&quot;&quot;);
};
/*
* Returns an escape sequence for given character. Uses \x for characters &lt;=
* 0xFF to save space, \u for the rest.
*
* The code needs to be in sync with th code template in the compilation
* function for &quot;action&quot; nodes.
*/
// Copied from peg.js, thanks to David Majda
exports.escape = function(ch) {
var charCode = ch.charCodeAt(0);
if(charCode &lt;= 0xFF) {
return '\\x' + $tw.utils.pad(charCode.toString(16).toUpperCase());
} else {
return '\\u' + $tw.utils.pad(charCode.toString(16).toUpperCase(),4);
}
};
// Turns a string into a legal JavaScript string
// Copied from peg.js, thanks to David Majda
exports.stringify = function(s) {
/*
* ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a string
* literal except for the closing quote character, backslash, carriage return,
* line separator, paragraph separator, and line feed. Any character may
* appear in the form of an escape sequence.
*
* For portability, we also escape all non-ASCII characters.
*/
return (s || &quot;&quot;)
.replace(/\\/g, '\\\\') // backslash
.replace(/&quot;/g, '\\&quot;') // double quote character
.replace(/'/g, &quot;\\'&quot;) // single quote character
.replace(/\r/g, '\\r') // carriage return
.replace(/\n/g, '\\n') // line feed
.replace(/[\x00-\x1f\x80-\uFFFF]/g, exports.escape); // non-ASCII characters
};
// Turns a string into a legal JSON string
// Derived from peg.js, thanks to David Majda
exports.jsonStringify = function(s) {
// See http://www.json.org/
return (s || &quot;&quot;)
.replace(/\\/g, '\\\\') // backslash
.replace(/&quot;/g, '\\&quot;') // double quote character
.replace(/\r/g, '\\r') // carriage return
.replace(/\n/g, '\\n') // line feed
.replace(/\x08/g, '\\b') // backspace
.replace(/\x0c/g, '\\f') // formfeed
.replace(/\t/g, '\\t') // tab
.replace(/[\x00-\x1f\x80-\uFFFF]/g,function(s) {
return '\\u' + $tw.utils.pad(s.charCodeAt(0).toString(16).toUpperCase(),4);
}); // non-ASCII characters
};
/*
Escape the RegExp special characters with a preceding backslash
*/
exports.escapeRegExp = function(s) {
return s.replace(/[\-\/\\\^\$\*\+\?\.\(\)\|\[\]\{\}]/g, '\\$&amp;');
};
// Checks whether a link target is external, i.e. not a tiddler title
exports.isLinkExternal = function(to) {
var externalRegExp = /^(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s&lt;&gt;{}\[\]`|&quot;\\^]+(?:\/|\b)/i;
return externalRegExp.test(to);
};
exports.nextTick = function(fn) {
/*global window: false */
if(typeof process === &quot;undefined&quot;) {
// Apparently it would be faster to use postMessage - http://dbaron.org/log/20100309-faster-timeouts
window.setTimeout(fn,4);
} else {
process.nextTick(fn);
}
};
/*
Convert a hyphenated CSS property name into a camel case one
*/
exports.unHyphenateCss = function(propName) {
return propName.replace(/-([a-z])/gi, function(match0,match1) {
return match1.toUpperCase();
});
};
/*
Convert a camelcase CSS property name into a dashed one (&quot;backgroundColor&quot; --&gt; &quot;background-color&quot;)
*/
exports.hyphenateCss = function(propName) {
return propName.replace(/([A-Z])/g, function(match0,match1) {
return &quot;-&quot; + match1.toLowerCase();
});
};
/*
Parse a text reference of one of these forms:
* title
* !!field
* title!!field
* title##index
* etc
Returns an object with the following fields, all optional:
* title: tiddler title
* field: tiddler field name
* index: JSON property index
*/
exports.parseTextReference = function(textRef) {
// Separate out the title, field name and/or JSON indices
var reTextRef = /(?:(.*?)!!(.+))|(?:(.*?)##(.+))|(.*)/mg,
match = reTextRef.exec(textRef),
result = {};
if(match &amp;&amp; reTextRef.lastIndex === textRef.length) {
// Return the parts
if(match[1]) {
result.title = match[1];
}
if(match[2]) {
result.field = match[2];
}
if(match[3]) {
result.title = match[3];
}
if(match[4]) {
result.index = match[4];
}
if(match[5]) {
result.title = match[5];
}
} else {
// If we couldn't parse it
result.title = textRef
}
return result;
};
/*
Checks whether a string is a valid fieldname
*/
exports.isValidFieldName = function(name) {
if(!name || typeof name !== &quot;string&quot;) {
return false;
}
name = name.toLowerCase().trim();
var fieldValidatorRegEx = /^[a-z0-9\-\._]+$/mg;
return fieldValidatorRegEx.test(name);
};
/*
Extract the version number from the meta tag or from the boot file
*/
// Browser version
exports.extractVersionInfo = function() {
if($tw.packageInfo) {
return $tw.packageInfo.version;
} else {
var metatags = document.getElementsByTagName(&quot;meta&quot;);
for(var t=0; t&lt;metatags.length; t++) {
var m = metatags[t];
if(m.name === &quot;tiddlywiki-version&quot;) {
return m.content;
}
}
}
return null;
};
/*
Get the animation duration in ms
*/
exports.getAnimationDuration = function() {
return parseInt($tw.wiki.getTiddlerText(&quot;$:/config/AnimationDuration&quot;,&quot;400&quot;),10) || 0;
};
/*
Hash a string to a number
Derived from http://stackoverflow.com/a/15710692
*/
exports.hashString = function(str) {
return str.split(&quot;&quot;).reduce(function(a,b) {
a = ((a &lt;&lt; 5) - a) + b.charCodeAt(0);
return a &amp; a;
},0);
};
/*
Decode a base64 string
*/
exports.base64Decode = function(string64) {
return base64utf8.base64.decode.call(base64utf8,string64);
};
/*
Encode a string to base64
*/
exports.base64Encode = function(string64) {
return base64utf8.base64.encode.call(base64utf8,string64);
};
/*
Convert a hashmap into a tiddler dictionary format sequence of name:value pairs
*/
exports.makeTiddlerDictionary = function(data) {
var output = [];
for(var name in data) {
output.push(name + &quot;: &quot; + data[name]);
}
return output.join(&quot;\n&quot;);
};
/*
High resolution microsecond timer for profiling
*/
exports.timer = function(base) {
var m;
if($tw.node) {
var r = process.hrtime();
m = r[0] * 1e3 + (r[1] / 1e6);
} else if(window.performance) {
m = performance.now();
} else {
m = Date.now();
}
if(typeof base !== &quot;undefined&quot;) {
m = m - base;
}
return m;
};
/*
Convert text and content type to a data URI
*/
exports.makeDataUri = function(text,type,_canonical_uri) {
type = type || &quot;text/vnd.tiddlywiki&quot;;
var typeInfo = $tw.config.contentTypeInfo[type] || $tw.config.contentTypeInfo[&quot;text/plain&quot;],
isBase64 = typeInfo.encoding === &quot;base64&quot;,
parts = [];
if(_canonical_uri) {
parts.push(_canonical_uri);
} else {
parts.push(&quot;data:&quot;);
parts.push(type);
parts.push(isBase64 ? &quot;;base64&quot; : &quot;&quot;);
parts.push(&quot;,&quot;);
parts.push(isBase64 ? text : encodeURIComponent(text));
}
return parts.join(&quot;&quot;);
};
/*
Useful for finding out the fully escaped CSS selector equivalent to a given tag. For example:
$tw.utils.tagToCssSelector(&quot;$:/tags/Stylesheet&quot;) --&gt; tc-tagged-\%24\%3A\%2Ftags\%2FStylesheet
*/
exports.tagToCssSelector = function(tagName) {
return &quot;tc-tagged-&quot; + encodeURIComponent(tagName).replace(/[!&quot;#$%&amp;'()*+,\-./:;&lt;=&gt;?@[\\\]^`{\|}~,]/mg,function(c) {
return &quot;\\&quot; + c;
});
};
/*
IE does not have sign function
*/
exports.sign = Math.sign || function(x) {
x = +x; // convert to a number
if (x === 0 || isNaN(x)) {
return x;
}
return x &gt; 0 ? 1 : -1;
};
/*
IE does not have an endsWith function
*/
exports.strEndsWith = function(str,ending,position) {
if(str.endsWith) {
return str.endsWith(ending,position);
} else {
if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position &gt; str.length) {
position = str.length;
}
position -= ending.length;
var lastIndex = str.indexOf(ending, position);
return lastIndex !== -1 &amp;&amp; lastIndex === position;
}
};
/*
Return system information useful for debugging
*/
exports.getSystemInfo = function(str,ending,position) {
var results = [],
save = function(desc,value) {
results.push(desc + &quot;: &quot; + value);
};
if($tw.browser) {
save(&quot;User Agent&quot;,navigator.userAgent);
save(&quot;Online Status&quot;,window.navigator.onLine);
}
if($tw.node) {
save(&quot;Node Version&quot;,process.version);
}
return results.join(&quot;\n&quot;);
};
exports.parseNumber = function(str) {
return parseFloat(str) || 0;
};
exports.parseInt = function(str) {
return parseInt(str,10) || 0;
};
exports.stringifyNumber = function(num) {
return num + &quot;&quot;;
};
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/action-createtiddler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/action-createtiddler.js
type: application/javascript
module-type: widget
Action widget to create a new tiddler with a unique name and specified fields.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw:false, require:false, exports:false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var CreateTiddlerWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
CreateTiddlerWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
CreateTiddlerWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes();
this.execute();
};
/*
Compute the internal state of the widget
*/
CreateTiddlerWidget.prototype.execute = function() {
this.actionBaseTitle = this.getAttribute(&quot;$basetitle&quot;);
this.hasBase = !!this.actionBaseTitle;
this.actionSaveTitle = this.getAttribute(&quot;$savetitle&quot;);
this.actionSaveDraftTitle = this.getAttribute(&quot;$savedrafttitle&quot;);
this.actionTimestamp = this.getAttribute(&quot;$timestamp&quot;,&quot;yes&quot;) === &quot;yes&quot;;
//Following params are new since 5.1.22
this.actionTemplate = this.getAttribute(&quot;$template&quot;);
this.useTemplate = !!this.actionTemplate;
this.actionOverwrite = this.getAttribute(&quot;$overwrite&quot;,&quot;no&quot;);
};
/*
Refresh the widget by ensuring our attributes are up to date
*/
CreateTiddlerWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if($tw.utils.count(changedAttributes) &gt; 0) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
/*
Invoke the action associated with this widget
*/
CreateTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) {
var title = this.wiki.getTiddlerText(&quot;$:/language/DefaultNewTiddlerTitle&quot;), // Get the initial new-tiddler title
fields = {},
creationFields,
modificationFields;
$tw.utils.each(this.attributes,function(attribute,name) {
if(name.charAt(0) !== &quot;$&quot;) {
fields[name] = attribute;
}
});
if(this.actionTimestamp) {
creationFields = this.wiki.getCreationFields();
modificationFields = this.wiki.getModificationFields();
}
if(this.hasBase &amp;&amp; this.actionOverwrite === &quot;no&quot;) {
title = this.wiki.generateNewTitle(this.actionBaseTitle);
} else if (this.hasBase &amp;&amp; this.actionOverwrite === &quot;yes&quot;) {
title = this.actionBaseTitle
}
// NO $basetitle BUT $template parameter is available
// the title MUST be unique, otherwise the template would be overwritten
if (!this.hasBase &amp;&amp; this.useTemplate) {
title = this.wiki.generateNewTitle(this.actionTemplate);
} else if (!this.hasBase &amp;&amp; !this.useTemplate) {
// If NO $basetitle AND NO $template use initial title
// DON'T overwrite any stuff
title = this.wiki.generateNewTitle(title);
}
var templateTiddler = this.wiki.getTiddler(this.actionTemplate) || {};
var tiddler = this.wiki.addTiddler(new $tw.Tiddler(templateTiddler.fields,creationFields,fields,modificationFields,{title: title}));
if(this.actionSaveTitle) {
this.wiki.setTextReference(this.actionSaveTitle,title,this.getVariable(&quot;currentTiddler&quot;));
}
if(this.actionSaveDraftTitle) {
this.wiki.setTextReference(this.actionSaveDraftTitle,this.wiki.generateDraftTitle(title),this.getVariable(&quot;currentTiddler&quot;));
}
return true; // Action was invoked
};
exports[&quot;action-createtiddler&quot;] = CreateTiddlerWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/action-deletefield.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/action-deletefield.js
type: application/javascript
module-type: widget
Action widget to delete fields of a tiddler.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var DeleteFieldWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
DeleteFieldWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
DeleteFieldWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes();
this.execute();
};
/*
Compute the internal state of the widget
*/
DeleteFieldWidget.prototype.execute = function() {
this.actionTiddler = this.getAttribute(&quot;$tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.actionField = this.getAttribute(&quot;$field&quot;);
};
/*
Refresh the widget by ensuring our attributes are up to date
*/
DeleteFieldWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes[&quot;$tiddler&quot;]) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
/*
Invoke the action associated with this widget
*/
DeleteFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {
var self = this,
tiddler = this.wiki.getTiddler(self.actionTiddler),
removeFields = {},
hasChanged = false;
if(this.actionField &amp;&amp; tiddler) {
removeFields[this.actionField] = undefined;
if(this.actionField in tiddler.fields) {
hasChanged = true;
}
}
if(tiddler) {
$tw.utils.each(this.attributes,function(attribute,name) {
if(name.charAt(0) !== &quot;$&quot; &amp;&amp; name !== &quot;title&quot;) {
removeFields[name] = undefined;
hasChanged = true;
}
});
if(hasChanged) {
this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),tiddler,removeFields,this.wiki.getModificationFields()));
}
}
return true; // Action was invoked
};
exports[&quot;action-deletefield&quot;] = DeleteFieldWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/action-deletetiddler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/action-deletetiddler.js
type: application/javascript
module-type: widget
Action widget to delete a tiddler.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var DeleteTiddlerWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
DeleteTiddlerWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
DeleteTiddlerWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes();
this.execute();
};
/*
Compute the internal state of the widget
*/
DeleteTiddlerWidget.prototype.execute = function() {
this.actionFilter = this.getAttribute(&quot;$filter&quot;);
this.actionTiddler = this.getAttribute(&quot;$tiddler&quot;);
};
/*
Refresh the widget by ensuring our attributes are up to date
*/
DeleteTiddlerWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes[&quot;$filter&quot;] || changedAttributes[&quot;$tiddler&quot;]) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
/*
Invoke the action associated with this widget
*/
DeleteTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) {
var tiddlers = [];
if(this.actionFilter) {
tiddlers = this.wiki.filterTiddlers(this.actionFilter,this);
}
if(this.actionTiddler) {
tiddlers.push(this.actionTiddler);
}
for(var t=0; t&lt;tiddlers.length; t++) {
this.wiki.deleteTiddler(tiddlers[t]);
}
return true; // Action was invoked
};
exports[&quot;action-deletetiddler&quot;] = DeleteTiddlerWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/action-listops.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/action-listops.js
type: application/javascript
module-type: widget
Action widget to apply list operations to any tiddler field (defaults to the 'list' field of the current tiddler)
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var ActionListopsWidget = function(parseTreeNode, options) {
this.initialise(parseTreeNode, options);
};
/**
* Inherit from the base widget class
*/
ActionListopsWidget.prototype = new Widget();
/**
* Render this widget into the DOM
*/
ActionListopsWidget.prototype.render = function(parent, nextSibling) {
this.computeAttributes();
this.execute();
};
/**
* Compute the internal state of the widget
*/
ActionListopsWidget.prototype.execute = function() {
// Get our parameters
this.target = this.getAttribute(&quot;$tiddler&quot;, this.getVariable(
&quot;currentTiddler&quot;));
this.filter = this.getAttribute(&quot;$filter&quot;);
this.subfilter = this.getAttribute(&quot;$subfilter&quot;);
this.listField = this.getAttribute(&quot;$field&quot;, &quot;list&quot;);
this.listIndex = this.getAttribute(&quot;$index&quot;);
this.filtertags = this.getAttribute(&quot;$tags&quot;);
};
/**
* Refresh the widget by ensuring our attributes are up to date
*/
ActionListopsWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.$tiddler || changedAttributes.$filter ||
changedAttributes.$subfilter || changedAttributes.$field ||
changedAttributes.$index || changedAttributes.$tags) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
/**
* Invoke the action associated with this widget
*/
ActionListopsWidget.prototype.invokeAction = function(triggeringWidget,
event) {
//Apply the specified filters to the lists
var field = this.listField,
index,
type = &quot;!!&quot;,
list = this.listField;
if(this.listIndex) {
field = undefined;
index = this.listIndex;
type = &quot;##&quot;;
list = this.listIndex;
}
if(this.filter) {
this.wiki.setText(this.target, field, index, $tw.utils.stringifyList(
this.wiki
.filterTiddlers(this.filter, this)));
}
if(this.subfilter) {
var subfilter = &quot;[list[&quot; + this.target + type + list + &quot;]] &quot; + this.subfilter;
this.wiki.setText(this.target, field, index, $tw.utils.stringifyList(
this.wiki
.filterTiddlers(subfilter, this)));
}
if(this.filtertags) {
var tiddler = this.wiki.getTiddler(this.target),
oldtags = tiddler ? (tiddler.fields.tags || []).slice(0) : [],
tagfilter = &quot;[list[&quot; + this.target + &quot;!!tags]] &quot; + this.filtertags,
newtags = this.wiki.filterTiddlers(tagfilter,this);
if($tw.utils.stringifyList(oldtags.sort()) !== $tw.utils.stringifyList(newtags.sort())) {
this.wiki.setText(this.target,&quot;tags&quot;,undefined,$tw.utils.stringifyList(newtags));
}
}
return true; // Action was invoked
};
exports[&quot;action-listops&quot;] = ActionListopsWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/action-navigate.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/action-navigate.js
type: application/javascript
module-type: widget
Action widget to navigate to a tiddler
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var NavigateWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
NavigateWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
NavigateWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes();
this.execute();
};
/*
Compute the internal state of the widget
*/
NavigateWidget.prototype.execute = function() {
this.actionTo = this.getAttribute(&quot;$to&quot;);
this.actionScroll = this.getAttribute(&quot;$scroll&quot;);
};
/*
Refresh the widget by ensuring our attributes are up to date
*/
NavigateWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes[&quot;$to&quot;] || changedAttributes[&quot;$scroll&quot;]) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
/*
Invoke the action associated with this widget
*/
NavigateWidget.prototype.invokeAction = function(triggeringWidget,event) {
event = event || {};
var bounds = triggeringWidget &amp;&amp; triggeringWidget.getBoundingClientRect &amp;&amp; triggeringWidget.getBoundingClientRect(),
suppressNavigation = event.metaKey || event.ctrlKey || (event.button === 1);
if(this.actionScroll === &quot;yes&quot;) {
suppressNavigation = false;
} else if(this.actionScroll === &quot;no&quot;) {
suppressNavigation = true;
}
this.dispatchEvent({
type: &quot;tm-navigate&quot;,
navigateTo: this.actionTo === undefined ? this.getVariable(&quot;currentTiddler&quot;) : this.actionTo,
navigateFromTitle: this.getVariable(&quot;storyTiddler&quot;),
navigateFromNode: triggeringWidget,
navigateFromClientRect: bounds &amp;&amp; { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height
},
navigateSuppressNavigation: suppressNavigation
});
return true; // Action was invoked
};
exports[&quot;action-navigate&quot;] = NavigateWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/action-popup.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/action-popup.js
type: application/javascript
module-type: widget
Action widget to trigger a popup.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var ActionPopupWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
ActionPopupWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
ActionPopupWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes();
this.execute();
};
/*
Compute the internal state of the widget
*/
ActionPopupWidget.prototype.execute = function() {
this.actionState = this.getAttribute(&quot;$state&quot;);
this.actionCoords = this.getAttribute(&quot;$coords&quot;);
};
/*
Refresh the widget by ensuring our attributes are up to date
*/
ActionPopupWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes[&quot;$state&quot;] || changedAttributes[&quot;$coords&quot;]) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
/*
Invoke the action associated with this widget
*/
ActionPopupWidget.prototype.invokeAction = function(triggeringWidget,event) {
// Trigger the popup
var popupLocationRegExp = /^\((-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+)\)$/,
match = popupLocationRegExp.exec(this.actionCoords);
if(match) {
$tw.popup.triggerPopup({
domNode: null,
domNodeRect: {
left: parseFloat(match[1]),
top: parseFloat(match[2]),
width: parseFloat(match[3]),
height: parseFloat(match[4])
},
title: this.actionState,
wiki: this.wiki
});
}
return true; // Action was invoked
};
exports[&quot;action-popup&quot;] = ActionPopupWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/action-sendmessage.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/action-sendmessage.js
type: application/javascript
module-type: widget
Action widget to send a message
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var SendMessageWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
SendMessageWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
SendMessageWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes();
this.execute();
};
/*
Compute the internal state of the widget
*/
SendMessageWidget.prototype.execute = function() {
this.actionMessage = this.getAttribute(&quot;$message&quot;);
this.actionParam = this.getAttribute(&quot;$param&quot;);
this.actionName = this.getAttribute(&quot;$name&quot;);
this.actionValue = this.getAttribute(&quot;$value&quot;,&quot;&quot;);
};
/*
Refresh the widget by ensuring our attributes are up to date
*/
SendMessageWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(Object.keys(changedAttributes).length) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
/*
Invoke the action associated with this widget
*/
SendMessageWidget.prototype.invokeAction = function(triggeringWidget,event) {
// Get the string parameter
var param = this.actionParam;
// Assemble the attributes as a hashmap
var paramObject = Object.create(null);
var count = 0;
$tw.utils.each(this.attributes,function(attribute,name) {
if(name.charAt(0) !== &quot;$&quot;) {
paramObject[name] = attribute;
count++;
}
});
// Add name/value pair if present
if(this.actionName) {
paramObject[this.actionName] = this.actionValue;
}
// Dispatch the message
this.dispatchEvent({
type: this.actionMessage,
param: param,
paramObject: paramObject,
tiddlerTitle: this.getVariable(&quot;currentTiddler&quot;),
navigateFromTitle: this.getVariable(&quot;storyTiddler&quot;),
event: event
});
return true; // Action was invoked
};
exports[&quot;action-sendmessage&quot;] = SendMessageWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/action-setfield.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/action-setfield.js
type: application/javascript
module-type: widget
Action widget to set a single field or index on a tiddler.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var SetFieldWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
SetFieldWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
SetFieldWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes();
this.execute();
};
/*
Compute the internal state of the widget
*/
SetFieldWidget.prototype.execute = function() {
this.actionTiddler = this.getAttribute(&quot;$tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.actionField = this.getAttribute(&quot;$field&quot;);
this.actionIndex = this.getAttribute(&quot;$index&quot;);
this.actionValue = this.getAttribute(&quot;$value&quot;);
this.actionTimestamp = this.getAttribute(&quot;$timestamp&quot;,&quot;yes&quot;) === &quot;yes&quot;;
};
/*
Refresh the widget by ensuring our attributes are up to date
*/
SetFieldWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes[&quot;$tiddler&quot;] || changedAttributes[&quot;$field&quot;] || changedAttributes[&quot;$index&quot;] || changedAttributes[&quot;$value&quot;]) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
/*
Invoke the action associated with this widget
*/
SetFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {
var self = this,
options = {};
options.suppressTimestamp = !this.actionTimestamp;
if((typeof this.actionField == &quot;string&quot;) || (typeof this.actionIndex == &quot;string&quot;) || (typeof this.actionValue == &quot;string&quot;)) {
this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue,options);
}
$tw.utils.each(this.attributes,function(attribute,name) {
if(name.charAt(0) !== &quot;$&quot;) {
self.wiki.setText(self.actionTiddler,name,undefined,attribute,options);
}
});
return true; // Action was invoked
};
exports[&quot;action-setfield&quot;] = SetFieldWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/browse.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/browse.js
type: application/javascript
module-type: widget
Browse widget for browsing for files to import
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var BrowseWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
BrowseWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
BrowseWidget.prototype.render = function(parent,nextSibling) {
var self = this;
// Remember parent
this.parentDomNode = parent;
// Compute attributes and execute state
this.computeAttributes();
this.execute();
// Create element
var domNode = this.document.createElement(&quot;input&quot;);
domNode.setAttribute(&quot;type&quot;,&quot;file&quot;);
if(this.browseMultiple) {
domNode.setAttribute(&quot;multiple&quot;,&quot;multiple&quot;);
}
if(this.tooltip) {
domNode.setAttribute(&quot;title&quot;,this.tooltip);
}
// Nw.js supports &quot;nwsaveas&quot; to force a &quot;save as&quot; dialogue that allows a new or existing file to be selected
if(this.nwsaveas) {
domNode.setAttribute(&quot;nwsaveas&quot;,this.nwsaveas);
}
// Nw.js supports &quot;webkitdirectory&quot; and &quot;nwdirectory&quot; to allow a directory to be selected
if(this.webkitdirectory) {
domNode.setAttribute(&quot;webkitdirectory&quot;,this.webkitdirectory);
}
if(this.nwdirectory) {
domNode.setAttribute(&quot;nwdirectory&quot;,this.nwdirectory);
}
// Add a click event handler
domNode.addEventListener(&quot;change&quot;,function (event) {
if(self.message) {
self.dispatchEvent({type: self.message, param: self.param, files: event.target.files});
} else {
self.wiki.readFiles(event.target.files,{
callback: function(tiddlerFieldsArray) {
self.dispatchEvent({type: &quot;tm-import-tiddlers&quot;, param: JSON.stringify(tiddlerFieldsArray)});
},
deserializer: self.deserializer
});
}
return false;
},false);
// Insert element
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
this.domNodes.push(domNode);
};
/*
Compute the internal state of the widget
*/
BrowseWidget.prototype.execute = function() {
this.browseMultiple = this.getAttribute(&quot;multiple&quot;);
this.deserializer = this.getAttribute(&quot;deserializer&quot;);
this.message = this.getAttribute(&quot;message&quot;);
this.param = this.getAttribute(&quot;param&quot;);
this.tooltip = this.getAttribute(&quot;tooltip&quot;);
this.nwsaveas = this.getAttribute(&quot;nwsaveas&quot;);
this.webkitdirectory = this.getAttribute(&quot;webkitdirectory&quot;);
this.nwdirectory = this.getAttribute(&quot;nwdirectory&quot;);
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
BrowseWidget.prototype.refresh = function(changedTiddlers) {
return false;
};
exports.browse = BrowseWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/button.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/button.js
type: application/javascript
module-type: widget
Button widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var ButtonWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
ButtonWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
ButtonWidget.prototype.render = function(parent,nextSibling) {
var self = this;
// Remember parent
this.parentDomNode = parent;
// Compute attributes and execute state
this.computeAttributes();
this.execute();
// Create element
var tag = &quot;button&quot;;
if(this.buttonTag &amp;&amp; $tw.config.htmlUnsafeElements.indexOf(this.buttonTag) === -1) {
tag = this.buttonTag;
}
var domNode = this.document.createElement(tag);
// Assign classes
var classes = this[&quot;class&quot;].split(&quot; &quot;) || [],
isPoppedUp = (this.popup || this.popupTitle) &amp;&amp; this.isPoppedUp();
if(this.selectedClass) {
if((this.set || this.setTitle) &amp;&amp; this.setTo &amp;&amp; this.isSelected()) {
$tw.utils.pushTop(classes,this.selectedClass.split(&quot; &quot;));
}
if(isPoppedUp) {
$tw.utils.pushTop(classes,this.selectedClass.split(&quot; &quot;));
}
}
if(isPoppedUp) {
$tw.utils.pushTop(classes,&quot;tc-popup-handle&quot;);
}
domNode.className = classes.join(&quot; &quot;);
// Assign other attributes
if(this.style) {
domNode.setAttribute(&quot;style&quot;,this.style);
}
if(this.tooltip) {
domNode.setAttribute(&quot;title&quot;,this.tooltip);
}
if(this[&quot;aria-label&quot;]) {
domNode.setAttribute(&quot;aria-label&quot;,this[&quot;aria-label&quot;]);
}
// Set the tabindex
if(this.tabIndex) {
domNode.setAttribute(&quot;tabindex&quot;,this.tabIndex);
}
// Add a click event handler
domNode.addEventListener(&quot;click&quot;,function (event) {
var handled = false;
if(self.invokeActions(self,event)) {
handled = true;
}
if(self.to) {
self.navigateTo(event);
handled = true;
}
if(self.message) {
self.dispatchMessage(event);
handled = true;
}
if(self.popup || self.popupTitle) {
self.triggerPopup(event);
handled = true;
}
if(self.set || self.setTitle) {
self.setTiddler();
handled = true;
}
if(self.actions) {
self.invokeActionString(self.actions,self,event);
}
if(handled) {
event.preventDefault();
event.stopPropagation();
}
return handled;
},false);
// Make it draggable if required
if(this.dragTiddler || this.dragFilter) {
$tw.utils.makeDraggable({
domNode: domNode,
dragTiddlerFn: function() {return self.dragTiddler;},
dragFilterFn: function() {return self.dragFilter;},
widget: this
});
}
// Insert element
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
this.domNodes.push(domNode);
};
/*
We don't allow actions to propagate because we trigger actions ourselves
*/
ButtonWidget.prototype.allowActionPropagation = function() {
return false;
};
ButtonWidget.prototype.getBoundingClientRect = function() {
return this.domNodes[0].getBoundingClientRect();
};
ButtonWidget.prototype.isSelected = function() {
return this.setTitle ? (this.setField ? this.wiki.getTiddler(this.setTitle).getFieldString(this.setField) === this.setTo :
(this.setIndex ? this.wiki.extractTiddlerDataItem(this.setTitle,this.setIndex) === this.setTo :
this.wiki.getTiddlerText(this.setTitle))) || this.defaultSetValue || this.getVariable(&quot;currentTiddler&quot;) :
this.wiki.getTextReference(this.set,this.defaultSetValue,this.getVariable(&quot;currentTiddler&quot;)) === this.setTo;
};
ButtonWidget.prototype.isPoppedUp = function() {
var tiddler = this.popupTitle ? this.wiki.getTiddler(this.popupTitle) : this.wiki.getTiddler(this.popup);
var result = tiddler &amp;&amp; tiddler.fields.text ? $tw.popup.readPopupState(tiddler.fields.text) : false;
return result;
};
ButtonWidget.prototype.navigateTo = function(event) {
var bounds = this.getBoundingClientRect();
this.dispatchEvent({
type: &quot;tm-navigate&quot;,
navigateTo: this.to,
navigateFromTitle: this.getVariable(&quot;storyTiddler&quot;),
navigateFromNode: this,
navigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height
},
navigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1),
event: event
});
};
ButtonWidget.prototype.dispatchMessage = function(event) {
this.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable(&quot;currentTiddler&quot;), event: event});
};
ButtonWidget.prototype.triggerPopup = function(event) {
if(this.popupTitle) {
$tw.popup.triggerPopup({
domNode: this.domNodes[0],
title: this.popupTitle,
wiki: this.wiki,
noStateReference: true
});
} else {
$tw.popup.triggerPopup({
domNode: this.domNodes[0],
title: this.popup,
wiki: this.wiki
});
}
};
ButtonWidget.prototype.setTiddler = function() {
if(this.setTitle) {
this.setField ? this.wiki.setText(this.setTitle,this.setField,undefined,this.setTo) :
(this.setIndex ? this.wiki.setText(this.setTitle,undefined,this.setIndex,this.setTo) :
this.wiki.setText(this.setTitle,&quot;text&quot;,undefined,this.setTo));
} else {
this.wiki.setTextReference(this.set,this.setTo,this.getVariable(&quot;currentTiddler&quot;));
}
};
/*
Compute the internal state of the widget
*/
ButtonWidget.prototype.execute = function() {
// Get attributes
this.actions = this.getAttribute(&quot;actions&quot;);
this.to = this.getAttribute(&quot;to&quot;);
this.message = this.getAttribute(&quot;message&quot;);
this.param = this.getAttribute(&quot;param&quot;);
this.set = this.getAttribute(&quot;set&quot;);
this.setTo = this.getAttribute(&quot;setTo&quot;);
this.popup = this.getAttribute(&quot;popup&quot;);
this.hover = this.getAttribute(&quot;hover&quot;);
this[&quot;class&quot;] = this.getAttribute(&quot;class&quot;,&quot;&quot;);
this[&quot;aria-label&quot;] = this.getAttribute(&quot;aria-label&quot;);
this.tooltip = this.getAttribute(&quot;tooltip&quot;);
this.style = this.getAttribute(&quot;style&quot;);
this.selectedClass = this.getAttribute(&quot;selectedClass&quot;);
this.defaultSetValue = this.getAttribute(&quot;default&quot;,&quot;&quot;);
this.buttonTag = this.getAttribute(&quot;tag&quot;);
this.dragTiddler = this.getAttribute(&quot;dragTiddler&quot;);
this.dragFilter = this.getAttribute(&quot;dragFilter&quot;);
this.setTitle = this.getAttribute(&quot;setTitle&quot;);
this.setField = this.getAttribute(&quot;setField&quot;);
this.setIndex = this.getAttribute(&quot;setIndex&quot;);
this.popupTitle = this.getAttribute(&quot;popupTitle&quot;);
this.tabIndex = this.getAttribute(&quot;tabindex&quot;);
// Make child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
ButtonWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.actions || changedAttributes.to || changedAttributes.message || changedAttributes.param || changedAttributes.set || changedAttributes.setTo || changedAttributes.popup || changedAttributes.hover || changedAttributes[&quot;class&quot;] || changedAttributes.selectedClass || changedAttributes.style || changedAttributes.dragFilter || changedAttributes.dragTiddler || (this.set &amp;&amp; changedTiddlers[this.set]) || (this.popup &amp;&amp; changedTiddlers[this.popup]) || (this.popupTitle &amp;&amp; changedTiddlers[this.popupTitle]) || changedAttributes.setTitle || changedAttributes.setField || changedAttributes.setIndex || changedAttributes.popupTitle) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
exports.button = ButtonWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/checkbox.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/checkbox.js
type: application/javascript
module-type: widget
Checkbox widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var CheckboxWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
CheckboxWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
CheckboxWidget.prototype.render = function(parent,nextSibling) {
// Save the parent dom node
this.parentDomNode = parent;
// Compute our attributes
this.computeAttributes();
// Execute our logic
this.execute();
// Create our elements
this.labelDomNode = this.document.createElement(&quot;label&quot;);
this.labelDomNode.setAttribute(&quot;class&quot;,this.checkboxClass);
this.inputDomNode = this.document.createElement(&quot;input&quot;);
this.inputDomNode.setAttribute(&quot;type&quot;,&quot;checkbox&quot;);
if(this.getValue()) {
this.inputDomNode.setAttribute(&quot;checked&quot;,&quot;true&quot;);
}
this.labelDomNode.appendChild(this.inputDomNode);
this.spanDomNode = this.document.createElement(&quot;span&quot;);
this.labelDomNode.appendChild(this.spanDomNode);
// Add a click event handler
$tw.utils.addEventListeners(this.inputDomNode,[
{name: &quot;change&quot;, handlerObject: this, handlerMethod: &quot;handleChangeEvent&quot;}
]);
// Insert the label into the DOM and render any children
parent.insertBefore(this.labelDomNode,nextSibling);
this.renderChildren(this.spanDomNode,null);
this.domNodes.push(this.labelDomNode);
};
CheckboxWidget.prototype.getValue = function() {
var tiddler = this.wiki.getTiddler(this.checkboxTitle);
if(tiddler) {
if(this.checkboxTag) {
if(this.checkboxInvertTag) {
return !tiddler.hasTag(this.checkboxTag);
} else {
return tiddler.hasTag(this.checkboxTag);
}
}
if(this.checkboxField) {
var value;
if($tw.utils.hop(tiddler.fields,this.checkboxField)) {
value = tiddler.fields[this.checkboxField] || &quot;&quot;;
} else {
value = this.checkboxDefault || &quot;&quot;;
}
if(value === this.checkboxChecked) {
return true;
}
if(value === this.checkboxUnchecked) {
return false;
}
}
if(this.checkboxIndex) {
var value = this.wiki.extractTiddlerDataItem(tiddler,this.checkboxIndex,this.checkboxDefault || &quot;&quot;);
if(value === this.checkboxChecked) {
return true;
}
if(value === this.checkboxUnchecked) {
return false;
}
}
} else {
if(this.checkboxTag) {
return false;
}
if(this.checkboxField) {
if(this.checkboxDefault === this.checkboxChecked) {
return true;
}
if(this.checkboxDefault === this.checkboxUnchecked) {
return false;
}
}
}
return false;
};
CheckboxWidget.prototype.handleChangeEvent = function(event) {
var checked = this.inputDomNode.checked,
tiddler = this.wiki.getTiddler(this.checkboxTitle),
fallbackFields = {text: &quot;&quot;},
newFields = {title: this.checkboxTitle},
hasChanged = false,
tagCheck = false,
hasTag = tiddler &amp;&amp; tiddler.hasTag(this.checkboxTag),
value = checked ? this.checkboxChecked : this.checkboxUnchecked;
if(this.checkboxTag &amp;&amp; this.checkboxInvertTag === &quot;yes&quot;) {
tagCheck = hasTag === checked;
} else {
tagCheck = hasTag !== checked;
}
// Set the tag if specified
if(this.checkboxTag &amp;&amp; (!tiddler || tagCheck)) {
newFields.tags = tiddler ? (tiddler.fields.tags || []).slice(0) : [];
var pos = newFields.tags.indexOf(this.checkboxTag);
if(pos !== -1) {
newFields.tags.splice(pos,1);
}
if(this.checkboxInvertTag === &quot;yes&quot; &amp;&amp; !checked) {
newFields.tags.push(this.checkboxTag);
} else if(this.checkboxInvertTag !== &quot;yes&quot; &amp;&amp; checked) {
newFields.tags.push(this.checkboxTag);
}
hasChanged = true;
}
// Set the field if specified
if(this.checkboxField) {
if(!tiddler || tiddler.fields[this.checkboxField] !== value) {
newFields[this.checkboxField] = value;
hasChanged = true;
}
}
// Set the index if specified
if(this.checkboxIndex) {
var indexValue = this.wiki.extractTiddlerDataItem(this.checkboxTitle,this.checkboxIndex);
if(!tiddler || indexValue !== value) {
hasChanged = true;
}
}
if(hasChanged) {
if(this.checkboxIndex) {
this.wiki.setText(this.checkboxTitle,&quot;&quot;,this.checkboxIndex,value);
} else {
this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),fallbackFields,tiddler,newFields,this.wiki.getModificationFields()));
}
}
// Trigger actions
if(this.checkboxActions) {
this.invokeActionString(this.checkboxActions,this,event);
}
if(this.checkboxCheckActions &amp;&amp; checked) {
this.invokeActionString(this.checkboxCheckActions,this,event);
}
if(this.checkboxUncheckActions &amp;&amp; !checked) {
this.invokeActionString(this.checkboxUncheckActions,this,event);
}
};
/*
Compute the internal state of the widget
*/
CheckboxWidget.prototype.execute = function() {
// Get the parameters from the attributes
this.checkboxActions = this.getAttribute(&quot;actions&quot;);
this.checkboxCheckActions = this.getAttribute(&quot;checkactions&quot;);
this.checkboxUncheckActions = this.getAttribute(&quot;uncheckactions&quot;);
this.checkboxTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.checkboxTag = this.getAttribute(&quot;tag&quot;);
this.checkboxField = this.getAttribute(&quot;field&quot;);
this.checkboxIndex = this.getAttribute(&quot;index&quot;);
this.checkboxChecked = this.getAttribute(&quot;checked&quot;);
this.checkboxUnchecked = this.getAttribute(&quot;unchecked&quot;);
this.checkboxDefault = this.getAttribute(&quot;default&quot;);
this.checkboxClass = this.getAttribute(&quot;class&quot;,&quot;&quot;);
this.checkboxInvertTag = this.getAttribute(&quot;invertTag&quot;,&quot;&quot;);
// Make the child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
CheckboxWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.tiddler || changedAttributes.tag || changedAttributes.invertTag || changedAttributes.field || changedAttributes.index || changedAttributes.checked || changedAttributes.unchecked || changedAttributes[&quot;default&quot;] || changedAttributes[&quot;class&quot;]) {
this.refreshSelf();
return true;
} else {
var refreshed = false;
if(changedTiddlers[this.checkboxTitle]) {
this.inputDomNode.checked = this.getValue();
refreshed = true;
}
return this.refreshChildren(changedTiddlers) || refreshed;
}
};
exports.checkbox = CheckboxWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/codeblock.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/codeblock.js
type: application/javascript
module-type: widget
Code block node widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var CodeBlockWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
CodeBlockWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
CodeBlockWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
var codeNode = this.document.createElement(&quot;code&quot;),
domNode = this.document.createElement(&quot;pre&quot;);
codeNode.appendChild(this.document.createTextNode(this.getAttribute(&quot;code&quot;)));
domNode.appendChild(codeNode);
parent.insertBefore(domNode,nextSibling);
this.domNodes.push(domNode);
if(this.postRender) {
this.postRender();
}
};
/*
Compute the internal state of the widget
*/
CodeBlockWidget.prototype.execute = function() {
this.language = this.getAttribute(&quot;language&quot;);
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
CodeBlockWidget.prototype.refresh = function(changedTiddlers) {
return false;
};
exports.codeblock = CodeBlockWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/count.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/count.js
type: application/javascript
module-type: widget
Count widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var CountWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
CountWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
CountWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
var textNode = this.document.createTextNode(this.currentCount);
parent.insertBefore(textNode,nextSibling);
this.domNodes.push(textNode);
};
/*
Compute the internal state of the widget
*/
CountWidget.prototype.execute = function() {
// Get parameters from our attributes
this.filter = this.getAttribute(&quot;filter&quot;);
// Execute the filter
if(this.filter) {
this.currentCount = this.wiki.filterTiddlers(this.filter,this).length;
} else {
this.currentCount = &quot;0&quot;;
}
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
CountWidget.prototype.refresh = function(changedTiddlers) {
// Re-execute the filter to get the count
this.computeAttributes();
var oldCount = this.currentCount;
this.execute();
if(this.currentCount !== oldCount) {
// Regenerate and rerender the widget and replace the existing DOM node
this.refreshSelf();
return true;
} else {
return false;
}
};
exports.count = CountWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/diff-text.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/diff-text.js
type: application/javascript
module-type: widget
Widget to display a diff between two texts
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget,
dmp = require(&quot;$:/core/modules/utils/diff-match-patch/diff_match_patch.js&quot;);
var DiffTextWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
DiffTextWidget.prototype = new Widget();
DiffTextWidget.prototype.invisibleCharacters = {
&quot;\n&quot;: &quot;↩︎\n&quot;,
&quot;\r&quot;: &quot;⇠&quot;,
&quot;\t&quot;: &quot;⇥\t&quot;
};
/*
Render this widget into the DOM
*/
DiffTextWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
// Create the diff
var dmpObject = new dmp.diff_match_patch(),
diffs = dmpObject.diff_main(this.getAttribute(&quot;source&quot;),this.getAttribute(&quot;dest&quot;));
// Apply required cleanup
switch(this.getAttribute(&quot;cleanup&quot;,&quot;semantic&quot;)) {
case &quot;none&quot;:
// No cleanup
break;
case &quot;efficiency&quot;:
dmpObject.diff_cleanupEfficiency(diffs);
break;
default: // case &quot;semantic&quot;
dmpObject.diff_cleanupSemantic(diffs);
break;
}
// Create the elements
var domContainer = this.document.createElement(&quot;div&quot;),
domDiff = this.createDiffDom(diffs);
parent.insertBefore(domContainer,nextSibling);
// Set variables
this.setVariable(&quot;diff-count&quot;,diffs.reduce(function(acc,diff) {
if(diff[0] !== dmp.DIFF_EQUAL) {
acc++;
}
return acc;
},0).toString());
// Render child widgets
this.renderChildren(domContainer,null);
// Render the diff
domContainer.appendChild(domDiff);
// Save our container
this.domNodes.push(domContainer);
};
/*
Create DOM elements representing a list of diffs
*/
DiffTextWidget.prototype.createDiffDom = function(diffs) {
var self = this;
// Create the element and assign the attributes
var domPre = this.document.createElement(&quot;pre&quot;),
domCode = this.document.createElement(&quot;code&quot;);
$tw.utils.each(diffs,function(diff) {
var tag = diff[0] === dmp.DIFF_INSERT ? &quot;ins&quot; : (diff[0] === dmp.DIFF_DELETE ? &quot;del&quot; : &quot;span&quot;),
className = diff[0] === dmp.DIFF_INSERT ? &quot;tc-diff-insert&quot; : (diff[0] === dmp.DIFF_DELETE ? &quot;tc-diff-delete&quot; : &quot;tc-diff-equal&quot;),
dom = self.document.createElement(tag),
text = diff[1],
currPos = 0,
re = /([\x00-\x1F])/mg,
match = re.exec(text),
span,
printable;
dom.className = className;
while(match) {
if(currPos &lt; match.index) {
dom.appendChild(self.document.createTextNode(text.slice(currPos,match.index)));
}
span = self.document.createElement(&quot;span&quot;);
span.className = &quot;tc-diff-invisible&quot;;
printable = self.invisibleCharacters[match[0]] || (&quot;[0x&quot; + match[0].charCodeAt(0).toString(16) + &quot;]&quot;);
span.appendChild(self.document.createTextNode(printable));
dom.appendChild(span);
currPos = match.index + match[0].length;
match = re.exec(text);
}
if(currPos &lt; text.length) {
dom.appendChild(self.document.createTextNode(text.slice(currPos)));
}
domCode.appendChild(dom);
});
domPre.appendChild(domCode);
return domPre;
};
/*
Compute the internal state of the widget
*/
DiffTextWidget.prototype.execute = function() {
// Make child widgets
var parseTreeNodes;
if(this.parseTreeNode &amp;&amp; this.parseTreeNode.children &amp;&amp; this.parseTreeNode.children.length &gt; 0) {
parseTreeNodes = this.parseTreeNode.children;
} else {
parseTreeNodes = [{
type: &quot;transclude&quot;,
attributes: {
tiddler: {type: &quot;string&quot;, value: &quot;$:/language/Diffs/CountMessage&quot;}
}
}];
}
this.makeChildWidgets(parseTreeNodes);
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
DiffTextWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.source || changedAttributes.dest || changedAttributes.cleanup) {
this.refreshSelf();
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
exports[&quot;diff-text&quot;] = DiffTextWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/draggable.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/draggable.js
type: application/javascript
module-type: widget
Draggable widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var DraggableWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
DraggableWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
DraggableWidget.prototype.render = function(parent,nextSibling) {
var self = this;
// Save the parent dom node
this.parentDomNode = parent;
// Compute our attributes
this.computeAttributes();
// Execute our logic
this.execute();
// Sanitise the specified tag
var tag = this.draggableTag;
if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
tag = &quot;div&quot;;
}
// Create our element
var domNode = this.document.createElement(tag);
// Assign classes
var classes = [&quot;tc-draggable&quot;];
if(this.draggableClasses) {
classes.push(this.draggableClasses);
}
domNode.setAttribute(&quot;class&quot;,classes.join(&quot; &quot;));
// Add event handlers
$tw.utils.makeDraggable({
domNode: domNode,
dragTiddlerFn: function() {return self.getAttribute(&quot;tiddler&quot;);},
dragFilterFn: function() {return self.getAttribute(&quot;filter&quot;);},
startActions: self.startActions,
endActions: self.endActions,
widget: this
});
// Insert the link into the DOM and render any children
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
this.domNodes.push(domNode);
};
/*
Compute the internal state of the widget
*/
DraggableWidget.prototype.execute = function() {
// Pick up our attributes
this.draggableTag = this.getAttribute(&quot;tag&quot;,&quot;div&quot;);
this.draggableClasses = this.getAttribute(&quot;class&quot;);
this.startActions = this.getAttribute(&quot;startactions&quot;);
this.endActions = this.getAttribute(&quot;endactions&quot;);
// Make the child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
DraggableWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.tag || changedAttributes[&quot;class&quot;]) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
exports.draggable = DraggableWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/droppable.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/droppable.js
type: application/javascript
module-type: widget
Droppable widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var DroppableWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
DroppableWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
DroppableWidget.prototype.render = function(parent,nextSibling) {
var self = this;
// Remember parent
this.parentDomNode = parent;
// Compute attributes and execute state
this.computeAttributes();
this.execute();
var tag = this.parseTreeNode.isBlock ? &quot;div&quot; : &quot;span&quot;;
if(this.droppableTag &amp;&amp; $tw.config.htmlUnsafeElements.indexOf(this.droppableTag) === -1) {
tag = this.droppableTag;
}
// Create element and assign classes
var domNode = this.document.createElement(tag),
classes = (this[&quot;class&quot;] || &quot;&quot;).split(&quot; &quot;);
classes.push(&quot;tc-droppable&quot;);
domNode.className = classes.join(&quot; &quot;);
// Add event handlers
if(this.droppableEnable) {
$tw.utils.addEventListeners(domNode,[
{name: &quot;dragenter&quot;, handlerObject: this, handlerMethod: &quot;handleDragEnterEvent&quot;},
{name: &quot;dragover&quot;, handlerObject: this, handlerMethod: &quot;handleDragOverEvent&quot;},
{name: &quot;dragleave&quot;, handlerObject: this, handlerMethod: &quot;handleDragLeaveEvent&quot;},
{name: &quot;drop&quot;, handlerObject: this, handlerMethod: &quot;handleDropEvent&quot;}
]);
}
// Insert element
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
this.domNodes.push(domNode);
// Stack of outstanding enter/leave events
this.currentlyEntered = [];
};
DroppableWidget.prototype.enterDrag = function(event) {
if(this.currentlyEntered.indexOf(event.target) === -1) {
this.currentlyEntered.push(event.target);
}
// If we're entering for the first time we need to apply highlighting
$tw.utils.addClass(this.domNodes[0],&quot;tc-dragover&quot;);
};
DroppableWidget.prototype.leaveDrag = function(event) {
var pos = this.currentlyEntered.indexOf(event.target);
if(pos !== -1) {
this.currentlyEntered.splice(pos,1);
}
// Remove highlighting if we're leaving externally. The hacky second condition is to resolve a problem with Firefox whereby there is an erroneous dragenter event if the node being dragged is within the dropzone
if(this.currentlyEntered.length === 0 || (this.currentlyEntered.length === 1 &amp;&amp; this.currentlyEntered[0] === $tw.dragInProgress)) {
this.currentlyEntered = [];
$tw.utils.removeClass(this.domNodes[0],&quot;tc-dragover&quot;);
}
};
DroppableWidget.prototype.handleDragEnterEvent = function(event) {
this.enterDrag(event);
// Tell the browser that we're ready to handle the drop
event.preventDefault();
// Tell the browser not to ripple the drag up to any parent drop handlers
event.stopPropagation();
return false;
};
DroppableWidget.prototype.handleDragOverEvent = function(event) {
// Check for being over a TEXTAREA or INPUT
if([&quot;TEXTAREA&quot;,&quot;INPUT&quot;].indexOf(event.target.tagName) !== -1) {
return false;
}
// Tell the browser that we're still interested in the drop
event.preventDefault();
// Set the drop effect
event.dataTransfer.dropEffect = this.droppableEffect;
return false;
};
DroppableWidget.prototype.handleDragLeaveEvent = function(event) {
this.leaveDrag(event);
return false;
};
DroppableWidget.prototype.handleDropEvent = function(event) {
var self = this;
this.leaveDrag(event);
// Check for being over a TEXTAREA or INPUT
if([&quot;TEXTAREA&quot;,&quot;INPUT&quot;].indexOf(event.target.tagName) !== -1) {
return false;
}
var dataTransfer = event.dataTransfer;
// Remove highlighting
$tw.utils.removeClass(this.domNodes[0],&quot;tc-dragover&quot;);
// Try to import the various data types we understand
$tw.utils.importDataTransfer(dataTransfer,null,function(fieldsArray) {
fieldsArray.forEach(function(fields) {
self.performActions(fields.title || fields.text,event);
});
});
// Tell the browser that we handled the drop
event.preventDefault();
// Stop the drop ripple up to any parent handlers
event.stopPropagation();
return false;
};
DroppableWidget.prototype.performActions = function(title,event) {
if(this.droppableActions) {
var modifierKey = event.ctrlKey &amp;&amp; ! event.shiftKey ? &quot;ctrl&quot; : event.shiftKey &amp;&amp; !event.ctrlKey ? &quot;shift&quot; :
event.ctrlKey &amp;&amp; event.shiftKey ? &quot;ctrl-shift&quot; : &quot;normal&quot; ;
this.invokeActionString(this.droppableActions,this,event,{actionTiddler: title, modifier: modifierKey});
}
};
/*
Compute the internal state of the widget
*/
DroppableWidget.prototype.execute = function() {
this.droppableActions = this.getAttribute(&quot;actions&quot;);
this.droppableEffect = this.getAttribute(&quot;effect&quot;,&quot;copy&quot;);
this.droppableTag = this.getAttribute(&quot;tag&quot;);
this.droppableClass = this.getAttribute(&quot;class&quot;);
this.droppableEnable = (this.getAttribute(&quot;enable&quot;) || &quot;yes&quot;) === &quot;yes&quot;;
// Make child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
DroppableWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes[&quot;class&quot;] || changedAttributes.tag || changedAttributes.enable) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
exports.droppable = DroppableWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/dropzone.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/dropzone.js
type: application/javascript
module-type: widget
Dropzone widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var DropZoneWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
DropZoneWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
DropZoneWidget.prototype.render = function(parent,nextSibling) {
var self = this;
// Remember parent
this.parentDomNode = parent;
// Compute attributes and execute state
this.computeAttributes();
this.execute();
// Create element
var domNode = this.document.createElement(&quot;div&quot;);
domNode.className = this.dropzoneClass || &quot;tc-dropzone&quot;;
// Add event handlers
if(this.dropzoneEnable) {
$tw.utils.addEventListeners(domNode,[
{name: &quot;dragenter&quot;, handlerObject: this, handlerMethod: &quot;handleDragEnterEvent&quot;},
{name: &quot;dragover&quot;, handlerObject: this, handlerMethod: &quot;handleDragOverEvent&quot;},
{name: &quot;dragleave&quot;, handlerObject: this, handlerMethod: &quot;handleDragLeaveEvent&quot;},
{name: &quot;drop&quot;, handlerObject: this, handlerMethod: &quot;handleDropEvent&quot;},
{name: &quot;paste&quot;, handlerObject: this, handlerMethod: &quot;handlePasteEvent&quot;},
{name: &quot;dragend&quot;, handlerObject: this, handlerMethod: &quot;handleDragEndEvent&quot;}
]);
}
domNode.addEventListener(&quot;click&quot;,function (event) {
},false);
// Insert element
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
this.domNodes.push(domNode);
// Stack of outstanding enter/leave events
this.currentlyEntered = [];
};
DropZoneWidget.prototype.enterDrag = function(event) {
if(this.currentlyEntered.indexOf(event.target) === -1) {
this.currentlyEntered.push(event.target);
}
// If we're entering for the first time we need to apply highlighting
$tw.utils.addClass(this.domNodes[0],&quot;tc-dragover&quot;);
};
DropZoneWidget.prototype.leaveDrag = function(event) {
var pos = this.currentlyEntered.indexOf(event.target);
if(pos !== -1) {
this.currentlyEntered.splice(pos,1);
}
// Remove highlighting if we're leaving externally
if(this.currentlyEntered.length === 0) {
$tw.utils.removeClass(this.domNodes[0],&quot;tc-dragover&quot;);
}
};
DropZoneWidget.prototype.handleDragEnterEvent = function(event) {
// Check for this window being the source of the drag
if($tw.dragInProgress) {
return false;
}
this.enterDrag(event);
// Tell the browser that we're ready to handle the drop
event.preventDefault();
// Tell the browser not to ripple the drag up to any parent drop handlers
event.stopPropagation();
};
DropZoneWidget.prototype.handleDragOverEvent = function(event) {
// Check for being over a TEXTAREA or INPUT
if([&quot;TEXTAREA&quot;,&quot;INPUT&quot;].indexOf(event.target.tagName) !== -1) {
return false;
}
// Check for this window being the source of the drag
if($tw.dragInProgress) {
return false;
}
// Tell the browser that we're still interested in the drop
event.preventDefault();
event.dataTransfer.dropEffect = &quot;copy&quot;; // Explicitly show this is a copy
};
DropZoneWidget.prototype.handleDragLeaveEvent = function(event) {
this.leaveDrag(event);
};
DropZoneWidget.prototype.handleDragEndEvent = function(event) {
$tw.utils.removeClass(this.domNodes[0],&quot;tc-dragover&quot;);
};
DropZoneWidget.prototype.handleDropEvent = function(event) {
var self = this,
readFileCallback = function(tiddlerFieldsArray) {
self.dispatchEvent({type: &quot;tm-import-tiddlers&quot;, param: JSON.stringify(tiddlerFieldsArray)});
};
this.leaveDrag(event);
// Check for being over a TEXTAREA or INPUT
if([&quot;TEXTAREA&quot;,&quot;INPUT&quot;].indexOf(event.target.tagName) !== -1) {
return false;
}
// Check for this window being the source of the drag
if($tw.dragInProgress) {
return false;
}
var self = this,
dataTransfer = event.dataTransfer;
// Remove highlighting
$tw.utils.removeClass(this.domNodes[0],&quot;tc-dragover&quot;);
// Import any files in the drop
var numFiles = 0;
if(dataTransfer.files) {
numFiles = this.wiki.readFiles(dataTransfer.files,{
callback: readFileCallback,
deserializer: this.dropzoneDeserializer
});
}
// Try to import the various data types we understand
if(numFiles === 0) {
$tw.utils.importDataTransfer(dataTransfer,this.wiki.generateNewTitle(&quot;Untitled&quot;),readFileCallback);
}
// Tell the browser that we handled the drop
event.preventDefault();
// Stop the drop ripple up to any parent handlers
event.stopPropagation();
};
DropZoneWidget.prototype.handlePasteEvent = function(event) {
var self = this,
readFileCallback = function(tiddlerFieldsArray) {
self.dispatchEvent({type: &quot;tm-import-tiddlers&quot;, param: JSON.stringify(tiddlerFieldsArray)});
};
// Let the browser handle it if we're in a textarea or input box
if([&quot;TEXTAREA&quot;,&quot;INPUT&quot;].indexOf(event.target.tagName) == -1 &amp;&amp; !event.target.isContentEditable) {
var self = this,
items = event.clipboardData.items;
// Enumerate the clipboard items
for(var t = 0; t&lt;items.length; t++) {
var item = items[t];
if(item.kind === &quot;file&quot;) {
// Import any files
this.wiki.readFile(item.getAsFile(),{
callback: readFileCallback,
deserializer: this.dropzoneDeserializer
});
} else if(item.kind === &quot;string&quot;) {
// Create tiddlers from string items
var type = item.type;
item.getAsString(function(str) {
var tiddlerFields = {
title: self.wiki.generateNewTitle(&quot;Untitled&quot;),
text: str,
type: type
};
if($tw.log.IMPORT) {
console.log(&quot;Importing string '&quot; + str + &quot;', type: '&quot; + type + &quot;'&quot;);
}
self.dispatchEvent({type: &quot;tm-import-tiddlers&quot;, param: JSON.stringify([tiddlerFields])});
});
}
}
// Tell the browser that we've handled the paste
event.stopPropagation();
event.preventDefault();
}
};
/*
Compute the internal state of the widget
*/
DropZoneWidget.prototype.execute = function() {
this.dropzoneClass = this.getAttribute(&quot;class&quot;);
this.dropzoneDeserializer = this.getAttribute(&quot;deserializer&quot;);
this.dropzoneEnable = (this.getAttribute(&quot;enable&quot;) || &quot;yes&quot;) === &quot;yes&quot;;
// Make child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
DropZoneWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.enable) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
exports.dropzone = DropZoneWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/edit-binary.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/edit-binary.js
type: application/javascript
module-type: widget
Edit-binary widget; placeholder for editing binary tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var BINARY_WARNING_MESSAGE = &quot;$:/core/ui/BinaryWarning&quot;;
var EXPORT_BUTTON_IMAGE = &quot;$:/core/images/export-button&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var EditBinaryWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
EditBinaryWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
EditBinaryWidget.prototype.render = function(parent,nextSibling) {
var self = this;
// Save the parent dom node
this.parentDomNode = parent;
// Compute our attributes
this.computeAttributes();
// Execute our logic
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
EditBinaryWidget.prototype.execute = function() {
// Get our parameters
var editTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
var tiddler = this.wiki.getTiddler(editTitle);
var type = tiddler.fields.type;
var text = tiddler.fields.text;
// Transclude the binary data tiddler warning message
var warn = {
type: &quot;element&quot;,
tag: &quot;p&quot;,
children: [{
type: &quot;transclude&quot;,
attributes: {
tiddler: {type: &quot;string&quot;, value: BINARY_WARNING_MESSAGE}
}
}]
};
// Create download link based on draft tiddler title
var link = {
type: &quot;element&quot;,
tag: &quot;a&quot;,
attributes: {
title: {type: &quot;indirect&quot;, textReference: &quot;!!draft.title&quot;},
download: {type: &quot;indirect&quot;, textReference: &quot;!!draft.title&quot;}
},
children: [{
type: &quot;transclude&quot;,
attributes: {
tiddler: {type: &quot;string&quot;, value: EXPORT_BUTTON_IMAGE}
}
}]
};
// Set the link href to internal data URI (no external)
if(text) {
link.attributes.href = {
type: &quot;string&quot;,
value: &quot;data:&quot; + type + &quot;;base64,&quot; + text
};
}
// Combine warning message and download link in a div
var element = {
type: &quot;element&quot;,
tag: &quot;div&quot;,
attributes: {
class: {type: &quot;string&quot;, value: &quot;tc-binary-warning&quot;}
},
children: [warn, link]
}
// Construct the child widgets
this.makeChildWidgets([element]);
};
/*
Refresh by refreshing our child widget
*/
EditBinaryWidget.prototype.refresh = function(changedTiddlers) {
return this.refreshChildren(changedTiddlers);
};
exports[&quot;edit-binary&quot;] = EditBinaryWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/edit-bitmap.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/edit-bitmap.js
type: application/javascript
module-type: widget
Edit-bitmap widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
// Default image sizes
var DEFAULT_IMAGE_WIDTH = 600,
DEFAULT_IMAGE_HEIGHT = 370,
DEFAULT_IMAGE_TYPE = &quot;image/png&quot;;
// Configuration tiddlers
var LINE_WIDTH_TITLE = &quot;$:/config/BitmapEditor/LineWidth&quot;,
LINE_COLOUR_TITLE = &quot;$:/config/BitmapEditor/Colour&quot;,
LINE_OPACITY_TITLE = &quot;$:/config/BitmapEditor/Opacity&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var EditBitmapWidget = function(parseTreeNode,options) {
// Initialise the editor operations if they've not been done already
if(!this.editorOperations) {
EditBitmapWidget.prototype.editorOperations = {};
$tw.modules.applyMethods(&quot;bitmapeditoroperation&quot;,this.editorOperations);
}
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
EditBitmapWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
EditBitmapWidget.prototype.render = function(parent,nextSibling) {
var self = this;
// Save the parent dom node
this.parentDomNode = parent;
// Compute our attributes
this.computeAttributes();
// Execute our logic
this.execute();
// Create the wrapper for the toolbar and render its content
this.toolbarNode = this.document.createElement(&quot;div&quot;);
this.toolbarNode.className = &quot;tc-editor-toolbar&quot;;
parent.insertBefore(this.toolbarNode,nextSibling);
this.domNodes.push(this.toolbarNode);
// Create the on-screen canvas
this.canvasDomNode = $tw.utils.domMaker(&quot;canvas&quot;,{
document: this.document,
&quot;class&quot;:&quot;tc-edit-bitmapeditor&quot;,
eventListeners: [{
name: &quot;touchstart&quot;, handlerObject: this, handlerMethod: &quot;handleTouchStartEvent&quot;
},{
name: &quot;touchmove&quot;, handlerObject: this, handlerMethod: &quot;handleTouchMoveEvent&quot;
},{
name: &quot;touchend&quot;, handlerObject: this, handlerMethod: &quot;handleTouchEndEvent&quot;
},{
name: &quot;mousedown&quot;, handlerObject: this, handlerMethod: &quot;handleMouseDownEvent&quot;
},{
name: &quot;mousemove&quot;, handlerObject: this, handlerMethod: &quot;handleMouseMoveEvent&quot;
},{
name: &quot;mouseup&quot;, handlerObject: this, handlerMethod: &quot;handleMouseUpEvent&quot;
}]
});
// Set the width and height variables
this.setVariable(&quot;tv-bitmap-editor-width&quot;,this.canvasDomNode.width + &quot;px&quot;);
this.setVariable(&quot;tv-bitmap-editor-height&quot;,this.canvasDomNode.height + &quot;px&quot;);
// Render toolbar child widgets
this.renderChildren(this.toolbarNode,null);
// // Insert the elements into the DOM
parent.insertBefore(this.canvasDomNode,nextSibling);
this.domNodes.push(this.canvasDomNode);
// Load the image into the canvas
if($tw.browser) {
this.loadCanvas();
}
// Add widget message listeners
this.addEventListeners([
{type: &quot;tm-edit-bitmap-operation&quot;, handler: &quot;handleEditBitmapOperationMessage&quot;}
]);
};
/*
Handle an edit bitmap operation message from the toolbar
*/
EditBitmapWidget.prototype.handleEditBitmapOperationMessage = function(event) {
// Invoke the handler
var handler = this.editorOperations[event.param];
if(handler) {
handler.call(this,event);
}
};
/*
Compute the internal state of the widget
*/
EditBitmapWidget.prototype.execute = function() {
// Get our parameters
this.editTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
// Make the child widgets
this.makeChildWidgets();
};
/*
Just refresh the toolbar
*/
EditBitmapWidget.prototype.refresh = function(changedTiddlers) {
return this.refreshChildren(changedTiddlers);
};
/*
Set the bitmap size variables and refresh the toolbar
*/
EditBitmapWidget.prototype.refreshToolbar = function() {
// Set the width and height variables
this.setVariable(&quot;tv-bitmap-editor-width&quot;,this.canvasDomNode.width + &quot;px&quot;);
this.setVariable(&quot;tv-bitmap-editor-height&quot;,this.canvasDomNode.height + &quot;px&quot;);
// Refresh each of our child widgets
$tw.utils.each(this.children,function(childWidget) {
childWidget.refreshSelf();
});
};
EditBitmapWidget.prototype.loadCanvas = function() {
var tiddler = this.wiki.getTiddler(this.editTitle),
currImage = new Image();
// Set up event handlers for loading the image
var self = this;
currImage.onload = function() {
// Copy the image to the on-screen canvas
self.initCanvas(self.canvasDomNode,currImage.width,currImage.height,currImage);
// And also copy the current bitmap to the off-screen canvas
self.currCanvas = self.document.createElement(&quot;canvas&quot;);
self.initCanvas(self.currCanvas,currImage.width,currImage.height,currImage);
// Set the width and height input boxes
self.refreshToolbar();
};
currImage.onerror = function() {
// Set the on-screen canvas size and clear it
self.initCanvas(self.canvasDomNode,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT);
// Set the off-screen canvas size and clear it
self.currCanvas = self.document.createElement(&quot;canvas&quot;);
self.initCanvas(self.currCanvas,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT);
// Set the width and height input boxes
self.refreshToolbar();
};
// Get the current bitmap into an image object
if(tiddler &amp;&amp; tiddler.fields.type &amp;&amp; tiddler.fields.text) {
currImage.src = &quot;data:&quot; + tiddler.fields.type + &quot;;base64,&quot; + tiddler.fields.text;
} else {
currImage.width = DEFAULT_IMAGE_WIDTH;
currImage.height = DEFAULT_IMAGE_HEIGHT;
currImage.onerror();
}
};
EditBitmapWidget.prototype.initCanvas = function(canvas,width,height,image) {
canvas.width = width;
canvas.height = height;
var ctx = canvas.getContext(&quot;2d&quot;);
if(image) {
ctx.drawImage(image,0,0);
} else {
ctx.fillStyle = &quot;#fff&quot;;
ctx.fillRect(0,0,canvas.width,canvas.height);
}
};
/*
** Change the size of the canvas, preserving the current image
*/
EditBitmapWidget.prototype.changeCanvasSize = function(newWidth,newHeight) {
// Create and size a new canvas
var newCanvas = this.document.createElement(&quot;canvas&quot;);
this.initCanvas(newCanvas,newWidth,newHeight);
// Copy the old image
var ctx = newCanvas.getContext(&quot;2d&quot;);
ctx.drawImage(this.currCanvas,0,0);
// Set the new canvas as the current one
this.currCanvas = newCanvas;
// Set the size of the onscreen canvas
this.canvasDomNode.width = newWidth;
this.canvasDomNode.height = newHeight;
// Paint the onscreen canvas with the offscreen canvas
ctx = this.canvasDomNode.getContext(&quot;2d&quot;);
ctx.drawImage(this.currCanvas,0,0);
};
/*
** Rotate the canvas left by 90 degrees
*/
EditBitmapWidget.prototype.rotateCanvasLeft = function() {
// Get the current size of the image
var origWidth = this.currCanvas.width,
origHeight = this.currCanvas.height;
// Create and size a new canvas
var newCanvas = this.document.createElement(&quot;canvas&quot;),
newWidth = origHeight,
newHeight = origWidth;
this.initCanvas(newCanvas,newWidth,newHeight);
// Copy the old image
var ctx = newCanvas.getContext(&quot;2d&quot;);
ctx.save();
ctx.translate(newWidth / 2,newHeight / 2);
ctx.rotate(-Math.PI / 2);
ctx.drawImage(this.currCanvas,-origWidth / 2,-origHeight / 2);
ctx.restore();
// Set the new canvas as the current one
this.currCanvas = newCanvas;
// Set the size of the onscreen canvas
this.canvasDomNode.width = newWidth;
this.canvasDomNode.height = newHeight;
// Paint the onscreen canvas with the offscreen canvas
ctx = this.canvasDomNode.getContext(&quot;2d&quot;);
ctx.drawImage(this.currCanvas,0,0);
};
EditBitmapWidget.prototype.handleTouchStartEvent = function(event) {
this.brushDown = true;
this.strokeStart(event.touches[0].clientX,event.touches[0].clientY);
event.preventDefault();
event.stopPropagation();
return false;
};
EditBitmapWidget.prototype.handleTouchMoveEvent = function(event) {
if(this.brushDown) {
this.strokeMove(event.touches[0].clientX,event.touches[0].clientY);
}
event.preventDefault();
event.stopPropagation();
return false;
};
EditBitmapWidget.prototype.handleTouchEndEvent = function(event) {
if(this.brushDown) {
this.brushDown = false;
this.strokeEnd();
}
event.preventDefault();
event.stopPropagation();
return false;
};
EditBitmapWidget.prototype.handleMouseDownEvent = function(event) {
this.strokeStart(event.clientX,event.clientY);
this.brushDown = true;
event.preventDefault();
event.stopPropagation();
return false;
};
EditBitmapWidget.prototype.handleMouseMoveEvent = function(event) {
if(this.brushDown) {
this.strokeMove(event.clientX,event.clientY);
event.preventDefault();
event.stopPropagation();
return false;
}
return true;
};
EditBitmapWidget.prototype.handleMouseUpEvent = function(event) {
if(this.brushDown) {
this.brushDown = false;
this.strokeEnd();
event.preventDefault();
event.stopPropagation();
return false;
}
return true;
};
EditBitmapWidget.prototype.adjustCoordinates = function(x,y) {
var canvasRect = this.canvasDomNode.getBoundingClientRect(),
scale = this.canvasDomNode.width/canvasRect.width;
return {x: (x - canvasRect.left) * scale, y: (y - canvasRect.top) * scale};
};
EditBitmapWidget.prototype.strokeStart = function(x,y) {
// Start off a new stroke
this.stroke = [this.adjustCoordinates(x,y)];
};
EditBitmapWidget.prototype.strokeMove = function(x,y) {
var ctx = this.canvasDomNode.getContext(&quot;2d&quot;),
t;
// Add the new position to the end of the stroke
this.stroke.push(this.adjustCoordinates(x,y));
// Redraw the previous image
ctx.drawImage(this.currCanvas,0,0);
// Render the stroke
ctx.globalAlpha = parseFloat(this.wiki.getTiddlerText(LINE_OPACITY_TITLE,&quot;1.0&quot;));
ctx.strokeStyle = this.wiki.getTiddlerText(LINE_COLOUR_TITLE,&quot;#ff0&quot;);
ctx.lineWidth = parseFloat(this.wiki.getTiddlerText(LINE_WIDTH_TITLE,&quot;3&quot;));
ctx.lineCap = &quot;round&quot;;
ctx.lineJoin = &quot;round&quot;;
ctx.beginPath();
ctx.moveTo(this.stroke[0].x,this.stroke[0].y);
for(t=1; t&lt;this.stroke.length-1; t++) {
var s1 = this.stroke[t],
s2 = this.stroke[t-1],
tx = (s1.x + s2.x)/2,
ty = (s1.y + s2.y)/2;
ctx.quadraticCurveTo(s2.x,s2.y,tx,ty);
}
ctx.stroke();
};
EditBitmapWidget.prototype.strokeEnd = function() {
// Copy the bitmap to the off-screen canvas
var ctx = this.currCanvas.getContext(&quot;2d&quot;);
ctx.drawImage(this.canvasDomNode,0,0);
// Save the image into the tiddler
this.saveChanges();
};
EditBitmapWidget.prototype.saveChanges = function() {
var tiddler = this.wiki.getTiddler(this.editTitle) || new $tw.Tiddler({title: this.editTitle,type: DEFAULT_IMAGE_TYPE});
// data URIs look like &quot;data:&lt;type&gt;;base64,&lt;text&gt;&quot;
var dataURL = this.canvasDomNode.toDataURL(tiddler.fields.type),
posColon = dataURL.indexOf(&quot;:&quot;),
posSemiColon = dataURL.indexOf(&quot;;&quot;),
posComma = dataURL.indexOf(&quot;,&quot;),
type = dataURL.substring(posColon+1,posSemiColon),
text = dataURL.substring(posComma+1);
var update = {type: type, text: text};
this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getModificationFields(),tiddler,update,this.wiki.getCreationFields()));
};
exports[&quot;edit-bitmap&quot;] = EditBitmapWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/edit-shortcut.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/edit-shortcut.js
type: application/javascript
module-type: widget
Widget to display an editable keyboard shortcut
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var EditShortcutWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
EditShortcutWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
EditShortcutWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.inputNode = this.document.createElement(&quot;input&quot;);
// Assign classes
if(this.shortcutClass) {
this.inputNode.className = this.shortcutClass;
}
// Assign other attributes
if(this.shortcutStyle) {
this.inputNode.setAttribute(&quot;style&quot;,this.shortcutStyle);
}
if(this.shortcutTooltip) {
this.inputNode.setAttribute(&quot;title&quot;,this.shortcutTooltip);
}
if(this.shortcutPlaceholder) {
this.inputNode.setAttribute(&quot;placeholder&quot;,this.shortcutPlaceholder);
}
if(this.shortcutAriaLabel) {
this.inputNode.setAttribute(&quot;aria-label&quot;,this.shortcutAriaLabel);
}
// Assign the current shortcut
this.updateInputNode();
// Add event handlers
$tw.utils.addEventListeners(this.inputNode,[
{name: &quot;keydown&quot;, handlerObject: this, handlerMethod: &quot;handleKeydownEvent&quot;}
]);
// Link into the DOM
parent.insertBefore(this.inputNode,nextSibling);
this.domNodes.push(this.inputNode);
// Focus the input Node if focus === &quot;yes&quot; or focus === &quot;true&quot;
if(this.shortcutFocus === &quot;yes&quot; || this.shortcutFocus === &quot;true&quot;) {
this.focus();
}
};
/*
Compute the internal state of the widget
*/
EditShortcutWidget.prototype.execute = function() {
this.shortcutTiddler = this.getAttribute(&quot;tiddler&quot;);
this.shortcutField = this.getAttribute(&quot;field&quot;);
this.shortcutIndex = this.getAttribute(&quot;index&quot;);
this.shortcutPlaceholder = this.getAttribute(&quot;placeholder&quot;);
this.shortcutDefault = this.getAttribute(&quot;default&quot;,&quot;&quot;);
this.shortcutClass = this.getAttribute(&quot;class&quot;);
this.shortcutStyle = this.getAttribute(&quot;style&quot;);
this.shortcutTooltip = this.getAttribute(&quot;tooltip&quot;);
this.shortcutAriaLabel = this.getAttribute(&quot;aria-label&quot;);
this.shortcutFocus = this.getAttribute(&quot;focus&quot;);
};
/*
Update the value of the input node
*/
EditShortcutWidget.prototype.updateInputNode = function() {
if(this.shortcutField) {
var tiddler = this.wiki.getTiddler(this.shortcutTiddler);
if(tiddler &amp;&amp; $tw.utils.hop(tiddler.fields,this.shortcutField)) {
this.inputNode.value = tiddler.getFieldString(this.shortcutField);
} else {
this.inputNode.value = this.shortcutDefault;
}
} else if(this.shortcutIndex) {
this.inputNode.value = this.wiki.extractTiddlerDataItem(this.shortcutTiddler,this.shortcutIndex,this.shortcutDefault);
} else {
this.inputNode.value = this.wiki.getTiddlerText(this.shortcutTiddler,this.shortcutDefault);
}
};
/*
Handle a dom &quot;keydown&quot; event
*/
EditShortcutWidget.prototype.handleKeydownEvent = function(event) {
// Ignore shift, ctrl, meta, alt
if(event.keyCode &amp;&amp; $tw.keyboardManager.getModifierKeys().indexOf(event.keyCode) === -1) {
// Get the shortcut text representation
var value = $tw.keyboardManager.getPrintableShortcuts([{
ctrlKey: event.ctrlKey,
shiftKey: event.shiftKey,
altKey: event.altKey,
metaKey: event.metaKey,
keyCode: event.keyCode
}]);
if(value.length &gt; 0) {
this.wiki.setText(this.shortcutTiddler,this.shortcutField,this.shortcutIndex,value[0]);
}
// Ignore the keydown if it was already handled
event.preventDefault();
event.stopPropagation();
return true;
} else {
return false;
}
};
/*
focus the input node
*/
EditShortcutWidget.prototype.focus = function() {
if(this.inputNode.focus &amp;&amp; this.inputNode.select) {
this.inputNode.focus();
this.inputNode.select();
}
};
/*
Selectively refreshes the widget if needed. Returns true if the widget needed re-rendering
*/
EditShortcutWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.placeholder || changedAttributes[&quot;default&quot;] || changedAttributes[&quot;class&quot;] || changedAttributes.style || changedAttributes.tooltip || changedAttributes[&quot;aria-label&quot;] || changedAttributes.focus) {
this.refreshSelf();
return true;
} else if(changedTiddlers[this.shortcutTiddler]) {
this.updateInputNode();
return true;
} else {
return false;
}
};
exports[&quot;edit-shortcut&quot;] = EditShortcutWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/edit-text.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/edit-text.js
type: application/javascript
module-type: widget
Edit-text widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var editTextWidgetFactory = require(&quot;$:/core/modules/editor/factory.js&quot;).editTextWidgetFactory,
FramedEngine = require(&quot;$:/core/modules/editor/engines/framed.js&quot;).FramedEngine,
SimpleEngine = require(&quot;$:/core/modules/editor/engines/simple.js&quot;).SimpleEngine;
exports[&quot;edit-text&quot;] = editTextWidgetFactory(FramedEngine,SimpleEngine);
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/edit.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/edit.js
type: application/javascript
module-type: widget
Edit widget is a meta-widget chooses the appropriate actual editting widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var EditWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
EditWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
EditWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
// Mappings from content type to editor type are stored in tiddlers with this prefix
var EDITOR_MAPPING_PREFIX = &quot;$:/config/EditorTypeMappings/&quot;;
/*
Compute the internal state of the widget
*/
EditWidget.prototype.execute = function() {
// Get our parameters
this.editTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.editField = this.getAttribute(&quot;field&quot;,&quot;text&quot;);
this.editIndex = this.getAttribute(&quot;index&quot;);
this.editClass = this.getAttribute(&quot;class&quot;);
this.editPlaceholder = this.getAttribute(&quot;placeholder&quot;);
this.editTabIndex = this.getAttribute(&quot;tabindex&quot;);
this.editFocus = this.getAttribute(&quot;focus&quot;,&quot;&quot;);
// Choose the appropriate edit widget
this.editorType = this.getEditorType();
// Make the child widgets
this.makeChildWidgets([{
type: &quot;edit-&quot; + this.editorType,
attributes: {
tiddler: {type: &quot;string&quot;, value: this.editTitle},
field: {type: &quot;string&quot;, value: this.editField},
index: {type: &quot;string&quot;, value: this.editIndex},
&quot;class&quot;: {type: &quot;string&quot;, value: this.editClass},
&quot;placeholder&quot;: {type: &quot;string&quot;, value: this.editPlaceholder},
&quot;tabindex&quot;: {type: &quot;string&quot;, value: this.editTabIndex},
&quot;focus&quot;: {type: &quot;string&quot;, value: this.editFocus}
},
children: this.parseTreeNode.children
}]);
};
EditWidget.prototype.getEditorType = function() {
// Get the content type of the thing we're editing
var type;
if(this.editField === &quot;text&quot;) {
var tiddler = this.wiki.getTiddler(this.editTitle);
if(tiddler) {
type = tiddler.fields.type;
}
}
type = type || &quot;text/vnd.tiddlywiki&quot;;
var editorType = this.wiki.getTiddlerText(EDITOR_MAPPING_PREFIX + type);
if(!editorType) {
var typeInfo = $tw.config.contentTypeInfo[type];
if(typeInfo &amp;&amp; typeInfo.encoding === &quot;base64&quot;) {
editorType = &quot;binary&quot;;
} else {
editorType = &quot;text&quot;;
}
}
return editorType;
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
EditWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
// Refresh if an attribute has changed, or the type associated with the target tiddler has changed
if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.tabindex || (changedTiddlers[this.editTitle] &amp;&amp; this.getEditorType() !== this.editorType)) {
this.refreshSelf();
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
exports.edit = EditWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/element.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/element.js
type: application/javascript
module-type: widget
Element widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var ElementWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
ElementWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
ElementWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
// Neuter blacklisted elements
var tag = this.parseTreeNode.tag;
if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
tag = &quot;safe-&quot; + tag;
}
// Adjust headings by the current base level
var headingLevel = [&quot;h1&quot;,&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;].indexOf(tag);
if(headingLevel !== -1) {
var baseLevel = parseInt(this.getVariable(&quot;tv-adjust-heading-level&quot;,&quot;0&quot;),10) || 0;
headingLevel = Math.min(Math.max(headingLevel + 1 + baseLevel,1),6);
tag = &quot;h&quot; + headingLevel;
}
// Create the DOM node
var domNode = this.document.createElementNS(this.namespace,tag);
this.assignAttributes(domNode,{excludeEventAttributes: true});
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
this.domNodes.push(domNode);
};
/*
Compute the internal state of the widget
*/
ElementWidget.prototype.execute = function() {
// Select the namespace for the tag
var tagNamespaces = {
svg: &quot;http://www.w3.org/2000/svg&quot;,
math: &quot;http://www.w3.org/1998/Math/MathML&quot;,
body: &quot;http://www.w3.org/1999/xhtml&quot;
};
this.namespace = tagNamespaces[this.parseTreeNode.tag];
if(this.namespace) {
this.setVariable(&quot;namespace&quot;,this.namespace);
} else {
this.namespace = this.getVariable(&quot;namespace&quot;,{defaultValue: &quot;http://www.w3.org/1999/xhtml&quot;});
}
// Make the child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
ElementWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes(),
hasChangedAttributes = $tw.utils.count(changedAttributes) &gt; 0;
if(hasChangedAttributes) {
// Update our attributes
this.assignAttributes(this.domNodes[0],{excludeEventAttributes: true});
}
return this.refreshChildren(changedTiddlers) || hasChangedAttributes;
};
exports.element = ElementWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/encrypt.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/encrypt.js
type: application/javascript
module-type: widget
Encrypt widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var EncryptWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
EncryptWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
EncryptWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
var textNode = this.document.createTextNode(this.encryptedText);
parent.insertBefore(textNode,nextSibling);
this.domNodes.push(textNode);
};
/*
Compute the internal state of the widget
*/
EncryptWidget.prototype.execute = function() {
// Get parameters from our attributes
this.filter = this.getAttribute(&quot;filter&quot;,&quot;[!is[system]]&quot;);
// Encrypt the filtered tiddlers
var tiddlers = this.wiki.filterTiddlers(this.filter),
json = {},
self = this;
$tw.utils.each(tiddlers,function(title) {
var tiddler = self.wiki.getTiddler(title),
jsonTiddler = {};
for(var f in tiddler.fields) {
jsonTiddler[f] = tiddler.getFieldString(f);
}
json[title] = jsonTiddler;
});
this.encryptedText = $tw.utils.htmlEncode($tw.crypto.encrypt(JSON.stringify(json)));
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
EncryptWidget.prototype.refresh = function(changedTiddlers) {
// We don't need to worry about refreshing because the encrypt widget isn't for interactive use
return false;
};
exports.encrypt = EncryptWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/entity.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/entity.js
type: application/javascript
module-type: widget
HTML entity widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var EntityWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
EntityWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
EntityWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.execute();
var entityString = this.getAttribute(&quot;entity&quot;,this.parseTreeNode.entity || &quot;&quot;),
textNode = this.document.createTextNode($tw.utils.entityDecode(entityString));
parent.insertBefore(textNode,nextSibling);
this.domNodes.push(textNode);
};
/*
Compute the internal state of the widget
*/
EntityWidget.prototype.execute = function() {
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
EntityWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.entity) {
this.refreshSelf();
return true;
} else {
return false;
}
};
exports.entity = EntityWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/fieldmangler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/fieldmangler.js
type: application/javascript
module-type: widget
Field mangler widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var FieldManglerWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
this.addEventListeners([
{type: &quot;tm-remove-field&quot;, handler: &quot;handleRemoveFieldEvent&quot;},
{type: &quot;tm-add-field&quot;, handler: &quot;handleAddFieldEvent&quot;},
{type: &quot;tm-remove-tag&quot;, handler: &quot;handleRemoveTagEvent&quot;},
{type: &quot;tm-add-tag&quot;, handler: &quot;handleAddTagEvent&quot;}
]);
};
/*
Inherit from the base widget class
*/
FieldManglerWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
FieldManglerWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
FieldManglerWidget.prototype.execute = function() {
// Get our parameters
this.mangleTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
// Construct the child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
FieldManglerWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.tiddler) {
this.refreshSelf();
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
FieldManglerWidget.prototype.handleRemoveFieldEvent = function(event) {
var tiddler = this.wiki.getTiddler(this.mangleTitle),
deletion = {};
deletion[event.param] = undefined;
this.wiki.addTiddler(new $tw.Tiddler(tiddler,deletion));
return true;
};
FieldManglerWidget.prototype.handleAddFieldEvent = function(event) {
var tiddler = this.wiki.getTiddler(this.mangleTitle),
addition = this.wiki.getModificationFields(),
hadInvalidFieldName = false,
addField = function(name,value) {
var trimmedName = name.toLowerCase().trim();
if(!$tw.utils.isValidFieldName(trimmedName)) {
if(!hadInvalidFieldName) {
alert($tw.language.getString(
&quot;InvalidFieldName&quot;,
{variables:
{fieldName: trimmedName}
}
));
hadInvalidFieldName = true;
return;
}
} else {
if(!value &amp;&amp; tiddler) {
value = tiddler.fields[trimmedName];
}
addition[trimmedName] = value || &quot;&quot;;
}
return;
};
addition.title = this.mangleTitle;
if(typeof event.param === &quot;string&quot;) {
addField(event.param,&quot;&quot;);
}
if(typeof event.paramObject === &quot;object&quot;) {
for(var name in event.paramObject) {
addField(name,event.paramObject[name]);
}
}
this.wiki.addTiddler(new $tw.Tiddler(tiddler,addition));
return true;
};
FieldManglerWidget.prototype.handleRemoveTagEvent = function(event) {
var tiddler = this.wiki.getTiddler(this.mangleTitle),
modification = this.wiki.getModificationFields();
if(tiddler &amp;&amp; tiddler.fields.tags) {
var p = tiddler.fields.tags.indexOf(event.param);
if(p !== -1) {
modification.tags = (tiddler.fields.tags || []).slice(0);
modification.tags.splice(p,1);
if(modification.tags.length === 0) {
modification.tags = undefined;
}
this.wiki.addTiddler(new $tw.Tiddler(tiddler,modification));
}
}
return true;
};
FieldManglerWidget.prototype.handleAddTagEvent = function(event) {
var tiddler = this.wiki.getTiddler(this.mangleTitle),
modification = this.wiki.getModificationFields();
if(tiddler &amp;&amp; typeof event.param === &quot;string&quot;) {
var tag = event.param.trim();
if(tag !== &quot;&quot;) {
modification.tags = (tiddler.fields.tags || []).slice(0);
$tw.utils.pushTop(modification.tags,tag);
this.wiki.addTiddler(new $tw.Tiddler(tiddler,modification));
}
} else if(typeof event.param === &quot;string&quot; &amp;&amp; event.param.trim() !== &quot;&quot; &amp;&amp; this.mangleTitle.trim() !== &quot;&quot;) {
var tag = [];
tag.push(event.param.trim());
this.wiki.addTiddler(new $tw.Tiddler({title: this.mangleTitle, tags: tag},modification));
}
return true;
};
exports.fieldmangler = FieldManglerWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/fields.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/fields.js
type: application/javascript
module-type: widget
Fields widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var FieldsWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
FieldsWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
FieldsWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
var textNode = this.document.createTextNode(this.text);
parent.insertBefore(textNode,nextSibling);
this.domNodes.push(textNode);
};
/*
Compute the internal state of the widget
*/
FieldsWidget.prototype.execute = function() {
// Get parameters from our attributes
this.tiddlerTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.template = this.getAttribute(&quot;template&quot;);
this.sort = this.getAttribute(&quot;sort&quot;,&quot;yes&quot;) === &quot;yes&quot;;
this.sortReverse = this.getAttribute(&quot;sortReverse&quot;,&quot;no&quot;) === &quot;yes&quot;;
this.exclude = this.getAttribute(&quot;exclude&quot;);
this.include = this.getAttribute(&quot;include&quot;,null);
this.stripTitlePrefix = this.getAttribute(&quot;stripTitlePrefix&quot;,&quot;no&quot;) === &quot;yes&quot;;
// Get the value to display
var tiddler = this.wiki.getTiddler(this.tiddlerTitle);
// Get the inclusion and exclusion list
var excludeArr = (this.exclude) ? this.exclude.split(&quot; &quot;) : [&quot;text&quot;];
// Include takes precedence
var includeArr = (this.include) ? this.include.split(&quot; &quot;) : null;
// Compose the template
var text = [];
if(this.template &amp;&amp; tiddler) {
var fields = [];
if (includeArr) { // Include takes precedence
for(var i=0; i&lt;includeArr.length; i++) {
if(tiddler.fields[includeArr[i]]) {
fields.push(includeArr[i]);
}
}
} else {
for(var fieldName in tiddler.fields) {
if(excludeArr.indexOf(fieldName) === -1) {
fields.push(fieldName);
}
}
}
if (this.sort) fields.sort();
if (this.sortReverse) fields.reverse();
for(var f=0, fmax=fields.length; f&lt;fmax; f++) {
fieldName = fields[f];
var row = this.template,
value = tiddler.getFieldString(fieldName);
if(this.stripTitlePrefix &amp;&amp; fieldName === &quot;title&quot;) {
var reStrip = /^\{[^\}]+\}(.+)/mg,
reMatch = reStrip.exec(value);
if(reMatch) {
value = reMatch[1];
}
}
row = $tw.utils.replaceString(row,&quot;$name$&quot;,fieldName);
row = $tw.utils.replaceString(row,&quot;$value$&quot;,value);
row = $tw.utils.replaceString(row,&quot;$encoded_value$&quot;,$tw.utils.htmlEncode(value));
text.push(row);
}
}
this.text = text.join(&quot;&quot;);
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
FieldsWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if( changedAttributes.tiddler || changedAttributes.template || changedAttributes.exclude ||
changedAttributes.include || changedAttributes.sort || changedAttributes.sortReverse ||
changedTiddlers[this.tiddlerTitle] || changedAttributes.stripTitlePrefix) {
this.refreshSelf();
return true;
} else {
return false;
}
};
exports.fields = FieldsWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/image.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/image.js
type: application/javascript
module-type: widget
The image widget displays an image referenced with an external URI or with a local tiddler title.
```
&lt;$image src=&quot;TiddlerTitle&quot; width=&quot;320&quot; height=&quot;400&quot; class=&quot;classnames&quot;&gt;
```
The image source can be the title of an existing tiddler or the URL of an external image.
External images always generate an HTML `&lt;img&gt;` tag.
Tiddlers that have a _canonical_uri field generate an HTML `&lt;img&gt;` tag with the src attribute containing the URI.
Tiddlers that contain image data generate an HTML `&lt;img&gt;` tag with the src attribute containing a base64 representation of the image.
Tiddlers that contain wikitext could be rendered to a DIV of the usual size of a tiddler, and then transformed to the size requested.
The width and height attributes are interpreted as a number of pixels, and do not need to include the &quot;px&quot; suffix.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var ImageWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
ImageWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
ImageWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
// Create element
// Determine what type of image it is
var tag = &quot;img&quot;, src = &quot;&quot;,
tiddler = this.wiki.getTiddler(this.imageSource);
if(!tiddler) {
// The source isn't the title of a tiddler, so we'll assume it's a URL
src = this.getVariable(&quot;tv-get-export-image-link&quot;,{params: [{name: &quot;src&quot;,value: this.imageSource}],defaultValue: this.imageSource});
} else {
// Check if it is an image tiddler
if(this.wiki.isImageTiddler(this.imageSource)) {
var type = tiddler.fields.type,
text = tiddler.fields.text,
_canonical_uri = tiddler.fields._canonical_uri;
// If the tiddler has body text then it doesn't need to be lazily loaded
if(text) {
// Render the appropriate element for the image type
switch(type) {
case &quot;application/pdf&quot;:
tag = &quot;embed&quot;;
src = &quot;data:application/pdf;base64,&quot; + text;
break;
case &quot;image/svg+xml&quot;:
src = &quot;data:image/svg+xml,&quot; + encodeURIComponent(text);
break;
default:
src = &quot;data:&quot; + type + &quot;;base64,&quot; + text;
break;
}
} else if(_canonical_uri) {
switch(type) {
case &quot;application/pdf&quot;:
tag = &quot;embed&quot;;
src = _canonical_uri;
break;
case &quot;image/svg+xml&quot;:
src = _canonical_uri;
break;
default:
src = _canonical_uri;
break;
}
} else {
// Just trigger loading of the tiddler
this.wiki.getTiddlerText(this.imageSource);
}
}
}
// Create the element and assign the attributes
var domNode = this.document.createElement(tag);
domNode.setAttribute(&quot;src&quot;,src);
if(this.imageClass) {
domNode.setAttribute(&quot;class&quot;,this.imageClass);
}
if(this.imageWidth) {
domNode.setAttribute(&quot;width&quot;,this.imageWidth);
}
if(this.imageHeight) {
domNode.setAttribute(&quot;height&quot;,this.imageHeight);
}
if(this.imageTooltip) {
domNode.setAttribute(&quot;title&quot;,this.imageTooltip);
}
if(this.imageAlt) {
domNode.setAttribute(&quot;alt&quot;,this.imageAlt);
}
// Insert element
parent.insertBefore(domNode,nextSibling);
this.domNodes.push(domNode);
};
/*
Compute the internal state of the widget
*/
ImageWidget.prototype.execute = function() {
// Get our parameters
this.imageSource = this.getAttribute(&quot;source&quot;);
this.imageWidth = this.getAttribute(&quot;width&quot;);
this.imageHeight = this.getAttribute(&quot;height&quot;);
this.imageClass = this.getAttribute(&quot;class&quot;);
this.imageTooltip = this.getAttribute(&quot;tooltip&quot;);
this.imageAlt = this.getAttribute(&quot;alt&quot;);
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
ImageWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.source || changedAttributes.width || changedAttributes.height || changedAttributes[&quot;class&quot;] || changedAttributes.tooltip || changedTiddlers[this.imageSource]) {
this.refreshSelf();
return true;
} else {
return false;
}
};
exports.image = ImageWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/importvariables.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/importvariables.js
type: application/javascript
module-type: widget
Import variable definitions from other tiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var ImportVariablesWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
ImportVariablesWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
ImportVariablesWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
ImportVariablesWidget.prototype.execute = function(tiddlerList) {
var widgetPointer = this;
// Get our parameters
this.filter = this.getAttribute(&quot;filter&quot;);
// Compute the filter
this.tiddlerList = tiddlerList || this.wiki.filterTiddlers(this.filter,this);
// Accumulate the &lt;$set&gt; widgets from each tiddler
$tw.utils.each(this.tiddlerList,function(title) {
var parser = widgetPointer.wiki.parseTiddler(title);
if(parser) {
var parseTreeNode = parser.tree[0];
while(parseTreeNode &amp;&amp; parseTreeNode.type === &quot;set&quot;) {
var node = {
type: &quot;set&quot;,
attributes: parseTreeNode.attributes,
params: parseTreeNode.params,
isMacroDefinition: parseTreeNode.isMacroDefinition
};
if (parseTreeNode.isMacroDefinition) {
// Macro definitions can be folded into
// current widget instead of adding
// another link to the chain.
var widget = widgetPointer.makeChildWidget(node);
widget.computeAttributes();
widget.execute();
// We SHALLOW copy over all variables
// in widget. We can't use
// $tw.utils.assign, because that copies
// up the prototype chain, which we
// don't want.
$tw.utils.each(Object.keys(widget.variables), function(key) {
widgetPointer.variables[key] = widget.variables[key];
});
} else {
widgetPointer.makeChildWidgets([node]);
widgetPointer = widgetPointer.children[0];
}
parseTreeNode = parseTreeNode.children &amp;&amp; parseTreeNode.children[0];
}
}
});
if (widgetPointer != this) {
widgetPointer.parseTreeNode.children = this.parseTreeNode.children;
} else {
widgetPointer.makeChildWidgets();
}
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
ImportVariablesWidget.prototype.refresh = function(changedTiddlers) {
// Recompute our attributes and the filter list
var changedAttributes = this.computeAttributes(),
tiddlerList = this.wiki.filterTiddlers(this.getAttribute(&quot;filter&quot;),this);
// Refresh if the filter has changed, or the list of tiddlers has changed, or any of the tiddlers in the list has changed
function haveListedTiddlersChanged() {
var changed = false;
tiddlerList.forEach(function(title) {
if(changedTiddlers[title]) {
changed = true;
}
});
return changed;
}
if(changedAttributes.filter || !$tw.utils.isArrayEqual(this.tiddlerList,tiddlerList) || haveListedTiddlersChanged()) {
// Compute the filter
this.removeChildDomNodes();
this.execute(tiddlerList);
this.renderChildren(this.parentDomNode,this.findNextSiblingDomNode());
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
exports.importvariables = ImportVariablesWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/keyboard.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/keyboard.js
type: application/javascript
module-type: widget
Keyboard shortcut widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var KeyboardWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
KeyboardWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
KeyboardWidget.prototype.render = function(parent,nextSibling) {
var self = this;
// Remember parent
this.parentDomNode = parent;
// Compute attributes and execute state
this.computeAttributes();
this.execute();
var tag = this.parseTreeNode.isBlock ? &quot;div&quot; : &quot;span&quot;;
if(this.tag &amp;&amp; $tw.config.htmlUnsafeElements.indexOf(this.tag) === -1) {
tag = this.tag;
}
// Create element
var domNode = this.document.createElement(tag);
// Assign classes
var classes = (this[&quot;class&quot;] || &quot;&quot;).split(&quot; &quot;);
classes.push(&quot;tc-keyboard&quot;);
domNode.className = classes.join(&quot; &quot;);
// Add a keyboard event handler
domNode.addEventListener(&quot;keydown&quot;,function (event) {
if($tw.keyboardManager.checkKeyDescriptors(event,self.keyInfoArray)) {
self.invokeActions(self,event);
if(self.actions) {
self.invokeActionString(self.actions,self,event);
}
self.dispatchMessage(event);
event.preventDefault();
event.stopPropagation();
return true;
}
return false;
},false);
// Insert element
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
this.domNodes.push(domNode);
};
KeyboardWidget.prototype.dispatchMessage = function(event) {
this.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable(&quot;currentTiddler&quot;)});
};
/*
Compute the internal state of the widget
*/
KeyboardWidget.prototype.execute = function() {
var self = this;
// Get attributes
this.actions = this.getAttribute(&quot;actions&quot;,&quot;&quot;);
this.message = this.getAttribute(&quot;message&quot;,&quot;&quot;);
this.param = this.getAttribute(&quot;param&quot;,&quot;&quot;);
this.key = this.getAttribute(&quot;key&quot;,&quot;&quot;);
this.tag = this.getAttribute(&quot;tag&quot;,&quot;&quot;);
this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);
this[&quot;class&quot;] = this.getAttribute(&quot;class&quot;,&quot;&quot;);
if(this.key.substr(0,2) === &quot;((&quot; &amp;&amp; this.key.substr(-2,2) === &quot;))&quot;) {
this.shortcutTiddlers = [];
var name = this.key.substring(2,this.key.length -2);
$tw.utils.each($tw.keyboardManager.lookupNames,function(platformDescriptor) {
self.shortcutTiddlers.push(&quot;$:/config/&quot; + platformDescriptor + &quot;/&quot; + name);
});
}
// Make child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
KeyboardWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.message || changedAttributes.param || changedAttributes.key || changedAttributes[&quot;class&quot;] || changedAttributes.tag) {
this.refreshSelf();
return true;
}
// Update the keyInfoArray if one of its shortcut-config-tiddlers has changed
if(this.shortcutTiddlers &amp;&amp; $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers)) {
this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);
}
return this.refreshChildren(changedTiddlers);
};
exports.keyboard = KeyboardWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/link.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/link.js
type: application/javascript
module-type: widget
Link widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var LinkWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
LinkWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
LinkWidget.prototype.render = function(parent,nextSibling) {
// Save the parent dom node
this.parentDomNode = parent;
// Compute our attributes
this.computeAttributes();
// Execute our logic
this.execute();
// Get the value of the tv-wikilinks configuration macro
var wikiLinksMacro = this.getVariable(&quot;tv-wikilinks&quot;),
useWikiLinks = wikiLinksMacro ? (wikiLinksMacro.trim() !== &quot;no&quot;) : true,
missingLinksEnabled = !(this.hideMissingLinks &amp;&amp; this.isMissing &amp;&amp; !this.isShadow);
// Render the link if required
if(useWikiLinks &amp;&amp; missingLinksEnabled) {
this.renderLink(parent,nextSibling);
} else {
// Just insert the link text
var domNode = this.document.createElement(&quot;span&quot;);
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
this.domNodes.push(domNode);
}
};
/*
Render this widget into the DOM
*/
LinkWidget.prototype.renderLink = function(parent,nextSibling) {
var self = this;
// Sanitise the specified tag
var tag = this.linkTag;
if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
tag = &quot;a&quot;;
}
// Create our element
var domNode = this.document.createElement(tag);
// Assign classes
var classes = [];
if(this.overrideClasses === undefined) {
classes.push(&quot;tc-tiddlylink&quot;);
if(this.isShadow) {
classes.push(&quot;tc-tiddlylink-shadow&quot;);
}
if(this.isMissing &amp;&amp; !this.isShadow) {
classes.push(&quot;tc-tiddlylink-missing&quot;);
} else {
if(!this.isMissing) {
classes.push(&quot;tc-tiddlylink-resolves&quot;);
}
}
if(this.linkClasses) {
classes.push(this.linkClasses);
}
} else if(this.overrideClasses !== &quot;&quot;) {
classes.push(this.overrideClasses)
}
if(classes.length &gt; 0) {
domNode.setAttribute(&quot;class&quot;,classes.join(&quot; &quot;));
}
// Set an href
var wikilinkTransformFilter = this.getVariable(&quot;tv-filter-export-link&quot;),
wikiLinkText;
if(wikilinkTransformFilter) {
// Use the filter to construct the href
wikiLinkText = this.wiki.filterTiddlers(wikilinkTransformFilter,this,function(iterator) {
iterator(self.wiki.getTiddler(self.to),self.to)
})[0];
} else {
// Expand the tv-wikilink-template variable to construct the href
var wikiLinkTemplateMacro = this.getVariable(&quot;tv-wikilink-template&quot;),
wikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.trim() : &quot;#$uri_encoded$&quot;;
wikiLinkText = $tw.utils.replaceString(wikiLinkTemplate,&quot;$uri_encoded$&quot;,encodeURIComponent(this.to));
wikiLinkText = $tw.utils.replaceString(wikiLinkText,&quot;$uri_doubleencoded$&quot;,encodeURIComponent(encodeURIComponent(this.to)));
}
// Override with the value of tv-get-export-link if defined
wikiLinkText = this.getVariable(&quot;tv-get-export-link&quot;,{params: [{name: &quot;to&quot;,value: this.to}],defaultValue: wikiLinkText});
if(tag === &quot;a&quot;) {
domNode.setAttribute(&quot;href&quot;,wikiLinkText);
}
// Set the tabindex
if(this.tabIndex) {
domNode.setAttribute(&quot;tabindex&quot;,this.tabIndex);
}
// Set the tooltip
// HACK: Performance issues with re-parsing the tooltip prevent us defaulting the tooltip to &quot;&lt;$transclude field='tooltip'&gt;&lt;$transclude field='title'/&gt;&lt;/$transclude&gt;&quot;
var tooltipWikiText = this.tooltip || this.getVariable(&quot;tv-wikilink-tooltip&quot;);
if(tooltipWikiText) {
var tooltipText = this.wiki.renderText(&quot;text/plain&quot;,&quot;text/vnd.tiddlywiki&quot;,tooltipWikiText,{
parseAsInline: true,
variables: {
currentTiddler: this.to
},
parentWidget: this
});
domNode.setAttribute(&quot;title&quot;,tooltipText);
}
if(this[&quot;aria-label&quot;]) {
domNode.setAttribute(&quot;aria-label&quot;,this[&quot;aria-label&quot;]);
}
// Add a click event handler
$tw.utils.addEventListeners(domNode,[
{name: &quot;click&quot;, handlerObject: this, handlerMethod: &quot;handleClickEvent&quot;},
]);
// Make the link draggable if required
if(this.draggable === &quot;yes&quot;) {
$tw.utils.makeDraggable({
domNode: domNode,
dragTiddlerFn: function() {return self.to;},
widget: this
});
}
// Insert the link into the DOM and render any children
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
this.domNodes.push(domNode);
};
LinkWidget.prototype.handleClickEvent = function(event) {
// Send the click on its way as a navigate event
var bounds = this.domNodes[0].getBoundingClientRect();
this.dispatchEvent({
type: &quot;tm-navigate&quot;,
navigateTo: this.to,
navigateFromTitle: this.getVariable(&quot;storyTiddler&quot;),
navigateFromNode: this,
navigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height
},
navigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1),
metaKey: event.metaKey,
ctrlKey: event.ctrlKey,
altKey: event.altKey,
shiftKey: event.shiftKey
});
if(this.domNodes[0].hasAttribute(&quot;href&quot;)) {
event.preventDefault();
}
event.stopPropagation();
return false;
};
/*
Compute the internal state of the widget
*/
LinkWidget.prototype.execute = function() {
// Pick up our attributes
this.to = this.getAttribute(&quot;to&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.tooltip = this.getAttribute(&quot;tooltip&quot;);
this[&quot;aria-label&quot;] = this.getAttribute(&quot;aria-label&quot;);
this.linkClasses = this.getAttribute(&quot;class&quot;);
this.overrideClasses = this.getAttribute(&quot;overrideClass&quot;);
this.tabIndex = this.getAttribute(&quot;tabindex&quot;);
this.draggable = this.getAttribute(&quot;draggable&quot;,&quot;yes&quot;);
this.linkTag = this.getAttribute(&quot;tag&quot;,&quot;a&quot;);
// Determine the link characteristics
this.isMissing = !this.wiki.tiddlerExists(this.to);
this.isShadow = this.wiki.isShadowTiddler(this.to);
this.hideMissingLinks = (this.getVariable(&quot;tv-show-missing-links&quot;) || &quot;yes&quot;) === &quot;no&quot;;
// Make the child widgets
var templateTree;
if(this.parseTreeNode.children &amp;&amp; this.parseTreeNode.children.length &gt; 0) {
templateTree = this.parseTreeNode.children;
} else {
// Default template is a link to the title
templateTree = [{type: &quot;text&quot;, text: this.to}];
}
this.makeChildWidgets(templateTree);
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
LinkWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.to || changedTiddlers[this.to] || changedAttributes[&quot;aria-label&quot;] || changedAttributes.tooltip) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
exports.link = LinkWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/linkcatcher.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/linkcatcher.js
type: application/javascript
module-type: widget
Linkcatcher widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var LinkCatcherWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
this.addEventListeners([
{type: &quot;tm-navigate&quot;, handler: &quot;handleNavigateEvent&quot;}
]);
};
/*
Inherit from the base widget class
*/
LinkCatcherWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
LinkCatcherWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
LinkCatcherWidget.prototype.execute = function() {
// Get our parameters
this.catchTo = this.getAttribute(&quot;to&quot;);
this.catchMessage = this.getAttribute(&quot;message&quot;);
this.catchSet = this.getAttribute(&quot;set&quot;);
this.catchSetTo = this.getAttribute(&quot;setTo&quot;);
this.catchActions = this.getAttribute(&quot;actions&quot;);
// Construct the child widgets
this.makeChildWidgets();
// When executing actions we avoid trapping navigate events, so that we don't trigger ourselves recursively
this.executingActions = false;
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
LinkCatcherWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.to || changedAttributes.message || changedAttributes.set || changedAttributes.setTo) {
this.refreshSelf();
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
/*
Handle a tm-navigate event
*/
LinkCatcherWidget.prototype.handleNavigateEvent = function(event) {
if(!this.executingActions) {
// Execute the actions
if(this.catchTo) {
this.wiki.setTextReference(this.catchTo,event.navigateTo,this.getVariable(&quot;currentTiddler&quot;));
}
if(this.catchMessage &amp;&amp; this.parentWidget) {
this.parentWidget.dispatchEvent({
type: this.catchMessage,
param: event.navigateTo,
navigateTo: event.navigateTo
});
}
if(this.catchSet) {
var tiddler = this.wiki.getTiddler(this.catchSet);
this.wiki.addTiddler(new $tw.Tiddler(tiddler,{title: this.catchSet, text: this.catchSetTo}));
}
if(this.catchActions) {
this.executingActions = true;
this.invokeActionString(this.catchActions,this,event,{navigateTo: event.navigateTo});
this.executingActions = false;
}
} else {
// This is a navigate event generated by the actions of this linkcatcher, so we don't trap it again, but just pass it to the parent
this.parentWidget.dispatchEvent({
type: &quot;tm-navigate&quot;,
param: event.navigateTo,
navigateTo: event.navigateTo
});
}
return false;
};
exports.linkcatcher = LinkCatcherWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/list.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/list.js
type: application/javascript
module-type: widget
List and list item widgets
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
/*
The list widget creates list element sub-widgets that reach back into the list widget for their configuration
*/
var ListWidget = function(parseTreeNode,options) {
// Initialise the storyviews if they've not been done already
if(!this.storyViews) {
ListWidget.prototype.storyViews = {};
$tw.modules.applyMethods(&quot;storyview&quot;,this.storyViews);
}
// Main initialisation inherited from widget.js
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
ListWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
ListWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
// Construct the storyview
var StoryView = this.storyViews[this.storyViewName];
if(this.storyViewName &amp;&amp; !StoryView) {
StoryView = this.storyViews[&quot;classic&quot;];
}
if(StoryView &amp;&amp; !this.document.isTiddlyWikiFakeDom) {
this.storyview = new StoryView(this);
} else {
this.storyview = null;
}
};
/*
Compute the internal state of the widget
*/
ListWidget.prototype.execute = function() {
// Get our attributes
this.template = this.getAttribute(&quot;template&quot;);
this.editTemplate = this.getAttribute(&quot;editTemplate&quot;);
this.variableName = this.getAttribute(&quot;variable&quot;,&quot;currentTiddler&quot;);
this.storyViewName = this.getAttribute(&quot;storyview&quot;);
this.historyTitle = this.getAttribute(&quot;history&quot;);
// Compose the list elements
this.list = this.getTiddlerList();
var members = [],
self = this;
// Check for an empty list
if(this.list.length === 0) {
members = this.getEmptyMessage();
} else {
$tw.utils.each(this.list,function(title,index) {
members.push(self.makeItemTemplate(title));
});
}
// Construct the child widgets
this.makeChildWidgets(members);
// Clear the last history
this.history = [];
};
ListWidget.prototype.getTiddlerList = function() {
var defaultFilter = &quot;[!is[system]sort[title]]&quot;;
return this.wiki.filterTiddlers(this.getAttribute(&quot;filter&quot;,defaultFilter),this);
};
ListWidget.prototype.getEmptyMessage = function() {
var emptyMessage = this.getAttribute(&quot;emptyMessage&quot;,&quot;&quot;),
parser = this.wiki.parseText(&quot;text/vnd.tiddlywiki&quot;,emptyMessage,{parseAsInline: true});
if(parser) {
return parser.tree;
} else {
return [];
}
};
/*
Compose the template for a list item
*/
ListWidget.prototype.makeItemTemplate = function(title) {
// Check if the tiddler is a draft
var tiddler = this.wiki.getTiddler(title),
isDraft = tiddler &amp;&amp; tiddler.hasField(&quot;draft.of&quot;),
template = this.template,
templateTree;
if(isDraft &amp;&amp; this.editTemplate) {
template = this.editTemplate;
}
// Compose the transclusion of the template
if(template) {
templateTree = [{type: &quot;transclude&quot;, attributes: {tiddler: {type: &quot;string&quot;, value: template}}}];
} else {
if(this.parseTreeNode.children &amp;&amp; this.parseTreeNode.children.length &gt; 0) {
templateTree = this.parseTreeNode.children;
} else {
// Default template is a link to the title
templateTree = [{type: &quot;element&quot;, tag: this.parseTreeNode.isBlock ? &quot;div&quot; : &quot;span&quot;, children: [{type: &quot;link&quot;, attributes: {to: {type: &quot;string&quot;, value: title}}, children: [
{type: &quot;text&quot;, text: title}
]}]}];
}
}
// Return the list item
return {type: &quot;listitem&quot;, itemTitle: title, variableName: this.variableName, children: templateTree};
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
ListWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes(),
result;
// Call the storyview
if(this.storyview &amp;&amp; this.storyview.refreshStart) {
this.storyview.refreshStart(changedTiddlers,changedAttributes);
}
// Completely refresh if any of our attributes have changed
if(changedAttributes.filter || changedAttributes.template || changedAttributes.editTemplate || changedAttributes.emptyMessage || changedAttributes.storyview || changedAttributes.history) {
this.refreshSelf();
result = true;
} else {
// Handle any changes to the list
result = this.handleListChanges(changedTiddlers);
// Handle any changes to the history stack
if(this.historyTitle &amp;&amp; changedTiddlers[this.historyTitle]) {
this.handleHistoryChanges();
}
}
// Call the storyview
if(this.storyview &amp;&amp; this.storyview.refreshEnd) {
this.storyview.refreshEnd(changedTiddlers,changedAttributes);
}
return result;
};
/*
Handle any changes to the history list
*/
ListWidget.prototype.handleHistoryChanges = function() {
// Get the history data
var newHistory = this.wiki.getTiddlerDataCached(this.historyTitle,[]);
// Ignore any entries of the history that match the previous history
var entry = 0;
while(entry &lt; newHistory.length &amp;&amp; entry &lt; this.history.length &amp;&amp; newHistory[entry].title === this.history[entry].title) {
entry++;
}
// Navigate forwards to each of the new tiddlers
while(entry &lt; newHistory.length) {
if(this.storyview &amp;&amp; this.storyview.navigateTo) {
this.storyview.navigateTo(newHistory[entry]);
}
entry++;
}
// Update the history
this.history = newHistory;
};
/*
Process any changes to the list
*/
ListWidget.prototype.handleListChanges = function(changedTiddlers) {
// Get the new list
var prevList = this.list;
this.list = this.getTiddlerList();
// Check for an empty list
if(this.list.length === 0) {
// Check if it was empty before
if(prevList.length === 0) {
// If so, just refresh the empty message
return this.refreshChildren(changedTiddlers);
} else {
// Replace the previous content with the empty message
for(t=this.children.length-1; t&gt;=0; t--) {
this.removeListItem(t);
}
var nextSibling = this.findNextSiblingDomNode();
this.makeChildWidgets(this.getEmptyMessage());
this.renderChildren(this.parentDomNode,nextSibling);
return true;
}
} else {
// If the list was empty then we need to remove the empty message
if(prevList.length === 0) {
this.removeChildDomNodes();
this.children = [];
}
// Cycle through the list, inserting and removing list items as needed
var hasRefreshed = false;
for(var t=0; t&lt;this.list.length; t++) {
var index = this.findListItem(t,this.list[t]);
if(index === undefined) {
// The list item must be inserted
this.insertListItem(t,this.list[t]);
hasRefreshed = true;
} else {
// There are intervening list items that must be removed
for(var n=index-1; n&gt;=t; n--) {
this.removeListItem(n);
hasRefreshed = true;
}
// Refresh the item we're reusing
var refreshed = this.children[t].refresh(changedTiddlers);
hasRefreshed = hasRefreshed || refreshed;
}
}
// Remove any left over items
for(t=this.children.length-1; t&gt;=this.list.length; t--) {
this.removeListItem(t);
hasRefreshed = true;
}
return hasRefreshed;
}
};
/*
Find the list item with a given title, starting from a specified position
*/
ListWidget.prototype.findListItem = function(startIndex,title) {
while(startIndex &lt; this.children.length) {
if(this.children[startIndex].parseTreeNode.itemTitle === title) {
return startIndex;
}
startIndex++;
}
return undefined;
};
/*
Insert a new list item at the specified index
*/
ListWidget.prototype.insertListItem = function(index,title) {
// Create, insert and render the new child widgets
var widget = this.makeChildWidget(this.makeItemTemplate(title));
widget.parentDomNode = this.parentDomNode; // Hack to enable findNextSiblingDomNode() to work
this.children.splice(index,0,widget);
var nextSibling = widget.findNextSiblingDomNode();
widget.render(this.parentDomNode,nextSibling);
// Animate the insertion if required
if(this.storyview &amp;&amp; this.storyview.insert) {
this.storyview.insert(widget);
}
return true;
};
/*
Remove the specified list item
*/
ListWidget.prototype.removeListItem = function(index) {
var widget = this.children[index];
// Animate the removal if required
if(this.storyview &amp;&amp; this.storyview.remove) {
this.storyview.remove(widget);
} else {
widget.removeChildDomNodes();
}
// Remove the child widget
this.children.splice(index,1);
};
exports.list = ListWidget;
var ListItemWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
ListItemWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
ListItemWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
ListItemWidget.prototype.execute = function() {
// Set the current list item title
this.setVariable(this.parseTreeNode.variableName,this.parseTreeNode.itemTitle);
// Construct the child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
ListItemWidget.prototype.refresh = function(changedTiddlers) {
return this.refreshChildren(changedTiddlers);
};
exports.listitem = ListItemWidget;
})();</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/macrocall.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/macrocall.js
type: application/javascript
module-type: widget
Macrocall widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var MacroCallWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
MacroCallWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
MacroCallWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
MacroCallWidget.prototype.execute = function() {
// Get the parse type if specified
this.parseType = this.getAttribute(&quot;$type&quot;,&quot;text/vnd.tiddlywiki&quot;);
this.renderOutput = this.getAttribute(&quot;$output&quot;,&quot;text/html&quot;);
// Merge together the parameters specified in the parse tree with the specified attributes
var params = this.parseTreeNode.params ? this.parseTreeNode.params.slice(0) : [];
$tw.utils.each(this.attributes,function(attribute,name) {
if(name.charAt(0) !== &quot;$&quot;) {
params.push({name: name, value: attribute});
}
});
// Get the macro value
var macroName = this.parseTreeNode.name || this.getAttribute(&quot;$name&quot;),
variableInfo = this.getVariableInfo(macroName,{params: params}),
text = variableInfo.text,
parseTreeNodes;
// Are we rendering to HTML?
if(this.renderOutput === &quot;text/html&quot;) {
// If so we'll return the parsed macro
var parser = this.wiki.parseText(this.parseType,text,
{parseAsInline: !this.parseTreeNode.isBlock});
parseTreeNodes = parser ? parser.tree : [];
// Wrap the parse tree in a vars widget assigning the parameters to variables named &quot;__paramname__&quot;
var attributes = {};
$tw.utils.each(variableInfo.params,function(param) {
var name = &quot;__&quot; + param.name + &quot;__&quot;;
attributes[name] = {
name: name,
type: &quot;string&quot;,
value: param.value
};
});
parseTreeNodes = [{
type: &quot;vars&quot;,
attributes: attributes,
children: parseTreeNodes
}];
} else {
// Otherwise, we'll render the text
var plainText = this.wiki.renderText(&quot;text/plain&quot;,this.parseType,text,{parentWidget: this});
parseTreeNodes = [{type: &quot;text&quot;, text: plainText}];
}
// Construct the child widgets
this.makeChildWidgets(parseTreeNodes);
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
MacroCallWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if($tw.utils.count(changedAttributes) &gt; 0) {
// Rerender ourselves
this.refreshSelf();
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
exports.macrocall = MacroCallWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/navigator.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/navigator.js
type: application/javascript
module-type: widget
Navigator widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var IMPORT_TITLE = &quot;$:/Import&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var NavigatorWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
this.addEventListeners([
{type: &quot;tm-navigate&quot;, handler: &quot;handleNavigateEvent&quot;},
{type: &quot;tm-edit-tiddler&quot;, handler: &quot;handleEditTiddlerEvent&quot;},
{type: &quot;tm-delete-tiddler&quot;, handler: &quot;handleDeleteTiddlerEvent&quot;},
{type: &quot;tm-save-tiddler&quot;, handler: &quot;handleSaveTiddlerEvent&quot;},
{type: &quot;tm-cancel-tiddler&quot;, handler: &quot;handleCancelTiddlerEvent&quot;},
{type: &quot;tm-close-tiddler&quot;, handler: &quot;handleCloseTiddlerEvent&quot;},
{type: &quot;tm-close-all-tiddlers&quot;, handler: &quot;handleCloseAllTiddlersEvent&quot;},
{type: &quot;tm-close-other-tiddlers&quot;, handler: &quot;handleCloseOtherTiddlersEvent&quot;},
{type: &quot;tm-new-tiddler&quot;, handler: &quot;handleNewTiddlerEvent&quot;},
{type: &quot;tm-import-tiddlers&quot;, handler: &quot;handleImportTiddlersEvent&quot;},
{type: &quot;tm-perform-import&quot;, handler: &quot;handlePerformImportEvent&quot;},
{type: &quot;tm-fold-tiddler&quot;, handler: &quot;handleFoldTiddlerEvent&quot;},
{type: &quot;tm-fold-other-tiddlers&quot;, handler: &quot;handleFoldOtherTiddlersEvent&quot;},
{type: &quot;tm-fold-all-tiddlers&quot;, handler: &quot;handleFoldAllTiddlersEvent&quot;},
{type: &quot;tm-unfold-all-tiddlers&quot;, handler: &quot;handleUnfoldAllTiddlersEvent&quot;},
{type: &quot;tm-rename-tiddler&quot;, handler: &quot;handleRenameTiddlerEvent&quot;}
]);
};
/*
Inherit from the base widget class
*/
NavigatorWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
NavigatorWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
NavigatorWidget.prototype.execute = function() {
// Get our parameters
this.storyTitle = this.getAttribute(&quot;story&quot;);
this.historyTitle = this.getAttribute(&quot;history&quot;);
this.setVariable(&quot;tv-story-list&quot;,this.storyTitle);
this.setVariable(&quot;tv-history-list&quot;,this.historyTitle);
// Construct the child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
NavigatorWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.story || changedAttributes.history) {
this.refreshSelf();
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
NavigatorWidget.prototype.getStoryList = function() {
return this.storyTitle ? this.wiki.getTiddlerList(this.storyTitle) : null;
};
NavigatorWidget.prototype.saveStoryList = function(storyList) {
if(this.storyTitle) {
var storyTiddler = this.wiki.getTiddler(this.storyTitle);
this.wiki.addTiddler(new $tw.Tiddler(
{title: this.storyTitle},
storyTiddler,
{list: storyList}
));
}
};
NavigatorWidget.prototype.removeTitleFromStory = function(storyList,title) {
if(storyList) {
var p = storyList.indexOf(title);
while(p !== -1) {
storyList.splice(p,1);
p = storyList.indexOf(title);
}
}
};
NavigatorWidget.prototype.replaceFirstTitleInStory = function(storyList,oldTitle,newTitle) {
if(storyList) {
var pos = storyList.indexOf(oldTitle);
if(pos !== -1) {
storyList[pos] = newTitle;
do {
pos = storyList.indexOf(oldTitle,pos + 1);
if(pos !== -1) {
storyList.splice(pos,1);
}
} while(pos !== -1);
} else {
storyList.splice(0,0,newTitle);
}
}
};
NavigatorWidget.prototype.addToStory = function(title,fromTitle) {
if(this.storyTitle) {
this.wiki.addToStory(title,fromTitle,this.storyTitle,{
openLinkFromInsideRiver: this.getAttribute(&quot;openLinkFromInsideRiver&quot;,&quot;top&quot;),
openLinkFromOutsideRiver: this.getAttribute(&quot;openLinkFromOutsideRiver&quot;,&quot;top&quot;)
});
}
};
/*
Add a new record to the top of the history stack
title: a title string or an array of title strings
fromPageRect: page coordinates of the origin of the navigation
*/
NavigatorWidget.prototype.addToHistory = function(title,fromPageRect) {
this.wiki.addToHistory(title,fromPageRect,this.historyTitle);
};
/*
Handle a tm-navigate event
*/
NavigatorWidget.prototype.handleNavigateEvent = function(event) {
event = $tw.hooks.invokeHook(&quot;th-navigating&quot;,event);
if(event.navigateTo) {
this.addToStory(event.navigateTo,event.navigateFromTitle);
if(!event.navigateSuppressNavigation) {
this.addToHistory(event.navigateTo,event.navigateFromClientRect);
}
}
return false;
};
// Close a specified tiddler
NavigatorWidget.prototype.handleCloseTiddlerEvent = function(event) {
var title = event.param || event.tiddlerTitle,
storyList = this.getStoryList();
// Look for tiddlers with this title to close
this.removeTitleFromStory(storyList,title);
this.saveStoryList(storyList);
return false;
};
// Close all tiddlers
NavigatorWidget.prototype.handleCloseAllTiddlersEvent = function(event) {
this.saveStoryList([]);
return false;
};
// Close other tiddlers
NavigatorWidget.prototype.handleCloseOtherTiddlersEvent = function(event) {
var title = event.param || event.tiddlerTitle;
this.saveStoryList([title]);
return false;
};
// Place a tiddler in edit mode
NavigatorWidget.prototype.handleEditTiddlerEvent = function(event) {
var editTiddler = $tw.hooks.invokeHook(&quot;th-editing-tiddler&quot;,event);
if(!editTiddler) {
return false;
}
var self = this;
function isUnmodifiedShadow(title) {
return self.wiki.isShadowTiddler(title) &amp;&amp; !self.wiki.tiddlerExists(title);
}
function confirmEditShadow(title) {
return confirm($tw.language.getString(
&quot;ConfirmEditShadowTiddler&quot;,
{variables:
{title: title}
}
));
}
var title = event.param || event.tiddlerTitle;
if(isUnmodifiedShadow(title) &amp;&amp; !confirmEditShadow(title)) {
return false;
}
// Replace the specified tiddler with a draft in edit mode
var draftTiddler = this.makeDraftTiddler(title);
// Update the story and history if required
if(!event.paramObject || event.paramObject.suppressNavigation !== &quot;yes&quot;) {
var draftTitle = draftTiddler.fields.title,
storyList = this.getStoryList();
this.removeTitleFromStory(storyList,draftTitle);
this.replaceFirstTitleInStory(storyList,title,draftTitle);
this.addToHistory(draftTitle,event.navigateFromClientRect);
this.saveStoryList(storyList);
return false;
}
};
// Delete a tiddler
NavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) {
// Get the tiddler we're deleting
var title = event.param || event.tiddlerTitle,
tiddler = this.wiki.getTiddler(title),
storyList = this.getStoryList(),
originalTitle = tiddler ? tiddler.fields[&quot;draft.of&quot;] : &quot;&quot;,
originalTiddler = originalTitle ? this.wiki.getTiddler(originalTitle) : undefined,
confirmationTitle;
if(!tiddler) {
return false;
}
// Check if the tiddler we're deleting is in draft mode
if(originalTitle) {
// If so, we'll prompt for confirmation referencing the original tiddler
confirmationTitle = originalTitle;
} else {
// If not a draft, then prompt for confirmation referencing the specified tiddler
confirmationTitle = title;
}
// Seek confirmation
if((this.wiki.getTiddler(originalTitle) || (tiddler.fields.text || &quot;&quot;) !== &quot;&quot;) &amp;&amp; !confirm($tw.language.getString(
&quot;ConfirmDeleteTiddler&quot;,
{variables:
{title: confirmationTitle}
}
))) {
return false;
}
// Delete the original tiddler
if(originalTitle) {
if(originalTiddler) {
$tw.hooks.invokeHook(&quot;th-deleting-tiddler&quot;,originalTiddler);
}
this.wiki.deleteTiddler(originalTitle);
this.removeTitleFromStory(storyList,originalTitle);
}
// Invoke the hook function and delete this tiddler
$tw.hooks.invokeHook(&quot;th-deleting-tiddler&quot;,tiddler);
this.wiki.deleteTiddler(title);
// Remove the closed tiddler from the story
this.removeTitleFromStory(storyList,title);
this.saveStoryList(storyList);
// Trigger an autosave
$tw.rootWidget.dispatchEvent({type: &quot;tm-auto-save-wiki&quot;});
return false;
};
/*
Create/reuse the draft tiddler for a given title
*/
NavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) {
// See if there is already a draft tiddler for this tiddler
var draftTitle = this.wiki.findDraft(targetTitle);
if(draftTitle) {
return this.wiki.getTiddler(draftTitle);
}
// Get the current value of the tiddler we're editing
var tiddler = this.wiki.getTiddler(targetTitle);
// Save the initial value of the draft tiddler
draftTitle = this.generateDraftTitle(targetTitle);
var draftTiddler = new $tw.Tiddler(
tiddler,
{
title: draftTitle,
&quot;draft.title&quot;: targetTitle,
&quot;draft.of&quot;: targetTitle
},
this.wiki.getModificationFields()
);
this.wiki.addTiddler(draftTiddler);
return draftTiddler;
};
/*
Generate a title for the draft of a given tiddler
*/
NavigatorWidget.prototype.generateDraftTitle = function(title) {
return this.wiki.generateDraftTitle(title);
};
// Take a tiddler out of edit mode, saving the changes
NavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {
var title = event.param || event.tiddlerTitle,
tiddler = this.wiki.getTiddler(title),
storyList = this.getStoryList();
// Replace the original tiddler with the draft
if(tiddler) {
var draftTitle = (tiddler.fields[&quot;draft.title&quot;] || &quot;&quot;).trim(),
draftOf = (tiddler.fields[&quot;draft.of&quot;] || &quot;&quot;).trim();
if(draftTitle) {
var isRename = draftOf !== draftTitle,
isConfirmed = true;
if(isRename &amp;&amp; this.wiki.tiddlerExists(draftTitle)) {
isConfirmed = confirm($tw.language.getString(
&quot;ConfirmOverwriteTiddler&quot;,
{variables:
{title: draftTitle}
}
));
}
if(isConfirmed) {
// Create the new tiddler and pass it through the th-saving-tiddler hook
var newTiddler = new $tw.Tiddler(this.wiki.getCreationFields(),tiddler,{
title: draftTitle,
&quot;draft.title&quot;: undefined,
&quot;draft.of&quot;: undefined
},this.wiki.getModificationFields());
newTiddler = $tw.hooks.invokeHook(&quot;th-saving-tiddler&quot;,newTiddler);
this.wiki.addTiddler(newTiddler);
// If enabled, relink references to renamed tiddler
var shouldRelink = this.getAttribute(&quot;relinkOnRename&quot;,&quot;no&quot;).toLowerCase().trim() === &quot;yes&quot;;
if(isRename &amp;&amp; shouldRelink &amp;&amp; this.wiki.tiddlerExists(draftOf)) {
console.log(&quot;Relinking '&quot; + draftOf + &quot;' to '&quot; + draftTitle + &quot;'&quot;);
this.wiki.relinkTiddler(draftOf,draftTitle);
}
// Remove the draft tiddler
this.wiki.deleteTiddler(title);
// Remove the original tiddler if we're renaming it
if(isRename) {
this.wiki.deleteTiddler(draftOf);
}
// #2381 always remove new title &amp; old
this.removeTitleFromStory(storyList,draftTitle);
this.removeTitleFromStory(storyList,draftOf);
if(!event.paramObject || event.paramObject.suppressNavigation !== &quot;yes&quot;) {
// Replace the draft in the story with the original
this.replaceFirstTitleInStory(storyList,title,draftTitle);
this.addToHistory(draftTitle,event.navigateFromClientRect);
if(draftTitle !== this.storyTitle) {
this.saveStoryList(storyList);
}
}
// Trigger an autosave
$tw.rootWidget.dispatchEvent({type: &quot;tm-auto-save-wiki&quot;});
}
}
}
return false;
};
// Take a tiddler out of edit mode without saving the changes
NavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) {
event = $tw.hooks.invokeHook(&quot;th-cancelling-tiddler&quot;, event);
// Flip the specified tiddler from draft back to the original
var draftTitle = event.param || event.tiddlerTitle,
draftTiddler = this.wiki.getTiddler(draftTitle),
originalTitle = draftTiddler &amp;&amp; draftTiddler.fields[&quot;draft.of&quot;];
if(draftTiddler &amp;&amp; originalTitle) {
// Ask for confirmation if the tiddler text has changed
var isConfirmed = true,
originalTiddler = this.wiki.getTiddler(originalTitle),
storyList = this.getStoryList();
if(this.wiki.isDraftModified(draftTitle)) {
isConfirmed = confirm($tw.language.getString(
&quot;ConfirmCancelTiddler&quot;,
{variables:
{title: draftTitle}
}
));
}
// Remove the draft tiddler
if(isConfirmed) {
this.wiki.deleteTiddler(draftTitle);
if(!event.paramObject || event.paramObject.suppressNavigation !== &quot;yes&quot;) {
if(originalTiddler) {
this.replaceFirstTitleInStory(storyList,draftTitle,originalTitle);
this.addToHistory(originalTitle,event.navigateFromClientRect);
} else {
this.removeTitleFromStory(storyList,draftTitle);
}
this.saveStoryList(storyList);
}
}
}
return false;
};
// Create a new draft tiddler
// event.param can either be the title of a template tiddler, or a hashmap of fields.
//
// The title of the newly created tiddler follows these rules:
// * If a hashmap was used and a title field was specified, use that title
// * If a hashmap was used without a title field, use a default title, if necessary making it unique with a numeric suffix
// * If a template tiddler was used, use the title of the template, if necessary making it unique with a numeric suffix
//
// If a draft of the target tiddler already exists then it is reused
NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) {
event = $tw.hooks.invokeHook(&quot;th-new-tiddler&quot;, event);
// Get the story details
var storyList = this.getStoryList(),
templateTiddler, additionalFields, title, draftTitle, existingTiddler;
// Get the template tiddler (if any)
if(typeof event.param === &quot;string&quot;) {
// Get the template tiddler
templateTiddler = this.wiki.getTiddler(event.param);
// Generate a new title
title = this.wiki.generateNewTitle(event.param || $tw.language.getString(&quot;DefaultNewTiddlerTitle&quot;));
}
// Get the specified additional fields
if(typeof event.paramObject === &quot;object&quot;) {
additionalFields = event.paramObject;
}
if(typeof event.param === &quot;object&quot;) { // Backwards compatibility with 5.1.3
additionalFields = event.param;
}
if(additionalFields &amp;&amp; additionalFields.title) {
title = additionalFields.title;
}
// Make a copy of the additional fields excluding any blank ones
var filteredAdditionalFields = $tw.utils.extend({},additionalFields);
Object.keys(filteredAdditionalFields).forEach(function(fieldName) {
if(filteredAdditionalFields[fieldName] === &quot;&quot;) {
delete filteredAdditionalFields[fieldName];
}
});
// Generate a title if we don't have one
title = title || this.wiki.generateNewTitle($tw.language.getString(&quot;DefaultNewTiddlerTitle&quot;));
// Find any existing draft for this tiddler
draftTitle = this.wiki.findDraft(title);
// Pull in any existing tiddler
if(draftTitle) {
existingTiddler = this.wiki.getTiddler(draftTitle);
} else {
draftTitle = this.generateDraftTitle(title);
existingTiddler = this.wiki.getTiddler(title);
}
// Merge the tags
var mergedTags = [];
if(existingTiddler &amp;&amp; existingTiddler.fields.tags) {
$tw.utils.pushTop(mergedTags,existingTiddler.fields.tags);
}
if(additionalFields &amp;&amp; additionalFields.tags) {
// Merge tags
mergedTags = $tw.utils.pushTop(mergedTags,$tw.utils.parseStringArray(additionalFields.tags));
}
if(templateTiddler &amp;&amp; templateTiddler.fields.tags) {
// Merge tags
mergedTags = $tw.utils.pushTop(mergedTags,templateTiddler.fields.tags);
}
// Save the draft tiddler
var draftTiddler = new $tw.Tiddler({
text: &quot;&quot;,
&quot;draft.title&quot;: title
},
templateTiddler,
additionalFields,
this.wiki.getCreationFields(),
existingTiddler,
filteredAdditionalFields,
{
title: draftTitle,
&quot;draft.of&quot;: title,
tags: mergedTags
},this.wiki.getModificationFields());
this.wiki.addTiddler(draftTiddler);
// Update the story to insert the new draft at the top and remove any existing tiddler
if(storyList &amp;&amp; storyList.indexOf(draftTitle) === -1) {
var slot = storyList.indexOf(event.navigateFromTitle);
if(slot === -1) {
slot = this.getAttribute(&quot;openLinkFromOutsideRiver&quot;,&quot;top&quot;) === &quot;bottom&quot; ? storyList.length - 1 : slot;
}
storyList.splice(slot + 1,0,draftTitle);
}
if(storyList &amp;&amp; storyList.indexOf(title) !== -1) {
storyList.splice(storyList.indexOf(title),1);
}
this.saveStoryList(storyList);
// Add a new record to the top of the history stack
this.addToHistory(draftTitle);
return false;
};
// Import JSON tiddlers into a pending import tiddler
NavigatorWidget.prototype.handleImportTiddlersEvent = function(event) {
// Get the tiddlers
var tiddlers = [];
try {
tiddlers = JSON.parse(event.param);
} catch(e) {
}
// Get the current $:/Import tiddler
var importTiddler = this.wiki.getTiddler(IMPORT_TITLE),
importData = this.wiki.getTiddlerData(IMPORT_TITLE,{}),
newFields = new Object({
title: IMPORT_TITLE,
type: &quot;application/json&quot;,
&quot;plugin-type&quot;: &quot;import&quot;,
&quot;status&quot;: &quot;pending&quot;
}),
incomingTiddlers = [];
// Process each tiddler
importData.tiddlers = importData.tiddlers || {};
$tw.utils.each(tiddlers,function(tiddlerFields) {
tiddlerFields.title = $tw.utils.trim(tiddlerFields.title);
var title = tiddlerFields.title;
if(title) {
incomingTiddlers.push(title);
importData.tiddlers[title] = tiddlerFields;
}
});
// Give the active upgrader modules a chance to process the incoming tiddlers
var messages = this.wiki.invokeUpgraders(incomingTiddlers,importData.tiddlers);
$tw.utils.each(messages,function(message,title) {
newFields[&quot;message-&quot; + title] = message;
});
// Deselect any suppressed tiddlers
$tw.utils.each(importData.tiddlers,function(tiddler,title) {
if($tw.utils.count(tiddler) === 0) {
newFields[&quot;selection-&quot; + title] = &quot;unchecked&quot;;
}
});
// Save the $:/Import tiddler
newFields.text = JSON.stringify(importData,null,$tw.config.preferences.jsonSpaces);
this.wiki.addTiddler(new $tw.Tiddler(importTiddler,newFields));
// Update the story and history details
if(this.getVariable(&quot;tv-auto-open-on-import&quot;) !== &quot;no&quot;) {
var storyList = this.getStoryList(),
history = [];
// Add it to the story
if(storyList &amp;&amp; storyList.indexOf(IMPORT_TITLE) === -1) {
storyList.unshift(IMPORT_TITLE);
}
// And to history
history.push(IMPORT_TITLE);
// Save the updated story and history
this.saveStoryList(storyList);
this.addToHistory(history);
}
return false;
};
//
NavigatorWidget.prototype.handlePerformImportEvent = function(event) {
var self = this,
importTiddler = this.wiki.getTiddler(event.param),
importData = this.wiki.getTiddlerDataCached(event.param,{tiddlers: {}}),
importReport = [];
// Add the tiddlers to the store
importReport.push($tw.language.getString(&quot;Import/Imported/Hint&quot;) + &quot;\n&quot;);
$tw.utils.each(importData.tiddlers,function(tiddlerFields) {
var title = tiddlerFields.title;
if(title &amp;&amp; importTiddler &amp;&amp; importTiddler.fields[&quot;selection-&quot; + title] !== &quot;unchecked&quot;) {
var tiddler = new $tw.Tiddler(tiddlerFields);
tiddler = $tw.hooks.invokeHook(&quot;th-importing-tiddler&quot;,tiddler);
self.wiki.addTiddler(tiddler);
importReport.push(&quot;# [[&quot; + tiddlerFields.title + &quot;]]&quot;);
}
});
// Replace the $:/Import tiddler with an import report
this.wiki.addTiddler(new $tw.Tiddler({
title: event.param,
text: importReport.join(&quot;\n&quot;),
&quot;status&quot;: &quot;complete&quot;
}));
// Navigate to the $:/Import tiddler
this.addToHistory([event.param]);
// Trigger an autosave
$tw.rootWidget.dispatchEvent({type: &quot;tm-auto-save-wiki&quot;});
};
NavigatorWidget.prototype.handleFoldTiddlerEvent = function(event) {
var paramObject = event.paramObject || {};
if(paramObject.foldedState) {
var foldedState = this.wiki.getTiddlerText(paramObject.foldedState,&quot;show&quot;) === &quot;show&quot; ? &quot;hide&quot; : &quot;show&quot;;
this.wiki.setText(paramObject.foldedState,&quot;text&quot;,null,foldedState);
}
};
NavigatorWidget.prototype.handleFoldOtherTiddlersEvent = function(event) {
var self = this,
paramObject = event.paramObject || {},
prefix = paramObject.foldedStatePrefix;
$tw.utils.each(this.getStoryList(),function(title) {
self.wiki.setText(prefix + title,&quot;text&quot;,null,event.param === title ? &quot;show&quot; : &quot;hide&quot;);
});
};
NavigatorWidget.prototype.handleFoldAllTiddlersEvent = function(event) {
var self = this,
paramObject = event.paramObject || {},
prefix = paramObject.foldedStatePrefix || &quot;$:/state/folded/&quot;;
$tw.utils.each(this.getStoryList(),function(title) {
self.wiki.setText(prefix + title,&quot;text&quot;,null,&quot;hide&quot;);
});
};
NavigatorWidget.prototype.handleUnfoldAllTiddlersEvent = function(event) {
var self = this,
paramObject = event.paramObject || {},
prefix = paramObject.foldedStatePrefix;
$tw.utils.each(this.getStoryList(),function(title) {
self.wiki.setText(prefix + title,&quot;text&quot;,null,&quot;show&quot;);
});
};
NavigatorWidget.prototype.handleRenameTiddlerEvent = function(event) {
var paramObject = event.paramObject || {},
from = paramObject.from || event.tiddlerTitle,
to = paramObject.to;
this.wiki.renameTiddler(from,to);
};
exports.navigator = NavigatorWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/password.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/password.js
type: application/javascript
module-type: widget
Password widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var PasswordWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
PasswordWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
PasswordWidget.prototype.render = function(parent,nextSibling) {
// Save the parent dom node
this.parentDomNode = parent;
// Compute our attributes
this.computeAttributes();
// Execute our logic
this.execute();
// Get the current password
var password = $tw.browser ? $tw.utils.getPassword(this.passwordName) || &quot;&quot; : &quot;&quot;;
// Create our element
var domNode = this.document.createElement(&quot;input&quot;);
domNode.setAttribute(&quot;type&quot;,&quot;password&quot;);
domNode.setAttribute(&quot;value&quot;,password);
// Add a click event handler
$tw.utils.addEventListeners(domNode,[
{name: &quot;change&quot;, handlerObject: this, handlerMethod: &quot;handleChangeEvent&quot;}
]);
// Insert the label into the DOM and render any children
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
this.domNodes.push(domNode);
};
PasswordWidget.prototype.handleChangeEvent = function(event) {
var password = this.domNodes[0].value;
return $tw.utils.savePassword(this.passwordName,password);
};
/*
Compute the internal state of the widget
*/
PasswordWidget.prototype.execute = function() {
// Get the parameters from the attributes
this.passwordName = this.getAttribute(&quot;name&quot;,&quot;&quot;);
// Make the child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
PasswordWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.name) {
this.refreshSelf();
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
exports.password = PasswordWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/qualify.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/qualify.js
type: application/javascript
module-type: widget
Qualify text to a variable
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var QualifyWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
QualifyWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
QualifyWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
QualifyWidget.prototype.execute = function() {
// Get our parameters
this.qualifyName = this.getAttribute(&quot;name&quot;);
this.qualifyTitle = this.getAttribute(&quot;title&quot;);
// Set context variable
if(this.qualifyName) {
this.setVariable(this.qualifyName,this.qualifyTitle + &quot;-&quot; + this.getStateQualifier());
}
// Construct the child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
QualifyWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.name || changedAttributes.title) {
this.refreshSelf();
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
exports.qualify = QualifyWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/radio.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/radio.js
type: application/javascript
module-type: widget
Set a field or index at a given tiddler via radio buttons
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var RadioWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
RadioWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
RadioWidget.prototype.render = function(parent,nextSibling) {
// Save the parent dom node
this.parentDomNode = parent;
// Compute our attributes
this.computeAttributes();
// Execute our logic
this.execute();
var isChecked = this.getValue() === this.radioValue;
// Create our elements
this.labelDomNode = this.document.createElement(&quot;label&quot;);
this.labelDomNode.setAttribute(&quot;class&quot;,
&quot;tc-radio &quot; + this.radioClass + (isChecked ? &quot; tc-radio-selected&quot; : &quot;&quot;)
);
this.inputDomNode = this.document.createElement(&quot;input&quot;);
this.inputDomNode.setAttribute(&quot;type&quot;,&quot;radio&quot;);
if(isChecked) {
this.inputDomNode.setAttribute(&quot;checked&quot;,&quot;true&quot;);
}
this.labelDomNode.appendChild(this.inputDomNode);
this.spanDomNode = this.document.createElement(&quot;span&quot;);
this.labelDomNode.appendChild(this.spanDomNode);
// Add a click event handler
$tw.utils.addEventListeners(this.inputDomNode,[
{name: &quot;change&quot;, handlerObject: this, handlerMethod: &quot;handleChangeEvent&quot;}
]);
// Insert the label into the DOM and render any children
parent.insertBefore(this.labelDomNode,nextSibling);
this.renderChildren(this.spanDomNode,null);
this.domNodes.push(this.labelDomNode);
};
RadioWidget.prototype.getValue = function() {
var value,
tiddler = this.wiki.getTiddler(this.radioTitle);
if (this.radioIndex) {
value = this.wiki.extractTiddlerDataItem(this.radioTitle,this.radioIndex);
} else {
value = tiddler &amp;&amp; tiddler.getFieldString(this.radioField);
}
return value;
};
RadioWidget.prototype.setValue = function() {
if(this.radioIndex) {
this.wiki.setText(this.radioTitle,&quot;&quot;,this.radioIndex,this.radioValue);
} else {
var tiddler = this.wiki.getTiddler(this.radioTitle),
addition = {};
addition[this.radioField] = this.radioValue;
this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),{title: this.radioTitle},tiddler,addition,this.wiki.getModificationFields()));
}
};
RadioWidget.prototype.handleChangeEvent = function(event) {
if(this.inputDomNode.checked) {
this.setValue();
}
};
/*
Compute the internal state of the widget
*/
RadioWidget.prototype.execute = function() {
// Get the parameters from the attributes
this.radioTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.radioField = this.getAttribute(&quot;field&quot;,&quot;text&quot;);
this.radioIndex = this.getAttribute(&quot;index&quot;);
this.radioValue = this.getAttribute(&quot;value&quot;);
this.radioClass = this.getAttribute(&quot;class&quot;,&quot;&quot;);
// Make the child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
RadioWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes[&quot;class&quot;]) {
this.refreshSelf();
return true;
} else {
var refreshed = false;
if(changedTiddlers[this.radioTitle]) {
this.inputDomNode.checked = this.getValue() === this.radioValue;
refreshed = true;
}
return this.refreshChildren(changedTiddlers) || refreshed;
}
};
exports.radio = RadioWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/range.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/range.js
type: application/javascript
module-type: widget
Range widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var RangeWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
RangeWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
RangeWidget.prototype.render = function(parent,nextSibling) {
// Save the parent dom node
this.parentDomNode = parent;
// Compute our attributes
this.computeAttributes();
// Execute our logic
this.execute();
// Create our elements
this.inputDomNode = this.document.createElement(&quot;input&quot;);
this.inputDomNode.setAttribute(&quot;type&quot;,&quot;range&quot;);
this.inputDomNode.setAttribute(&quot;class&quot;,this.elementClass);
if(this.minValue){
this.inputDomNode.setAttribute(&quot;min&quot;, this.minValue);
}
if(this.maxValue){
this.inputDomNode.setAttribute(&quot;max&quot;, this.maxValue);
}
if(this.increment){
this.inputDomNode.setAttribute(&quot;step&quot;, this.increment);
}
this.inputDomNode.value = this.getValue();
// Add a click event handler
$tw.utils.addEventListeners(this.inputDomNode,[
{name: &quot;input&quot;, handlerObject: this, handlerMethod: &quot;handleInputEvent&quot;},
{name: &quot;change&quot;, handlerObject: this, handlerMethod: &quot;handleInputEvent&quot;}
]);
// Insert the label into the DOM and render any children
parent.insertBefore(this.inputDomNode,nextSibling);
this.domNodes.push(this.inputDomNode);
};
RangeWidget.prototype.getValue = function() {
var tiddler = this.wiki.getTiddler(this.tiddlerTitle),
fieldName = this.tiddlerField || &quot;text&quot;,
value = this.defaultValue;
if(tiddler) {
if(this.tiddlerIndex) {
value = this.wiki.extractTiddlerDataItem(tiddler,this.tiddlerIndex,this.defaultValue || &quot;&quot;);
} else {
if($tw.utils.hop(tiddler.fields,fieldName)) {
value = tiddler.fields[fieldName] || &quot;&quot;;
} else {
value = this.defaultValue || &quot;&quot;;
}
}
}
return value;
};
RangeWidget.prototype.handleInputEvent = function(event) {
if(this.getValue() !== this.inputDomNode.value) {
if(this.tiddlerIndex) {
this.wiki.setText(this.tiddlerTitle,&quot;&quot;,this.tiddlerIndex,this.inputDomNode.value);
} else {
this.wiki.setText(this.tiddlerTitle,this.tiddlerField,null,this.inputDomNode.value);
}
}
};
/*
Compute the internal state of the widget
*/
RangeWidget.prototype.execute = function() {
// Get the parameters from the attributes
this.tiddlerTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.tiddlerField = this.getAttribute(&quot;field&quot;);
this.tiddlerIndex = this.getAttribute(&quot;index&quot;);
this.minValue = this.getAttribute(&quot;min&quot;);
this.maxValue = this.getAttribute(&quot;max&quot;);
this.increment = this.getAttribute(&quot;increment&quot;);
this.defaultValue = this.getAttribute(&quot;default&quot;);
this.elementClass = this.getAttribute(&quot;class&quot;,&quot;&quot;);
// Make the child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
RangeWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes['min'] || changedAttributes['max'] || changedAttributes['increment'] || changedAttributes[&quot;default&quot;] || changedAttributes[&quot;class&quot;]) {
this.refreshSelf();
return true;
} else {
var refreshed = false;
if(changedTiddlers[this.tiddlerTitle]) {
var value = this.getValue();
if(this.inputDomNode.value !== value) {
this.inputDomNode.value = value;
}
refreshed = true;
}
return this.refreshChildren(changedTiddlers) || refreshed;
}
};
exports.range = RangeWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/raw.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/raw.js
type: application/javascript
module-type: widget
Raw widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var RawWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
RawWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
RawWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.execute();
var div = this.document.createElement(&quot;div&quot;);
div.innerHTML=this.parseTreeNode.html;
parent.insertBefore(div,nextSibling);
this.domNodes.push(div);
};
/*
Compute the internal state of the widget
*/
RawWidget.prototype.execute = function() {
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
RawWidget.prototype.refresh = function(changedTiddlers) {
return false;
};
exports.raw = RawWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/reveal.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/reveal.js
type: application/javascript
module-type: widget
Reveal widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var RevealWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
RevealWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
RevealWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
var tag = this.parseTreeNode.isBlock ? &quot;div&quot; : &quot;span&quot;;
if(this.revealTag &amp;&amp; $tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) {
tag = this.revealTag;
}
var domNode = this.document.createElement(tag);
var classes = this[&quot;class&quot;].split(&quot; &quot;) || [];
classes.push(&quot;tc-reveal&quot;);
domNode.className = classes.join(&quot; &quot;);
if(this.style) {
domNode.setAttribute(&quot;style&quot;,this.style);
}
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
if(!domNode.isTiddlyWikiFakeDom &amp;&amp; this.type === &quot;popup&quot; &amp;&amp; this.isOpen) {
this.positionPopup(domNode);
$tw.utils.addClass(domNode,&quot;tc-popup&quot;); // Make sure that clicks don't dismiss popups within the revealed content
}
if(!this.isOpen) {
domNode.setAttribute(&quot;hidden&quot;,&quot;true&quot;);
}
this.domNodes.push(domNode);
};
RevealWidget.prototype.positionPopup = function(domNode) {
domNode.style.position = &quot;absolute&quot;;
domNode.style.zIndex = &quot;1000&quot;;
var left,top;
switch(this.position) {
case &quot;left&quot;:
left = this.popup.left - domNode.offsetWidth;
top = this.popup.top;
break;
case &quot;above&quot;:
left = this.popup.left;
top = this.popup.top - domNode.offsetHeight;
break;
case &quot;aboveright&quot;:
left = this.popup.left + this.popup.width;
top = this.popup.top + this.popup.height - domNode.offsetHeight;
break;
case &quot;right&quot;:
left = this.popup.left + this.popup.width;
top = this.popup.top;
break;
case &quot;belowleft&quot;:
left = this.popup.left + this.popup.width - domNode.offsetWidth;
top = this.popup.top + this.popup.height;
break;
default: // Below
left = this.popup.left;
top = this.popup.top + this.popup.height;
break;
}
if(!this.positionAllowNegative) {
left = Math.max(0,left);
top = Math.max(0,top);
}
domNode.style.left = left + &quot;px&quot;;
domNode.style.top = top + &quot;px&quot;;
};
/*
Compute the internal state of the widget
*/
RevealWidget.prototype.execute = function() {
// Get our parameters
this.state = this.getAttribute(&quot;state&quot;);
this.revealTag = this.getAttribute(&quot;tag&quot;);
this.type = this.getAttribute(&quot;type&quot;);
this.text = this.getAttribute(&quot;text&quot;);
this.position = this.getAttribute(&quot;position&quot;);
this.positionAllowNegative = this.getAttribute(&quot;positionAllowNegative&quot;) === &quot;yes&quot;;
this[&quot;class&quot;] = this.getAttribute(&quot;class&quot;,&quot;&quot;);
this.style = this.getAttribute(&quot;style&quot;,&quot;&quot;);
this[&quot;default&quot;] = this.getAttribute(&quot;default&quot;,&quot;&quot;);
this.animate = this.getAttribute(&quot;animate&quot;,&quot;no&quot;);
this.retain = this.getAttribute(&quot;retain&quot;,&quot;no&quot;);
this.openAnimation = this.animate === &quot;no&quot; ? undefined : &quot;open&quot;;
this.closeAnimation = this.animate === &quot;no&quot; ? undefined : &quot;close&quot;;
// Compute the title of the state tiddler and read it
this.stateTiddlerTitle = this.state;
this.stateTitle = this.getAttribute(&quot;stateTitle&quot;);
this.stateField = this.getAttribute(&quot;stateField&quot;);
this.stateIndex = this.getAttribute(&quot;stateIndex&quot;);
this.readState();
// Construct the child widgets
var childNodes = this.isOpen ? this.parseTreeNode.children : [];
this.hasChildNodes = this.isOpen;
this.makeChildWidgets(childNodes);
};
/*
Read the state tiddler
*/
RevealWidget.prototype.readState = function() {
// Read the information from the state tiddler
var state,
defaultState = this[&quot;default&quot;];
if(this.stateTitle) {
var stateTitleTiddler = this.wiki.getTiddler(this.stateTitle);
if(this.stateField) {
state = stateTitleTiddler ? stateTitleTiddler.getFieldString(this.stateField) || defaultState : defaultState;
} else if(this.stateIndex) {
state = stateTitleTiddler ? this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex) || defaultState : defaultState;
} else if(stateTitleTiddler) {
state = this.wiki.getTiddlerText(this.stateTitle) || defaultState;
} else {
state = defaultState;
}
} else {
state = this.stateTiddlerTitle ? this.wiki.getTextReference(this.state,this[&quot;default&quot;],this.getVariable(&quot;currentTiddler&quot;)) : this[&quot;default&quot;];
}
if(state === null) {
state = this[&quot;default&quot;];
}
switch(this.type) {
case &quot;popup&quot;:
this.readPopupState(state);
break;
case &quot;match&quot;:
this.isOpen = this.text === state;
break;
case &quot;nomatch&quot;:
this.isOpen = this.text !== state;
break;
case &quot;lt&quot;:
this.isOpen = !!(this.compareStateText(state) &lt; 0);
break;
case &quot;gt&quot;:
this.isOpen = !!(this.compareStateText(state) &gt; 0);
break;
case &quot;lteq&quot;:
this.isOpen = !(this.compareStateText(state) &gt; 0);
break;
case &quot;gteq&quot;:
this.isOpen = !(this.compareStateText(state) &lt; 0);
break;
}
};
RevealWidget.prototype.compareStateText = function(state) {
return state.localeCompare(this.text,undefined,{numeric: true,sensitivity: &quot;case&quot;});
};
RevealWidget.prototype.readPopupState = function(state) {
var popupLocationRegExp = /^\((-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+)\)$/,
match = popupLocationRegExp.exec(state);
// Check if the state matches the location regexp
if(match) {
// If so, we're open
this.isOpen = true;
// Get the location
this.popup = {
left: parseFloat(match[1]),
top: parseFloat(match[2]),
width: parseFloat(match[3]),
height: parseFloat(match[4])
};
} else {
// If not, we're closed
this.isOpen = false;
}
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
RevealWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.state || changedAttributes.type || changedAttributes.text || changedAttributes.position || changedAttributes.positionAllowNegative || changedAttributes[&quot;default&quot;] || changedAttributes.animate || changedAttributes.stateTitle || changedAttributes.stateField || changedAttributes.stateIndex) {
this.refreshSelf();
return true;
} else {
var currentlyOpen = this.isOpen;
this.readState();
if(this.isOpen !== currentlyOpen) {
if(this.retain === &quot;yes&quot;) {
this.updateState();
} else {
this.refreshSelf();
return true;
}
}
return this.refreshChildren(changedTiddlers);
}
};
/*
Called by refresh() to dynamically show or hide the content
*/
RevealWidget.prototype.updateState = function() {
var self = this;
// Read the current state
this.readState();
// Construct the child nodes if needed
var domNode = this.domNodes[0];
if(this.isOpen &amp;&amp; !this.hasChildNodes) {
this.hasChildNodes = true;
this.makeChildWidgets(this.parseTreeNode.children);
this.renderChildren(domNode,null);
}
// Animate our DOM node
if(!domNode.isTiddlyWikiFakeDom &amp;&amp; this.type === &quot;popup&quot; &amp;&amp; this.isOpen) {
this.positionPopup(domNode);
$tw.utils.addClass(domNode,&quot;tc-popup&quot;); // Make sure that clicks don't dismiss popups within the revealed content
}
if(this.isOpen) {
domNode.removeAttribute(&quot;hidden&quot;);
$tw.anim.perform(this.openAnimation,domNode);
} else {
$tw.anim.perform(this.closeAnimation,domNode,{callback: function() {
//make sure that the state hasn't changed during the close animation
self.readState()
if(!self.isOpen) {
domNode.setAttribute(&quot;hidden&quot;,&quot;true&quot;);
}
}});
}
};
exports.reveal = RevealWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/scrollable.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/scrollable.js
type: application/javascript
module-type: widget
Scrollable widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var ScrollableWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
this.scaleFactor = 1;
this.addEventListeners([
{type: &quot;tm-scroll&quot;, handler: &quot;handleScrollEvent&quot;}
]);
if($tw.browser) {
this.requestAnimationFrame = window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
function(callback) {
return window.setTimeout(callback, 1000/60);
};
this.cancelAnimationFrame = window.cancelAnimationFrame ||
window.webkitCancelAnimationFrame ||
window.webkitCancelRequestAnimationFrame ||
window.mozCancelAnimationFrame ||
window.mozCancelRequestAnimationFrame ||
function(id) {
window.clearTimeout(id);
};
}
};
/*
Inherit from the base widget class
*/
ScrollableWidget.prototype = new Widget();
ScrollableWidget.prototype.cancelScroll = function() {
if(this.idRequestFrame) {
this.cancelAnimationFrame.call(window,this.idRequestFrame);
this.idRequestFrame = null;
}
};
/*
Handle a scroll event
*/
ScrollableWidget.prototype.handleScrollEvent = function(event) {
// Pass the scroll event through if our offsetsize is larger than our scrollsize
if(this.outerDomNode.scrollWidth &lt;= this.outerDomNode.offsetWidth &amp;&amp; this.outerDomNode.scrollHeight &lt;= this.outerDomNode.offsetHeight &amp;&amp; this.fallthrough === &quot;yes&quot;) {
return true;
}
this.scrollIntoView(event.target);
return false; // Handled event
};
/*
Scroll an element into view
*/
ScrollableWidget.prototype.scrollIntoView = function(element) {
var duration = $tw.utils.getAnimationDuration();
this.cancelScroll();
this.startTime = Date.now();
var scrollPosition = {
x: this.outerDomNode.scrollLeft,
y: this.outerDomNode.scrollTop
};
// Get the client bounds of the element and adjust by the scroll position
var scrollableBounds = this.outerDomNode.getBoundingClientRect(),
clientTargetBounds = element.getBoundingClientRect(),
bounds = {
left: clientTargetBounds.left + scrollPosition.x - scrollableBounds.left,
top: clientTargetBounds.top + scrollPosition.y - scrollableBounds.top,
width: clientTargetBounds.width,
height: clientTargetBounds.height
};
// We'll consider the horizontal and vertical scroll directions separately via this function
var getEndPos = function(targetPos,targetSize,currentPos,currentSize) {
// If the target is already visible then stay where we are
if(targetPos &gt;= currentPos &amp;&amp; (targetPos + targetSize) &lt;= (currentPos + currentSize)) {
return currentPos;
// If the target is above/left of the current view, then scroll to its top/left
} else if(targetPos &lt;= currentPos) {
return targetPos;
// If the target is smaller than the window and the scroll position is too far up, then scroll till the target is at the bottom of the window
} else if(targetSize &lt; currentSize &amp;&amp; currentPos &lt; (targetPos + targetSize - currentSize)) {
return targetPos + targetSize - currentSize;
// If the target is big, then just scroll to the top
} else if(currentPos &lt; targetPos) {
return targetPos;
// Otherwise, stay where we are
} else {
return currentPos;
}
},
endX = getEndPos(bounds.left,bounds.width,scrollPosition.x,this.outerDomNode.offsetWidth),
endY = getEndPos(bounds.top,bounds.height,scrollPosition.y,this.outerDomNode.offsetHeight);
// Only scroll if necessary
if(endX !== scrollPosition.x || endY !== scrollPosition.y) {
var self = this,
drawFrame;
drawFrame = function () {
var t;
if(duration &lt;= 0) {
t = 1;
} else {
t = ((Date.now()) - self.startTime) / duration;
}
if(t &gt;= 1) {
self.cancelScroll();
t = 1;
}
t = $tw.utils.slowInSlowOut(t);
self.outerDomNode.scrollLeft = scrollPosition.x + (endX - scrollPosition.x) * t;
self.outerDomNode.scrollTop = scrollPosition.y + (endY - scrollPosition.y) * t;
if(t &lt; 1) {
self.idRequestFrame = self.requestAnimationFrame.call(window,drawFrame);
}
};
drawFrame();
}
};
/*
Render this widget into the DOM
*/
ScrollableWidget.prototype.render = function(parent,nextSibling) {
var self = this;
// Remember parent
this.parentDomNode = parent;
// Compute attributes and execute state
this.computeAttributes();
this.execute();
// Create elements
this.outerDomNode = this.document.createElement(&quot;div&quot;);
$tw.utils.setStyle(this.outerDomNode,[
{overflowY: &quot;auto&quot;},
{overflowX: &quot;auto&quot;},
{webkitOverflowScrolling: &quot;touch&quot;}
]);
this.innerDomNode = this.document.createElement(&quot;div&quot;);
this.outerDomNode.appendChild(this.innerDomNode);
// Assign classes
this.outerDomNode.className = this[&quot;class&quot;] || &quot;&quot;;
// Insert element
parent.insertBefore(this.outerDomNode,nextSibling);
this.renderChildren(this.innerDomNode,null);
this.domNodes.push(this.outerDomNode);
};
/*
Compute the internal state of the widget
*/
ScrollableWidget.prototype.execute = function() {
// Get attributes
this.fallthrough = this.getAttribute(&quot;fallthrough&quot;,&quot;yes&quot;);
this[&quot;class&quot;] = this.getAttribute(&quot;class&quot;);
// Make child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
ScrollableWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes[&quot;class&quot;]) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
exports.scrollable = ScrollableWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/select.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/select.js
type: application/javascript
module-type: widget
Select widget:
```
&lt;$select tiddler=&quot;MyTiddler&quot; field=&quot;text&quot;&gt;
&lt;$list filter=&quot;[tag[chapter]]&quot;&gt;
&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;
&lt;$view field=&quot;description&quot;/&gt;
&lt;/option&gt;
&lt;/$list&gt;
&lt;/$select&gt;
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var SelectWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
SelectWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
SelectWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
this.setSelectValue();
$tw.utils.addEventListeners(this.getSelectDomNode(),[
{name: &quot;change&quot;, handlerObject: this, handlerMethod: &quot;handleChangeEvent&quot;}
]);
};
/*
Handle a change event
*/
SelectWidget.prototype.handleChangeEvent = function(event) {
// Get the new value and assign it to the tiddler
if(this.selectMultiple == false) {
var value = this.getSelectDomNode().value;
} else {
var value = this.getSelectValues()
value = $tw.utils.stringifyList(value);
}
this.wiki.setText(this.selectTitle,this.selectField,this.selectIndex,value);
// Trigger actions
if(this.selectActions) {
this.invokeActionString(this.selectActions,this,event);
}
};
/*
If necessary, set the value of the select element to the current value
*/
SelectWidget.prototype.setSelectValue = function() {
var value = this.selectDefault;
// Get the value
if(this.selectIndex) {
value = this.wiki.extractTiddlerDataItem(this.selectTitle,this.selectIndex,value);
} else {
var tiddler = this.wiki.getTiddler(this.selectTitle);
if(tiddler) {
if(this.selectField === &quot;text&quot;) {
// Calling getTiddlerText() triggers lazy loading of skinny tiddlers
value = this.wiki.getTiddlerText(this.selectTitle);
} else {
if($tw.utils.hop(tiddler.fields,this.selectField)) {
value = tiddler.getFieldString(this.selectField);
}
}
} else {
if(this.selectField === &quot;title&quot;) {
value = this.selectTitle;
}
}
}
// Assign it to the select element if it's different than the current value
if (this.selectMultiple) {
value = value === undefined ? &quot;&quot; : value;
var select = this.getSelectDomNode();
var values = Array.isArray(value) ? value : $tw.utils.parseStringArray(value);
for(var i=0; i &lt; select.children.length; i++){
select.children[i].selected = values.indexOf(select.children[i].value) !== -1
}
} else {
var domNode = this.getSelectDomNode();
if(domNode.value !== value) {
domNode.value = value;
}
}
};
/*
Get the DOM node of the select element
*/
SelectWidget.prototype.getSelectDomNode = function() {
return this.children[0].domNodes[0];
};
// Return an array of the selected opion values
// select is an HTML select element
SelectWidget.prototype.getSelectValues = function() {
var select, result, options, opt;
select = this.getSelectDomNode();
result = [];
options = select &amp;&amp; select.options;
for (var i=0; i&lt;options.length; i++) {
opt = options[i];
if (opt.selected) {
result.push(opt.value || opt.text);
}
}
return result;
}
/*
Compute the internal state of the widget
*/
SelectWidget.prototype.execute = function() {
// Get our parameters
this.selectActions = this.getAttribute(&quot;actions&quot;);
this.selectTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.selectField = this.getAttribute(&quot;field&quot;,&quot;text&quot;);
this.selectIndex = this.getAttribute(&quot;index&quot;);
this.selectClass = this.getAttribute(&quot;class&quot;);
this.selectDefault = this.getAttribute(&quot;default&quot;);
this.selectMultiple = this.getAttribute(&quot;multiple&quot;, false);
this.selectSize = this.getAttribute(&quot;size&quot;);
this.selectTooltip = this.getAttribute(&quot;tooltip&quot;);
// Make the child widgets
var selectNode = {
type: &quot;element&quot;,
tag: &quot;select&quot;,
children: this.parseTreeNode.children
};
if(this.selectClass) {
$tw.utils.addAttributeToParseTreeNode(selectNode,&quot;class&quot;,this.selectClass);
}
if(this.selectMultiple) {
$tw.utils.addAttributeToParseTreeNode(selectNode,&quot;multiple&quot;,&quot;multiple&quot;);
}
if(this.selectSize) {
$tw.utils.addAttributeToParseTreeNode(selectNode,&quot;size&quot;,this.selectSize);
}
if(this.selectTooltip) {
$tw.utils.addAttributeToParseTreeNode(selectNode,&quot;title&quot;,this.selectTooltip);
}
this.makeChildWidgets([selectNode]);
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
SelectWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
// If we're using a different tiddler/field/index then completely refresh ourselves
if(changedAttributes.selectTitle || changedAttributes.selectField || changedAttributes.selectIndex || changedAttributes.selectTooltip) {
this.refreshSelf();
return true;
// If the target tiddler value has changed, just update setting and refresh the children
} else {
var childrenRefreshed = this.refreshChildren(changedTiddlers);
if(changedTiddlers[this.selectTitle] || childrenRefreshed) {
this.setSelectValue();
}
return childrenRefreshed;
}
};
exports.select = SelectWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/set.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/set.js
type: application/javascript
module-type: widget
Set variable widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var SetWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
SetWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
SetWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
SetWidget.prototype.execute = function() {
// Get our parameters
this.setName = this.getAttribute(&quot;name&quot;,&quot;currentTiddler&quot;);
this.setFilter = this.getAttribute(&quot;filter&quot;);
this.setSelect = this.getAttribute(&quot;select&quot;);
this.setTiddler = this.getAttribute(&quot;tiddler&quot;);
this.setSubTiddler = this.getAttribute(&quot;subtiddler&quot;);
this.setField = this.getAttribute(&quot;field&quot;);
this.setIndex = this.getAttribute(&quot;index&quot;);
this.setValue = this.getAttribute(&quot;value&quot;);
this.setEmptyValue = this.getAttribute(&quot;emptyValue&quot;);
// Set context variable
this.setVariable(this.setName,this.getValue(),this.parseTreeNode.params,!!this.parseTreeNode.isMacroDefinition);
// Construct the child widgets
this.makeChildWidgets();
};
/*
Get the value to be assigned
*/
SetWidget.prototype.getValue = function() {
var value = this.setValue;
if(this.setTiddler) {
var tiddler;
if(this.setSubTiddler) {
tiddler = this.wiki.getSubTiddler(this.setTiddler,this.setSubTiddler);
} else {
tiddler = this.wiki.getTiddler(this.setTiddler);
}
if(!tiddler) {
value = this.setEmptyValue;
} else if(this.setField) {
value = tiddler.getFieldString(this.setField) || this.setEmptyValue;
} else if(this.setIndex) {
value = this.wiki.extractTiddlerDataItem(this.setTiddler,this.setIndex,this.setEmptyValue);
} else {
value = tiddler.fields.text || this.setEmptyValue ;
}
} else if(this.setFilter) {
var results = this.wiki.filterTiddlers(this.setFilter,this);
if(this.setValue == null) {
var select;
if(this.setSelect) {
select = parseInt(this.setSelect,10);
}
if(select !== undefined) {
value = results[select] || &quot;&quot;;
} else {
value = $tw.utils.stringifyList(results);
}
}
if(results.length === 0 &amp;&amp; this.setEmptyValue !== undefined) {
value = this.setEmptyValue;
}
} else if(!value &amp;&amp; this.setEmptyValue) {
value = this.setEmptyValue;
}
return value || &quot;&quot;;
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
SetWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.name || changedAttributes.filter || changedAttributes.select || changedAttributes.tiddler || (this.setTiddler &amp;&amp; changedTiddlers[this.setTiddler]) || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes.emptyValue ||
(this.setFilter &amp;&amp; this.getValue() != this.variables[this.setName].value)) {
this.refreshSelf();
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
exports.setvariable = SetWidget;
exports.set = SetWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/text.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/text.js
type: application/javascript
module-type: widget
Text node widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var TextNodeWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
TextNodeWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
TextNodeWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
var text = this.getAttribute(&quot;text&quot;,this.parseTreeNode.text || &quot;&quot;);
text = text.replace(/\r/mg,&quot;&quot;);
var textNode = this.document.createTextNode(text);
parent.insertBefore(textNode,nextSibling);
this.domNodes.push(textNode);
};
/*
Compute the internal state of the widget
*/
TextNodeWidget.prototype.execute = function() {
// Nothing to do for a text node
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
TextNodeWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.text) {
this.refreshSelf();
return true;
} else {
return false;
}
};
exports.text = TextNodeWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/tiddler.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/tiddler.js
type: application/javascript
module-type: widget
Tiddler widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var TiddlerWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
TiddlerWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
TiddlerWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
TiddlerWidget.prototype.execute = function() {
this.tiddlerState = this.computeTiddlerState();
this.setVariable(&quot;currentTiddler&quot;,this.tiddlerState.currentTiddler);
this.setVariable(&quot;missingTiddlerClass&quot;,this.tiddlerState.missingTiddlerClass);
this.setVariable(&quot;shadowTiddlerClass&quot;,this.tiddlerState.shadowTiddlerClass);
this.setVariable(&quot;systemTiddlerClass&quot;,this.tiddlerState.systemTiddlerClass);
this.setVariable(&quot;tiddlerTagClasses&quot;,this.tiddlerState.tiddlerTagClasses);
// Construct the child widgets
this.makeChildWidgets();
};
/*
Compute the tiddler state flags
*/
TiddlerWidget.prototype.computeTiddlerState = function() {
// Get our parameters
this.tiddlerTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
// Compute the state
var state = {
currentTiddler: this.tiddlerTitle || &quot;&quot;,
missingTiddlerClass: (this.wiki.tiddlerExists(this.tiddlerTitle) || this.wiki.isShadowTiddler(this.tiddlerTitle)) ? &quot;tc-tiddler-exists&quot; : &quot;tc-tiddler-missing&quot;,
shadowTiddlerClass: this.wiki.isShadowTiddler(this.tiddlerTitle) ? &quot;tc-tiddler-shadow&quot; : &quot;&quot;,
systemTiddlerClass: this.wiki.isSystemTiddler(this.tiddlerTitle) ? &quot;tc-tiddler-system&quot; : &quot;&quot;,
tiddlerTagClasses: this.getTagClasses()
};
// Compute a simple hash to make it easier to detect changes
state.hash = state.currentTiddler + state.missingTiddlerClass + state.shadowTiddlerClass + state.systemTiddlerClass + state.tiddlerTagClasses;
return state;
};
/*
Create a string of CSS classes derived from the tags of the current tiddler
*/
TiddlerWidget.prototype.getTagClasses = function() {
var tiddler = this.wiki.getTiddler(this.tiddlerTitle);
if(tiddler) {
var tags = [];
$tw.utils.each(tiddler.fields.tags,function(tag) {
tags.push(&quot;tc-tagged-&quot; + encodeURIComponent(tag));
});
return tags.join(&quot; &quot;);
} else {
return &quot;&quot;;
}
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
TiddlerWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes(),
newTiddlerState = this.computeTiddlerState();
if(changedAttributes.tiddler || newTiddlerState.hash !== this.tiddlerState.hash) {
this.refreshSelf();
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
exports.tiddler = TiddlerWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/transclude.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/transclude.js
type: application/javascript
module-type: widget
Transclude widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var TranscludeWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
TranscludeWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
TranscludeWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
TranscludeWidget.prototype.execute = function() {
// Get our parameters
this.transcludeTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.transcludeSubTiddler = this.getAttribute(&quot;subtiddler&quot;);
this.transcludeField = this.getAttribute(&quot;field&quot;);
this.transcludeIndex = this.getAttribute(&quot;index&quot;);
this.transcludeMode = this.getAttribute(&quot;mode&quot;);
// Parse the text reference
var parseAsInline = !this.parseTreeNode.isBlock;
if(this.transcludeMode === &quot;inline&quot;) {
parseAsInline = true;
} else if(this.transcludeMode === &quot;block&quot;) {
parseAsInline = false;
}
var parser = this.wiki.parseTextReference(
this.transcludeTitle,
this.transcludeField,
this.transcludeIndex,
{
parseAsInline: parseAsInline,
subTiddler: this.transcludeSubTiddler
}),
parseTreeNodes = parser ? parser.tree : this.parseTreeNode.children;
// Set context variables for recursion detection
var recursionMarker = this.makeRecursionMarker();
this.setVariable(&quot;transclusion&quot;,recursionMarker);
// Check for recursion
if(parser) {
if(this.parentWidget &amp;&amp; this.parentWidget.hasVariable(&quot;transclusion&quot;,recursionMarker)) {
parseTreeNodes = [{type: &quot;element&quot;, tag: &quot;span&quot;, attributes: {
&quot;class&quot;: {type: &quot;string&quot;, value: &quot;tc-error&quot;}
}, children: [
{type: &quot;text&quot;, text: $tw.language.getString(&quot;Error/RecursiveTransclusion&quot;)}
]}];
}
}
// Construct the child widgets
this.makeChildWidgets(parseTreeNodes);
};
/*
Compose a string comprising the title, field and/or index to identify this transclusion for recursion detection
*/
TranscludeWidget.prototype.makeRecursionMarker = function() {
var output = [];
output.push(&quot;{&quot;);
output.push(this.getVariable(&quot;currentTiddler&quot;,{defaultValue: &quot;&quot;}));
output.push(&quot;|&quot;);
output.push(this.transcludeTitle || &quot;&quot;);
output.push(&quot;|&quot;);
output.push(this.transcludeField || &quot;&quot;);
output.push(&quot;|&quot;);
output.push(this.transcludeIndex || &quot;&quot;);
output.push(&quot;|&quot;);
output.push(this.transcludeSubTiddler || &quot;&quot;);
output.push(&quot;}&quot;);
return output.join(&quot;&quot;);
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
TranscludeWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedTiddlers[this.transcludeTitle]) {
this.refreshSelf();
return true;
} else {
return this.refreshChildren(changedTiddlers);
}
};
exports.transclude = TranscludeWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/vars.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/vars.js
type: application/javascript
module-type: widget
This widget allows multiple variables to be set in one go:
```
\define helloworld() Hello world!
&lt;$vars greeting=&quot;Hi&quot; me={{!!title}} sentence=&lt;&lt;helloworld&gt;&gt;&gt;
&lt;&lt;greeting&gt;&gt;! I am &lt;&lt;me&gt;&gt; and I say: &lt;&lt;sentence&gt;&gt;
&lt;/$vars&gt;
```
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var VarsWidget = function(parseTreeNode,options) {
// Call the constructor
Widget.call(this);
// Initialise
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
VarsWidget.prototype = Object.create(Widget.prototype);
/*
Render this widget into the DOM
*/
VarsWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
VarsWidget.prototype.execute = function() {
// Parse variables
var self = this;
$tw.utils.each(this.attributes,function(val,key) {
if(key.charAt(0) !== &quot;$&quot;) {
self.setVariable(key,val);
}
});
// Construct the child widgets
this.makeChildWidgets();
};
/*
Refresh the widget by ensuring our attributes are up to date
*/
VarsWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(Object.keys(changedAttributes).length) {
this.refreshSelf();
return true;
}
return this.refreshChildren(changedTiddlers);
};
exports[&quot;vars&quot;] = VarsWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/view.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/view.js
type: application/javascript
module-type: widget
View widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var ViewWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
ViewWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
ViewWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
if(this.text) {
var textNode = this.document.createTextNode(this.text);
parent.insertBefore(textNode,nextSibling);
this.domNodes.push(textNode);
} else {
this.makeChildWidgets();
this.renderChildren(parent,nextSibling);
}
};
/*
Compute the internal state of the widget
*/
ViewWidget.prototype.execute = function() {
// Get parameters from our attributes
this.viewTitle = this.getAttribute(&quot;tiddler&quot;,this.getVariable(&quot;currentTiddler&quot;));
this.viewSubtiddler = this.getAttribute(&quot;subtiddler&quot;);
this.viewField = this.getAttribute(&quot;field&quot;,&quot;text&quot;);
this.viewIndex = this.getAttribute(&quot;index&quot;);
this.viewFormat = this.getAttribute(&quot;format&quot;,&quot;text&quot;);
this.viewTemplate = this.getAttribute(&quot;template&quot;,&quot;&quot;);
this.viewMode = this.getAttribute(&quot;mode&quot;,&quot;block&quot;);
switch(this.viewFormat) {
case &quot;htmlwikified&quot;:
this.text = this.getValueAsHtmlWikified(this.viewMode);
break;
case &quot;plainwikified&quot;:
this.text = this.getValueAsPlainWikified(this.viewMode);
break;
case &quot;htmlencodedplainwikified&quot;:
this.text = this.getValueAsHtmlEncodedPlainWikified(this.viewMode);
break;
case &quot;htmlencoded&quot;:
this.text = this.getValueAsHtmlEncoded();
break;
case &quot;urlencoded&quot;:
this.text = this.getValueAsUrlEncoded();
break;
case &quot;doubleurlencoded&quot;:
this.text = this.getValueAsDoubleUrlEncoded();
break;
case &quot;date&quot;:
this.text = this.getValueAsDate(this.viewTemplate);
break;
case &quot;relativedate&quot;:
this.text = this.getValueAsRelativeDate();
break;
case &quot;stripcomments&quot;:
this.text = this.getValueAsStrippedComments();
break;
case &quot;jsencoded&quot;:
this.text = this.getValueAsJsEncoded();
break;
default: // &quot;text&quot;
this.text = this.getValueAsText();
break;
}
};
/*
The various formatter functions are baked into this widget for the moment. Eventually they will be replaced by macro functions
*/
/*
Retrieve the value of the widget. Options are:
asString: Optionally return the value as a string
*/
ViewWidget.prototype.getValue = function(options) {
options = options || {};
var value = options.asString ? &quot;&quot; : undefined;
if(this.viewIndex) {
value = this.wiki.extractTiddlerDataItem(this.viewTitle,this.viewIndex);
} else {
var tiddler;
if(this.viewSubtiddler) {
tiddler = this.wiki.getSubTiddler(this.viewTitle,this.viewSubtiddler);
} else {
tiddler = this.wiki.getTiddler(this.viewTitle);
}
if(tiddler) {
if(this.viewField === &quot;text&quot; &amp;&amp; !this.viewSubtiddler) {
// Calling getTiddlerText() triggers lazy loading of skinny tiddlers
value = this.wiki.getTiddlerText(this.viewTitle);
} else {
if($tw.utils.hop(tiddler.fields,this.viewField)) {
if(options.asString) {
value = tiddler.getFieldString(this.viewField);
} else {
value = tiddler.fields[this.viewField];
}
}
}
} else {
if(this.viewField === &quot;title&quot;) {
value = this.viewTitle;
}
}
}
return value;
};
ViewWidget.prototype.getValueAsText = function() {
return this.getValue({asString: true});
};
ViewWidget.prototype.getValueAsHtmlWikified = function(mode) {
return this.wiki.renderText(&quot;text/html&quot;,&quot;text/vnd.tiddlywiki&quot;,this.getValueAsText(),{
parseAsInline: mode !== &quot;block&quot;,
parentWidget: this
});
};
ViewWidget.prototype.getValueAsPlainWikified = function(mode) {
return this.wiki.renderText(&quot;text/plain&quot;,&quot;text/vnd.tiddlywiki&quot;,this.getValueAsText(),{
parseAsInline: mode !== &quot;block&quot;,
parentWidget: this
});
};
ViewWidget.prototype.getValueAsHtmlEncodedPlainWikified = function(mode) {
return $tw.utils.htmlEncode(this.wiki.renderText(&quot;text/plain&quot;,&quot;text/vnd.tiddlywiki&quot;,this.getValueAsText(),{
parseAsInline: mode !== &quot;block&quot;,
parentWidget: this
}));
};
ViewWidget.prototype.getValueAsHtmlEncoded = function() {
return $tw.utils.htmlEncode(this.getValueAsText());
};
ViewWidget.prototype.getValueAsUrlEncoded = function() {
return encodeURIComponent(this.getValueAsText());
};
ViewWidget.prototype.getValueAsDoubleUrlEncoded = function() {
return encodeURIComponent(encodeURIComponent(this.getValueAsText()));
};
ViewWidget.prototype.getValueAsDate = function(format) {
format = format || &quot;YYYY MM DD 0hh:0mm&quot;;
var value = $tw.utils.parseDate(this.getValue());
if(value &amp;&amp; $tw.utils.isDate(value) &amp;&amp; value.toString() !== &quot;Invalid Date&quot;) {
return $tw.utils.formatDateString(value,format);
} else {
return &quot;&quot;;
}
};
ViewWidget.prototype.getValueAsRelativeDate = function(format) {
var value = $tw.utils.parseDate(this.getValue());
if(value &amp;&amp; $tw.utils.isDate(value) &amp;&amp; value.toString() !== &quot;Invalid Date&quot;) {
return $tw.utils.getRelativeDate((new Date()) - (new Date(value))).description;
} else {
return &quot;&quot;;
}
};
ViewWidget.prototype.getValueAsStrippedComments = function() {
var lines = this.getValueAsText().split(&quot;\n&quot;),
out = [];
for(var line=0; line&lt;lines.length; line++) {
var text = lines[line];
if(!/^\s*\/\/#/.test(text)) {
out.push(text);
}
}
return out.join(&quot;\n&quot;);
};
ViewWidget.prototype.getValueAsJsEncoded = function() {
return $tw.utils.stringify(this.getValueAsText());
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
ViewWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.template || changedAttributes.format || changedTiddlers[this.viewTitle]) {
this.refreshSelf();
return true;
} else {
return false;
}
};
exports.view = ViewWidget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/widget.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/widget.js
type: application/javascript
module-type: widget
Widget base class
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Create a widget object for a parse tree node
parseTreeNode: reference to the parse tree node to be rendered
options: see below
Options include:
wiki: mandatory reference to wiki associated with this render tree
parentWidget: optional reference to a parent renderer node for the context chain
document: optional document object to use instead of global document
*/
var Widget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Initialise widget properties. These steps are pulled out of the constructor so that we can reuse them in subclasses
*/
Widget.prototype.initialise = function(parseTreeNode,options) {
// Bail if parseTreeNode is undefined, meaning that the widget constructor was called without any arguments so that it can be subclassed
if(parseTreeNode === undefined) {
return;
}
options = options || {};
// Save widget info
this.parseTreeNode = parseTreeNode;
this.wiki = options.wiki;
this.parentWidget = options.parentWidget;
this.variablesConstructor = function() {};
this.variablesConstructor.prototype = this.parentWidget ? this.parentWidget.variables : {};
this.variables = new this.variablesConstructor();
this.document = options.document;
this.attributes = {};
this.children = [];
this.domNodes = [];
this.eventListeners = {};
// Hashmap of the widget classes
if(!this.widgetClasses) {
// Get widget classes
Widget.prototype.widgetClasses = $tw.modules.applyMethods(&quot;widget&quot;);
// Process any subclasses
$tw.modules.forEachModuleOfType(&quot;widget-subclass&quot;,function(title,module) {
if(module.baseClass) {
var baseClass = Widget.prototype.widgetClasses[module.baseClass];
if(!baseClass) {
throw &quot;Module '&quot; + title + &quot;' is attemping to extend a non-existent base class '&quot; + module.baseClass + &quot;'&quot;;
}
var subClass = module.constructor;
subClass.prototype = new baseClass();
$tw.utils.extend(subClass.prototype,module.prototype);
Widget.prototype.widgetClasses[module.name || module.baseClass] = subClass;
}
});
}
};
/*
Render this widget into the DOM
*/
Widget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
Widget.prototype.execute = function() {
this.makeChildWidgets();
};
/*
Set the value of a context variable
name: name of the variable
value: value of the variable
params: array of {name:, default:} for each parameter
isMacroDefinition: true if the variable is set via a \define macro pragma (and hence should have variable substitution performed)
*/
Widget.prototype.setVariable = function(name,value,params,isMacroDefinition) {
this.variables[name] = {value: value, params: params, isMacroDefinition: !!isMacroDefinition};
};
/*
Get the prevailing value of a context variable
name: name of variable
options: see below
Options include
params: array of {name:, value:} for each parameter
defaultValue: default value if the variable is not defined
Returns an object with the following fields:
params: array of {name:,value:} of parameters passed to wikitext variables
text: text of variable, with parameters properly substituted
*/
Widget.prototype.getVariableInfo = function(name,options) {
options = options || {};
var actualParams = options.params || [],
parentWidget = this.parentWidget;
// Check for the variable defined in the parent widget (or an ancestor in the prototype chain)
if(parentWidget &amp;&amp; name in parentWidget.variables) {
var variable = parentWidget.variables[name],
value = variable.value,
params = this.resolveVariableParameters(variable.params,actualParams);
// Substitute any parameters specified in the definition
$tw.utils.each(params,function(param) {
value = $tw.utils.replaceString(value,new RegExp(&quot;\\$&quot; + $tw.utils.escapeRegExp(param.name) + &quot;\\$&quot;,&quot;mg&quot;),param.value);
});
// Only substitute variable references if this variable was defined with the \define pragma
if(variable.isMacroDefinition) {
value = this.substituteVariableReferences(value);
}
return {
text: value,
params: params
};
}
// If the variable doesn't exist in the parent widget then look for a macro module
return {
text: this.evaluateMacroModule(name,actualParams,options.defaultValue)
};
};
/*
Simplified version of getVariableInfo() that just returns the text
*/
Widget.prototype.getVariable = function(name,options) {
return this.getVariableInfo(name,options).text;
};
Widget.prototype.resolveVariableParameters = function(formalParams,actualParams) {
formalParams = formalParams || [];
actualParams = actualParams || [];
var nextAnonParameter = 0, // Next candidate anonymous parameter in macro call
paramInfo, paramValue,
results = [];
// Step through each of the parameters in the macro definition
for(var p=0; p&lt;formalParams.length; p++) {
// Check if we've got a macro call parameter with the same name
paramInfo = formalParams[p];
paramValue = undefined;
for(var m=0; m&lt;actualParams.length; m++) {
if(actualParams[m].name === paramInfo.name) {
paramValue = actualParams[m].value;
}
}
// If not, use the next available anonymous macro call parameter
while(nextAnonParameter &lt; actualParams.length &amp;&amp; actualParams[nextAnonParameter].name) {
nextAnonParameter++;
}
if(paramValue === undefined &amp;&amp; nextAnonParameter &lt; actualParams.length) {
paramValue = actualParams[nextAnonParameter++].value;
}
// If we've still not got a value, use the default, if any
paramValue = paramValue || paramInfo[&quot;default&quot;] || &quot;&quot;;
// Store the parameter name and value
results.push({name: paramInfo.name, value: paramValue});
}
return results;
};
Widget.prototype.substituteVariableReferences = function(text) {
var self = this;
return (text || &quot;&quot;).replace(/\$\(([^\)\$]+)\)\$/g,function(match,p1,offset,string) {
return self.getVariable(p1,{defaultValue: &quot;&quot;});
});
};
Widget.prototype.evaluateMacroModule = function(name,actualParams,defaultValue) {
if($tw.utils.hop($tw.macros,name)) {
var macro = $tw.macros[name],
args = [];
if(macro.params.length &gt; 0) {
var nextAnonParameter = 0, // Next candidate anonymous parameter in macro call
paramInfo, paramValue;
// Step through each of the parameters in the macro definition
for(var p=0; p&lt;macro.params.length; p++) {
// Check if we've got a macro call parameter with the same name
paramInfo = macro.params[p];
paramValue = undefined;
for(var m=0; m&lt;actualParams.length; m++) {
if(actualParams[m].name === paramInfo.name) {
paramValue = actualParams[m].value;
}
}
// If not, use the next available anonymous macro call parameter
while(nextAnonParameter &lt; actualParams.length &amp;&amp; actualParams[nextAnonParameter].name) {
nextAnonParameter++;
}
if(paramValue === undefined &amp;&amp; nextAnonParameter &lt; actualParams.length) {
paramValue = actualParams[nextAnonParameter++].value;
}
// If we've still not got a value, use the default, if any
paramValue = paramValue || paramInfo[&quot;default&quot;] || &quot;&quot;;
// Save the parameter
args.push(paramValue);
}
}
else for(var i=0; i&lt;actualParams.length; ++i) {
args.push(actualParams[i].value);
}
return (macro.run.apply(this,args) || &quot;&quot;).toString();
} else {
return defaultValue;
}
};
/*
Check whether a given context variable value exists in the parent chain
*/
Widget.prototype.hasVariable = function(name,value) {
var node = this;
while(node) {
if($tw.utils.hop(node.variables,name) &amp;&amp; node.variables[name].value === value) {
return true;
}
node = node.parentWidget;
}
return false;
};
/*
Construct a qualifying string based on a hash of concatenating the values of a given variable in the parent chain
*/
Widget.prototype.getStateQualifier = function(name) {
this.qualifiers = this.qualifiers || Object.create(null);
name = name || &quot;transclusion&quot;;
if(this.qualifiers[name]) {
return this.qualifiers[name];
} else {
var output = [],
node = this;
while(node &amp;&amp; node.parentWidget) {
if($tw.utils.hop(node.parentWidget.variables,name)) {
output.push(node.getVariable(name));
}
node = node.parentWidget;
}
var value = $tw.utils.hashString(output.join(&quot;&quot;));
this.qualifiers[name] = value;
return value;
}
};
/*
Compute the current values of the attributes of the widget. Returns a hashmap of the names of the attributes that have changed
*/
Widget.prototype.computeAttributes = function() {
var changedAttributes = {},
self = this,
value;
$tw.utils.each(this.parseTreeNode.attributes,function(attribute,name) {
if(attribute.type === &quot;filtered&quot;) {
value = self.wiki.filterTiddlers(attribute.filter,self)[0] || &quot;&quot;;
} else if(attribute.type === &quot;indirect&quot;) {
value = self.wiki.getTextReference(attribute.textReference,&quot;&quot;,self.getVariable(&quot;currentTiddler&quot;));
} else if(attribute.type === &quot;macro&quot;) {
value = self.getVariable(attribute.value.name,{params: attribute.value.params});
} else { // String attribute
value = attribute.value;
}
// Check whether the attribute has changed
if(self.attributes[name] !== value) {
self.attributes[name] = value;
changedAttributes[name] = true;
}
});
return changedAttributes;
};
/*
Check for the presence of an attribute
*/
Widget.prototype.hasAttribute = function(name) {
return $tw.utils.hop(this.attributes,name);
};
/*
Get the value of an attribute
*/
Widget.prototype.getAttribute = function(name,defaultText) {
if($tw.utils.hop(this.attributes,name)) {
return this.attributes[name];
} else {
return defaultText;
}
};
/*
Assign the computed attributes of the widget to a domNode
options include:
excludeEventAttributes: ignores attributes whose name begins with &quot;on&quot;
*/
Widget.prototype.assignAttributes = function(domNode,options) {
options = options || {};
var self = this;
$tw.utils.each(this.attributes,function(v,a) {
// Check exclusions
if(options.excludeEventAttributes &amp;&amp; a.substr(0,2) === &quot;on&quot;) {
v = undefined;
}
if(v !== undefined) {
var b = a.split(&quot;:&quot;);
// Setting certain attributes can cause a DOM error (eg xmlns on the svg element)
try {
if (b.length == 2 &amp;&amp; b[0] == &quot;xlink&quot;){
domNode.setAttributeNS(&quot;http://www.w3.org/1999/xlink&quot;,b[1],v);
} else {
domNode.setAttributeNS(null,a,v);
}
} catch(e) {
}
}
});
};
/*
Make child widgets correspondng to specified parseTreeNodes
*/
Widget.prototype.makeChildWidgets = function(parseTreeNodes) {
this.children = [];
var self = this;
$tw.utils.each(parseTreeNodes || (this.parseTreeNode &amp;&amp; this.parseTreeNode.children),function(childNode) {
self.children.push(self.makeChildWidget(childNode));
});
};
/*
Construct the widget object for a parse tree node
*/
Widget.prototype.makeChildWidget = function(parseTreeNode) {
var WidgetClass = this.widgetClasses[parseTreeNode.type];
if(!WidgetClass) {
WidgetClass = this.widgetClasses.text;
parseTreeNode = {type: &quot;text&quot;, text: &quot;Undefined widget '&quot; + parseTreeNode.type + &quot;'&quot;};
}
return new WidgetClass(parseTreeNode,{
wiki: this.wiki,
variables: {},
parentWidget: this,
document: this.document
});
};
/*
Get the next sibling of this widget
*/
Widget.prototype.nextSibling = function() {
if(this.parentWidget) {
var index = this.parentWidget.children.indexOf(this);
if(index !== -1 &amp;&amp; index &lt; this.parentWidget.children.length-1) {
return this.parentWidget.children[index+1];
}
}
return null;
};
/*
Get the previous sibling of this widget
*/
Widget.prototype.previousSibling = function() {
if(this.parentWidget) {
var index = this.parentWidget.children.indexOf(this);
if(index !== -1 &amp;&amp; index &gt; 0) {
return this.parentWidget.children[index-1];
}
}
return null;
};
/*
Render the children of this widget into the DOM
*/
Widget.prototype.renderChildren = function(parent,nextSibling) {
var children = this.children;
for(var i = 0; i &lt; children.length; i++) {
children[i].render(parent,nextSibling);
};
};
/*
Add a list of event listeners from an array [{type:,handler:},...]
*/
Widget.prototype.addEventListeners = function(listeners) {
var self = this;
$tw.utils.each(listeners,function(listenerInfo) {
self.addEventListener(listenerInfo.type,listenerInfo.handler);
});
};
/*
Add an event listener
*/
Widget.prototype.addEventListener = function(type,handler) {
var self = this;
if(typeof handler === &quot;string&quot;) { // The handler is a method name on this widget
this.eventListeners[type] = function(event) {
return self[handler].call(self,event);
};
} else { // The handler is a function
this.eventListeners[type] = function(event) {
return handler.call(self,event);
};
}
};
/*
Dispatch an event to a widget. If the widget doesn't handle the event then it is also dispatched to the parent widget
*/
Widget.prototype.dispatchEvent = function(event) {
// Dispatch the event if this widget handles it
var listener = this.eventListeners[event.type];
if(listener) {
// Don't propagate the event if the listener returned false
if(!listener(event)) {
return false;
}
}
// Dispatch the event to the parent widget
if(this.parentWidget) {
return this.parentWidget.dispatchEvent(event);
}
return true;
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
Widget.prototype.refresh = function(changedTiddlers) {
return this.refreshChildren(changedTiddlers);
};
/*
Rebuild a previously rendered widget
*/
Widget.prototype.refreshSelf = function() {
var nextSibling = this.findNextSiblingDomNode();
this.removeChildDomNodes();
this.render(this.parentDomNode,nextSibling);
};
/*
Refresh all the children of a widget
*/
Widget.prototype.refreshChildren = function(changedTiddlers) {
var children = this.children,
refreshed = false;
for (var i = 0; i &lt; children.length; i++) {
refreshed = children[i].refresh(changedTiddlers) || refreshed;
}
return refreshed;
};
/*
Find the next sibling in the DOM to this widget. This is done by scanning the widget tree through all next siblings and their descendents that share the same parent DOM node
*/
Widget.prototype.findNextSiblingDomNode = function(startIndex) {
// Refer to this widget by its index within its parents children
var parent = this.parentWidget,
index = startIndex !== undefined ? startIndex : parent.children.indexOf(this);
if(index === -1) {
throw &quot;node not found in parents children&quot;;
}
// Look for a DOM node in the later siblings
while(++index &lt; parent.children.length) {
var domNode = parent.children[index].findFirstDomNode();
if(domNode) {
return domNode;
}
}
// Go back and look for later siblings of our parent if it has the same parent dom node
var grandParent = parent.parentWidget;
if(grandParent &amp;&amp; parent.parentDomNode === this.parentDomNode) {
index = grandParent.children.indexOf(parent);
if(index !== -1) {
return parent.findNextSiblingDomNode(index);
}
}
return null;
};
/*
Find the first DOM node generated by a widget or its children
*/
Widget.prototype.findFirstDomNode = function() {
// Return the first dom node of this widget, if we've got one
if(this.domNodes.length &gt; 0) {
return this.domNodes[0];
}
// Otherwise, recursively call our children
for(var t=0; t&lt;this.children.length; t++) {
var domNode = this.children[t].findFirstDomNode();
if(domNode) {
return domNode;
}
}
return null;
};
/*
Remove any DOM nodes created by this widget or its children
*/
Widget.prototype.removeChildDomNodes = function() {
// If this widget has directly created DOM nodes, delete them and exit. This assumes that any child widgets are contained within the created DOM nodes, which would normally be the case
if(this.domNodes.length &gt; 0) {
$tw.utils.each(this.domNodes,function(domNode) {
domNode.parentNode.removeChild(domNode);
});
this.domNodes = [];
} else {
// Otherwise, ask the child widgets to delete their DOM nodes
$tw.utils.each(this.children,function(childWidget) {
childWidget.removeChildDomNodes();
});
}
};
/*
Invoke the action widgets that are descendents of the current widget.
*/
Widget.prototype.invokeActions = function(triggeringWidget,event) {
var handled = false;
// For each child widget
for(var t=0; t&lt;this.children.length; t++) {
var child = this.children[t];
// Invoke the child if it is an action widget
if(child.invokeAction) {
child.refreshSelf();
if(child.invokeAction(triggeringWidget,event)) {
handled = true;
}
}
// Propagate through through the child if it permits it
if(child.allowActionPropagation() &amp;&amp; child.invokeActions(triggeringWidget,event)) {
handled = true;
}
}
return handled;
};
/*
Invoke the action widgets defined in a string
*/
Widget.prototype.invokeActionString = function(actions,triggeringWidget,event,variables) {
actions = actions || &quot;&quot;;
var parser = this.wiki.parseText(&quot;text/vnd.tiddlywiki&quot;,actions,{
parentWidget: this,
document: this.document
}),
widgetNode = this.wiki.makeWidget(parser,{
parentWidget: this,
document: this.document,
variables: variables
});
var container = this.document.createElement(&quot;div&quot;);
widgetNode.render(container,null);
return widgetNode.invokeActions(this,event);
};
Widget.prototype.allowActionPropagation = function() {
return true;
};
exports.widget = Widget;
})();
</pre>
</div>
<div module-type="widget" title="$:/core/modules/widgets/wikify.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/widgets/wikify.js
type: application/javascript
module-type: widget
Widget to wikify text into a variable
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var WikifyWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
WikifyWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
WikifyWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
this.renderChildren(parent,nextSibling);
};
/*
Compute the internal state of the widget
*/
WikifyWidget.prototype.execute = function() {
// Get our parameters
this.wikifyName = this.getAttribute(&quot;name&quot;);
this.wikifyText = this.getAttribute(&quot;text&quot;);
this.wikifyType = this.getAttribute(&quot;type&quot;);
this.wikifyMode = this.getAttribute(&quot;mode&quot;,&quot;block&quot;);
this.wikifyOutput = this.getAttribute(&quot;output&quot;,&quot;text&quot;);
// Create the parse tree
this.wikifyParser = this.wiki.parseText(this.wikifyType,this.wikifyText,{
parseAsInline: this.wikifyMode === &quot;inline&quot;
});
// Create the widget tree
this.wikifyWidgetNode = this.wiki.makeWidget(this.wikifyParser,{
document: $tw.fakeDocument,
parentWidget: this
});
// Render the widget tree to the container
this.wikifyContainer = $tw.fakeDocument.createElement(&quot;div&quot;);
this.wikifyWidgetNode.render(this.wikifyContainer,null);
this.wikifyResult = this.getResult();
// Set context variable
this.setVariable(this.wikifyName,this.wikifyResult);
// Construct the child widgets
this.makeChildWidgets();
};
/*
Return the result string
*/
WikifyWidget.prototype.getResult = function() {
var result;
switch(this.wikifyOutput) {
case &quot;text&quot;:
result = this.wikifyContainer.textContent;
break;
case &quot;formattedtext&quot;:
result = this.wikifyContainer.formattedTextContent;
break;
case &quot;html&quot;:
result = this.wikifyContainer.innerHTML;
break;
case &quot;parsetree&quot;:
result = JSON.stringify(this.wikifyParser.tree,0,$tw.config.preferences.jsonSpaces);
break;
case &quot;widgettree&quot;:
result = JSON.stringify(this.getWidgetTree(),0,$tw.config.preferences.jsonSpaces);
break;
}
return result;
};
/*
Return a string of the widget tree
*/
WikifyWidget.prototype.getWidgetTree = function() {
var copyNode = function(widgetNode,resultNode) {
var type = widgetNode.parseTreeNode.type;
resultNode.type = type;
switch(type) {
case &quot;element&quot;:
resultNode.tag = widgetNode.parseTreeNode.tag;
break;
case &quot;text&quot;:
resultNode.text = widgetNode.parseTreeNode.text;
break;
}
if(Object.keys(widgetNode.attributes || {}).length &gt; 0) {
resultNode.attributes = {};
$tw.utils.each(widgetNode.attributes,function(attr,attrName) {
resultNode.attributes[attrName] = widgetNode.getAttribute(attrName);
});
}
if(Object.keys(widgetNode.children || {}).length &gt; 0) {
resultNode.children = [];
$tw.utils.each(widgetNode.children,function(widgetChildNode) {
var node = {};
resultNode.children.push(node);
copyNode(widgetChildNode,node);
});
}
},
results = {};
copyNode(this.wikifyWidgetNode,results);
return results;
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
WikifyWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
// Refresh ourselves entirely if any of our attributes have changed
if(changedAttributes.name || changedAttributes.text || changedAttributes.type || changedAttributes.mode || changedAttributes.output) {
this.refreshSelf();
return true;
} else {
// Refresh the widget tree
if(this.wikifyWidgetNode.refresh(changedTiddlers)) {
// Check if there was any change
var result = this.getResult();
if(result !== this.wikifyResult) {
// If so, save the change
this.wikifyResult = result;
this.setVariable(this.wikifyName,this.wikifyResult);
// Refresh each of our child widgets
$tw.utils.each(this.children,function(childWidget) {
childWidget.refreshSelf();
});
return true;
}
}
// Just refresh the children
return this.refreshChildren(changedTiddlers);
}
};
exports.wikify = WikifyWidget;
})();
</pre>
</div>
<div module-type="wikimethod" title="$:/core/modules/wiki-bulkops.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/wiki-bulkops.js
type: application/javascript
module-type: wikimethod
Bulk tiddler operations such as rename.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
/*
Rename a tiddler, and relink any tags or lists that reference it.
*/
function renameTiddler(fromTitle,toTitle,options) {
fromTitle = (fromTitle || &quot;&quot;).trim();
toTitle = (toTitle || &quot;&quot;).trim();
options = options || {};
if(fromTitle &amp;&amp; toTitle &amp;&amp; fromTitle !== toTitle) {
// Rename the tiddler itself
var oldTiddler = this.getTiddler(fromTitle),
newTiddler = new $tw.Tiddler(oldTiddler,{title: toTitle},this.getModificationFields());
newTiddler = $tw.hooks.invokeHook(&quot;th-renaming-tiddler&quot;,newTiddler,oldTiddler);
this.addTiddler(newTiddler);
this.deleteTiddler(fromTitle);
// Rename any tags or lists that reference it
this.relinkTiddler(fromTitle,toTitle,options)
}
}
/*
Relink any tags or lists that reference a given tiddler
*/
function relinkTiddler(fromTitle,toTitle,options) {
var self = this;
fromTitle = (fromTitle || &quot;&quot;).trim();
toTitle = (toTitle || &quot;&quot;).trim();
options = options || {};
if(fromTitle &amp;&amp; toTitle &amp;&amp; fromTitle !== toTitle) {
this.each(function(tiddler,title) {
var type = tiddler.fields.type || &quot;&quot;;
// Don't touch plugins or JavaScript modules
if(!tiddler.fields[&quot;plugin-type&quot;] &amp;&amp; type !== &quot;application/javascript&quot;) {
var tags = tiddler.fields.tags ? tiddler.fields.tags.slice(0) : undefined,
list = tiddler.fields.list ? tiddler.fields.list.slice(0) : undefined,
isModified = false;
if(!options.dontRenameInTags) {
// Rename tags
$tw.utils.each(tags,function (title,index) {
if(title === fromTitle) {
console.log(&quot;Renaming tag '&quot; + tags[index] + &quot;' to '&quot; + toTitle + &quot;' of tiddler '&quot; + tiddler.fields.title + &quot;'&quot;);
tags[index] = toTitle;
isModified = true;
}
});
}
if(!options.dontRenameInLists) {
// Rename lists
$tw.utils.each(list,function (title,index) {
if(title === fromTitle) {
console.log(&quot;Renaming list item '&quot; + list[index] + &quot;' to '&quot; + toTitle + &quot;' of tiddler '&quot; + tiddler.fields.title + &quot;'&quot;);
list[index] = toTitle;
isModified = true;
}
});
}
if(isModified) {
var newTiddler = new $tw.Tiddler(tiddler,{tags: tags, list: list},self.getModificationFields())
newTiddler = $tw.hooks.invokeHook(&quot;th-relinking-tiddler&quot;,newTiddler,tiddler);
self.addTiddler(newTiddler);
}
}
});
}
};
exports.renameTiddler = renameTiddler;
exports.relinkTiddler = relinkTiddler;
})();
</pre>
</div>
<div module-type="wikimethod" title="$:/core/modules/wiki.js" type="application/javascript">
<pre>/*\
title: $:/core/modules/wiki.js
type: application/javascript
module-type: wikimethod
Extension methods for the $tw.Wiki object
Adds the following properties to the wiki object:
* `eventListeners` is a hashmap by type of arrays of listener functions
* `changedTiddlers` is a hashmap describing changes to named tiddlers since wiki change events were last dispatched. Each entry is a hashmap containing two fields:
modified: true/false
deleted: true/false
* `changeCount` is a hashmap by tiddler title containing a numerical index that starts at zero and is incremented each time a tiddler is created changed or deleted
* `caches` is a hashmap by tiddler title containing a further hashmap of named cache objects. Caches are automatically cleared when a tiddler is modified or deleted
* `globalCache` is a hashmap by cache name of cache objects that are cleared whenever any tiddler change occurs
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var widget = require(&quot;$:/core/modules/widgets/widget.js&quot;);
var USER_NAME_TITLE = &quot;$:/status/UserName&quot;,
TIMESTAMP_DISABLE_TITLE = &quot;$:/config/TimestampDisable&quot;;
/*
Add available indexers to this wiki
*/
exports.addIndexersToWiki = function() {
var self = this;
$tw.utils.each($tw.modules.applyMethods(&quot;indexer&quot;),function(Indexer,name) {
self.addIndexer(new Indexer(self),name);
});
};
/*
Get the value of a text reference. Text references can have any of these forms:
&lt;tiddlertitle&gt;
&lt;tiddlertitle&gt;!!&lt;fieldname&gt;
!!&lt;fieldname&gt; - specifies a field of the current tiddlers
&lt;tiddlertitle&gt;##&lt;index&gt;
*/
exports.getTextReference = function(textRef,defaultText,currTiddlerTitle) {
var tr = $tw.utils.parseTextReference(textRef),
title = tr.title || currTiddlerTitle;
if(tr.field) {
var tiddler = this.getTiddler(title);
if(tr.field === &quot;title&quot;) { // Special case so we can return the title of a non-existent tiddler
return title;
} else if(tiddler &amp;&amp; $tw.utils.hop(tiddler.fields,tr.field)) {
return tiddler.getFieldString(tr.field);
} else {
return defaultText;
}
} else if(tr.index) {
return this.extractTiddlerDataItem(title,tr.index,defaultText);
} else {
return this.getTiddlerText(title,defaultText);
}
};
exports.setTextReference = function(textRef,value,currTiddlerTitle) {
var tr = $tw.utils.parseTextReference(textRef),
title = tr.title || currTiddlerTitle;
this.setText(title,tr.field,tr.index,value);
};
exports.setText = function(title,field,index,value,options) {
options = options || {};
var creationFields = options.suppressTimestamp ? {} : this.getCreationFields(),
modificationFields = options.suppressTimestamp ? {} : this.getModificationFields();
// Check if it is a reference to a tiddler field
if(index) {
var data = this.getTiddlerData(title,Object.create(null));
if(value !== undefined) {
data[index] = value;
} else {
delete data[index];
}
this.setTiddlerData(title,data,modificationFields);
} else {
var tiddler = this.getTiddler(title),
fields = {title: title};
fields[field || &quot;text&quot;] = value;
this.addTiddler(new $tw.Tiddler(creationFields,tiddler,fields,modificationFields));
}
};
exports.deleteTextReference = function(textRef,currTiddlerTitle) {
var tr = $tw.utils.parseTextReference(textRef),
title,tiddler,fields;
// Check if it is a reference to a tiddler
if(tr.title &amp;&amp; !tr.field) {
this.deleteTiddler(tr.title);
// Else check for a field reference
} else if(tr.field) {
title = tr.title || currTiddlerTitle;
tiddler = this.getTiddler(title);
if(tiddler &amp;&amp; $tw.utils.hop(tiddler.fields,tr.field)) {
fields = Object.create(null);
fields[tr.field] = undefined;
this.addTiddler(new $tw.Tiddler(tiddler,fields,this.getModificationFields()));
}
}
};
exports.addEventListener = function(type,listener) {
this.eventListeners = this.eventListeners || {};
this.eventListeners[type] = this.eventListeners[type] || [];
this.eventListeners[type].push(listener);
};
exports.removeEventListener = function(type,listener) {
var listeners = this.eventListeners[type];
if(listeners) {
var p = listeners.indexOf(listener);
if(p !== -1) {
listeners.splice(p,1);
}
}
};
exports.dispatchEvent = function(type /*, args */) {
var args = Array.prototype.slice.call(arguments,1),
listeners = this.eventListeners[type];
if(listeners) {
for(var p=0; p&lt;listeners.length; p++) {
var listener = listeners[p];
listener.apply(listener,args);
}
}
};
/*
Causes a tiddler to be marked as changed, incrementing the change count, and triggers event handlers.
This method should be called after the changes it describes have been made to the wiki.tiddlers[] array.
title: Title of tiddler
isDeleted: defaults to false (meaning the tiddler has been created or modified),
true if the tiddler has been deleted
*/
exports.enqueueTiddlerEvent = function(title,isDeleted) {
// Record the touch in the list of changed tiddlers
this.changedTiddlers = this.changedTiddlers || Object.create(null);
this.changedTiddlers[title] = this.changedTiddlers[title] || Object.create(null);
this.changedTiddlers[title][isDeleted ? &quot;deleted&quot; : &quot;modified&quot;] = true;
// Increment the change count
this.changeCount = this.changeCount || Object.create(null);
if($tw.utils.hop(this.changeCount,title)) {
this.changeCount[title]++;
} else {
this.changeCount[title] = 1;
}
// Trigger events
this.eventListeners = this.eventListeners || {};
if(!this.eventsTriggered) {
var self = this;
$tw.utils.nextTick(function() {
var changes = self.changedTiddlers;
self.changedTiddlers = Object.create(null);
self.eventsTriggered = false;
if($tw.utils.count(changes) &gt; 0) {
self.dispatchEvent(&quot;change&quot;,changes);
}
});
this.eventsTriggered = true;
}
};
exports.getSizeOfTiddlerEventQueue = function() {
return $tw.utils.count(this.changedTiddlers);
};
exports.clearTiddlerEventQueue = function() {
this.changedTiddlers = Object.create(null);
this.changeCount = Object.create(null);
};
exports.getChangeCount = function(title) {
this.changeCount = this.changeCount || Object.create(null);
if($tw.utils.hop(this.changeCount,title)) {
return this.changeCount[title];
} else {
return 0;
}
};
/*
Generate an unused title from the specified base
*/
exports.generateNewTitle = function(baseTitle,options) {
options = options || {};
var c = 0,
title = baseTitle;
while(this.tiddlerExists(title) || this.isShadowTiddler(title) || this.findDraft(title)) {
title = baseTitle +
(options.prefix || &quot; &quot;) +
(++c);
}
return title;
};
exports.isSystemTiddler = function(title) {
return title &amp;&amp; title.indexOf(&quot;$:/&quot;) === 0;
};
exports.isTemporaryTiddler = function(title) {
return title &amp;&amp; title.indexOf(&quot;$:/temp/&quot;) === 0;
};
exports.isImageTiddler = function(title) {
var tiddler = this.getTiddler(title);
if(tiddler) {
var contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || &quot;text/vnd.tiddlywiki&quot;];
return !!contentTypeInfo &amp;&amp; contentTypeInfo.flags.indexOf(&quot;image&quot;) !== -1;
} else {
return null;
}
};
exports.isBinaryTiddler = function(title) {
var tiddler = this.getTiddler(title);
if(tiddler) {
var contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || &quot;text/vnd.tiddlywiki&quot;];
return !!contentTypeInfo &amp;&amp; contentTypeInfo.encoding === &quot;base64&quot;;
} else {
return null;
}
};
/*
Like addTiddler() except it will silently reject any plugin tiddlers that are older than the currently loaded version. Returns true if the tiddler was imported
*/
exports.importTiddler = function(tiddler) {
var existingTiddler = this.getTiddler(tiddler.fields.title);
// Check if we're dealing with a plugin
if(tiddler &amp;&amp; tiddler.hasField(&quot;plugin-type&quot;) &amp;&amp; tiddler.hasField(&quot;version&quot;) &amp;&amp; existingTiddler &amp;&amp; existingTiddler.hasField(&quot;plugin-type&quot;) &amp;&amp; existingTiddler.hasField(&quot;version&quot;)) {
// Reject the incoming plugin if it is older
if(!$tw.utils.checkVersions(tiddler.fields.version,existingTiddler.fields.version)) {
return false;
}
}
// Fall through to adding the tiddler
this.addTiddler(tiddler);
return true;
};
/*
Return a hashmap of the fields that should be set when a tiddler is created
*/
exports.getCreationFields = function() {
if(this.getTiddlerText(TIMESTAMP_DISABLE_TITLE,&quot;&quot;).toLowerCase() !== &quot;yes&quot;) {
var fields = {
created: new Date()
},
creator = this.getTiddlerText(USER_NAME_TITLE);
if(creator) {
fields.creator = creator;
}
return fields;
} else {
return {};
}
};
/*
Return a hashmap of the fields that should be set when a tiddler is modified
*/
exports.getModificationFields = function() {
if(this.getTiddlerText(TIMESTAMP_DISABLE_TITLE,&quot;&quot;).toLowerCase() !== &quot;yes&quot;) {
var fields = Object.create(null),
modifier = this.getTiddlerText(USER_NAME_TITLE);
fields.modified = new Date();
if(modifier) {
fields.modifier = modifier;
}
return fields;
} else {
return {};
}
};
/*
Return a sorted array of tiddler titles. Options include:
sortField: field to sort by
excludeTag: tag to exclude
includeSystem: whether to include system tiddlers (defaults to false)
*/
exports.getTiddlers = function(options) {
options = options || Object.create(null);
var self = this,
sortField = options.sortField || &quot;title&quot;,
tiddlers = [], t, titles = [];
this.each(function(tiddler,title) {
if(options.includeSystem || !self.isSystemTiddler(title)) {
if(!options.excludeTag || !tiddler.hasTag(options.excludeTag)) {
tiddlers.push(tiddler);
}
}
});
tiddlers.sort(function(a,b) {
var aa = a.fields[sortField].toLowerCase() || &quot;&quot;,
bb = b.fields[sortField].toLowerCase() || &quot;&quot;;
if(aa &lt; bb) {
return -1;
} else {
if(aa &gt; bb) {
return 1;
} else {
return 0;
}
}
});
for(t=0; t&lt;tiddlers.length; t++) {
titles.push(tiddlers[t].fields.title);
}
return titles;
};
exports.countTiddlers = function(excludeTag) {
var tiddlers = this.getTiddlers({excludeTag: excludeTag});
return $tw.utils.count(tiddlers);
};
/*
Returns a function iterator(callback) that iterates through the specified titles, and invokes the callback with callback(tiddler,title)
*/
exports.makeTiddlerIterator = function(titles) {
var self = this;
if(!$tw.utils.isArray(titles)) {
titles = Object.keys(titles);
} else {
titles = titles.slice(0);
}
return function(callback) {
titles.forEach(function(title) {
callback(self.getTiddler(title),title);
});
};
};
/*
Sort an array of tiddler titles by a specified field
titles: array of titles (sorted in place)
sortField: name of field to sort by
isDescending: true if the sort should be descending
isCaseSensitive: true if the sort should consider upper and lower case letters to be different
*/
exports.sortTiddlers = function(titles,sortField,isDescending,isCaseSensitive,isNumeric,isAlphaNumeric) {
var self = this;
titles.sort(function(a,b) {
var x,y,
compareNumbers = function(x,y) {
var result =
isNaN(x) &amp;&amp; !isNaN(y) ? (isDescending ? -1 : 1) :
!isNaN(x) &amp;&amp; isNaN(y) ? (isDescending ? 1 : -1) :
(isDescending ? y - x : x - y);
return result;
};
if(sortField !== &quot;title&quot;) {
var tiddlerA = self.getTiddler(a),
tiddlerB = self.getTiddler(b);
if(tiddlerA) {
a = tiddlerA.fields[sortField] || &quot;&quot;;
} else {
a = &quot;&quot;;
}
if(tiddlerB) {
b = tiddlerB.fields[sortField] || &quot;&quot;;
} else {
b = &quot;&quot;;
}
}
x = Number(a);
y = Number(b);
if(isNumeric &amp;&amp; (!isNaN(x) || !isNaN(y))) {
return compareNumbers(x,y);
} else if(isAlphaNumeric) {
return isDescending ? b.localeCompare(a,undefined,{numeric: true,sensitivity: &quot;base&quot;}) : a.localeCompare(b,undefined,{numeric: true,sensitivity: &quot;base&quot;});
} else if($tw.utils.isDate(a) &amp;&amp; $tw.utils.isDate(b)) {
return isDescending ? b - a : a - b;
} else {
a = String(a);
b = String(b);
if(!isCaseSensitive) {
a = a.toLowerCase();
b = b.toLowerCase();
}
return isDescending ? b.localeCompare(a) : a.localeCompare(b);
}
});
};
/*
For every tiddler invoke a callback(title,tiddler) with `this` set to the wiki object. Options include:
sortField: field to sort by
excludeTag: tag to exclude
includeSystem: whether to include system tiddlers (defaults to false)
*/
exports.forEachTiddler = function(/* [options,]callback */) {
var arg = 0,
options = arguments.length &gt;= 2 ? arguments[arg++] : {},
callback = arguments[arg++],
titles = this.getTiddlers(options),
t, tiddler;
for(t=0; t&lt;titles.length; t++) {
tiddler = this.getTiddler(titles[t]);
if(tiddler) {
callback.call(this,tiddler.fields.title,tiddler);
}
}
};
/*
Return an array of tiddler titles that are directly linked within the given parse tree
*/
exports.extractLinks = function(parseTreeRoot) {
// Count up the links
var links = [],
checkParseTree = function(parseTree) {
for(var t=0; t&lt;parseTree.length; t++) {
var parseTreeNode = parseTree[t];
if(parseTreeNode.type === &quot;link&quot; &amp;&amp; parseTreeNode.attributes.to &amp;&amp; parseTreeNode.attributes.to.type === &quot;string&quot;) {
var value = parseTreeNode.attributes.to.value;
if(links.indexOf(value) === -1) {
links.push(value);
}
}
if(parseTreeNode.children) {
checkParseTree(parseTreeNode.children);
}
}
};
checkParseTree(parseTreeRoot);
return links;
};
/*
Return an array of tiddler titles that are directly linked from the specified tiddler
*/
exports.getTiddlerLinks = function(title) {
var self = this;
// We'll cache the links so they only get computed if the tiddler changes
return this.getCacheForTiddler(title,&quot;links&quot;,function() {
// Parse the tiddler
var parser = self.parseTiddler(title);
if(parser) {
return self.extractLinks(parser.tree);
}
return [];
});
};
/*
Return an array of tiddler titles that link to the specified tiddler
*/
exports.getTiddlerBacklinks = function(targetTitle) {
var self = this,
backlinksIndexer = this.getIndexer(&quot;BacklinksIndexer&quot;),
backlinks = backlinksIndexer &amp;&amp; backlinksIndexer.lookup(targetTitle);
if(!backlinks) {
backlinks = [];
this.forEachTiddler(function(title,tiddler) {
var links = self.getTiddlerLinks(title);
if(links.indexOf(targetTitle) !== -1) {
backlinks.push(title);
}
});
}
return backlinks;
};
/*
Return a hashmap of tiddler titles that are referenced but not defined. Each value is the number of times the missing tiddler is referenced
*/
exports.getMissingTitles = function() {
var self = this,
missing = [];
// We should cache the missing tiddler list, even if we recreate it every time any tiddler is modified
this.forEachTiddler(function(title,tiddler) {
var links = self.getTiddlerLinks(title);
$tw.utils.each(links,function(link) {
if((!self.tiddlerExists(link) &amp;&amp; !self.isShadowTiddler(link)) &amp;&amp; missing.indexOf(link) === -1) {
missing.push(link);
}
});
});
return missing;
};
exports.getOrphanTitles = function() {
var self = this,
orphans = this.getTiddlers();
this.forEachTiddler(function(title,tiddler) {
var links = self.getTiddlerLinks(title);
$tw.utils.each(links,function(link) {
var p = orphans.indexOf(link);
if(p !== -1) {
orphans.splice(p,1);
}
});
});
return orphans; // Todo
};
/*
Retrieves a list of the tiddler titles that are tagged with a given tag
*/
exports.getTiddlersWithTag = function(tag) {
// Try to use the indexer
var self = this,
tagIndexer = this.getIndexer(&quot;TagIndexer&quot;),
results = tagIndexer &amp;&amp; tagIndexer.subIndexers[3].lookup(tag);
if(!results) {
// If not available, perform a manual scan
results = this.getGlobalCache(&quot;taglist-&quot; + tag,function() {
var tagmap = self.getTagMap();
return self.sortByList(tagmap[tag],tag);
});
}
return results;
};
/*
Get a hashmap by tag of arrays of tiddler titles
*/
exports.getTagMap = function() {
var self = this;
return this.getGlobalCache(&quot;tagmap&quot;,function() {
var tags = Object.create(null),
storeTags = function(tagArray,title) {
if(tagArray) {
for(var index=0; index&lt;tagArray.length; index++) {
var tag = tagArray[index];
if($tw.utils.hop(tags,tag)) {
tags[tag].push(title);
} else {
tags[tag] = [title];
}
}
}
},
title, tiddler;
// Collect up all the tags
self.eachShadow(function(tiddler,title) {
if(!self.tiddlerExists(title)) {
tiddler = self.getTiddler(title);
storeTags(tiddler.fields.tags,title);
}
});
self.each(function(tiddler,title) {
storeTags(tiddler.fields.tags,title);
});
return tags;
});
};
/*
Lookup a given tiddler and return a list of all the tiddlers that include it in the specified list field
*/
exports.findListingsOfTiddler = function(targetTitle,fieldName) {
fieldName = fieldName || &quot;list&quot;;
var titles = [];
this.each(function(tiddler,title) {
var list = $tw.utils.parseStringArray(tiddler.fields[fieldName]);
if(list &amp;&amp; list.indexOf(targetTitle) !== -1) {
titles.push(title);
}
});
return titles;
};
/*
Sorts an array of tiddler titles according to an ordered list
*/
exports.sortByList = function(array,listTitle) {
var self = this,
replacedTitles = Object.create(null);
// Given a title, this function will place it in the correct location
// within titles.
function moveItemInList(title) {
if(!$tw.utils.hop(replacedTitles, title)) {
replacedTitles[title] = true;
var newPos = -1,
tiddler = self.getTiddler(title);
if(tiddler) {
var beforeTitle = tiddler.fields[&quot;list-before&quot;],
afterTitle = tiddler.fields[&quot;list-after&quot;];
if(beforeTitle === &quot;&quot;) {
newPos = 0;
} else if(afterTitle === &quot;&quot;) {
newPos = titles.length;
} else if(beforeTitle) {
// if this title is placed relative
// to another title, make sure that
// title is placed before we place
// this one.
moveItemInList(beforeTitle);
newPos = titles.indexOf(beforeTitle);
} else if(afterTitle) {
// Same deal
moveItemInList(afterTitle);
newPos = titles.indexOf(afterTitle);
if(newPos &gt;= 0) {
++newPos;
}
}
// If a new position is specified, let's move it
if (newPos !== -1) {
// get its current Pos, and make sure
// sure that it's _actually_ in the list
// and that it would _actually_ move
// (#4275) We don't bother calling
// indexOf unless we have a new
// position to work with
var currPos = titles.indexOf(title);
if(currPos &gt;= 0 &amp;&amp; newPos !== currPos) {
// move it!
titles.splice(currPos,1);
if(newPos &gt;= currPos) {
newPos--;
}
titles.splice(newPos,0,title);
}
}
}
}
}
var list = this.getTiddlerList(listTitle);
if(!array || array.length === 0) {
return [];
} else {
var titles = [], t, title;
// First place any entries that are present in the list
for(t=0; t&lt;list.length; t++) {
title = list[t];
if(array.indexOf(title) !== -1) {
titles.push(title);
}
}
// Then place any remaining entries
for(t=0; t&lt;array.length; t++) {
title = array[t];
if(list.indexOf(title) === -1) {
titles.push(title);
}
}
// Finally obey the list-before and list-after fields of each tiddler in turn
var sortedTitles = titles.slice(0);
for(t=0; t&lt;sortedTitles.length; t++) {
title = sortedTitles[t];
moveItemInList(title);
}
return titles;
}
};
exports.getSubTiddler = function(title,subTiddlerTitle) {
var bundleInfo = this.getPluginInfo(title) || this.getTiddlerDataCached(title);
if(bundleInfo &amp;&amp; bundleInfo.tiddlers) {
var subTiddler = bundleInfo.tiddlers[subTiddlerTitle];
if(subTiddler) {
return new $tw.Tiddler(subTiddler);
}
}
return null;
};
/*
Retrieve a tiddler as a JSON string of the fields
*/
exports.getTiddlerAsJson = function(title) {
var tiddler = this.getTiddler(title);
if(tiddler) {
var fields = Object.create(null);
$tw.utils.each(tiddler.fields,function(value,name) {
fields[name] = tiddler.getFieldString(name);
});
return JSON.stringify(fields);
} else {
return JSON.stringify({title: title});
}
};
exports.getTiddlersAsJson = function(filter,spaces) {
var tiddlers = this.filterTiddlers(filter),
spaces = (spaces === undefined) ? $tw.config.preferences.jsonSpaces : spaces,
data = [];
for(var t=0;t&lt;tiddlers.length; t++) {
var tiddler = this.getTiddler(tiddlers[t]);
if(tiddler) {
var fields = new Object();
for(var field in tiddler.fields) {
fields[field] = tiddler.getFieldString(field);
}
data.push(fields);
}
}
return JSON.stringify(data,null,spaces);
};
/*
Get the content of a tiddler as a JavaScript object. How this is done depends on the type of the tiddler:
application/json: the tiddler JSON is parsed into an object
application/x-tiddler-dictionary: the tiddler is parsed as sequence of name:value pairs
Other types currently just return null.
titleOrTiddler: string tiddler title or a tiddler object
defaultData: default data to be returned if the tiddler is missing or doesn't contain data
Note that the same value is returned for repeated calls for the same tiddler data. The value is frozen to prevent modification; otherwise modifications would be visible to all callers
*/
exports.getTiddlerDataCached = function(titleOrTiddler,defaultData) {
var self = this,
tiddler = titleOrTiddler;
if(!(tiddler instanceof $tw.Tiddler)) {
tiddler = this.getTiddler(tiddler);
}
if(tiddler) {
return this.getCacheForTiddler(tiddler.fields.title,&quot;data&quot;,function() {
// Return the frozen value
var value = self.getTiddlerData(tiddler.fields.title,undefined);
$tw.utils.deepFreeze(value);
return value;
}) || defaultData;
} else {
return defaultData;
}
};
/*
Alternative, uncached version of getTiddlerDataCached(). The return value can be mutated freely and reused
*/
exports.getTiddlerData = function(titleOrTiddler,defaultData) {
var tiddler = titleOrTiddler,
data;
if(!(tiddler instanceof $tw.Tiddler)) {
tiddler = this.getTiddler(tiddler);
}
if(tiddler &amp;&amp; tiddler.fields.text) {
switch(tiddler.fields.type) {
case &quot;application/json&quot;:
// JSON tiddler
try {
data = JSON.parse(tiddler.fields.text);
} catch(ex) {
return defaultData;
}
return data;
case &quot;application/x-tiddler-dictionary&quot;:
return $tw.utils.parseFields(tiddler.fields.text);
}
}
return defaultData;
};
/*
Extract an indexed field from within a data tiddler
*/
exports.extractTiddlerDataItem = function(titleOrTiddler,index,defaultText) {
var data = this.getTiddlerDataCached(titleOrTiddler,Object.create(null)),
text;
if(data &amp;&amp; $tw.utils.hop(data,index)) {
text = data[index];
}
if(typeof text === &quot;string&quot; || typeof text === &quot;number&quot;) {
return text.toString();
} else {
return defaultText;
}
};
/*
Set a tiddlers content to a JavaScript object. Currently this is done by setting the tiddler's type to &quot;application/json&quot; and setting the text to the JSON text of the data.
title: title of tiddler
data: object that can be serialised to JSON
fields: optional hashmap of additional tiddler fields to be set
*/
exports.setTiddlerData = function(title,data,fields) {
var existingTiddler = this.getTiddler(title),
newFields = {
title: title
};
if(existingTiddler &amp;&amp; existingTiddler.fields.type === &quot;application/x-tiddler-dictionary&quot;) {
newFields.text = $tw.utils.makeTiddlerDictionary(data);
} else {
newFields.type = &quot;application/json&quot;;
newFields.text = JSON.stringify(data,null,$tw.config.preferences.jsonSpaces);
}
this.addTiddler(new $tw.Tiddler(this.getCreationFields(),existingTiddler,fields,newFields,this.getModificationFields()));
};
/*
Return the content of a tiddler as an array containing each line
*/
exports.getTiddlerList = function(title,field,index) {
if(index) {
return $tw.utils.parseStringArray(this.extractTiddlerDataItem(title,index,&quot;&quot;));
}
field = field || &quot;list&quot;;
var tiddler = this.getTiddler(title);
if(tiddler) {
return ($tw.utils.parseStringArray(tiddler.fields[field]) || []).slice(0);
}
return [];
};
// Return a named global cache object. Global cache objects are cleared whenever a tiddler change occurs
exports.getGlobalCache = function(cacheName,initializer) {
this.globalCache = this.globalCache || Object.create(null);
if($tw.utils.hop(this.globalCache,cacheName)) {
return this.globalCache[cacheName];
} else {
this.globalCache[cacheName] = initializer();
return this.globalCache[cacheName];
}
};
exports.clearGlobalCache = function() {
this.globalCache = Object.create(null);
};
// Return the named cache object for a tiddler. If the cache doesn't exist then the initializer function is invoked to create it
exports.getCacheForTiddler = function(title,cacheName,initializer) {
this.caches = this.caches || Object.create(null);
var caches = this.caches[title];
if(caches &amp;&amp; caches[cacheName]) {
return caches[cacheName];
} else {
if(!caches) {
caches = Object.create(null);
this.caches[title] = caches;
}
caches[cacheName] = initializer();
return caches[cacheName];
}
};
// Clear all caches associated with a particular tiddler, or, if the title is null, clear all the caches for all the tiddlers
exports.clearCache = function(title) {
if(title) {
this.caches = this.caches || Object.create(null);
if($tw.utils.hop(this.caches,title)) {
delete this.caches[title];
}
} else {
this.caches = Object.create(null);
}
};
exports.initParsers = function(moduleType) {
// Install the parser modules
$tw.Wiki.parsers = {};
var self = this;
$tw.modules.forEachModuleOfType(&quot;parser&quot;,function(title,module) {
for(var f in module) {
if($tw.utils.hop(module,f)) {
$tw.Wiki.parsers[f] = module[f]; // Store the parser class
}
}
});
// Use the generic binary parser for any binary types not registered so far
if($tw.Wiki.parsers[&quot;application/octet-stream&quot;]) {
Object.keys($tw.config.contentTypeInfo).forEach(function(type) {
if(!$tw.utils.hop($tw.Wiki.parsers,type) &amp;&amp; $tw.config.contentTypeInfo[type].encoding === &quot;base64&quot;) {
$tw.Wiki.parsers[type] = $tw.Wiki.parsers[&quot;application/octet-stream&quot;];
}
});
}
};
/*
Parse a block of text of a specified MIME type
type: content type of text to be parsed
text: text
options: see below
Options include:
parseAsInline: if true, the text of the tiddler will be parsed as an inline run
_canonical_uri: optional string of the canonical URI of this content
*/
exports.parseText = function(type,text,options) {
text = text || &quot;&quot;;
options = options || {};
// Select a parser
var Parser = $tw.Wiki.parsers[type];
if(!Parser &amp;&amp; $tw.utils.getFileExtensionInfo(type)) {
Parser = $tw.Wiki.parsers[$tw.utils.getFileExtensionInfo(type).type];
}
if(!Parser) {
Parser = $tw.Wiki.parsers[options.defaultType || &quot;text/vnd.tiddlywiki&quot;];
}
if(!Parser) {
return null;
}
// Return the parser instance
return new Parser(type,text,{
parseAsInline: options.parseAsInline,
wiki: this,
_canonical_uri: options._canonical_uri
});
};
/*
Parse a tiddler according to its MIME type
*/
exports.parseTiddler = function(title,options) {
options = $tw.utils.extend({},options);
var cacheType = options.parseAsInline ? &quot;inlineParseTree&quot; : &quot;blockParseTree&quot;,
tiddler = this.getTiddler(title),
self = this;
return tiddler ? this.getCacheForTiddler(title,cacheType,function() {
if(tiddler.hasField(&quot;_canonical_uri&quot;)) {
options._canonical_uri = tiddler.fields._canonical_uri;
}
return self.parseText(tiddler.fields.type,tiddler.fields.text,options);
}) : null;
};
exports.parseTextReference = function(title,field,index,options) {
var tiddler,text;
if(options.subTiddler) {
tiddler = this.getSubTiddler(title,options.subTiddler);
} else {
tiddler = this.getTiddler(title);
if(field === &quot;text&quot; || (!field &amp;&amp; !index)) {
this.getTiddlerText(title); // Force the tiddler to be lazily loaded
return this.parseTiddler(title,options);
}
}
if(field === &quot;text&quot; || (!field &amp;&amp; !index)) {
if(tiddler &amp;&amp; tiddler.fields) {
return this.parseText(tiddler.fields.type,tiddler.fields.text,options);
} else {
return null;
}
} else if(field) {
if(field === &quot;title&quot;) {
text = title;
} else {
if(!tiddler || !tiddler.hasField(field)) {
return null;
}
text = tiddler.fields[field];
}
return this.parseText(&quot;text/vnd.tiddlywiki&quot;,text.toString(),options);
} else if(index) {
this.getTiddlerText(title); // Force the tiddler to be lazily loaded
text = this.extractTiddlerDataItem(tiddler,index,undefined);
if(text === undefined) {
return null;
}
return this.parseText(&quot;text/vnd.tiddlywiki&quot;,text,options);
}
};
/*
Make a widget tree for a parse tree
parser: parser object
options: see below
Options include:
document: optional document to use
variables: hashmap of variables to set
parentWidget: optional parent widget for the root node
*/
exports.makeWidget = function(parser,options) {
options = options || {};
var widgetNode = {
type: &quot;widget&quot;,
children: []
},
currWidgetNode = widgetNode;
// Create set variable widgets for each variable
$tw.utils.each(options.variables,function(value,name) {
var setVariableWidget = {
type: &quot;set&quot;,
attributes: {
name: {type: &quot;string&quot;, value: name},
value: {type: &quot;string&quot;, value: value}
},
children: []
};
currWidgetNode.children = [setVariableWidget];
currWidgetNode = setVariableWidget;
});
// Add in the supplied parse tree nodes
currWidgetNode.children = parser ? parser.tree : [];
// Create the widget
return new widget.widget(widgetNode,{
wiki: this,
document: options.document || $tw.fakeDocument,
parentWidget: options.parentWidget
});
};
/*
Make a widget tree for transclusion
title: target tiddler title
options: as for wiki.makeWidget() plus:
options.field: optional field to transclude (defaults to &quot;text&quot;)
options.mode: transclusion mode &quot;inline&quot; or &quot;block&quot;
options.children: optional array of children for the transclude widget
options.importVariables: optional importvariables filter string for macros to be included
options.importPageMacros: optional boolean; if true, equivalent to passing &quot;[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]&quot; to options.importVariables
*/
exports.makeTranscludeWidget = function(title,options) {
options = options || {};
var parseTreeDiv = {tree: [{
type: &quot;element&quot;,
tag: &quot;div&quot;,
children: []}]},
parseTreeImportVariables = {
type: &quot;importvariables&quot;,
attributes: {
filter: {
name: &quot;filter&quot;,
type: &quot;string&quot;
}
},
isBlock: false,
children: []},
parseTreeTransclude = {
type: &quot;transclude&quot;,
attributes: {
tiddler: {
name: &quot;tiddler&quot;,
type: &quot;string&quot;,
value: title}},
isBlock: !options.parseAsInline};
if(options.importVariables || options.importPageMacros) {
if(options.importVariables) {
parseTreeImportVariables.attributes.filter.value = options.importVariables;
} else if(options.importPageMacros) {
parseTreeImportVariables.attributes.filter.value = &quot;[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]&quot;;
}
parseTreeDiv.tree[0].children.push(parseTreeImportVariables);
parseTreeImportVariables.children.push(parseTreeTransclude);
} else {
parseTreeDiv.tree[0].children.push(parseTreeTransclude);
}
if(options.field) {
parseTreeTransclude.attributes.field = {type: &quot;string&quot;, value: options.field};
}
if(options.mode) {
parseTreeTransclude.attributes.mode = {type: &quot;string&quot;, value: options.mode};
}
if(options.children) {
parseTreeTransclude.children = options.children;
}
return $tw.wiki.makeWidget(parseTreeDiv,options);
};
/*
Parse text in a specified format and render it into another format
outputType: content type for the output
textType: content type of the input text
text: input text
options: see below
Options include:
variables: hashmap of variables to set
parentWidget: optional parent widget for the root node
*/
exports.renderText = function(outputType,textType,text,options) {
options = options || {};
var parser = this.parseText(textType,text,options),
widgetNode = this.makeWidget(parser,options);
var container = $tw.fakeDocument.createElement(&quot;div&quot;);
widgetNode.render(container,null);
return outputType === &quot;text/html&quot; ? container.innerHTML : container.textContent;
};
/*
Parse text from a tiddler and render it into another format
outputType: content type for the output
title: title of the tiddler to be rendered
options: see below
Options include:
variables: hashmap of variables to set
parentWidget: optional parent widget for the root node
*/
exports.renderTiddler = function(outputType,title,options) {
options = options || {};
var parser = this.parseTiddler(title,options),
widgetNode = this.makeWidget(parser,options);
var container = $tw.fakeDocument.createElement(&quot;div&quot;);
widgetNode.render(container,null);
return outputType === &quot;text/html&quot; ? container.innerHTML : (outputType === &quot;text/plain-formatted&quot; ? container.formattedTextContent : container.textContent);
};
/*
Return an array of tiddler titles that match a search string
text: The text string to search for
options: see below
Options available:
source: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)
exclude: An array of tiddler titles to exclude from the search
invert: If true returns tiddlers that do not contain the specified string
caseSensitive: If true forces a case sensitive search
field: If specified, restricts the search to the specified field, or an array of field names
anchored: If true, forces all but regexp searches to be anchored to the start of text
excludeField: If true, the field options are inverted to specify the fields that are not to be searched
The search mode is determined by the first of these boolean flags to be true
literal: searches for literal string
whitespace: same as literal except runs of whitespace are treated as a single space
regexp: treats the search term as a regular expression
words: (default) treats search string as a list of tokens, and matches if all tokens are found, regardless of adjacency or ordering
*/
exports.search = function(text,options) {
options = options || {};
var self = this,
t,
invert = !!options.invert;
// Convert the search string into a regexp for each term
var terms, searchTermsRegExps,
flags = options.caseSensitive ? &quot;&quot; : &quot;i&quot;,
anchor = options.anchored ? &quot;^&quot; : &quot;&quot;;
if(options.literal) {
if(text.length === 0) {
searchTermsRegExps = null;
} else {
searchTermsRegExps = [new RegExp(&quot;(&quot; + anchor + $tw.utils.escapeRegExp(text) + &quot;)&quot;,flags)];
}
} else if(options.whitespace) {
terms = [];
$tw.utils.each(text.split(/\s+/g),function(term) {
if(term) {
terms.push($tw.utils.escapeRegExp(term));
}
});
searchTermsRegExps = [new RegExp(&quot;(&quot; + anchor + terms.join(&quot;\\s+&quot;) + &quot;)&quot;,flags)];
} else if(options.regexp) {
try {
searchTermsRegExps = [new RegExp(&quot;(&quot; + text + &quot;)&quot;,flags)];
} catch(e) {
searchTermsRegExps = null;
console.log(&quot;Regexp error parsing /(&quot; + text + &quot;)/&quot; + flags + &quot;: &quot;,e);
}
} else {
terms = text.split(/ +/);
if(terms.length === 1 &amp;&amp; terms[0] === &quot;&quot;) {
searchTermsRegExps = null;
} else {
searchTermsRegExps = [];
for(t=0; t&lt;terms.length; t++) {
searchTermsRegExps.push(new RegExp(&quot;(&quot; + anchor + $tw.utils.escapeRegExp(terms[t]) + &quot;)&quot;,flags));
}
}
}
// Accumulate the array of fields to be searched or excluded from the search
var fields = [];
if(options.field) {
if($tw.utils.isArray(options.field)) {
$tw.utils.each(options.field,function(fieldName) {
if(fieldName) {
fields.push(fieldName);
}
});
} else {
fields.push(options.field);
}
}
// Use default fields if none specified and we're not excluding fields (excluding fields with an empty field array is the same as searching all fields)
if(fields.length === 0 &amp;&amp; !options.excludeField) {
fields.push(&quot;title&quot;);
fields.push(&quot;tags&quot;);
fields.push(&quot;text&quot;);
}
// Function to check a given tiddler for the search term
var searchTiddler = function(title) {
if(!searchTermsRegExps) {
return true;
}
var notYetFound = searchTermsRegExps.slice();
var tiddler = self.getTiddler(title);
if(!tiddler) {
tiddler = new $tw.Tiddler({title: title, text: &quot;&quot;, type: &quot;text/vnd.tiddlywiki&quot;});
}
var contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type] || $tw.config.contentTypeInfo[&quot;text/vnd.tiddlywiki&quot;],
searchFields;
// Get the list of fields we're searching
if(options.excludeField) {
searchFields = Object.keys(tiddler.fields);
$tw.utils.each(fields,function(fieldName) {
var p = searchFields.indexOf(fieldName);
if(p !== -1) {
searchFields.splice(p,1);
}
});
} else {
searchFields = fields;
}
for(var fieldIndex=0; notYetFound.length&gt;0 &amp;&amp; fieldIndex&lt;searchFields.length; fieldIndex++) {
// Don't search the text field if the content type is binary
var fieldName = searchFields[fieldIndex];
if(fieldName === &quot;text&quot; &amp;&amp; contentTypeInfo.encoding !== &quot;utf8&quot;) {
break;
}
var str = tiddler.fields[fieldName],
t;
if(str) {
if($tw.utils.isArray(str)) {
// If the field value is an array, test each regexp against each field array entry and fail if each regexp doesn't match at least one field array entry
for(var s=0; s&lt;str.length; s++) {
for(t=0; t&lt;notYetFound.length;) {
if(notYetFound[t].test(str[s])) {
notYetFound.splice(t, 1);
} else {
t++;
}
}
}
} else {
// If the field isn't an array, force it to a string and test each regexp against it and fail if any do not match
str = tiddler.getFieldString(fieldName);
for(t=0; t&lt;notYetFound.length;) {
if(notYetFound[t].test(str)) {
notYetFound.splice(t, 1);
} else {
t++;
}
}
}
}
};
return notYetFound.length == 0;
};
// Loop through all the tiddlers doing the search
var results = [],
source = options.source || this.each;
source(function(tiddler,title) {
if(searchTiddler(title) !== options.invert) {
results.push(title);
}
});
// Remove any of the results we have to exclude
if(options.exclude) {
for(t=0; t&lt;options.exclude.length; t++) {
var p = results.indexOf(options.exclude[t]);
if(p !== -1) {
results.splice(p,1);
}
}
}
return results;
};
/*
Trigger a load for a tiddler if it is skinny. Returns the text, or undefined if the tiddler is missing, null if the tiddler is being lazily loaded.
*/
exports.getTiddlerText = function(title,defaultText) {
var tiddler = this.getTiddler(title);
// Return undefined if the tiddler isn't found
if(!tiddler) {
return defaultText;
}
if(!tiddler.hasField(&quot;_is_skinny&quot;)) {
// Just return the text if we've got it
return tiddler.fields.text || &quot;&quot;;
} else {
// Tell any listeners about the need to lazily load this tiddler
this.dispatchEvent(&quot;lazyLoad&quot;,title);
// Indicate that the text is being loaded
return null;
}
};
/*
Check whether the text of a tiddler matches a given value. By default, the comparison is case insensitive, and any spaces at either end of the tiddler text is trimmed
*/
exports.checkTiddlerText = function(title,targetText,options) {
options = options || {};
var text = this.getTiddlerText(title,&quot;&quot;);
if(!options.noTrim) {
text = text.trim();
}
if(!options.caseSensitive) {
text = text.toLowerCase();
targetText = targetText.toLowerCase();
}
return text === targetText;
}
/*
Read an array of browser File objects, invoking callback(tiddlerFieldsArray) once they're all read
*/
exports.readFiles = function(files,options) {
var callback;
if(typeof options === &quot;function&quot;) {
callback = options;
options = {};
} else {
callback = options.callback;
}
var result = [],
outstanding = files.length,
readFileCallback = function(tiddlerFieldsArray) {
result.push.apply(result,tiddlerFieldsArray);
if(--outstanding === 0) {
callback(result);
}
};
for(var f=0; f&lt;files.length; f++) {
this.readFile(files[f],$tw.utils.extend({},options,{callback: readFileCallback}));
}
return files.length;
};
/*
Read a browser File object, invoking callback(tiddlerFieldsArray) with an array of tiddler fields objects
*/
exports.readFile = function(file,options) {
var callback;
if(typeof options === &quot;function&quot;) {
callback = options;
options = {};
} else {
callback = options.callback;
}
// Get the type, falling back to the filename extension
var self = this,
type = file.type;
if(type === &quot;&quot; || !type) {
var dotPos = file.name.lastIndexOf(&quot;.&quot;);
if(dotPos !== -1) {
var fileExtensionInfo = $tw.utils.getFileExtensionInfo(file.name.substr(dotPos));
if(fileExtensionInfo) {
type = fileExtensionInfo.type;
}
}
}
// Figure out if we're reading a binary file
var contentTypeInfo = $tw.config.contentTypeInfo[type],
isBinary = contentTypeInfo ? contentTypeInfo.encoding === &quot;base64&quot; : false;
// Log some debugging information
if($tw.log.IMPORT) {
console.log(&quot;Importing file '&quot; + file.name + &quot;', type: '&quot; + type + &quot;', isBinary: &quot; + isBinary);
}
// Give the hook a chance to process the drag
if($tw.hooks.invokeHook(&quot;th-importing-file&quot;,{
file: file,
type: type,
isBinary: isBinary,
callback: callback
}) !== true) {
this.readFileContent(file,type,isBinary,options.deserializer,callback);
}
};
/*
Lower level utility to read the content of a browser File object, invoking callback(tiddlerFieldsArray) with an array of tiddler fields objects
*/
exports.readFileContent = function(file,type,isBinary,deserializer,callback) {
var self = this;
// Create the FileReader
var reader = new FileReader();
// Onload
reader.onload = function(event) {
var text = event.target.result,
tiddlerFields = {title: file.name || &quot;Untitled&quot;, type: type};
if(isBinary) {
var commaPos = text.indexOf(&quot;,&quot;);
if(commaPos !== -1) {
text = text.substr(commaPos + 1);
}
}
// Check whether this is an encrypted TiddlyWiki file
var encryptedJson = $tw.utils.extractEncryptedStoreArea(text);
if(encryptedJson) {
// If so, attempt to decrypt it with the current password
$tw.utils.decryptStoreAreaInteractive(encryptedJson,function(tiddlers) {
callback(tiddlers);
});
} else {
// Otherwise, just try to deserialise any tiddlers in the file
callback(self.deserializeTiddlers(type,text,tiddlerFields,{deserializer: deserializer}));
}
};
// Kick off the read
if(isBinary) {
reader.readAsDataURL(file);
} else {
reader.readAsText(file);
}
};
/*
Find any existing draft of a specified tiddler
*/
exports.findDraft = function(targetTitle) {
var draftTitle = undefined;
this.forEachTiddler({includeSystem: true},function(title,tiddler) {
if(tiddler.fields[&quot;draft.title&quot;] &amp;&amp; tiddler.fields[&quot;draft.of&quot;] === targetTitle) {
draftTitle = title;
}
});
return draftTitle;
}
/*
Check whether the specified draft tiddler has been modified.
If the original tiddler doesn't exist, create a vanilla tiddler variable,
to check if additional fields have been added.
*/
exports.isDraftModified = function(title) {
var tiddler = this.getTiddler(title);
if(!tiddler.isDraft()) {
return false;
}
var ignoredFields = [&quot;created&quot;, &quot;modified&quot;, &quot;title&quot;, &quot;draft.title&quot;, &quot;draft.of&quot;],
origTiddler = this.getTiddler(tiddler.fields[&quot;draft.of&quot;]) || new $tw.Tiddler({text:&quot;&quot;, tags:[]}),
titleModified = tiddler.fields[&quot;draft.title&quot;] !== tiddler.fields[&quot;draft.of&quot;];
return titleModified || !tiddler.isEqual(origTiddler,ignoredFields);
};
/*
Add a new record to the top of the history stack
title: a title string or an array of title strings
fromPageRect: page coordinates of the origin of the navigation
historyTitle: title of history tiddler (defaults to $:/HistoryList)
*/
exports.addToHistory = function(title,fromPageRect,historyTitle) {
var story = new $tw.Story({wiki: this, historyTitle: historyTitle});
story.addToHistory(title,fromPageRect);
};
/*
Add a new tiddler to the story river
title: a title string or an array of title strings
fromTitle: the title of the tiddler from which the navigation originated
storyTitle: title of story tiddler (defaults to $:/StoryList)
options: see story.js
*/
exports.addToStory = function(title,fromTitle,storyTitle,options) {
var story = new $tw.Story({wiki: this, storyTitle: storyTitle});
story.addToStory(title,fromTitle,options);
};
/*
Generate a title for the draft of a given tiddler
*/
exports.generateDraftTitle = function(title) {
var c = 0,
draftTitle,
username = this.getTiddlerText(&quot;$:/status/UserName&quot;),
attribution = username ? &quot; by &quot; + username : &quot;&quot;;
do {
draftTitle = &quot;Draft &quot; + (c ? (c + 1) + &quot; &quot; : &quot;&quot;) + &quot;of '&quot; + title + &quot;'&quot; + attribution;
c++;
} while(this.tiddlerExists(draftTitle));
return draftTitle;
};
/*
Invoke the available upgrader modules
titles: array of tiddler titles to be processed
tiddlers: hashmap by title of tiddler fields of pending import tiddlers. These can be modified by the upgraders. An entry with no fields indicates a tiddler that was pending import has been suppressed. When entries are added to the pending import the tiddlers hashmap may have entries that are not present in the titles array
Returns a hashmap of messages keyed by tiddler title.
*/
exports.invokeUpgraders = function(titles,tiddlers) {
// Collect up the available upgrader modules
var self = this;
if(!this.upgraderModules) {
this.upgraderModules = [];
$tw.modules.forEachModuleOfType(&quot;upgrader&quot;,function(title,module) {
if(module.upgrade) {
self.upgraderModules.push(module);
}
});
}
// Invoke each upgrader in turn
var messages = {};
for(var t=0; t&lt;this.upgraderModules.length; t++) {
var upgrader = this.upgraderModules[t],
upgraderMessages = upgrader.upgrade(this,titles,tiddlers);
$tw.utils.extend(messages,upgraderMessages);
}
return messages;
};
// Determine whether a plugin by title is dynamically loadable
exports.doesPluginRequireReload = function(title) {
return this.doesPluginInfoRequireReload(this.getPluginInfo(title) || this.getTiddlerDataCached(title));
};
// Determine whether a plugin info structure is dynamically loadable
exports.doesPluginInfoRequireReload = function(pluginInfo) {
if(pluginInfo) {
var foundModule = false;
$tw.utils.each(pluginInfo.tiddlers,function(tiddler) {
if(tiddler.type === &quot;application/javascript&quot; &amp;&amp; $tw.utils.hop(tiddler,&quot;module-type&quot;)) {
foundModule = true;
}
});
return foundModule;
} else {
return null;
}
};
})();
</pre>
</div>
<div title="$:/core/readme">
<pre>This plugin contains TiddlyWiki's core components, comprising:
* JavaScript code modules
* Icons
* Templates needed to create TiddlyWiki's user interface
* British English (''en-GB'') translations of the localisable strings used by the core
</pre>
</div>
<div title="$:/core/save/all">
<pre>\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
\define saveTiddlerFilter()
[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$
\end
{{$:/core/templates/tiddlywiki5.html}}
</pre>
</div>
<div title="$:/core/save/all-external-js">
<pre>\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
\define saveTiddlerFilter()
[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/core]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$
\end
{{$:/core/templates/tiddlywiki5-external-js.html}}
</pre>
</div>
<div title="$:/core/save/empty">
<pre>\define saveTiddlerFilter()
[is[system]] -[prefix[$:/state/popup/]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]]
\end
{{$:/core/templates/tiddlywiki5.html}}
</pre>
</div>
<div title="$:/core/save/lazy-all">
<pre>\define saveTiddlerFilter()
[is[system]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]]
\end
\define skinnySaveTiddlerFilter()
[!is[system]]
\end
{{$:/core/templates/tiddlywiki5.html}}
</pre>
</div>
<div title="$:/core/save/lazy-images">
<pre>\define saveTiddlerFilter()
[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[!is[system]is[image]] +[sort[title]]
\end
\define skinnySaveTiddlerFilter()
[is[image]]
\end
{{$:/core/templates/tiddlywiki5.html}}
</pre>
</div>
<div title="$:/core/templates/alltiddlers.template.html" type="text/vnd.tiddlywiki-html">
<pre>&lt;!-- This template is provided for backwards compatibility with older versions of TiddlyWiki --&gt;
&lt;$set name=&quot;exportFilter&quot; value=&quot;[!is[system]sort[title]]&quot;&gt;
{{$:/core/templates/exporters/StaticRiver}}
&lt;/$set&gt;
</pre>
</div>
<div title="$:/core/templates/canonical-uri-external-image">
<pre>&lt;!--
This template is used to assign the ''_canonical_uri'' field to external images.
Change the `./images/` part to a different base URI. The URI can be relative or absolute.
--&gt;
./images/&lt;$view field=&quot;title&quot; format=&quot;doubleurlencoded&quot;/&gt;</pre>
</div>
<div title="$:/core/templates/canonical-uri-external-raw">
<pre>&lt;!--
This template is used to assign the ''_canonical_uri'' field to external raw files that are stored in the same directory
--&gt;
&lt;$view field=&quot;title&quot; format=&quot;doubleurlencoded&quot;/&gt;</pre>
</div>
<div title="$:/core/templates/canonical-uri-external-text">
<pre>&lt;!--
This template is used to assign the ''_canonical_uri'' field to external text files.
Change the `./text/` part to a different base URI. The URI can be relative or absolute.
--&gt;
./text/&lt;$view field=&quot;title&quot; format=&quot;doubleurlencoded&quot;/&gt;.tid</pre>
</div>
<div title="$:/core/templates/css-tiddler">
<pre>&lt;!--
This template is used for saving CSS tiddlers as a style tag with data attributes representing the tiddler fields.
--&gt;`&lt;style`&lt;$fields template=' data-tiddler-$name$=&quot;$encoded_value$&quot;'&gt;&lt;/$fields&gt;` type=&quot;text/css&quot;&gt;`&lt;$view field=&quot;text&quot; format=&quot;text&quot; /&gt;`&lt;/style&gt;`</pre>
</div>
<div description="{{$:/language/Exporters/CsvFile}}" extension=".csv" tags="$:/tags/Exporter" title="$:/core/templates/exporters/CsvFile">
<pre>\define renderContent()
&lt;$text text=&lt;&lt;csvtiddlers filter:&quot;&quot;&quot;$(exportFilter)$&quot;&quot;&quot; format:&quot;quoted-comma-sep&quot;&gt;&gt;/&gt;
\end
&lt;&lt;renderContent&gt;&gt;
</pre>
</div>
<div description="{{$:/language/Exporters/JsonFile}}" extension=".json" tags="$:/tags/Exporter" title="$:/core/templates/exporters/JsonFile">
<pre>\define renderContent()
&lt;$text text=&lt;&lt;jsontiddlers filter:&quot;&quot;&quot;$(exportFilter)$&quot;&quot;&quot;&gt;&gt;/&gt;
\end
&lt;&lt;renderContent&gt;&gt;
</pre>
</div>
<div description="{{$:/language/Exporters/StaticRiver}}" extension=".html" tags="$:/tags/Exporter" title="$:/core/templates/exporters/StaticRiver">
<pre>\define tv-wikilink-template() #$uri_encoded$
\define tv-config-toolbar-icons() no
\define tv-config-toolbar-text() no
\define tv-config-toolbar-class() tc-btn-invisible
\rules only filteredtranscludeinline transcludeinline
&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=utf-8&quot; /&gt;
&lt;meta name=&quot;generator&quot; content=&quot;TiddlyWiki&quot; /&gt;
&lt;meta name=&quot;tiddlywiki-version&quot; content=&quot;{{$:/core/templates/version}}&quot; /&gt;
&lt;meta name=&quot;format-detection&quot; content=&quot;telephone=no&quot;&gt;
&lt;link id=&quot;faviconLink&quot; rel=&quot;shortcut icon&quot; href=&quot;favicon.ico&quot;&gt;
&lt;title&gt;{{$:/core/wiki/title}}&lt;/title&gt;
&lt;div id=&quot;styleArea&quot;&gt;
{{$:/boot/boot.css||$:/core/templates/css-tiddler}}
&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}
&lt;/style&gt;
&lt;/head&gt;
&lt;body class=&quot;tc-body&quot;&gt;
{{$:/StaticBanner||$:/core/templates/html-tiddler}}
&lt;section class=&quot;tc-story-river&quot;&gt;
{{$:/core/templates/exporters/StaticRiver/Content||$:/core/templates/html-tiddler}}
&lt;/section&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
</div>
<div title="$:/core/templates/exporters/StaticRiver/Content">
<pre>\define renderContent()
{{{ $(exportFilter)$ ||$:/core/templates/static-tiddler}}}
\end
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
&lt;&lt;renderContent&gt;&gt;
</pre>
</div>
<div description="{{$:/language/Exporters/TidFile}}" extension=".tid" tags="$:/tags/Exporter" title="$:/core/templates/exporters/TidFile">
<pre>\define renderContent()
{{{ $(exportFilter)$ +[limit[1]] ||$:/core/templates/tid-tiddler}}}
\end
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
&lt;&lt;renderContent&gt;&gt;</pre>
</div>
<div title="$:/core/templates/html-div-skinny-tiddler">
<pre>&lt;!--
This template is a variant of $:/core/templates/html-div-tiddler used for saving skinny tiddlers (with no text field)
--&gt;`&lt;div`&lt;$fields template=' $name$=&quot;$encoded_value$&quot;'&gt;&lt;/$fields&gt;`&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;`
</pre>
</div>
<div title="$:/core/templates/html-div-tiddler">
<pre>&lt;!--
This template is used for saving tiddlers as an HTML DIV tag with attributes representing the tiddler fields.
--&gt;`&lt;div`&lt;$fields template=' $name$=&quot;$encoded_value$&quot;'&gt;&lt;/$fields&gt;`&gt;
&lt;pre&gt;`&lt;$view field=&quot;text&quot; format=&quot;htmlencoded&quot; /&gt;`&lt;/pre&gt;
&lt;/div&gt;`
</pre>
</div>
<div title="$:/core/templates/html-tiddler">
<pre>&lt;!--
This template is used for saving tiddlers as raw HTML
--&gt;&lt;$view field=&quot;text&quot; format=&quot;htmlwikified&quot; /&gt;</pre>
</div>
<div title="$:/core/templates/javascript-tiddler">
<pre>&lt;!--
This template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields.
--&gt;`&lt;script`&lt;$fields template=' data-tiddler-$name$=&quot;$encoded_value$&quot;'&gt;&lt;/$fields&gt;` type=&quot;text/javascript&quot;&gt;`&lt;$view field=&quot;text&quot; format=&quot;text&quot; /&gt;`&lt;/script&gt;`</pre>
</div>
<div title="$:/core/templates/json-tiddler">
<pre>&lt;!--
This template is used for saving tiddlers as raw JSON
--&gt;&lt;$text text=&lt;&lt;jsontiddler&gt;&gt;/&gt;</pre>
</div>
<div title="$:/core/templates/module-tiddler">
<pre>&lt;!--
This template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields. The body of the tiddler is wrapped in a call to the `$tw.modules.define` function in order to define the body of the tiddler as a module
--&gt;`&lt;script`&lt;$fields template=' data-tiddler-$name$=&quot;$encoded_value$&quot;'&gt;&lt;/$fields&gt;` type=&quot;text/javascript&quot; data-module=&quot;yes&quot;&gt;$tw.modules.define(&quot;`&lt;$view field=&quot;title&quot; format=&quot;jsencoded&quot; /&gt;`&quot;,&quot;`&lt;$view field=&quot;module-type&quot; format=&quot;jsencoded&quot; /&gt;`&quot;,function(module,exports,require) {`&lt;$view field=&quot;text&quot; format=&quot;text&quot; /&gt;`});
&lt;/script&gt;`</pre>
</div>
<div title="$:/core/templates/MOTW.html">
<pre>\rules only filteredtranscludeinline transcludeinline entity
&lt;!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension --&gt;
&lt;!-- saved from url=(0021)https://tiddlywiki.com --&gt;&amp;#13;&amp;#10;</pre>
</div>
<div title="$:/core/templates/plain-text-tiddler">
<pre>&lt;$view field=&quot;text&quot; format=&quot;text&quot; /&gt;</pre>
</div>
<div title="$:/core/templates/raw-static-tiddler">
<pre>&lt;!--
This template is used for saving tiddlers as static HTML
--&gt;&lt;$view field=&quot;text&quot; format=&quot;plainwikified&quot; /&gt;</pre>
</div>
<div title="$:/core/templates/server/static.sidebar.wikitext">
<pre>\whitespace trim
&lt;div class=&quot;tc-sidebar-scrollable&quot; style=&quot;overflow: auto;&quot;&gt;
&lt;div class=&quot;tc-sidebar-header&quot;&gt;
&lt;h1 class=&quot;tc-site-title&quot;&gt;
&lt;$transclude tiddler=&quot;$:/SiteTitle&quot;/&gt;
&lt;/h1&gt;
&lt;div class=&quot;tc-site-subtitle&quot;&gt;
&lt;$transclude tiddler=&quot;$:/SiteSubtitle&quot;/&gt;
&lt;/div&gt;
&lt;h2&gt;
&lt;/h2&gt;
&lt;div class=&quot;tc-sidebar-lists&quot;&gt;
&lt;$list filter={{$:/DefaultTiddlers}}&gt;
&lt;div class=&quot;tc-menu-list-subitem&quot;&gt;
&lt;$link&gt;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;&lt;/$link&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;!-- Currently disabled the recent list as it is unweildy when the responsive narrow view kicks in
&lt;h2&gt;
{{$:/language/SideBar/Recent/Caption}}
&lt;/h2&gt;
&lt;div class=&quot;tc-sidebar-lists&quot;&gt;
&lt;$macrocall $name=&quot;timeline&quot; format={{$:/language/RecentChanges/DateFormat}}/&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
--&gt;
</pre>
</div>
<div title="$:/core/templates/server/static.tiddler.html">
<pre>\whitespace trim
\define tv-wikilink-template() $uri_encoded$
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=utf-8&quot; /&gt;
&lt;meta name=&quot;generator&quot; content=&quot;TiddlyWiki&quot; /&gt;
&lt;meta name=&quot;tiddlywiki-version&quot; content={{$:/core/templates/version}} /&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-status-bar-style&quot; content=&quot;black-translucent&quot; /&gt;
&lt;meta name=&quot;mobile-web-app-capable&quot; content=&quot;yes&quot;/&gt;
&lt;meta name=&quot;format-detection&quot; content=&quot;telephone=no&quot;&gt;
&lt;link id=&quot;faviconLink&quot; rel=&quot;shortcut icon&quot; href=&quot;favicon.ico&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;%24%3A%2Fcore%2Ftemplates%2Fstatic.template.css&quot;&gt;
&lt;title&gt;&lt;$view field=&quot;caption&quot; format=&quot;plainwikified&quot;&gt;&lt;$view field=&quot;title&quot;/&gt;&lt;/$view&gt;: &lt;$view tiddler=&quot;$:/core/wiki/title&quot; format=&quot;plainwikified&quot;/&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body class=&quot;tc-body&quot;&gt;
&lt;$transclude tiddler=&quot;$:/core/templates/server/static.sidebar.wikitext&quot; mode=&quot;inline&quot;/&gt;
&lt;section class=&quot;tc-story-river&quot;&gt;
&lt;div class=&quot;tc-tiddler-frame&quot;&gt;
&lt;$transclude tiddler=&quot;$:/core/templates/server/static.tiddler.wikitext&quot; mode=&quot;inline&quot;/&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
</div>
<div title="$:/core/templates/server/static.tiddler.wikitext">
<pre>\whitespace trim
&lt;div class=&quot;tc-tiddler-title&quot;&gt;
&lt;div class=&quot;tc-titlebar&quot;&gt;
&lt;h2&gt;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-subtitle&quot;&gt;
&lt;$link to={{!!modifier}}&gt;
&lt;$view field=&quot;modifier&quot;/&gt;
&lt;/$link&gt; &lt;$view field=&quot;modified&quot; format=&quot;date&quot; template={{$:/language/Tiddler/DateFormat}}/&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-tags-wrapper&quot;&gt;
&lt;$list filter=&quot;[all[current]tags[]sort[title]]&quot;&gt;
&lt;a href={{{ [&lt;currentTiddler&gt;encodeuricomponent[]] }}}&gt;
&lt;$macrocall $name=&quot;tag-pill&quot; tag=&lt;&lt;currentTiddler&gt;&gt;/&gt;
&lt;/a&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-tiddler-body&quot;&gt;
&lt;$transclude mode=&quot;block&quot;/&gt;
&lt;/div&gt;
</pre>
</div>
<div title="$:/core/templates/single.tiddler.window">
<pre>\whitespace trim
\define containerClasses()
tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$
\end
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
&lt;$set name=&quot;tv-config-toolbar-icons&quot; value={{$:/config/Toolbar/Icons}}&gt;
&lt;$set name=&quot;tv-config-toolbar-text&quot; value={{$:/config/Toolbar/Text}}&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; value={{$:/config/Toolbar/ButtonClass}}&gt;
&lt;$set name=&quot;tv-show-missing-links&quot; value={{$:/config/MissingLinks}}&gt;
&lt;$set name=&quot;storyviewTitle&quot; value={{$:/view}}&gt;
&lt;$set name=&quot;languageTitle&quot; value={{{ [{$:/language}get[name]] }}}&gt;
&lt;div class=&lt;&lt;containerClasses&gt;&gt;&gt;
&lt;$navigator story=&quot;$:/StoryList&quot; history=&quot;$:/HistoryList&quot;&gt;
&lt;$transclude mode=&quot;block&quot;/&gt;
&lt;/$navigator&gt;
&lt;/div&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
</pre>
</div>
<div title="$:/core/templates/split-recipe">
<pre>&lt;$list filter=&quot;[!is[system]]&quot;&gt;
tiddler: &lt;$view field=&quot;title&quot; format=&quot;urlencoded&quot;/&gt;.tid
&lt;/$list&gt;
</pre>
</div>
<div title="$:/core/templates/static-tiddler">
<pre>&lt;a name=&lt;&lt;currentTiddler&gt;&gt;&gt;
&lt;$transclude tiddler=&quot;$:/core/ui/ViewTemplate&quot;/&gt;
&lt;/a&gt;</pre>
</div>
<div title="$:/core/templates/static.area">
<pre>&lt;$reveal type=&quot;nomatch&quot; state=&quot;$:/isEncrypted&quot; text=&quot;yes&quot;&gt;
{{{ [all[shadows+tiddlers]tag[$:/tags/RawStaticContent]!has[draft.of]] ||$:/core/templates/raw-static-tiddler}}}
{{$:/core/templates/static.content||$:/core/templates/html-tiddler}}
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&quot;$:/isEncrypted&quot; text=&quot;yes&quot;&gt;
This file contains an encrypted ~TiddlyWiki. Enable ~JavaScript and enter the decryption password when prompted.
&lt;/$reveal&gt;
&lt;!-- ensure splash screen isn't shown when JS is disabled --&gt;
`&lt;style&gt;
.tc-remove-when-wiki-loaded {display: none;}
&lt;/style&gt;`
</pre>
</div>
<div title="$:/core/templates/static.content">
<pre>&lt;!-- For Google, and people without JavaScript--&gt;
This [[TiddlyWiki|https://tiddlywiki.com]] contains the following tiddlers:
&lt;ul&gt;
&lt;$list filter=&lt;&lt;saveTiddlerFilter&gt;&gt;&gt;
&lt;li&gt;&lt;$view field=&quot;title&quot; format=&quot;text&quot;&gt;&lt;/$view&gt;&lt;/li&gt;
&lt;/$list&gt;
&lt;/ul&gt;
</pre>
</div>
<div title="$:/core/templates/static.template.css">
<pre>{{$:/boot/boot.css||$:/core/templates/plain-text-tiddler}}
{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}
</pre>
</div>
<div title="$:/core/templates/static.template.html" type="text/vnd.tiddlywiki-html">
<pre>\define tv-wikilink-template() static/$uri_doubleencoded$.html
\define tv-config-toolbar-icons() no
\define tv-config-toolbar-text() no
\define tv-config-toolbar-class() tc-btn-invisible
\rules only filteredtranscludeinline transcludeinline
&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=utf-8&quot; /&gt;
&lt;meta name=&quot;generator&quot; content=&quot;TiddlyWiki&quot; /&gt;
&lt;meta name=&quot;tiddlywiki-version&quot; content=&quot;{{$:/core/templates/version}}&quot; /&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-status-bar-style&quot; content=&quot;black-translucent&quot; /&gt;
&lt;meta name=&quot;mobile-web-app-capable&quot; content=&quot;yes&quot;/&gt;
&lt;meta name=&quot;format-detection&quot; content=&quot;telephone=no&quot;&gt;
&lt;link id=&quot;faviconLink&quot; rel=&quot;shortcut icon&quot; href=&quot;favicon.ico&quot;&gt;
&lt;title&gt;{{$:/core/wiki/title}}&lt;/title&gt;
&lt;div id=&quot;styleArea&quot;&gt;
{{$:/boot/boot.css||$:/core/templates/css-tiddler}}
&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}
&lt;/style&gt;
&lt;/head&gt;
&lt;body class=&quot;tc-body&quot;&gt;
{{$:/StaticBanner||$:/core/templates/html-tiddler}}
{{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}}
&lt;/body&gt;
&lt;/html&gt;
</pre>
</div>
<div title="$:/core/templates/static.tiddler.html">
<pre>\define tv-wikilink-template() $uri_doubleencoded$.html
\define tv-config-toolbar-icons() no
\define tv-config-toolbar-text() no
\define tv-config-toolbar-class() tc-btn-invisible
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
`&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=utf-8&quot; /&gt;
&lt;meta name=&quot;generator&quot; content=&quot;TiddlyWiki&quot; /&gt;
&lt;meta name=&quot;tiddlywiki-version&quot; content=&quot;`{{$:/core/templates/version}}`&quot; /&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-status-bar-style&quot; content=&quot;black-translucent&quot; /&gt;
&lt;meta name=&quot;mobile-web-app-capable&quot; content=&quot;yes&quot;/&gt;
&lt;meta name=&quot;format-detection&quot; content=&quot;telephone=no&quot;&gt;
&lt;link id=&quot;faviconLink&quot; rel=&quot;shortcut icon&quot; href=&quot;favicon.ico&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;static.css&quot;&gt;
&lt;title&gt;`&lt;$view field=&quot;caption&quot;&gt;&lt;$view field=&quot;title&quot;/&gt;&lt;/$view&gt;: {{$:/core/wiki/title}}`&lt;/title&gt;
&lt;/head&gt;
&lt;body class=&quot;tc-body&quot;&gt;
`{{$:/StaticBanner||$:/core/templates/html-tiddler}}`
&lt;section class=&quot;tc-story-river&quot;&gt;
`&lt;$view tiddler=&quot;$:/core/ui/ViewTemplate&quot; format=&quot;htmlwikified&quot;/&gt;`
&lt;/section&gt;
&lt;/body&gt;
&lt;/html&gt;
`</pre>
</div>
<div title="$:/core/templates/store.area.template.html">
<pre>&lt;$reveal type=&quot;nomatch&quot; state=&quot;$:/isEncrypted&quot; text=&quot;yes&quot;&gt;
`&lt;div id=&quot;storeArea&quot; style=&quot;display:none;&quot;&gt;`
&lt;$list filter=&lt;&lt;saveTiddlerFilter&gt;&gt; template=&quot;$:/core/templates/html-div-tiddler&quot;/&gt;
&lt;$list filter={{{ [&lt;skinnySaveTiddlerFilter&gt;] }}} template=&quot;$:/core/templates/html-div-skinny-tiddler&quot;/&gt;
`&lt;/div&gt;`
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&quot;$:/isEncrypted&quot; text=&quot;yes&quot;&gt;
`&lt;!--~~ Encrypted tiddlers ~~--&gt;`
`&lt;pre id=&quot;encryptedStoreArea&quot; type=&quot;text/plain&quot; style=&quot;display:none;&quot;&gt;`
&lt;$encrypt filter=&lt;&lt;saveTiddlerFilter&gt;&gt;/&gt;
`&lt;/pre&gt;`
&lt;/$reveal&gt;</pre>
</div>
<div title="$:/core/templates/tid-tiddler">
<pre>&lt;!--
This template is used for saving tiddlers in TiddlyWeb *.tid format
--&gt;&lt;$fields exclude='text bag' template='$name$: $value$
'&gt;&lt;/$fields&gt;`
`&lt;$view field=&quot;text&quot; format=&quot;text&quot; /&gt;</pre>
</div>
<div title="$:/core/templates/tiddler-metadata">
<pre>&lt;!--
This template is used for saving tiddler metadata *.meta files
--&gt;&lt;$fields exclude='text bag' template='$name$: $value$
'&gt;&lt;/$fields&gt;</pre>
</div>
<div title="$:/core/templates/tiddlywiki5-external-js.html">
<pre>\rules only filteredtranscludeinline transcludeinline
&lt;!doctype html&gt;
{{$:/core/templates/MOTW.html}}&lt;html lang=&quot;`&lt;$text text={{{ [{$:/language}get[name]] }}}/&gt;`&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=utf-8&quot; /&gt;
&lt;!--~~ Raw markup for the top of the head section ~~--&gt;
{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}
&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot;/&gt;
&lt;meta name=&quot;application-name&quot; content=&quot;TiddlyWiki&quot; /&gt;
&lt;meta name=&quot;generator&quot; content=&quot;TiddlyWiki&quot; /&gt;
&lt;meta name=&quot;tiddlywiki-version&quot; content=&quot;{{$:/core/templates/version}}&quot; /&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-status-bar-style&quot; content=&quot;black-translucent&quot; /&gt;
&lt;meta name=&quot;mobile-web-app-capable&quot; content=&quot;yes&quot;/&gt;
&lt;meta name=&quot;format-detection&quot; content=&quot;telephone=no&quot; /&gt;
&lt;meta name=&quot;copyright&quot; content=&quot;{{$:/core/copyright.txt}}&quot; /&gt;
&lt;link id=&quot;faviconLink&quot; rel=&quot;shortcut icon&quot; href=&quot;favicon.ico&quot;&gt;
&lt;title&gt;{{$:/core/wiki/title}}&lt;/title&gt;
&lt;!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~--&gt;
&lt;!--~~ Raw markup ~~--&gt;
{{{ [all[shadows+tiddlers]tag[$:/core/wiki/rawmarkup]] [all[shadows+tiddlers]tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}}
{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}
&lt;/head&gt;
&lt;body class=&quot;tc-body&quot;&gt;
&lt;!--~~ Raw markup for the top of the body section ~~--&gt;
{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}
&lt;!--~~ Static styles ~~--&gt;
&lt;div id=&quot;styleArea&quot;&gt;
{{$:/boot/boot.css||$:/core/templates/css-tiddler}}
&lt;/div&gt;
&lt;!--~~ Static content for Google and browsers without JavaScript ~~--&gt;
&lt;noscript&gt;
&lt;div id=&quot;splashArea&quot;&gt;
{{$:/core/templates/static.area}}
&lt;/div&gt;
&lt;/noscript&gt;
&lt;!--~~ Ordinary tiddlers ~~--&gt;
{{$:/core/templates/store.area.template.html}}
&lt;!--~~ Raw markup for the bottom of the body section ~~--&gt;
{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}
&lt;/body&gt;
&lt;script src=&quot;%24%3A%2Fcore%2Ftemplates%2Ftiddlywiki5.js&quot; onerror=&quot;alert('Error: Cannot load tiddlywiki.js');&quot;&gt;&lt;/script&gt;
&lt;/html&gt;
</pre>
</div>
<div title="$:/core/templates/tiddlywiki5.html">
<pre>&lt;$set name=&quot;saveTiddlerAndShadowsFilter&quot; filter=&quot;[subfilter&lt;saveTiddlerFilter&gt;] [subfilter&lt;saveTiddlerFilter&gt;plugintiddlers[]]&quot;&gt;
`&lt;!doctype html&gt;
`{{$:/core/templates/MOTW.html}}`&lt;html lang=&quot;`&lt;$text text={{{ [{$:/language}get[name]] }}}/&gt;`&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=utf-8&quot; /&gt;
&lt;!--~~ Raw markup for the top of the head section ~~--&gt;
`{{{ [&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}`
&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot;/&gt;
&lt;meta name=&quot;application-name&quot; content=&quot;TiddlyWiki&quot; /&gt;
&lt;meta name=&quot;generator&quot; content=&quot;TiddlyWiki&quot; /&gt;
&lt;meta name=&quot;tiddlywiki-version&quot; content=&quot;`{{$:/core/templates/version}}`&quot; /&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-status-bar-style&quot; content=&quot;black-translucent&quot; /&gt;
&lt;meta name=&quot;mobile-web-app-capable&quot; content=&quot;yes&quot;/&gt;
&lt;meta name=&quot;format-detection&quot; content=&quot;telephone=no&quot; /&gt;
&lt;meta name=&quot;copyright&quot; content=&quot;`{{$:/core/copyright.txt}}`&quot; /&gt;
&lt;link id=&quot;faviconLink&quot; rel=&quot;shortcut icon&quot; href=&quot;favicon.ico&quot;&gt;
&lt;title&gt;`{{$:/core/wiki/title}}`&lt;/title&gt;
&lt;!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~--&gt;
&lt;!--~~ Raw markup ~~--&gt;
`{{{ [enlist&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/core/wiki/rawmarkup]] ||$:/core/templates/plain-text-tiddler}}}
{{{ [enlist&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}}
{{{ [enlist&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}`
&lt;/head&gt;
&lt;body class=&quot;tc-body&quot;&gt;
&lt;!--~~ Raw markup for the top of the body section ~~--&gt;
`{{{ [enlist&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}`
&lt;!--~~ Static styles ~~--&gt;
&lt;div id=&quot;styleArea&quot;&gt;
`{{$:/boot/boot.css||$:/core/templates/css-tiddler}}`
&lt;/div&gt;
&lt;!--~~ Static content for Google and browsers without JavaScript ~~--&gt;
&lt;noscript&gt;
&lt;div id=&quot;splashArea&quot;&gt;
`{{$:/core/templates/static.area}}`
&lt;/div&gt;
&lt;/noscript&gt;
&lt;!--~~ Ordinary tiddlers ~~--&gt;
`{{$:/core/templates/store.area.template.html}}`
&lt;!--~~ Library modules ~~--&gt;
&lt;div id=&quot;libraryModules&quot; style=&quot;display:none;&quot;&gt;
`{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/javascript-tiddler}}}`
&lt;/div&gt;
&lt;!--~~ Boot kernel prologue ~~--&gt;
&lt;div id=&quot;bootKernelPrefix&quot; style=&quot;display:none;&quot;&gt;
`{{ $:/boot/bootprefix.js ||$:/core/templates/javascript-tiddler}}`
&lt;/div&gt;
&lt;!--~~ Boot kernel ~~--&gt;
&lt;div id=&quot;bootKernel&quot; style=&quot;display:none;&quot;&gt;
`{{ $:/boot/boot.js ||$:/core/templates/javascript-tiddler}}`
&lt;/div&gt;
&lt;!--~~ Raw markup for the bottom of the body section ~~--&gt;
`{{{ [enlist&lt;saveTiddlerAndShadowsFilter&gt;tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}`
&lt;/body&gt;
&lt;/html&gt;`
</pre>
</div>
<div title="$:/core/templates/tiddlywiki5.js">
<pre>\rules only filteredtranscludeinline transcludeinline codeinline
/*
{{ $:/core/copyright.txt ||$:/core/templates/plain-text-tiddler}}
`*/
`&lt;!--~~ Library modules ~~--&gt;
{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/plain-text-tiddler}}}
&lt;!--~~ Boot prefix ~~--&gt;
{{ $:/boot/bootprefix.js ||$:/core/templates/plain-text-tiddler}}
&lt;!--~~ Core plugin ~~--&gt;
{{$:/core/templates/tiddlywiki5.js/tiddlers}}
&lt;!--~~ Boot kernel ~~--&gt;
{{ $:/boot/boot.js ||$:/core/templates/plain-text-tiddler}}
</pre>
</div>
<div title="$:/core/templates/tiddlywiki5.js/tiddlers">
<pre>`
$tw.preloadTiddlerArray(`&lt;$text text=&lt;&lt;jsontiddlers &quot;[[$:/core]]&quot;&gt;&gt;/&gt;`);
$tw.preloadTiddlerArray([{
title: &quot;$:/config/SaveWikiButton/Template&quot;,
text: &quot;$:/core/save/all-external-js&quot;
}]);
`
</pre>
</div>
<div title="$:/core/templates/version">
<pre>&lt;&lt;version&gt;&gt;</pre>
</div>
<div title="$:/core/templates/wikified-tiddler">
<pre>&lt;$transclude /&gt;</pre>
</div>
<div tags="$:/tags/AboveStory" title="$:/core/ui/AboveStory/tw2-plugin-check">
<pre>\define lingo-base() $:/language/AboveStory/ClassicPlugin/
&lt;$list filter=&quot;[all[system+tiddlers]tag[systemConfig]limit[1]]&quot;&gt;
&lt;div class=&quot;tc-message-box&quot;&gt;
&lt;&lt;lingo Warning&gt;&gt;
&lt;ul&gt;
&lt;$list filter=&quot;[all[system+tiddlers]tag[systemConfig]]&quot;&gt;
&lt;li&gt;
&lt;$link&gt;&lt;$view field=&quot;title&quot;/&gt;&lt;/$link&gt;
&lt;/li&gt;
&lt;/$list&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/$list&gt;
</pre>
</div>
<div description="create a new image tiddler" tags="$:/tags/Actions" title="$:/core/ui/Actions/new-image">
<pre>\define get-type()
image/$(imageType)$
\end
&lt;$vars imageType={{$:/config/NewImageType}}&gt;
&lt;$action-sendmessage $message=&quot;tm-new-tiddler&quot; type=&lt;&lt;get-type&gt;&gt; tags={{$:/config/NewTiddler/Tags!!tags}}/&gt;
&lt;/$vars&gt;
</pre>
</div>
<div description="create a new journal tiddler" tags="$:/tags/Actions" title="$:/core/ui/Actions/new-journal">
<pre>&lt;$vars journalTitleTemplate={{$:/config/NewJournal/Title}} journalTags={{$:/config/NewJournal/Tags!!tags}} journalText={{$:/config/NewJournal/Text}}&gt;
&lt;$wikify name=&quot;journalTitle&quot; text=&quot;&quot;&quot;&lt;$macrocall $name=&quot;now&quot; format=&lt;&lt;journalTitleTemplate&gt;&gt;/&gt;&quot;&quot;&quot;&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;journalTitle&gt;&gt; text=&quot;&quot;&gt;
&lt;$action-sendmessage $message=&quot;tm-new-tiddler&quot; title=&lt;&lt;journalTitle&gt;&gt; tags=&lt;&lt;journalTags&gt;&gt; text={{{ [&lt;journalTitle&gt;get[]] }}}/&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;journalTitle&gt;&gt; text=&quot;&quot;&gt;
&lt;$action-sendmessage $message=&quot;tm-new-tiddler&quot; title=&lt;&lt;journalTitle&gt;&gt; tags=&lt;&lt;journalTags&gt;&gt; text=&lt;&lt;journalText&gt;&gt;/&gt;
&lt;/$reveal&gt;
&lt;/$wikify&gt;
&lt;/$vars&gt;
</pre>
</div>
<div description="create a new empty tiddler" tags="$:/tags/Actions" title="$:/core/ui/Actions/new-tiddler">
<pre>&lt;$action-sendmessage $message=&quot;tm-new-tiddler&quot; tags={{$:/config/NewTiddler/Tags!!tags}}/&gt;
</pre>
</div>
<div caption="{{$:/language/Search/Filter/Caption}}" tags="$:/tags/AdvancedSearch" title="$:/core/ui/AdvancedSearch/Filter">
<pre>\define lingo-base() $:/language/Search/
&lt;&lt;lingo Filter/Hint&gt;&gt;
&lt;div class=&quot;tc-search tc-advanced-search&quot;&gt;
&lt;$edit-text tiddler=&quot;$:/temp/advancedsearch&quot; type=&quot;search&quot; tag=&quot;input&quot; focus={{$:/config/Search/AutoFocus}}/&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]&quot;&gt;&lt;$transclude/&gt;&lt;/$list&gt;
&lt;/div&gt;
&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$set name=&quot;resultCount&quot; value=&quot;&quot;&quot;&lt;$count filter={{$:/temp/advancedsearch}}/&gt;&quot;&quot;&quot;&gt;
&lt;div class=&quot;tc-search-results&quot;&gt;
&lt;&lt;lingo Filter/Matches&gt;&gt;
&lt;$list filter={{$:/temp/advancedsearch}} template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
&lt;/div&gt;
&lt;/$set&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div tags="$:/tags/AdvancedSearch/FilterButton" title="$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear">
<pre>&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot;&gt;
&lt;$action-setfield $tiddler=&quot;$:/temp/advancedsearch&quot; $field=&quot;text&quot; $value=&quot;&quot;/&gt;
{{$:/core/images/close-button}}
&lt;/$button&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div tags="$:/tags/AdvancedSearch/FilterButton" title="$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete">
<pre>&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/filterDeleteDropdown&quot;&gt;&gt; class=&quot;tc-btn-invisible&quot;&gt;
{{$:/core/images/delete-button}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/filterDeleteDropdown&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;belowleft&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-block-dropdown-wrapper&quot;&gt;
&lt;div class=&quot;tc-block-dropdown tc-edit-type-dropdown&quot;&gt;
&lt;div class=&quot;tc-dropdown-item-plain&quot;&gt;
&lt;$set name=&quot;resultCount&quot; value=&quot;&quot;&quot;&lt;$count filter={{$:/temp/advancedsearch}}/&gt;&quot;&quot;&quot;&gt;
Are you sure you wish to delete &lt;&lt;resultCount&gt;&gt; tiddler(s)?
&lt;/$set&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-dropdown-item-plain&quot;&gt;
&lt;$button class=&quot;tc-btn&quot;&gt;
&lt;$action-deletetiddler $filter={{$:/temp/advancedsearch}}/&gt;
Delete these tiddlers
&lt;/$button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div tags="$:/tags/AdvancedSearch/FilterButton" title="$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown">
<pre>&lt;span class=&quot;tc-popup-keep&quot;&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/filterDropdown&quot;&gt;&gt; class=&quot;tc-btn-invisible&quot;&gt;
{{$:/core/images/down-arrow}}
&lt;/$button&gt;
&lt;/span&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/filterDropdown&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;belowleft&quot; animate=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-show-missing-links&quot; value=&quot;yes&quot;&gt;
&lt;$linkcatcher to=&quot;$:/temp/advancedsearch&quot;&gt;
&lt;div class=&quot;tc-block-dropdown-wrapper&quot;&gt;
&lt;div class=&quot;tc-block-dropdown tc-edit-type-dropdown&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/Filter]]&quot;&gt;&lt;$link to={{!!filter}}&gt;&lt;$transclude field=&quot;description&quot;/&gt;&lt;/$link&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/$linkcatcher&gt;
&lt;/$set&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div tags="$:/tags/AdvancedSearch/FilterButton" title="$:/core/ui/AdvancedSearch/Filter/FilterButtons/export">
<pre>&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$macrocall $name=&quot;exportButton&quot; exportFilter={{$:/temp/advancedsearch}} lingoBase=&quot;$:/language/Buttons/ExportTiddlers/&quot;/&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/language/Search/Shadows/Caption}}" tags="$:/tags/AdvancedSearch" title="$:/core/ui/AdvancedSearch/Shadows">
<pre>\define lingo-base() $:/language/Search/
&lt;$linkcatcher to=&quot;$:/temp/advancedsearch&quot;&gt;
&lt;&lt;lingo Shadows/Hint&gt;&gt;
&lt;div class=&quot;tc-search&quot;&gt;
&lt;$edit-text tiddler=&quot;$:/temp/advancedsearch&quot; type=&quot;search&quot; tag=&quot;input&quot; focus={{$:/config/Search/AutoFocus}}/&gt;
&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot;&gt;
&lt;$action-setfield $tiddler=&quot;$:/temp/advancedsearch&quot; $field=&quot;text&quot; $value=&quot;&quot;/&gt;
{{$:/core/images/close-button}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;/$linkcatcher&gt;
&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$list filter=&quot;[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]&quot; emptyMessage=&quot;&quot;&quot;&lt;div class=&quot;tc-search-results&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;&quot;&quot;&quot; variable=&quot;listItem&quot;&gt;
&lt;$set name=&quot;resultCount&quot; value=&quot;&quot;&quot;&lt;$count filter=&quot;[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]&quot;/&gt;&quot;&quot;&quot;&gt;
&lt;div class=&quot;tc-search-results&quot;&gt;
&lt;&lt;lingo Shadows/Matches&gt;&gt;
&lt;$list filter=&quot;[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]&quot; template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
&lt;/div&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;match&quot; text=&quot;&quot;&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/language/Search/Standard/Caption}}" tags="$:/tags/AdvancedSearch" title="$:/core/ui/AdvancedSearch/Standard">
<pre>\define lingo-base() $:/language/Search/
&lt;$linkcatcher to=&quot;$:/temp/advancedsearch&quot;&gt;
&lt;&lt;lingo Standard/Hint&gt;&gt;
&lt;div class=&quot;tc-search&quot;&gt;
&lt;$edit-text tiddler=&quot;$:/temp/advancedsearch&quot; type=&quot;search&quot; tag=&quot;input&quot; focus={{$:/config/Search/AutoFocus}}/&gt;
&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot;&gt;
&lt;$action-setfield $tiddler=&quot;$:/temp/advancedsearch&quot; $field=&quot;text&quot; $value=&quot;&quot;/&gt;
{{$:/core/images/close-button}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;/$linkcatcher&gt;
&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$list filter=&quot;[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]&quot; emptyMessage=&quot;&quot;&quot;&lt;div class=&quot;tc-search-results&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;&quot;&quot;&quot; variable=&quot;listItem&quot;&gt;
&lt;$set name=&quot;searchTiddler&quot; value=&quot;$:/temp/advancedsearch&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]&quot; emptyMessage=&quot;&quot;&quot;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]&quot;&gt;
&lt;$transclude/&gt;
&lt;/$list&gt;
&quot;&quot;&quot;&gt;
&lt;$macrocall $name=&quot;tabs&quot; tabsList=&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]&quot; default={{$:/config/SearchResults/Default}}/&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/language/Search/System/Caption}}" tags="$:/tags/AdvancedSearch" title="$:/core/ui/AdvancedSearch/System">
<pre>\define lingo-base() $:/language/Search/
&lt;$linkcatcher to=&quot;$:/temp/advancedsearch&quot;&gt;
&lt;&lt;lingo System/Hint&gt;&gt;
&lt;div class=&quot;tc-search&quot;&gt;
&lt;$edit-text tiddler=&quot;$:/temp/advancedsearch&quot; type=&quot;search&quot; tag=&quot;input&quot; focus={{$:/config/Search/AutoFocus}}/&gt;
&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot;&gt;
&lt;$action-setfield $tiddler=&quot;$:/temp/advancedsearch&quot; $field=&quot;text&quot; $value=&quot;&quot;/&gt;
{{$:/core/images/close-button}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;/$linkcatcher&gt;
&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$list filter=&quot;[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]&quot; emptyMessage=&quot;&quot;&quot;&lt;div class=&quot;tc-search-results&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;&quot;&quot;&quot; variable=&quot;listItem&quot;&gt;
&lt;$set name=&quot;resultCount&quot; value=&quot;&quot;&quot;&lt;$count filter=&quot;[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]&quot;/&gt;&quot;&quot;&quot;&gt;
&lt;div class=&quot;tc-search-results&quot;&gt;
&lt;&lt;lingo System/Matches&gt;&gt;
&lt;$list filter=&quot;[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]&quot; template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
&lt;/div&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&quot;$:/temp/advancedsearch&quot; type=&quot;match&quot; text=&quot;&quot;&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div title="$:/core/ui/AlertTemplate">
<pre>&lt;div class=&quot;tc-alert&quot;&gt;
&lt;div class=&quot;tc-alert-toolbar&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot;&gt;&lt;$action-deletetiddler $tiddler=&lt;&lt;currentTiddler&gt;&gt;/&gt;{{$:/core/images/cancel-button}}&lt;/$button&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-alert-subtitle&quot;&gt;
&lt;$wikify name=&quot;format&quot; text=&lt;&lt;lingo Tiddler/DateFormat&gt;&gt;&gt;
&lt;$view field=&quot;component&quot;/&gt; - &lt;$view field=&quot;modified&quot; format=&quot;date&quot; template=&lt;&lt;format&gt;&gt;/&gt; &lt;$reveal type=&quot;nomatch&quot; state=&quot;!!count&quot; text=&quot;&quot;&gt;&lt;span class=&quot;tc-alert-highlight&quot;&gt;({{$:/language/Count}}: &lt;$view field=&quot;count&quot;/&gt;)&lt;/span&gt;&lt;/$reveal&gt;
&lt;/$wikify&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-alert-body&quot;&gt;
&lt;$transclude/&gt;
&lt;/div&gt;
&lt;/div&gt;
</pre>
</div>
<div title="$:/core/ui/BinaryWarning">
<pre>\define lingo-base() $:/language/BinaryWarning/
&lt;&lt;lingo Prompt&gt;&gt;
</pre>
</div>
<div caption="{{$:/core/images/advanced-search-button}} {{$:/language/Buttons/AdvancedSearch/Caption}}" description="{{$:/language/Buttons/AdvancedSearch/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/advanced-search">
<pre>\whitespace trim
\define control-panel-button(class)
&lt;$button to=&quot;$:/AdvancedSearch&quot; tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=&quot;&quot;&quot;$(tv-config-toolbar-class)$ $class$&quot;&quot;&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/advanced-search-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/AdvancedSearch/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
\end
&lt;$list filter=&quot;[list[$:/StoryList]] +[field:title[$:/AdvancedSearch]]&quot; emptyMessage=&lt;&lt;control-panel-button&gt;&gt;&gt;
&lt;&lt;control-panel-button &quot;tc-selected&quot;&gt;&gt;
&lt;/$list&gt;
</pre>
</div>
<div caption="{{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}" description="{{$:/language/Buttons/Cancel/Hint}}" tags="$:/tags/EditToolbar" title="$:/core/ui/Buttons/cancel">
<pre>&lt;$button message=&quot;tm-cancel-tiddler&quot; tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/cancel-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Cancel/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}}" description="{{$:/language/Buttons/Clone/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/clone">
<pre>\whitespace trim
&lt;$button message=&quot;tm-new-tiddler&quot; param=&lt;&lt;currentTiddler&gt;&gt; tooltip={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/clone-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$text text={{$:/language/Buttons/Clone/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}}" description="{{$:/language/Buttons/Close/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/close">
<pre>\whitespace trim
&lt;$button message=&quot;tm-close-tiddler&quot; tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/close-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text={{$:/language/Buttons/Close/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/close-all-button}} {{$:/language/Buttons/CloseAll/Caption}}" description="{{$:/language/Buttons/CloseAll/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/close-all">
<pre>&lt;$button message=&quot;tm-close-all-tiddlers&quot; tooltip={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/close-all-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/CloseAll/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}}" description="{{$:/language/Buttons/CloseOthers/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/close-others">
<pre>\whitespace trim
&lt;$button message=&quot;tm-close-other-tiddlers&quot; param=&lt;&lt;currentTiddler&gt;&gt; tooltip={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/close-others-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$text text={{$:/language/Buttons/CloseOthers/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}}" description="{{$:/language/Buttons/ControlPanel/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/control-panel">
<pre>\whitespace trim
\define control-panel-button(class)
&lt;$button to=&quot;$:/ControlPanel&quot; tooltip={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class=&quot;&quot;&quot;$(tv-config-toolbar-class)$ $class$&quot;&quot;&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/options-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/ControlPanel/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
\end
&lt;$list filter=&quot;[list[$:/StoryList]] +[field:title[$:/ControlPanel]]&quot; emptyMessage=&lt;&lt;control-panel-button&gt;&gt;&gt;
&lt;&lt;control-panel-button &quot;tc-selected&quot;&gt;&gt;
&lt;/$list&gt;
</pre>
</div>
<div caption="{{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}}" description="{{$:/language/Buttons/Delete/Hint}}" tags="$:/tags/EditToolbar $:/tags/ViewToolbar" title="$:/core/ui/Buttons/delete">
<pre>&lt;$button message=&quot;tm-delete-tiddler&quot; tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/delete-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Delete/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}}" description="{{$:/language/Buttons/Edit/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/edit">
<pre>\whitespace trim
&lt;$button message=&quot;tm-edit-tiddler&quot; tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/edit-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$text text={{$:/language/Buttons/Edit/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/locked-padlock}} {{$:/language/Buttons/Encryption/Caption}}" description="{{$:/language/Buttons/Encryption/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/encryption">
<pre>\whitespace trim
&lt;$reveal type=&quot;match&quot; state=&quot;$:/isEncrypted&quot; text=&quot;yes&quot;&gt;
&lt;$button message=&quot;tm-clear-password&quot; tooltip={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/locked-padlock}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&quot;$:/isEncrypted&quot; text=&quot;yes&quot;&gt;
&lt;$button message=&quot;tm-set-password&quot; tooltip={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/unlocked-padlock}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/core/images/export-button}} {{$:/language/Buttons/ExportPage/Caption}}" description="{{$:/language/Buttons/ExportPage/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/export-page">
<pre>&lt;$macrocall $name=&quot;exportButton&quot; exportFilter=&quot;[!is[system]sort[title]]&quot; lingoBase=&quot;$:/language/Buttons/ExportPage/&quot;/&gt;</pre>
</div>
<div caption="{{$:/core/images/export-button}} {{$:/language/Buttons/ExportTiddler/Caption}}" description="{{$:/language/Buttons/ExportTiddler/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/export-tiddler">
<pre>\define makeExportFilter()
[[$(currentTiddler)$]]
\end
&lt;$macrocall $name=&quot;exportButton&quot; exportFilter=&lt;&lt;makeExportFilter&gt;&gt; lingoBase=&quot;$:/language/Buttons/ExportTiddler/&quot; baseFilename=&lt;&lt;currentTiddler&gt;&gt;/&gt;</pre>
</div>
<div caption="{{$:/core/images/fold-button}} {{$:/language/Buttons/Fold/Caption}}" description="{{$:/language/Buttons/Fold/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/fold">
<pre>\whitespace trim
&lt;$reveal type=&quot;nomatch&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=&quot;hide&quot; default=&quot;show&quot;&gt;
&lt;$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$action-sendmessage $message=&quot;tm-fold-tiddler&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedState=&lt;&lt;folded-state&gt;&gt;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot; variable=&quot;listItem&quot;&gt;
{{$:/core/images/fold-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$text text={{$:/language/Buttons/Fold/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=&quot;hide&quot; default=&quot;show&quot;&gt;
&lt;$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$action-sendmessage $message=&quot;tm-fold-tiddler&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedState=&lt;&lt;folded-state&gt;&gt;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot; variable=&quot;listItem&quot;&gt;
{{$:/core/images/unfold-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$text text={{$:/language/Buttons/Unfold/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/core/images/fold-all-button}} {{$:/language/Buttons/FoldAll/Caption}}" description="{{$:/language/Buttons/FoldAll/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/fold-all">
<pre>&lt;$button tooltip={{$:/language/Buttons/FoldAll/Hint}} aria-label={{$:/language/Buttons/FoldAll/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$action-sendmessage $message=&quot;tm-fold-all-tiddlers&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedStatePrefix=&quot;$:/state/folded/&quot;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot; variable=&quot;listItem&quot;&gt;
{{$:/core/images/fold-all-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/FoldAll/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/chevron-up}} {{$:/language/Buttons/Fold/FoldBar/Caption}}" description="{{$:/language/Buttons/Fold/FoldBar/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/fold-bar">
<pre>&lt;!-- This dummy toolbar button is here to allow visibility of the fold-bar to be controlled as if it were a toolbar button --&gt;</pre>
</div>
<div caption="{{$:/core/images/fold-others-button}} {{$:/language/Buttons/FoldOthers/Caption}}" description="{{$:/language/Buttons/FoldOthers/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/fold-others">
<pre>\whitespace trim
&lt;$button tooltip={{$:/language/Buttons/FoldOthers/Hint}} aria-label={{$:/language/Buttons/FoldOthers/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$action-sendmessage $message=&quot;tm-fold-other-tiddlers&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedStatePrefix=&quot;$:/state/folded/&quot;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot; variable=&quot;listItem&quot;&gt;
{{$:/core/images/fold-others-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$text text={{$:/language/Buttons/FoldOthers/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/full-screen-button}} {{$:/language/Buttons/FullScreen/Caption}}" description="{{$:/language/Buttons/FullScreen/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/full-screen">
<pre>&lt;$button message=&quot;tm-full-screen&quot; tooltip={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/full-screen-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/FullScreen/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}}" description="{{$:/language/Buttons/Home/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/home">
<pre>&lt;$button message=&quot;tm-home&quot; tooltip={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/home-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Home/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/import-button}} {{$:/language/Buttons/Import/Caption}}" description="{{$:/language/Buttons/Import/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/import">
<pre>&lt;div class=&quot;tc-file-input-wrapper&quot;&gt;
&lt;$button tooltip={{$:/language/Buttons/Import/Hint}} aria-label={{$:/language/Buttons/Import/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/import-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Import/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;$browse tooltip={{$:/language/Buttons/Import/Hint}}/&gt;
&lt;/div&gt;</pre>
</div>
<div caption="{{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}}" description="{{$:/language/Buttons/Info/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/info">
<pre>\whitespace trim
\define button-content()
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/info-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text={{$:/language/Buttons/Info/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
\end
&lt;$reveal state=&quot;$:/config/TiddlerInfo/Mode&quot; type=&quot;match&quot; text=&quot;popup&quot;&gt;
&lt;$button popup=&lt;&lt;tiddlerInfoState&gt;&gt; tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=&quot;tc-selected&quot;&gt;
&lt;$macrocall $name=&quot;button-content&quot; mode=&quot;inline&quot;/&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&quot;$:/config/TiddlerInfo/Mode&quot; type=&quot;match&quot; text=&quot;sticky&quot;&gt;
&lt;$reveal state=&lt;&lt;tiddlerInfoState&gt;&gt; type=&quot;match&quot; text=&quot;&quot; default=&quot;&quot;&gt;
&lt;$button set=&lt;&lt;tiddlerInfoState&gt;&gt; setTo=&quot;yes&quot; tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=&quot;tc-selected&quot;&gt;
&lt;$macrocall $name=&quot;button-content&quot; mode=&quot;inline&quot;/&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&lt;&lt;tiddlerInfoState&gt;&gt; type=&quot;nomatch&quot; text=&quot;&quot; default=&quot;&quot;&gt;
&lt;$button set=&lt;&lt;tiddlerInfoState&gt;&gt; setTo=&quot;&quot; tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=&quot;tc-selected&quot;&gt;
&lt;$macrocall $name=&quot;button-content&quot; mode=&quot;inline&quot;/&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/$reveal&gt;</pre>
</div>
<div caption="{{$:/core/images/globe}} {{$:/language/Buttons/Language/Caption}}" description="{{$:/language/Buttons/Language/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/language">
<pre>\whitespace trim
\define flag-title()
$(languagePluginTitle)$/icon
\end
&lt;span class=&quot;tc-popup-keep&quot;&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/language&quot;&gt;&gt; tooltip={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=&quot;tc-selected&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-image-button&quot;&gt;
&lt;$set name=&quot;languagePluginTitle&quot; value={{$:/language}}&gt;
&lt;$image source=&lt;&lt;flag-title&gt;&gt;/&gt;
&lt;/$set&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Language/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;/span&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/language&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;below&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-drop-down&quot;&gt;
{{$:/snippets/languageswitcher}}
&lt;/div&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/core/images/list}} {{$:/language/Buttons/Manager/Caption}}" description="{{$:/language/Buttons/Manager/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/manager">
<pre>\whitespace trim
\define manager-button(class)
&lt;$button to=&quot;$:/Manager&quot; tooltip={{$:/language/Buttons/Manager/Hint}} aria-label={{$:/language/Buttons/Manager/Caption}} class=&quot;&quot;&quot;$(tv-config-toolbar-class)$ $class$&quot;&quot;&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/list}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Manager/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
\end
&lt;$list filter=&quot;[list[$:/StoryList]] +[field:title[$:/Manager]]&quot; emptyMessage=&lt;&lt;manager-button&gt;&gt;&gt;
&lt;&lt;manager-button &quot;tc-selected&quot;&gt;&gt;
&lt;/$list&gt;
</pre>
</div>
<div caption="{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}" description="{{$:/language/Buttons/More/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/more-page-actions">
<pre>\define config-title()
$:/config/PageControlButtons/Visibility/$(listItem)$
\end
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/more&quot;&gt;&gt; tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=&quot;tc-selected&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/down-arrow}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/More/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/more&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;below&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-drop-down&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-icons&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-text&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; value=&quot;tc-btn-invisible&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]] -[[$:/core/ui/Buttons/more-page-actions]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;config-title&gt;&gt; text=&quot;hide&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; filter=&quot;[&lt;tv-config-toolbar-class&gt;] [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]]&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=&quot;inline&quot;/&gt;
&lt;/$set&gt;
&lt;/$reveal&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/div&gt;
&lt;/$reveal&gt;</pre>
</div>
<div caption="{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}" description="{{$:/language/Buttons/More/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/more-tiddler-actions">
<pre>\whitespace trim
\define config-title()
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
\end
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/more&quot;&gt;&gt; tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=&quot;tc-selected&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/down-arrow}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$text text={{$:/language/Buttons/More/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/more&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;belowleft&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-drop-down&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-icons&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-text&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; value=&quot;tc-btn-invisible&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;config-title&gt;&gt; text=&quot;hide&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; filter=&quot;[&lt;tv-config-toolbar-class&gt;] [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]]&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=&quot;inline&quot;/&gt;
&lt;/$set&gt;
&lt;/$reveal&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/div&gt;
&lt;/$reveal&gt;</pre>
</div>
<div caption="{{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}}" description="{{$:/language/Buttons/NewHere/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/new-here">
<pre>\whitespace trim
\define newHereActions()
&lt;$set name=&quot;tags&quot; filter=&quot;[&lt;currentTiddler&gt;] [{$:/config/NewTiddler/Tags!!tags}]&quot;&gt;
&lt;$action-sendmessage $message=&quot;tm-new-tiddler&quot; tags=&lt;&lt;tags&gt;&gt;/&gt;
&lt;/$set&gt;
\end
\define newHereButton()
&lt;$button actions=&lt;&lt;newHereActions&gt;&gt; tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/new-here-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text={{$:/language/Buttons/NewHere/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
\end
&lt;&lt;newHereButton&gt;&gt;
</pre>
</div>
<div caption="{{$:/core/images/new-image-button}} {{$:/language/Buttons/NewImage/Caption}}" description="{{$:/language/Buttons/NewImage/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/new-image">
<pre>\whitespace trim
&lt;$button tooltip={{$:/language/Buttons/NewImage/Hint}} aria-label={{$:/language/Buttons/NewImage/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; actions={{$:/core/ui/Actions/new-image}}&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/new-image-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/NewImage/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
</pre>
</div>
<div caption="{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournal/Caption}}" description="{{$:/language/Buttons/NewJournal/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/new-journal">
<pre>\whitespace trim
\define journalButton()
&lt;$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; actions={{$:/core/ui/Actions/new-journal}}&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/new-journal-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/NewJournal/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
\end
&lt;&lt;journalButton&gt;&gt;
</pre>
</div>
<div caption="{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalHere/Caption}}" description="{{$:/language/Buttons/NewJournalHere/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/new-journal-here">
<pre>\whitespace trim
\define journalButtonTags()
[[$(currentTiddlerTag)$]] $(journalTags)$
\end
\define journalButton()
&lt;$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$wikify name=&quot;journalTitle&quot; text=&quot;&quot;&quot;&lt;$macrocall $name=&quot;now&quot; format=&lt;&lt;journalTitleTemplate&gt;&gt;/&gt;&quot;&quot;&quot;&gt;
&lt;$action-sendmessage $message=&quot;tm-new-tiddler&quot; title=&lt;&lt;journalTitle&gt;&gt; tags=&lt;&lt;journalButtonTags&gt;&gt;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/new-journal-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text={{$:/language/Buttons/NewJournalHere/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$wikify&gt;
&lt;/$button&gt;
\end
&lt;$set name=&quot;journalTitleTemplate&quot; value={{$:/config/NewJournal/Title}}&gt;
&lt;$set name=&quot;journalTags&quot; value={{$:/config/NewJournal/Tags!!tags}}&gt;
&lt;$set name=&quot;currentTiddlerTag&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;
&lt;&lt;journalButton&gt;&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
</pre>
</div>
<div caption="{{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}}" description="{{$:/language/Buttons/NewTiddler/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/new-tiddler">
<pre>\whitespace trim
&lt;$button actions={{$:/core/ui/Actions/new-tiddler}} tooltip={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/new-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/NewTiddler/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
</pre>
</div>
<div caption="{{$:/core/images/open-window}} {{$:/language/Buttons/OpenWindow/Caption}}" description="{{$:/language/Buttons/OpenWindow/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/open-window">
<pre>\whitespace trim
&lt;$button message=&quot;tm-open-window&quot; tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/open-window}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$text text={{$:/language/Buttons/OpenWindow/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/palette}} {{$:/language/Buttons/Palette/Caption}}" description="{{$:/language/Buttons/Palette/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/palette">
<pre>\whitespace trim
&lt;span class=&quot;tc-popup-keep&quot;&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/palette&quot;&gt;&gt; tooltip={{$:/language/Buttons/Palette/Hint}} aria-label={{$:/language/Buttons/Palette/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=&quot;tc-selected&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/palette}}
&lt;/$list&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Palette/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;/span&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/palette&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;below&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-drop-down&quot; style=&quot;font-size:0.7em;&quot;&gt;
{{$:/snippets/paletteswitcher}}
&lt;/div&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}}" description="{{$:/language/Buttons/Permalink/Hint}}" tags="$:/tags/ViewToolbar" title="$:/core/ui/Buttons/permalink">
<pre>\whitespace trim
&lt;$button message=&quot;tm-permalink&quot; tooltip={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/permalink-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$text text={{$:/language/Buttons/Permalink/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}}" description="{{$:/language/Buttons/Permaview/Hint}}" tags="$:/tags/ViewToolbar $:/tags/PageControls" title="$:/core/ui/Buttons/permaview">
<pre>\whitespace trim
&lt;$button message=&quot;tm-permaview&quot; tooltip={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/permaview-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$text text={{$:/language/Buttons/Permaview/Caption}}/&gt;
&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/print-button}} {{$:/language/Buttons/Print/Caption}}" description="{{$:/language/Buttons/Print/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/print">
<pre>&lt;$button message=&quot;tm-print&quot; tooltip={{$:/language/Buttons/Print/Hint}} aria-label={{$:/language/Buttons/Print/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/print-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Print/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}}" description="{{$:/language/Buttons/Refresh/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/refresh">
<pre>&lt;$button message=&quot;tm-browser-refresh&quot; tooltip={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/refresh-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Refresh/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}" description="{{$:/language/Buttons/Save/Hint}}" tags="$:/tags/EditToolbar" title="$:/core/ui/Buttons/save">
<pre>\define save-tiddler-button()
&lt;$fieldmangler&gt;&lt;$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;&lt;save-tiddler-actions&gt;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/done-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Save/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;&lt;/$fieldmangler&gt;
\end
&lt;&lt;save-tiddler-button&gt;&gt;
</pre>
</div>
<div caption="{{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}}" description="{{$:/language/Buttons/SaveWiki/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/save-wiki">
<pre>&lt;$button tooltip={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$wikify name=&quot;site-title&quot; text={{$:/config/SaveWikiButton/Filename}}&gt;
&lt;$action-sendmessage $message=&quot;tm-save-wiki&quot; $param={{$:/config/SaveWikiButton/Template}} filename=&lt;&lt;site-title&gt;&gt;/&gt;
&lt;/$wikify&gt;
&lt;span class=&quot;tc-dirty-indicator&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/save-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/SaveWiki/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/span&gt;
&lt;/$button&gt;</pre>
</div>
<div caption="{{$:/core/images/storyview-classic}} {{$:/language/Buttons/StoryView/Caption}}" description="{{$:/language/Buttons/StoryView/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/storyview">
<pre>\whitespace trim
\define icon()
$:/core/images/storyview-$(storyview)$
\end
&lt;span class=&quot;tc-popup-keep&quot;&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/storyview&quot;&gt;&gt; tooltip={{$:/language/Buttons/StoryView/Hint}} aria-label={{$:/language/Buttons/StoryView/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=&quot;tc-selected&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
&lt;$set name=&quot;storyview&quot; value={{$:/view}}&gt;
&lt;$transclude tiddler=&lt;&lt;icon&gt;&gt;/&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/StoryView/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;/span&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/storyview&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;below&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-drop-down&quot;&gt;
{{$:/snippets/viewswitcher}}
&lt;/div&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/core/images/tag-button}} {{$:/language/Buttons/TagManager/Caption}}" description="{{$:/language/Buttons/TagManager/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/tag-manager">
<pre>\whitespace trim
\define control-panel-button(class)
&lt;$button to=&quot;$:/TagManager&quot; tooltip={{$:/language/Buttons/TagManager/Hint}} aria-label={{$:/language/Buttons/TagManager/Caption}} class=&quot;&quot;&quot;$(tv-config-toolbar-class)$ $class$&quot;&quot;&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/tag-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/TagManager/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
\end
&lt;$list filter=&quot;[list[$:/StoryList]] +[field:title[$:/TagManager]]&quot; emptyMessage=&lt;&lt;control-panel-button&gt;&gt;&gt;
&lt;&lt;control-panel-button &quot;tc-selected&quot;&gt;&gt;
&lt;/$list&gt;
</pre>
</div>
<div caption="{{$:/core/images/theme-button}} {{$:/language/Buttons/Theme/Caption}}" description="{{$:/language/Buttons/Theme/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/theme">
<pre>\whitespace trim
&lt;span class=&quot;tc-popup-keep&quot;&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/theme&quot;&gt;&gt; tooltip={{$:/language/Buttons/Theme/Hint}} aria-label={{$:/language/Buttons/Theme/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt; selectedClass=&quot;tc-selected&quot;&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/theme-button}}
&lt;/$list&gt;
&lt;$text text=&quot; &quot;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Theme/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;/span&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/theme&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;below&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-drop-down&quot;&gt;
&lt;$linkcatcher to=&quot;$:/theme&quot;&gt;
{{$:/snippets/themeswitcher}}
&lt;/$linkcatcher&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/core/images/timestamp-on}} {{$:/language/Buttons/Timestamp/Caption}}" description="{{$:/language/Buttons/Timestamp/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/timestamp">
<pre>\whitespace trim
&lt;$reveal type=&quot;nomatch&quot; state=&quot;$:/config/TimestampDisable&quot; text=&quot;yes&quot;&gt;
&lt;$button tooltip={{$:/language/Buttons/Timestamp/On/Hint}} aria-label={{$:/language/Buttons/Timestamp/On/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$action-setfield $tiddler=&quot;$:/config/TimestampDisable&quot; $value=&quot;yes&quot;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/timestamp-on}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Timestamp/On/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&quot;$:/config/TimestampDisable&quot; text=&quot;yes&quot;&gt;
&lt;$button tooltip={{$:/language/Buttons/Timestamp/Off/Hint}} aria-label={{$:/language/Buttons/Timestamp/Off/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$action-setfield $tiddler=&quot;$:/config/TimestampDisable&quot; $value=&quot;no&quot;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot;&gt;
{{$:/core/images/timestamp-off}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/Timestamp/Off/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/core/images/unfold-all-button}} {{$:/language/Buttons/UnfoldAll/Caption}}" description="{{$:/language/Buttons/UnfoldAll/Hint}}" tags="$:/tags/PageControls" title="$:/core/ui/Buttons/unfold-all">
<pre>&lt;$button tooltip={{$:/language/Buttons/UnfoldAll/Hint}} aria-label={{$:/language/Buttons/UnfoldAll/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;
&lt;$action-sendmessage $message=&quot;tm-unfold-all-tiddlers&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedStatePrefix=&quot;$:/state/folded/&quot;/&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-icons&gt;match[yes]]&quot; variable=&quot;listItem&quot;&gt;
{{$:/core/images/unfold-all-button}}
&lt;/$list&gt;
&lt;$list filter=&quot;[&lt;tv-config-toolbar-text&gt;match[yes]]&quot;&gt;
&lt;span class=&quot;tc-btn-text&quot;&gt;&lt;$text text={{$:/language/Buttons/UnfoldAll/Caption}}/&gt;&lt;/span&gt;
&lt;/$list&gt;
&lt;/$button&gt;</pre>
</div>
<div title="$:/core/ui/Components/plugin-info">
<pre>\define lingo-base() $:/language/ControlPanel/Plugins/
\define popup-state-macro()
$(qualified-state)$-$(currentTiddler)$
\end
\define tabs-state-macro()
$(popup-state)$-$(pluginInfoType)$
\end
\define plugin-icon-title()
$(currentTiddler)$/icon
\end
\define plugin-disable-title()
$:/config/Plugins/Disabled/$(currentTiddler)$
\end
\define plugin-table-body(type,disabledMessage,default-popup-state)
&lt;div class=&quot;tc-plugin-info-chunk tc-plugin-info-toggle&quot;&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;popup-state&gt;&gt; text=&quot;yes&quot; default=&quot;&quot;&quot;$default-popup-state$&quot;&quot;&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible tc-btn-dropdown&quot; set=&lt;&lt;popup-state&gt;&gt; setTo=&quot;yes&quot;&gt;
{{$:/core/images/chevron-right}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;popup-state&gt;&gt; text=&quot;yes&quot; default=&quot;&quot;&quot;$default-popup-state$&quot;&quot;&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible tc-btn-dropdown&quot; set=&lt;&lt;popup-state&gt;&gt; setTo=&quot;no&quot;&gt;
{{$:/core/images/chevron-down}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-plugin-info-chunk tc-plugin-info-icon&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;plugin-icon-title&gt;&gt;&gt;
&lt;$transclude tiddler=&quot;$:/core/images/plugin-generic-$type$&quot;/&gt;
&lt;/$transclude&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-plugin-info-chunk tc-plugin-info-description&quot;&gt;
&lt;h1&gt;
''&lt;$text text={{{ [&lt;currentTiddler&gt;get[name]] ~[&lt;currentTiddler&gt;split[/]last[1]] }}}/&gt;'': &lt;$view field=&quot;description&quot;&gt;&lt;$view field=&quot;title&quot;/&gt;&lt;/$view&gt; $disabledMessage$
&lt;/h1&gt;
&lt;h2&gt;
&lt;$view field=&quot;title&quot;/&gt;
&lt;/h2&gt;
&lt;h2&gt;
&lt;div&gt;&lt;em&gt;&lt;$view field=&quot;version&quot;/&gt;&lt;/em&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;/div&gt;
\end
\define plugin-info(type,default-popup-state)
&lt;$set name=&quot;popup-state&quot; value=&lt;&lt;popup-state-macro&gt;&gt;&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;plugin-disable-title&gt;&gt; text=&quot;yes&quot;&gt;
&lt;$link to={{!!title}} class=&quot;tc-plugin-info&quot;&gt;
&lt;&lt;plugin-table-body type:&quot;$type$&quot; default-popup-state:&quot;&quot;&quot;$default-popup-state$&quot;&quot;&quot;&gt;&gt;
&lt;/$link&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;plugin-disable-title&gt;&gt; text=&quot;yes&quot;&gt;
&lt;$link to={{!!title}} class=&quot;tc-plugin-info tc-plugin-info-disabled&quot;&gt;
&lt;&lt;plugin-table-body type:&quot;$type$&quot; default-popup-state:&quot;&quot;&quot;$default-popup-state$&quot;&quot;&quot; disabledMessage:&quot;&lt;$macrocall $name='lingo' title='Disabled/Status'/&gt;&quot;&gt;&gt;
&lt;/$link&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; text=&quot;yes&quot; state=&lt;&lt;popup-state&gt;&gt; default=&quot;&quot;&quot;$default-popup-state$&quot;&quot;&quot;&gt;
&lt;div class=&quot;tc-plugin-info-dropdown&quot;&gt;
&lt;div class=&quot;tc-plugin-info-dropdown-body&quot;&gt;
&lt;$list filter=&quot;[all[current]] -[[$:/core]]&quot;&gt;
&lt;div style=&quot;float:right;&quot;&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;plugin-disable-title&gt;&gt; text=&quot;yes&quot;&gt;
&lt;$button set=&lt;&lt;plugin-disable-title&gt;&gt; setTo=&quot;yes&quot; tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}&gt;
&lt;&lt;lingo Disable/Caption&gt;&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;plugin-disable-title&gt;&gt; text=&quot;yes&quot;&gt;
&lt;$button set=&lt;&lt;plugin-disable-title&gt;&gt; setTo=&quot;no&quot; tooltip={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}&gt;
&lt;&lt;lingo Enable/Caption&gt;&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;$set name=&quot;tabsList&quot; filter=&quot;[&lt;currentTiddler&gt;list[]] contents&quot;&gt;
&lt;$macrocall $name=&quot;tabs&quot; state=&lt;&lt;tabs-state-macro&gt;&gt; tabsList=&lt;&lt;tabsList&gt;&gt; default={{{ [enlist&lt;tabsList&gt;] }}} template=&quot;$:/core/ui/PluginInfo&quot;/&gt;
&lt;/$set&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;/$set&gt;
\end
&lt;$macrocall $name=&quot;plugin-info&quot; type=&lt;&lt;plugin-type&gt;&gt; default-popup-state=&lt;&lt;default-popup-state&gt;&gt;/&gt;
</pre>
</div>
<div title="$:/core/ui/Components/tag-link">
<pre>&lt;$link&gt;
&lt;$set name=&quot;backgroundColor&quot; value={{!!color}}&gt;
&lt;span style=&lt;&lt;tag-styles&gt;&gt; class=&quot;tc-tag-label&quot;&gt;
&lt;$view field=&quot;title&quot; format=&quot;text&quot;/&gt;
&lt;/span&gt;
&lt;/$set&gt;
&lt;/$link&gt;</pre>
</div>
<div caption="{{$:/language/ControlPanel/Advanced/Caption}}" tags="$:/tags/ControlPanel/Info" title="$:/core/ui/ControlPanel/Advanced">
<pre>{{$:/language/ControlPanel/Advanced/Hint}}
&lt;div class=&quot;tc-control-panel&quot;&gt;
&lt;&lt;tabs &quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Advanced]!has[draft.of]]&quot; &quot;$:/core/ui/ControlPanel/TiddlerFields&quot;&gt;&gt;
&lt;/div&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Appearance/Caption}}" tags="$:/tags/ControlPanel" title="$:/core/ui/ControlPanel/Appearance">
<pre>{{$:/language/ControlPanel/Appearance/Hint}}
&lt;div class=&quot;tc-control-panel&quot;&gt;
&lt;&lt;tabs &quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Appearance]!has[draft.of]]&quot; &quot;$:/core/ui/ControlPanel/Theme&quot;&gt;&gt;
&lt;/div&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Basics/Caption}}" tags="$:/tags/ControlPanel/Info" title="$:/core/ui/ControlPanel/Basics">
<pre>\define lingo-base() $:/language/ControlPanel/Basics/
\define show-filter-count(filter)
&lt;$button class=&quot;tc-btn-invisible&quot;&gt;
&lt;$action-setfield $tiddler=&quot;$:/temp/advancedsearch&quot; $value=&quot;&quot;&quot;$filter$&quot;&quot;&quot;/&gt;
&lt;$action-setfield $tiddler=&quot;$:/state/tab--1498284803&quot; $value=&quot;$:/core/ui/AdvancedSearch/Filter&quot;/&gt;
&lt;$action-navigate $to=&quot;$:/AdvancedSearch&quot;/&gt;
''&lt;$count filter=&quot;&quot;&quot;$filter$&quot;&quot;&quot;/&gt;''
{{$:/core/images/advanced-search-button}}
&lt;/$button&gt;
\end
|&lt;&lt;lingo Version/Prompt&gt;&gt; |''&lt;&lt;version&gt;&gt;'' |
|&lt;$link to=&quot;$:/SiteTitle&quot;&gt;&lt;&lt;lingo Title/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/SiteTitle&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/SiteSubtitle&quot;&gt;&lt;&lt;lingo Subtitle/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/SiteSubtitle&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/status/UserName&quot;&gt;&lt;&lt;lingo Username/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/status/UserName&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/config/AnimationDuration&quot;&gt;&lt;&lt;lingo AnimDuration/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/config/AnimationDuration&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/DefaultTiddlers&quot;&gt;&lt;&lt;lingo DefaultTiddlers/Prompt&gt;&gt;&lt;/$link&gt; |&lt;&lt;lingo DefaultTiddlers/TopHint&gt;&gt;&lt;br&gt; &lt;$edit tag=&quot;textarea&quot; tiddler=&quot;$:/DefaultTiddlers&quot; class=&quot;tc-edit-texteditor&quot;/&gt;&lt;br&gt;//&lt;&lt;lingo DefaultTiddlers/BottomHint&gt;&gt;// |
|&lt;$link to=&quot;$:/language/DefaultNewTiddlerTitle&quot;&gt;&lt;&lt;lingo NewTiddler/Title/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/language/DefaultNewTiddlerTitle&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/config/NewJournal/Title&quot;&gt;&lt;&lt;lingo NewJournal/Title/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/config/NewJournal/Title&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/config/NewJournal/Text&quot;&gt;&lt;&lt;lingo NewJournal/Text/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit tiddler=&quot;$:/config/NewJournal/Text&quot; tag=&quot;textarea&quot; class=&quot;tc-edit-texteditor&quot; default=&quot;&quot;/&gt; |
|&lt;$link to=&quot;$:/config/NewTiddler/Tags&quot;&gt;&lt;&lt;lingo NewTiddler/Tags/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$list filter=&quot;[[$:/config/NewTiddler/Tags]]&quot; template=&quot;$:/core/ui/EditTemplate/tags&quot;/&gt; |
|&lt;$link to=&quot;$:/config/NewJournal/Tags&quot;&gt;&lt;&lt;lingo NewJournal/Tags/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$list filter=&quot;[[$:/config/NewJournal/Tags]]&quot; template=&quot;$:/core/ui/EditTemplate/tags&quot;/&gt; |
|&lt;$link to=&quot;$:/config/AutoFocus&quot;&gt;&lt;&lt;lingo AutoFocus/Prompt&gt;&gt;&lt;/$link&gt; |{{$:/snippets/minifocusswitcher}} |
|&lt;&lt;lingo Language/Prompt&gt;&gt; |{{$:/snippets/minilanguageswitcher}} |
|&lt;&lt;lingo Tiddlers/Prompt&gt;&gt; |&lt;&lt;show-filter-count &quot;[!is[system]sort[title]]&quot;&gt;&gt; |
|&lt;&lt;lingo Tags/Prompt&gt;&gt; |&lt;&lt;show-filter-count &quot;[tags[]sort[title]]&quot;&gt;&gt; |
|&lt;&lt;lingo SystemTiddlers/Prompt&gt;&gt; |&lt;&lt;show-filter-count &quot;[is[system]sort[title]]&quot;&gt;&gt; |
|&lt;&lt;lingo ShadowTiddlers/Prompt&gt;&gt; |&lt;&lt;show-filter-count &quot;[all[shadows]sort[title]]&quot;&gt;&gt; |
|&lt;&lt;lingo OverriddenShadowTiddlers/Prompt&gt;&gt; |&lt;&lt;show-filter-count &quot;[is[tiddler]is[shadow]sort[title]]&quot;&gt;&gt; |
</pre>
</div>
<div caption="{{$:/language/ControlPanel/EditorTypes/Caption}}" tags="$:/tags/ControlPanel/Advanced" title="$:/core/ui/ControlPanel/EditorTypes">
<pre>\define lingo-base() $:/language/ControlPanel/EditorTypes/
&lt;&lt;lingo Hint&gt;&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;&lt;&lt;lingo Type/Caption&gt;&gt;&lt;/th&gt;
&lt;th&gt;&lt;&lt;lingo Editor/Caption&gt;&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]prefix[$:/config/EditorTypeMappings/]sort[title]]&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;$link&gt;
&lt;$list filter=&quot;[all[current]removeprefix[$:/config/EditorTypeMappings/]]&quot;&gt;
&lt;$text text={{!!title}}/&gt;
&lt;/$list&gt;
&lt;/$link&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;$view field=&quot;text&quot;/&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/$list&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Info/Caption}}" tags="$:/tags/ControlPanel" title="$:/core/ui/ControlPanel/Info">
<pre>{{$:/language/ControlPanel/Info/Hint}}
&lt;div class=&quot;tc-control-panel&quot;&gt;
&lt;&lt;tabs &quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Info]!has[draft.of]]&quot; &quot;$:/core/ui/ControlPanel/Basics&quot;&gt;&gt;
&lt;/div&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/KeyboardShortcuts/Caption}}" tags="$:/tags/ControlPanel" title="$:/core/ui/ControlPanel/KeyboardShortcuts">
<pre>\define lingo-base() $:/language/ControlPanel/KeyboardShortcuts/
\define new-shortcut(title)
&lt;div class=&quot;tc-dropdown-item-plain&quot;&gt;
&lt;$edit-shortcut tiddler=&quot;$title$&quot; placeholder={{$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt}} focus=&quot;true&quot; style=&quot;width:auto;&quot;/&gt; &lt;$button&gt;
&lt;&lt;lingo Add/Caption&gt;&gt;
&lt;$action-listops
$tiddler=&quot;$(shortcutTitle)$&quot;
$field=&quot;text&quot;
$subfilter=&quot;[{$title$}]&quot;
/&gt;
&lt;$action-deletetiddler
$tiddler=&quot;$title$&quot;
/&gt;
&lt;/$button&gt;
&lt;/div&gt;
\end
\define shortcut-list-item(caption)
&lt;td&gt;
&lt;/td&gt;
&lt;td style=&quot;text-align:right;font-size:0.7em;&quot;&gt;
&lt;&lt;lingo Platform/$caption$&gt;&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;div style=&quot;position:relative;&quot;&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/dropdown/$(shortcutTitle)$&quot;&gt;&gt; class=&quot;tc-btn-invisible&quot;&gt;
{{$:/core/images/edit-button}}
&lt;/$button&gt;
&lt;$macrocall $name=&quot;displayshortcuts&quot; $output=&quot;text/html&quot; shortcuts={{$(shortcutTitle)$}} prefix=&quot;&lt;kbd&gt;&quot; separator=&quot;&lt;/kbd&gt; &lt;kbd&gt;&quot; suffix=&quot;&lt;/kbd&gt;&quot;/&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/dropdown/$(shortcutTitle)$&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;below&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-block-dropdown-wrapper&quot;&gt;
&lt;div class=&quot;tc-block-dropdown tc-edit-type-dropdown tc-popup-keep&quot;&gt;
&lt;$list filter=&quot;[list[$(shortcutTitle)$!!text]sort[title]]&quot; variable=&quot;shortcut&quot; emptyMessage=&quot;&quot;&quot;
&lt;div class=&quot;tc-dropdown-item-plain&quot;&gt;
//&lt;&lt;lingo NoShortcuts/Caption&gt;&gt;//
&lt;/div&gt;
&quot;&quot;&quot;&gt;
&lt;div class=&quot;tc-dropdown-item-plain&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot; tooltip={{$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint}}&gt;
&lt;$action-listops
$tiddler=&quot;$(shortcutTitle)$&quot;
$field=&quot;text&quot;
$subfilter=&quot;+[remove&lt;shortcut&gt;]&quot;
/&gt;
&lt;small&gt;{{$:/core/images/close-button}}&lt;/small&gt;
&lt;/$button&gt;
&lt;kbd&gt;
&lt;$macrocall $name=&quot;displayshortcuts&quot; $output=&quot;text/html&quot; shortcuts=&lt;&lt;shortcut&gt;&gt;/&gt;
&lt;/kbd&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;hr/&gt;
&lt;$macrocall $name=&quot;new-shortcut&quot; title=&lt;&lt;qualify &quot;$:/state/new-shortcut/$(shortcutTitle)$&quot;&gt;&gt;/&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;/td&gt;
\end
\define shortcut-list(caption,prefix)
&lt;tr&gt;
&lt;$list filter=&quot;[[$prefix$$(shortcutName)$]]&quot; variable=&quot;shortcutTitle&quot;&gt;
&lt;&lt;shortcut-list-item &quot;$caption$&quot;&gt;&gt;
&lt;/$list&gt;
&lt;/tr&gt;
\end
\define shortcut-editor()
&lt;&lt;shortcut-list &quot;All&quot; &quot;$:/config/shortcuts/&quot;&gt;&gt;
&lt;&lt;shortcut-list &quot;Mac&quot; &quot;$:/config/shortcuts-mac/&quot;&gt;&gt;
&lt;&lt;shortcut-list &quot;NonMac&quot; &quot;$:/config/shortcuts-not-mac/&quot;&gt;&gt;
&lt;&lt;shortcut-list &quot;Linux&quot; &quot;$:/config/shortcuts-linux/&quot;&gt;&gt;
&lt;&lt;shortcut-list &quot;NonLinux&quot; &quot;$:/config/shortcuts-not-linux/&quot;&gt;&gt;
&lt;&lt;shortcut-list &quot;Windows&quot; &quot;$:/config/shortcuts-windows/&quot;&gt;&gt;
&lt;&lt;shortcut-list &quot;NonWindows&quot; &quot;$:/config/shortcuts-not-windows/&quot;&gt;&gt;
\end
\define shortcut-preview()
&lt;$macrocall $name=&quot;displayshortcuts&quot; $output=&quot;text/html&quot; shortcuts={{$(shortcutPrefix)$$(shortcutName)$}} prefix=&quot;&lt;kbd&gt;&quot; separator=&quot;&lt;/kbd&gt; &lt;kbd&gt;&quot; suffix=&quot;&lt;/kbd&gt;&quot;/&gt;
\end
\define shortcut-item-inner()
&lt;tr&gt;
&lt;td&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;dropdownStateTitle&gt;&gt; text=&quot;open&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot;&gt;
&lt;$action-setfield
$tiddler=&lt;&lt;dropdownStateTitle&gt;&gt;
$value=&quot;open&quot;
/&gt;
{{$:/core/images/right-arrow}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;dropdownStateTitle&gt;&gt; text=&quot;open&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot;&gt;
&lt;$action-setfield
$tiddler=&lt;&lt;dropdownStateTitle&gt;&gt;
$value=&quot;close&quot;
/&gt;
{{$:/core/images/down-arrow}}
&lt;/$button&gt;
&lt;/$reveal&gt;
''&lt;$text text=&lt;&lt;shortcutName&gt;&gt;/&gt;''
&lt;/td&gt;
&lt;td&gt;
&lt;$transclude tiddler=&quot;$:/config/ShortcutInfo/$(shortcutName)$&quot;/&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;$list filter=&quot;$:/config/shortcuts/ $:/config/shortcuts-mac/ $:/config/shortcuts-not-mac/ $:/config/shortcuts-linux/ $:/config/shortcuts-not-linux/ $:/config/shortcuts-windows/ $:/config/shortcuts-not-windows/&quot; variable=&quot;shortcutPrefix&quot;&gt;
&lt;&lt;shortcut-preview&gt;&gt;
&lt;/$list&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;$set name=&quot;dropdownState&quot; value={{$(dropdownStateTitle)$}}&gt;
&lt;$list filter=&quot;[&lt;dropdownState&gt;match[open]]&quot; variable=&quot;listItem&quot;&gt;
&lt;&lt;shortcut-editor&gt;&gt;
&lt;/$list&gt;
&lt;/$set&gt;
\end
\define shortcut-item()
&lt;$set name=&quot;dropdownStateTitle&quot; value=&lt;&lt;qualify &quot;$:/state/dropdown/keyboardshortcut/$(shortcutName)$&quot;&gt;&gt;&gt;
&lt;&lt;shortcut-item-inner&gt;&gt;
&lt;/$set&gt;
\end
&lt;table&gt;
&lt;tbody&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]removeprefix[$:/config/ShortcutInfo/]]&quot; variable=&quot;shortcutName&quot;&gt;
&lt;&lt;shortcut-item&gt;&gt;
&lt;/$list&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/LoadedModules/Caption}}" tags="$:/tags/ControlPanel/Advanced" title="$:/core/ui/ControlPanel/LoadedModules">
<pre>\define lingo-base() $:/language/ControlPanel/
&lt;&lt;lingo LoadedModules/Hint&gt;&gt;
{{$:/snippets/modules}}
</pre>
</div>
<div subtitle="{{$:/core/images/download-button}} {{$:/language/ControlPanel/Plugins/Add/Caption}}" title="$:/core/ui/ControlPanel/Modals/AddPlugins">
<pre>\define install-plugin-actions()
&lt;$action-sendmessage $message=&quot;tm-load-plugin-from-library&quot; url={{!!url}} title={{$(assetInfo)$!!original-title}}/&gt;
&lt;$set name=&quot;url&quot; value={{!!url}}&gt;
&lt;$set name=&quot;currentTiddler&quot; value=&lt;&lt;assetInfo&gt;&gt;&gt;
&lt;$list filter=&quot;[enlist{!!dependents}] [{!!parent-plugin}] +[sort[title]]&quot; variable=&quot;dependency&quot;&gt;
&lt;$action-sendmessage $message=&quot;tm-load-plugin-from-library&quot; url=&lt;&lt;url&gt;&gt; title=&lt;&lt;dependency&gt;&gt;/&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$set&gt;
\end
\define install-plugin-button()
&lt;div&gt;
&lt;$set name=&quot;libraryVersion&quot; value={{{ [&lt;assetInfo&gt;get[version]] }}}&gt;
&lt;$set name=&quot;installedVersion&quot; value={{{ [&lt;assetInfo&gt;get[original-title]get[version]] }}}&gt;
&lt;$set name=&quot;reinstall-type&quot; value={{{ [&lt;libraryVersion&gt;compare:version:eq&lt;installedVersion&gt;then[tc-reinstall]] [&lt;libraryVersion&gt;compare:version:gt&lt;installedVersion&gt;then[tc-reinstall-upgrade]] [&lt;libraryVersion&gt;compare:version:lt&lt;installedVersion&gt;then[tc-reinstall-downgrade]] }}}&gt;
&lt;$button actions=&lt;&lt;install-plugin-actions&gt;&gt; class={{{ [&lt;assetInfo&gt;get[original-title]has[version]then&lt;reinstall-type&gt;] tc-btn-invisible tc-install-plugin +[join[ ]] }}}&gt;
{{$:/core/images/download-button}}
&lt;$list filter=&quot;[&lt;assetInfo&gt;get[original-title]get[version]]&quot; variable=&quot;ignore&quot; emptyMessage=&quot;{{$:/language/ControlPanel/Plugins/Install/Caption}}&quot;&gt;
&lt;$list filter=&quot;[&lt;libraryVersion&gt;compare:version:gt&lt;installedVersion&gt;]&quot; variable=&quot;ignore&quot; emptyMessage=&quot;&quot;&quot;
&lt;$list filter=&quot;[&lt;libraryVersion&gt;compare:version:lt&lt;installedVersion&gt;]&quot; variable=&quot;ignore&quot; emptyMessage=&quot;{{$:/language/ControlPanel/Plugins/Reinstall/Caption}}&quot;&gt;
{{$:/language/ControlPanel/Plugins/Downgrade/Caption}}
&lt;/$list&gt;
&quot;&quot;&quot;&gt;
{{$:/language/ControlPanel/Plugins/Update/Caption}}
&lt;/$list&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;$reveal stateTitle=&lt;&lt;assetInfo&gt;&gt; stateField=&quot;requires-reload&quot; type=&quot;match&quot; text=&quot;yes&quot;&gt;{{$:/language/ControlPanel/Plugins/PluginWillRequireReload}}&lt;/$reveal&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/div&gt;
\end
\define popup-state-macro()
$:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
\end
\define display-plugin-info(type)
&lt;$set name=&quot;popup-state&quot; value=&lt;&lt;popup-state-macro&gt;&gt;&gt;
&lt;div class=&quot;tc-plugin-info&quot;&gt;
&lt;div class=&quot;tc-plugin-info-chunk tc-plugin-info-toggle&quot;&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;popup-state&gt;&gt; text=&quot;yes&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible tc-btn-dropdown&quot; set=&lt;&lt;popup-state&gt;&gt; setTo=&quot;yes&quot;&gt;
{{$:/core/images/chevron-right}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;popup-state&gt;&gt; text=&quot;yes&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible tc-btn-dropdown&quot; set=&lt;&lt;popup-state&gt;&gt; setTo=&quot;no&quot;&gt;
{{$:/core/images/chevron-down}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-plugin-info-chunk tc-plugin-info-icon&quot;&gt;
&lt;$list filter=&quot;[&lt;assetInfo&gt;has[icon]]&quot; emptyMessage=&quot;&quot;&quot;&lt;$transclude tiddler=&quot;$:/core/images/plugin-generic-$type$&quot;/&gt;&quot;&quot;&quot;&gt;
&lt;img src={{$(assetInfo)$!!icon}}/&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-plugin-info-chunk tc-plugin-info-description&quot;&gt;
&lt;h1&gt;&lt;strong&gt;&lt;$text text={{{ [&lt;assetInfo&gt;get[name]] ~[&lt;assetInfo&gt;get[original-title]split[/]last[1]] }}}/&gt;&lt;/strong&gt;: &lt;$view tiddler=&lt;&lt;assetInfo&gt;&gt; field=&quot;description&quot;/&gt;&lt;/h1&gt;
&lt;h2&gt;&lt;$view tiddler=&lt;&lt;assetInfo&gt;&gt; field=&quot;original-title&quot;/&gt;&lt;/h2&gt;
&lt;div&gt;&lt;em&gt;&lt;$view tiddler=&lt;&lt;assetInfo&gt;&gt; field=&quot;version&quot;/&gt;&lt;/em&gt;&lt;/div&gt;
&lt;$list filter=&quot;[&lt;assetInfo&gt;get[original-title]get[version]]&quot; variable=&quot;installedVersion&quot;&gt;&lt;div&gt;&lt;em&gt;{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}&lt;/em&gt;&lt;/div&gt;&lt;/$list&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-plugin-info-chunk tc-plugin-info-buttons&quot;&gt;
&lt;&lt;install-plugin-button&gt;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;$set name=&quot;original-title&quot; value={{{ [&lt;assetInfo&gt;get[original-title]] }}}&gt;
&lt;$reveal type=&quot;match&quot; text=&quot;yes&quot; state=&lt;&lt;popup-state&gt;&gt;&gt;
&lt;div class=&quot;tc-plugin-info-dropdown&quot;&gt;
&lt;$list filter=&quot;[enlist{!!dependents}] [&lt;currentTiddler&gt;get[parent-plugin]] +[limit[1]] ~[&lt;assetInfo&gt;get[original-title]!is[tiddler]]&quot; variable=&quot;ignore&quot;&gt;
&lt;div class=&quot;tc-plugin-info-dropdown-message&quot;&gt;
&lt;$list filter=&quot;[&lt;assetInfo&gt;get[original-title]!is[tiddler]]&quot;&gt;
{{$:/language/ControlPanel/Plugins/NotInstalled/Hint}}
&lt;/$list&gt;
&lt;$set name=&quot;currentTiddler&quot; value=&lt;&lt;assetInfo&gt;&gt;&gt;
&lt;$list filter=&quot;[enlist{!!dependents}] [&lt;currentTiddler&gt;get[parent-plugin]] +[limit[1]]&quot; variable=&quot;ignore&quot;&gt;
&lt;div&gt;
{{$:/language/ControlPanel/Plugins/AlsoRequires}}
&lt;$list filter=&quot;[enlist{!!dependents}] [{!!parent-plugin}] +[sort[title]]&quot; variable=&quot;dependency&quot;&gt;
&lt;$text text=&lt;&lt;dependency&gt;&gt;/&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;div class=&quot;tc-plugin-info-dropdown-body&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;assetInfo&gt;&gt; field=&quot;readme&quot; mode=&quot;block&quot;/&gt;
&lt;/div&gt;
&lt;$list filter=&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin&lt;original-title&gt;limit[1]]&quot; variable=&quot;ignore&quot;&gt;
&lt;div class=&quot;tc-plugin-info-sub-plugins&quot;&gt;
&lt;$list filter=&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin&lt;original-title&gt;sort[title]]&quot; variable=&quot;assetInfo&quot;&gt;
&lt;&lt;display-plugin-info &quot;$type$&quot;&gt;&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;$list filter=&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin&lt;original-title&gt;limit[1]]&quot; variable=&quot;ignore&quot;&gt;
&lt;$reveal type=&quot;nomatch&quot; text=&quot;yes&quot; state=&lt;&lt;popup-state&gt;&gt; tag=&quot;div&quot; class=&quot;tc-plugin-info-sub-plugin-indicator&quot;&gt;
&lt;$wikify name=&quot;count&quot; text=&quot;&quot;&quot;&lt;$count filter=&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin&lt;original-title&gt;]&quot;/&gt;&quot;&quot;&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot; set=&lt;&lt;popup-state&gt;&gt; setTo=&quot;yes&quot;&gt;
{{$:/language/ControlPanel/Plugins/SubPluginPrompt}}
&lt;/$button&gt;
&lt;/$wikify&gt;
&lt;/$reveal&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$set&gt;
\end
\define load-plugin-library-button()
&lt;$button class=&quot;tc-btn-big-green&quot;&gt;
&lt;$action-sendmessage $message=&quot;tm-load-plugin-library&quot; url={{!!url}} infoTitlePrefix=&quot;$:/temp/RemoteAssetInfo/&quot;/&gt;
{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Plugins/OpenPluginLibrary}}
&lt;/$button&gt;
\end
\define display-server-assets(type)
{{$:/language/Search/Search}}: &lt;$edit-text tiddler=&quot;&quot;&quot;$:/temp/RemoteAssetSearch/$(currentTiddler)$&quot;&quot;&quot; default=&quot;&quot; type=&quot;search&quot; tag=&quot;input&quot;/&gt;
&lt;$reveal state=&quot;&quot;&quot;$:/temp/RemoteAssetSearch/$(currentTiddler)$&quot;&quot;&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot;&gt;
&lt;$action-setfield $tiddler=&quot;&quot;&quot;$:/temp/RemoteAssetSearch/$(currentTiddler)$&quot;&quot;&quot; $field=&quot;text&quot; $value=&quot;&quot;/&gt;
{{$:/core/images/close-button}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;div class=&quot;tc-plugin-library-listing&quot;&gt;
&lt;$list filter=&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]search:author,description,original-title,readme,title{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[title]]&quot; variable=&quot;assetInfo&quot;&gt;
&lt;$list filter=&quot;[[$:/temp/RemoteAssetSearch/$(currentTiddler)$]has[text]] ~[&lt;assetInfo&gt;!has[parent-plugin]]&quot; variable=&quot;ignore&quot;&gt;&lt;!-- Hide sub-plugins if we're not searching --&gt;
&lt;&lt;display-plugin-info &quot;$type$&quot;&gt;&gt;
&lt;/$list&gt;
&lt;/$list&gt;
&lt;/div&gt;
\end
\define display-server-connection()
&lt;$list filter=&quot;[all[tiddlers+shadows]tag[$:/tags/ServerConnection]suffix{!!url}]&quot; variable=&quot;connectionTiddler&quot; emptyMessage=&lt;&lt;load-plugin-library-button&gt;&gt;&gt;
&lt;$set name=&quot;transclusion&quot; value=&lt;&lt;connectionTiddler&gt;&gt;&gt;
&lt;&lt;tabs &quot;[[$:/core/ui/ControlPanel/Plugins/Add/Updates]] [[$:/core/ui/ControlPanel/Plugins/Add/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Add/Themes]] [[$:/core/ui/ControlPanel/Plugins/Add/Languages]]&quot; &quot;$:/core/ui/ControlPanel/Plugins/Add/Plugins&quot;&gt;&gt;
&lt;/$set&gt;
&lt;/$list&gt;
\end
\define close-library-button()
&lt;$reveal type='nomatch' state='$:/temp/ServerConnection/$(PluginLibraryURL)$' text=''&gt;
&lt;$button class='tc-btn-big-green'&gt;
&lt;$action-sendmessage $message=&quot;tm-unload-plugin-library&quot; url={{!!url}}/&gt;
{{$:/core/images/chevron-left}} {{$:/language/ControlPanel/Plugins/ClosePluginLibrary}}
&lt;$action-deletetiddler $filter=&quot;[prefix[$:/temp/ServerConnection/$(PluginLibraryURL)$]][prefix[$:/temp/RemoteAssetInfo/$(PluginLibraryURL)$]]&quot;/&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
\end
\define plugin-library-listing()
&lt;div class=&quot;tc-tab-set&quot;&gt;
&lt;$set name=&quot;defaultTab&quot; value={{{ [all[tiddlers+shadows]tag[$:/tags/PluginLibrary]] }}}&gt;
&lt;div class=&quot;tc-tab-buttons&quot;&gt;
&lt;$list filter=&quot;[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]&quot;&gt;
&lt;$button set=&lt;&lt;qualify &quot;$:/state/addplugins/tab&quot;&gt;&gt; setTo=&lt;&lt;currentTiddler&gt;&gt; default=&lt;&lt;defaultTab&gt;&gt; selectedClass=&quot;tc-tab-selected&quot;&gt;
&lt;$set name=&quot;tv-wikilinks&quot; value=&quot;no&quot;&gt;
&lt;$transclude field=&quot;caption&quot;/&gt;
&lt;/$set&gt;
&lt;/$button&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-tab-divider&quot;/&gt;
&lt;div class=&quot;tc-tab-content&quot;&gt;
&lt;$list filter=&quot;[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]&quot;&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;qualify &quot;$:/state/addplugins/tab&quot;&gt;&gt; text=&lt;&lt;currentTiddler&gt;&gt; default=&lt;&lt;defaultTab&gt;&gt;&gt;
&lt;h2&gt;&lt;$link&gt;&lt;$transclude field=&quot;caption&quot;&gt;&lt;$view field=&quot;title&quot;/&gt;&lt;/$transclude&gt;&lt;/$link&gt;&lt;/h2&gt;
//&lt;$view field=&quot;url&quot;/&gt;//
&lt;$transclude mode=&quot;block&quot;/&gt;
&lt;$set name=PluginLibraryURL value={{!!url}}&gt;
&lt;&lt;close-library-button&gt;&gt;
&lt;/$set&gt;
&lt;&lt;display-server-connection&gt;&gt;
&lt;/$reveal&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$set&gt;
&lt;/div&gt;
\end
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
&lt;div&gt;
&lt;&lt;plugin-library-listing&gt;&gt;
&lt;/div&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Palette/Caption}}" tags="$:/tags/ControlPanel/Appearance" title="$:/core/ui/ControlPanel/Palette">
<pre>\define lingo-base() $:/language/ControlPanel/Palette/
{{$:/snippets/paletteswitcher}}
&lt;$reveal type=&quot;nomatch&quot; state=&quot;$:/state/ShowPaletteEditor&quot; text=&quot;yes&quot;&gt;
&lt;$button set=&quot;$:/state/ShowPaletteEditor&quot; setTo=&quot;yes&quot;&gt;&lt;&lt;lingo ShowEditor/Caption&gt;&gt;&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&quot;$:/state/ShowPaletteEditor&quot; text=&quot;yes&quot;&gt;
&lt;$button set=&quot;$:/state/ShowPaletteEditor&quot; setTo=&quot;no&quot;&gt;&lt;&lt;lingo HideEditor/Caption&gt;&gt;&lt;/$button&gt;
{{$:/PaletteManager}}
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Parsing/Caption}}" tags="$:/tags/ControlPanel/Advanced" title="$:/core/ui/ControlPanel/Parsing">
<pre>\define lingo-base() $:/language/ControlPanel/Parsing/
\define toggle(Type)
&lt;$checkbox
tiddler=&quot;&quot;&quot;$:/config/WikiParserRules/$Type$/$(rule)$&quot;&quot;&quot;
field=&quot;text&quot;
checked=&quot;enable&quot;
unchecked=&quot;disable&quot;
default=&quot;enable&quot;&gt;
&lt;&lt;rule&gt;&gt;
&lt;/$checkbox&gt;
\end
\define rules(type,Type)
&lt;$list filter=&quot;[wikiparserrules[$type$]]&quot; variable=&quot;rule&quot;&gt;
&lt;dd&gt;&lt;&lt;toggle $Type$&gt;&gt;&lt;/dd&gt;
&lt;/$list&gt;
\end
&lt;&lt;lingo Hint&gt;&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;&lt;lingo Pragma/Caption&gt;&gt;&lt;/dt&gt;
&lt;&lt;rules pragma Pragma&gt;&gt;
&lt;dt&gt;&lt;&lt;lingo Inline/Caption&gt;&gt;&lt;/dt&gt;
&lt;&lt;rules inline Inline&gt;&gt;
&lt;dt&gt;&lt;&lt;lingo Block/Caption&gt;&gt;&lt;/dt&gt;
&lt;&lt;rules block Block&gt;&gt;
&lt;/dl&gt;</pre>
</div>
<div caption="{{$:/language/ControlPanel/Plugins/Caption}}" tags="$:/tags/ControlPanel" title="$:/core/ui/ControlPanel/Plugins">
<pre>\define lingo-base() $:/language/ControlPanel/Plugins/
\define plugin-table(type)
&lt;$set name=&quot;plugin-type&quot; value=&quot;&quot;&quot;$type$&quot;&quot;&quot;&gt;
&lt;$set name=&quot;qualified-state&quot; value=&lt;&lt;qualify &quot;$:/state/plugin-info&quot;&gt;&gt;&gt;
&lt;$list filter=&quot;[!has[draft.of]plugin-type[$type$]sort[title]]&quot; emptyMessage=&lt;&lt;lingo &quot;Empty/Hint&quot;&gt;&gt; template=&quot;$:/core/ui/Components/plugin-info&quot;/&gt;
&lt;/$set&gt;
&lt;/$set&gt;
\end
{{$:/core/ui/ControlPanel/Plugins/AddPlugins}}
&lt;&lt;lingo Installed/Hint&gt;&gt;
&lt;&lt;tabs &quot;[[$:/core/ui/ControlPanel/Plugins/Installed/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Installed/Themes]] [[$:/core/ui/ControlPanel/Plugins/Installed/Languages]]&quot; &quot;$:/core/ui/ControlPanel/Plugins/Installed/Plugins&quot;&gt;&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Plugins/Languages/Caption}} (&lt;$count filter=&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[language]]&quot;/&gt;)" title="$:/core/ui/ControlPanel/Plugins/Add/Languages">
<pre>&lt;&lt;display-server-assets language&gt;&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (&lt;$count filter=&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[plugin]]&quot;/&gt;)" title="$:/core/ui/ControlPanel/Plugins/Add/Plugins">
<pre>&lt;&lt;display-server-assets plugin&gt;&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Plugins/Themes/Caption}} (&lt;$count filter=&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[theme]]&quot;/&gt;)" title="$:/core/ui/ControlPanel/Plugins/Add/Themes">
<pre>&lt;&lt;display-server-assets theme&gt;&gt;
</pre>
</div>
<div caption="&lt;$importvariables filter=&quot;$:/core/ui/ControlPanel/Plugins/Add/Updates&quot;&gt;{{$:/language/ControlPanel/Plugins/Updates/Caption}} (&lt;&lt;update-count&gt;&gt;)&lt;/$importvariables&gt;" title="$:/core/ui/ControlPanel/Plugins/Add/Updates">
<pre>\define each-updateable-plugin(body)
&lt;$list filter=&quot;[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}sort[title]]&quot; variable=&quot;assetInfo&quot;&gt;
&lt;$set name=&quot;libraryVersion&quot; value={{{ [&lt;assetInfo&gt;get[version]] }}}&gt;
&lt;$list filter=&quot;[&lt;assetInfo&gt;get[original-title]has[version]!version&lt;libraryVersion&gt;]&quot; variable=&quot;ignore&quot;&gt;
&lt;$set name=&quot;installedVersion&quot; value={{{ [&lt;assetInfo&gt;get[original-title]get[version]] }}}&gt;
&lt;$list filter=&quot;[&lt;installedversion&gt;!match&lt;libraryVersion&gt;]&quot; variable=&quot;ignore&quot;&gt;
$body$
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$list&gt;
\end
\define update-all-actions()
&lt;$macrocall $name=&quot;each-updateable-plugin&quot; body=&quot;&quot;&quot;
&lt;&lt;install-plugin-actions&gt;&gt;
&quot;&quot;&quot;/&gt;
\end
\define update-count()
&lt;$wikify name=&quot;count-filter&quot; text=&lt;&lt;each-updateable-plugin &quot;&amp;#91;&amp;#91;&lt;$text text=&lt;&lt;assetInfo&gt;&gt;/&gt;]]&quot;&gt;&gt;&gt;&lt;$count filter=&lt;&lt;count-filter&gt;&gt;/&gt;&lt;/$wikify&gt;
\end
&lt;$button actions=&lt;&lt;update-all-actions&gt;&gt; class=&quot;tc-btn-invisible tc-install-plugin tc-reinstall-upgrade&quot;&gt;
{{$:/core/images/download-button}} {{||$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption}}
&lt;/$button&gt;
&lt;div class=&quot;tc-plugin-library-listing&quot;&gt;
&lt;$macrocall $name=&quot;each-updateable-plugin&quot; body=&quot;&quot;&quot;
&lt;$macrocall $name=&quot;display-plugin-info&quot; type={{{ [&lt;assetInfo&gt;get[original-plugin-type]] }}}/&gt;
&quot;&quot;&quot;/&gt;
&lt;/div&gt;
</pre>
</div>
<div title="$:/core/ui/ControlPanel/Plugins/AddPlugins">
<pre>\define lingo-base() $:/language/ControlPanel/Plugins/
&lt;$button message=&quot;tm-modal&quot; param=&quot;$:/core/ui/ControlPanel/Modals/AddPlugins&quot; tooltip={{$:/language/ControlPanel/Plugins/Add/Hint}} class=&quot;tc-btn-big-green tc-primary-btn&quot;&gt;
{{$:/core/images/download-button}} &lt;&lt;lingo Add/Caption&gt;&gt;
&lt;/$button&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Plugins/Languages/Caption}} (&lt;$count filter=&quot;[!has[draft.of]plugin-type[language]]&quot;/&gt;)" title="$:/core/ui/ControlPanel/Plugins/Installed/Languages">
<pre>&lt;&lt;plugin-table language&gt;&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (&lt;$count filter=&quot;[!has[draft.of]plugin-type[plugin]]&quot;/&gt;)" title="$:/core/ui/ControlPanel/Plugins/Installed/Plugins">
<pre>&lt;&lt;plugin-table plugin&gt;&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Plugins/Themes/Caption}} (&lt;$count filter=&quot;[!has[draft.of]plugin-type[theme]]&quot;/&gt;)" title="$:/core/ui/ControlPanel/Plugins/Installed/Themes">
<pre>&lt;&lt;plugin-table theme&gt;&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Saving/Caption}}" tags="$:/tags/ControlPanel" title="$:/core/ui/ControlPanel/Saving">
<pre>{{$:/language/ControlPanel/Saving/Hint}}
&lt;div class=&quot;tc-control-panel&quot;&gt;
&lt;&lt;tabs &quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Saving]!has[draft.of]]&quot; &quot;$:/core/ui/ControlPanel/Saving/General&quot;&gt;&gt;
&lt;/div&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Saving/DownloadSaver/Caption}}" tags="$:/tags/ControlPanel/Saving" title="$:/core/ui/ControlPanel/Saving/DownloadSaver">
<pre>\define lingo-base() $:/language/ControlPanel/Saving/DownloadSaver/
&lt;&lt;lingo Hint&gt;&gt;
!! &lt;$link to=&quot;$:/config/DownloadSaver/AutoSave&quot;&gt;&lt;&lt;lingo AutoSave/Hint&gt;&gt;&lt;/$link&gt;
&lt;$checkbox tiddler=&quot;$:/config/DownloadSaver/AutoSave&quot; field=&quot;text&quot; checked=&quot;yes&quot; unchecked=&quot;no&quot; default=&quot;no&quot;&gt; &lt;&lt;lingo AutoSave/Description&gt;&gt; &lt;/$checkbox&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Saving/General/Caption}}" list-before="" tags="$:/tags/ControlPanel/Saving" title="$:/core/ui/ControlPanel/Saving/General">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/
{{$:/language/ControlPanel/Saving/General/Hint}}
!! &lt;$link to=&quot;$:/config/AutoSave&quot;&gt;&lt;&lt;lingo AutoSave/Caption&gt;&gt;&lt;/$link&gt;
&lt;&lt;lingo AutoSave/Hint&gt;&gt;
&lt;$radio tiddler=&quot;$:/config/AutoSave&quot; value=&quot;yes&quot;&gt; &lt;&lt;lingo AutoSave/Enabled/Description&gt;&gt; &lt;/$radio&gt;
&lt;$radio tiddler=&quot;$:/config/AutoSave&quot; value=&quot;no&quot;&gt; &lt;&lt;lingo AutoSave/Disabled/Description&gt;&gt; &lt;/$radio&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Saving/GitService/Gitea/Caption}}" tags="$:/tags/ControlPanel/Saving" title="$:/core/ui/ControlPanel/Saving/Gitea">
<pre>\define lingo-base() $:/language/ControlPanel/Saving/GitService/
\define service-name() ~Gitea
&lt;&lt;lingo Description&gt;&gt;
|&lt;&lt;lingo UserName&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/Gitea/Username&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Gitea/Password&gt;&gt; |&lt;$password name=&quot;Gitea&quot;/&gt; |
|&lt;&lt;lingo Repo&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/Gitea/Repo&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Branch&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/Gitea/Branch&quot; default=&quot;master&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Path&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/Gitea/Path&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Filename&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/Gitea/Filename&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo ServerURL&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/Gitea/ServerURL&quot; default=&quot;https://gitea/api/v1&quot; tag=&quot;input&quot;/&gt; |
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Saving/GitService/GitHub/Caption}}" tags="$:/tags/ControlPanel/Saving" title="$:/core/ui/ControlPanel/Saving/GitHub">
<pre>\define lingo-base() $:/language/ControlPanel/Saving/GitService/
\define service-name() ~GitHub
&lt;&lt;lingo Description&gt;&gt;
|&lt;&lt;lingo UserName&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitHub/Username&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo GitHub/Password&gt;&gt; |&lt;$password name=&quot;github&quot;/&gt; |
|&lt;&lt;lingo Repo&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitHub/Repo&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Branch&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitHub/Branch&quot; default=&quot;master&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Path&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitHub/Path&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Filename&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitHub/Filename&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo ServerURL&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitHub/ServerURL&quot; default=&quot;https://api.github.com&quot; tag=&quot;input&quot;/&gt; |</pre>
</div>
<div caption="{{$:/language/ControlPanel/Saving/GitService/GitLab/Caption}}" tags="$:/tags/ControlPanel/Saving" title="$:/core/ui/ControlPanel/Saving/GitLab">
<pre>\define lingo-base() $:/language/ControlPanel/Saving/GitService/
\define service-name() ~GitLab
&lt;&lt;lingo Description&gt;&gt;
|&lt;&lt;lingo UserName&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitLab/Username&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo GitLab/Password&gt;&gt; |&lt;$password name=&quot;gitlab&quot;/&gt; |
|&lt;&lt;lingo Repo&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitLab/Repo&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Branch&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitLab/Branch&quot; default=&quot;master&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Path&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitLab/Path&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Filename&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitLab/Filename&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo ServerURL&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/GitLab/ServerURL&quot; default=&quot;https://gitlab.com/api/v4&quot; tag=&quot;input&quot;/&gt; |</pre>
</div>
<div caption="{{$:/language/ControlPanel/Saving/TiddlySpot/Caption}}" tags="$:/tags/ControlPanel/Saving" title="$:/core/ui/ControlPanel/Saving/TiddlySpot">
<pre>\define lingo-base() $:/language/ControlPanel/Saving/TiddlySpot/
\define backupURL()
http://$(userName)$.tiddlyspot.com/backup/
\end
\define backupLink()
&lt;$reveal type=&quot;nomatch&quot; state=&quot;$:/UploadName&quot; text=&quot;&quot;&gt;
&lt;$set name=&quot;userName&quot; value={{$:/UploadName}}&gt;
&lt;$reveal type=&quot;match&quot; state=&quot;$:/UploadURL&quot; text=&quot;&quot;&gt;
&lt;&lt;backupURL&gt;&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&quot;$:/UploadURL&quot; text=&quot;&quot;&gt;
&lt;$macrocall $name=resolvePath source={{$:/UploadBackupDir}} root={{$:/UploadURL}}&gt;&gt;
&lt;/$reveal&gt;
&lt;/$set&gt;
&lt;/$reveal&gt;
\end
&lt;&lt;lingo Description&gt;&gt;
|&lt;&lt;lingo UserName&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/UploadName&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Password&gt;&gt; |&lt;$password name=&quot;upload&quot;/&gt; |
|&lt;&lt;lingo Backups&gt;&gt; |&lt;&lt;backupLink&gt;&gt; |
''&lt;&lt;lingo Advanced/Heading&gt;&gt;''
|&lt;&lt;lingo ServerURL&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/UploadURL&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo Filename&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/UploadFilename&quot; default=&quot;index.html&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo UploadDir&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/UploadDir&quot; default=&quot;.&quot; tag=&quot;input&quot;/&gt; |
|&lt;&lt;lingo BackupDir&gt;&gt; |&lt;$edit-text tiddler=&quot;$:/UploadBackupDir&quot; default=&quot;.&quot; tag=&quot;input&quot;/&gt; |
&lt;&lt;lingo TiddlySpot/Hint&gt;&gt;</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/Caption}}" tags="$:/tags/ControlPanel" title="$:/core/ui/ControlPanel/Settings">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/
&lt;&lt;lingo Hint&gt;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]&quot;&gt;
&lt;div style=&quot;border-top:1px solid #eee;&quot;&gt;
!! &lt;$link&gt;&lt;$transclude field=&quot;caption&quot;/&gt;&lt;/$link&gt;
&lt;$transclude/&gt;
&lt;/div&gt;
&lt;/$list&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/CamelCase/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/CamelCase">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/CamelCase/
&lt;&lt;lingo Hint&gt;&gt;
&lt;$checkbox tiddler=&quot;$:/config/WikiParserRules/Inline/wikilink&quot; field=&quot;text&quot; checked=&quot;enable&quot; unchecked=&quot;disable&quot; default=&quot;enable&quot;&gt; &lt;$link to=&quot;$:/config/WikiParserRules/Inline/wikilink&quot;&gt;&lt;&lt;lingo Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/DefaultMoreSidebarTab/
&lt;$link to=&quot;$:/config/DefaultMoreSidebarTab&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;
&lt;$select tiddler=&quot;$:/config/DefaultMoreSidebarTab&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]&quot;&gt;
&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;$transclude field=&quot;caption&quot;&gt;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;&lt;/$transclude&gt;&lt;/option&gt;
&lt;/$list&gt;
&lt;/$select&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/DefaultSidebarTab">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/DefaultSidebarTab/
&lt;$link to=&quot;$:/config/DefaultSidebarTab&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;
&lt;$select tiddler=&quot;$:/config/DefaultSidebarTab&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]&quot;&gt;
&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;$transclude field=&quot;caption&quot;&gt;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;&lt;/$transclude&gt;&lt;/option&gt;
&lt;/$list&gt;
&lt;/$select&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/EditorToolbar/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/EditorToolbar">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/EditorToolbar/
&lt;&lt;lingo Hint&gt;&gt;
&lt;$checkbox tiddler=&quot;$:/config/TextEditor/EnableToolbar&quot; field=&quot;text&quot; checked=&quot;yes&quot; unchecked=&quot;no&quot; default=&quot;yes&quot;&gt; &lt;$link to=&quot;$:/config/TextEditor/EnableToolbar&quot;&gt;&lt;&lt;lingo Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/InfoPanelMode/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/InfoPanelMode">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/InfoPanelMode/
&lt;$link to=&quot;$:/config/TiddlerInfo/Mode&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;
&lt;$radio tiddler=&quot;$:/config/TiddlerInfo/Mode&quot; value=&quot;popup&quot;&gt; &lt;&lt;lingo Popup/Description&gt;&gt; &lt;/$radio&gt;
&lt;$radio tiddler=&quot;$:/config/TiddlerInfo/Mode&quot; value=&quot;sticky&quot;&gt; &lt;&lt;lingo Sticky/Description&gt;&gt; &lt;/$radio&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/LinkToBehaviour/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/LinkToBehaviour">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/LinkToBehaviour/
&lt;$link to=&quot;$:/config/Navigation/openLinkFromInsideRiver&quot;&gt;&lt;&lt;lingo &quot;InsideRiver/Hint&quot;&gt;&gt;&lt;/$link&gt;
&lt;$select tiddler=&quot;$:/config/Navigation/openLinkFromInsideRiver&quot;&gt;
&lt;option value=&quot;above&quot;&gt;&lt;&lt;lingo &quot;OpenAbove&quot;&gt;&gt;&lt;/option&gt;
&lt;option value=&quot;below&quot;&gt;&lt;&lt;lingo &quot;OpenBelow&quot;&gt;&gt;&lt;/option&gt;
&lt;option value=&quot;top&quot;&gt;&lt;&lt;lingo &quot;OpenAtTop&quot;&gt;&gt;&lt;/option&gt;
&lt;option value=&quot;bottom&quot;&gt;&lt;&lt;lingo &quot;OpenAtBottom&quot;&gt;&gt;&lt;/option&gt;
&lt;/$select&gt;
&lt;$link to=&quot;$:/config/Navigation/openLinkFromOutsideRiver&quot;&gt;&lt;&lt;lingo &quot;OutsideRiver/Hint&quot;&gt;&gt;&lt;/$link&gt;
&lt;$select tiddler=&quot;$:/config/Navigation/openLinkFromOutsideRiver&quot;&gt;
&lt;option value=&quot;top&quot;&gt;&lt;&lt;lingo &quot;OpenAtTop&quot;&gt;&gt;&lt;/option&gt;
&lt;option value=&quot;bottom&quot;&gt;&lt;&lt;lingo &quot;OpenAtBottom&quot;&gt;&gt;&lt;/option&gt;
&lt;/$select&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/MissingLinks/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/MissingLinks">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/MissingLinks/
&lt;&lt;lingo Hint&gt;&gt;
&lt;$checkbox tiddler=&quot;$:/config/MissingLinks&quot; field=&quot;text&quot; checked=&quot;yes&quot; unchecked=&quot;no&quot; default=&quot;yes&quot;&gt; &lt;$link to=&quot;$:/config/MissingLinks&quot;&gt;&lt;&lt;lingo Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/NavigationAddressBar/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/NavigationAddressBar">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/NavigationAddressBar/
&lt;$link to=&quot;$:/config/Navigation/UpdateAddressBar&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;
&lt;$radio tiddler=&quot;$:/config/Navigation/UpdateAddressBar&quot; value=&quot;permaview&quot;&gt; &lt;&lt;lingo Permaview/Description&gt;&gt; &lt;/$radio&gt;
&lt;$radio tiddler=&quot;$:/config/Navigation/UpdateAddressBar&quot; value=&quot;permalink&quot;&gt; &lt;&lt;lingo Permalink/Description&gt;&gt; &lt;/$radio&gt;
&lt;$radio tiddler=&quot;$:/config/Navigation/UpdateAddressBar&quot; value=&quot;no&quot;&gt; &lt;&lt;lingo No/Description&gt;&gt; &lt;/$radio&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/NavigationHistory/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/NavigationHistory">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/NavigationHistory/
&lt;$link to=&quot;$:/config/Navigation/UpdateHistory&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;
&lt;$radio tiddler=&quot;$:/config/Navigation/UpdateHistory&quot; value=&quot;yes&quot;&gt; &lt;&lt;lingo Yes/Description&gt;&gt; &lt;/$radio&gt;
&lt;$radio tiddler=&quot;$:/config/Navigation/UpdateHistory&quot; value=&quot;no&quot;&gt; &lt;&lt;lingo No/Description&gt;&gt; &lt;/$radio&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/NavigationPermalinkviewMode/
&lt;&lt;lingo Hint&gt;&gt;
&lt;$checkbox tiddler=&quot;$:/config/Navigation/Permalinkview/CopyToClipboard&quot; field=&quot;text&quot; checked=&quot;yes&quot; unchecked=&quot;no&quot; default=&quot;yes&quot;&gt; &lt;$link to=&quot;$:/config/Navigation/Permalinkview/CopyToClipboard&quot;&gt;&lt;&lt;lingo CopyToClipboard/Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;
&lt;$checkbox tiddler=&quot;$:/config/Navigation/Permalinkview/UpdateAddressBar&quot; field=&quot;text&quot; checked=&quot;yes&quot; unchecked=&quot;no&quot; default=&quot;yes&quot;&gt; &lt;$link to=&quot;$:/config/Navigation/Permalinkview/UpdateAddressBar&quot;&gt;&lt;&lt;lingo UpdateAddressBar/Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/PerformanceInstrumentation">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/PerformanceInstrumentation/
&lt;&lt;lingo Hint&gt;&gt;
&lt;$checkbox tiddler=&quot;$:/config/Performance/Instrumentation&quot; field=&quot;text&quot; checked=&quot;yes&quot; unchecked=&quot;no&quot; default=&quot;no&quot;&gt; &lt;$link to=&quot;$:/config/Performance/Instrumentation&quot;&gt;&lt;&lt;lingo Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/TitleLinks/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/TitleLinks">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/TitleLinks/
&lt;$link to=&quot;$:/config/Tiddlers/TitleLinks&quot;&gt;&lt;&lt;lingo Hint&gt;&gt;&lt;/$link&gt;
&lt;$radio tiddler=&quot;$:/config/Tiddlers/TitleLinks&quot; value=&quot;yes&quot;&gt; &lt;&lt;lingo Yes/Description&gt;&gt; &lt;/$radio&gt;
&lt;$radio tiddler=&quot;$:/config/Tiddlers/TitleLinks&quot; value=&quot;no&quot;&gt; &lt;&lt;lingo No/Description&gt;&gt; &lt;/$radio&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/ToolbarButtons/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/ToolbarButtons">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtons/
&lt;&lt;lingo Hint&gt;&gt;
&lt;$checkbox tiddler=&quot;$:/config/Toolbar/Icons&quot; field=&quot;text&quot; checked=&quot;yes&quot; unchecked=&quot;no&quot; default=&quot;yes&quot;&gt; &lt;$link to=&quot;$:/config/Toolbar/Icons&quot;&gt;&lt;&lt;lingo Icons/Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;
&lt;$checkbox tiddler=&quot;$:/config/Toolbar/Text&quot; field=&quot;text&quot; checked=&quot;yes&quot; unchecked=&quot;no&quot; default=&quot;no&quot;&gt; &lt;$link to=&quot;$:/config/Toolbar/Text&quot;&gt;&lt;&lt;lingo Text/Description&gt;&gt;&lt;/$link&gt; &lt;/$checkbox&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption}}" tags="$:/tags/ControlPanel/Settings" title="$:/core/ui/ControlPanel/Settings/ToolbarButtonStyle">
<pre>\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtonStyle/
&lt;$link to=&quot;$:/config/Toolbar/ButtonClass&quot;&gt;&lt;&lt;lingo &quot;Hint&quot;&gt;&gt;&lt;/$link&gt;
&lt;$select tiddler=&quot;$:/config/Toolbar/ButtonClass&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/ToolbarButtonStyle]]&quot;&gt;
&lt;option value={{!!text}}&gt;{{!!caption}}&lt;/option&gt;
&lt;/$list&gt;
&lt;/$select&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/StoryView/Caption}}" tags="$:/tags/ControlPanel/Appearance" title="$:/core/ui/ControlPanel/StoryView">
<pre>{{$:/snippets/viewswitcher}}
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Stylesheets/Caption}}" tags="$:/tags/ControlPanel/Advanced" title="$:/core/ui/ControlPanel/Stylesheets">
<pre>\define lingo-base() $:/language/ControlPanel/
&lt;&lt;lingo Stylesheets/Hint&gt;&gt;
{{$:/snippets/peek-stylesheets}}
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Theme/Caption}}" tags="$:/tags/ControlPanel/Appearance" title="$:/core/ui/ControlPanel/Theme">
<pre>{{$:/snippets/themeswitcher}}
</pre>
</div>
<div caption="{{$:/language/ControlPanel/TiddlerFields/Caption}}" tags="$:/tags/ControlPanel/Advanced" title="$:/core/ui/ControlPanel/TiddlerFields">
<pre>\define lingo-base() $:/language/ControlPanel/
&lt;&lt;lingo TiddlerFields/Hint&gt;&gt;
{{$:/snippets/allfields}}</pre>
</div>
<div caption="{{$:/language/ControlPanel/Toolbars/Caption}}" tags="$:/tags/ControlPanel/Appearance" title="$:/core/ui/ControlPanel/Toolbars">
<pre>{{$:/language/ControlPanel/Toolbars/Hint}}
&lt;div class=&quot;tc-control-panel&quot;&gt;
&lt;&lt;tabs &quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Toolbars]!has[draft.of]]&quot; &quot;$:/core/ui/ControlPanel/Toolbars/ViewToolbar&quot; &quot;$:/state/tabs/controlpanel/toolbars&quot; &quot;tc-vertical&quot;&gt;&gt;
&lt;/div&gt;
</pre>
</div>
<div title="$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate">
<pre>\define config-title()
$(config-base)$$(currentTiddler)$
\end
&lt;$draggable tiddler=&lt;&lt;currentTiddler&gt;&gt;&gt;
&lt;$checkbox tiddler=&lt;&lt;config-title&gt;&gt; field=&quot;text&quot; checked=&quot;show&quot; unchecked=&quot;hide&quot; default=&quot;show&quot;/&gt; &lt;span class=&quot;tc-icon-wrapper&quot;&gt;&lt;$transclude tiddler={{!!icon}}/&gt;&lt;/span&gt; &lt;$transclude field=&quot;caption&quot;/&gt; -- &lt;i class=&quot;tc-muted&quot;&gt;&lt;$transclude field=&quot;description&quot;/&gt;&lt;/i&gt;
&lt;/$draggable&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Toolbars/EditorToolbar/Caption}}" tags="$:/tags/ControlPanel/Toolbars" title="$:/core/ui/ControlPanel/Toolbars/EditorToolbar">
<pre>\define lingo-base() $:/language/TiddlerInfo/
\define config-base() $:/config/EditorToolbarButtons/Visibility/
{{$:/language/ControlPanel/Toolbars/EditorToolbar/Hint}}
&lt;$macrocall $name=&quot;list-tagged-draggable&quot; tag=&quot;$:/tags/EditorToolbar&quot; itemTemplate=&quot;$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Toolbars/EditToolbar/Caption}}" tags="$:/tags/ControlPanel/Toolbars" title="$:/core/ui/ControlPanel/Toolbars/EditToolbar">
<pre>\define lingo-base() $:/language/TiddlerInfo/
\define config-base() $:/config/EditToolbarButtons/Visibility/
{{$:/language/ControlPanel/Toolbars/EditToolbar/Hint}}
&lt;$set name=&quot;tv-config-toolbar-icons&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-text&quot; value=&quot;yes&quot;&gt;
&lt;$macrocall $name=&quot;list-tagged-draggable&quot; tag=&quot;$:/tags/EditToolbar&quot; itemTemplate=&quot;$:/core/ui/ControlPanel/Toolbars/ItemTemplate&quot;/&gt;
&lt;/$set&gt;
&lt;/$set&gt;</pre>
</div>
<div title="$:/core/ui/ControlPanel/Toolbars/ItemTemplate">
<pre>\define config-title()
$(config-base)$$(currentTiddler)$
\end
&lt;$draggable tiddler=&lt;&lt;currentTiddler&gt;&gt;&gt;
&lt;$checkbox tiddler=&lt;&lt;config-title&gt;&gt; field=&quot;text&quot; checked=&quot;show&quot; unchecked=&quot;hide&quot; default=&quot;show&quot;/&gt; &lt;span class=&quot;tc-icon-wrapper&quot;&gt; &lt;$transclude field=&quot;caption&quot;/&gt; &lt;i class=&quot;tc-muted&quot;&gt;-- &lt;$transclude field=&quot;description&quot;/&gt;&lt;/i&gt;&lt;/span&gt;
&lt;/$draggable&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Toolbars/PageControls/Caption}}" tags="$:/tags/ControlPanel/Toolbars" title="$:/core/ui/ControlPanel/Toolbars/PageControls">
<pre>\define lingo-base() $:/language/TiddlerInfo/
\define config-base() $:/config/PageControlButtons/Visibility/
{{$:/language/ControlPanel/Toolbars/PageControls/Hint}}
&lt;$set name=&quot;tv-config-toolbar-icons&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-text&quot; value=&quot;yes&quot;&gt;
&lt;$macrocall $name=&quot;list-tagged-draggable&quot; tag=&quot;$:/tags/PageControls&quot; itemTemplate=&quot;$:/core/ui/ControlPanel/Toolbars/ItemTemplate&quot;/&gt;
&lt;/$set&gt;
&lt;/$set&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Toolbars/ViewToolbar/Caption}}" tags="$:/tags/ControlPanel/Toolbars" title="$:/core/ui/ControlPanel/Toolbars/ViewToolbar">
<pre>\define lingo-base() $:/language/TiddlerInfo/
\define config-base() $:/config/ViewToolbarButtons/Visibility/
{{$:/language/ControlPanel/Toolbars/ViewToolbar/Hint}}
&lt;$set name=&quot;tv-config-toolbar-icons&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-text&quot; value=&quot;yes&quot;&gt;
&lt;$macrocall $name=&quot;list-tagged-draggable&quot; tag=&quot;$:/tags/ViewToolbar&quot; itemTemplate=&quot;$:/core/ui/ControlPanel/Toolbars/ItemTemplate&quot;/&gt;
&lt;/$set&gt;
&lt;/$set&gt;
</pre>
</div>
<div caption="{{$:/language/Search/DefaultResults/Caption}}" tags="$:/tags/SearchResults" title="$:/core/ui/DefaultSearchResultList">
<pre>\define searchResultList()
//&lt;small&gt;{{$:/language/Search/Matches/Title}}&lt;/small&gt;//
&lt;$list filter=&quot;[!is[system]search:title{$(searchTiddler)$}sort[title]limit[250]]&quot; template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
//&lt;small&gt;{{$:/language/Search/Matches/All}}&lt;/small&gt;//
&lt;$list filter=&quot;[!is[system]search{$(searchTiddler)$}sort[title]limit[250]]&quot; template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
\end
&lt;&lt;searchResultList&gt;&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Bold/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Bold/Hint}}" icon="$:/core/images/bold" shortcuts="((bold))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/bold">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-selection&quot;
prefix=&quot;''&quot;
suffix=&quot;''&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Clear/Caption}}" condition="[&lt;targetTiddler&gt;is[image]]" description="{{$:/language/Buttons/Clear/Hint}}" dropdown="$:/core/ui/EditorToolbar/clear-dropdown" icon="$:/core/images/erase" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/clear">
<pre></pre>
</div>
<div title="$:/core/ui/EditorToolbar/clear-dropdown">
<pre>''{{$:/language/Buttons/Clear/Hint}}''
&lt;div class=&quot;tc-colour-chooser&quot;&gt;
&lt;$macrocall $name=&quot;colour-picker&quot; actions=&quot;&quot;&quot;
&lt;$action-sendmessage
$message=&quot;tm-edit-bitmap-operation&quot;
$param=&quot;clear&quot;
colour=&lt;&lt;colour-picker-value&gt;&gt;
/&gt;
&lt;$action-deletetiddler
$tiddler=&lt;&lt;dropdown-state&gt;&gt;
/&gt;
&quot;&quot;&quot;/&gt;
&lt;/div&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/EditorHeight/Caption}}" condition="[&lt;targetTiddler&gt;type[]] [&lt;targetTiddler&gt;get[type]prefix[text/]] +[first[]]" custom-icon="yes" description="{{$:/language/Buttons/EditorHeight/Hint}}" dropdown="$:/core/ui/EditorToolbar/editor-height-dropdown" icon="$:/core/images/fixed-height" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/editor-height">
<pre>&lt;$reveal tag=&quot;span&quot; state=&quot;$:/config/TextEditor/EditorHeight/Mode&quot; type=&quot;match&quot; text=&quot;fixed&quot;&gt;
{{$:/core/images/fixed-height}}
&lt;/$reveal&gt;
&lt;$reveal tag=&quot;span&quot; state=&quot;$:/config/TextEditor/EditorHeight/Mode&quot; type=&quot;match&quot; text=&quot;auto&quot;&gt;
{{$:/core/images/auto-height}}
&lt;/$reveal&gt;
</pre>
</div>
<div title="$:/core/ui/EditorToolbar/editor-height-dropdown">
<pre>\define lingo-base() $:/language/Buttons/EditorHeight/
''&lt;&lt;lingo Hint&gt;&gt;''
&lt;$radio tiddler=&quot;$:/config/TextEditor/EditorHeight/Mode&quot; value=&quot;auto&quot;&gt; {{$:/core/images/auto-height}} &lt;&lt;lingo Caption/Auto&gt;&gt;&lt;/$radio&gt;
&lt;$radio tiddler=&quot;$:/config/TextEditor/EditorHeight/Mode&quot; value=&quot;fixed&quot;&gt; {{$:/core/images/fixed-height}} &lt;&lt;lingo Caption/Fixed&gt;&gt; &lt;$edit-text tag=&quot;input&quot; tiddler=&quot;$:/config/TextEditor/EditorHeight/Height&quot; default=&quot;100px&quot;/&gt;&lt;/$radio&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Excise/Caption}}" condition="[&lt;targetTiddler&gt;type[]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]] +[first[]]" description="{{$:/language/Buttons/Excise/Hint}}" dropdown="$:/core/ui/EditorToolbar/excise-dropdown" icon="$:/core/images/excise" shortcuts="((excise))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/excise">
<pre></pre>
</div>
<div title="$:/core/ui/EditorToolbar/excise-dropdown">
<pre>\define lingo-base() $:/language/Buttons/Excise/
\define body(config-title)
''&lt;&lt;lingo Hint&gt;&gt;''
&lt;&lt;lingo Caption/NewTitle&gt;&gt; &lt;$edit-text tag=&quot;input&quot; tiddler=&quot;$config-title$/new-title&quot; default=&quot;&quot; focus=&quot;true&quot;/&gt;
&lt;$set name=&quot;new-title&quot; value={{$config-title$/new-title}}&gt;
&lt;$list filter=&quot;&quot;&quot;[&lt;new-title&gt;is[tiddler]]&quot;&quot;&quot;&gt;
&lt;div class=&quot;tc-error&quot;&gt;
&lt;&lt;lingo Caption/TiddlerExists&gt;&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;$checkbox tiddler=&quot;&quot;&quot;$config-title$/tagnew&quot;&quot;&quot; field=&quot;text&quot; checked=&quot;yes&quot; unchecked=&quot;no&quot; default=&quot;false&quot;&gt; &lt;&lt;lingo Caption/Tag&gt;&gt;&lt;/$checkbox&gt;
&lt;&lt;lingo Caption/Replace&gt;&gt; &lt;$select tiddler=&quot;&quot;&quot;$config-title$/type&quot;&quot;&quot; default=&quot;transclude&quot;&gt;
&lt;option value=&quot;link&quot;&gt;&lt;&lt;lingo Caption/Replace/Link&gt;&gt;&lt;/option&gt;
&lt;option value=&quot;transclude&quot;&gt;&lt;&lt;lingo Caption/Replace/Transclusion&gt;&gt;&lt;/option&gt;
&lt;option value=&quot;macro&quot;&gt;&lt;&lt;lingo Caption/Replace/Macro&gt;&gt;&lt;/option&gt;
&lt;/$select&gt;
&lt;$reveal state=&quot;&quot;&quot;$config-title$/type&quot;&quot;&quot; type=&quot;match&quot; text=&quot;macro&quot;&gt;
&lt;&lt;lingo Caption/MacroName&gt;&gt; &lt;$edit-text tag=&quot;input&quot; tiddler=&quot;&quot;&quot;$config-title$/macro-title&quot;&quot;&quot; default=&quot;translink&quot;/&gt;
&lt;/$reveal&gt;
&lt;$button&gt;
&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;excise&quot;
title={{$config-title$/new-title}}
type={{$config-title$/type}}
macro={{$config-title$/macro-title}}
tagnew={{$config-title$/tagnew}}
/&gt;
&lt;$action-deletetiddler
$tiddler=&quot;$config-title$/new-title&quot;
/&gt;
&lt;$action-deletetiddler
$tiddler=&lt;&lt;dropdown-state&gt;&gt;
/&gt;
&lt;&lt;lingo Caption/Excise&gt;&gt;
&lt;/$button&gt;
\end
&lt;$macrocall $name=&quot;body&quot; config-title=&lt;&lt;qualify &quot;$:/state/Excise/&quot;&gt;&gt;/&gt;
</pre>
</div>
<div button-classes="tc-text-editor-toolbar-item-start-group" caption="{{$:/language/Buttons/Heading1/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Heading1/Hint}}" icon="$:/core/images/heading-1" shortcuts="((heading-1))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/heading-1">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;prefix-lines&quot;
character=&quot;!&quot;
count=&quot;1&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Heading2/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Heading2/Hint}}" icon="$:/core/images/heading-2" shortcuts="((heading-2))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/heading-2">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;prefix-lines&quot;
character=&quot;!&quot;
count=&quot;2&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Heading3/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Heading3/Hint}}" icon="$:/core/images/heading-3" shortcuts="((heading-3))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/heading-3">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;prefix-lines&quot;
character=&quot;!&quot;
count=&quot;3&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Heading4/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Heading4/Hint}}" icon="$:/core/images/heading-4" shortcuts="((heading-4))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/heading-4">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;prefix-lines&quot;
character=&quot;!&quot;
count=&quot;4&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Heading5/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Heading5/Hint}}" icon="$:/core/images/heading-5" shortcuts="((heading-5))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/heading-5">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;prefix-lines&quot;
character=&quot;!&quot;
count=&quot;5&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Heading6/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Heading6/Hint}}" icon="$:/core/images/heading-6" shortcuts="((heading-6))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/heading-6">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;prefix-lines&quot;
character=&quot;!&quot;
count=&quot;6&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Italic/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Italic/Hint}}" icon="$:/core/images/italic" shortcuts="((italic))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/italic">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-selection&quot;
prefix=&quot;//&quot;
suffix=&quot;//&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/LineWidth/Caption}}" condition="[&lt;targetTiddler&gt;is[image]]" description="{{$:/language/Buttons/LineWidth/Hint}}" dropdown="$:/core/ui/EditorToolbar/line-width-dropdown" icon="$:/core/images/line-width" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/line-width">
<pre>&lt;$text text={{$:/config/BitmapEditor/LineWidth}}/&gt;</pre>
</div>
<div title="$:/core/ui/EditorToolbar/line-width-dropdown">
<pre>\define lingo-base() $:/language/Buttons/LineWidth/
\define toolbar-line-width-inner()
&lt;$button tag=&quot;a&quot; tooltip=&quot;&quot;&quot;$(line-width)$&quot;&quot;&quot;&gt;
&lt;$action-setfield
$tiddler=&quot;$:/config/BitmapEditor/LineWidth&quot;
$value=&quot;$(line-width)$&quot;
/&gt;
&lt;$action-deletetiddler
$tiddler=&lt;&lt;dropdown-state&gt;&gt;
/&gt;
&lt;div style=&quot;display: inline-block; margin: 4px calc(80px - $(line-width)$); background-color: #000; width: calc(100px + $(line-width)$ * 2); height: $(line-width)$; border-radius: 120px; vertical-align: middle;&quot;/&gt;
&lt;span style=&quot;margin-left: 8px;&quot;&gt;
&lt;$text text=&quot;&quot;&quot;$(line-width)$&quot;&quot;&quot;/&gt;
&lt;$reveal state=&quot;$:/config/BitmapEditor/LineWidth&quot; type=&quot;match&quot; text=&quot;&quot;&quot;$(line-width)$&quot;&quot;&quot; tag=&quot;span&quot;&gt;
&lt;$entity entity=&quot;&amp;nbsp;&quot;/&gt;
&lt;$entity entity=&quot;&amp;#x2713;&quot;/&gt;
&lt;/$reveal&gt;
&lt;/span&gt;
&lt;/$button&gt;
\end
''&lt;&lt;lingo Hint&gt;&gt;''
&lt;$list filter={{$:/config/BitmapEditor/LineWidths}} variable=&quot;line-width&quot;&gt;
&lt;&lt;toolbar-line-width-inner&gt;&gt;
&lt;/$list&gt;
</pre>
</div>
<div button-classes="tc-text-editor-toolbar-item-start-group" caption="{{$:/language/Buttons/Link/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Link/Hint}}" dropdown="$:/core/ui/EditorToolbar/link-dropdown" icon="$:/core/images/link" shortcuts="((link))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/link">
<pre></pre>
</div>
<div title="$:/core/ui/EditorToolbar/link-dropdown">
<pre>\define lingo-base() $:/language/Buttons/Link/
\define add-link-actions()
&lt;$action-sendmessage $message=&quot;tm-edit-text-operation&quot; $param=&quot;make-link&quot; text={{$(linkTiddler)$}} /&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;dropdown-state&gt;&gt; /&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;searchTiddler&gt;&gt; /&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;linkTiddler&gt;&gt; /&gt;
\end
\define external-link()
&lt;$button class=&quot;tc-btn-invisible&quot; style=&quot;width: auto; display: inline-block; background-colour: inherit;&quot; actions=&lt;&lt;add-link-actions&gt;&gt;&gt;
{{$:/core/images/chevron-right}}
&lt;/$button&gt;
\end
\define body(config-title)
''&lt;&lt;lingo Hint&gt;&gt;''
&lt;$vars searchTiddler=&quot;&quot;&quot;$config-title$/search&quot;&quot;&quot; linkTiddler=&quot;&quot;&quot;$config-title$/link&quot;&quot;&quot; linktext=&quot;&quot; &gt;
&lt;$vars linkTiddler=&lt;&lt;searchTiddler&gt;&gt;&gt;
&lt;$keyboard key=&quot;ENTER&quot; actions=&lt;&lt;add-link-actions&gt;&gt;&gt;
&lt;$edit-text tiddler=&lt;&lt;searchTiddler&gt;&gt; type=&quot;search&quot; tag=&quot;input&quot; focus=&quot;true&quot; placeholder={{$:/language/Search/Search}} default=&quot;&quot;/&gt;
&lt;$reveal tag=&quot;span&quot; state=&lt;&lt;searchTiddler&gt;&gt; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;&lt;external-link&gt;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot; style=&quot;width: auto; display: inline-block; background-colour: inherit;&quot;&gt;
&lt;$action-setfield $tiddler=&lt;&lt;searchTiddler&gt;&gt; text=&quot;&quot; /&gt;
{{$:/core/images/close-button}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/$keyboard&gt;
&lt;/$vars&gt;
&lt;$reveal tag=&quot;div&quot; state=&lt;&lt;searchTiddler&gt;&gt; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$linkcatcher actions=&lt;&lt;add-link-actions&gt;&gt; to=&lt;&lt;linkTiddler&gt;&gt;&gt;
{{$:/core/ui/SearchResults}}
&lt;/$linkcatcher&gt;
&lt;/$reveal&gt;
&lt;/$vars&gt;
\end
&lt;$macrocall $name=&quot;body&quot; config-title=&lt;&lt;qualify &quot;$:/state/Link/&quot;&gt;&gt;/&gt;</pre>
</div>
<div caption="{{$:/language/Buttons/Linkify/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Linkify/Hint}}" icon="$:/core/images/linkify" list-before="$:/core/ui/EditorToolbar/mono-block" shortcuts="((linkify))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/linkify">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-selection&quot;
prefix=&quot;[[&quot;
suffix=&quot;]]&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/ListBullet/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/ListBullet/Hint}}" icon="$:/core/images/list-bullet" shortcuts="((list-bullet))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/list-bullet">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;prefix-lines&quot;
character=&quot;*&quot;
count=&quot;1&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/ListNumber/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/ListNumber/Hint}}" icon="$:/core/images/list-number" shortcuts="((list-number))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/list-number">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;prefix-lines&quot;
character=&quot;#&quot;
count=&quot;1&quot;
/&gt;
</pre>
</div>
<div button-classes="tc-text-editor-toolbar-item-start-group" caption="{{$:/language/Buttons/MonoBlock/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/MonoBlock/Hint}}" icon="$:/core/images/mono-block" shortcuts="((mono-block))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/mono-block">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-lines&quot;
prefix=&quot;
```&quot;
suffix=&quot;```&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/MonoLine/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/MonoLine/Hint}}" icon="$:/core/images/mono-line" shortcuts="((mono-line))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/mono-line">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-selection&quot;
prefix=&quot;`&quot;
suffix=&quot;`&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/More/Caption}}" condition="[&lt;targetTiddler&gt;]" description="{{$:/language/Buttons/More/Hint}}" dropdown="$:/core/ui/EditorToolbar/more-dropdown" icon="$:/core/images/down-arrow" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/more">
<pre></pre>
</div>
<div title="$:/core/ui/EditorToolbar/more-dropdown">
<pre>\define config-title()
$:/config/EditorToolbarButtons/Visibility/$(toolbarItem)$
\end
\define conditional-button()
&lt;$list filter={{$(toolbarItem)$!!condition}} variable=&quot;condition&quot;&gt;
&lt;$transclude tiddler=&quot;$:/core/ui/EditTemplate/body/toolbar/button&quot; mode=&quot;inline&quot;/&gt; &lt;$transclude tiddler=&lt;&lt;toolbarItem&gt;&gt; field=&quot;description&quot;/&gt;
&lt;/$list&gt;
\end
&lt;div class=&quot;tc-text-editor-toolbar-more&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]] -[[$:/core/ui/EditorToolbar/more]]&quot;&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;config-visibility-title&gt;&gt; text=&quot;hide&quot; tag=&quot;div&quot;&gt;
&lt;&lt;conditional-button&gt;&gt;
&lt;/$reveal&gt;
&lt;/$list&gt;
&lt;/div&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Opacity/Caption}}" condition="[&lt;targetTiddler&gt;is[image]]" description="{{$:/language/Buttons/Opacity/Hint}}" dropdown="$:/core/ui/EditorToolbar/opacity-dropdown" icon="$:/core/images/opacity" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/opacity">
<pre>&lt;$text text={{$:/config/BitmapEditor/Opacity}}/&gt;
</pre>
</div>
<div title="$:/core/ui/EditorToolbar/opacity-dropdown">
<pre>\define lingo-base() $:/language/Buttons/Opacity/
\define toolbar-opacity-inner()
&lt;$button tag=&quot;a&quot; tooltip=&quot;&quot;&quot;$(opacity)$&quot;&quot;&quot;&gt;
&lt;$action-setfield
$tiddler=&quot;$:/config/BitmapEditor/Opacity&quot;
$value=&quot;$(opacity)$&quot;
/&gt;
&lt;$action-deletetiddler
$tiddler=&lt;&lt;dropdown-state&gt;&gt;
/&gt;
&lt;div style=&quot;display: inline-block; vertical-align: middle; background-color: $(current-paint-colour)$; opacity: $(opacity)$; width: 1em; height: 1em; border-radius: 50%;&quot;/&gt;
&lt;span style=&quot;margin-left: 8px;&quot;&gt;
&lt;$text text=&quot;&quot;&quot;$(opacity)$&quot;&quot;&quot;/&gt;
&lt;$reveal state=&quot;$:/config/BitmapEditor/Opacity&quot; type=&quot;match&quot; text=&quot;&quot;&quot;$(opacity)$&quot;&quot;&quot; tag=&quot;span&quot;&gt;
&lt;$entity entity=&quot;&amp;nbsp;&quot;/&gt;
&lt;$entity entity=&quot;&amp;#x2713;&quot;/&gt;
&lt;/$reveal&gt;
&lt;/span&gt;
&lt;/$button&gt;
\end
\define toolbar-opacity()
''&lt;&lt;lingo Hint&gt;&gt;''
&lt;$list filter={{$:/config/BitmapEditor/Opacities}} variable=&quot;opacity&quot;&gt;
&lt;&lt;toolbar-opacity-inner&gt;&gt;
&lt;/$list&gt;
\end
&lt;$set name=&quot;current-paint-colour&quot; value={{$:/config/BitmapEditor/Colour}}&gt;
&lt;$set name=&quot;current-opacity&quot; value={{$:/config/BitmapEditor/Opacity}}&gt;
&lt;&lt;toolbar-opacity&gt;&gt;
&lt;/$set&gt;
&lt;/$set&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Paint/Caption}}" condition="[&lt;targetTiddler&gt;is[image]]" description="{{$:/language/Buttons/Paint/Hint}}" dropdown="$:/core/ui/EditorToolbar/paint-dropdown" icon="$:/core/images/paint" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/paint">
<pre>\define toolbar-paint()
&lt;div style=&quot;display: inline-block; vertical-align: middle; background-color: $(colour-picker-value)$; width: 1em; height: 1em; border-radius: 50%;&quot;/&gt;
\end
&lt;$set name=&quot;colour-picker-value&quot; value={{$:/config/BitmapEditor/Colour}}&gt;
&lt;&lt;toolbar-paint&gt;&gt;
&lt;/$set&gt;
</pre>
</div>
<div title="$:/core/ui/EditorToolbar/paint-dropdown">
<pre>''{{$:/language/Buttons/Paint/Hint}}''
&lt;$macrocall $name=&quot;colour-picker&quot; actions=&quot;&quot;&quot;
&lt;$action-setfield
$tiddler=&quot;$:/config/BitmapEditor/Colour&quot;
$value=&lt;&lt;colour-picker-value&gt;&gt;
/&gt;
&lt;$action-deletetiddler
$tiddler=&lt;&lt;dropdown-state&gt;&gt;
/&gt;
&quot;&quot;&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Picture/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Picture/Hint}}" dropdown="$:/core/ui/EditorToolbar/picture-dropdown" icon="$:/core/images/picture" shortcuts="((picture))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/picture">
<pre></pre>
</div>
<div title="$:/core/ui/EditorToolbar/picture-dropdown">
<pre>\define replacement-text()
[img[$(imageTitle)$]]
\end
''{{$:/language/Buttons/Picture/Hint}}''
&lt;$macrocall $name=&quot;image-picker&quot; actions=&quot;&quot;&quot;
&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;replace-selection&quot;
text=&lt;&lt;replacement-text&gt;&gt;
/&gt;
&lt;$action-deletetiddler
$tiddler=&lt;&lt;dropdown-state&gt;&gt;
/&gt;
&quot;&quot;&quot;/&gt;
</pre>
</div>
<div button-classes="tc-text-editor-toolbar-item-start-group" caption="{{$:/language/Buttons/Preview/Caption}}" condition="[&lt;targetTiddler&gt;]" custom-icon="yes" description="{{$:/language/Buttons/Preview/Hint}}" icon="$:/core/images/preview-open" shortcuts="((preview))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/preview">
<pre>&lt;$reveal state=&quot;$:/state/showeditpreview&quot; type=&quot;match&quot; text=&quot;yes&quot; tag=&quot;span&quot;&gt;
{{$:/core/images/preview-open}}
&lt;$action-setfield $tiddler=&quot;$:/state/showeditpreview&quot; $value=&quot;no&quot;/&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&quot;$:/state/showeditpreview&quot; type=&quot;nomatch&quot; text=&quot;yes&quot; tag=&quot;span&quot;&gt;
{{$:/core/images/preview-closed}}
&lt;$action-setfield $tiddler=&quot;$:/state/showeditpreview&quot; $value=&quot;yes&quot;/&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div button-classes="tc-text-editor-toolbar-item-adjunct" caption="{{$:/language/Buttons/PreviewType/Caption}}" condition="[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]butfirst[]limit[1]]" description="{{$:/language/Buttons/PreviewType/Hint}}" dropdown="$:/core/ui/EditorToolbar/preview-type-dropdown" icon="$:/core/images/chevron-down" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/preview-type">
<pre></pre>
</div>
<div title="$:/core/ui/EditorToolbar/preview-type-dropdown">
<pre>\define preview-type-button()
&lt;$button tag=&quot;a&quot;&gt;
&lt;$action-setfield $tiddler=&quot;$:/state/editpreviewtype&quot; $value=&quot;$(previewType)$&quot;/&gt;
&lt;$action-deletetiddler
$tiddler=&lt;&lt;dropdown-state&gt;&gt;
/&gt;
&lt;$transclude tiddler=&lt;&lt;previewType&gt;&gt; field=&quot;caption&quot; mode=&quot;inline&quot;&gt;
&lt;$view tiddler=&lt;&lt;previewType&gt;&gt; field=&quot;title&quot; mode=&quot;inline&quot;/&gt;
&lt;/$transclude&gt;
&lt;$reveal tag=&quot;span&quot; state=&quot;$:/state/editpreviewtype&quot; type=&quot;match&quot; text=&lt;&lt;previewType&gt;&gt; default=&quot;$:/core/ui/EditTemplate/body/preview/output&quot;&gt;
&lt;$entity entity=&quot;&amp;nbsp;&quot;/&gt;
&lt;$entity entity=&quot;&amp;#x2713;&quot;/&gt;
&lt;/$reveal&gt;
&lt;/$button&gt;
\end
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]]&quot; variable=&quot;previewType&quot;&gt;
&lt;&lt;preview-type-button&gt;&gt;
&lt;/$list&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Quote/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Quote/Hint}}" icon="$:/core/images/quote" shortcuts="((quote))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/quote">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-lines&quot;
prefix=&quot;
&lt;&lt;&lt;&quot;
suffix=&quot;&lt;&lt;&lt;&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/RotateLeft/Caption}}" condition="[&lt;targetTiddler&gt;is[image]]" description="{{$:/language/Buttons/RotateLeft/Hint}}" icon="$:/core/images/rotate-left" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/rotate-left">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-bitmap-operation&quot;
$param=&quot;rotate-left&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Size/Caption}}" condition="[&lt;targetTiddler&gt;is[image]]" description="{{$:/language/Buttons/Size/Hint}}" dropdown="$:/core/ui/EditorToolbar/size-dropdown" icon="$:/core/images/size" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/size">
<pre></pre>
</div>
<div title="$:/core/ui/EditorToolbar/size-dropdown">
<pre>\define lingo-base() $:/language/Buttons/Size/
\define toolbar-button-size-preset(config-title)
&lt;$set name=&quot;width&quot; filter=&quot;$(sizePair)$ +[first[]]&quot;&gt;
&lt;$set name=&quot;height&quot; filter=&quot;$(sizePair)$ +[last[]]&quot;&gt;
&lt;$button tag=&quot;a&quot;&gt;
&lt;$action-setfield
$tiddler=&quot;&quot;&quot;$config-title$/new-width&quot;&quot;&quot;
$value=&lt;&lt;width&gt;&gt;
/&gt;
&lt;$action-setfield
$tiddler=&quot;&quot;&quot;$config-title$/new-height&quot;&quot;&quot;
$value=&lt;&lt;height&gt;&gt;
/&gt;
&lt;$action-deletetiddler
$tiddler=&quot;&quot;&quot;$config-title$/presets-popup&quot;&quot;&quot;
/&gt;
&lt;$text text=&lt;&lt;width&gt;&gt;/&gt; &amp;times; &lt;$text text=&lt;&lt;height&gt;&gt;/&gt;
&lt;/$button&gt;
&lt;/$set&gt;
&lt;/$set&gt;
\end
\define toolbar-button-size(config-title)
''{{$:/language/Buttons/Size/Hint}}''
&lt;&lt;lingo Caption/Width&gt;&gt; &lt;$edit-text tag=&quot;input&quot; tiddler=&quot;&quot;&quot;$config-title$/new-width&quot;&quot;&quot; default=&lt;&lt;tv-bitmap-editor-width&gt;&gt; focus=&quot;true&quot; size=&quot;8&quot;/&gt; &lt;&lt;lingo Caption/Height&gt;&gt; &lt;$edit-text tag=&quot;input&quot; tiddler=&quot;&quot;&quot;$config-title$/new-height&quot;&quot;&quot; default=&lt;&lt;tv-bitmap-editor-height&gt;&gt; size=&quot;8&quot;/&gt; &lt;$button popup=&quot;&quot;&quot;$config-title$/presets-popup&quot;&quot;&quot; class=&quot;tc-btn-invisible tc-popup-keep&quot; style=&quot;width: auto; display: inline-block; background-colour: inherit;&quot; selectedClass=&quot;tc-selected&quot;&gt;
{{$:/core/images/down-arrow}}
&lt;/$button&gt;
&lt;$reveal tag=&quot;span&quot; state=&quot;&quot;&quot;$config-title$/presets-popup&quot;&quot;&quot; type=&quot;popup&quot; position=&quot;belowleft&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-drop-down tc-popup-keep&quot;&gt;
&lt;$list filter={{$:/config/BitmapEditor/ImageSizes}} variable=&quot;sizePair&quot;&gt;
&lt;$macrocall $name=&quot;toolbar-button-size-preset&quot; config-title=&quot;$config-title$&quot;/&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;$button&gt;
&lt;$action-sendmessage
$message=&quot;tm-edit-bitmap-operation&quot;
$param=&quot;resize&quot;
width={{$config-title$/new-width}}
height={{$config-title$/new-height}}
/&gt;
&lt;$action-deletetiddler
$tiddler=&quot;&quot;&quot;$config-title$/new-width&quot;&quot;&quot;
/&gt;
&lt;$action-deletetiddler
$tiddler=&quot;&quot;&quot;$config-title$/new-height&quot;&quot;&quot;
/&gt;
&lt;$action-deletetiddler
$tiddler=&lt;&lt;dropdown-state&gt;&gt;
/&gt;
&lt;&lt;lingo Caption/Resize&gt;&gt;
&lt;/$button&gt;
\end
&lt;$macrocall $name=&quot;toolbar-button-size&quot; config-title=&lt;&lt;qualify &quot;$:/state/Size/&quot;&gt;&gt;/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Stamp/Caption}}" condition="[&lt;targetTiddler&gt;type[]] [&lt;targetTiddler&gt;get[type]prefix[text/]] +[first[]]" description="{{$:/language/Buttons/Stamp/Hint}}" dropdown="$:/core/ui/EditorToolbar/stamp-dropdown" icon="$:/core/images/stamp" shortcuts="((stamp))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/stamp">
<pre></pre>
</div>
<div title="$:/core/ui/EditorToolbar/stamp-dropdown">
<pre>\define toolbar-button-stamp-inner()
&lt;$button tag=&quot;a&quot;&gt;
&lt;$list filter=&quot;[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]]&quot;&gt;
&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;replace-selection&quot;
text={{$(snippetTitle)$}}
/&gt;
&lt;/$list&gt;
&lt;$list filter=&quot;[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]]&quot;&gt;
&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-selection&quot;
prefix={{{ [[$(snippetTitle)$]addsuffix[/prefix]get[text]] }}}
suffix={{{ [[$(snippetTitle)$]addsuffix[/suffix]get[text]] }}}
/&gt;
&lt;/$list&gt;
&lt;$action-deletetiddler
$tiddler=&lt;&lt;dropdown-state&gt;&gt;
/&gt;
&lt;$transclude tiddler=&lt;&lt;snippetTitle&gt;&gt; field=&quot;caption&quot; mode=&quot;inline&quot;&gt;
&lt;$view tiddler=&lt;&lt;snippetTitle&gt;&gt; field=&quot;title&quot; /&gt;
&lt;/$transclude&gt;
&lt;/$button&gt;
\end
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/TextEditor/Snippet]!has[draft.of]sort[caption]]&quot; variable=&quot;snippetTitle&quot;&gt;
&lt;&lt;toolbar-button-stamp-inner&gt;&gt;
&lt;/$list&gt;
----
&lt;$button tag=&quot;a&quot;&gt;
&lt;$action-sendmessage
$message=&quot;tm-new-tiddler&quot;
tags=&quot;$:/tags/TextEditor/Snippet&quot;
caption={{$:/language/Buttons/Stamp/New/Title}}
text={{$:/language/Buttons/Stamp/New/Text}}
/&gt;
&lt;$action-deletetiddler
$tiddler=&lt;&lt;dropdown-state&gt;&gt;
/&gt;
&lt;em&gt;
&lt;$text text={{$:/language/Buttons/Stamp/Caption/New}}/&gt;
&lt;/em&gt;
&lt;/$button&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Strikethrough/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Strikethrough/Hint}}" icon="$:/core/images/strikethrough" shortcuts="((strikethrough))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/strikethrough">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-selection&quot;
prefix=&quot;~~&quot;
suffix=&quot;~~&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Subscript/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Subscript/Hint}}" icon="$:/core/images/subscript" shortcuts="((subscript))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/subscript">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-selection&quot;
prefix=&quot;,,&quot;
suffix=&quot;,,&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Superscript/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Superscript/Hint}}" icon="$:/core/images/superscript" shortcuts="((superscript))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/superscript">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-selection&quot;
prefix=&quot;^^&quot;
suffix=&quot;^^&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Transcludify/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Transcludify/Hint}}" icon="$:/core/images/transcludify" list-before="$:/core/ui/EditorToolbar/mono-block" shortcuts="((transcludify))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/transcludify">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-selection&quot;
prefix=&quot;{{&quot;
suffix=&quot;}}&quot;
/&gt;
</pre>
</div>
<div caption="{{$:/language/Buttons/Underline/Caption}}" condition="[&lt;targetTiddler&gt;!has[type]] [&lt;targetTiddler&gt;type[text/vnd.tiddlywiki]]" description="{{$:/language/Buttons/Underline/Hint}}" icon="$:/core/images/underline" shortcuts="((underline))" tags="$:/tags/EditorToolbar" title="$:/core/ui/EditorToolbar/underline">
<pre>&lt;$action-sendmessage
$message=&quot;tm-edit-text-operation&quot;
$param=&quot;wrap-selection&quot;
prefix=&quot;__&quot;
suffix=&quot;__&quot;
/&gt;
</pre>
</div>
<div title="$:/core/ui/EditTemplate">
<pre>\define save-tiddler-actions()
&lt;$action-sendmessage $message=&quot;tm-add-tag&quot; $param={{{ [&lt;newTagNameTiddler&gt;get[text]] }}}/&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;newTagNameTiddler&gt;&gt;/&gt;
&lt;$action-sendmessage $message=&quot;tm-add-field&quot; $name={{{ [&lt;newFieldNameTiddler&gt;get[text]] }}} $value={{{ [&lt;newFieldValueTiddler&gt;get[text]] }}}/&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;newFieldNameTiddler&gt;&gt;/&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;newFieldValueTiddler&gt;&gt;/&gt;
&lt;$action-sendmessage $message=&quot;tm-save-tiddler&quot;/&gt;
\end
&lt;div data-tiddler-title=&lt;&lt;currentTiddler&gt;&gt; data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-edit-frame [&lt;currentTiddler&gt;is[tiddler]then[tc-tiddler-exists]] [&lt;currentTiddler&gt;is[missing]!is[shadow]then[tc-tiddler-missing]] [&lt;currentTiddler&gt;is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [&lt;currentTiddler&gt;is[system]then[tc-tiddler-system]] [{!!class}] [&lt;currentTiddler&gt;tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}&gt;
&lt;$fieldmangler&gt;
&lt;$vars storyTiddler=&lt;&lt;currentTiddler&gt;&gt; newTagNameTiddler=&lt;&lt;qualify &quot;$:/temp/NewTagName&quot;&gt;&gt; newFieldNameTiddler=&lt;&lt;qualify &quot;$:/temp/NewFieldName&quot;&gt;&gt; newFieldValueTiddler=&lt;&lt;qualify &quot;$:/temp/NewFieldValue&quot;&gt;&gt;&gt;
&lt;$keyboard key=&quot;((cancel-edit-tiddler))&quot; message=&quot;tm-cancel-tiddler&quot;&gt;
&lt;$keyboard key=&quot;((save-tiddler))&quot; actions=&lt;&lt;save-tiddler-actions&gt;&gt;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; filter=&quot;[&lt;tv-config-toolbar-class&gt;] [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]]&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/$keyboard&gt;
&lt;/$keyboard&gt;
&lt;/$vars&gt;
&lt;/$fieldmangler&gt;
&lt;/div&gt;
</pre>
</div>
<div tags="$:/tags/EditTemplate" title="$:/core/ui/EditTemplate/body">
<pre>\define lingo-base() $:/language/EditTemplate/Body/
\define config-visibility-title()
$:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$
\end
&lt;$list filter=&quot;[all[current]has[_canonical_uri]]&quot;&gt;
&lt;div class=&quot;tc-message-box&quot;&gt;
&lt;&lt;lingo External/Hint&gt;&gt;
&lt;a href={{!!_canonical_uri}}&gt;&lt;$text text={{!!_canonical_uri}}/&gt;&lt;/a&gt;
&lt;$edit-text field=&quot;_canonical_uri&quot; class=&quot;tc-edit-fields&quot; tabindex={{$:/config/EditTabIndex}}&gt;&lt;/$edit-text&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;$list filter=&quot;[all[current]!has[_canonical_uri]]&quot;&gt;
&lt;$reveal state=&quot;$:/state/showeditpreview&quot; type=&quot;match&quot; text=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-tiddler-preview&quot;&gt;
&lt;$transclude tiddler=&quot;$:/core/ui/EditTemplate/body/editor&quot; mode=&quot;inline&quot;/&gt;
&lt;div class=&quot;tc-tiddler-preview-preview&quot;&gt;
&lt;$transclude tiddler={{$:/state/editpreviewtype}} mode=&quot;inline&quot;&gt;
&lt;$transclude tiddler=&quot;$:/core/ui/EditTemplate/body/preview/output&quot; mode=&quot;inline&quot;/&gt;
&lt;/$transclude&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&quot;$:/state/showeditpreview&quot; type=&quot;nomatch&quot; text=&quot;yes&quot;&gt;
&lt;$transclude tiddler=&quot;$:/core/ui/EditTemplate/body/editor&quot; mode=&quot;inline&quot;/&gt;
&lt;/$reveal&gt;
&lt;/$list&gt;
</pre>
</div>
<div title="$:/core/ui/EditTemplate/body/editor">
<pre>&lt;$edit
field=&quot;text&quot;
class=&quot;tc-edit-texteditor tc-edit-texteditor-body&quot;
placeholder={{$:/language/EditTemplate/Body/Placeholder}}
tabindex={{$:/config/EditTabIndex}}
focus={{{ [{$:/config/AutoFocus}match[text]then[true]] ~[[false]] }}}
&gt;&lt;$set
name=&quot;targetTiddler&quot;
value=&lt;&lt;currentTiddler&gt;&gt;
&gt;&lt;$list
filter=&quot;[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]]&quot;
&gt;&lt;$reveal
type=&quot;nomatch&quot;
state=&lt;&lt;config-visibility-title&gt;&gt;
text=&quot;hide&quot;
class=&quot;tc-text-editor-toolbar-item-wrapper&quot;
&gt;&lt;$transclude
tiddler=&quot;$:/core/ui/EditTemplate/body/toolbar/button&quot;
mode=&quot;inline&quot;
/&gt;&lt;/$reveal&gt;&lt;/$list&gt;&lt;/$set&gt;&lt;/$edit&gt;
</pre>
</div>
<div caption="differences from current" list-after="$:/core/ui/EditTemplate/body/preview/output" tags="$:/tags/EditPreview" title="$:/core/ui/EditTemplate/body/preview/diffs-current">
<pre>&lt;$list filter=&quot;[&lt;currentTiddler&gt;!is[image]]&quot; emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}&gt;
&lt;$macrocall $name=&quot;compareTiddlerText&quot; sourceTiddlerTitle={{!!draft.of}} destTiddlerTitle=&lt;&lt;currentTiddler&gt;&gt;/&gt;
&lt;/$list&gt;
</pre>
</div>
<div caption="differences from shadow (if any)" list-after="$:/core/ui/EditTemplate/body/preview/output" tags="$:/tags/EditPreview" title="$:/core/ui/EditTemplate/body/preview/diffs-shadow">
<pre>&lt;$list filter=&quot;[&lt;currentTiddler&gt;!is[image]]&quot; emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}&gt;
&lt;$macrocall $name=&quot;compareTiddlerText&quot; sourceTiddlerTitle={{{ [{!!draft.of}shadowsource[]] }}} sourceSubTiddlerTitle={{!!draft.of}} destTiddlerTitle=&lt;&lt;currentTiddler&gt;&gt;/&gt;
&lt;/$list&gt;
</pre>
</div>
<div caption="{{$:/language/EditTemplate/Body/Preview/Type/Output}}" tags="$:/tags/EditPreview" title="$:/core/ui/EditTemplate/body/preview/output">
<pre>\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]
&lt;$set name=&quot;tv-tiddler-preview&quot; value=&quot;yes&quot;&gt;
&lt;$transclude /&gt;
&lt;/$set&gt;
</pre>
</div>
<div title="$:/core/ui/EditTemplate/body/toolbar/button">
<pre>\define toolbar-button-icon()
&lt;$list
filter=&quot;[all[current]!has[custom-icon]]&quot;
variable=&quot;no-custom-icon&quot;
&gt;&lt;$transclude
tiddler={{!!icon}}
/&gt;&lt;/$list&gt;
\end
\define toolbar-button-tooltip()
{{!!description}}&lt;$macrocall $name=&quot;displayshortcuts&quot; $output=&quot;text/plain&quot; shortcuts={{!!shortcuts}} prefix=&quot;` - [&quot; separator=&quot;] [&quot; suffix=&quot;]`&quot;/&gt;
\end
\define toolbar-button()
&lt;$list
filter={{!!condition}}
variable=&quot;list-condition&quot;
&gt;&lt;$wikify
name=&quot;tooltip-text&quot;
text=&lt;&lt;toolbar-button-tooltip&gt;&gt;
mode=&quot;inline&quot;
output=&quot;text&quot;
&gt;&lt;$list
filter=&quot;[all[current]!has[dropdown]]&quot;
variable=&quot;no-dropdown&quot;
&gt;&lt;$button
class=&quot;tc-btn-invisible $(buttonClasses)$&quot;
tooltip=&lt;&lt;tooltip-text&gt;&gt;
actions={{!!actions}}
&gt;&lt;span
data-tw-keyboard-shortcut={{!!shortcuts}}
/&gt;&lt;&lt;toolbar-button-icon&gt;&gt;&lt;$transclude
tiddler=&lt;&lt;currentTiddler&gt;&gt;
field=&quot;text&quot;
/&gt;&lt;/$button&gt;&lt;/$list&gt;&lt;$list
filter=&quot;[all[current]has[dropdown]]&quot;
variable=&quot;dropdown&quot;
&gt;&lt;$set
name=&quot;dropdown-state&quot;
value=&lt;&lt;qualify &quot;$:/state/EditorToolbarDropdown&quot;&gt;&gt;
&gt;&lt;$button
popup=&lt;&lt;dropdown-state&gt;&gt;
class=&quot;tc-popup-keep tc-btn-invisible $(buttonClasses)$&quot;
selectedClass=&quot;tc-selected&quot;
tooltip=&lt;&lt;tooltip-text&gt;&gt;
actions={{!!actions}}
&gt;&lt;span
data-tw-keyboard-shortcut={{!!shortcuts}}
/&gt;&lt;&lt;toolbar-button-icon&gt;&gt;&lt;$transclude
tiddler=&lt;&lt;currentTiddler&gt;&gt;
field=&quot;text&quot;
/&gt;&lt;/$button&gt;&lt;$reveal
state=&lt;&lt;dropdown-state&gt;&gt;
type=&quot;popup&quot;
position=&quot;below&quot;
animate=&quot;yes&quot;
tag=&quot;span&quot;
&gt;&lt;div
class=&quot;tc-drop-down tc-popup-keep&quot;
&gt;&lt;$transclude
tiddler={{!!dropdown}}
mode=&quot;block&quot;
/&gt;&lt;/div&gt;&lt;/$reveal&gt;&lt;/$set&gt;&lt;/$list&gt;&lt;/$wikify&gt;&lt;/$list&gt;
\end
\define toolbar-button-outer()
&lt;$set
name=&quot;buttonClasses&quot;
value={{!!button-classes}}
&gt;&lt;&lt;toolbar-button&gt;&gt;&lt;/$set&gt;
\end
&lt;&lt;toolbar-button-outer&gt;&gt;</pre>
</div>
<div tags="$:/tags/EditTemplate" title="$:/core/ui/EditTemplate/controls">
<pre>\define config-title()
$:/config/EditToolbarButtons/Visibility/$(listItem)$
\end
&lt;div class=&quot;tc-tiddler-title tc-tiddler-edit-title&quot;&gt;
&lt;$view field=&quot;title&quot;/&gt;
&lt;span class=&quot;tc-tiddler-controls tc-titlebar&quot;&gt;&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;config-title&gt;&gt; text=&quot;hide&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;&lt;/$reveal&gt;&lt;/$list&gt;&lt;/span&gt;
&lt;div style=&quot;clear: both;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
</div>
<div tags="$:/tags/EditTemplate" title="$:/core/ui/EditTemplate/fields">
<pre>\define lingo-base() $:/language/EditTemplate/
\define config-title()
$:/config/EditTemplateFields/Visibility/$(currentField)$
\end
\define config-filter()
[[hide]] -[title{$(config-title)$}]
\end
\define current-tiddler-new-field-selector()
[data-tiddler-title=&quot;$(currentTiddlerCSSescaped)$&quot;] .tc-edit-field-add-name input
\end
\define new-field-actions()
&lt;$action-sendmessage $message=&quot;tm-add-field&quot; $name={{{ [&lt;newFieldNameTiddler&gt;get[text]] }}} $value={{{ [&lt;newFieldValueTiddler&gt;get[text]] }}}/&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;newFieldNameTiddler&gt;&gt;/&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;newFieldValueTiddler&gt;&gt;/&gt;
&lt;$action-sendmessage $message=&quot;tm-focus-selector&quot; $param=&lt;&lt;current-tiddler-new-field-selector&gt;&gt;/&gt;
\end
\define new-field()
&lt;$vars name={{{ [&lt;newFieldNameTiddler&gt;get[text]] }}}&gt;
&lt;$reveal type=&quot;nomatch&quot; text=&quot;&quot; default=&lt;&lt;name&gt;&gt;&gt;
&lt;$button tooltip=&lt;&lt;lingo Fields/Add/Button/Hint&gt;&gt;&gt;
&lt;$action-sendmessage $message=&quot;tm-add-field&quot;
$name=&lt;&lt;name&gt;&gt;
$value={{{ [&lt;newFieldValueTiddler&gt;get[text]] }}}/&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;newFieldNameTiddler&gt;&gt;/&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;newFieldValueTiddler&gt;&gt;/&gt;
&lt;&lt;lingo Fields/Add/Button&gt;&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; text=&quot;&quot; default=&lt;&lt;name&gt;&gt;&gt;
&lt;$button&gt;
&lt;&lt;lingo Fields/Add/Button&gt;&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/$vars&gt;
\end
\whitespace trim
&lt;div class=&quot;tc-edit-fields&quot;&gt;
&lt;table class=&quot;tc-edit-fields&quot;&gt;
&lt;tbody&gt;
&lt;$list filter=&quot;[all[current]fields[]] +[sort[title]]&quot; variable=&quot;currentField&quot; storyview=&quot;pop&quot;&gt;
&lt;$list filter=&lt;&lt;config-filter&gt;&gt; variable=&quot;temp&quot;&gt;
&lt;tr class=&quot;tc-edit-field&quot;&gt;
&lt;td class=&quot;tc-edit-field-name&quot;&gt;
&lt;$text text=&lt;&lt;currentField&gt;&gt;/&gt;:&lt;/td&gt;
&lt;td class=&quot;tc-edit-field-value&quot;&gt;
&lt;$edit-text tiddler=&lt;&lt;currentTiddler&gt;&gt; field=&lt;&lt;currentField&gt;&gt; placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} tabindex={{$:/config/EditTabIndex}}/&gt;
&lt;/td&gt;
&lt;td class=&quot;tc-edit-field-remove&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible&quot; tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}&gt;
&lt;$action-deletefield $field=&lt;&lt;currentField&gt;&gt;/&gt;
{{$:/core/images/delete-button}}
&lt;/$button&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/$list&gt;
&lt;/$list&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;$fieldmangler&gt;
&lt;div class=&quot;tc-edit-field-add&quot;&gt;
&lt;em class=&quot;tc-edit&quot;&gt;
&lt;&lt;lingo Fields/Add/Prompt&gt;&gt;&amp;nbsp;&amp;nbsp;
&lt;/em&gt;
&lt;span class=&quot;tc-edit-field-add-name&quot;&gt;
&lt;$edit-text tiddler=&lt;&lt;newFieldNameTiddler&gt;&gt; tag=&quot;input&quot; default=&quot;&quot; placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} focusPopup=&lt;&lt;qualify &quot;$:/state/popup/field-dropdown&quot;&gt;&gt; class=&quot;tc-edit-texteditor tc-popup-handle&quot; tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[fields]then[true]] ~[[false]] }}}/&gt;
&lt;/span&gt;&amp;nbsp;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/field-dropdown&quot;&gt;&gt; class=&quot;tc-btn-invisible tc-btn-dropdown&quot; tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}&gt;{{$:/core/images/down-arrow}}&lt;/$button&gt;&amp;nbsp;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/field-dropdown&quot;&gt;&gt; type=&quot;nomatch&quot; text=&quot;&quot; default=&quot;&quot;&gt;
&lt;div class=&quot;tc-block-dropdown tc-edit-type-dropdown&quot;&gt;
&lt;$set name=&quot;tv-show-missing-links&quot; value=&quot;yes&quot;&gt;
&lt;$linkcatcher to=&lt;&lt;newFieldNameTiddler&gt;&gt;&gt;
&lt;div class=&quot;tc-dropdown-item&quot;&gt;
&lt;&lt;lingo Fields/Add/Dropdown/User&gt;&gt;
&lt;/div&gt;
&lt;$set name=&quot;newFieldName&quot; value={{{ [&lt;newFieldNameTiddler&gt;get[text]] }}}&gt;
&lt;$list filter=&quot;[!is[shadow]!is[system]fields[]search:title&lt;newFieldName&gt;sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type&quot; variable=&quot;currentField&quot;&gt;
&lt;$link to=&lt;&lt;currentField&gt;&gt;&gt;
&lt;$text text=&lt;&lt;currentField&gt;&gt;/&gt;
&lt;/$link&gt;
&lt;/$list&gt;
&lt;div class=&quot;tc-dropdown-item&quot;&gt;
&lt;&lt;lingo Fields/Add/Dropdown/System&gt;&gt;
&lt;/div&gt;
&lt;$list filter=&quot;[fields[]search:title&lt;newFieldName&gt;sort[]] -[!is[shadow]!is[system]fields[]]&quot; variable=&quot;currentField&quot;&gt;
&lt;$link to=&lt;&lt;currentField&gt;&gt;&gt;
&lt;$text text=&lt;&lt;currentField&gt;&gt;/&gt;
&lt;/$link&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$linkcatcher&gt;
&lt;/$set&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;span class=&quot;tc-edit-field-add-value&quot;&gt;
&lt;$set name=&quot;currentTiddlerCSSescaped&quot; value={{{ [&lt;currentTiddler&gt;escapecss[]] }}}&gt;
&lt;$keyboard key=&quot;((add-field))&quot; actions=&lt;&lt;new-field-actions&gt;&gt;&gt;
&lt;$edit-text tiddler=&lt;&lt;newFieldValueTiddler&gt;&gt; tag=&quot;input&quot; default=&quot;&quot; placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class=&quot;tc-edit-texteditor&quot; tabindex={{$:/config/EditTabIndex}}/&gt;
&lt;/$keyboard&gt;
&lt;/$set&gt;
&lt;/span&gt;&amp;nbsp;
&lt;span class=&quot;tc-edit-field-add-button&quot;&gt;
&lt;$macrocall $name=&quot;new-field&quot;/&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;/$fieldmangler&gt;
</pre>
</div>
<div tags="$:/tags/EditTemplate" title="$:/core/ui/EditTemplate/shadow">
<pre>\define lingo-base() $:/language/EditTemplate/Shadow/
\define pluginLinkBody()
&lt;$link to=&quot;&quot;&quot;$(pluginTitle)$&quot;&quot;&quot;&gt;
&lt;$text text=&quot;&quot;&quot;$(pluginTitle)$&quot;&quot;&quot;/&gt;
&lt;/$link&gt;
\end
&lt;$list filter=&quot;[all[current]get[draft.of]is[shadow]!is[tiddler]]&quot;&gt;
&lt;$list filter=&quot;[all[current]shadowsource[]]&quot; variable=&quot;pluginTitle&quot;&gt;
&lt;$set name=&quot;pluginLink&quot; value=&lt;&lt;pluginLinkBody&gt;&gt;&gt;
&lt;div class=&quot;tc-message-box&quot;&gt;
&lt;&lt;lingo Warning&gt;&gt;
&lt;/div&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/$list&gt;
&lt;$list filter=&quot;[all[current]get[draft.of]is[shadow]is[tiddler]]&quot;&gt;
&lt;$list filter=&quot;[all[current]shadowsource[]]&quot; variable=&quot;pluginTitle&quot;&gt;
&lt;$set name=&quot;pluginLink&quot; value=&lt;&lt;pluginLinkBody&gt;&gt;&gt;
&lt;div class=&quot;tc-message-box&quot;&gt;
&lt;&lt;lingo OverriddenWarning&gt;&gt;
&lt;/div&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/$list&gt;</pre>
</div>
<div tags="$:/tags/EditTemplate" title="$:/core/ui/EditTemplate/tags">
<pre>\whitespace trim
\define lingo-base() $:/language/EditTemplate/
\define tag-styles()
background-color:$(backgroundColor)$;
fill:$(foregroundColor)$;
color:$(foregroundColor)$;
\end
\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon)
\whitespace trim
&lt;$vars foregroundColor=&lt;&lt;contrastcolour target:&quot;&quot;&quot;$colour$&quot;&quot;&quot; fallbackTarget:&quot;&quot;&quot;$fallbackTarget$&quot;&quot;&quot; colourA:&quot;&quot;&quot;$colourA$&quot;&quot;&quot; colourB:&quot;&quot;&quot;$colourB$&quot;&quot;&quot;&gt;&gt; backgroundColor=&quot;&quot;&quot;$colour$&quot;&quot;&quot;&gt;
&lt;span style=&lt;&lt;tag-styles&gt;&gt; class=&quot;tc-tag-label tc-tag-list-item&quot;&gt;
&lt;$transclude tiddler=&quot;&quot;&quot;$icon$&quot;&quot;&quot;/&gt;&lt;$view field=&quot;title&quot; format=&quot;text&quot; /&gt;
&lt;$button message=&quot;tm-remove-tag&quot; param={{!!title}} class=&quot;tc-btn-invisible tc-remove-tag-button&quot;&gt;{{$:/core/images/close-button}}&lt;/$button&gt;
&lt;/span&gt;
&lt;/$vars&gt;
\end
\define tag-body(colour,palette,icon)
&lt;$macrocall $name=&quot;tag-body-inner&quot; colour=&quot;&quot;&quot;$colour$&quot;&quot;&quot; fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon=&quot;&quot;&quot;$icon$&quot;&quot;&quot;/&gt;
\end
&lt;div class=&quot;tc-edit-tags&quot;&gt;
&lt;$fieldmangler&gt;
&lt;$list filter=&quot;[all[current]tags[]sort[title]]&quot; storyview=&quot;pop&quot;&gt;
&lt;$macrocall $name=&quot;tag-body&quot; colour={{!!color}} palette={{$:/palette}} icon={{!!icon}}/&gt;
&lt;/$list&gt;
&lt;$set name=&quot;tabIndex&quot; value={{$:/config/EditTabIndex}}&gt;
&lt;$macrocall $name=&quot;tag-picker&quot;/&gt;
&lt;/$set&gt;
&lt;/$fieldmangler&gt;
&lt;/div&gt;
</pre>
</div>
<div tags="$:/tags/EditTemplate" title="$:/core/ui/EditTemplate/title">
<pre>&lt;$edit-text field=&quot;draft.title&quot; class=&quot;tc-titlebar tc-edit-texteditor&quot; focus={{{ [{$:/config/AutoFocus}match[title]then[true]] ~[[false]] }}} tabindex={{$:/config/EditTabIndex}}/&gt;
&lt;$vars pattern=&quot;&quot;&quot;[\|\[\]{}]&quot;&quot;&quot; bad-chars=&quot;&quot;&quot;`| [ ] { }`&quot;&quot;&quot;&gt;
&lt;$list filter=&quot;[all[current]regexp:draft.title&lt;pattern&gt;]&quot; variable=&quot;listItem&quot;&gt;
&lt;div class=&quot;tc-message-box&quot;&gt;
{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}
&lt;/div&gt;
&lt;/$list&gt;
&lt;/$vars&gt;
&lt;$reveal state=&quot;!!draft.title&quot; type=&quot;nomatch&quot; text={{!!draft.of}} tag=&quot;div&quot;&gt;
&lt;$list filter=&quot;[{!!draft.title}!is[missing]]&quot; variable=&quot;listItem&quot;&gt;
&lt;div class=&quot;tc-message-box&quot;&gt;
{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}
&lt;/div&gt;
&lt;/$list&gt;
&lt;$list filter=&quot;[{!!draft.of}!is[missing]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}&gt;
&lt;$checkbox tiddler=&quot;$:/config/RelinkOnRename&quot; field=&quot;text&quot; checked=&quot;yes&quot; unchecked=&quot;no&quot; default=&quot;no&quot;&gt; {{$:/language/EditTemplate/Title/Relink/Prompt}}&lt;/$checkbox&gt;
&lt;$list filter=&quot;[title&lt;fromTitle&gt;backlinks[]limit[1]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$vars stateTiddler=&lt;&lt;qualify &quot;$:/state/edit/references&quot;&gt;&gt; &gt;
&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;stateTiddler&gt;&gt; text=&quot;show&quot;&gt;
&lt;$button set=&lt;&lt;stateTiddler&gt;&gt; setTo=&quot;show&quot; class=&quot;tc-btn-invisible&quot;&gt;{{$:/core/images/right-arrow}}
&lt;&lt;lingo EditTemplate/Title/References/Prompt&gt;&gt;&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;stateTiddler&gt;&gt; text=&quot;show&quot;&gt;
&lt;$button set=&lt;&lt;stateTiddler&gt;&gt; setTo=&quot;hide&quot; class=&quot;tc-btn-invisible&quot;&gt;{{$:/core/images/down-arrow}}
&lt;&lt;lingo EditTemplate/Title/References/Prompt&gt;&gt;&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;stateTiddler&gt;&gt; text=&quot;show&quot;&gt;
&lt;$tiddler tiddler=&lt;&lt;fromTitle&gt;&gt; &gt;
&lt;$transclude tiddler=&quot;$:/core/ui/TiddlerInfo/References&quot;/&gt;
&lt;/$tiddler&gt;
&lt;/$reveal&gt;
&lt;/$vars&gt;
&lt;/$list&gt;
&lt;/$vars&gt;
&lt;/$list&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div tags="$:/tags/EditTemplate" title="$:/core/ui/EditTemplate/type">
<pre>\define lingo-base() $:/language/EditTemplate/
\whitespace trim
&lt;div class=&quot;tc-type-selector&quot;&gt;&lt;$fieldmangler&gt;
&lt;em class=&quot;tc-edit&quot;&gt;&lt;&lt;lingo Type/Prompt&gt;&gt;&lt;/em&gt;&amp;nbsp;&amp;nbsp;&lt;$edit-text field=&quot;type&quot; tag=&quot;input&quot; default=&quot;&quot; placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=&lt;&lt;qualify &quot;$:/state/popup/type-dropdown&quot;&gt;&gt; class=&quot;tc-edit-typeeditor tc-edit-texteditor tc-popup-handle&quot; tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[type]then[true]] ~[[false]] }}}/&gt;&amp;nbsp;&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/type-dropdown&quot;&gt;&gt; class=&quot;tc-btn-invisible tc-btn-dropdown&quot; tooltip={{$:/language/EditTemplate/Type/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Type/Dropdown/Caption}}&gt;{{$:/core/images/down-arrow}}&lt;/$button&gt;&amp;nbsp;&lt;$button message=&quot;tm-remove-field&quot; param=&quot;type&quot; class=&quot;tc-btn-invisible tc-btn-icon&quot; tooltip={{$:/language/EditTemplate/Type/Delete/Hint}} aria-label={{$:/language/EditTemplate/Type/Delete/Caption}}&gt;{{$:/core/images/delete-button}}&lt;/$button&gt;
&lt;/$fieldmangler&gt;&lt;/div&gt;
&lt;div class=&quot;tc-block-dropdown-wrapper&quot;&gt;
&lt;$set name=&quot;tv-show-missing-links&quot; value=&quot;yes&quot;&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/type-dropdown&quot;&gt;&gt; type=&quot;nomatch&quot; text=&quot;&quot; default=&quot;&quot;&gt;
&lt;div class=&quot;tc-block-dropdown tc-edit-type-dropdown&quot;&gt;
&lt;$linkcatcher to=&quot;!!type&quot;&gt;
&lt;$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group-sort]]'&gt;
&lt;div class=&quot;tc-dropdown-item&quot;&gt;
&lt;$text text={{!!group}}/&gt;
&lt;/div&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]group{!!group}] +[sort[description]]&quot;&gt;&lt;$link to={{!!name}}&gt;&lt;$view field=&quot;description&quot;/&gt; (&lt;$view field=&quot;name&quot;/&gt;)&lt;/$link&gt;
&lt;/$list&gt;
&lt;/$list&gt;
&lt;/$linkcatcher&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;/$set&gt;
&lt;/div&gt;
</pre>
</div>
<div title="$:/core/ui/ImportListing">
<pre>\define lingo-base() $:/language/Import/
\define messageField()
message-$(payloadTiddler)$
\end
\define selectionField()
selection-$(payloadTiddler)$
\end
\define previewPopupState()
$(currentTiddler)$!!popup-$(payloadTiddler)$
\end
\define select-all-actions()
&lt;$list filter=&quot;[all[current]plugintiddlers[]sort[title]]&quot; variable=&quot;payloadTiddler&quot;&gt;
&lt;$action-setfield $field={{{ [&lt;payloadTiddler&gt;addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/&gt;
&lt;/$list&gt;
\end
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;
&lt;$checkbox tiddler=&quot;$:/state/import/select-all&quot; field=&quot;text&quot; checked=&quot;checked&quot; unchecked=&quot;unchecked&quot; default=&quot;checked&quot; actions=&lt;&lt;select-all-actions&gt;&gt;&gt;
&lt;&lt;lingo Listing/Select/Caption&gt;&gt;
&lt;/$checkbox&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;&lt;lingo Listing/Title/Caption&gt;&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;&lt;lingo Listing/Status/Caption&gt;&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;$list filter=&quot;[all[current]plugintiddlers[]sort[title]]&quot; variable=&quot;payloadTiddler&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;$checkbox field=&lt;&lt;selectionField&gt;&gt; checked=&quot;checked&quot; unchecked=&quot;unchecked&quot; default=&quot;checked&quot;/&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;$reveal type=&quot;nomatch&quot; stateTitle=&lt;&lt;previewPopupState&gt;&gt; text=&quot;yes&quot; tag=&quot;div&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible tc-btn-dropdown&quot; setTitle=&lt;&lt;previewPopupState&gt;&gt; setTo=&quot;yes&quot;&gt;
{{$:/core/images/right-arrow}}&amp;nbsp;&lt;$text text=&lt;&lt;payloadTiddler&gt;&gt;/&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; stateTitle=&lt;&lt;previewPopupState&gt;&gt; text=&quot;yes&quot; tag=&quot;div&quot;&gt;
&lt;$button class=&quot;tc-btn-invisible tc-btn-dropdown&quot; setTitle=&lt;&lt;previewPopupState&gt;&gt; setTo=&quot;no&quot;&gt;
{{$:/core/images/down-arrow}}&amp;nbsp;&lt;$text text=&lt;&lt;payloadTiddler&gt;&gt;/&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;$view field=&lt;&lt;messageField&gt;&gt;/&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan=&quot;3&quot;&gt;
&lt;$reveal type=&quot;match&quot; text=&quot;yes&quot; stateTitle=&lt;&lt;previewPopupState&gt;&gt; tag=&quot;div&quot;&gt;
&lt;$list filter=&quot;[{$:/state/importpreviewtype}has[text]]&quot; variable=&quot;listItem&quot; emptyMessage={{$:/core/ui/ImportPreviews/Text}}&gt;
&lt;$transclude tiddler={{$:/state/importpreviewtype}}/&gt;
&lt;/$list&gt;
&lt;/$reveal&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/$list&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</pre>
</div>
<div caption="{{$:/language/Import/Listing/Preview/Diff}}" tags="$:/tags/ImportPreview" title="$:/core/ui/ImportPreviews/Diff">
<pre>&lt;$macrocall $name=&quot;compareTiddlerText&quot; sourceTiddlerTitle=&lt;&lt;payloadTiddler&gt;&gt; destTiddlerTitle=&lt;&lt;currentTiddler&gt;&gt; destSubTiddlerTitle=&lt;&lt;payloadTiddler&gt;&gt;/&gt;
</pre>
</div>
<div caption="{{$:/language/Import/Listing/Preview/DiffFields}}" tags="$:/tags/ImportPreview" title="$:/core/ui/ImportPreviews/DiffFields">
<pre>&lt;$macrocall $name=&quot;compareTiddlers&quot; sourceTiddlerTitle=&lt;&lt;payloadTiddler&gt;&gt; destTiddlerTitle=&lt;&lt;currentTiddler&gt;&gt; destSubTiddlerTitle=&lt;&lt;payloadTiddler&gt;&gt; exclude=&quot;text&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/Import/Listing/Preview/Fields}}" tags="$:/tags/ImportPreview" title="$:/core/ui/ImportPreviews/Fields">
<pre>&lt;table class=&quot;tc-view-field-table&quot;&gt;
&lt;tbody&gt;
&lt;$list filter=&quot;[&lt;payloadTiddler&gt;subtiddlerfields&lt;currentTiddler&gt;sort[]] -text&quot; variable=&quot;fieldName&quot;&gt;
&lt;tr class=&quot;tc-view-field&quot;&gt;
&lt;td class=&quot;tc-view-field-name&quot;&gt;
&lt;$text text=&lt;&lt;fieldName&gt;&gt;/&gt;
&lt;/td&gt;
&lt;td class=&quot;tc-view-field-value&quot;&gt;
&lt;$view field=&lt;&lt;fieldName&gt;&gt; tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;payloadTiddler&gt;&gt;/&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/$list&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</pre>
</div>
<div caption="{{$:/language/Import/Listing/Preview/Text}}" tags="$:/tags/ImportPreview" title="$:/core/ui/ImportPreviews/Text">
<pre>&lt;$transclude tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;payloadTiddler&gt;&gt; mode=&quot;block&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/Import/Listing/Preview/TextRaw}}" tags="$:/tags/ImportPreview" title="$:/core/ui/ImportPreviews/TextRaw">
<pre>&lt;pre&gt;&lt;code&gt;&lt;$view tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;payloadTiddler&gt;&gt; /&gt;&lt;/code&gt;&lt;/pre&gt;</pre>
</div>
<div key="((toggle-sidebar))" tags="$:/tags/KeyboardShortcut" title="$:/core/ui/KeyboardShortcut/toggle-sidebar">
<pre>&lt;$list filter=&quot;[[$:/state/sidebar]is[missing]] [{$:/state/sidebar}removeprefix[yes]]&quot; emptyMessage=&quot;&quot;&quot;
&lt;$action-setfield $tiddler=&quot;$:/state/sidebar&quot; text=&quot;yes&quot;/&gt;
&quot;&quot;&quot;&gt;
&lt;$action-setfield $tiddler=&quot;$:/state/sidebar&quot; text=&quot;no&quot;/&gt;
&lt;/$list&gt;
</pre>
</div>
<div key="((advanced-search))" tags="$:/tags/KeyboardShortcut" title="$:/core/ui/KeyboardShortcuts/advanced-search">
<pre>&lt;$navigator story=&quot;$:/StoryList&quot; history=&quot;$:/HistoryList&quot;&gt;
&lt;$action-navigate $to=&quot;$:/AdvancedSearch&quot;/&gt;
&lt;$action-sendmessage $message=&quot;tm-focus-selector&quot; $param=&quot;&quot;&quot;[data-tiddler-title=&quot;$:/AdvancedSearch&quot;] .tc-search input&quot;&quot;&quot;/&gt;
&lt;/$navigator&gt;
</pre>
</div>
<div key="((new-image))" tags="$:/tags/KeyboardShortcut" title="$:/core/ui/KeyboardShortcuts/new-image">
<pre>&lt;$navigator story=&quot;$:/StoryList&quot; history=&quot;$:/HistoryList&quot; openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}&gt;
{{$:/core/ui/Actions/new-image}}
&lt;/$navigator&gt;
</pre>
</div>
<div key="((new-journal))" tags="$:/tags/KeyboardShortcut" title="$:/core/ui/KeyboardShortcuts/new-journal">
<pre>&lt;$navigator story=&quot;$:/StoryList&quot; history=&quot;$:/HistoryList&quot; openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}&gt;
{{$:/core/ui/Actions/new-journal}}
&lt;/$navigator&gt;
</pre>
</div>
<div key="((new-tiddler))" tags="$:/tags/KeyboardShortcut" title="$:/core/ui/KeyboardShortcuts/new-tiddler">
<pre>&lt;$navigator story=&quot;$:/StoryList&quot; history=&quot;$:/HistoryList&quot; openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}&gt;
{{$:/core/ui/Actions/new-tiddler}}
&lt;/$navigator&gt;
</pre>
</div>
<div key="((sidebar-search))" tags="$:/tags/KeyboardShortcut" title="$:/core/ui/KeyboardShortcuts/sidebar-search">
<pre>&lt;$action-sendmessage $message=&quot;tm-focus-selector&quot; $param=&quot;.tc-search input&quot;/&gt;
</pre>
</div>
<div title="$:/core/ui/ListItemTemplate">
<pre>&lt;div class=&quot;tc-menu-list-item&quot;&gt;
&lt;$link /&gt;
&lt;/div&gt;</pre>
</div>
<div title="$:/core/ui/MissingTemplate">
<pre>&lt;div class=&quot;tc-tiddler-missing&quot;&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/missing&quot;&gt;&gt; class=&quot;tc-btn-invisible tc-missing-tiddler-label&quot;&gt;
&lt;$view field=&quot;title&quot; format=&quot;text&quot; /&gt;
&lt;/$button&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/missing&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;below&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-drop-down&quot;&gt;
&lt;$transclude tiddler=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
&lt;hr&gt;
&lt;$list filter=&quot;[all[current]backlinks[]sort[title]]&quot; template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/All/Caption}}" tags="$:/tags/MoreSideBar" title="$:/core/ui/MoreSideBar/All">
<pre>&lt;$list filter={{$:/core/Filters/AllTiddlers!!filter}} template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/Drafts/Caption}}" tags="$:/tags/MoreSideBar" title="$:/core/ui/MoreSideBar/Drafts">
<pre>&lt;$list filter={{$:/core/Filters/Drafts!!filter}} template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/Explorer/Caption}}" tags="$:/tags/MoreSideBar" title="$:/core/ui/MoreSideBar/Explorer">
<pre>&lt;&lt;tree &quot;$:/&quot;&gt;&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/Missing/Caption}}" tags="$:/tags/MoreSideBar" title="$:/core/ui/MoreSideBar/Missing">
<pre>&lt;$list filter={{$:/core/Filters/Missing!!filter}} template=&quot;$:/core/ui/MissingTemplate&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/Orphans/Caption}}" tags="$:/tags/MoreSideBar" title="$:/core/ui/MoreSideBar/Orphans">
<pre>&lt;$list filter={{$:/core/Filters/Orphans!!filter}} template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Plugins/Caption}}" tags="$:/tags/MoreSideBar" title="$:/core/ui/MoreSideBar/Plugins">
<pre>{{$:/language/ControlPanel/Plugins/Installed/Hint}}
&lt;&lt;tabs &quot;[all[shadows+tiddlers]tag[$:/tags/MoreSideBar/Plugins]!has[draft.of]]&quot; &quot;$:/core/ui/MoreSideBar/Plugins/Plugins&quot;&gt;&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Plugins/Languages/Caption}}" tags="$:/tags/MoreSideBar/Plugins" title="$:/core/ui/MoreSideBar/Plugins/Languages">
<pre>&lt;$list filter=&quot;[!has[draft.of]plugin-type[language]sort[description]]&quot; template=&quot;$:/core/ui/PluginListItemTemplate&quot; emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Plugins/Plugins/Caption}}" tags="$:/tags/MoreSideBar/Plugins" title="$:/core/ui/MoreSideBar/Plugins/Plugins">
<pre>&lt;$list filter=&quot;[!has[draft.of]plugin-type[plugin]sort[description]]&quot; template=&quot;$:/core/ui/PluginListItemTemplate&quot; emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}&gt;&gt;/&gt;
</pre>
</div>
<div caption="{{$:/language/ControlPanel/Plugins/Themes/Caption}}" tags="$:/tags/MoreSideBar/Plugins" title="$:/core/ui/MoreSideBar/Plugins/Theme">
<pre>&lt;$list filter=&quot;[!has[draft.of]plugin-type[theme]sort[description]]&quot; template=&quot;$:/core/ui/PluginListItemTemplate&quot; emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/Recent/Caption}}" tags="$:/tags/MoreSideBar" title="$:/core/ui/MoreSideBar/Recent">
<pre>&lt;$macrocall $name=&quot;timeline&quot; format={{$:/language/RecentChanges/DateFormat}}/&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/Shadows/Caption}}" tags="$:/tags/MoreSideBar" title="$:/core/ui/MoreSideBar/Shadows">
<pre>&lt;$list filter={{$:/core/Filters/ShadowTiddlers!!filter}} template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/System/Caption}}" tags="$:/tags/MoreSideBar" title="$:/core/ui/MoreSideBar/System">
<pre>&lt;$list filter={{$:/core/Filters/SystemTiddlers!!filter}} template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/Tags/Caption}}" tags="$:/tags/MoreSideBar" title="$:/core/ui/MoreSideBar/Tags">
<pre>&lt;$set name=&quot;tv-config-toolbar-icons&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-text&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; value=&quot;&quot;&gt;
{{$:/core/ui/Buttons/tag-manager}}
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;$list filter={{$:/core/Filters/AllTags!!filter}}&gt;
&lt;$transclude tiddler=&quot;$:/core/ui/TagTemplate&quot;/&gt;
&lt;/$list&gt;
&lt;hr class=&quot;tc-untagged-separator&quot;&gt;
{{$:/core/ui/UntaggedTemplate}}
</pre>
</div>
<div caption="{{$:/language/SideBar/Types/Caption}}" tags="$:/tags/MoreSideBar" title="$:/core/ui/MoreSideBar/Types">
<pre>&lt;$list filter={{$:/core/Filters/TypedTiddlers!!filter}}&gt;
&lt;div class=&quot;tc-menu-list-item&quot;&gt;
&lt;$view field=&quot;type&quot;/&gt;
&lt;$list filter=&quot;[type{!!type}!is[system]sort[title]]&quot;&gt;
&lt;div class=&quot;tc-menu-list-subitem&quot;&gt;
&lt;$link to={{!!title}}&gt;&lt;$view field=&quot;title&quot;/&gt;&lt;/$link&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$list&gt;
</pre>
</div>
<div title="$:/core/ui/PageStylesheet">
<pre>\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
&lt;$set name=&quot;currentTiddler&quot; value={{$:/language}}&gt;
&lt;$set name=&quot;languageTitle&quot; value={{!!name}}&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]&quot;&gt;
&lt;$transclude mode=&quot;block&quot;/&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$set&gt;
</pre>
</div>
<div title="$:/core/ui/PageTemplate">
<pre>\whitespace trim
\define containerClasses()
tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$
\end
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
&lt;$set name=&quot;tv-config-toolbar-icons&quot; value={{$:/config/Toolbar/Icons}}&gt;
&lt;$set name=&quot;tv-config-toolbar-text&quot; value={{$:/config/Toolbar/Text}}&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; value={{$:/config/Toolbar/ButtonClass}}&gt;
&lt;$set name=&quot;tv-enable-drag-and-drop&quot; value={{$:/config/DragAndDrop/Enable}}&gt;
&lt;$set name=&quot;tv-show-missing-links&quot; value={{$:/config/MissingLinks}}&gt;
&lt;$set name=&quot;storyviewTitle&quot; value={{$:/view}}&gt;
&lt;$set name=&quot;languageTitle&quot; value={{{ [{$:/language}get[name]] }}}&gt;
&lt;div class=&lt;&lt;containerClasses&gt;&gt;&gt;
&lt;$navigator story=&quot;$:/StoryList&quot; history=&quot;$:/HistoryList&quot; openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}&gt;
&lt;$dropzone enable=&lt;&lt;tv-enable-drag-and-drop&gt;&gt;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;
&lt;/$list&gt;
&lt;/$dropzone&gt;
&lt;/$navigator&gt;
&lt;/div&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
</pre>
</div>
<div tags="$:/tags/PageTemplate" title="$:/core/ui/PageTemplate/alerts">
<pre>&lt;div class=&quot;tc-alerts&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/Alert]!has[draft.of]]&quot; template=&quot;$:/core/ui/AlertTemplate&quot; storyview=&quot;pop&quot;/&gt;
&lt;/div&gt;
</pre>
</div>
<div tags="$:/tags/PageTemplate" title="$:/core/ui/PageTemplate/drafts">
<pre>\whitespace trim
&lt;$reveal state=&quot;$:/status/IsReadOnly&quot; type=&quot;nomatch&quot; text=&quot;yes&quot; tag=&quot;div&quot; class=&quot;tc-drafts-list&quot;&gt;
&lt;$list filter=&quot;[has[draft.of]!sort[modified]] -[list[$:/StoryList]]&quot;&gt;
&lt;$link&gt;
{{$:/core/images/edit-button}} &lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;
&lt;/$link&gt;
&lt;/$list&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div title="$:/core/ui/PageTemplate/pagecontrols">
<pre>\whitespace trim
\define config-title()
$:/config/PageControlButtons/Visibility/$(listItem)$
\end
&lt;div class=&quot;tc-page-controls&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$set name=&quot;hidden&quot; value=&lt;&lt;config-title&gt;&gt;&gt;
&lt;$list filter=&quot;[&lt;hidden&gt;!text[hide]]&quot; storyview=&quot;pop&quot; variable=&quot;ignore&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; filter=&quot;[&lt;tv-config-toolbar-class&gt;] [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]]&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=&quot;inline&quot;/&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/div&gt;
</pre>
</div>
<div tags="$:/tags/PageTemplate" title="$:/core/ui/PageTemplate/pluginreloadwarning">
<pre>\define lingo-base() $:/language/
&lt;$list filter=&quot;[{$:/status/RequireReloadDueToPluginChange}match[yes]]&quot;&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&quot;$:/temp/HidePluginWarning&quot; text=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-plugin-reload-warning&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; value=&quot;&quot;&gt;
&lt;&lt;lingo PluginReloadWarning&gt;&gt; &lt;$button set=&quot;$:/temp/HidePluginWarning&quot; setTo=&quot;yes&quot; class=&quot;tc-btn-invisible&quot;&gt;{{$:/core/images/close-button}}&lt;/$button&gt;
&lt;/$set&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;/$list&gt;
</pre>
</div>
<div tags="$:/tags/PageTemplate" title="$:/core/ui/PageTemplate/sidebar">
<pre>\whitespace trim
\define config-title()
$:/config/SideBarSegments/Visibility/$(listItem)$
\end
&lt;$scrollable fallthrough=&quot;no&quot; class=&quot;tc-sidebar-scrollable&quot;&gt;
&lt;div class=&quot;tc-sidebar-header&quot;&gt;
&lt;$reveal state=&quot;$:/state/sidebar&quot; type=&quot;match&quot; text=&quot;yes&quot; default=&quot;yes&quot; retain=&quot;yes&quot; animate=&quot;yes&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;config-title&gt;&gt; text=&quot;hide&quot; tag=&quot;div&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=&quot;block&quot;/&gt;
&lt;/$reveal&gt;
&lt;/$list&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;/$scrollable&gt;
</pre>
</div>
<div tags="$:/tags/PageTemplate" title="$:/core/ui/PageTemplate/story">
<pre>\whitespace trim
&lt;section class=&quot;tc-story-river&quot;&gt;
&lt;section class=&quot;story-backdrop&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]&quot;&gt;
&lt;$transclude/&gt;
&lt;/$list&gt;
&lt;/section&gt;
&lt;$list filter=&quot;[list[$:/StoryList]]&quot; history=&quot;$:/HistoryList&quot; template={{$:/config/ui/ViewTemplate}} editTemplate={{$:/config/ui/EditTemplate}} storyview={{$:/view}} emptyMessage={{$:/config/EmptyStoryMessage}}/&gt;
&lt;section class=&quot;story-frontdrop&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/BelowStory]!has[draft.of]]&quot;&gt;
&lt;$transclude/&gt;
&lt;/$list&gt;
&lt;/section&gt;
&lt;/section&gt;
</pre>
</div>
<div tags="$:/tags/PageTemplate" title="$:/core/ui/PageTemplate/topleftbar">
<pre>&lt;span class=&quot;tc-topbar tc-topbar-left&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]]&quot; variable=&quot;listItem&quot; storyview=&quot;pop&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=&quot;inline&quot;/&gt;
&lt;/$list&gt;
&lt;/span&gt;
</pre>
</div>
<div tags="$:/tags/PageTemplate" title="$:/core/ui/PageTemplate/toprightbar">
<pre>&lt;span class=&quot;tc-topbar tc-topbar-right&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]]&quot; variable=&quot;listItem&quot; storyview=&quot;pop&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=&quot;inline&quot;/&gt;
&lt;/$list&gt;
&lt;/span&gt;
</pre>
</div>
<div title="$:/core/ui/PluginInfo">
<pre>\define localised-info-tiddler-title()
$(currentTiddler)$/$(languageTitle)$/$(currentTab)$
\end
\define info-tiddler-title()
$(currentTiddler)$/$(currentTab)$
\end
\define default-tiddler-title()
$:/core/ui/PluginInfo/Default/$(currentTab)$
\end
&lt;$transclude tiddler=&lt;&lt;localised-info-tiddler-title&gt;&gt; mode=&quot;block&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;localised-info-tiddler-title&gt;&gt; mode=&quot;block&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;currentTiddler&gt;&gt; subtiddler=&lt;&lt;info-tiddler-title&gt;&gt; mode=&quot;block&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;default-tiddler-title&gt;&gt; mode=&quot;block&quot;&gt;
{{$:/language/ControlPanel/Plugin/NoInfoFound/Hint}}
&lt;/$transclude&gt;
&lt;/$transclude&gt;
&lt;/$transclude&gt;
&lt;/$transclude&gt;
</pre>
</div>
<div title="$:/core/ui/PluginInfo/Default/contents">
<pre>\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/
&lt;&lt;lingo Hint&gt;&gt;
&lt;ul&gt;
&lt;$list filter=&quot;[all[current]plugintiddlers[]sort[title]]&quot; emptyMessage=&lt;&lt;lingo Empty/Hint&gt;&gt;&gt;
&lt;li&gt;
&lt;$link /&gt;
&lt;/li&gt;
&lt;/$list&gt;
&lt;/ul&gt;
</pre>
</div>
<div title="$:/core/ui/PluginListItemTemplate">
<pre>&lt;div class=&quot;tc-menu-list-item&quot;&gt;
&lt;$link to={{!!title}}&gt;&lt;$view field=&quot;description&quot;&gt;&lt;$view field=&quot;title&quot;/&gt;&lt;/$view&gt;&lt;/$link&gt;
&lt;/div&gt;</pre>
</div>
<div title="$:/core/ui/SearchResults">
<pre>&lt;div class=&quot;tc-search-results&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]&quot; emptyMessage=&quot;&quot;&quot;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]&quot;&gt;
&lt;$transclude mode=&quot;block&quot;/&gt;
&lt;/$list&gt;
&quot;&quot;&quot;&gt;
&lt;$macrocall $name=&quot;tabs&quot; tabsList=&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]&quot; default={{$:/config/SearchResults/Default}}/&gt;
&lt;/$list&gt;
&lt;/div&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/More/Caption}}" tags="$:/tags/SideBar" title="$:/core/ui/SideBar/More">
<pre>&lt;div class=&quot;tc-more-sidebar&quot;&gt;
&lt;$macrocall $name=&quot;tabs&quot; tabsList=&quot;[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]&quot; default={{$:/config/DefaultMoreSidebarTab}} state=&quot;$:/state/tab/moresidebar&quot; class=&quot;tc-vertical tc-sidebar-tabs-more&quot; /&gt;
&lt;/div&gt;</pre>
</div>
<div caption="{{$:/language/SideBar/Open/Caption}}" tags="$:/tags/SideBar" title="$:/core/ui/SideBar/Open">
<pre>\whitespace trim
\define lingo-base() $:/language/CloseAll/
\define drop-actions()
&lt;$action-listops $tiddler=&lt;&lt;tv-story-list&gt;&gt; $subfilter=&quot;+[insertbefore:currentTiddler&lt;actionTiddler&gt;]&quot;/&gt;
\end
\define placeholder()
&lt;div class=&quot;tc-droppable-placeholder&quot;/&gt;
\end
\define droppable-item(button)
\whitespace trim
&lt;$droppable actions=&lt;&lt;drop-actions&gt;&gt; enable=&lt;&lt;tv-allow-drag-and-drop&gt;&gt;&gt;
&lt;&lt;placeholder&gt;&gt;
&lt;div&gt;
$button$
&lt;/div&gt;
&lt;/$droppable&gt;
\end
&lt;div class=&quot;tc-sidebar-tab-open&quot;&gt;
&lt;$list filter=&quot;[list&lt;tv-story-list&gt;]&quot; history=&lt;&lt;tv-history-list&gt;&gt; storyview=&quot;pop&quot;&gt;
&lt;div class=&quot;tc-sidebar-tab-open-item&quot;&gt;
&lt;$macrocall $name=&quot;droppable-item&quot; button=&quot;&quot;&quot;&lt;$button message=&quot;tm-close-tiddler&quot; tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=&quot;tc-btn-invisible tc-btn-mini&quot;&gt;{{$:/core/images/close-button}}&lt;/$button&gt;&amp;nbsp;&lt;$link to={{!!title}}&gt;&lt;$view field=&quot;title&quot;/&gt;&lt;/$link&gt;&quot;&quot;&quot;/&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;$tiddler tiddler=&quot;&quot;&gt;
&lt;div&gt;
&lt;$macrocall $name=&quot;droppable-item&quot; button=&quot;&quot;&quot;&lt;$button message=&quot;tm-close-all-tiddlers&quot; class=&quot;tc-btn-invisible tc-btn-mini&quot;&gt;&lt;&lt;lingo Button&gt;&gt;&lt;/$button&gt;&quot;&quot;&quot;/&gt;
&lt;/div&gt;
&lt;/$tiddler&gt;
&lt;/div&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/Recent/Caption}}" tags="$:/tags/SideBar" title="$:/core/ui/SideBar/Recent">
<pre>&lt;$macrocall $name=&quot;timeline&quot; format={{$:/language/RecentChanges/DateFormat}}/&gt;
</pre>
</div>
<div caption="{{$:/language/SideBar/Tools/Caption}}" tags="$:/tags/SideBar" title="$:/core/ui/SideBar/Tools">
<pre>\define lingo-base() $:/language/ControlPanel/
\define config-title()
$:/config/PageControlButtons/Visibility/$(listItem)$
\end
&lt;&lt;lingo Basics/Version/Prompt&gt;&gt; &lt;&lt;version&gt;&gt;
&lt;$set name=&quot;tv-config-toolbar-icons&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-text&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; value=&quot;&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;
&lt;div style=&quot;position:relative;&quot; class={{{ [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]] }}}&gt;
&lt;$checkbox tiddler=&lt;&lt;config-title&gt;&gt; field=&quot;text&quot; checked=&quot;show&quot; unchecked=&quot;hide&quot; default=&quot;show&quot;/&gt; &lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt; &lt;i class=&quot;tc-muted&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; field=&quot;description&quot;/&gt;&lt;/i&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
</pre>
</div>
<div title="$:/core/ui/SideBarLists">
<pre>&lt;$transclude tiddler=&quot;$:/core/ui/SideBarSegments/search&quot;/&gt;
&lt;$transclude tiddler=&quot;$:/core/ui/SideBarSegments/tabs&quot;/&gt;
</pre>
</div>
<div tags="$:/tags/SideBarSegment" title="$:/core/ui/SideBarSegments/page-controls">
<pre>{{||$:/core/ui/PageTemplate/pagecontrols}}
</pre>
</div>
<div tags="$:/tags/SideBarSegment" title="$:/core/ui/SideBarSegments/search">
<pre>\whitespace trim
&lt;div class=&quot;tc-sidebar-lists tc-sidebar-search&quot;&gt;
&lt;$set name=&quot;searchTiddler&quot; value=&quot;$:/temp/search&quot;&gt;
&lt;div class=&quot;tc-search&quot;&gt;
&lt;$edit-text tiddler=&quot;$:/temp/search&quot; type=&quot;search&quot; tag=&quot;input&quot; focus={{$:/config/Search/AutoFocus}} focusPopup=&lt;&lt;qualify &quot;$:/state/popup/search-dropdown&quot;&gt;&gt; class=&quot;tc-popup-handle&quot;/&gt;
&lt;$reveal state=&quot;$:/temp/search&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=&quot;tc-btn-invisible&quot;&gt;
&lt;$action-setfield $tiddler=&quot;$:/temp/advancedsearch&quot; text={{$:/temp/search}}/&gt;
&lt;$action-setfield $tiddler=&quot;$:/temp/search&quot; text=&quot;&quot;/&gt;
&lt;$action-navigate $to=&quot;$:/AdvancedSearch&quot;/&gt;
{{$:/core/images/advanced-search-button}}
&lt;/$button&gt;
&lt;$button class=&quot;tc-btn-invisible&quot;&gt;
&lt;$action-setfield $tiddler=&quot;$:/temp/search&quot; text=&quot;&quot; /&gt;
{{$:/core/images/close-button}}
&lt;/$button&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/search-dropdown&quot;&gt;&gt; class=&quot;tc-btn-invisible&quot;&gt;
{{$:/core/images/down-arrow}}
&lt;$list filter=&quot;[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$set name=&quot;searchTerm&quot; value={{{ [&lt;searchTiddler&gt;get[text]] }}}&gt;
&lt;$set name=&quot;resultCount&quot; value=&quot;&quot;&quot;&lt;$count filter=&quot;[!is[system]search&lt;searchTerm&gt;]&quot;/&gt;&quot;&quot;&quot;&gt;
{{$:/language/Search/Matches}}
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&quot;$:/temp/search&quot; type=&quot;match&quot; text=&quot;&quot;&gt;
&lt;$button to=&quot;$:/AdvancedSearch&quot; tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=&quot;tc-btn-invisible&quot;&gt;
{{$:/core/images/advanced-search-button}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;$reveal tag=&quot;div&quot; class=&quot;tc-block-dropdown-wrapper&quot; state=&quot;$:/temp/search&quot; type=&quot;nomatch&quot; text=&quot;&quot;&gt;
&lt;$reveal tag=&quot;div&quot; class=&quot;tc-block-dropdown tc-search-drop-down tc-popup-handle&quot; state=&lt;&lt;qualify &quot;$:/state/popup/search-dropdown&quot;&gt;&gt; type=&quot;nomatch&quot; text=&quot;&quot; default=&quot;&quot;&gt;
&lt;$list filter=&quot;[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]&quot; emptyMessage=&quot;&quot;&quot;&lt;div class=&quot;tc-search-results&quot;&gt;{{$:/language/Search/Search/TooShort}}&lt;/div&gt;&quot;&quot;&quot; variable=&quot;listItem&quot;&gt;
{{$:/core/ui/SearchResults}}
&lt;/$list&gt;
&lt;/$reveal&gt;
&lt;/$reveal&gt;
&lt;/$set&gt;
&lt;/div&gt;
</pre>
</div>
<div tags="$:/tags/SideBarSegment" title="$:/core/ui/SideBarSegments/site-subtitle">
<pre>&lt;div class=&quot;tc-site-subtitle&quot;&gt;
&lt;$transclude tiddler=&quot;$:/SiteSubtitle&quot; mode=&quot;inline&quot;/&gt;
&lt;/div&gt;
</pre>
</div>
<div tags="$:/tags/SideBarSegment" title="$:/core/ui/SideBarSegments/site-title">
<pre>&lt;h1 class=&quot;tc-site-title&quot;&gt;
&lt;$transclude tiddler=&quot;$:/SiteTitle&quot; mode=&quot;inline&quot;/&gt;
&lt;/h1&gt;
</pre>
</div>
<div tags="$:/tags/SideBarSegment" title="$:/core/ui/SideBarSegments/tabs">
<pre>&lt;div class=&quot;tc-sidebar-lists tc-sidebar-tabs&quot;&gt;
&lt;$macrocall $name=&quot;tabs&quot; tabsList=&quot;[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]&quot; default={{$:/config/DefaultSidebarTab}} state=&quot;$:/state/tab/sidebar&quot; class=&quot;tc-sidebar-tabs-main&quot;/&gt;
&lt;/div&gt;
</pre>
</div>
<div title="$:/core/ui/TagTemplate">
<pre>\whitespace trim
&lt;span class=&quot;tc-tag-list-item&quot;&gt;
&lt;$set name=&quot;transclusion&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;
&lt;$macrocall $name=&quot;tag-pill-body&quot; tag=&lt;&lt;currentTiddler&gt;&gt; icon={{!!icon}} colour={{!!color}} palette={{$:/palette}} element-tag=&quot;&quot;&quot;$button&quot;&quot;&quot; element-attributes=&quot;&quot;&quot;popup=&lt;&lt;qualify &quot;$:/state/popup/tag&quot;&gt;&gt; dragFilter='[all[current]tagging[]]' tag='span'&quot;&quot;&quot;/&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/tag&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;below&quot; animate=&quot;yes&quot; class=&quot;tc-drop-down&quot;&gt;
&lt;$set name=&quot;tv-show-missing-links&quot; value=&quot;yes&quot;&gt;
&lt;$transclude tiddler=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
&lt;/$set&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;
&lt;/$list&gt;
&lt;hr&gt;
&lt;$macrocall $name=&quot;list-tagged-draggable&quot; tag=&lt;&lt;currentTiddler&gt;&gt;/&gt;
&lt;/$reveal&gt;
&lt;/$set&gt;
&lt;/span&gt;
</pre>
</div>
<div title="$:/core/ui/TiddlerFields">
<pre>&lt;table class=&quot;tc-view-field-table&quot;&gt;
&lt;tbody&gt;
&lt;$list filter=&quot;[all[current]fields[]sort[title]] -text&quot; template=&quot;$:/core/ui/TiddlerFieldTemplate&quot; variable=&quot;listItem&quot;/&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</pre>
</div>
<div title="$:/core/ui/TiddlerFieldTemplate">
<pre>&lt;tr class=&quot;tc-view-field&quot;&gt;
&lt;td class=&quot;tc-view-field-name&quot;&gt;
&lt;$text text=&lt;&lt;listItem&gt;&gt;/&gt;
&lt;/td&gt;
&lt;td class=&quot;tc-view-field-value&quot;&gt;
&lt;$view field=&lt;&lt;listItem&gt;&gt;/&gt;
&lt;/td&gt;
&lt;/tr&gt;</pre>
</div>
<div title="$:/core/ui/TiddlerInfo">
<pre>&lt;div style=&quot;position:relative;&quot;&gt;
&lt;div class=&quot;tc-tiddler-controls&quot; style=&quot;position:absolute;right:0;&quot;&gt;
&lt;$reveal state=&quot;$:/config/TiddlerInfo/Mode&quot; type=&quot;match&quot; text=&quot;sticky&quot;&gt;
&lt;$button set=&lt;&lt;tiddlerInfoState&gt;&gt; setTo=&quot;&quot; tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=&quot;tc-btn-invisible&quot;&gt;
{{$:/core/images/close-button}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;$macrocall $name=&quot;tabs&quot; tabsList=&quot;[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo]!has[draft.of]]&quot; default={{$:/config/TiddlerInfo/Default}}/&gt;</pre>
</div>
<div caption="{{$:/language/TiddlerInfo/Advanced/Caption}}" tags="$:/tags/TiddlerInfo" title="$:/core/ui/TiddlerInfo/Advanced">
<pre>&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo/Advanced]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;
&lt;/$list&gt;
</pre>
</div>
<div tags="$:/tags/TiddlerInfo/Advanced" title="$:/core/ui/TiddlerInfo/Advanced/PluginInfo">
<pre>\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/
&lt;$list filter=&quot;[all[current]has[plugin-type]]&quot;&gt;
! &lt;&lt;lingo Heading&gt;&gt;
&lt;&lt;lingo Hint&gt;&gt;
&lt;ul&gt;
&lt;$list filter=&quot;[all[current]plugintiddlers[]sort[title]]&quot; emptyMessage=&lt;&lt;lingo Empty/Hint&gt;&gt;&gt;
&lt;li&gt;
&lt;$link to={{!!title}}&gt;
&lt;$view field=&quot;title&quot;/&gt;
&lt;/$link&gt;
&lt;/li&gt;
&lt;/$list&gt;
&lt;/ul&gt;
&lt;/$list&gt;
</pre>
</div>
<div tags="$:/tags/TiddlerInfo/Advanced" title="$:/core/ui/TiddlerInfo/Advanced/ShadowInfo">
<pre>\define lingo-base() $:/language/TiddlerInfo/Advanced/ShadowInfo/
&lt;$set name=&quot;infoTiddler&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;
''&lt;&lt;lingo Heading&gt;&gt;''
&lt;$list filter=&quot;[all[current]!is[shadow]]&quot;&gt;
&lt;&lt;lingo NotShadow/Hint&gt;&gt;
&lt;/$list&gt;
&lt;$list filter=&quot;[all[current]is[shadow]]&quot;&gt;
&lt;&lt;lingo Shadow/Hint&gt;&gt;
&lt;$list filter=&quot;[all[current]shadowsource[]]&quot;&gt;
&lt;$set name=&quot;pluginTiddler&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;
&lt;&lt;lingo Shadow/Source&gt;&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;$list filter=&quot;[all[current]is[shadow]is[tiddler]]&quot;&gt;
&lt;&lt;lingo OverriddenShadow/Hint&gt;&gt;
&lt;/$list&gt;
&lt;/$list&gt;
&lt;/$set&gt;
</pre>
</div>
<div caption="{{$:/language/TiddlerInfo/Fields/Caption}}" tags="$:/tags/TiddlerInfo" title="$:/core/ui/TiddlerInfo/Fields">
<pre>&lt;$transclude tiddler=&quot;$:/core/ui/TiddlerFields&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/TiddlerInfo/List/Caption}}" tags="$:/tags/TiddlerInfo" title="$:/core/ui/TiddlerInfo/List">
<pre>\define lingo-base() $:/language/TiddlerInfo/
&lt;$list filter=&quot;[list{!!title}]&quot; emptyMessage=&lt;&lt;lingo List/Empty&gt;&gt; template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/TiddlerInfo/Listed/Caption}}" tags="$:/tags/TiddlerInfo" title="$:/core/ui/TiddlerInfo/Listed">
<pre>\define lingo-base() $:/language/TiddlerInfo/
&lt;$list filter=&quot;[all[current]listed[]!is[system]]&quot; emptyMessage=&lt;&lt;lingo Listed/Empty&gt;&gt; template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/TiddlerInfo/References/Caption}}" tags="$:/tags/TiddlerInfo" title="$:/core/ui/TiddlerInfo/References">
<pre>\define lingo-base() $:/language/TiddlerInfo/
&lt;$list filter=&quot;[all[current]backlinks[]sort[title]]&quot; emptyMessage=&lt;&lt;lingo References/Empty&gt;&gt; template=&quot;$:/core/ui/ListItemTemplate&quot;&gt;
&lt;/$list&gt;</pre>
</div>
<div caption="{{$:/language/TiddlerInfo/Tagging/Caption}}" tags="$:/tags/TiddlerInfo" title="$:/core/ui/TiddlerInfo/Tagging">
<pre>\define lingo-base() $:/language/TiddlerInfo/
&lt;$list filter=&quot;[all[current]tagging[]]&quot; emptyMessage=&lt;&lt;lingo Tagging/Empty&gt;&gt; template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/TiddlerInfo/Tools/Caption}}" tags="$:/tags/TiddlerInfo" title="$:/core/ui/TiddlerInfo/Tools">
<pre>\define lingo-base() $:/language/TiddlerInfo/
\define config-title()
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
\end
&lt;$set name=&quot;tv-config-toolbar-icons&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-text&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;tv-config-toolbar-class&quot; value=&quot;&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;
&lt;$checkbox tiddler=&lt;&lt;config-title&gt;&gt; field=&quot;text&quot; checked=&quot;show&quot; unchecked=&quot;hide&quot; default=&quot;show&quot;/&gt; &lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt; &lt;i class=&quot;tc-muted&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; field=&quot;description&quot;/&gt;&lt;/i&gt;
&lt;/$list&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
</pre>
</div>
<div tags="$:/tags/TopRightBar" title="$:/core/ui/TopBar/menu">
<pre>&lt;$list filter=&quot;[[$:/state/sidebar]get[text]] +[else[yes]!match[no]]&quot; variable=&quot;ignore&quot;&gt;
&lt;$button set=&quot;$:/state/sidebar&quot; setTo=&quot;no&quot; tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class=&quot;tc-btn-invisible&quot;&gt;{{$:/core/images/chevron-right}}&lt;/$button&gt;
&lt;/$list&gt;
&lt;$list filter=&quot;[[$:/state/sidebar]get[text]] +[else[yes]match[no]]&quot; variable=&quot;ignore&quot;&gt;
&lt;$button set=&quot;$:/state/sidebar&quot; setTo=&quot;yes&quot; tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class=&quot;tc-btn-invisible&quot;&gt;{{$:/core/images/chevron-left}}&lt;/$button&gt;
&lt;/$list&gt;
</pre>
</div>
<div title="$:/core/ui/UntaggedTemplate">
<pre>\define lingo-base() $:/language/SideBar/
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/tag&quot;&gt;&gt; class=&quot;tc-btn-invisible tc-untagged-label tc-tag-label&quot;&gt;
&lt;&lt;lingo Tags/Untagged/Caption&gt;&gt;
&lt;/$button&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/tag&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;below&quot;&gt;
&lt;div class=&quot;tc-drop-down&quot;&gt;
&lt;$list filter=&quot;[untagged[]!is[system]] -[tags[]] +[sort[title]]&quot; template=&quot;$:/core/ui/ListItemTemplate&quot;/&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div title="$:/core/ui/ViewTemplate">
<pre>\define folded-state()
$:/state/folded/$(currentTiddler)$
\end
\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]
&lt;$vars storyTiddler=&lt;&lt;currentTiddler&gt;&gt; tiddlerInfoState=&lt;&lt;qualify &quot;$:/state/popup/tiddler-info&quot;&gt;&gt;&gt;&lt;div data-tiddler-title=&lt;&lt;currentTiddler&gt;&gt; data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-view-frame [&lt;currentTiddler&gt;is[tiddler]then[tc-tiddler-exists]] [&lt;currentTiddler&gt;is[missing]!is[shadow]then[tc-tiddler-missing]] [&lt;currentTiddler&gt;is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [&lt;currentTiddler&gt;is[shadow]is[tiddler]then[tc-tiddler-overridden-shadow]] [&lt;currentTiddler&gt;is[system]then[tc-tiddler-system]] [{!!class}] [&lt;currentTiddler&gt;tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}&gt;&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;&lt;/$list&gt;
&lt;/div&gt;
&lt;/$vars&gt;
</pre>
</div>
<div tags="$:/tags/ViewTemplate" title="$:/core/ui/ViewTemplate/body">
<pre>&lt;$reveal tag=&quot;div&quot; class=&quot;tc-tiddler-body&quot; type=&quot;nomatch&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=&quot;hide&quot; retain=&quot;yes&quot; animate=&quot;yes&quot;&gt;
&lt;$list filter=&quot;[all[current]!has[plugin-type]!field:hide-body[yes]]&quot;&gt;
&lt;$transclude&gt;
&lt;$transclude tiddler=&quot;$:/language/MissingTiddler/Hint&quot;/&gt;
&lt;/$transclude&gt;
&lt;/$list&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div tags="$:/tags/ViewTemplate $:/tags/EditTemplate" title="$:/core/ui/ViewTemplate/classic">
<pre>\define lingo-base() $:/language/ClassicWarning/
&lt;$list filter=&quot;[all[current]type[text/x-tiddlywiki]]&quot;&gt;
&lt;div class=&quot;tc-message-box&quot;&gt;
&lt;&lt;lingo Hint&gt;&gt;
&lt;$button set=&quot;!!type&quot; setTo=&quot;text/vnd.tiddlywiki&quot;&gt;&lt;&lt;lingo Upgrade/Caption&gt;&gt;&lt;/$button&gt;
&lt;/div&gt;
&lt;/$list&gt;
</pre>
</div>
<div tags="$:/tags/ViewTemplate" title="$:/core/ui/ViewTemplate/import">
<pre>\define lingo-base() $:/language/Import/
\define buttons()
&lt;$button message=&quot;tm-delete-tiddler&quot; param=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;&lt;lingo Listing/Cancel/Caption&gt;&gt;&lt;/$button&gt;
&lt;$button message=&quot;tm-perform-import&quot; param=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;&lt;lingo Listing/Import/Caption&gt;&gt;&lt;/$button&gt;
&lt;&lt;lingo Listing/Preview&gt;&gt; &lt;$select tiddler=&quot;$:/state/importpreviewtype&quot; default=&quot;$:/core/ui/ImportPreviews/Text&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]&quot;&gt;
&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;{{!!caption}}&lt;/option&gt;
&lt;/$list&gt;
&lt;/$select&gt;
\end
&lt;$list filter=&quot;[all[current]field:plugin-type[import]]&quot;&gt;
&lt;div class=&quot;tc-import&quot;&gt;
&lt;&lt;lingo Listing/Hint&gt;&gt;
&lt;&lt;buttons&gt;&gt;
{{||$:/core/ui/ImportListing}}
&lt;&lt;buttons&gt;&gt;
&lt;/div&gt;
&lt;/$list&gt;
</pre>
</div>
<div tags="$:/tags/ViewTemplate" title="$:/core/ui/ViewTemplate/plugin">
<pre>&lt;$list filter=&quot;[all[current]has[plugin-type]] -[all[current]field:plugin-type[import]]&quot;&gt;
&lt;$set name=&quot;plugin-type&quot; value={{!!plugin-type}}&gt;
&lt;$set name=&quot;default-popup-state&quot; value=&quot;yes&quot;&gt;
&lt;$set name=&quot;qualified-state&quot; value=&lt;&lt;qualify &quot;$:/state/plugin-info&quot;&gt;&gt;&gt;
{{||$:/core/ui/Components/plugin-info}}
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$set&gt;
&lt;/$list&gt;
</pre>
</div>
<div created="20210530011305633" modified="20210924001237572" title="$:/core/ui/ViewTemplate/subtitle">
<pre></pre>
</div>
<div tags="$:/tags/ViewTemplate" title="$:/core/ui/ViewTemplate/tags">
<pre>&lt;$reveal type=&quot;nomatch&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=&quot;hide&quot; tag=&quot;div&quot; retain=&quot;yes&quot; animate=&quot;yes&quot;&gt;
&lt;div class=&quot;tc-tags-wrapper&quot;&gt;&lt;$list filter=&quot;[all[current]tags[]sort[title]]&quot; template=&quot;$:/core/ui/TagTemplate&quot; storyview=&quot;pop&quot;/&gt;&lt;/div&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div created="20210923233218998" modified="20210923233239196" tags="$:/tags/ViewTemplate" title="$:/core/ui/ViewTemplate/title">
<pre>&lt;!-- \whitespace trim
\define title-styles()
fill:$(foregroundColor)$;
\end
\define config-title()
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
\end
&lt;div class=&quot;tc-tiddler-title&quot;&gt;
&lt;div class=&quot;tc-titlebar&quot;&gt;
&lt;span class=&quot;tc-tiddler-controls&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;config-title&gt;&gt; text=&quot;hide&quot;&gt;&lt;$set name=&quot;tv-config-toolbar-class&quot; filter=&quot;[&lt;tv-config-toolbar-class&gt;] [&lt;listItem&gt;encodeuricomponent[]addprefix[tc-btn-]]&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;&lt;/$set&gt;&lt;/$reveal&gt;&lt;/$list&gt;
&lt;/span&gt;
&lt;$set name=&quot;tv-wikilinks&quot; value={{$:/config/Tiddlers/TitleLinks}}&gt;
&lt;$link&gt;
&lt;$set name=&quot;foregroundColor&quot; value={{!!color}}&gt;
&lt;span class=&quot;tc-tiddler-title-icon&quot; style=&lt;&lt;title-styles&gt;&gt;&gt;
&lt;$transclude tiddler={{!!icon}}&gt;
&lt;$transclude tiddler={{$:/config/DefaultTiddlerIcon}}/&gt;
&lt;/$transclude&gt;
&lt;/span&gt;
&lt;/$set&gt;
&lt;$list filter=&quot;[all[current]removeprefix[$:/]]&quot;&gt;
&lt;h2 class=&quot;tc-title&quot; title={{$:/language/SystemTiddler/Tooltip}}&gt;
&lt;span class=&quot;tc-system-title-prefix&quot;&gt;$:/&lt;/span&gt;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;
&lt;/h2&gt;
&lt;/$list&gt;
&lt;$list filter=&quot;[all[current]!prefix[$:/]]&quot;&gt;
&lt;h2 class=&quot;tc-title&quot;&gt;
&lt;$view field=&quot;title&quot;/&gt;
&lt;/h2&gt;
&lt;/$list&gt;
&lt;/$link&gt;
&lt;/$set&gt;
&lt;/div&gt;
&lt;$reveal type=&quot;nomatch&quot; text=&quot;&quot; default=&quot;&quot; state=&lt;&lt;tiddlerInfoState&gt;&gt; class=&quot;tc-tiddler-info tc-popup-handle&quot; animate=&quot;yes&quot; retain=&quot;yes&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/TiddlerInfoSegment]!has[draft.of]] [[$:/core/ui/TiddlerInfo]]&quot; variable=&quot;listItem&quot;&gt;&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; mode=&quot;block&quot;/&gt;&lt;/$list&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
--&gt;</pre>
</div>
<div tags="$:/tags/ViewTemplate" title="$:/core/ui/ViewTemplate/unfold">
<pre>&lt;$reveal tag=&quot;div&quot; type=&quot;nomatch&quot; state=&quot;$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar&quot; text=&quot;hide&quot;&gt;
&lt;$reveal tag=&quot;div&quot; type=&quot;nomatch&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=&quot;hide&quot; default=&quot;show&quot; retain=&quot;yes&quot; animate=&quot;yes&quot;&gt;
&lt;$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=&quot;tc-fold-banner&quot;&gt;
&lt;$action-sendmessage $message=&quot;tm-fold-tiddler&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedState=&lt;&lt;folded-state&gt;&gt;/&gt;
{{$:/core/images/chevron-up}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal tag=&quot;div&quot; type=&quot;nomatch&quot; stateTitle=&lt;&lt;folded-state&gt;&gt; text=&quot;show&quot; default=&quot;show&quot; retain=&quot;yes&quot; animate=&quot;yes&quot;&gt;
&lt;$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=&quot;tc-unfold-banner&quot;&gt;
&lt;$action-sendmessage $message=&quot;tm-fold-tiddler&quot; $param=&lt;&lt;currentTiddler&gt;&gt; foldedState=&lt;&lt;folded-state&gt;&gt;/&gt;
{{$:/core/images/chevron-down}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div title="$:/core/wiki/title">
<pre>{{$:/SiteTitle}} --- {{$:/SiteSubtitle}}</pre>
</div>
<div created="20210530002303891" modified="20210925010633762" title="$:/DefaultTiddlers">
<pre>copincha</pre>
</div>
<div title="$:/favicon.ico" type="image/x-icon">
<pre>AAABAAEAAAAAAAEAIABxrwEAFgAAAIlQTkcNChoKAAAADUlIRFIAAAJEAAACRAgGAAAA9+A7WgAAIABJREFUeJzsvXmYXOV95/s5S51aetNuJBAYCUkgFmFsE3AwxhCwnQmZiY0x9p3rubHH12P73iR3nuTemcdPcnMzmbETPInH4JjFjAVILEaA2JERqxASEkKtfd9aLbXU+1Jd61nuH+953zpVXa21perl/eg5T7eqa/nVqVPn/Z7fagRBgEaj0Wg0Gs1Exqy1ARqNRqPRaDS1RgsijUaj0Wg0Ex4tiDQajUaj0Ux4tCDSaDQajUYz4dGCSKPRaDQazYRHCyKNRqPRaDQTHi2INBqNRqPRTHi0INJoNBqNRjPh0YJIo9FoNBrNhMeutQEajWZMYAPTgWnAVGAKMBmYFG6N4dYA1AN1QApIAgkgHm6xcLPCzQSM8DUCwAe8cCuGWz7cckAWyACDQBoYAPrDrTfceoBuoAvoBDoAd4T3h0ajGWcYenSHRjPhmR1uFwEXArOAmeF2ATADIYTGMp1AO3AMaAu3o8ARoBU4HG4ajWaCogWRRjP+mQRcFm5zgEvD7ZJwi9XOtFFFETgUbgfCbT+wN9x6a2eaRqM512hBpNGMHy4Brgi3BeE2H+Hx0Zw9R4HdwK5w2xFuh2pplEajGRm0INJoxh4NwDXhdjVwFXAlIq9Hc/7pBrYBW4EtwOZwG6ilURqN5vTQgkijGd00AJ8GrgM+BVyLEECa0c9WoBnYCHwMbECLJI1m1KIFkUYzurgGuB74bLh9qrbmaEaYjcD6cFuH8CRpNJpRgBZEGk3tsIHfB24MtxsQFV2aiUM7sBZYE26r0S0CNJqaoAWRRnP+sICbgc8DNyHEUKqmFmlGGxmEKHofWAW8h+jJpNFozjFaEGk055bPALcAXwi3hppaoxlrDADvhts7wEc1tUajGcdoQaTRjCwXALeF262IUniNZqQ4BLwFvBlux2prjkYzftCCSKM5ez4D3AHcjvAGaTTni3eAN4Dfob1HGs1ZoQWRRnNmfDncvgRcXmNbNBqAncAK4PVw02g0p4EWRBrNqREH/lW4/SEiNKbRjFaOAa8Cr4RbvrbmaDSjHy2INJrhiQN3htsfoTtBa8Ym3cDLwEvhpsWRRlMFLYg0mqHcCfwb4I8Z+1PeNZooncCLwHKEONJoNCFaEGk0gpuBryKEkK4M00wEDiGE0XOIfkcazYRGCyLNRGYB8LVwu67Gtmg0teRj4Nlw21VjWzSamqAFkWaiEQe+DtyNCI1pNJpyXgJ+CzyDzjfSTCC0INJMFH4P+AZCCF1YY1s0mrHAEYQwehr4sMa2aDTnHC2INOOZJPBN4B5E00SNRnNmvAE8BTwJZGtsi0ZzTtCCSDMeuQb4X4BvARfV2BaNZjzRCjwBLAU219gWjWZE0YJIM57418C/Be6qtSEazQRgGbAEeKHWhmg0I4EWRJqxTgPw7XC7vsa2aDQTkXXAY+E2UGNbNJozRgsizVjlMuDfhdvsGtui0WjgMPBouO2tsS0azWmjBZFmrPF7wP8G/CmihF6j0Ywu8sBvgMXo6jTNGEILIs1Y4XbgO4iKMY1GMzZ4CvifiCo1jWZUowWRZrTzr4HvopsoajRjmZeAR9AJ2JpRjBZEmtHK14F/D9xRa0M0Gs2I8Tvg14gu2BrNqEILIs1o4xvA94Dbam2IRqM5Z7wJPIzogq3RjAq0INKMFu4Cvg/8Qa0N0Wg0542VwIOInkYaTU3RgkhTa/4Y+A/AV2ptiEajqRmvAQ8AL9baEM3ERQsiTa34A+AHwFdrbYhGoxk1PAf8CuE50mjOK1oQac431wM/RDRU1Gg0mmo8CvwLogu2RnNe0IJIc764DPgR8H8Ado1t0Wg0ox8XuB/4JbrzteY8oAWR5lzTCPyfCCF0QY1t0Wg0Y49jCGF0H9BfY1s04xgtiDTnku8gxNC1tTZEo9GMeZoRouh/1toQzfhECyLNueAO4M+Af1VrQzQazbjjFeAXiCaPGs2IoQWRZiSZD/w5Imlao9FoziX/AvwPYHetDdGMD7Qg0owEJvB/AX8BXFRjWzQazcShFfg58M+AX2NbNGMcLYg0Z8udCDH0xVobUkvk98gwjKp/932/7G/D3U+jgdLxBKVjpdoxFgQBQRBgmub5NXD08TZCFL1Ua0M0YxctiDRnylzgP6LDY8NS7bulhZCmGkEQDBE6EsMwqgqk4R47wfkX4J+AfbU2RDP20IJIcyb8ACGGLqu1IaOV6PdKX8FrTpXhhI8WRKfFXoQo+lWtDdGMLbQg0pwONwJ/iR63ccqcLJSm0ZwtWhANy3PAz4A1tTZEMzbQgkhzKsQRQugvgUk1tmVUooWP5nxyIo+RpoxehCj6GZCvsS2aUY4WRJqTcTvwV+FPzTCcTBBVfs/0IqaJUi2HSN4mc4gqk6sl+lg6Jd4A7g1/ajRV0YJIMxwNCCH0fyM8RJpTpDJ/KPpTLnDyd40GRBWizDMLggDf95UIMk0T13XV79FjSHNa5IF/RAijgRrbohmFaEGkqcaXEELo1lobMhaRV/eVYghKgkiLIk0Uz/OU2AmCAM/zygRRLpfDsixs28ayrFqbO9Z5CyGMVtTaEM3oQpe+aKIkgb8FlqPFUBlRgRP9f7ULCrmQWZaF53kMDg5SLBaxbRvf9ykWi2WhENd1z+db0YxCoiI5CAJs26ZQKKjbfN9Xx49E/u55Xtlt0fvI56v8/wS/EL4VcY77W8Q5T6MBtIdIU+IW4P8BvlxjO0Yl0ZCG/H/lIuZ5nhJCIBYquVi5rotpmuo5TNPEsiwMwxjy3JrxT7Xzbj6fJ5FIqL8XCgV1jEgP0uDgIJZlUVdXN+R4O9Fzn2oJ/wTkdeAfgHdqbIdmFKDPwhoQ1WPL0GJoWCoXlGpiSIYzPM+jWCwC4DgOjuOUXblXLkJaDGkMw8C27bL/+77P4OCgus22bWzbVoJGHm+u65Z5hSpDspXH23DiaILyZcS57y9rbYim9mgP0cTmGuA/A/fU2pDRjBRAUUFzomoy2YjRdV3a29s5duwYsViMOXPmKHEUj8eHPE5frU885Pm3UCgQj8fxfZ9CoUAikaBYLCrP0IYNG0gmk8yaNYvp06cPW3l2qseQrlSrylPAT4DNtTZEUxusv/3bv621DZra8O+AXyBCZZoqVMsZkomvUMrdkCENWQlkWRbpdJqPPvqIZ555hieeeIJ0Os0VV1zBpEmTcF13SD5IFL04jT+GEyzRJHvTNJVn0fd9HMfBsixWrVrFT37yE9avX08qlWLu3LnYtq0Sr6tVp0VfV4bWqr1m9DYNVyHyiwaATTW2RVMD7JPfRTPOmIbwCv3HWhsylpAiJpoILfOI5ILkOA75fJ7Nmzfz9ttv89Zbb/Hxxx/T1tbG0aNHueGGG5g1axaO4+B5Hr7vY1mW+qmZmARBoER0LBYjHo+TyWRwHIfu7m6effZZXnvtNWKxGD09PRw8eJBrr72Wa6+9lunTp5cJocoNKCvXl6+nqxyHZQGwGOE9/wnQWVNrNOcV7SGaWNwC/Bz4tzW2Y9RTGVKIVvnk83klYjzPI51Ok81m6ejo4IMPPmDJkiUsXbqUjz76iHQ6jeM49Pb2MnPmTObOncukSZPKru6rzTrTC9X4olqYVeaVBUFAJpNhYGAA27aJxWIYhkFnZycrV67k2Wefpbe3l2KxSEtLC++//z579uwhm82q8JrMP5LeykKhUOaxrBRA+vg6KTcCnwIOAwdra4rmfKEF0cThRwgxdG2tDRlrRPvBFAoFMpkMlmWpPI+uri42btzIG2+8wdNPP80777xDe3s7lmWppFdZSj1//nxmz54NlK7cpSjSIYyJg/TgSFEUj8dJJpPE43EKhQK2bbNmzRruu+8+mpubyWQyxGIxbNtmcHCQzs5ONmzYwM6dO6mvr2fevHnqeJN5SJ7nEYvFSCQSVXthaU7KXOAOREPH9TW2RXMe0CGz8c9M4McIQTRhqVZqHBUhlRVglRVkhUKBVCqF7/skEglSqRSDg4OsXr2aV199lTVr1nDgwAG6urrUFbnruliWRTweJ5crsGXLNt59dxVXXHElF154YRhyMzEMkY8UvZKvtF0vYOOLaB5P1FMYBAGxWIxCoaAETzabZcqUKeRyOXzfp6GhgWKxSHt7O9lslpaWFrZs2cIdd9zB3LlzufTSS1VSP0BnZydNTU04jgOgBFfla0eP+cpKygnMLOB+4ArgvwJttTVHcy7RHqLxzS3AP6OryE6aSBr9uxQzMsFVhjFkomssFuPgwYO89NJLPPbYYyxfvpzDhw8rz1EqlSKRSKjnFx2GY/T19bF3714AvvjFL2LbQgwNDmZJJOJqEZKVRZX2a8YnhmFQLBbJ58XsUcdx+N3vfsfSpUvZtWsXnufR1NREPp9X4VrTNFX4dmBggC1btrBu3Tr279/PjBkzmD17No7jYBgG9fX1ZeM/pBiKFgdIcSTtiYo1edsE53pgETqENq7Rgmj88j3gn4Dram3IaESe6GUOh6zwkQ0U5ZgEQHWWzuVy9Pf3s2rVKn71q1/x2GOP0dzcTDabJQgCkskkpmmSz+cpFAoUi0WVe+Q4cWIxIYoymQy33HILiUQS3w9IpUQzPulRkj+lnXoxGh9UiouoKMnlcuFxIhLuf/nLX/Liiy8qkeS6rhJD8niVotl1XXK5HN3d3bS0tNDS0gLA9OnTaWhoUB6hXC6njm1ZFGCapvJORm2M2qkbhyrmAF8EBoGPa2yL5hygBdH4ox74O0T31Uk1tmXUUs1bZBgGsVgMEGEFmThtWRZ9fX28+OKL/PrXv2bx4sW8+eabdHd3qzygWCymkqzlY+XzBkFALpdXAqmzs5PZs2ezaNGiMM/DIQjESI9YLDZkgdKCaOwzXHdoeXuxWFRh2A8//JBHHnmEw4cPk0ql1HETrWiUSfkgGnvK/laFQoGWlha2bdvG1q1byWQyTJ8+nUQiQSKRUHlwUuREt2rVadVsnuBMAu5EjPxYCxRqa45mJNGCaHxxNfDfge/X2pDRRmXPn+hVehAEyjsk7yc9RJlMhra2Nl566SUefvhhXnrpJY4fP65ygwBVQl8oFMp6FcViMeV5isXEgiUXuEKhwBVXXMGMGTPCnJG88iZFh3xWq0DTjD2qiYuoAJGNPzdt2sTDDz/Mu+++q44HOQcvSmV5vecF+H5APJ7AdT3a2o6xadNm9uzZS2dnFw0NjUydOo143KFY9LDtGGCQyWTx/QDTNMp6GMljUFelDctNwGXALqC9xrZoRggtiMYPdwI/Q1RFaKoQzYuQm8wVkqJGjkbo7+9n//79vP322yxbtoyHH36YHTt2EASBqgRyXVflX8hGeRJZPSRzPXy/tNAAtLS0qGaNkydPxvdLeRzSSxVdnDTjh2oeIsdx6OjoYMWKFTzxxBN0d3fjOI4S2ZWjX6KdqoWHx8I0TWzbJpvNEo/HsW2btrY21q9fz+HDh7Ftm7q6evV6IMR8KpWiUMgr8W1ZVlnfokqbNYorgU8Dx4HdNbZFMwLoKrPxwY+AvwY+UWtDRiuVJ/RoDpEMUcn8jV27dvHGG2+wdu1adu7cycGDB1WPGMMwVF5HIpHAsiw1zb7a68lKn1gsRrFYJJfLqQ7EmzZtYsuWLVx00UU0NTWoPCU54LNy4dOMXYYbuBo9Tvbt28f777+vxJAUQpXiB0oez8ru1NGhw1FBvXr1atrb23nttddYtGgRN998M1deeSXJZLKsr1Y0N0mPdTolrgceBv4L8Msa26I5S7SHaGyTQuQL/TdE7pBmGORCIYnmTgDE43GOHz/Oxx9/zIsvvsgzzzzDhx9+SEdHhxI7stIsmswqczlkiEwuTlI8yYXL83w1nFMmaff19WFZFvPmzeOTn7wEwzAYHBwkmUwCWhCNJyoruCTy966uLtasWcNTTz1FT08PgDruol3M5fElvZLyuaWHSB4vjuMQj8fLRE1rayt79+5l79697Nmzh4GBASZNmsSUKVMwDFS+nHxOXX5/ytQDfwgkgDVA8cR314xWtIdo7HIZ8DfA/1prQ0Y78ipalh7n83lSqZT6m+u6bNq0iXfeeYdVq1axbds2jh49SrFYLEs2LRRK+ZOV/YtkHpJEeoYk0b4wjuOo0Mbu3bvZuHEj11xzlaoIkmG2Sts1YwMpIqQYiXpvSiFUX4VGi8UiR48eZeXKlXR0dBCPx1XrB6DsuaKvET3GopVnlmVRKBTU8RoV/8VikcOHD9Pa2srWrVs5dOgQX/va11i06GqSyaRqABmLxcqaR0o7Kr1P8nYNAP8JuBBxkbq3xrZozgDtIRqbfB64F/iTWhsyVpCLQS6Xo76+XvX68X2fxYsXs3TpUl5//XU2btxIZ2cnQRCo0JX06MDZnPyNMnElFzx5xX/JJRdz0UUXMWnSJHK5nBrfIOdcaUY/JyqrB+GByWQy5PN5Ve1lGAbt7e08/vjjrFq1itbW1rL8nagwOjHlAiwqZKJiXYbFCoUCg4ODdHV1sWvXLlpbDzNt2jSamppUYr/syi6PxZP18tIAolfRQkSvopbamqI5XbQgGnvcBfwjYtaO5hSRwkOONti7dy+bN29m1apV/OxnP2Pbtm0cOXIEz/NwHEeJl8rp4VD9iv3klCd0ywq0bDZLZ2cnvu+xaNEiGhsbVfm+YRjKY6QXntHNiTwm0c9RIsNTpmny+uuv88tf/pJDhw6VdaqOepROTrlQqeZRkjlI8pj2PI/Ozk52797N+vXraGtro729nUKhQDKZpKmpiUQioRo6yvdSTRhpypgDfAboALbX2BbNaaBDZmOLHyLCZDp5+jSRidAdHR3s2rWLrVu3smzZMtauXUsqlcLzPGzbVvk7g4ODqmpMiijJmSabVoZSHMchl8vR3t7O1q1b2bp1KxdffLHyCsh5acP1hql8Xk3tGC7XS352juOQTqfVIFff95k1axaZTIZ169axb98+1dwz6hU601BppT3RvDf5f1lRWSwW6evr48knn+Sdd97hW9/6luq2LkNx0i7NKXM1YuTHDOBfamyL5hTRHqKxw98APwUaam3IWMRxHDVk9aWXXuLee+9l9+7dTJ06VXXylb2IisViWT+hqBg60VX4iTCM6vOipOg6fLiFvr4+vvKVrwCohFhZeVZtYnnUBr1Y1Z5qYijqYZSeFzkLr6enh2XLlvGLX/yCTCZTFuqKtnA4teMsKNuCwC/7KfoMeVXvY1km8XicCy+8kLa2NrZv386sWbO48cYbaWxsLJuzpz1Dp0U98OXw93draYjm1NCZmqOfKYgp9f8foJNJzpBsNqvmkN1yyy187WtfU4tStGpH5k/I5NRKKrv5niqVIQfP85Twklfq27Zt47333lNX5jIBXDaA1GXQY4fKxomyrUMmk1HeyDVr1vD0008zMDCgxLfsh1VZXn+6r1t5mxRYhmFgWVaZ8DIMg2w2S1tbG0EQsHDhQq6++mo1akbmEGnOCAtx7v454lyuGcVoQTS6mYsYzvrntTZkrCOHrSYSCebMmcPNN9/MokWLSCQS5PN50um0aswIIrQQzeM4WyoXtmjJv/x7d3c3jz76KO3t7biuqwSczGfSjB0qc21kHk48HieVStHZ2ckLL7zA6tWrGRwcLBsTAyfOSTqV16u8vfJ3KcDkBUAymaRQKLBgwQJuv/12Zs+erYYay6KCSs+kPiZPiz9HnMvn1toQzfBoQTR6uQ4xnPXbtTZkPJDNZhkYGCCRSDBjxgw+//nPc9tttxGPx8tCYzJsBqW8i5E88VeORwAhvmzbpre3l9WrV/P888/T3d2tyv4HBwdH7PU15xcpJGRINggCNa9s5cqV5PP5yFgOUY4vQ7vRvkKnQjXvZWUvIektkgIMRCgvm80Si8W46aab+OpXv8r8+fNPKZlfi6LT4tvogdujGp1DNDq5BdFs8Us1tmNcIMME0uPjOA4NDQ2qN9DWrVvxXBfDCAjCnAowygZgDj3xi/uc+lZOZVm07wfEYg6Dg2mOHz/OvHnzuPzyy8lms6pvTTSPA6S48sL8kFIuUbR5n84xGnkqk6eF6PAQN5Xn5xgGGAa4rqfGZXR1dfH444/z1ltvqYpCAp/ADyAIUE8dBJSOOnm8nUiARI/JofeTndiF7Sa+H5BIJDEME9/3mD9/PnfffTdf/OIXSSQSFAoFPM+jrq5OVahVqzbTnBYLwu0QojRfM4rQHqLRxx8hegzdUmM7xhW+79PU1ESxWKS/vx+A6667ju985zs0NDQQj4s8Cdk0MSpWzmVTRLmoOI6jZqrt37+ft956i5aWFhKJBLFYTHW+ruy2LfNBojZWW7g0Z09UxEJp7EtUfMr7REdogOhyns/nKRaLrFy5knfeeYf6+voh3aTPnBMfo7ZtK88TlIYXS6/V5MmTufPOO/n0pz9NEATk83kcx6Gurm7IWBrNWXML4hz/RzW2Q1OBFkSji28gegx9ptaGjDfy+dLwylQqhWVZpFIpLr30UmbPnk0imcT1AgzDwrJEB2EZUhALgnmS7fSJChWZ9GrbDr29/axatZrm5s1loY7KxVhgIn+VjR7lNlwfJc3pUy25WXpNhAC1CALheTFNG9O0kceG54n9n0gk6O3t5eOPP+bAgUP096dJpzOh2C1/blkLNvT4OrNjTo6ZiTYHlSHieDyOZVl87nOfY+HChcTjcYrFIul0GkA3Bj03fAZxrv9GrQ3RlNAhs9HDnwJ/jxjJoRlhZB8YQOXm2LZNQ0MD8+fP5/33V9HR0UkikVAJpjLhVIiV6IpVbTE6WTij4t4VK2DlWIf+/n7q6+tZtOgampqa1NW9DJtFq4aieSLR8nzpNTpZmb7uY3RqRPd1NL9HJky7rqtul6FLz/NwXRfXdWlra+OnP/0pjz/+OIVCUd3HNA2CCsEVSamusMKM/HX4kGzlsRid2SfCxqJy0fd95s2bx/3338edd96pvENSJMkO79HjSjNiTAc+C/QBzTW2RYP2EI0WfgD8BLik1oaMV2TickNDg5pSbxgG6XSaq666it/7vRuZNGkSg4ODYe5EQC5XwHV9DMPCILqZYJRvBkbFfU68EZhlm2VZaoaUnEC+Zs0a3n13Ffl8kVgsjmXF8LyAICgtcNJzIa/iXdelv7+fTCZTVikHujLobIgKnHw+r8rno4n3UvgAuK6P6/pIj5HjJOjt7WfHjl3096fLmm8KsQtBAH64GYZV5bgTx96Q26oKlaFeJCF2igSBEGzFYpFEIsGVV17JxRdfTH9/P9lsllQqpUK0snO25pxxCeLc/4NaG6LRHqLRwF8A/wWYVmtDxjOmaRKLxZRnRXpiEokE8Xic+vp62tra2L9/f1h+H1M9gizLwveiV+WlHwQikfXsr50NXLdYlgjd29tLLpfjsssuY9asWcRiFr4fhPZZalGTj5Hix7ZtUqmUmkflOM6QCqRq4yU0J0buy1gspnK3pFCS3czlfvQ8P8zTESG1gwcP8utf/5q33nqLfD6vBLn4PIZ6Fw1DihmZhxT1BFV6hU7knSzlDEnPUF1dnepQvXDhQu655x5uueULJBIJ5eGSNg7XEFQzotQDvw/kgbU1tmVCoz1EteWvEGGySbU2ZLzjeZ5KgI3FYqriR4afrr/+ev7wD/+QWbNmkcvlSgubG1AouMhFKMAkIOLdKfsKnU7VmdgMw1T9kaTnqFj0iDtJCnmX9evX895779HR0YHvg2WZStS5rh/aZpZV0FmWRW9vL5s3b6a5uZnu7u4hjQK1p+j06O/vZ9OmTaxdu5bjx49TLBbxfZ9CoUA6ncZ1fUzTxrYdgqBUoQgwOJihs6ObD1av5dixdgwsCnkX30PlFw3JGVLHl4H4qMpzhwIDAsMIt5PbLz1XMu+pWCzS1NTE5z73OW688UYSiYQq+fc8TyXyB0FALpcbyV2pqc4kxFrwV7U2ZCKjPUS14z8jOpgma23IREAuTpZlMTg4qDxGsi9MXV0djuOwefNmDhw4gGGIRcPAJCCI+IAqV59Q2ACnk0ME0SvuUuM+ANuy1UiRnt5uYrEY1113HVOnTiUWsykWXQxDiCCZ7xGLicq4gYEBmpubWbZsGb/5zW/YsmUL06ZNY86cOUN60lQ28NMMz8GDB3niiSdYvnw5x48fV+FXOeOrWHTDvDRLdSEXrR6KtLe38+jix/jggw/oH+gX7R488XmbhklJm0pvESIsG/5W/lP+boBR4bWsevyVPEQgPE9S6MybN4+vfe1r3HDDDSKPKTw+ZG8umf+USCTCx+pj5BzjADcDHvB+jW2ZkGhBVBt+jBBDTq0NGSkqp7JH8yuqdbqVV6PVysJPt0vvqSCfUw7alCEEaYO8Iu7u7ubQoUO0t3eEFTmh3DFNMAwMZIfpan1hTs87FMjNCMKeMwEEkEwm1XDZmO3Q0d5JQ2M9c+fOpaGhEccR09DFTKwEQQC5XJZDhw7xxhtvsHjxYl599VXWr19Pe3s7s2bNYs6cOUyZMkV5v2TJ9cnmtU00osctlBLw16xZwxNPPMF7773H9u3baW1tVV65xsZGUqk6lXcjQ5X9/f24rsuLL77IU089TUdHhxgyHOaAqZBb2LOoUvQYoUdIhM9Cb1HZMRcVRsOH3kSfoYBkMqX6cU2bNo177rmHu79+Dw0N9eTzwgsUbe8gS/PF85zdMXEq/bBkHlY0/Cg/j6iHq5JoqHIcYANfAHxgVY1tmXBoQXT++WvgbxEH/rhB5lRES3plNU40DyHqoai8XXIumr4N15dHvm6xWFRX/Xv27OHgwUPhCdknmUjihuG2UnyiMp/jLEJQRoBplBZhuSBE+9mk0wPEYjGuvfZaDMMMR3vECALo6Ojg8OEWHnjgAR566CGam5tVxVM+nyefz3PxxRczf/58ADUWRIqhqDCK7quJhMyZkZ4R2cDQtm127NjBK6+8wvvvv09PTw+e53Ho0CE+/vhjdu3aRU9PDxddNJv6+nr1ecnJ9S0tLTz44IOOV+1nAAAgAElEQVRs3NhMJpOBoPy7AhDgVbHIDP2O0RwiScXxZkSPverHYSqVIpvN0tDQoHKHvv/97zPvsvn4vodhmJimUfZ9HenjoNr3TiIFuRRg8jwRrZSs7Bw/jj2cJkIUBcB7NbZlQqEF0fnlr4H/l3E4pDVajlzqzVIaFRC9IpYLjszpiXaCPpeNBCsX/OhPmUA9a9ZFFIsura2tdHR0UHQ9XLeIacqPLLwaD0QHYrmdnWEiJGcYqPBcNPk7CAL6B/o4evQot912G9OnTycej3H8eDvvv/8+Tz/9NI8//hivvfYa7e3tKmFWllBLL9EVV1xBQ0ODShSXi340QTi6XyYS0XL5fD6v/t/f38+jjz7KY489RktLixIM6XSa3t5eWlpaaGlpoaurk7q6FA0N9dTVpfB98X14+OGHeeGFF+jp6cayREjNDzw1ed4oy+L0KQmfckEUDBOqFQdi+N0Jj6Fq36FisUgqlcIwDFKpFN/4xje46667cIsetm2F78tUovBciiFJ1Gsrq+2iAl0ex7Kyr/IcUXmRNc4wEeEzLYrOI+PKSzHK+THjVAwBamEFVMt/GYaSi7qc8u15HpZlqRNftc6+55LoCTR68pdXqbfffjt79+5l06ZNOI6jwoHnstGheE7xvFGhCMKj09fXx86dOzlw4ADTpk3jwIEDLF++nLVr17Jnzx6OHDmM7/vU1dXheR65XA7LskgkEhSLRdatW8eGDRv48pe/TDKZJJPJEI/HlUAdhwvKaSETjaG8O/n27dtZvXo1LS0tgOg4LY8Hx3HI5XJs27aNI0eOsGPHDq699lo++9nP8ulPf5aZM2fy0ksvkcmI5ovyuyDFbtTjYRgi5FUtn+hUMDAI8Ik8QdlnKoXOwMAAd9xxB7feeqvokh0zCPDC715wTsRQVXureIblhVRl2E7uaxDfjUKhoC5gZK+wcYqFWDN84L/W2JYJgfYQnR9kAvW4FaDROL7rumXt/j3PU31bAHK5HLFYTFVFRXOJzpcoqvSGyKvUXC7P1KmTyWRzrFm7ls7ODurr68pEQxD4InXDAIxALERnU3gf5oCYhiE8ROFPy7LwAzd8fnGVH4vFOHjwIM899xzPPPMM27dvJ5vNEo+L0R9yOG1UwCWTSbq6uojFYnzqU59i8uTJ9PX1UV9fD0A6ncZxnAntIZIJ6rIK0fd9uru7WbZsGe+88w49PT1lArVSHOdyOfbu3cvGjRvZvn07XV2ddHZ28PDDD1EsFvA8F98X3kYIsO1YWdfo0i4vhWINwgitipBFRZLMOyL0MEb/Lh4gv0umaVJXV8fg4CDJZJJ77rmHP77z3xB34ti2FCLn9rtXLS+wMqcw2ktL9tEqFotqAG50LIp8fLXmo+MM6Sly0YnW5xwtiM49f8U4S6CuRtTLI0Mw8oTmeZ6aiyQ9ErlcjoGBAZLJZFnOwvkWRNH/ixOyWFDq6uvJZDKsXr2aXDaLaQ7Ndyp/jrMTRGUhs1AQiQokcfKXV887d+5k+/btbNmyhXQ6rfZnsVhQi4MM68iF27ZtstksbW1tzJ49myuvvFKU+Ru634zE933S6bQaZlosFtm9eze/+c1vaG5uVl47uXDLYxxQnjbp9Tx27BjNzc1s2LCBrq6usj5FgDrOSnPQomIh0n8oVN2GYVTJXSvPIRpa5RiUhQHlNPuvf/3r3HXXXcyfPxeAbLYQ5g6dv5l31V5HHru5XE71B7MsS3loM5mM2o+ygakUUOd63uAowARuQvQp+qDGtoxrxvVRNAr4C4TLM15rQ8410rVdOfBSLh6yN86+ffvU7b7vk81mz4sQqiw5j94OKNutmImPx8yZM/nmN7/Jddddh2XbeF6RIPAAP1zAwqnmxkiHz3wMMwB84R2KNP9LJpNks1m6u7tJp9PYtk1dXZ1akKNeITmjqq6uTiVRt7a2snz5cnbs2KE8c57nqbLqiY5MovZ9n2PHjrFmzRoOHjyo9p/0oknPkNzy+Tye52LbJo5jY1kGmUyaQ4cOMHXq5PB2RwlVcey7BIGHYUSPSfG5G4ZR1uqzPETrh1sV+6P/jPJhswBXXHEFf/Znf8aNN95IPu/heYEaKiw6ZZ+73lTDfbelfVKcy7J/y7I4cuQI2WyWZDJJIpFQ+1CG36NFGxOAOGIt+YtaGzKe0R6ic8cPEB2oG2ttyPlAhmmiV6WxWEyd6Hbs2MGqVat4++23ueSSS7jgggtIJpNl1SXyceei7P5Uns91XQzkZHCPCy6YQWvrEXp6ejjW1oYRSRQPgtBlb8jGeKeX81FuVCl/CAzVE0ZSmZBeV1enrqTlewoCX4X1EonEkGGeUjCl02k++clPsmDBApLJpFoQJ3qVmcxvq494BpcsWcLOnTtVewYAwxDeHTlqQ3Q0FyFT0zQoFj1M06ChoQnf9xgczGIYpUUcUOEfKP9sBRX9h4xKz1AEwy8lVJsoISQ2cRcpihobG/mTP/kTvv3tb4eCuYBhhFPvYzZKiJ3Dz75amDpajOF5npojuGPHDh555BHa2tooFotMnjxZPY8UpFHRN849RBIHuAHoBz6qsS3jEi2Izg1/yhgdx1GtYkOevOXA0+j9ojF9uaiKnJY4QRBw9OhRXn/9dR5++BGeffY51q//iO7uHubNm8/06TMwTQvbjiFzHuRzR6vURuIkPdzJXi0gAZhycKrr4rmiSmvu3Dl0dXawdesW0aslkO8TfN/DsmP4rodpyfBWIPKLTCjvF1P5wuFiJj1MhhFG68LEWiPsc2SYYYWRgecHmJZN0fUwLRsQ4z5EDlbps5KLd2UILZfLkcsVOHq0jXnz5jNt2nQVmojmgEXF2PlMdj/XlBZR8P0A0xTvqVBwy3Jo2tvb+ad/+jnvv7+awcEMsZiDHxD2jZKNFMVn48su0kGAF/hYVgzDMnFdHy/w8X3xuQkBLebeuZ6PzKGXzyU/Y9Xfygi3QP7fD0NjYivlEIX5Z6GHMyDACI/FIAiIWSZB4HHtNdfws3vvpaG+nvRAPxhg2xaOYxME/ggkU5fbU9qGhqZ9X7498bu8GCoWPSzLpq+vn6eeepoHH3yIzZu3sG3bdjo7u8jnC0yZMpWmpsawM7ilPNPKikheufycpfdtPBzDQAL4DNCFHgg74mhBNPJ8A9GC/cJaG3I2RK++oldgskmaTJqOhmeinW37+/vZvHkzzzzzDEuWLGHduvUcO3aMgYEB+vr6mDlzJnPmzFEjA6I5DJVXkOfjRFbIFwh8HzNSehyLxaivryeRSLBlyxaOHDmC7PSryuI9H1PlMoTJ1WUCQi50FVQNtZ3kfVaE+qKVacP1n5F2yMRU3w84fvw4fX19fP7zn6exYRK5XA7P8wkCXy1OUSE0HhaSyrwv3xeLtWHICrMC8XicTCYTJqwvo7OzM1IFCeWfj1GxIbsxEPgyFDT87LghGKX8taGvQ6S0Xr2j8KcQIjEnjkdQmtcX+OHn6JFKprjnnnv4yle+QiLM2XPiTtlFx9l7WIYLt1WG/uR3XNzmeT6iK7yr7JDeoc2bN9PR0cGRI0fYvn07PT09NDY2MmnSZCZNaiyJyQAyGZEjZZrguh6+H4Rz5IxQjI4rz2c9cC3QBmyrsS3jinFb9VQj/ggR572k1oacCVHPQOXv0VLuaFt/eb90Ok0ymSSdTnPgwAGWLVvG+vXrw4qbLtVZuVBw2bdvHx9++CFf+MIXmDZtSjgVvHqy8vkSRY7jKC9N1Ptl2zbXXXcdN998Mzt37qSvbwAojUIoFkV7gWhV3dlxgvcZiKTrslyPQFz9Dpf/EfX8iMVdhAbff/991q1bx4zpF5CqEzlErlsoe5x8j9G5XGOZktAWM+GEB0E0IZe0tLTyyiuvsX//fhFOshzRXXpIFdiQJ4fAFGJIekeMksAp/3iMsh8jge/74PuYMTPMhYqJi5N4ghtuuIEvfelLpOrqCMLKTsySd/d85uBEv8Zi/4vvvgy59/T0sGXLFjZu3Eg8Hsd1XQYHBxkcHKS/v5/jx4+zfv16vv71rzN79mwaGxsj/Ysi429seezKY3nciCHJJYi1ZhB4uca2jBu0h2jkuAXRK2JRje04J8hS+UQigW3b5PN5lWyaSqWwbZtdu3axfPlynnvuOZ5++ml2795Nf38/qVSKeDwe5raUugDPmjWLuXMvCytGxKoUzYuRnJfFOFywvNDjJeec5XI5Na+qpaWF9nYxfkEmeLpuKU9HXQGfsYfoNI0tPdkwt4e3BqX+Rr4vEmk9z2NwcJBPX/cZLpg5AwDXLQ7xEMnHj3VBJN+LHKYqw2XC02fgODHa2tp4+eVXeOGFF+jt7cVxHAIfPN87cS4Pkeqw6Ip/RjlZlfc9mYdI/PQjH308Hse2xYiOq65cyA9+8AM+97nPkUqlSiN2Ij2QRkYQndxDVPIAh48ISi0MLMuiv7+f1atXs3z5ctavX08ikVB5iCDaThw5coRt27aphpimaTJz5kxSKTlTrqguTuTgZPlZjyMPkWQ6MB/YAxysrSnjAy2IRobrgP8GfK7WhpwN0ZBVtVCJDBXJyrCGhgYMw+D48eNs2LCBJUuWsHjxYpqbm+nv7yeZTCK7zbquS6FQoFgs4Dgxenq6MQy49tpFXHDBJ8peL5pDFLXrXBKE4Q1Z9i7L1tPpNKlUiunTp1MoFNi3bz/Hjx8vjdcIwHNdDNVt+wwFkcwVGXYzK7wU4WbI24VX4kRhLrFPRcjTdV26urq4/PIruGzeZdKIspyMaBuFsU7J6xeEC7AZLsylBXP16jU88MAD7Nq1K9ITR4RGZUK92q/Rz8so3+9yfpig8jgYbqPi/pX/F/czhoRIZQ6aCZaFiUE8HmdwME0ikeAbd9/Nt7/9baZNm1a+H4KS129kwqInF0SV+H6gBFEi4bBnz16WLl3KihUrGBwcVC07pEB3HOGtS6fT7Nmzh+bmZg4fPgxAY2MTyWSSVCoBGCqPDkRYTnze404QAcwCPglsQYTQNGeBFkRnz1zgJ8CXam3ISFB50ihdWYv2+YWCyLWIx+N0d3fz3nvv8fTTT7N48WLee+89jh49iuu6yh0fDYM5jkM8HqehoYHe3l5yuRxz587l4osvLputFX3t83USk69lqrJon0wmo+Y/yavVQ4da2LdvH7lcDtd1RcJtZH7VmXuITuV9GsjEa7UpSoKoGqVGmHFlq+d5uEWP+QvmcdFFF5FIxMu6KI+c96D2lLdcCMWFQZi7Bvv27eeFF17gueeeI5fLkUqlwvEyYYl7xXFZ6gtE+HwnyBWSSSynxHCCSP6vuiAyTAvDNDHD13GLBa6++mq+86d/ysKFC8vmswVBgBeGyoZWuZ0pJxZE0fNAaXcYKtzleT5vvfUWzz33HPv27WPatGlkMhmi1arSAyT/n06n2b9/P9u2baOvr49sNktT0ySampqIx2NiTIovO+Rb5+1cUgM+CcwE1gM9tTVlbKMF0dkxBSGG7q61ISNFZR6PDAXJCrNkMonrumzcuJEnn3ySJUuW8Morr3DgwAEGBwdV+EzmnciTrmy/L2doFQoFstksg4ODNDY2cvHFF4dJkdFxBufvBBbIarkw+bJYLCJL1ePxOMVikUQigef5HDp0iOPHj4cjSOyyfXV2gqial6ja/So2A8o6F1d7f6onTWnkQaFQ4OiRNpKpBFdddRVNTY1hWM0vG7EyHqaJl4drSr/7vkjIff7553n++ec5dEgM9ZWfucj/ESt4EATCMxRU2xfhZxFEtsrKseG2smOh0gNV+SrDCKKwiacUEJde+knuuusuvvylO6ivry87nkF4vOT3Mrp/zpxTS6qOfg5BgBJpO3fu5IknnuCjjz4im82qsSjyccViUR2HsvO2aZoUCgW6urrYtm0bBw4coK2tjXQ6TTyeoK6uHsexicXsEXqPo5oFwCTE3LNsjW0Zs2hBdHb8BPh+rY0YKaol5sqFVOQl2PT09LB69WoeeeQRli5dyq5du9SkeNmRWlaiRYe4RtvwZ7NZUqkUvu/T0tLC9OnT+cxnPkM8HicWi6nXPd8eIjE6o9TnJJFIqInxpmmSSqVoaGhk37597N27V8xs80tJ32cniIbzxJxCrpERLcMenvr6elxXfBay34vreuTzORYsWMCsWTPL5kPlcrlxNSuqVC0mPYKQzebo7Ozk0Ucf5c033yQWi6lwS6FQwDSsMMR0ghYKVC62pfvKBfzETQ+NyNMaFT8r71ldEJmmhexq3tjYyO1/cBt333038y6bSzyRwLYs0fAwHOwrW0xUt/9MOLEgioa/S2XxgfIQvffeezz55JMcO3YMwzCUGJLng+gwYtmLS34vpff66NGjbNq0iV27dhEEAbNmzWLSpMlh6f24F0Qg8lcTwOu1NmSsogXRmfM3wH+qtRGnQ7FYVCEQ2bQvm81G+oAUVcgkKkY8z6O3t5d3332Xp59+mkceeYQVK1aQyWRE4mkQYNsOpmlRLLoUCsWysuZolZOcFWWaMlHboru7i0WLruXiiy9W+UPSNS6rT6I5AWd6YjtRCXQgvSDh36KjLHzfZ3BwkLq6OsCgUCiwfft2jh49iuPEUd12zWjuiLR1GKEzRBANJzqG8xRVPteJBVFpmripFhcx9d6mo6Md27a58cYbmDJlSlm4M9piQLyf6lf8teZk5e2ys7H0+IiBqzEGBgZ44403ePzxR8nnc2Qy2bIk+SAAy7ROIIiqeX/MsttV36JhN9mPqjIMF3kVJUqDsIotej953IrGRpdddhl33fU1br31VkzDwI7FVHOeqO46n4JIepilIDXNUg7Rzp07Wbr0cbZt20p/fx/xuBP2URKb73vIkLDs9ZXNZhD9lwxiMXEcywuuY8eOcfToUTo7O8MwWhPJZKKsi36hUBiSb9fX16e6thcKhbHqHb0BsbPerbUhYxEtiM6MHwI/ZYyNPpE5OnKxk/+3LItMJqPCW3LQpe/75HI5enp6eOihh7j//vtZtmwZx44dKxNRcuGIjjSQRAWRfG0QTQ3lCVG8Tp4FCxYwc+ZMFaqRoihaeXY2XqMTJWlXXqBHE4s9z6O+vp4gCKirS3HRRbMJgoAdO3bQ3d1DPJwLFu3ZpDxGwTD2nrIgkpydIALU5yQFXBAE+J5YZBzHYcGC+Vx44YVKkEZ7Tw2370fLYnGi4yIqsvP5Ar7vq+Pqo48+4pFHHmHnzh1kMpky7wWAgalCZuErVb7yCFgvPYtVQmeR9yBuFXPvzOjnYRrU1dVRKBRoaGzkxhtv5H//3r+nsbERKyyvj+aCCeF/9t+noe+hyq3hzbKhq+t62LZo/yAvtH75y1/y5psrVYK0DLlHvcQn+mxFJ/FS7pvv+7S3t7Np0yaam5vZsWMHtm2puYnS4x0EAX19fbiuG14cWGpfyXOQ9EiNMS/pzUAnIqdIcxpoQXT63AX8A9BQa0NOl6jHQ54g5Qmkq6sLoEwUtbS0sGLFCpYsWcIbb7zBtm3b8H2f+vp6LEuU9QIkEomwsVrpqrckhORVcmn+kmwoKE+W+XyOgYE0AAsXLqSxsTEcn+EOqTY72xN4KbRVvk/k+TxQORmlfeV5npoXlssVcByHKVOmsHfvXnbu2l0m3ESPG6tM/FUNmZxUEFV2/j3Rmzq5ICoL6YWIqjrUZ1NXl+LCCy9k8uTJxGIxHMcpO1ZGsyAaDrnfZV5UoSByaRKJBEeOHOGFF17g+eefp6enO1yAS/ktsmIMOA+CiBMKIolplI4v9XkYYa+wIODi2bP55je/yac+da2Y/xWzq39nRjwcPbyHSAobmZMle0B5nseHH37Ib37zG3bs2A6UxppEvZLyHCXMHjqLUHidHZW3KHMX5XmtpaWFTZua6ezsJJFI8IlPfEK1IMhms+qcJ8P98nWinsIxJohMRDfrg8D22poyttCC6PT4PPCPwJxaG3K6REMKcpOCRl4xNzY24vs+mzZtUr2EXn31VdasWUNLSwuxWIympiYABgYGIlfeHmAiB0uaRph4akQ79VbaUKrw8X1xkt+zZw/XX389l112WVmjQ3mSHNkr2orFPCj9iL5GKRnZD/dZkVQqQWNjEy0tLWzfsZNsNqv2Y+VjIeItKnvxagtItTyUU3kjpyaIyhZ4eRui/DyTydDV1Uk8HueSSy5h0qRJZZ7E6HNUPu9YQF7xFwpFlRf22muvsWTJEg4ePKhEYSmpX+aVhV3I1TOdI0FkVA5sHbqfhT2lCw11bIbHZyKV5PM33cT3vvc9LrpolhAdrosdi5UH4yIeolPupH0q76HarUF5PqBpWkpwptNp7r//fjZu3Eg2myGVSqmLMaBMkJTZDmXHJMjO46icIlkMIatF29qOsnnzZtraRGW653lMmTKFqVOnqnxHGc4vFAqqD5n0Ho1B6oErgK1AS41tGTNoQXTqXAbcC9xYa0POhKELtcgpchwH27ZxHId0Ok1zczPPPfccv/3tb1mzZg1tbW2qOaHMQ5EnLOlm9jw/TD6t7PVRyn2x7Vh40irNk5KepCAQMfu+vj7mzJnD1Vdfra7aKkuDTxT2OhGV+S5DH2/IPwz5u2GUSn9FaFDk1kybNo3Ozi4++uijikGr0ZP4MHZWrTI7gUcoOvuscjtVT1KFPVIgCVHq09fXi2EYXH755cyePVt5VeSV92gWRCdb2GUI1jBMksk4x44d56mnnmLFihVh4rgYc1H63Er7Mwj8kofIoCLfp3L/n8nGMMcDlHKRIoo90plchPOEEPjcTb/PX/z5n3P55ZeTiMfo6+uHUNBWfn5GRbPCkRJEld8zKYhKFYvCM9zd3c369ev59a9/HVb2oTq+y/tGPUNqr1QLdxsGliWS/2URgKxkDYIgbB4ruui3trayY8cOtm/fju/7TJ8+naamJuUdksIoOrNxjHmHonwCmA2sAbprbMuYYExK3xqQQiRR/0GtDTkbouEDy7LCMnJRdbR//35WrlzJiy++SHNzM11dXRiGQTKZVHPK8vm8Cg/JbtWC4atoDCww/LK/R0/mhgG2LTo+J5NJXnnlFb7whS9w6623DuljVHrM6Z+8T/Q4z/OwKpKhoydiORhVCkd5gm9oaFAnU5mkGX1/0u4TVxjVBrU4hp4QMVYlx549e1i/fj1XXXUVF154IYZhhAnIo/tUUV7pV7pN/pSfYUNDA74PGzduZPv27RQKBVKpBIZhIZ2SUoBHj7/RQRjQDQyMsBmkaVqiyj+0VxZOBAFMnjyJYj4vkqoRhQMSgxNdHIygxUF5FaYQZ/DRRx/xwAMP0NbWFobGKesyDZQVeESfbzhkRau8UIu+bj6fp76+nnw+z+7du9m7dy/btm2jubmZe+65h+uvv16Jfxn+lvmVo6l44Az4A8Ta9R+ATI1tGfVoD9Gp8XfAj2ptxNkgF/hoqavneTQ3N7Ny5Ur++Z//mRdeeIFNmzapnju+76sEa5lkLU8O0ROFIUNkFVUyKkyDie97KlSm7hGe0E3TUu7to0ePMmnSJK655ppw8fKHFRWnI5KG8xB5nidOwpEcIrmwRJsUypOkaZp0dXXzzjvvcN999/HMsmfJ5/PKxe77FXZW7VnD8B6B4TxBJ+XUPUTlXgHxmYg+L55qcDd//nzmzp2rrtKjeStlzzZKF4poqDNaNWdZMVatWsWDDz7Ihx9+GI6gEXlF4hhFDQQFIjlE1TpPjyDyMx7SfyjqiQqD0kZ59aYMfx08sJ+dO3cxe/ZskkkR1i3k88QcR/XZkn2mZEf2kfv8hoa2osUWMh/NMEz6+wd47LHHWLx4seovJPKKgrIE5tNpvVEa01F6HvlY8V12VWhMNlk9fvw4u3fvprW1lYGBAfr7+5kzR2RDVFaXjdbj/BRZhOjr8WatDRntaEF0cn6EGMsx5pGLmxQ3fX19PPvsszz00EOsX7+e3t5edT9Z/RVdPFOpFDJZWJxYQSVNUp54KxdbeUIPIGyfbw5JsJZiTVQ22fT29vCJT8zkiisux7YdCoU8lhULn8UMFwM5egH1uiej2n1kfyQjYqcUSfKkapommUyGY8faWbt2Lffeey/33Xcfa9euJZvLk0wm1ZRx33NBnph9v2wfVFhTPYn2jGacGYgcIuMUtkiZeCAFJVi2ieOINgd9fX0sXLiQq666iiAwSCYTBEHFInyCfVoLKvPLomJI/p5KpUinB3nyySd57LHHSKfTTJ48GdMUuUWysSEY6tg2sDDU2JRqQmWk3sBwIdaoIIr8LwjfV+Arz099fT2HDx/md7/7HQcP7Md1XS6cNUvlwUhvsBBEQ/fZ2VF+3JY+B/FZlC6sCuzbt4/nn3+enTt3Ku+d6CgtjuFYzMEwTHw/wLJs1cJDiHezbCsdyyJRu7wpZqDyD+X/LcvCcRxc18WyLLLZLHv37mXFihX09/fz1a9+NexAL0Lk8n7jgJvQlWcnRQuiE3Mn8DNEgtqYJnrSk9VbDQ0NXHDBBWzbto3t23diGCaJRDI8MYlFRE6cLl1pydJtEPO1TDCs8ExtEoSFwQEGgSHnfotS4YCwG3Q0JyLENmMEPjixOJ0dHezcsZsbfu8GZs++EM/1CXyRbGQaFoV8gZhti8nifnhFL1oqhiKplJ8h+5aIXCUfz3MJAnlF6lMsFrAsm3giTjZXCPdBnL6+AWIxBzDI5wvs33+Ahx96hJ/+9B9YvfoDBtMZHCeObdnkczlyuUEhhsryTmQ/mihm5L2Xi8aht53iZgTh52CEn4VZ2rABK/ybvI/cSk8hhoEWcZw4nudz+HArqVQdn/n09QQEFPIuMccik8lBWCkkQqZ+OAustsIo8EJPIkFZDkqx6BGLOdh2DNM0WPXeB/zqXx7gUEsLqWQdRdcTFZKYGKbYV0EQ2X9yX4WL7vAC92wZ7nmH8/xFBK4BBD6e6xEELtlshp07d7Jy5Uq2bd9KPJFg+ozpOPE4ASae75NMygRmF9O0wBfCKvDFd9X3/PAiwRAGnSgAACAASURBVMD3PPF7IF+XUOmgbguQiehCqHieG15MGORyWQqFPA0N9RQKBe677xc8/vgSFUITHeJLx63nh55WIxQ5Zcdz5bEvbpcFHUo4KdsDCMLQIoESWYaBCq8Vi0WmTZvGd7/7Xa655hqVhySHOI/xkFmUTwO7gN21NmS0ogXR8FyNEEMLam3ISCH6dbgqTi8TLTs7O9myZSsDAwPqvnIYohRPJeSJwSwtFBAuFpVIL4j0v0SFUPlJXiRly0RK8beZM2dx2dx5NDQ0ks/nMQyTWMzCNG0101S65EWS6NB8I0k01FdZWus4MQYG0mHX5jy2HaOhoR7TtFi3bh2vvPIKTz35W1avXk1ra6s6kSuXvhngeUVkWEP9DEXikH1SRRCeHaX9PHRIbDQEUyGiIguw73tqcTJNk77eAUzD4sorr6SxoSkMCRo4cRvLMpXosG0ZOq1t4qlBeHx7Jc+mbIMgk4rz+QIvvPAir7/+OoODgziOgyfftydFftTDULmNUkLvkm1ZBJRyX0QS8WF27NhBPp8nlUpxwQUz1ViSXC6P74EdE14wOeRW5e2ZJgSBasCq/lal6ksmaZcIypKbE4kEPT09fPDBGl5++WX27t2nHh8ERnWxcxqbMaRBZsXxHYgLMdu2wsRpX/WmsiyL2267jW9+85vMnj17yPkh2tB2jFOPmL35IdBeY1tGJVoQVace+O/AHbU2ZKSQi7cMI8gTWSqVIplM0tZ2jB07dgCyz0kpdFZOZHFVOShyEamCUe7qL11olQuCILyvEXp7BjODDGYGWXjlFVw651JcrxheEJrhS4txCpYt7DAjgmiICYYRdsUWyaUyOVwKwlwuRy6XJ5lMEI87+L5Ha+tRVqxYwSOPPMIrr7zChx+u5fjxYwT4JJJxTNPA810CZEhG9k2p3D/VBNHQ93/WnGLIZej9BaZRWgjj8TjZbI6uzi6mTp3KF7/4BWzboFj0sGPi/chxLTL/yLJqnXQtjkMrklArq8pkPsuGDRt48IGH2LZ9m/BYBgFFtxgKotGUPH2ahJ+laYTHZCDGzoiGq4McO3aMbdu2sWfPHo4eFWXnM2bMoLGxXlxcGJDN5XDiMVzPBQMs28b1XIquSyKZVDpDOGzKvYzRfKRSHpA47mSOUDweZ8OGDSxd+gTvvfce2WwuDCuHx+dZemCMIcd9+edpmRYEwhPqui6OE1NhxBkzZvDd736XL33pS0r4RIs5pPgfJ1wITEWM9yjU2JZRhxZE1fk7xtGMMkk0H0guGolEgvr6erq7e9iyZQt9fX1hjpCrQmXlCc2nKYhCb4Q6YamFuGJBNkXSbqmU32NgYIBLL72Uyy+/nKamJjWkUZ5sfT8IE2Bl/5/h37MUQ7KsViZKS5HY2NiEYRj09fXx8ccf89vfPsPSpUtZvXo1nZ2d6r6yQ3c0SV0kX1cKkjEmiMKOxjJE6sTiDA4O0tnZyZe//BWamppEmBFEmwXTCBeJSGJ9DfHDZOFSREe8v0QiThBAa2srixcv5pWXX6VYEO0mPM/DMI3QM1b+uDGFFESmiR+UKrOEN1QMqu3t7aW1tZXt23dw7NgxkskkU6ZMFaEzywirq2x1sSS9O9HqMPm81XKPZM6V9AyJHmPi77Ztk8lkWL58OcuXv8DRo0ex7Zg4fgKpss6tIBJNSAOVvO26RQqFAtOnT+e2227jW9/6FrNmzRLz6yrK7KNjfMYJVyKSrFfW2pDRhhZEQ/keohP1uCN6IpPJhrJDayzmMDAwwNGjRxkYGCAed8qSiof21am8souGZyrCQkZQOl1VEURyQa2sKJOhvRkzZvCJT3wCx4mrihTxsrKPkYzxB8OesAE1MNJxHAzDUF1qbdumo6OT1atX8+KLL/LEE0/w8ssvceDAfkQulRcurH54Is3jeSUvm+y8PWT/jCFBFPie2hdijpPoFN7Z2YnjOMyadSFTp07DD7zQ22ar5xULSG0XDMMIe+2YpYGqAEFgcPjwYV566SUeffRRjh9vx4k50QeK+/ljVAxB2Wcp0p4MVSEqcuYCNRewr6+fI0eOsHv3bg4cOIDvB0yfPo2Ghvowx640Nsd1XTXgeLiKq2jytPwOivOFEM6+LwoUtm/fztKlS9m4sVlVn8mqzED0fqgS7j2dkFklFUneZqDenxDDItH89ttv54c//CHXXHONeu/RispxlFRdyU3AUeDjWhsymtCCqJxbgH8CJtXYjnNO5UiMWbNmUldXrya519fXDckhKlWOUfqpTo7VThqlWL5RJhiEgCgXLdLr45d5X7q6ugiCgHnz5jF9+nR1spWl0YYyY/iQGZQSyaPPHYvFSKfTbNmyhVdeeZXFixfz6quvsnPnTtWJW7rVZZO3ktgqhWLGgyAyDNQ4lkQiQeCD54sS5b179zJjxgzmzp1LU1N92O25/Hlr7SEqFgqYYVJ1tGWC7wfs2rWL+++/n82bNxOzhdB3wwVR5hwN7+EcAxhBOIDWCwsGoqNjxOfjuq6qtioWi7S2trJ161ZaDx+hu6eLvr6+8BxQpzzDsppU9h6rrOKLnj/k74VCXrX2EF5Ym76+Pl5++WVefvllurq6wxymkj2CsxMdJxNEtl0KhQnvl8uMGTO4++67+cY3voHjOGSzWZLJZNl7O53S/zHINUAzYsSHhjE2nPQcMxP4MXBJrQ05F0TDPFE3ePSLfuWVV3LTTTfR2NioGhFCxUiKym3E8LFtU/00jADThN7ebtatW8umTRspFvPEYhaGGglSGiYrEmilACltQSBKqAsFF1Gyb+G6PoWCSyaTY+/e/bz++u9YsuQxVq9eRUfHcRzHZtq0KRiGnHpdOvHLUJttmwSBh++7iJL3sU2094vjOCqJNh6P09bWxooVK9i8eTOeF5BMJtVjRks4wbZtjEgPGtu2Vefjffv2sXv3buLxuOoXZWAM2317LBIN87huKdwdTf5PJBIkk0mVZJ7JZFi9ejX33nsvP/7xj1m1ahWZTEaFlWWZvhynEZ0vFs1HFFtQ1kdIeqEB9u/fz5o1H9Ld3atC4qqrtGESs2MjuCd8qn0fZc6b49gUi6Kh7IIFC1i4cKG64Il2p5bewlLZ/rjkEsSaN7PWhowWtIeoxE+Be2ptxLkk2mBPVhNJstk8kyY1kkym2LBhA62th5WbfWhvIar8rPxdIpOqo1eDsiqpvApMenCkV0ZSKIiBqosWLWLSpElDTvaVDeHKXj38ezqdxjBEPkU6neb111/n5z//OQ8++CBPPfUUbW3HsCyTRCJBOp2hWCzgedL7IXKc5BWzXDCqD28dmx6iwPdUp17RaNKhWCxSyIt939HRwSc/+UkWLryCZDJJPp9TuSJQew8RgQjLSo+PZVn09PTw9tvv8Pd///dqePHgYCbyEDEHTOTAQa3DfmeMUUrql9WhUgTJ3DCQ/bXcsuPW83yKboGOjg7WrPmADz/8kLq6OubMmUNdXR2+79Pb26u+V1EBLAWTEE1WeEGDmgeWy+U4elQM0H377Xc4duxYqQ9SIEVVQOAHnO21eemTq/69kvvB84TAu/zyy/nOd77DnXfeqYpHUqlU2ZiayuHS45Q5QAJ4tdaGjAZqXRoyWvgRY7wT9akQHb8gk6rlFV4ymcD34aKLLuKmm25i27Ytqgy/1DzNxzBtVKksYiH0lXg5uadETpMvlWqXvE9DxRckk0n6+/tZs2YN69atY86cOSrXJZ/PE4/H1fPJ2WyAakYnF4apU6fS29vL+vXrefPNN3n//ffZvHkz3d3doafDUIIsmYyXjRAQpf1e2fuIjvaonLcU7piT7ovRRrQdQzabFUN6QSWabt68mSNHjpBMJqmrq6O3t5cpU/5/9t48SI7rvvP85FlV3dUHGlcDaJwNAgRAgrhvkABxESRAiiIpUyIlgtJIomzLV3jHE46J3Zl1zJ8b693wjNexEw47TMuakM1ZcmSRog5LFiVLPExSIwqkRBIECIIEiLPRR1XltX+8fK9eZlcfALq7uqvzi0hU15X5MvPVe9/3O76/9glfQafLuci/pVtIBoafP3+eb37zm5w+fZorV67EnzRVHwzCAFTM2tQ2lhuay1kvWSI0xVDPVRKE9lx+/uTJk1y8eJETJ07w7LPPsn37drZu3cqyZcsSgdUyS7NYLKoECMsy6e8vKcFWGdT98sv/yp/92X/h448/VlYhfTwBabEe4fxqLHSS70dxaj2YhqmCqIk10BzHiSU1LDo6Oti/fz/79u3DsozYYmSqhZfcf4PGDtXCbwHHgf9c74bUG5mFSMQN/SnQUud2TAj0yUTfTFNUci8WixQKBT744DSnTp0a5E+XemyyBpYxmgnFCFMruGq8jx4DpGsFyYBuaS26dOkSs2fPZt68eSxatAjDMFRKr8z8kt8B1GBWKpWIooj33nuP733vezz55JM8/fTTHD9+XAVVy5WqbFNV4ZhEG0cHeULyekwNC5Gu4aRbAvWJx/M8TMtg7dq1tLa2UCqVsCwzJtoTTwAT/TJ265YrZfL5PFeuXOG///f/ztNPP8OZM2e0zw/VzilMiGomLUikn1fdv+KZKLvjODZRJCvDf8j//J//kxMnTmCaJjNmzGDmzJlVNfb4Wsu4IhnXJxMVCoUCruvw6quv8o1vfIOf/vSn6rddHX/i6x3FY8gI/WdkK03sBh1UYFq87gdeTMgsli5dyle+8hXWrVsXq7BH2LajBBnl8RrcMpTGOkSA9Xt1bkddMd0J0SwEGVpX74ZMNPSAyPgVIdQWhsyfPx/TNHjrrbf4+OOPlQtCBUHKiSWKqsOtAUNXY1fTq9YCfWCsZovI2mZSxt+2HaQW3OnTH9DfP8Att9xKa2sbruvEMUEB/f0DNDUVMAyDq1f7AIMgCHn77Xf41399lf/yX/6c5577Ni+//Aoff3yeKIKmpmZyuTyeV1EESFiDohFXrENm1DUAIRJPdQorJpXLly9zpecyN910E11dC+KYDCeOvxjLOJDRQQ9qL5eEqrAXuznef/99nnzySX72sxcTlsehg6enFyFKPxfp+ga5XB7bdiiXK5w9e44zZz7k7bffIQhCXDdHa2tbnHlmY5oGAwNlenquKnJUKpVobm6iUinz93//93zta1/j0qVL2jgTkycsZAWfsSBERrr/IiQ5LNPCcYRKueu6tLa2cPjwYR566AGKxWYqlQqe51EoNNU8VgOpVI+EFoRG0bNM4yKw050Q/QnwaL0bUQ8krT7iR++6Dn19feRyOWbNmsmZM2d44403lCnZMAxMSwrfIXNtNROKHieUOt6ggTlt8hbfkys0aU6XFhzLsiiXy8r/v2LFCqIIenp6VOFIzxOxDIWCKD/x/e9/n7/4i7/gmWee4fvf/z7vvfdeoq6TPG/P00tuJGOShrmCQ5xPgxAiZDkUgZybo1wRhVBzuRyrV6+ira1NCdxV064nFiqgPibtdly082c/+xn/+I//qIQIExaRmpjehEiqjwPk83lyuRxBEHDu3DnefPNNPvjgA959910uX75MsdhCU1MTpilS1JuaqoHaMkvr5Zdf4m//9m958cUXxVHUeBOTjPh6S1HHyBh67NC/L/Yx+Lcjkx4jItVvZQKE4zhUvDKVSoU1a1bzla98hUWLFiptMkHwLHTrOSRd4dOEFHUjwmier3dD6oXpTIgeo0H1hoZDOnVWxhyUyxVc18Y0hQZJa2sLpmny9ttv8+GHH1ar25uWmgDD2GIkTOYyu2MoQpTG8IQomeIuzPOlUgnPExPykiVLmDFjBsViE57nUyjkCYKQCxcu8MYbv+T555/na1/7Gs8++yynTp0CSGTA6IRIuNrS7RtJE2Wo85nahGjw9wQkIfZ9j97eXpYsWRzHc5mxezIZzzNRkIHuURgKxWzb5sUXX+Qb3/gGL730EgMDQqFcqbNnFqKaz8W6RtcvqlaLD8OQU6dOcerUKU6cOMH7779Pf38/HR0dNDc3098/gOd5eJ5HPu/y9tvv8F//6//L97//fQYGBhLEQidEOgGJZNuHtDJrW433awkzmqaJGZfx832frq4uHnnkMzz44IPkci75fL56/Cg55gCJGKdpQogAtiPcZq/XuR11wXQlRGuB/xvhMpvWkBaRKCImRS6VSgXDgI6ODs6ePatiAHzfV6ZtkR0ibd5QDaiWA9dQFpTaz3VCJNuk+/NLpRKFQoG+vj6uXLnC8uXLWbx4MYVCgQsXLpDP53nvvfd49tln+fM//3Oeeuop3nnnHSqVCoVCQcUSWZY1SHVaLzWgW0iu8Uomv9dghMjzRXzZQKmfS5cu0dzcxMGDB2lqKsTXrxqAOlGThyT0QRAQBiKW7MLFi3zjG9/gqaeeihXGXZUtqeveqGKgysLZ2IRo6H4tF0chjuMo4qv//qIoorlZuJdOnz7Nz3/+c9555x0cx2H27Nl0ds4liqSlxeC5577NX/zF/8P7779PS0sLnudpMUQMaociRDeClIVSBZlHIhOuvb2dBx98kC996YvMnTtXqXLLrDepK1ZLhDKtXD0NsAr4Z+BsvRsy0ZiuhOhPEcHU0w61fOLSXRYEelp5KCbAgQF+8Ytf0NPTE78XJlZUamCLQjCkEJwWeT0ksUhaXIy41pBhWojaruI1cQgTx3ExDBPP8/n44/O8/c67zJjRwapVa7Bthx/84J948skn+bu/+zt++ctfUi6X8X2fUqmEYRhUKqJsTxhbEuR5SnXaKKq2SQ6OyZXhcBajakB2oxGiahVxcGyHKArjlOoBNm7cyJIliwdZiGDiSJEMgM+5LpZl8e3nv83f/M3f8NZbb8WaQyjSq59XtaGMYDmaAhglIRJbtT8ahiiKamBgxbF6nh8Q+AFhGMVK02Kx5Lg5+vv6wTApNDXz8fkL/NMPfshz336ed0+8x5o1q2lra+Ps2XN8/etf5wc/+CdlkZXZizohMg1JoEWbbvTXYGjnqJ9vhOgfK1eu5NixY2zfvi2uvWcihVelxVsnQ7pO2zSKI5KYBcwA/qHeDZloTEdC9IfAH9S7EfVGOsvM8wLyeZdKRQxejiMGinw+TxiGvPbaa3GGiRwoSAVCRqnBWJ+IRyZGYlKKY5LiR11ZOggC/LjqtOM4fHjmDE1NTfT19fG9732Pv/3bJ/ne977H+++/r+T59ert1VRf0SbHzsXaJCTIkGqPRoCScSfplbaR+jv+nmGk3qt1XcYQ102I0udRbbPuhpjZMZMrPVdoaipg2zYffniGSqXCzTevjOuc2YNW1uMNXTbCNAwuXbrEn/3nP+PZZ5/FNE2KxaKyesoixXr4iSHqXIjzncqEiLQSfLrvSSJkQGTGJMhE/u4EcYiEfEYUYVoWZpylaZomjutSGhjAdkT9sf6+PuVyPnfuHD09PfT39RKGIa+//jpf//rXOXPmQ5qamimVynHh37gNkan+TliFr+v3IMcV6TKL1OtKNDQuZXLo0CE+8YlP0NExA9u28byKykQV5Tmq/Vd3lcG0CqzWcQvQB/yk3g2ZSBgNrMJZC3uAv0dU+82gQcVYxJCxA319ffT09PDHf/zH/M3f/A22bdPS0sLly5dVQUwjdjsk+lIUpI5QtZgYGEQqmyl2i1EtMzAUpMKtXO0Xi0VyuRyVSoXLVy5DHHytZx+JTCiX3t5eeWYkU/+vcaCLTGEJSz8O9dmpDO28XNsWJRxcK54MRYzJv//3f8yjjz7K8uUrEpXNpeVtrCqFy64VhpFSDg+CiKtXr9LS0kIYhjz11FN86Utfor+/HwgpFApcvdon2qHiWLS6a1HSIjDlMVQ/HM1XRzj/oQiBfL1j1gzWrFmD53nKomzbgohGQphIfkM8XONvw9Bc8lXyFCLup3jM511KJRELKbWzoiiiu7ubf/fv/i2f+tSnVF/Rx4e0SG0GhQvAg8AP6tyOCcN0EmYsAH9ERoZqQs/ukuZi0zRpaWkhn89z+PBhnn/+eT766CMVKClF1gRBiSe9IQdWfUJKHJlrKX0RhqEQ1AP6+/uVSJwtSzKkAsblJJ0kPjXiKa5lgJafTT9OaaTPIUn2Kl4FA6H9pLsWnnnmGdavX8+yZctVQK5eLkIK8N3ohON5Pq4rS8mI+VVaAg3D4OTJk3z7299WNehc11ZWoeRknpyQo0i6WdIEfgrievuhIX8fQ5MiKXoIScuhJJIfnzvHq3Ewdu/Vq4AZk6Eodn1HqTbW6G/XhFA9inhAK9bFshJxPy0tLezZs4ctW7bQ0tKiYslkCZcMw2ImYs78GTBQ57ZMCBphJB8t/gi4q96NmOyoCq1V3RGWZXHgwAEOHDhAa2trXN+rqjQLyPSR6z5uNJp/UZQ4pu/7lMolRZAkOUtktYRJtd4M1w9JgHWC8+qrr/Piiy9z8eJFJWwn3Slywqmp5H2N0AmVGXu6wjCkqSlPuVzm1Vdf5dvf/rb6TBRFcXKAMcj6mUY2MY78+xvps7bjcOXKFXqv9oEh5A9MeaMmAJJ823aVCDc1NbFr1y7uv/9+Vq9eDQiV7UR22/R0h10L7kLMndMC04UQHWIa3dTrgZzo9MBE3/eVcFlHRwfHjh1jx44dNDc3qzpHejbKRLUTwLbE5GsgxNd83yeM068TatyNX4toQmCZ1ZW3nEhk0OyPf/xjfvzjH1MqleJK5l7imo9F/7CsasaTeKzu9/Tp0/zzP/8zZ86cobm5WcUMyfalY0IypHDN7qvB/6KoGvsnXaUybi8aA0I8ZFvieyqzSaVkgGmazJ8/nwceeIANGzYQhiFXr15VCzxIarBlGBZ/hJhDGx7TgRC1AP8WUcAuwzCQk1y1MKQQNpNxOtu2bePhhx9myZIllEol9b2JGFB0M738W9YrShxfBolGVc2TDDcO6X6ULglR+Fa4VF9++WWefvpp3n///UTcUFXS4MaHGd0AGYbg+0EcK+Lzyiuv8MILL8Sfi1LFdjOMCoYhMiNHsUWGIcx0ajMIfB8wq6n6sXV56LGhdlX662t6dQEnn7e2trJt2zZuv/12Zs2axZUrVxgYGMCNsxHHwmo5jZBHzKENX95qOhCi/wW4s96NmGqoZQ0AOHDgAGvXro3LNdhKB0bpuShdl7FHGIbKRB+GoYprUINbWkAtmxTHDDITKAyqcWaS8PT19fHyyy/zxhtvKOFMGQAvJ6kbhTheVVFZEp733nuPH//4x0oXR8a3yX5QTbfPyPFYoqpfJhITbMfBtCx13w1dcX4CFkz5fF5ZKKMoYt68eRw6dIj58+cr8dBcLqfel5Au1Qwj4k7EXNrQaHRCdADBbDOMAipVVQtMDoJAxWIEQcDs2bPZtm0bS5cuTQwsMghb1wG5JoywQo2keJthCq0iwDAtTMsWq1QMIX9UI5QpSZLM2luGGLVX7qZpYZlWTIYMpLCl5wXYtsuHH37Ij370I86cOaOUocX3xsZaI4UzRRFekXHY09PLT3/601iReiAV5J+878O1IXOZ3BiiKML3fMIgxKt4eBUP+XsMJSEd8nd2Y5Yi6eLXFehnzJjBxo0b2bp1ayzKGSg3P5BllV0//i1iTm1YNHKvyCEYba7eDZkq0ImQdD3ItHVAZWnceuutbN26Vcn753K5QbpG+v5GhRFIiQzQlMRLsh5da0hqGKXrkWUrwBuHKJAqJRKq2WOSfFy8eJF/+Zd/4d1338XzPMrlMoCqF3WjMAyoVPyEq/bs2bO88sorvPvuuyoGTlZkT5dhGHq/GRkaExgGjusm9Ivk3+N1jdNxas3NzXiex+rVq7nzzjtZuHAhVmy1khtUx4O0In6GEdHwc2oj94Q/pMHZ7FhC1+5Jb5JwyPIZt912G/feey87d+5UWh5QJSd60OJYaNBAdRDTXXSynIj+fsI8bwghuig0MkvQiBh5pa7Xt/L9kCCIMA2bpqYmoijizJkz/Mu//AvlcplCoZAq2TCYqA4F/TOy//l+qFx1lUoF3/f51a9+xQ9/+EOV4aYTNKi69uId1XShjr6Yb4NjKMvpaDeoSlzElhrxm7TE728MIBdo+nNpHcrlcgwMDDBnzhweeOABDh06FH9GfFbXJ5OWxGlaluNGcQAxtzYkGrU3bKeBb9p4o5alR4o0hmFIW1sbd9xxB/fccw+dnZ309fXhxCq2uio0jNY606jdsPGQJg9RFBH4Ebbtcv78eY4fP86HH36YEGTUidS1Wgvk5yW5kvvr6enh1Vdf5cyZMwm5hcwa2JiQ44rv+5iGqUgNELtuhcL+pk2b2L59O3PmzMF1hUt3rOLYMij8IWKObTg06kz0h0B7vRsx1VDL7aWn4/u+r3Q85s+fz/bt2+nu7gZQboowDAli8TO9OOuocKOr1GuKDTJTW4aRECll72ppkzAUk5TjOJRKJd544w1VSw6GvvejtRglJBTiFb1t21y6dIlXXnmFixcvKu2jhEUow8TiemPzDFkDcRSH0LJKJfmV97xcLjNnzhz27NnDqlWr4s+LfiMFPdN9I3OXXjfaaVCDQyPOBF8BPlnvRkx16JXEgyAgn89TLBaxLEu5LBYvXsyuXbtYtGiRKpgqSZAuzpeZpRsXsmI4gOu6nD17ltdee01ZE4Eh3aajJS9SWVgeD+BXv/oV77zzzpi6ZTNMXihiTLXGoRRj9DwP13XZs2cPu3fvplgsJgrKinqFGVEeY3wSMdc2FBptpuomK9w6ptBXUU1NTSp91TAMFixYwOHDh1m7dq0KZrW0wpASk8uNkVmErgnaSl/Xf9KfS+Kcz+fp6enhl7/8Jb29vRiGoSxFw01I6Zi1Wq/plqK+vj5+9KMf8f777ytXip7hmOHaYRjWDW3XbHG9BssQVPuPngVbKBSU7tVtt93GI488wurVq6lUKrH1qGpNSp7rtbtuM9TEHyDm3IZBo80MfwAsr3cjGgFy9SXl8PUyCFCtI3Xbbbdxxx13sHDhQqIowos/pwcsZquzxockRf39/Zw8eZLTp08nYyRoOQAAIABJREFUZBvSJVXSSAdSp4mRdMs1Nxe4cOECr7/+ulIe1mNEsomuMaFXopf3W7rKisUie/bsYfv27eTzeQYGBrR6ekK7KgueHxcsp8EMEI1EiI4Cv1nvRjQapDaRzO7QBe9KpRItLS0cOnRIBVhDUrhv8qzcM8vQWEOPN5OkxTAMzp49y09+8hP6+vpU8KsspZGOCRpu3zopqurMRCpwW76nVy/PJr3JgiF+b9doGVJf0/pZGIUJ6+PmzZvZuXMnhUKBgQFRg9SJa6kFQai0qzKMC34TMfc2BBplhjCB3693IxoZusCeTF2tVCqUy2VWr17N/fffz4oVK4QWiWYZSk5Sqe6WpcFPKdQiMfI1SXZc1+XKlSu8+OKLXL58WU1MOmkZat/pv/XXZPX68+fP89prr3H58mWgSpb0gOpayQEZpjaknIesXyjFP/P5PLt27WLLli2Ypkm5XMb3fQYGBlTfsCwjI8rji9+nQbhEQ5wE4obsrXcjpjpkALVE2nURBAG2bauMM+lWi6KIltZmOma247gWpkWiwKOYlOrd1cIRtgzDwrAII4MwMjBMWz3HsLBdFwOLIIgolSo4To7+/hKlUoUoMmK1YH+QRhAkK47XknuQukO9vb04jkUUBbz22r9y7txHQIhhRIShP0iVOrMYXRuiKLihbdS/q+vMRhMZjslMM8uyyOfzdHZ20tLSQi7n0NHRQVNTk9avIAiq9Q5931fkWRdozHBD2EuDGCTskT8y6bEC+L16N6IRIMlNrergvu8nsnkKhQJRFHHq1CmOHz/Ot557ltdee43+vj4hiBhGqYktdbDMOjSlMNSkoWcShpGPaZpUKhXee+89fv3rX9PV1aX6ClRJ92jLvEiClM/nKZfLnDt3jkuXLiWCbDOdmekBnVBLXaqrV6/ywgsvsHz5cpYtW0ZXVxfNzU3qc2EoF3LV0kK62z+zIo4Zfg/4H8Cv6t2QG0EjEKLfBbrq3YipDr1CeTpVXpZEAEGM5Crr7NmzfOtb3+Kpp57izV+9JeI6DJkWm7YGZASoUVBTnDEIiAixbZu+vj5OnDjBm2++yfbt21WFccdx1GevlRBFUURvby/vvvsup06dUhYnWVZGWCNqkTZppcj631SGZVoEYYBlmliGRRB62LZwo/7whz/kzJkzdHd3s337dnbu3El3d7d6H6rkp2qxzgLwxxhdiLn4t+rdkBvBVCdEB8kCqccMaTn7tFm5VCphmqZKe/6Hf/gHfvKTn3Du3Dl6+/sAYTnyfZ/QDzJTdAND3FvplorLtkShsthUKhU++uijBNHWLZC68Getv3VI4UWAjz76iLNnzyasBdfYciCbCKcaTNMkCIPEYk0SnjNnznDmzBleeuklXn75Zd566y2OHj3K+vXraWkRBV0lgZbZijIeKcOY4jeBp4Hn692Q68VUJ0S/U+8GNArkZCUh6xLZto1pmly9epX+/n5efPFF/vqv/5rvfOc79Pf3k8vlVMFNwzCq9YxIBsdOKimiDDeENNENhfKdkmWQE83x48f54IMPmD17luoXtZTQa+0/TY5sW9RM6+npoVKpqEDqqrssI9+NDFXLMAqV0U9aGmW/KpfL/PznP+eDDz7g/fff56GHHmLjxo0Ui0U6OtpV7GO63mJmKRpT/A4ZIaoLPg/cU+9GNBLSA4VMmb58+TLHjx/nm9/8Js8++yynTp1S2jL9/f0AWI5N4Pv4cXHHdKZZtiqf+tBT4eNXxPMoIopCiKpyC2EY8vLLL/Pmm29y6623EgQBnucpgq2T5fR+9YBo+b5lWVy9epWTJ08CgsBff+2yjDxNNaT7h1x8ASrjTPaJCxcu8Oyzz3Ly5Ek2b97MihUrOHz4EHPmzCGXy9UYmzKMIe5BzM1/We+GXA+mKiFqBb5a70Y0EuTkIgmRnLhOnDjBCy+8wHPPPcdLL73Er3/9a0zTVGZn3f1hKDE0A6LqIJYRoqmPdOaXjiiKMDCw4orzEufOnaOnpwfDMFT8ECRLeYw2jigIAt566y1efvlfCUMhtifjgkwTQcgyNDT0sh2Q7Ity8dbU1ITrupRKJX76059y/Phxli5dyvnz57jzzjtZt24dxWKxus9UXFGGMcFXgb8HeurdkGvFVCVEXwXW1bsRjQR9oJHPPc/jF7/4BU8++SQvvvgivb292LZNLpcbnEbt+ximqfSK5L70wMYMDQqVCl3tQ7I/ydV7Nfg5qTpcK4i/FgzDUIHa+j7EsWyCwGP0lp9s8puKiIgw4+BqNAu23MIwpFQqqX5nGAZXr17ltddeo7e3h9bWVpYtW6YIUS3rZIYxwTrEHP2f6t2Qa8VUjCpbDvx2vRvRaPB9P0FepLVo1qxZDAwMcPnyZWzbpr1d+OIrlQogCnpGUQRSRTYIiDRilZGhxsCwuj6GgWVaCQuQYRi0tLRQqVRwHBHA6vu+mrikjpUexC8hXWpSL0ZaK8MQpUSsr+rF50YgOYYhtgxTEtIKqY8neqC0lAXRS8U4joNt21iWRVtbG7fccgutra2JhV/mNhs3/DZTsIzWVCREvwV01rsRjYZaK3TTNOnq6uLuu+9m0aJFlEolent76e3txYytQZVKJVltPJt4piWCWGZBrril1ef06dNcvdqn6uLJfpN2UdSKEUnrWOmFPWvHDunlIswhXsv6ZiNC1jWT6OvrU/GNzc3NPPjgg4oQyTJEkKXejyM6mYIp+FONEG0hsw6NC/Sq4To6Ozu5//77+eQnP0k+n6dSqZDP55UaLFAzBTornzD9IEmNjEcrlUq89NJLfPjhhwlCBMkyIMOv0AWJCcNIlQGxLIswACITAysW+RzNlqFRocc+SquitBatW7eOgwcPMnv2bHzfx/M8JewIGSkaR/w2Ys6eMphqo8RvMnXjniY15OCgZ2DItNbly5fzpS99iVWrVqn6QTLQVU50GaY3HNtJlWqBcrnMa6+9Rl+f0KiqRY5rTUq6lUl8Bkyz2t9M01SlHJQVCVPbbIyMBE0rqLT8mIzn83klG3L33XezcuVKLMuiUqkMWqhdX6ZihlHAZorpBE6lEWM/8Fi9G9Go0FfpeuaYjBVatWoVBw8epK2tjb6+PjU5jbTPzEc/PaDfY32yuXTpkooz0wuw6p8dLS5fvly1CqEHxUIti5AkSMJNFm+qdlZGmBoNemJIuVzGcRx27NjBwYMHaW5uVjFsMq4oU6yeEDyGmLunBKbSiPCVejegkZFevZtaxpjneQRBwCc/+Ul27NhBGIZ4nqeCGGutsDISNL3gB76y3sj+IJ9L0c80OR7u72QMEZRKZd59992qFUqLBYqIMLBiolSLGGUTXqNDzxbL5/N4nsfNN9/MY489xk033ZRwk+nkfDQZjhluGFNm7p4qPeFe4JP1bkQjQ8/qSSsES72h9evX8/DDD7NmzRrliwdUims6EDbD9IPuApNWRD2jLO0aGy2kOKhUvJZkPUm8q9ajJEZfVT3D1IQ+dnmex+zZszl69Cj79u0jn89jmiau65LL5RL97vpLwGS4BnwSMYdPekyVEeKJejdgOkBXB5ap0VKEsb+/nzAMOXjwIAcOHKClpQWAXC6X8MvDKCc6I/PbNxJMoxp7ZpqmyuSR1qGRgutHiiHq6enhgw8+IAiDwbXQMNCHsiopmirDW4YbhewPuVyOIAi4+eabOXLkCPPnz1eaavJzegmZDBOGKTGHT4UR40HgcL0b0eiIoiiRBSQnNb3+z8DAAJ2dnezff5A1a26lWGylXPawLIcwANOwsUyHKDQSlgKBjAA1MmQQPqB0qtIrcWnVARIWHjFJ+URRdbUu9YkMI8I0RUzIqVOnhCK2ZREEIZZlAwamaRMSJDZRehYiTKKaw1yY2jLcEIwwuSmMNuNv+M9FRizMaFuxrIeJaTlYtovj5pUaeqlUYtasWRw6dIjFixdj2yZh6OO6biJ2SC8Qm2FCcBgxl09qTAVC9OV6N2A6oFb2j8zYCIKAQqFAPp+nXPZYs2YNu3btwjAM8vk8ruuqrI4gCBKWoqTmTGriyaxEDYOh0uh1V0ZaFThtFdK/n95836ejo4OIqgp6FInooSxerc5Qv+MbvQ9DT0e2bavSQGikWvYZx3HUZzds2MC2bduYNWsWkNSvylBXTPq5fLITot9gCkWoNwpqTUhyRV8ul+nqWsC+fftYunSpmuRc1x0U15FlmE0fhFHVDaG7tKSSsB64WosUGYYMiCbxObkVCgVWrlyJaVTr5SVr5Q3ZMjIL0FRBmPq7+jyRoZjqW3rG66JFizhy5Ajr1q3DcezEAk0iI0d1w37EnD5pMdkJ0Rfr3YDpCGnZkRpDsqSH53k4jkOlIqxE999/P+3t7WpgkmZpSJZfyDA9oAfk6+4xXUF4JJKsv69bjebOncv69euVBpY6HlksSN0xAcHqiXFEEuH4Ndd1CcOQXC7HnXfeyb59+2htbcXzfBXcn2HSYFLP6ZOZED0E7Kt3I6YzDMNIKAzbto3rugRBwOzZs3nwwQfZtWsX+Xye/v5+DMMQhCieGLN01ukLPcj1WuvZpVXODcOgvb2dpUuXKkvAYCtTOiYoswxNPEZDTFP3RcUcDXHf4vcHLbAMAzMem2R1+wULFnDXXXfR3d2txitdKy0LpJ4U2IeY2yclJvOM9W/q3YAMAjJgUWZw5HI5TNOku7ube+65h66uLoj1iuTkl7nLph/0ey4nrhkzZqj4slrCjOnvQ5IQydcNo0qu0vvI+tkUxUgxhNr7ykUaRRhxCr1pmgS+T39/P7lcjm3btrFx40Zs21b9T7rTMiI0qTBp5/bJSojuAw7WuxEZBGQMkUyhtixDxYVs27aN22+/nZmzZglC5HnYjqOCsuV3MjQ2pPih7CtyQlqwYAFz5sxRgooSaaHGoepKVUX0SGhfRUTKMhRFweAsp5G2DPVF4h5EI9yjiCDwIaq+plufDcPg9ttv5/7776ezs5NSqUQQBGrLMOlwEDHHTzpMVkL0hXo3IEMVegBrLufEtaVMHMemq6uLffv20dnZqT4vhdAgS2udLpCrcOk2lVbFuXPnMnv27IQysMRQ5T7096VlyTQZVCstc4FMNUh3V4oMDQuNKEuLYayUD5AvFJgzZw6f+MQnuPPOO3FdVwmBSndaRoomJSblHD8ZCdEB4Gi9G5Ehiar7QmyuK4hOGIbs2LGDO++8k/b2dgBKpZLy+cuaQnLyMg0zNYlJxZgMUxl+4OPElkFZ/y6Xy7F48WJVSkGWewGU2nTajSb1jKSFSZLxIAhobS2CEWLZBrLfuK4r+lMUYkRCcciIIowoil8DI0K4WuK/jQgMwsSWYYwwpCJ4Sgwxvj9yQDG0Tb+XJgZEEVEo7qVpxKVYooDAr1Au9XPH7bs4cuSI6icy1kgakbLi05MSRxFz/aTCZCREn693AzLUhljhi7/DEIIgxHVd2tvbefTRR7njjjswYtea53kYhkEul0vWEIrScSTZCr9RoKsBSyxevHiQa0wnQbWsPLWsPvr3Pc/DtgQhL5VL6B9Xn8tI9qRDFEVDahZF2j/5XH0nhlxYRYgCrY7jMG/ePO677z7a2tqUNdpxnIQuUeayn7SYdHP9ZCNEW4GH692IDENDWq6rrgyTQqHA+vXrufvuu5k/f75a3eurfB0RVXG1eK8T1fwM4wTd8idT7nt7e5k5cyaWJdxnruuqjEXpUk2LOabLv8jXgyCgs7OT5cuXq2OIz2i19xLxJ2KLCKlaIbOJcdwwjGVIzxobTE6Gyg5M3kvLMrBsgzDyxd+WRbFYZNu2bWzYsIGmpiaxtzhuUfTBsT/NDGOKhxFz/qTBZCNEx+rdgAzDQxIiOaEFQaBcJHv27GHz5s14lYoqolgul9UAlSBGWexHQyGd4qwTnlKpMui14SQZahWAtSyLNWvWsHfvXpFdFMeFmIYZC0EOLQaaWYsmG+T9qKbQ1yr8q2+2bStLs2VZDAwMsHz5ch5//HHmz5+PbVf7VlWaYSLPKcN14li9G6BjMhGi5cDj9W5EhqGhD1imKSbBKIoolUpEUUR39zK2bdtGc7FIuVwmn88nNIwsy6rGAGRoKOiSCyDE8jZv3sySJUuwbZtSqaSyxGqlzg8HOSHOmDGDFStWiBIxoSfiiSyLUGUf1dIfyvSIJiUSi6NhrEQxpEW6UCjgeR6tra0cOnSIvXv30tSUB1AlhCwrG1+mEB5HzP2TApOJED0G5OrdiAzDQyslhGmihBtBjHE7d+7kwIEDmKZJqVRSvnzpJqm1+s8w9SHT4B3HIQgCyuUy27Zt4+abb44LbGr1x66h9IZuTbp06VKiQKdeI09aiDJMYhhpogqYw1j2apQAyuVyRFHE9u3bOXLkCI7j4HkBlYof9xUxPmUK+VMGOcTcPykwWQhRC5PoomQYjHRhzjAE3w9VgVfDMPD9kLVr13Ls2DFuv/12VftMutSU9ozmwshIUWPAMi0cx0m4zebPnw/AwEBZWQlHkyqfLt9hmiaVSoUgCJgzZw4LFixIfFZ+LhkjlJGkyYXrvRfiPkpXWE9PD7Nnz+bo0aOsXr1a9Y+qIKxI9pDkKMOUwGMIDlB3TJYu8zlgYb0bkWFk6EHVnucRhiGOIybBgYEBmpub2b17Nw899BAdHR1YlqXSsQUZijVBIj2OIFvNTXXIlOdyySOfz9PV1UVnZ6dKg5ap9FIsbyTVagk9jmTWrFmsWrWKZcuWVbMWNUtALZ41OsI9WYbB6YBrc5XK+ydrlYVhyJYtW9i7dy+u6+I4lpL2sCwjHp8M5TbLMsymBBYiOEDdMVlGgklxMTIMD2klkkGsjmNhWYZSqLZiKf2OGW3s2bOH3bt3M2PGDDzPI5fLqUBrCMm5rtAWIcSxbQzAEKojqS1MbWifrW4ZzCG2FG5QuVm6r2TRX4jIuQVM0yLwI1w3h2nYLO9ewW1r1zNz5kxs26ZYbCWKDO17QidGrP4jkvFp1Sw0SXxM08b3QxYsWMDcuXOr2WqxQUrEmCTbKr4bUM04C4iMiMhAbJjxlmG8YZDWgYoRGmLDxLIc9L4bBOK+R5Eg1KVSiZUrV3Ls2DEWLlxIqVQChBCsXJQBiRiiTLxzymBScIDJMJPcB2ypdyMyjA7p7A/5WqEgCI/EwoULOXDgAIsXLwZE2QWZElsdoMRk5/uViT6NDDeEqoI0GEpg0bYdVWZj1qxZFItFLMtIBNXXzDgcBSzLUPvo7OxUdfV08nQt7a+miA9BHDNMOKS1T48R06Uc5syZw+7du1m+fDn5fD62GGVWoAbBFiZBOY/JMBI8Wu8GZLg26IOVnJDCUK7sxQDV3NzM7bffztq1a5kV1zmTYo1AIiMpSqfhqr8zV9qEYZQ1wITLMySKfMLIFxYaI1Tp0EHgUyjkWbFiBTNmzFC7F9oxZs3g+muZ0FzXZe3atcyZM6em2yzD1IRe81DeU72f5HI5brnlFu69915Vzd6yrNhanVmAGgR15wL1JkRrgQfr3IYM1wFJhiQxEqv1au0yz/NYvHgxe/bsYf369fFkGajBKwgDtR/LzKT1pwKGmniCIFD33TAM5s+fz7p162hra0t9v3bx1tEgDImtUDa33XYb3d3d2Lad1alqEOj9QhJcKeQJ0N7ezs6dO9m0aRO5XI5KpaIWVVnwdMPgQQQnqBvq3ZUeqfPxM9wgJCGSPnxJejzPU1airVu30t7erlb0Kk2/ph5R2jKUVhiurVOSYXyhK0cbpim2+N77vo/rOoShIEYrV67k5ptvxnGMOA6k1h7jSlWjjPGQgfxRFLFw4UJWr15Na2trHNSvx55kmIqQxFaODdICJAu1Llu2jB07djBz5kz6+/vxfR/f97Gs7J43GOrKCerZmwrAZ+p4/AxjDN8P1apNxpgsWrSITZs2sXjxYizLolKpCHN4XOohjEJlLcoIztSAHjsm3KWBiiNqbm5mzZo1sUtL15K5sWMGQagmzfb2djZv3kxXV9f1nsGNNSbDmENqU+lq5gMDA1QqFWbNmsWOHTtYvXq16mfVOCMGBdNnmNL4DIIb1AX1JESfBq53RMswyRBFYNsmrusCqIrThhGxYcM6du3aRWdnJzBUjbNaVqGoxmsZxgfRsFsUhURRKCqUx88hwrJMtaq3bIPZc2ayavVKmprzhFGkBTwPde9GZ9mR6tZSj2bdunUsXboUIOU2S+8vsxxNBSQzWA1VnqVYLLJ7927uuusuOjo6ACgUCipAP4unbjh0IbhBXVDPkSIr4jqFMNpYD1m/TLrH+vr66OrqYvfu3SxZsoR8Pq8+JydL09AnzWyEm5TQ7n8Uy5VL96dt2xhmRC6XY+bMmSxcuBDXdRPKwYN3V81UG03fksHYUuyzs7OTOXPmKLHH0cEksw5NTkhSLa0/rutimiYLFixg3759bNq0ScWp5fM5RZzCcCiXbIYpjLpxg3p1pa3AgTodO8N1YKRJR74dRRGO41AsNuE4FoVCgSiKuO+++/iTP/kTmpqacF2XlpYWgiDAsW1s2wKiRCbT4C2pcJ1hjBFFEAVDbqaJeoxCX2gHEeJ7ZVqKTfT19dHa2srnPvc51q1bh+/7SqE8DINB/UfPUByqb+mZjK5r4zgOuZyL4ziqVtrChQtVULfjOGrSFPFJ1XiUzEo0+SDvv8xOFcKKEUHgYVkGYejzhS88zqOPfobW1qL2vo/jWLiurbJaMzQUDiA4woSjXqPEb9TpuBnGGWl9IvlYKpVYvXo1n/70p/E8j56eHmzbFhOnV0mIA6a1jrK02vFGxEjxW3otMvkoX+vt7cUwDJYuXcrixYtpairguq4iJ9euE1Tr+CTiS5qamli1ahWbN2+mvb0dz/Noa2tTFgZ53KzvTA7o9yKK9cd0IiNLs8iC0T09Pdx2220sXLhQLaqku1TXssrGh4ZFXThCPQhRDvhUHY6bYYJQixQ5jsXcubP57GcfoatrvtCzMYTZ27ZspSo81JYFXE8Ehqs6LpSl5SYVph3HolTqp1DIsWHDOpYvX4ZhSN0hIyG1cCMQatXib5nVuGbNGvbt26dqmxUKIhZTFhTW41IyTD7ohX5t21YuUYAFCxbw5S9/mW3btuE4jhJ2hWTGY4aGxaeoQ7H3ehCih4AFI34qw5RHWnwvDENWrVrFrl27KBaL+L4v6pwRDCrfUBsikDdD/aDXIdNX+QsWLGD9+vXMnTuXcrmsAp3HSieoWptKPPf9kLa2FjZu3Mjq1atxXZeLFy+qGntQtWqNhYUqw41huFgxXY7D931aW1vZt28f9957L0uWLFEFoiUpyojQtMACBFeYUNRjpMisQ9MQchBrbW3loYceYsOGDXFpB0sb4CJVPLa6ZSbxyQY9IL5SqdDW1sbGjetZvfpmCoUcpVL/uCgIy24i6+cBLFmyhD179rB69Wr6+vqUWKPMcoThCFEWWzRRkPF/hmEoyQ2oLpRkGRbLsuju7uaee+6ho6MD3/cTCvfZWDCtMOFcYaJHg5XA0Qk+ZoYJQHrVlh64HMdRLozDhw/z4IMPMm/ePPoH+nFdN14lUmOLaqwIsxXiRCPtBpV/e57HihUr2LNnj9KakrEeQIrw3hiCoOr6kuViZsyYwd69e9m4caNqm2maWiHhoaxU6aEvI0bjCYPaMYHyuW3blMtlcrkcW7ZsYdeuXcpipAfMZ7GF0wpHEZxhwjDRo8ADE3y8DBOEWoOTPnDJdOne3l7y+Tx33HEH69evx8CIFWetODalmrGWYSIxfJyNWMkH8d+h+htg69bN7Nixg46ODhUYK7J/AkWMbhRRJMmOeG7btkrb7+7uZtOmTcyZMwfP85TFIZswJyckQZZFf2WKPQiL3969e5k1a5Yq3WFZFo7jqM/UXiRlaFBMKGfICFGGCUEUReTzeYrFIhcvXmTx4sUcOHCA1WtuJggC8vk8+XwTuVwex3FVkGVyUpPd1eDGg6zN1GOG4SAmLrFKt20L23bI5RyKxSKbNm1i6dKl2LaN53nKKiRVy8eCmMhAbYAgiJRLrL+/H8ex2bNnDxs2bFBuF0mMhs40G6r8S9YvxhMqBigyE4QoiiJaW1vZtGkTO3bsoFKpEEWRsg7p38/iiKYVGpYQ3Q5smMDjZagrzMRmGBaeJ1btlUoFyzLYsmUTO3Zso6Wlhb6+MmFk0dTcBoZDhI1p5YgiC8N0wbDAMIkMg8gg3kIixGZAajMTW7o9g7epjcHnP8QWJTflm0QShzQhkKnu8v5ZcX0yG8Ow2L//IGvXriOfb6JS8TEMK/GZsVzNV6ugiyy3MNZD6u/vY+7cuTzwwAOEoSBMYOLYOaLQgMgULhsMjCgSG2FiE73EUtvQ/adRMZrfyNCbsgabVT0xIaURAAGGZRJGIRFg2jaRYWA7OcoVn6u9vdi2rVzpra2tKmMw3Xck4c0C5acNNiC4w4RgInvVJyfwWBkmIWTAqxTW6+7u5t577xXxAraNbTtcvHiJMIxoamomDCPcXB7DGEuFYX1ia/RBdfRWNGFJsdRj/Kp69DwP183jeR65XIFyucyyZcv5/Oc/z9Kl3VQqFWWV0SexsYr10PWPdMj9t7a2cscdd7Bzx06KzUVAxA7lckNl7kpVdN1KFLtkMjXra8TgrEMFzQdu2Ta24yil89JAKbY42ixbtpwDBw6wY8cO2tra8DxPWRgza9C0x4Rxh4mcET4xgcfKMMkgs46kqF6lUsG2bXbt2sXRo0e5ZfUabCGDjBFFeOUyYeDjVyqEgV9d2acsHHKFP5KGzvBbI2C486r1WrJenHRF1HJHyEDlcrmsLHxz587lM5/5DPv371dV5/XvjdckppMrqXIs45SWLFnCl778b7ht3a3iXI1QKacPjZhoESlV9NFdv0bDGPx+jMHXR/KhMPAxDPA98Xt2cy6WbRGGIW1tbWzfvp0tW7aoODRgkDZRhmmLCeMOE0WIjgKLJ+hYGSYhZJVq0zQpFAr4vs9Gpk0zAAAgAElEQVTly5dpbm5m7947OHBwn5jgDDEAVioVCnmhUGuZemDuaAfHRp68RouhJvEqCZDQy2ToJTUk4ZBxQbZtk8vlOHjwIJ/61KdUwLysaabHfg1pNbgO1FIvl8e0LDGxlkolDh8+zJEjR5g/f77SJNLTtke+Vo1KmEcBSWiu49Ewa+mIVe+/47r4sVRCvlBQMUKFQoEdO3bw0EMPsHTpUsrlMr7vk8/nE30ow7TGYiYoO32iCFFmHZrm0HVhwjCkqalJEaObbrqJffv2ccutq2lqzmPZBmHk4weV6qo9EZcQqdghudWu0q5Nauq7jTrp1TqnoarX1/qOgJyApMVHWo1ksLRhGGzZsoX777+frq6uuFSGociQHt8x3qnR6XpopmlSLBa56667uP/++5kxYwaFplxVFV2Lb0nWxatah5IWohr9J701CAzCamzVdTwK8pPuc7IPiPpkjmvHgWshjmMhr+3+/fvZvn17QqwVhKSDUChvdNd2hlFgQjjERPS0HHDvBBwnwyRGGIaqttXAwAC2bVMsFpUg26pVq9izZw9hGFIul1WmkLQsJVSvGawrE9X8F06borDJ8w0T517rGqSvoW7N0YmM7pIKgoDZs2dzzz33sH37dkzTJJ/PK8HEWhoz+uMNnZ9mJdBLceiyDs3NBcIwZPny5Tz00EOsXbu2poVBxSOlSJEIAK5ev2kDI0z1net4TAuIUSVDhmEQBoFKoy+VSniVCoZhsGzZMtauXYvrukps0zTNBBnKLEQZEBxi3Et5TAQhOgrMmoDjZJjE0MXx0irCQRBQLDaxceN6urrmk8+75HIOra1FWluLsfbMcHEdw20p60gjrvQNeZ764+AtaQVJQo/HkanOcsvlcriuy7x58zh8+DB79uxh5syZMXkCz/NrurTGo+ZUrYBtXZ+oUMjhujYrV97Enj23097erj6bxMiWw9oWyBQaof8o3EAcUZS0rFUz+MA0DBzHoTQwQD7n4NgmlmXQvWwJf/D7v8tNy5cpt6euWyUXUGNV/iXDlMYsJsBtZv2H//AfxvsYfwTcNt4HyTC5Id0avu+Ty+WU5UeKskVRxMyZM/E8j76+Pk6ePEm5XKZUKqUms6GsDXLSSr8fP1f7GOr7UzizyBjKJXZ90MspSNeZ67rs2rWLRx99lA0bhHpGf39/rBtlDatCLK2AN4I0oUmrZktiLWOdXFdoWZ079zFXr17l6tWrI+xXkhp5DQ0S/Wna9J/r3MUI7lEZ3F4qDWAYBnv37mX//v383u/9niLe0kKkF+cFxkzcM8OURwn4/8bzAPZ47hxh4joyzsfIMAWgD2613B/NzQUg5Ktf/S2WL19GuVzm1VdfxXVdZVESE7RQQvZ9P2FOr+5yqNW6HFTlB6fwBFYTI8dCDWWxEQHKZnxNLRzHVlpRUmzx1lvX88gjn2bLlk24rh2rixuEoY9lOTX2N3ilPxZIlxCRkG5V6ZqNoojNmzeTy+X4+tfn8OSTX+PSpUtq4tUDdqV1QsTBqD0mr5nqL9O3/wwPcb/l/dHvR1NTE/m8+B2XSv3MmzePBx54gMcee0y5xc6fP08+n1f6Q3KciDT3W4ZpjyMITlEerwOMt8vsHqBjnI+RYQphqIFNTmTt7e3s37+f3/3d32XPnj2q5IeMKdAhA3kz3Dh8X7i95IQkCWgURSxdupS77rqLW2+9ldbWVqURI6//ZHJpBEGA7/txTFEzK1eu5NChQ9x6662KSAPKPSPIkK9q6aWRZTmNDjrB1GO8AGW5u3DhAjNmzOCee+5h586dFAoFSqWSqmEma5UNFc+WYdqjA8Epxg0TQYgyZKiJWm6QSsVn7tx5fOITn+DQoUPMnj1bvS+DMmX6vqiEndWsEhh5dS8mGalGLYUYbSXIaNs2/f39qoyCbdvMmjWLL3zhCxw9epQVK1bgOI5ygUnr3WS4/jIGKooiPM9TQpEzZsxg48aNfPrTn2bu3LmEYajqYgVBMMidJ3VzJst5TRaM5lrodcf062dZFlev9mHbLjt27OKhh36DNWvWAKhCvIVCQbnKpJs2uwcZamBcOcV4xxD9BVAczwNkmHqoFWciX+rt7SMMQ1paWgjDkDNnznDu3DlKpZJa4Us3h2VZBEGIYQwXuCtjQNLcf4hYo6kIQ2ZIjerD4v9EQLIJRMoiFIYhvu/T3d3N0aNH+eIXv8jixYvJ5XIq80/qxFS/X1/ICRRQcUsyJsV1XWbNms2VK1c4e/YsFy9eVBOx6E8AEcm5V+4rPreG7z8yBu/6IJLLkhYieX09zyOfz7Nv3z6OHTvGzp07cV1HKYnXqltYKyYtQwZgHvB/jNfOx5MQ3QU8MV47zzC1kR7ooghM01KDo23btLW1Yds2V69e5aOPzjEwUMI0LSzLxvcDgkAEZfu+N9yR4ge9MKx27Ggsy4LUCaMgRKLGWFUfSNT3knW6IixLTEj5fF6JZx47downnniCzs5OcrmcCoqXljqdnNYb0m2nZ8qJOBYL1xWT7qpVq3Ach+PHjzMwMEBTU5OyFFUDqI2YIJnJ66X6SKr/KEzhPnSdhEgnLbbtiLpxGDi2i+vksCybKIR8vsCd+/by2c9+lv3799PS0hJnJppYlkkYVmPWdZKdkaEMNVAEfga8PR47H09C9NvAtvHaeYapj7TejVRCloG8zc3NzJ07l46ODi5cuMiJEyfwPI+mpiY1GefzeTzPZ+jBvBYhqvH+VMYoCJFlJWOtjITFI8JxXMIwoFwus3TpUh555BE+85nPsHDhQiWWpytE6wrVk2HiklYqaSmqWipEe13XZfbs2SxatAjXdTl9+jRnzpzBMAxc1yUI/NQek8HbUYIQ1UL9r8F1YwwIkesU8HyPQr5AR0cH5XKZ/oF+Ojo62Lt3L48++ghbt27FcRzK5XLsIrMxDAjDtJBjZhnKMCwuAM+Nx47HkxD9n2T6QxlGAWGxAKKIwPeJwojAjzAwaGkp0jV/ITPaZ3D+4/N8eOYMXsUj5+Yo5PPkczkq5QphlI6hSVl+0oSoESxDEsMSInGekiTI807qBREXb3Xo6urigQce4Mtf/jKdnZ2cOXOGYrFILpdLECEZlDwZ3GUS0pIThhFBEBKG1cBcx7G4dOky8+bNo7u7myAIOHnyJFeuXAHQCJGwDKkJOTIhMrSukhEi9TWNuPheiGmIuLIoiujt7aW1pZX9+/dz7Ngxtm7dRnNTkYsXLmGaFm2tLfE+wDQHu3Gz7LIMw6Ad+M/jsePxIkSbgD8ejx1naEx4lQpWnC5tmia2Y+NVPLyKiD9YsWIFbW1t9PT08O6771IqlyCKNUpMQ7MS1SI6Zg0dmQYaaIfVkUmn2hsYpEpeWAZB4LFo0SKeeOIJHn/8cRYvXkwlVhNua2tTFiIYrAGUVhKvB6ouM92NY8fuM4tyuUIYhuRyOdraWlm+/CYAfv3rX3Pp0iV0V5hhGBhYgghJTHNCVNNqY4qFjGGIa9zRMQMwuHzlIoV8E0eO3s2xY49z9z2HsEwbjJBKxaOtvYV8zsUPAizLJIoG7z8twJkhg4ZZwD8CZ8Z6x+NFiI4B+8ZjxxkaE6YVcxZDlAMwDDAtC4yIIPRxcw7Lb+pm5qzZnP7gA06cOIEfBJQrFUCm/UKVEBkYZhw3EwGGoVb+pmkKg5EhA2kjDMWZIjFByK0WuVKT51huN5DabUQYcVsNw8Q0Le1vPQ6GOJjVx7Yt8oUcni+u35w5s3niiSf47Gc/y/z58+nt7aVQKDBjxgyVDi33k3ZrTIYJS485qWaKoQLuHcfGti2CwCcIfFpaitx880oKhTzHj7/J1d5+ojDCdlwwTAzTxHFdwjhQ2LQsojDCiGOUEuceRXE81nB32IypaO1/9e4/2hNM04pdhNXfURT3J8uycd2cCqK2bZcgDHEdB9+v0D/QTxQF3HHHHfzO7/w2+/btI4oC+vr6MIyI1rZWcjknjgU0h7QEZa6zDCPgJPCjsd7peBGi/x1YMh47ztCokAKLkWZxiNTqUbpnZs+ew5IlS2hpaeHChQtcunRJBGJbDkEg3Ga244BhEIWhsCLFlqdBRxzVKnSkmCNJkG5Uq+YGJ7Souo9a5S10BWfDMFRqumVZLFiwgC996Yvce++9LF68GBAZQjLeQydEUwXpjCVdqqGvrw+AmTNnUigUcN0cH398nnK5QmlgQBAf6RoMAsw4SFte1TAMRd8C1S8HeWwHt2jsTzKBGyTUw+xDkT5D1CQLfJ/IACefx7QsAt/DMIReWD6f46677uKLX/w33H777RQK+TibzI37lF0zCH+q9a8MdYcF/PWY73QcCFEn8GdjvdMMjQ4xGA/WIKlmnFQqFZqbm1iyZCkrV65kwYIFlEolTpw4gWlY8UobwiDENAxybi4uElvR17vVsmaMZn2dXqXqpR3052Nz/tcFI8KKU+ehqsmjx/c4jqOywyqxVW3u3LnccsstbNq0ia9+9be56aabFCEV2Xs+/f39SqxxMkNPu5fQn0u9IV3d3HVdOjo6WLx4CXk3T1OhwMDAAP19fURhGF9TCMMAokjU5LJtTMMQrxEJLhqmy37oW7qfjNd2AxiOEKWsNG4uR1NzM7ZlU+4fIPB97FyOKPBZtmwZO3fu5HOf+xxHjhyhublZSTlI7SdddFHsPrMCZbguLEHI+vSO5U7HQ+Y3c5VluGakXTL663K1LlKkxWC6fHm3Sge/evUqr/7r64l6aUEYEJZF4K9B7YlyNArEEzNY33hx0CAMYheRkVAKFgHFDqVSiWKxSBiGhGHI7NmzOXDgAHfffTdr166ls7OTSqWias15nkcQBDiOU5NsTEYMR4qkoKdt2xSLRUqlEv39/di2TXf3Uj7/hWOsXbuWGTNm8K1vfYsPznygMtBKpdKgOClDC0wPo3BQH6tC3ovJE3x+TYii2PgofiuVcplKuYztOOQLBUpehcgPlPjlpk2buPnmm8nlcvT29qo6ZbpGUVozKkOG68Q+4G/HcofjYSH6fWD9WO80Q2MjisLEICkUlE3tuakyooLAx/eDOEC2jTlz5pDLuXhehQsXzhNFIYVCHss245ReiGRaLzJWSL6qmYsSqK7sE7FF47Lil4cMk/FLo93i9siAYnnNAKUoLUlOqVRiwYIFHDlyhE9/+tPccccddHV14fselmUpV1mlUiGfzytL0WTQGhoNhppg5etSnVp3wxqGQbHYTGdnJ+3tbfQP9PHRRx/Sc/UKhgGWbVIo5DEtQ/WFiBAZgybjlIa7x1ULzBDb9dz3sdoSbUtcNPWn7TiiLllzM03NzRiGQalUornQxJo1a/j85x/n4YcfZsWKFbFgaqDqmEl3pR4XpD/PkOE6cQV4eix3OB6E6P9CpMVlyDBq6IQIhEhjenLXLR+eJ4q7tre3M3/+fFauXMnMmTOpVCpcvnw5DuIUAaJD1dqKEmREG5hF4NIQLR2HAVwSoetGhLRESG0gqSQtlYKjKKJQKLBmzRo++9nP8thjj7F+/Xry+Ty9vb3k87lBpThk3NFUmriGaqe0MEoLRVoyoLe3n9bWIgsWdLFo0SJmzZqlLGuXLl3C8zxV9sOJyYF0B8VHIOkiS7Wr5iva5+t6eUVQfiIwPSWMmMvnlfVQnndXVxf79u3j8ccf58479zJ//nx836dUKilxVSmQqQf3pwOmp4oFMsOkQwfwp2O5Q2OMCxduAl4ayx1mmB6QBSClaT0ttCffl58tl8vKolEqlejp6WFgYIA33jjOM888w7PPPsupU6eUy0gO4rUqvRuGQaB7raIhiJJ4YRzOXh34ur9pUK0uLq1Cvu8TBAGu69La2srBgwe577772LNnD7Nnz6RUquC6LqaJcqXJz8vrJN1mUx3yuuixK77vq3ipcrmszjsMQ65cucKbb77Jd77zHZ5//nl+/vOfK9eZ/JwsFCv7p0Bt19igCT8yBRGO4n5+w4TgxsZxy0S5pqPYTSavl9ScCnwf07IIg4B169fzxBNPcPvtt7No0SIKeVfVkQNUJp6M25KLmaHS6zNClOE6sRl4eax2NtYxRHvGeH8Zpgl0a5BOWuTfejFOx3EoFAqJVfucOXMIw5A5czpZuHAhixcv5umnn+YXv/gFfX19iclODs66Fk8QDiFsOMhaJNumr/DH4vHGYNu2Cn4eGBigVCoB0NHRwaJFi3j44Yc5fPgwa9aswbIMenv7Y6Vvl1KpQi4nSI+cyHThRZ2MTnXI++84DrZtKyIjM+nktWttbWXnzp3cdNNNrF+/nr/6q7/i+PHjvP3223E2VZ7m5mZ831dB6vER4scRYoaMMPmILhw68f1Ht5bpVsG0lfaWW25hx44d7Nu3j+3bt1MsFoU70YBSqaSsjLL/pBc4GTKMMfYwhoRorC1E/wM4MpY7bDTok4semzHVV0g6yYgiUSjUtm313lBBlLUsNrUwUj/V4xSCIODixYu89tprPPfcc/z4xz/mlVdeVdfbdV3CMKRSqajB2jRs/MDHMi2Vnh0RYZmWIksykDaMfISicQSRSUSAmNDCER8NrMTnDWLSMRQhi2Fbon0GQnDQ8z2lDFwqlzBNlJtCkqFVq1Zx8OBBtm3bxtatW1m4cCEgCFOx2AxAuVwhn3eHPfZ0QBQFiixJtxpULRpvvfUW3/3ud/lv/+2/8frrr1MqCRLkOFacAenX7Nt6UoBO7iUBSvfrKDJI9xdpSUr3G4ww/jwqqLsaK1clM2EkVKR1yNcUASZQpXOkNUj+PsR5OmzcuJHf+I3f4L777mPp0sWUyx69vSLJp6WlObHAkOc7lF5Vrd992lpUSxZDd3nKzzQC4dKDzuW42UgLkXHEN4GjY7WzsSREFnAJaBmrHTYS5HX2fT8xaOg/7KG+A5OfMOlxADo5kuepD3jXEpcy2v4pBxMZL5PP5wnDkJMnT/LrX/+a//gf/4STJ09y9uxZ5fbQV7BEJp7nJQdeIlxHuJ7CKMQwBrvcJEY6l3ScRPreRlFVQToIA0zDVN/Ry5JYcQFcmUlnmSJ7qrlYoLe3F9u2WbNmDbt372bbtm1s2LCB5cuXA2Ly7usbwPM82tpaMQyoVPy4oO6oLnMDoxqDlU4NB2FBOn36ND/5yU/47ne/ywsvvMA777xDpSLcZnr8je4e0olBsu9UL7juUpLfkxjOpaQThyiq8b7m3tXJvd631O/QjNQEbNs2pYEBABYsWMCqVau4//776e7uZvXq1cydO1fFBlXbFw2SetDbLhdFaXKYtgwP9RvxfV8RBZ0AyYXQUNdvqiAdTyUXlXKBmRGjIXEVmMFIxRxHibEkRHuB74/VzhoN+o+9Wniy6gqSP/Za34Op9yPXB8uhVm+1zqlWPHPtPppMVTcMMWBUKhVKpRK2bdPU1EQQBPT29vLKK6/y05/+lO9+97v84he/4OLFi4m4Est0kgO8WbVyyViRaptD7e9ksPdokV4Fm6at3Azy0ff9QStnfdKR8Rr5OOB13bp13HrrrWzatIndu3ezYsUKcjmHctnDNAXhEzXLXAqFHABBEGFZU6tvjQ+S9zBNjDzPw3Ec+vr6ePvtt/nZz37GSy+9xOuvv86bb76p3LfprqBbLeW9lEHZ0hIZf1IddzgMJlZJMlGLUOhWHs/zVB9KBoULjSEZGzWjvZ1bb72VvXv3smXLFjZv3kxHRwemKUh0X18flmWp+DLHsRJ9cyStoVrjmh58PdS4Jy14diy2qluGpzIkGdWJo0QWdD4i7gT+aSx2NJaE6H8F/uNY7azRIIM205DBnTppqBVHM9l/EHLyBjHw6iu6oQIq9ff0CUFM/Mn9D+6nyZnH90Nl/g+CgEqlogZLGXx96dIV3njjDX7wgx/wwgsv8Pbbb3PlyhUGBgYIfDGAVyoVIiIVaJwmRDoZ0jdJpoaaBNKkKb2Stm1XWaik60JeQxnf4vu+aktzc7M6346ODubPn89Xv/pVDh48SFtbK74fKCVqz/PUd/P5vHKXBUEYT2K17uj0QhhWA6Srr1Xvqe/7Kg7NMETK/uXLl3nmmWf4y7/8S65evcr58+e5cOFCTI5Q90r2QT0QW0KSXKgGMOvv6ZATvx4HJz+jWzuHSh7I5/MMxJYfnUTlcjk836e5uRnbtpk3bx4HDxzgvvvu47bbbqO9vZVSqaL6oSTWuqWmUMgl+rxuGZNtHwnSIpK2KMl7IUmcPF95nNoLqyQZnOyQVqC0u1YuZBohsWEc8b8hqmPcMMaSED0PHBirnTUqyuUyUA1eBWHVkORhqB/3eBOi0axMh4Nsv/zx9vb2UiwWlfZNsVgcNl4obfI3jKEy32tbY3y/OkHUWmX6fohtWxiG+GxfXx9vvfUWTz31FE8//TQ9PT2EoXhdEgmASqWE7/tKXG4w8am2M20dkO9FkSg6OpQLVOxX/C2PIwfCtItBZIWZdHZ2snLlStasWcPmzZvZtm0H8+fPVytN17WJIgjDaptLpRKO45DP5wiCMJ7Y5bWZ3qyoVoFa/boHQaAWLlLTKYoilYZ+4sQJnnvuOZ555hnefvtt+vv76e/vF2Q7qMbnyIktDFFWJQDLSloC0+4l2Sck4U8T7KEsR5ZlKXVyGfCsu2BkcPis2XNZu3YtW7duZePGjaxetYpisQnfD2Mi7eL7YYIEeZ4HoXju5JLj13AxQulrDKj+LgP55QJLahrp10USS52U5XK5QfvUn4/GpT0cbvT7I0ESbiBBeOU9yzAsvgMcHIsdjRUhshEiSU1jsbNGhdTokH56wzAUkSiXywl/+kTjRgcE6aaS51QqlSgUCok4Ij1oFaorZxVDoxEI2RzDSA9mQ7mnxCAtJws5mIZhGK/KTVxXTEa+X03xP3nyJMePH+eDDz7g9OnTvPjii7zxxhucP38e27bp7e3BdV2VSWQYRpyhVI1hkP5+cY5VoqSvivX4B/0aqLMKUZOlHOgluZNWIN/36ezsZMWKFdx5553s3r2bOXPmMGvWLAzDwnEsgqBqYRsYEORbxEsZeJ4sX2EQBCGWZWIYmdsMRt//9Xst72lPTw+FQoHLly/z/7P3pkFyXNfV4Hm51dLVC/aF2AiCALEQJCAJIiFCFClSsoKSLcsa6sdIEwo7ZMthx8SMHV/EzF//mZkIh8Phbxy2HLQs2yEGR7IkigTFjyIJgQtIkAAJEjuxo0Ggge5Gr9W15Pbmx8v76lV2VndVV3dVdiMPoqIaVZlVWZkv7zvvLuf29/fj0qVLOHz4MN555x1cu3YNnHMMDw9jbGxMXtdcrgvFYlHJFal8Tzg5mcaYWrCg/p9CrPQAUFX9RiTDcRxks1lwzrF8+XLcc8892L17NzZu3Ih16+/G9u3bsX69SLx3bFd6KC2LPL3VnhfP86AFeW+62RihJpJHv80wDLkQURcD5CklxXD1vqa/XdetGWKr15a2mxCZplnlGSOvrsjv02qmVCQAABQAdANwp9twOswWIXoUwMHZ+KCFCnWV4vs+xsfHMTo6CsuykM1mJ4VgovafCs2SqGbHgRrW8TwPnZ2d8qZWQ4VhYkSGUdfNIDxErnByk4fDTzUIkR8Rc6d9gupkL1jtUum+aRngvpjQoDGMjIzg/PnzuHDhAs6fP4+BgQG8/vqrGBkZgaZpKJfLis5KsFqFD86BdCo9KZQRFSag369OasLAV3KCSC16yZIlWL58OVavXo1sNot77rkHjz/+ONauXYuuri4sXrw4aJyZwsREUYoxUniBvt73Mek1PpX25J0If+rxT2OKwjoEmrzMlFU1pvP5PHp7e3H27Flcu3YNx4+fxEcffYQbN25gbGwMuVwOw8PDACCT2n3frQrJqR4RGk/0HbQNeUts25U5PTL0G3iwstksHMdBOp3Gk08+iTVr1ggStG4d7r33XixatAimlUY2K9azpVIJpmHI6sOJiSJSqVRA0oLfrapPqM+oP++RFisUmqZGwuTRot/jOA5SqRQKhQJSqZR8n8Z0sViMrNZtxCa2mxB5nodCoRAUPHSjs7OzihAnSdXT4ksA3mj2Q2aLEP0fAP6v2fighQoKJfm+j1u3buHo0aP48MMPZTiJJsOwpH29sfB2h9RoxWgYBpYuXYpvfvOb0oCTMKDaKoFCacViEbZtI5vNIZVKScNbCROE8w9qECKuwQvyM3QqW3VdcF5ZUYqVKIXCKhpGuqHBDUJIpVIJ5XIZQ0NDKJfLePHFX2NkZARDQ0O4efMmrl69iv7+m5iYKMJ17aqYf9j7pU5oQIXYCT0lH4xBhlHS6Sxc10V3dzd2796NFStWYOXKlVi/fj3uv/9+LF26FIZhYM2aNSiXyyiVSuju7q6a+BzHk2FBz1O/E8HfFe+bSpbE8dY9FBYkuFedkxOG67owTFNp5FqdBOz6nsxxsW0bpmnKSXx4eBh9fbfw0UcfyTyjYrGIt956K8g5KiOfz8N17YAgIBgblfuFwkbqBEmVXiJR2pANfA3DQCqVwpIlS3D33XdjzZo1QUK0hm984xtYtGgRurq65H0Z/HCUy0TITTAAjiO+0zR1GX6lc6TRWiPwGmnG1JVx4dfIXtAChQgR6UNRGoFlidy6oaEheJ6HXC6HYrGI06dP49q1a8jn85JYTrqm8yR/CBBe3NHRURiGgQceeACf/exnsXr16iR3qH78nwD+72Y/ZLYI0a8B/P5sfNBCh+d5uHjxIv7u7/4Ozz77rFz5hRNygck6JnGGxytKyStWrMDW+7Yjl8tJgnTfli3YuXMnOjs7Yds2Nm7cgEWLFmFkZARdXV1gjGFsbAzd3d1yhUu5GsL7VEk4pQlBrs5NE5SUCkRPampTSTXHyLbtIHfBrCrlVROY6Xv6+vrQ29uL0dFhlEo2bt68gZMnT+KTTz7BzZs3q75b9YSp4Q1a2WcyGSxfvhybNm3C+vXrsWbNGlArks2bN2PZsmUycTqTyUDXdUmEVDVqVT6Avj8qFybJQ2gOUedQvbglrJ8AACAASURBVGcp74W8iBQGUttX2LYtic3o6CiuXr2Ka9euYXx8HP39/ejt7cWFCxdw8+ZNTExMSLJA46eSb6RXeWRd18Xq1auxfft2PPDAA1ixYgUsy0J3dzfWr1+Pu+66C6ZpyvzFbDaLdDoNzrk8VsrfodYk9Pvo82mhEj4fan4TvU6g80X6X8I+VMi343gytwmoeL1s20ahUMCFCxfQ39+Pixcv4urVqxgYGJD30YULF3Dt2jW5gIkq95/q2s02eNhzJkFyDuH7UqvaXjN0GeJ8+umn8Vd/9VfYtm1r4sWtHy8A+INmP2S2ApMPzdLnLFhQ2S0gVgOUcKlO1OHKEXWSizshYroI/biOg0v5PG7dHIDjOLDLZaTSaaxYvhzLli1DNptFd3c3Hn7489i5c6ckBZQjQytHVUFYnCNPJoOqCelEPBrJFaDzHA5FVPKAKhMPrdCz2Sx6enqwdetW8XuDa2LbNmzbRm/vFRn+oodaDqx6kWzbRrFYBGMMPT09WLx4Mbq7u1Eul+F5Hjo6RBUY5ZzZto2xsbHAk5RGOp2uyhWpkMbEerYaKikg8koaWDSOS6WSvP/JC9rZ2Ynly5djz549sCwLxWIRIyMjGBkZkeSE8kfUMRpeJBFhWbFihSQ6QCVJnPKRqL8YeWWIHNHnVZK9ffn9tH/U2Ar/n7xi6uv0m8njQ21iPK9SLq8e740bNzA0NCRFVZ9//nlcu3YNExMT8rxQCDCfz1cVHUQRspbazMBlNpkQkYe/+lWSCaHtma7J0GGpVEIqlZLeXPH6He7CnR6zwkFmgxDtBLB8Fj5nQYNW8ZTzMTo6KldOYWGxqBXO9GjzDcM1+J541gJjnkqlUAyqRHp7e9Hb2yuN/G9/+z/gOA5WrlyJvXv34rvf/V+QzWbx0EMPoasrJw2zaZrB5F+JoYvzQeXGJjQtWr9D3T4qfCX2pyTOiq6XOpHQ/nQs5AmgEKdhGOjs7MTOnTtrEhJ1NU2fT5MlkadiUQgmUo4KTUjkAVqyZAmASviQci9oVT0VEqLUPKY7h+GCCBo/dG9TniAgiAKFiskudHR0wLIsLFmypErfZyqEE/TJs6l6p+j7UqmU9CipCwr1OKkggQgeja1wLlyUx4XyBNVkaNqW3q+Ekytj9tatAVy4cAEffPABXn31VRw6dAjj4+PIZDIYHx+XVWY9PT2KlAeDrpugylQKMwZXQr0q057DWUPw/bxm0Uc1wjZdU7xpY2NjSKVSkgjNdxXuFmE5BBc53syHzAYh2jMLn7HgQROdaZpYvHixNFp0w6s9pGaG9k56PPCFa0G+zujoaMU74vvIZDIoFotKOa0gHX19fdi/fz9+8YtfYe3atXj66afx5S9/Gffdt1kkewZ5V5SLROdI7UVFK6oogbYwAaqVdKlpVDY8OdlYVIDpcsVGeT/qduF91HAKeQ9osglXBAFAJpORJdxRk5C6LRFrdcKqN5E1wexBTXgGqr2PQKWKEoAURKTrFUV4VM0pguoVUr+XHur1V708aqiWXk+lUlK2Qa1oUu+NcA5cPeBcSDqk0+mqdhOVhG8bmUxGhrdu3bqFU6fO4NSpU/j4449x4sQJXL58uer7qP0MEcqRkZEpj0G9B9qBSo65DjXPsfZ9We1RUgUmOedYtGgRdF2TuVt3ehVondiDGBCiz83CZ9wRoJsilUpVrfDDnd5nBo52eok03Qh+T3BT+z540HeLaxzlkgMGHYZJbnsqFRaSA9lsDoODg/jZz36Gt956C5s2bcLmzZuxZ88e7N69G11dXVJduVSy5UqX3PS1wkZqSGMqA69WX1FCsni9WiSSMfGaCkGUJhOv8PeppIY8RKo3iFbqYbe/mkdCRjO8Ale/O0HrEA5nR3lTVLJCpEkdjyoxiRq/03kI1KRrGh9hAh31WeGxNpW3sR4Pme/7KJfLMslfeIlF7tKNGzfwwQcf4Pjx47h48SLOn7+IGzduYHR0FCMjI2DQ4Xl+VZsaBh3cF5Ichi7OnyrMqCaYu56Ldi8KAV92kqsgXBSjVb0ut/IrXmwSUCUk93Xd+ByAZ5r5gIQQtQjhZoSqBL2aWK1OqPWTIy1YmQCY9S7s9T3rug7f8+B7HpimgSkTved5MA1DCNF5kN4S0l8xTVOKBg4MDKC/vx8fffQRuru7cfjwYTz66KPYvXs3Nm/ejLvuuguplIVSqSgbS6qrK3VlGz6XU3lR1FOtaUxW1KiI8hxVPErVFTVhD5E64akr+3ommopWU2XsVI5Vq/mbErQGUd5HglomT4/wNaPJXd2/VthctQvqPtTKIuo4ohYEUQUc4c+n/091XPSaZVkyXEd5Uq7r4ubNmzh79ixOnDgle8CJqrBKKMj3fWiUr6RVFjW2bcP1XJiGWcn7g1LRyX1lfyIa7bF/nAWJ0xwAUz1EQTNeeQ5DhJdyiLRKBaqaFynkPSad8gTRaJqLNEuIOgHsavYg7gRQDgoZGKocChugmeUPqdu0xyA4jgsWNB7lnMN1HLi+K1mE6wZlyb4Hz4fMj6FcIUO34HuA49royHbAcRzcHhzGgdcP4uOPTmD7jq146KGHsG/fPjz44INYtmwpUqkMbNsOEkSnDhlNRxh836siKFEuanViERMbvVb9HVPlMoVJLxFDOm+Uy0GhVNUTpCaBJyGyeCJMJtQ8InqN7nk1/yfKM1MrvFuLgKnkJrwAiKrCqjVGZ4J8Pg9d15HNZmGaJj79tBcnT57EsWPH8Prrr+P48ZOYmJiA4zhB9aQpCwYYY4F+EmQjZY1pYEwD5z5c1wMHD5rVVoiFxvTgntGVRYIgIOFnkW80h3aQ0f8B8CD3UPYb1ZQFV7SnWhXXzGQywUKZPNZJUnWd2AXBScZn+gHNEqLPNLn/HQNymVOVB4VCKknD0QjnKdTYKjAWdNPoLX/m8MADcgMALKhOIXLkg0NnuuzAzVh1GxPXc6FrOjSmIZPJSMPsOA4GBgbw2mvXcfLkSbz99tt4/PHH8dhjj0lRuUwmA9suVeXehHM7withcQyV11QXvDphqBPYdKvqqOtUa7VN20eFycLhE3UMROV7JKQofqg1RlRvZpRnmPaZypujvqZ+X3jc1nN8QLWeUhjqOJ0K6XRaVpOdPXsWP//5/4cDBw7gxo0bOH/+otzGNM0g7KUSNAbbFsnY5PWReU6uLxdSZCfJi0K/QeTTqTZUm/QsNp1L+xekC0CxE9ABNjkHLArq+OCcy96Xus6g6wkZagCfQRMi0c0Sot1N7j+roCoEuomJcMQF6iqgUCjIm17tlUUIT5BTr9w4OOPVcZ+Wg5JwgicOODatkHQw+FVu74rAnQ/PE8aD3MQjIyPSqFMitaYDQ0NDOHToEE6ePIm33noLn/nMZ/CZz3wGjz76KJYuXVxlSOi80niIIhfiOKvfm8rDVGtFHv671jZTfZ76fzL8KlGO+pyk+iR+mI0xMt3/G3mtnu9TFxFR5KhaKLUS5qL3qPLy9OnTOH78ON5++20cOHAAV65ckSE06ttG9yNJEQCAxjT4QODFCeQkPA5hTHQIzUw9eA2oNIIGyGPUzoRqAa48BWE0VGxyFIFVQZ5hoCJXQLmKcUmqpipG8lpHkfkYYDfaSIhiFS5TY+uqq5r0K9qJSs6MMB4kRkg3wZ0NH0zTKq5mzicTQlQSkEdHR3HgwAG88847eOSRR+C6Lr7xjaeQzWbldQ6THrX6RX5rELJQS+wTJLgTEZZwoHtGrXwie0qTN90zw8PDOHr0KA4cOICDBw/i3LlzGBkZgWEYSKfTkgyRZ4c+vyr013ZC0yS4VpU7NO3mISJB51XXdaTTablIFn0HPej63PYym45Qks4UyStQo+MYthVpipM0e5YfbHL/WQVjTIreWZYlS7OFyFV7bzhi067ror+/XxoVyiciVeQZg2touxZRFaKNAyVFRoKRBkqwrXLNhFaQA8dxYFkWUikTExPjePXVV3Dt2lU8//wv8e1vfxtPPPEEstksbt68Cc/zsHLlSlnOHhZKVMNjtZvG1os4nfv5jXpCRGHEbJU67xD2WHqeV9VNnpqrjo6OIpvNorOzEwDQ29uL3/zmN/jnf/4X9Pb2Ynj4dlWYuVQqSdsmKitDEgLQZ8k2t/P+IxEiDdPbEfX9ynnQdVOe83K5jNu3b2P16tXQdR2WZbR0/orKY1UdCuE+lDFDU5ykGULUCWBHM18+m6B8FNKI0XVd3ozZbLbtLJa8VGQMVq5cie7ubinQGKfQ3tzDDz1DSYqMhjpJinOZRS6XQz6fx9mzZzE4OCiT1Pft24d169YBECub69evY9WqVfJzonKEMBVRS9AyhMPGtRKIE8wuKCetumhAk/IQlPws5C8yuH37Ng4fPozXXnsNv/3tb3H+/MUqsVJqO8IYk3phqneoAlmR0OJfPJuohwhNBudc5lSSjEgmk8HSpUuDRHMdnsdRLBal5EgrEHWdSO+NMSbnsZjekzvQRGJ1M4RoZxP7zjpUbR+a9G7cuIHLly/DsixMTEy09fjIMIyPj+PmzZs4d+4cAFQ1MGzuC/w2z+mzvUKrNjBC3wgAhGcnn89L5ehMJoOBgQG88MILuHLlCnp7e/H4449j3bp1UohOFb6MSlBOCFHrEZXgnqA9iKpKU5P9x8bGpHjo8PAwDh48iH/913/F22+/HbShoZY6FSVp8iS4rg9N00H3mPhMqsSqkIJGQk6Tf8DMd20Navw2xgHOpDK1bdu4cOECfv3rX2Pt2rVIpVJBf7dSS44yigypeWB33303Nm3aVJWrG0PsBHBoJjsuGEKkKvdSP5g33ngDf//3f49Lly4hk8m09fjK5XJVs86hoSHk83lZdXYneIiErP1k75BIIaAS2Rr78uqS90wmA8uykM/nMTExgXQ6jWKxiPfeew99fX04duwYvvWtb+GJJ57AXXfdNenzoqrOEsw9os43Xdep3ksw94gSDiWb2t3djVKphCNHjuC1117DoUOHcOzYMeTz+UCFvixzStTegmSPqXFpGAyBJ+oOvQ85BxjjskGt7/v4+OOP8emnn6JUKqFQKIBz3vKy+/C96DgOVq9ejb/4i7/AmjVrZA5sTHMv20KI7m9i31mHrutwXVcOICIYxWJR9g5qJxgT3dwptEfaG5TnRK/f2ai9QqQb1DR12La4zp7nAPBljJ3ag1y+fBnDw8MwDAMrV67Egw8+WNUqI1xKLybdVvy+OxdReQlT/b/e9wgJaZoajeRgUQI0tdnhXDQxPnPmDH7605/ihRdewI0bNwBAtuugyiPydFeLr6qyEhoqMiHC83uHciEJziu94DzPk4s8aldEi725PYapq+AAMZeapomOjo6qnnkxXLTMmJs0Q4hikz8EQJZ0qo03abJTZdAFarHayYJes/XMmA7HKcOy0nBdG4ZhyfdF0qEGwKuxP5/m82MO5ocMonr8QEXkrDZSqVTQDZ4HrTS0IE9BrJ50XYjDGYaFrq4OjIyM4Fe/+hUymQzGxsawd+9eST7VVU2SQ9R6RMlLTGdQk6TquQWlGwCVHmyqovbhw4fx0ksv4dlnn8Xt27dlmF/0XxMpCeIaaNA0QNdMeK4NQAP3mUielkKGAFDdbLntXTdmA1OmLUTnGdHmlGNF553OPQm0mmYKczk/Rd1f6j1FBJfGCJXf0+sxu/9mzE2aIUTbm9h31sF9FxwafM9BJm1BYwZ0JrqY5/OFynYAokiElFyn8sk5fWZCo4f5gc+UlFTVY6s8V4eTaj23G7Vi5FGvh/s9AdNZRNt2gxwg2pb0hETioecHZJIJ3RLdsDA6lsf+l17G+QuX8D9dvYYnnngCq1atgq4LTxOtgIXxie5BNTl5sNlqtPgjKvFcrdIjA1gsFpHNZoOdAO6T1pYmOa7nRQvTTf4OAIyJ9i+KFIJsiGsYcGwbvu/LfEH6HNM04TjlSWFnYbzFdY2pa79lUEPEap5IpWKIIZWyUCgUkUoZYEwsMhzHw4kTJ/Hf//s/4vTp0xgeHoUQOtRhGAylkg1d9wCmBxI8DD7nKDtOkCjN4FKPG7CKtAZC9/18X48wHwhaeCgvQoo3TkPoqX+i75MMCz0HQrdgczovhbXYJt+vntR345zLvx3HaXvBUgRmzE1mSojWA1g80y+dC6iVEeoFncx81Z43IXCtjc+VRMPGnyuGJrYgg1hl+ZQbidejx1SbDApCqckkTs6F+GNfXx+KxSLOnzuHU6dO4Xvf+x527tw5KXerVginXg/GQkO4ukvXdWn8KASSzWalG90uVYoCKIRimiYMU1zjcskWvaoMA0wT5MkLyA8AjI6OirywVAoaKRIHndJJ6ySdTkvpCpHIWyFqmY40yuWyrNZJpVKRRPdORS39n4rN1OE4YtU/MjKCjo4OWJaFw4cP40c/+hEOHz6MkZERSYZJpI/0iqruZdW2TrJLU3nnFzCYQo6i3q6HEM7h/ONzT5KdaFtXWdioTaZjmoO5GIKjXG10x5kSoq0z3G/OIJqbiianGqvuei7KG4PBGL7YVYJazUx6TQ4M1qThjuW4bATT/H4+zbUJrqvveSiTC5fpcBwPA/2DGGQcL7/8Mrq7u2EYBjZt2gTLslAu21L0LOoGn7xaouNceAa8VtWXagiBSsIthU2ERlRZ5jsQ0fQ8D45to1Ao4PLlyxgbG8PY2JgMb/u+j0KhgEKhAN/30dPTg1wuJ0kPYwwdHR3o6urCmjVrRMWgrkMLwuCmKTqp27aNsbExSYSEZooG1/XguiKZl3RU7jRiG0atculyuYxyuYyuri6kUimk0yl88sk5/OIXv8CBAwfQ398v96cwCY0X0XqnpT8jpmjn2Gp+AoiWRSBU2gSpIb0Y309bcUcTovCFaaSKqC5BrWmPAJhxc8AEbBbOA6PkTe6DAzLGDQCWYeLcuXN45plnMDw8jO9+97vYtm0byuUyMpkMNG1yl2/1+U5BeIVIIZZwo1nyGIlzp6G7pwdeoD0zNDSE4eFhnDp1CufPn8fVq1dx6dIlDA4OYmBgQIprMsZQKBSQz+cl+bEsS3rvUqkUFi9ejKVLl2LHjh1YvXo1Fi9ejJUrV2LDhg3YuHGjUCdPp+G4ZUmihCfLDPJbjCqphejw3TyXwakDUeNYDZn5vo/x8XF0dwudoffeex/PPPMMXnjhBQwODspGzOQZUqGGJhO0C83MP/WTqShCHVMbuRXA/2h0p5kSoi0z3G/OILxAgIhvB3FqzsB9EUqpxKqjb1w+Gzf0TGO4aJ4QTKkA3U7Q+Z7GCzedA2j672EAI0VwBu6LLtm+LyrIUqbIK7tx4yZ+d+ANrF69GqtWrcJdd90FTasIQ4ZDCrVdyAvPUzSVYaOWM7Zty3AZeWhc18Wnvddw7tw5nD9/HufOnUN/fz/Onj2Lvr4+DI8Mi35VPPpcMdESE+VyeVKIsq+vD7qu44033kBXVxfS6TRWr16N++67D7t27cLmzZuxYcMG3HPvJmiaBtNMwbZtlEoTUq2eGvcSqhdJlYVTrd8fwyqaWUdHRwbAYnAOnD9/Hj/+8Y/xq1/9ChMTE8hkMnAcp0pcMaz43rSHe76jyZSFWbHezeYS1WnL5sn9MCOOsmAIEaGtMc2ZxnATNA3GNIAj6DrNAE0D9334ngcECcDUQPfcOREK2LZtG1auXAnOBWHmSh7TneohmixHUL0itCxL6sqMj4/jlVdewa1bt3Dsgw9x7tw5XL58GYODgyLPJCBAhm7A9Vzomi4JihqeVL+TEqqpYrRUKsH1XGhMQz6fx+jYKG7138LJkydx8OBBrF27Fhs3bsSDu3dh06ZN2Lt3L1auXIl0Oi29GRTeA5QJXP5ekmKINvQxzZFoGLW8nxT6yOcLyOWyOHToXfzTP/0TXn75ZQwNDU0SNAUg88jUPowL4yzNc8zR/MOC/M+w57j6/dihpYRo8wz3mzOwyBUKeYamWuET2rvSXyiGtybmmPxpelCR5DOAMTEemAamUf6LHqhWCz2oC+cv4eDv3sSiniXY98WHg0RstSS47m+eo1/UWqhkoJIoW8kZoWaOnufh5s2bOHXqFI4fP46f/OQnuHr1KiYmxuG6AQEyNFkJ5rouHM9FKmXCcRwUyx4YAwxDD8JbbhCyqg5xyw7sEBVmvu9D0zWYhhD6KxQKuHGzDzdu9uHEqZM4+OZb2LhxI86c+QR79+7Fhg0bsGzZMqRSpkycV8NDFTJWaS+xkFGrOICIqGVZ+OCDY/jFL36B/fv3Y3x8HB0dHbKcXh0fpC9UhVjOiQnuYMyIo8zECvQAWD2TL5tTRBWNLXSSMY/QrM7MdCBVXTmRkpcjMNw+vEBfRbw/OjqK5557DhcvXsSyZf8P7t64ftKxhvWKFjJULRFKmqZcIRIRHRsbw4cffohXX30Vb775pgyNWZYF1xUCmYwxuK6LiYkidJ08EUC5XKlCY6zyfaZJWiaoSqZWS+5JAE7VyqH8MM/zUC6X0d/fj76+Ply7dg2vvfYaNm/ejM9//vP43Oc+g61bt8rPU38bAFkts9AJkSqOSM8qQSyVbPzN3/wN3n//fZnkTurJ5FULk9balbwJwmjWfsz1ORZl/dFFJZO2ZeG2R7HEagiuMtLITjOxAptmsM/cg0NKPXAu/q9OkPFHs8cZ71yW6W/o5q8T5wg0mxSIWEhQUVaG8DlwpKwU+m724dA7b+H//cd/wDe/+U3s27cPAE3WQt/INCsEKwoxNgiTECaNBJrsNE2TZe5UEp/JZDA8PIxz587hN7/5DQ4fPoyTJ0+iv79fhk6o8afjeKHviz5ngtMENyl8ACRMWnHPex4Prqf42/MokVeTmlSc+2BMg6aJ8ntd13Ht2jV8+umnOHLkCN566y185StfwVNPPYXPfGYXFi9eDNu2ZciPvBydnZ3gnFeRaTovRAoXAtTfWC6XJdEdHR3F4cPv4/3338fg4KA8l0BF8Jb2D39eAsLU9qv5UzWdnZna/k9ppwIbGXU9K69Fv6eG1mOITQCONrLDwiFECRJMgbJdBgNkObggAMDt27fx85//HF1dXdixYweWLVuGsbEx5HI5mKYuV8fqpDgfJwKV9ACoCompRIk8BplMBuVyGWfOnMErr7yCl19+GadOncLw8DAKBSF0SpVHsz1R1ru/up3amoVz0SH87NmzGBsbw4kTJ7Bv3xfwne98B1u2bIGmaSgWi3AcB5yLthRh0kNqzTE29g1BzdGi82ZZFgYHB/Huu+/iued+htu3b1dVFdLvDleVJZh/mPqe4gs14tkSQrRxBvu0AGLFOVlVmFai4UseN49K3I5ntjHXnrppVki0le/D8x14ZUf2Yervv4k333wTW7Zswb59+7BixQqYpo6JCZGIbVnVt8l8DBWEq4IoDKW+VywWoWkastksxsbGcODAAbz00kv4zW9+g7GxMeTzeVm55ThO0Eol8AoxXVkGz8S8kndm0pFHbs05gj7pTHiHfQ++R81ETWiWgWKpiOvXr2N8fBznzp3DwMBtfPWrT+LRRx9FV1cXSqUSymUR2jOMinZZFMlbCFC9PqTLdPbsWfzXf/0Xnn/+eSm8SSER8o5NyhdKEIGFbr/nJRrmKjMhRHfPYJ+WoO0VIk2U3SeYA8hSfw7GNPjcha8YeRIT9DwN58+fx3/8x3/A8zz80R/9EQBgYmICXV1dEJ0HJnsK5pPngCqF6G/12ClvhxKob968if379+Pf/u3fcOrUKYyOjkohxGw2C8dxpEoxIPJ5XC8Q8+EMjfdSmjlk5ZMWNBP1vcrEDgYOQfTy+Tz+/d//HR98cAR9fX340pe+hHvuuQeZTEpKCYQ/V81Xmu8gT5fajf7KlSt4/fXX8bvf/Q6FQiHIBXOl8B5d44QUzRMk808YDXOVBUWIBHwwRvFQP5gUfciVZri3ltQBmgWGT9/Z6DMwOzpIsUQ90v1+6LkJRPZOEyEQ36PVsQnGRAJvuVyG7/vo7+/H4cOHsXr1amzfvh27du1CLpeDpoly746ODgTV/PMS4eot3/clsRG5VUBPTw9KpRJeffVV/OQnP8Hhw4cBCEJQKpUAQCpNA5AhJfFf0puiqs5GHqi4hsIks9brIWiaDoDB811wcLheJcxDQpClUgnvvfcehoaG8MEHR/Dd734Xe/bsqWpcSaEiNVy2EMJmnHN5vVOpFMbHx3Hw4EHs378f165dQ1dXj8wfU39zDBt3Lkg0f4ZnMO+oz1M2pp23aAkhWj/9JvMMszIYwslnDT4vfLbeBigXlflBjowLx6lUPOk6QzabxcREGYVCAR988AHee+89bN++HblcFuPjEzBNs2pimD+J+hVQzy+gQoZUpWLGGK5fv45jx47h5z//OT788EMwxpDJZJDP5yVBUD0pVK3FuS9CZkon88aeUZvwhKpZanl9HdcBA4PGtKoKGJJdcBwHS5cuxdDQIM6fP49bt/owNDSE733ve3jqqaekorXjOLIdiWmaVaG0+YBa54fygkzTlN6hN954A8ePH5feQUqOp+tMul0LMXy4sECpIWjieUGiYa6ycAiRxitMl/kg6WN5M0vPgdIQtep1oO2Do4Z3oy7c6WRq0rlTr6UvK54qXg2xvet6YMxGLpdDPp/H1atX8f777+Ohhx7Crl27ZCUOhRLms8eAjp3K1xljKJVKGBoaQm9vL9544w28+eabOHLkCIrFIlKpFHRdl01c6dyRF4U+L5VKoWx7zY3Bacb+dJMyU0iW73Nw8jZ6lc8tl8vQdR25XA6FQh4vv/yyFG3cs+ehIJHelJ4UwzBk2fl8vN7qOaO8KE3TcPnyZbz44ot47733YNs2MpkMSqUSfN+XYz0smplgGjRju4G2Tz0LFHNOiNYCMBv9kpaAawACoyy7x0+5Q/Cs9HJpVvq8qRhuVOL3QoRKTNUckmYNihYySsp1haguEyGBymuaJsq6bdtFKgVZfXTixAm8/fbb2LRpExYv139mKAAAIABJREFU7sHIyBhSqRQ498D5/C3BVid1ElkcHBQek2eeeQbvvPMOBgcHZQ+xYrGI0dFRuT0AJa/Gkn8LjSH1fLd+HEtl7EBuQzRz5kI+wXegayYKhQJc10VPTwqMCYHOd945DNt28d/+WwfuvfderFixQjatVZOs51vpfVhziDyCExMTOHz4MH72s5/h7NmzMM1UIDFhg5pjgwuPQ0VG4Q5fbM0FwvOAtIeRG9f3mVPMM3ya3L7Z6CUZQ5gQnOVavTvMhBDFEwwAdHDmgTMhMuWjkkhaWeWEkwPFgOCANAQtf5Y/QNViQei4awzY2HuGpiI6s5g7BFTOhUqMOIfQrrGDF0igjvIjhI5N2bbh+T4sy8KJkyfxo3/5F+zavRtf3PeFICfNg++zwHOgBQSpUspsGNbs/IYZgjw+tZSIKSRCibOWZUHXdZw+fRrPPfccfvPyK2I7zYDteHDGRMNVw0zJz/d8HuS6BZMlY2CaAYB6BjaBJsdxkNUkakrlLUNeYxHO4z6gayaGhoRWm6YZGBoawSuvvIp0Oounn34aX/va15DNZgFoME0LAJMCk5GHHRIpbBfIo0WNcan9ia7rmJiYkInhAwO38fzzL+D06bNgTIfvAQWnBATK7rbrKnlgDaDu63eHVWPVPC9aYPqVZwnKK23QPk45z6iEa/LnTuuBDXTZBLFigZAq5P9jjDklRGsa3L5l4HzavMsaqDVIWvysrBTUZM6Fi1kmQ6qnSZ7Lai9R7X0qXoBUKgXP83D79m38y7/8Cx7YuQMdHR0ol8swTROplFml+kthtHajVl6TSpI45xgdHZW5MW+++SaeeeYZHD58uEoVeppvgnpOZ37ftQDKOKhU2AF8UsEUw5tvvikrrb785S+jo6MDgMiTsm0PmUyqpYfeKIjwGIYhiZH6nqim9HDw4EH09vaCQRfClhqDaZhw3IVsa+IELeJv9TlsDxu1kzOdhxpbkIh7nil/xxYNcZZGl2V3Nbh9y8A5PXiVlknUqjm24LU8Q8rxU0hQhgYTzAYouZgqrkZHR7F//358+OGHsqEpAClgqArXxW18RZWQU2l5JpNBNptFqVTCsWPHcPz4cYyMjFR6fAUPteeX+hAGlEi80PiaH8Rd5BX5nB5u1WNwcBCHDh3C888/jw8++CAQaxREKp2ONxkCIHPD6G+1CIDangwMDODZZ5/F+fPn4fs+LFOQJMd1pvroBDNBTfus3D/zCFH3uAjExMv2RaAhztKohyh+PcwUhC/Q/BHQ08Qj/oNrwYIxBt/zYJfL0HQdnuuiBOC5557Dzp07sXz5cpTL5arcEkANmbTpwCMQ7lhPJdcA0NHRgfHxcbz00kt4/vnnZS+ysh1SI+Y82rcWeS/F/f4SELpEFakLFZlMBuPj49i/fz9838fSpUtx//3bZeVVWJwTiNdkoKqQ+75fVQBACuQnT57EkSNHAgIMpNNpQaL4fLmCCx0xKvCZBrH2DFejIc7SqIthVYPbtwx0cSokqI0HMxPU1G8JMGnFoYUeCZqB53nQQ8rNuq7jhRdewMGDB6XYH4Uzo5pexglqo1bXdQPFbQu3bt3CSy+9hB//+Md4++234TiOrCbTNIWUa6Jik8MD5y44vFDSerDSjc2NVu99EPEb4COdTiObzWJoaAhvv/02jhw5gny+gK6unLzW4ZAijYU4XH+1Txm1MRHio4LAnz59Gs8++yyGhoYAAJZpyby6+ZYwHmvU7bn3Ix7xRq2xHhsTEI2GOMuCIUR0UearbgYNtjgY1zsSyrjhnMMMKo0GBgbw4osv4tKlS7IEXy05j/v1ouMsFArQdR3vvvsu/uEf/gGvvvoqPM9DOp1GPp+XJI8FBQkNYR7cb6KlL+XVTJ6ARkZGZE+zq1ev4kc/+hF+/OMf4+bN/iqPGxBfjzMJS9LfnIumxgBw5MgR6f2iXnUUKktUqOOEeBKjeTw/zSkhWtng9i2DMACIXMnNB6iDrWrQ1fQMJZht+MpkQtfDMAy8//77OHr0qJwwyesCoCrBut1QhRbV6idd19HV1YVbt27h0KFDOHnyJBhjWL58Obq6usR28AHuIajNBOOQDyh/RxnEeJXszuz+MAwD6XQa3d3dME0TR48exX/+53/i2LFjMIxoD1GcEJ6sHMeReW9XrlzBiRMnMD4+Ll+j8UtJ2AmaRL2eIdLJCz+mRDxIkhp9oVxdoUsWj+OrgYY4S6OWY3mD288awjkR4YeYCCYbrfnCaOcxA18Q0HQdYAxWKgVN02CXy7JE/datWzh37pxs81EsFmVuCRCPbuB0DxBZIxVp8vwMDQ3hpz/9KZ577jmMj48jnU5jcHAQw8PD0yoST9XDLV5kqBZUe0BhLlQ9KPF8ZGREilFevHgRR48excDA7TYee30gMUXGhDTExMQEHMfB+Pg4fve73+Gll16SzXg1TcNEYULuF4fxmyAK8QmlRc+3lUeM0RBnaWRpYABY2tixzB7CbusweRBxc4Z0Oi1X+Lquw3FEV/OKDk0tzK3XhSYmtW0EIJJcC4UCuOdXRR60SlIUANVNH10mGc91awxA51EJqaoIEwHbtmXGYLlchmEYmJiYwMmTJ/HJJ59gz57PVoXOhAZRfFbYuq6jUCggl8vB8zwUCgV0dHTgwoULOHDgAG7fvg3DMGRnexqP0bkBUydQM8bm3cCrXixVXvd9H67rQtd1FItFpNNpeJ6H1157Dfv27cMXv/gIHMeR15s8g9Qdvt2gMUi5bl1dXXIsXLp0CYODg4EKdSA/oBBZYVvbcth3DsgLFD7RMirApUq4GE/CBvm+K5Pip8bsz19hIVcAiqK5Ds4B3+dS9DMO90EElkJwl7pYfyOWfNmMDmeWERVWEgmFDI7jKVUhQniOSk7bnThIhooE/WgioqaZJBaYoI2gsRXk0miaBgaxAvr4449x4sQJbN26BV1dXVWCh3EwBHQcmqbJyRwAUqkUhoeH8bvf/Q4XLlxAsViEaQqxefU3EOIaEmoOqh5VReulUinDqhZagLhfPc/D+fPn8ctf/hKLF/dg69atMnlZ13Vpa9ptW4DKdaMGralUCrZt4+zZszhx4gRs2w68hrQtNbVu/9i9oyDckZW/5ctM9tBzPUd6MtVGylOjOUJEXsJatozeN01TkiHP82EYGnTdirvdWAagr54NGzmLbfMOEWqRIWHUUVVVYRhiYshkMrFIGmSMwfM8md+RTqdlN3WaoITRpgfBB+ceJrtP51eFwrwAiVlhsqBhX18fPvjgA/T29gZifbYktXFxGVfaahiSgJMa9euvv45PP/1UEiY1OVx4CMKPWBu4KdDY/VAhCJNL1xlj6Ovrw4svvoj9+/djZGREhqTEvrymIGY7oDZp1TQNo6OjeP/99/HRRx/JcG/V9qgUByRoFjVy14IcocqcxZUCYmHrGQt00LgPw9ChMaEyns1mkUqlkMvlUHtcz05OKeWSkROBxFsFATKRTqeh63oQYq2OZlRavMQWdXOXRjxES2ZwILOOWq0JikWR85FOi6qKwcEhXL9+XSbCtnvSsixLGiVN06TYH7lIPbc6/ykxUu2DGivXgsTqUqmECxcu4NatW9ixY0dVyX0cPEQA5IpSbdNx69Yt7N+/H6dOnZKhIJWcA9Ueg4WN2v3z6Nyp9x31v/v000/x+uuvY9++fdi7dy8cx0G5XI5VtSF9fyqVkq07+vr6cOzYMfT398trXZEQqOxbQ3EqwSwjinxGXTef+2C+2LZcLgdNidvTH5BA+Ym2bcO2baSCXEugtkp+jFA3d2mEEC2ewYG0DJlMCqWSjWLRlax2xYoVuOuuuzA8PNz2PA9d12FZFrq6uuTqbXh4GIwxoQNjiC7dlcTwUCKrdG3XInaxH5TxRg2iremV8Mi5c+dw4sQJ7N69Gz09PdKN7TgOTLP9asaUM2cYBjKZDDRNw5UrV/DWW29haGhIVs1RLgzlv0Qn1U43nrQqZfX2Y+oFD90/vKo9wuTfSAsWmgDoGl+8eBGHDh3Crl27kM1mqwQ6Pc9ru32h4wAqRO7SpUs4d+7cpLxFyhlqN4lbmGi0WTURVZHoXygWwMCwatUq5HI53LjxaTAO6VqFx+zs2P2wwyBM3DzPw6pVq7B8+fKqtA/LsqBp07VIajvq5i6N3MWLZnAgs47wakz9m8IAZOC/8IUv4P7770cul4uNx0XTNFy/fh3/+I//iFdeeUXmEKmIyidKVnGtRaWSAtKNPDQ0hAsXLmBwcBCLFi2q2rbdIM8QNfk0TRP9/f149913ceHCBSnOSN4hoJKX0HxS7fyZWIVa9eSeUeo1JI8yER1d19Hf34/f/va32LdvHx566CGYpikrbOJAhoBqPaHx8XFcunQJN2/erCJ5FSHRimdLnJMEc40oO0HXoFAswNANdOY6sXfvXvxv//v/iq1bt8Lzgrwit9KcuhqzvxAORymoeGBkZATd3d2yQCmdToExwHX9tniwGkDd3KWRO7lnBgcyq1AvUDifyPcRJFOLBpwA0NnZKSeIdi+GKAENAJYtWwbP8zAyMiLf13UW8gyFVxg08MM3VawH4vyBaqwod8j3g3h5ZdyNj4/LfmeUq0Hid+0ETXjkIeKc47333sPzzz+PgYEBAGLCLJVKcsFApdrifprasFaMeXi7+TL+KjkcFVKkeI64V6VIHQ5vFItFnDhxAm+88Qa2bduGRYsWxYIIq6DjJw/0jRs3RAUrFwKNop9dZXsOQfqTxdbco2qs8KB9jJKjqGtGkPpRRCqVwu7du7F06VJoGgKpBNp57u8/OtTqRQKD53FZYaZuOw88jXVzl3lFiIBw2WyFFNE1Ic8fY4CmIbIHUTtAZKhQKKGjo0NWFBiGIStABAJDPWW5vZoHkVSnTQ1y506zkqLqD5lYSxobHL4vpBsmJiZw5swZfPLJJ1i3bp1UdhZGYuqQWSuMBnkAKMR38eJFnDp1CqZpyqopkSfDwJgmc8h13YA/bV5kFBGfj+NOjAcGDZV7h4NBh6YJD5saPuBcNE21LAulUgnnzp3D+Pg4Fi1aJEkTeWDaCc65JMKkQzQ2NiZ/C3W7l2X3LAjN033B/DpbTiRoCFyrFl4MEyNZ2cpFFaDP4HMXS5cuDYiQHtgZtdn33KJiqlShTw+mqQeJ1VS8ocF1vaDqLNakum7u0sgd0DWDA5lVUBWIbDEQAbUdU5xAhimbTaNYnIBp6vB9F45TBqAm50b1uJnuwetQO13oCFVhkHIs1wAwgGlTP7gOsT6gXC7xMeK66DLfpu/6TZz/5AKKEyUYmgnuAb5bXZkW9WgW06kkc89HfmwcnR05aGC4eaMPR98/gomJiSBMogPQAg+kBh48wHR4PsAZm/Ix6XxBl5/B45y/FowB9Vg5Y5OfGYPrEXGmZss6fC78J47joVSycfnyZZw+fVqSINsuQeVCYQG7VkH1lDuOh5MnT+PEiVPI5wswDAv5fB6e5wVEyAtVrvoA9wHqVxdpS6auokoQtsnqoNDAuCaU3sOEhnsA9+D6jugfCB+c+SiXi5JoiGtbff5bPc5Ur5BhaHKBT6/H3EtUN3eZV4RoISGse1I/fOU5KbuvCyo5qvUggyNXyWSEBCgx1bZtDAwMoFQqtbztwXRjhZKqwRiuXLmCTz75pEpRW0D9fcqjnnNUdb7mMej4w89TrL4pP+vSpUs4f/68DJtSgmm7QYegaQzj4+O4cuUKBgYGAhLEak6eQu+GXmv/71hYiLpPprH3CbmcC8wJIeqcwYEkCBBW/SSPUWT/sgSxA8kjjI2N4eOPP8aVK1dkDlErJsSpxgdNdJYlBNLschkff/wxLl26JEUEE8wcnHNZuXr9+nUcO3YMg4ODMuwdJzAGjI6O4tKlSxgZGQnyJ5O2QPMNcSDZCwh1c5dG7ubcDA4kgQIa5GFCVH/bhATtBOV7XblyBdevX5cK6O2caGicqGX0vb29ePfddzE2NlalF5KgDtC1DF1Tav7KOcepU6dw5cqVqrYn0d6X1o0LqvbxPI7bt2/jypUrKJVKSKVSUk2bHmrKQatDewkStAF1c5dGLGXHDA4kQQC1akUVikxWbfMDau8qTdPgeZ4kG3EgHJTcq+u61EvyfG8+NF+MGYJ8qQAy5yogDqlUCr29vbhw4YJU+KYkU/kJbfLGUD+2oaEh3LhxQ4pHJoRnfiG5XrOOurlLIwkQ2RkcSIII0IQKVIfMohqPJogPHMeBFui33L59G6VSqe2hCFUpmYhZX18fxsfHYeiGVGpPMHNwzqVKr64zjIyM4MKFCyiVSshkMpKIthO+D5imAd8XVWakFeO6LjzPk/amlhcrMTUJFjDq5i6NLG0zMziQBArUROqopOrEWxRfyDYXEGToyJEjuHHjhswjmmtMRY6JDOmGgZGREVy5ckUm/ZLnKEFzED2cRB8nx/Fw+vRpXLp0SZKhdi9eqJ8jUCkAoNZAoqlrEhqLMxLbP6eom7s0YsnTMziQBBFI3NjzD5xzdHR0IJ1KY2R0BCdPnsTg4CAAQG9Rpdl0pAic49q1azhz5gyGhobgem7bPRcLBUQqiVxQW4y4eOBE+wQgn89jZGQEpVJJhtCAakkIFQlRSnAHoG7u0gghan+zpnmOsOFUm3ECSYgszuCco1AoiDJ2VJJoM5kMnKC0PTy5zOb1nC40RyrVg4ODuHDhAjzfg66J/nnhpqUJJmO6FboalvR9HxMTE7ILOIWn4nCOh4eH8dOf/hT9/f3QdR2pVEoKNibkJ76QCumaJtXmgcRzNEuom7skhChBgjqhhjnpoZa1h0lLK42Zbhgwg/YMruuCQTRyjUNbkfmA6YgCXct0Oh0IMtqy31n4HLeDdHAu8oioGzl5sugYEyS4gzEnhMicwYEkSLAgES5bbvvKO/j+crkswySqvEOCRjG5NQlVGfq+j9HRUXz66acYHR2N3LvV40FETEUHcupRV1GvTsZAgjsadXOXhBAlSFAHKHFabfRKq28KSbWTFLmuCx50Xhc9qkRvq2KxmLjdm4Tq+SNvy/j4OI4ePYqhoSGZwB7ep7XHWK2HlIThEySQmBNC1P7MwQQJ2gQ5wWByjhB5YlSy1HoPAQMLmgXTd6fTaSkemWAaTNOSRGMGdM2E67qBJhXDhx9+JBXMZ7t3XaNQ+oRWeS2TcFmCBPVzl4QQJUhQB6I0oighXjeMKcMSrSBHuq6D+z5u3ryJ8fHxqu9NQibNgYgFhaQod+zGjRuwLEvmELVXsbzaS0THnXiIEiSYG0LUfjneBAnaBJlQHVSY2baNUqkkKoxiMPFwzjE4OIhDhw5hdHQUlmlhYmKiShU9wczBweFzcR7JGxgWZGznGAh7hxJ9swQJJOrmLo2QnOSuSnAHIBQ64ZQ7pCiKg6NcLqNQKKBUKkkhPEK7JqDBwUEcPXoU5XIZnZ2dKJaKsn9VgqnBGIvoNF4hOBrTAPgwTbOqjQcwPRFqJVGKTZJ/ggBajb8TtBB1G+TWKMolSDDXmDSZhVAzP0RTnv3KncPF/yt/Bx4i3QA8Dx734UNUHRmGAY/X/v65Jkjq5EfJ36SX5HmeOD7PqbFzYqQBANwDQygsKv/vgzMGK5A1AESo1PMcpFIpGVKjvnbh690KglzpSctiIQNw50ILPauYwkbwSksnQ9Phui4sy4LneZELmsTrNzdoxBomd1WCBY6wMaNnBl3TAWgylySdTqOzsxOZTCYWxokxhiVLlmDnzp3QNA35fF4mWIc9WAlCmJJMV94TocfK/2kCi8P1B0QeUUJ+4ogoL1HtqTcu42kBoe6bohFClCQiJJg/oKqhmtVDGqqHf/VkN2nrUNm9ZVnIZrNVCbVtNWQBIXr44YfR2dkJDi6PLckhahw87C3iXFaY0XVOpVKxIZuCDCWJ1O2HH3rUh+SazSnqvhCNEKKkfjPBHQsqXybiIw1YXFZzQSLt+vXr0d3dDdMw5XG2ovnsnQIKX3DOkcvlqoQw4wCVmCeehrjAr/F3bSTXblZRN3dJCFGChYFpPUJNfjznYGAKuah4mMJVPe0A9TJjjME0BRmiHluJh6gxhL1DgCBClCNEWLFihTzv7QZjgKahKo+pnbpICQiN33vJ9Zp1zAkhav9dnyBBSzDZiJFngMiF2sOM0E5DpgXVZOStcBwHnufJSqgE9SGKDIkEaq9K6FDXdWzevBm5XC4WHriKwzIhQPFDVAht6pBacg1nFXVzl4QQJVggCOcETYdwrL+W0Qo+PZRDFNZ5absB46JVh6ZpsCwLHCJURt6iBDODeu4oj4gxho6ODmzduhWLFi2SncnbCTUFpR1VbgnCaDyPiJBcr1nHnBCiyQ17EiRYkAgbskD5V/EeyC7iMUmGdBxHKmen02loTIRN1JYiCaZG2DvEUMnF0YK2KIAgx6lUCitXrkQmk4lFSJLmUArtqc/T61C138O18EFjhGOmRCnBjFE3d0kIUQsR7itE3bNFZQhDxcsxk8edDQY/eGCahx/5AAseISLE4YODw3ZspNMWMpmMzBnSdV1c04gVXatXeYZhwHEcLFu2DOvWrRM5RI5Q0550LIkHYRJUMsTon5KD4/tClNE0RT+zpUuXVq5/DOD7HlzXxcqVy/FHf/SHWLy4B65rw/MccO5hWtsh+n606egXOkJEuyq/a/JpVysFk3tzVjAnhKg0gwNJEIF6u1EnN8Nso7YScbWnh8v3NKYF3hah51MqlZBOp/HAAw9g9erVIpQWEw+MaZpYvnw5Nm3ahI6ODvl6nJSU5wOiSu51XYdt2/B9H4ZhYPPmzbjnnnvAGIPrum0/hyQQ2tnZiTVr1qCnpweWZUkyl6CdULxD0wnIzkO0e+zXgbq5SyPB7+IMDiQ2aPdFU/NM1FLoSu8hVCsig4n7B9GJngmmQ7Xh4QrJqd5GbdPBATBwKCX2QdWO57HgWnno6sph9+4HsWzZEvi+L65lm8krTXw9PT249957kclkMDY+JsM9VXOi2ho9AYCgR10EEaLTZJomHMeBpmmSEG/cuHFSjlE74fs+XNeFruuYmJgQauXy+sfDk7XgEUV4uGJ/5BhpbKzM9diabhzXWpy3e8zXibq5SyOEqDCDA4kN2u1tUQeOnERBVUtaFRkKI8pYh7dIWjCoiPIE8Rrvh7ZlrGpTNWQikpYNWJaFxYsXw/M8OI4D0zShae3vF+Y4opXEhg0bsGjRItzqvyVzSGx7shdD6BS16WBjiKnuM8MwgvNYQk9PD7Zs2SK9cLqutz2xnlo8EAEiEUkK8SVoJ2Z+k7UydDZPyM1MUDd3aWQWnZjBgSRQQINa7ZJNg5AzgLNKpguvCIuIv5k2xSNZ7UdXdUQRoRoP5gMar3qNcy/Iv1D/z2Wicrlcjk1rDDouy7Kwdu1arFu3DulUGkA8Juz5hkkJ1kHOmOM4WL16NTZs2CDDVFH9y1qtGK16nC3LQkdHhxybCSFqAWQOYhi1FmIRW7aRkEQtlurRsZondqVu7tIIIcrP4EBaCpoU1EdcWK96HNQIklClLJskN84SVDdPHXL6U7iE6Xp5ngfP89DZ2YmOjg5YlgXDMGKRoyGJNefo6urCPffcg0wmA9u2ZYg2DqG9+QjyENq2DcMwcN9992Ht2rVVTVTbPTGoWkmLFy/Gpk2bZKJ9gjig/TaiGajzaVzm1AZQN3dpJGQ2PoMDaRnoQqkkiNzHcYCaN0Tl0ZUWEAyMaeA+kzFmFoRu6P0E9SDiRp1BEqPamkNcK8AwdPg+kEqZ2LBhHdasWY2Ojgw49xCDaJkc/47jIJPJYPv27Vi+fDmGRoZliFYQt3lnzFqGqcLSnufBtm3cddcq7Nq1C0uWLJEkhLy97SZFgOivtm7dOuzZswdnzpzBtWvXYJomyuWEGMUD09ujKMIx1yRE/fypvn+etoapm7s0QojGZnAgs4Z6BoRKigDhRqaKrriw2koSdbWwX4LZAJ3HqGs98xUaNc3UNKCjowNr167F8uXLoWkaioVCLNSgVQ9RLpfDtm3bsGbNGly+eiUI0ZrBNqFzw/wk/2wKqDlkvu9j7dq12LRpk7zmhUJBNNOt0b6lVW1dyO5ReFQIRorrKghbGbUDAvVe/3C+3fz2eswq1HtoDs5LqwgRzU/q/4HaZH+ezF11c5dGLGFbCVH4gkT933E82LYLw7BgGBY4Z0Gyaysu2tQ6QUKzhMNxPGSzOTCmg3MG00zBNFKhPITqQZms6qcHh1Z5MBbkZDWQy+FzwA+fd+XzOQPnDLpu4t57t6Crqwe27SKTzcF2vGCb9riTGWMwLBOGZcJ2HZgpCw/u3oUvP/kEli5dDt+HDKeYuiE0djgH4xzgPvRIKzDfdK+aO14ODtMwJ71GIVPOOTo6OnDXXXdhy5YtAADXdZHJZABEq0O30mPEuQfT1FEuF2FZBjZt2ojFS3oAAJ7nBJF4dWyK88Kgg0GDVOqa1AuQzp8yyct8majKzTsVylij88fVqjJgqkUZhd5pEZ9KpVAqlaRO3Vwj3P8OqHYwOI4jc+jUCAc5H+LicKiBOSFEIzM4kJYilbKq+jkBgOt6sUib8H1A1xksy8Dw8DAAMQgdx0HZLocGVAwOeN4hPPE1fg6jJjBd12FZFjzPA2MMd999N+699150dnbKbbLZ7AyPefZg27bMcXJdF9lsFjt37sSSJUsie65ROJmBJSXZEKOF7AZpTwGVsLvv++ju7sb27dvR1dUllavpHm43aNwahoFsNot169fgvvvuQ64zDc93oOtaQIgqkzKTcqWNfJGquIyIvxNMxvTK1GqPPMuycPv2baTTaVnJ2grQWNd1HaZpwrIspFIppNNpZLNZmfZhmmbVQiEOOZTToG7u0kjILNaEKJ8vIJvNwnWFOq9hGBgdHcX4+Di6u7tb4HKc2rBQroGmaTh//jwA0S07n8+jWCgnJiUmUMOrVFlEBsCyLOzcuRPbtm1DOp1GPp9kFjeYAAAgAElEQVRHuVyWXoJ2wjAMmeRNE/vdd9+NFStW4Pjx4zAMIzBoQaUj98F4sMrjUQaNXguvmWJv/BpDMMEbhgHHdQQZ0jS4njiHlFDPOceOHTvw1a9+FcuXL5fnmMZH+0FeHkHcV69ejR07duDNN9/EtWt9sEytKmRKStxcauTUSYy4loTK5gimaaKrqwuGYeD48eN44IEHUCwWWyKuqX5+VI6QrusYGBhAJpPBunXrJHEDhNxHHPr5TYE5IUTDMziQliGdTgdV6hq6urrAGMPLL7+Mv/3bv8WZM2fm3GhNR4h40Hyzu7sb5XIZg4ODMi+BQYcWTFjRSDxGrUJU+Sm93tHRgc2bN2PlypVgjAX6Q5qcMNXtWw1ytxuGgVKpBNM0sWHDBjz55JO4cuUKLl68KEidKXJMynYZnu9BYxp0TYd3h89xdP10XZ80OTDGsHz5cjz22GPYunWrfJ3CDGpidbug5jmVy2Xkcjnce++9WLVqFa5f7wuNax8cWsCNZjBeJSlKlnGTEZb9qO/GIsXz27dv48UXX8Tbb7+NXC6H27dvy+rGucR0wozlchlbtmzBX//1X2Pz5s3wfR+FIH+SFowxRt3cpZGzPDSDA2kZhEYMqzJUo6Oj6Ovrg23bKBbnWmh76ugj9T0aHR2ViZaZTAaFQgGGYcCLqCaLUzL4QkdUKxWaZFzXhe/7WLdunQhD5HLwfR/pdLpdhzsJJMZHEzj13frKV76C999/H729vSiXywDzkUoLsT7P96qqH6Mx35lSfYnA5BHinAuiqCGozipD0zRs2bIF+/btQ0dHhwyf0n0ct8RS3/eRS3fhno334p6N9+LkidMoFid3L+DgMmgmRz2dn7oS7av2TNAEaM6iPJ1bt27h1q1bSnXo3ELNVQo/A8KDev36ddy4cQMTExPI5XIyVcC27Zh4SWuibu7SCCG6PYMDaRlM05Ql91JzBeJi1dfxuTkwVt/nU18k2S0dYjC6jgOVEKluy4QUtQZhMkRxcs/zYJomduzYgU2bNkmjRcaKVKzbCRrvmqbBsiz4vo9isYh169Zh9+7d+Oijj3D58mUZTjYMA55dSQYH43dwtRmv6mwPVHuKuru78fnPfx6bN2+W96xhGPA8D5ZlxUraQyVpK1euxJYtW5DNZlEohAlRqG1NU4gXIWwfAuIyA+8ZjSuyJ6Qwns1mYdv2LB/nZNTyjBM0TUMmk8HSpUuRy+XgOA48z0MqlYJlWXGfo+rmLo1Y8cEZHEjLQASDkrxoYqCJqtKVupYRaJaFTz0gwkaTXNuAcEdCCbskaD1qnXt6fdGiRdi5cydWrVolPUZAUOEVg/g5ETSgstrTNA2LFnXjqae+hlu3bmH//v24ePGiMLCBEDrnvuhzxlhzuSGxI1PTeYaqr7eu6wDzwQK1cs41OSE9/PDD+MY3nkIul0WpVEIqlZKLLM45XNeNxQpZTGKiuKBcLqOzsxM7duzA2rVrMTw8HNhGdXu1SoyuX5jchHPJwucxIUMCzc0ftGCn3DSaywqFQlVng1YgnEcJCPtChRv0Oo3/uHlII1A3d2nEig3M4EBaBpqYaHWsdqAmF/fUD72ObWo/poNawkiJmtQoMmneGi9EXc9169Zh69at6OnpkWWnqpdvKrSC6JqmKTuyO44jk8B938f27dvx+7//+9i2bZusmAOUdg+Y7jfM8/E5DRkCANezI0MTq1evxhNPPIHdu3fDMAxZdUPVP3HwDhJUzzgl+2/evBmbN2+W+kSEcHl1glnCDBcVamU0eZ7p/k2n003NTY3OX6oWEXmsyGNK9sUwDJimKXOfYo66uUsjd7ILwbSWNnw4s4govQ8A8H1XTlKpVEoaLEp6rIS0AuMfEtJq3iRMTYoYCxKvmR4MNvFiqezIjuocrGowJmgdyAjRMxGMUqkETdOwadMmbNiwQZJrNdw5HVqxgqKVGrmvKTRL42jbtvvw8MOfx7vvvovR0VHpnSTXPKOxN6ksG1K8cVJ/L6Vsu92jldVcofuo6jYefk9BKpWqyjVkjGHjxg3YvftBWaVHsh5qrmIcVsk0don4lMsuHMfDunUbcM8996KjoxPDw8MwTTPQlKFWHyyoTKRwT/CB0+US0etJxVltMEXWIHQeVekLAHA9D67HAabD5wCYLvTNmI5SK1TG+dSLIlrEk11UlfzjsiCogUEI7lIXGvVz9ze4fVvQMJng7RabY6JtR4K2Qc0dIZE0Co+sWbMG+/btw4oVK2SZNa2O4kpe1WPzPA8rV67Egw8+iHXr1kldk66uLqXtRGCkFWLP4YkH56j0g5uviGryWwH1/ero6JALqy9+8Yv4/ve/j89+9rMyREbSGeFHu6HmHKZSKWSzWei6LvWoVqxYAcuypMCeuk8cjn/BgIdDjxU9q6htuU+2P7kGc4SGOEujV+Fmg9u3EJNJDYXCpHqo+pCrWxbxGTN5sCYekyXTw78jwdyCwiXkIiYPULlcxp49e/ClL30JXV1dMsExbvHzWsdBv8VxHDz44IP43vf+ZzzyyF4APvL5MThOWamWq6WqG26OGy4tjiNqEbjo32UYWlCpKh5r1qzGU099DY888ggMw5hEhuJWXUYkjuQ9MpmMrDbcs2cPPvvZz05KCBehEAbHKaMe8UCBkJ2dpGx9p2KqcyDOkVAFFw9wTQpZV2x+M/NPM48FjYY4S6Nno6/B7VuG5oyTSoxm8lxfDlHl61jgTq1+LyFD7YNa/UfkKJvNorOzE9/4xjewYcMGMMZk3oiaVB1nqHlrq1atwp/+6Z/iL//yL7F+/Xr4vo9MJoO77loV2stXnuuZJONKigh0fGEyVAHlRBQKBeRyOXzzm9/Et771LaxevTruIYEq0PVWdYnWrFmDr3/961iyZAk6OjqqdLO0pJhjFqG07qhadIcRXggDzc0/zT4vaGLUEGdZMISIUMmO18UDgYdoklcmxJJpAM/keRYe01U5JZh7EClSE1O/9rWv4bHHHpNhNHpf1e+J6zVSvY62bWN0dBTZbBYPPvggHn74YSxatAj5fB6jo6OVnWrmhKikInjMi/yR+hr9lkolOI6DVCqFHTt24Etf+hLWrl2LYrFYV+J8HEDjsdLc2pCSEY8++ij+4A/+AMViEeVyGaapwzR1mXs5g2/DAp5EZxnVcw/NTbM2/8zG88LFnBKiGw1uHwuwei+4bMrX4PMcI64T7kICeYfUnJBUKoXvf//7WLZsGcrlcqwl6qcaI1SBqWkabNvG+vXr8YMf/ADf+ta30NXVhcHBwYiQLTVwrHJmzmP4oedqUJ7VH/7hH+LP//zPsXfvXqkx1AodmNmC2iRa15kUhF2xYgX++I//GNlstmqcex6HabZXZXthQCWIYU9ReLuo/bSZzz/NPi9sNMRZGrXu1xvcvmVQtRN4hOpzBVroebYwH1bLCWqBJhEqIe3p6cHv/d7vYc+ePZPIAoUk6LU4JqWqOiKapqFYLMo+Z5Zl4eGHH4bjOBgYGMChQ4cwPDTe5iOeLczsPtR1Hbt378bTTz+Nhx9+GIsXLwZQSbaeD+BckFfDMOH7kK2MbNuF77vYvXs3vv3tb+OXv/wlCoV81XiuYDYFG+9EaJg0BquIh4bK2oWFtm/TeV/Y6+2GOEujhOjTBrdvK+Ke31E/Gmi+eMei1kRIBifCUKl7B+WjVFK9atUq/Mmf/InMuSAldFURmnI04kCI1ARvlbxR8m9XV5fUJyqVSsjlcnj88ccxMTEBXdfx61+/CET242OojL+4W87p9YZq4Qtf+AK+853v4Mknn0Q2KwQYKYQaJa0wnbJvO+B5ftDVHnAcN+htpwU5ZCIc+MMf/hBHjhzBmTOn4PuAaepwHA/VxSGNYOr76s5BFKmpnBs5PjgLyVck526O0RBnaZQQXWtw+9bBp9CYBsYogz/wGCnS/FU7AKLJ4aygmc9RJd9DmBTjrfU98/zG0oJS4MBWTA4BRf8+FrUND20hvYfCQFHYi7xBlmXBtl0YhoF0WpQm7979WWzduh2pVAqFQkGWMROIgMSl2kwlZWGCRho6pM9Fx2yaJj7/+c9jyZIlKBXKOHbsGG7234JlWVi0aBGGhoYC0udCnLtKIi55FXRTg+tMpwJfD5obv+InT5ZBYIyBaRy+zwJhRROGYaBcLqNUKiGbzWLXrl14+umncf/998v+TEDlGkdd23Zf7yiISjmRpGuaukywtiwDpZJQV9+2bRt+8IMf4J//+Z9x7tw5uK4Py0qDQ4NjOwAHUuk0fA9Sx43z6a5NQoqmStgHAF+Oyah8tKj7ZqoFXtQ+zZ1/cZ2b+oi4oiHO0qgFuwZgfviP5xvmRYJqnBF1/iqiaJRHQzkV5AkioT0qUwaAPXv24Gtf+xq6u7vh+37VJDlfQZM7nQMq0V68eDG2bNmCP/uzP8OTTz6J5cuXw3Ec5PN52auos7O7imQRGSKNI9a0h6xJY65xMBZIJnBfrsAZY/K+0jRNth+g556eHjz22GP44Q9/iC9/+cvYsGFDVf5YKpUCgPmgxCtRi6hZliUJ4J49e7Bt2zbkcjmk0+kgn0iHrltgzIBddmUrGLEImIr8td87Gi/MZCyH92nkM+JHzGMEBw0SoplkiF4FsGkG+8UE0/XmSdAOsAZXJxUzMF1VVPC/oOeUur1hGLKU3jAMTExMYNWqVfj617+Or371q0GLBrelfYTmCuGJUlWqXrZsGR577DERFgTHr3/9a+TzeaTTaXR0dGB4eBjpdFqGkdTzJvNPpomoTe1RCd6bYlEwVdI454BHHitNr6q28pUy9FwuB849TExMIJ1O44tf/CK+973v4atf/aoUZCTCRIq8am7ifIN67ESEOee4//778cgjj+D48eO4cuUKXNdHOtMB09LBuSCO3PMEufRo7IevTWI/5wZqs7moiEH4BZWQ1r4WU95/jMc/Gj4zXG10hzuQEM0hghYHM3pOIDEXExCJ0WlaxTuiytFPTEzIZOPHH38cS5cuhm27ssQ+jiGSRhBuMeH7PhzHkZ6Ajo4O7N27F9AYCoUCDh48iOHhYWiaJr1pVH5u23YltyYQP/U8f5rxrTc1/qcjJhQW930fnu9VvUP7ixJ6B7lcDp/73Ofw7W9/G1/4whekgjNV4uH/Z+/Ng+O6znvB3916B0EC4CpqISVKpEQtpkNStqw1iuQnS1asLHZs2Y5dqVepN8kfqZpMZSZVM3mpqbxXmZlUuWriiV+ixYolUUuolRJNUuJOkeK+iiRAcAVAEDvQ293nj3O/0+dedGPrBroB3F9VVzcafc/dzj3nd77v930fCsU1qRzKdIJ4reh+27aNZDKJnp4ezJkzBw899BD279+Pnp4e9PUNeNXLyeXM1Nms7ztQvPB9P0LxdeUxgnRitG1QxvM3czElhOjiBLapAdBgShNboHZPpfYhORN4D1F6svNfn9I1q3hLRb8tFDRVPU1MYYBXVRWGkceqVavwve99D6tWreJVwUl/M90R1NWIbjPLsqAoMubMmYNHH30Uc+bMwbJly/DGG2/g+vXr3NVGehpd13mmYxaTL0yWJfq5C5tNtHBLvI8MSgHAz4PeqfyE5FmF3MIEQVXpKQ8ThZ8///zz+M53voP169dzF6FhGPw8I5EILMuCYRjQNK0mRPPjRZBAsnvMavPV19dj1apVeP755+G6Lnbt2oXevgHYFt1P0opJcBwXjmsVN+FO/8eihlBsXCtygXmNuWLfl55nRnv+pvdyryTGzVVmESGaTLhFPo/3fYZ2yRoCWYUoeojEtZZlYcmSpfj2t7+NRx55BHV1ddxiMBOsQwCGWQyorAMXSEtkRYjjm9/8JhYvXozFixfjs88+w/Hjx9HV1QXLshCLxTwRuuHlsbFZDJpMxFEYaL3J1T85l3of18nAOwl+Lq7jTeKSl0dKcmBZFncNyrKMRx99FP/pPz2NZ599FsuXL0c8HufbEwkSk3NSIV/RcjSdIEYdkhUskUhAVVWkUik89thjiMVi6O/vx2ef7wDgIBaLw7ZdmB6BLNy3Is/AaAVgQ4wPvsVxqefCi/gUrTtEfnzbjed9rBnppx2mhBC1TmCb6oGKUvKwx8l8eCfaqcIBZThGswyNcSL1BplEIgHDMPgArygyzy8zb948/P7v/z6ee+45LFiwgGtOJG9Cr5XQ+nIglnIACrXYRH2UoigwDAuWZeH225fhZz/7GdasWYMdO3bgnXfeQWtrK/L5PNfWKIpSGFbdYoOyUB5g1EilkeFCKmJJkgqWI8nhEVaypHIhdCKR8ITjK/Dzn/8cTzzxBBYuXAhd15HL5aBpGnRdRyqVgq7rPG8TkSAxc/l0hUiCU6kUABZBtmjRIqxbtw5nzpzB6a/OoL2tDXk9C1WJAGDXE64LWVHgOCMJxGa862XyUZIMFXtuRCIkYoRnbDQr7PRf8xXDuLnKRAhRywS2meEol12TP35m9sqyITkB/jN+qwKFIJP2xbaZILihoQEPP/wwnnvuOXz961/3/Y7lJpK51mg6Q7TS0CRPxA8AHJv9LxIpDAl1dXV4+OGHcf/99+Pmm2/G+++/j2PHjqG/vx+5XA6WZcHxSNWkuxVL1PmjlxaJ+KxBsVgMDQ0NWLt2LdatW4cHH1yHNWvWcPE0RRfKsuyJrV1uMRP1ZWQpmu7CesuyuMUznU5DlmVEIhE0NDRg/fr1ON/SjC1btqDz+nW4sBGJRuG6zFLk2DYgjXT+oe+schhLjiKaL8J8RqNg3FxlBhEiL+eQa8N1HS8XkTtcDFhKs1ORAb0MC9Gs50Kl8gwxMsRCqUfOTSRO+jSxkcsrl8shkUhwDUwikUI6nYaum/ibv/nfsHr1aj5BUvkDWWY3pVbLdYwXwfMQSZ4ks+vmOA4v5aBplJIgih/96E+wevXd+Oyzz7B9+3acOXMGfX19MCwTkuxCE1xMsqxwdwuP+ILfbSfmCxL1TOSiAuBzYREpsW0bkUjE2xdQV5dCf38/DO85j8fjqK+vx4oVK/Dwww/jiScew9e+9jXMmTOHW7bYuWl8P8F8Q0Eh9XQnQ0DhHCgfFRFiRVGwfv16LFq0CFcuXYaR19HX1wclIkORZdjesyDeH8rpJXkWOqdM61+I4RIt15evaIz6orJIUfF8W3xv3kIR8FscazzoZEoIUT9YfZAlE9h20jDaTZl8YWw4KEwuxrcaCiboi8VivnDqoaEh3HnnnXjmmWdw9913Q9M0PimKRCGovZkNEPMM0ed4PI61a9finnvuwdNPP41t27Zh69atOHbiOIaGhrgoWbQWidm8AfjC2MXrLFrkyF1F+7csi+dD0nWdk1Xm3jPQ19fnJZx00dTUhHvvvRcPPvggvvWtb+G+++5DXV2S74O2o7aB2XNfg5NY8LzvuOMOvPDCC8hkMjh06FDJhJREch3HW6SExqEKg0TtlOxyrPNKmS7pUeZHcaEoooafn3YwrjIuTHTpex41RogIovZDkkYWjEmSVKhW4NTsjZ2VKB1NVjwjLN3zwgit+P5HkzFZDG+66Sb8wR/8AX70ox9x94k4SdPDX8MP/KQgaGUjgpLP53nU1f3334/bbrsN69atw649u3H+/HlcaG5BW1sbOjs7uX6HtqfQ/WJV48V9mKYJy7L49iT81jSN632SySQymQxM00Q8HofjOJg/fz5WrVqF9evX4+mnn8Zdd92F+vp63qa/Vpf/XGcLSi0Y6V5bloVnn30W3d3d6Ovrw8WLTI8ajcaRy+W4dW7Y9iEjqhDGm+07mE9vchEcC2vYKkQ4P5GNJkqIzgF4bILbTh7GeIPEG8kjMSblgEJUBnR3ipOhYhAjbGhC1nUdruvizjvvxB//8R/jxRdfxF13rUA+b3B3T40/5FMCUZsjJvYjsiJJEubPn4/f/d3fxQNrvoaBgQGcOXUazc3NOH78OM6ePYvLly8zl5onZNc0jW8bi8WgKAonQFRRnrQ/pNuhPEmmaXILUn9/P2RZRiKRwJo1a3D33XfjgQcewPr167FkyRIsWrQIAJBOp5HL5XzRdD4XYXifAYALx9PpNJYuXYo/+qM/Qjwex69//WucO3eOa4+AAllmBJNdSwnB2lwhJg4iRaKVCJgK78NozwO5TIO/r2FidG4iG5VDiGoSYzPpFW4su8kSJKlcpj1yp5gJuWymAkXWsEV+NToZkiRXiHxyvFxDBu644w58//vfx09/+lMsW7YMhmEhFouUlJDNNtcKgVyOtm3Dtm1omoZUKsU1WOl0Gqqqor6+Hg3zGrB0yU144okn0N3djQsXLuDChQu4cuUKzp49i3PnzqG3txeDg4MYGhpCNpv17YusD1RShfZP4eGJRAKu6yIWi2Hp0qV44YUXsGTJEtx8881YunQpbr31Vr4N5Q9SFIWXXCENzGxGcBFIL4qm0zQNruvi7rvvxvz586EoCl555RWcPXsedXV1yGQyAFgEn2hBlCQJlj19SptMT8iet8P/nR/ljU9jmZ+CGiL6XKOkaEoJ0VcT3G7SIeoeSv9G+EMCALcChCUkPJMLJ/Duh/hAkjVAJDOZTAZ33XUXXnzxRbzwwgtYvnwZXBfI5/PQtJTPuDjbuatoHaLPpNmh6KRoNArHcWBYJhzZQSQSQSQSwS233IIlS5bgoYcegmEYuHbtGi5cuIDe3l60t7fjzJkzOHv2LDo7O6HrOtcYiWkAkskkFi9ejBUrVuCee+7BzTffjLlz50LTNF6LiwiUGDnFivPGkEgkeLtknSpW9DVEgdSQe1GWZSxatAh/+Id/iHQ6jVdffQ3Xrl3zaZBIh0V9RJZkjBSVH2I8CFqJGIbPT6P9PesxIY4yYwiR67qQPDIkikIJpca/qepGIw/A0qzvzqPXJhttO/hWvVSqg4XOq2hqYrmGnn32Wdx8883QdQORSARz5rC8LJZVLIIiuIeZi2KV3elaimRFjLgid6SmMo0PWXVoG1VVcfvtt+Pmm29GMpmEYRjo7+9Hf38/bNtGLBbjhIZ0XKZpchKTTCZ5AVIiP0Ch7AhZN3RdR11dXSAKClwzRhaj0c59JqPYgk887wJxBPJ5A0uX3oJnnnkWQ0MZvPnmm0gPZXktOzE1AREkx5rtI1i5GE1DNLnus7H0f7K0kpasmPSkhjClhOgygF4ADRPcvuKgFSBZiIIr3OEmRw8SAMhgHrPJE6hVzmU202sI0cBQzJ8ufs8QTAFIAl2aLGmS/pM/+RP8+Mc/xtKlS2EYBp98Y7EYNE2BqoqRZeL7zJ8sgxBDrEVrEWlwyK2lqiokry9S1meCGEmmqiqy2SxkWcbcuXPR0NDgC4Gn39I9obaJxFD0WTabRSKRQDab5QkGLcvyoszYIC1aL0Rh/Gy7h0GUmrxoXHIch1/LaDQCx2Fauz/90z/F0NAQPvzgY67nou1sx4YECdFoFKZthMkZy8LIFvDhedCm9lpTnyFCRONBjT5bvZhAHTNg4oQIAE4DeLiM7SsKVwIkhYkyM5kMEokE4vE4F2qKERI0CPgsSHK5GqCRL6UkSb5yEHQ8/O9SxH9MFY+nAYqcB3+QXBn0gBeus/DAS2xCdOgi8SRxXn0yiYUBJxJxbkXI5fJcM/T444/jL//yL9HU1IRIJIJ8Ps+zEotEqHBcvr8mdr7TDJJSuA7FklCKg56Yz0gucX1oYSI+N6LbKui+IlJE4mlRwE0rU7IGEQESQ/RFC1DQfTrqudfegD5lEC2idF3p3sXjUcyfPx9/9md/Btd1sWfPHly6dAmWzaINHZfdm7yeB1tRFpYnIpEey2JQCiR+LGwTHDdk33EXfj88Am5qUaqfBTNQO8EBhv3HdXwC9Vg0hrye5a7pwvmV2k9lCJJoXQ2maqDnTbTEUo3DGrOynp7ohuUQolOoIUJE5nEyv5um6VW3tr1kc9qID2b5osuRO6SY7VZcbdP/II3jVszQVPlFyZAHypZLl811XbiODEkBJFlGLBJBPmfARY63c8899+DFF1/Et7/9bSxcuBCu6/LSE5SxmKyJ0z0Tda1BHFDp2o5ktRHvQdDtFXwvlg8lRHmgay9ed0VR0NjYiGQyib/+67/GypUrsXnzZpw+fRrd3d08yaOmSrBdF64j+bRbopVwbOMrs/6WJkMFFCbg8YarVxNSCe0GSxGjqgIplBzfQmCy+3vw/vPDCCwuxLxgYyW7VcCpiW5YDiE6Wca2FQeJPkWBIEXHAOAWARFTOaiSlcowDF+iumQyCdu2kc7kx9bQdCNCpTKDQ3j4XNcrXEIrJCopUVhh8mrmdiFHDdO22HAsG4ZtQJIluA6wYMECrF27Fs888wyeeuopLFu2DIoiwTTZKotlIXZ4jpqZkom6VlCMzIhkp5SZXVyJjjTQhmRockH3iiUyjSAaZclMf/azn2Ht2rV4++238e6776Krq8tzPzuQIMOFC0VWEI1oXOcFF1AUFe6IhIjud4nszOIY4o60Te2CMsEP79ZUMidSuGYA9yDQ+GTb5qQeX5DcBJ8/27Yxb948/uyR5m+qCNs4MWFuUs5McKKMbScFuq5DURTeuZLJJObNm4fu7m7EYjH+u2L+9PJv6MhEhUpHNDY2IhqNoqurCwMDA0in0x5Bmv7lASYMibRCAFxKqCnBK/gAwIXjkSIy2RKpJJOtaTKB57x58/DEE0/gpz/9KdauXYu6ujrouo5IJAJVVTztCmDboWVoslHMCjSWbcb6W0KNmeunLUgfImYlNgyDRxCmUgk89NBDmDt3LiRJwqZNm9De3g5NUyBLKkzTgu3YsHUbiqxwYkuasxH27L0HhMPFFlPcOj79tJQjRYqJYuVUKoVFixbBdV1kMhmPeFQntQEds6IoWLBgAVRV9UofJXwZ5WsME+YmUhknUwdgcKIbVxqUyI3cZY7j4Nq1a7h+/TpSqRQMwxi2TTFxYSmMPuCO/HBGIhFYloVMJoMbN27gzTffxI4dO7jZubtnlMDjTmgAACAASURBVCzjtW4ZGsES5EewaI+XB8qnRXHBatF50YJwPeuRzS2AYqQLmXCXLVuGhx9+GD/60Y/wzW9+E67rwjRNSJLk1a5S4Dj+FSUlAQytRNXBSCb6EFMHshDoug5VVaFpmk+ons3meb4iADhy5Ai2b9+Obdu24eDBg+jvH0Q0EuWWesu2oMhMOD96niIJvgUhH0tKjcmi9rBWEDyWwHgontOwucZBPB7nkX4PPvggfvzjH+OWW27hC76SQUEVRKlnT0xue/PNN2Px4sW+RKckB6mhZ3cOgKGJbFjOLDAE5qtbXUYbFQOtaEhHlEqlcOedd+L222/nD3E14XhaOtcF+vr6sG3bNl4OIZ1OY6ZbiMSIIg7+2eViQiJGTkAkqUUUmKbDrUNU+FOSJCQSCXz961/Hz3/+c3z729/GokULYBgWOjs7EY/H0dTUANcbhyjnDQCf6zLE1CNooi8lzgwtQJMPnkLBGyuDz0YiEUMup6OjowOapmHt2q9j7dqv495778U//uM/Yt/e/dANHQALcohoEf6ssjxFIy2Y3MCCqlgRZznwf6mwTU0RI6AkGSp6Ddh3uVyOR1bOnz8fTz31FBYunM9+4QCTbcgu9YyJzyhllac0HPS8imNqDeAUJkiGgPIIEQAcQ40QInJ/mKbJi0BSHSSgtAVIzLo6Eka3pI08YIvNq6qKnp4enuhO0zToxii+8Jp9+EWMYxVTJCqErYTo/wWfNpnuZVnmYj6KNlqzZg3Wrl2LH/zgB/jGN9YDAPr6BhCNsggZABgayiCVSkCS/EkbuT4pdJtVBcGw+1KkJyRDUwcx1xM9HzQRxmIRLF68GJZlYXAwDQB46KGH8Mtf/hK/+tWvcPz4cRw7dgwDAwPMpitLcB17FDIEMLJTZOygMUJy/FYVLqaG8P9qP8Ml3HsE3/wh6qMKUgHHcZDJZNDX14dEIgHLcqAoxcXOlUYxgbTYB8gKT9/Tu0iiawTHytm4XEJ0FMCLZbZREVDytXg8DkVRfDdJrMcTxFgH23IHZdNkZkVZBi9FQCRO13UvlHyaDvwSaX3KaCIQPSSmiafvbNuGruuIxWJobGzEypUr8YMf/AAvvPACFi5cCIAllZs7tx4AkMlk+UMs5s2gdskcPVL/CFEeggLrYggJT/UhRlzSi9wg9M7GLNk3CcbjUTjOYvzt3/4tjh07hk2bNmHbtm1oaWnhQS6jI6ihFAgQkQpxQei6gaHSrRFS5GGYfEAsOk3nM/y6RKNR5PN5SJKEurqkp4ukn07uM1LKKiumyQhG5Yr5ymoIR8vZuNxZ4EiZ21cMIgFiUUQMFIZfbWiawosimqYOVZVZhJTjZX51gJFJBXW6GgwxdYe7xNxA9IckyTxiQkzsV6iMDqhqIaxTURTEYlFfbSpZBurr52LdunV46qmnsG7dOtx5551obGz0VrIuIpFCXTLml7ehKMNDwMXV0HjIUDCPTtCyUez/4nsw/w5BJGViyPJIbqRSx1BLqNXjGi9K3bfxgEi+2AeJqJdqP/iboFVN/BysNRV0e420j5EE8P6weQeKIkFR2ELDtpk8QVVl/O7vPo477liOO++8A++88w5Onz6NfD6PoaGCB4Pq1gHi8y9DpohSMFE3JIkJid3C8bDjpwnZOxq7oDGsmbHRHfbB+1TMYlQQlOfzLNJYkiTkcjri8eikHmYpBFMvAIX5Vey74w2YmCKUxUnKJUSHy9x+VkHsaMS0GUhgNNIKhyKvRtyD95upf3dcNijxSRz+mnL02bIspFIpWJbFV0PRqMajLMTyELquc1NtPB7HmjVr8OSTT+GJJ57APffcg1SKFe80TVvIbyNaoSW47sgh3CNezSJhqGL4uFgmJlhJfazuH1pliduLExTppYrl76llIjTTMNp1Fvt6qd8G73HwuyBpFu+3SJLpN/Q7cdUu7ju4ECxFrseC0tsUrLeyLPPiu6tXr8bJkyexfft2bNmyhbu5KbmfmPIiEonANG2oShSWbXih5w4PnqDwbvHa8fIRUKDIivD/6ox/w9+DGJ2s0f2ha8nOlf436uYVQ7Cf1GAU2Ugoi5OUS4iGwExUXyuznbJR6xOD2KloxTXcsjBaTo3RTMJiaYupfWcPkcMeYOH5YatJhZfJyOVy0PUcz7chywpPlsjID0ugaRgWFEXB4sWLsXr1avzO7/wOvvnNb2LdunVYsGABACZEZJWgyazvHzhGMjUH+wvVZQr+RlxtB/8fXLUTgkRKzHUUXKUHrQUiQaL/08QQRNBKFGLqUOo+juX34n2jz6IVZ6Sq4iJZFq2eYv8MknSyPgbdH34EQ9/9KN2/vLQYXnVXTdOwaNEiLFy4EPfeey9Wr16NBx54APv378fx48fR1tY2zCJF/T2vZ+G6Ls8TRpHBzMLLnmdZpszIkkeKHDiuw4MyqjX+lSotNDqGE+IgIarGoy26y6bRwusoyhBUA+UTIgA4iBogRNMBpRi362MRIw2s4oNW6gEM1sSZmvcg4RPFeLSasyzLZ4IVQ+cVRYJtF8y08+ezAfWhhx7CU089haVLl6KpqQmapvHVJQulJxEovOMYPoCM5YEOFi0VXzThiStTERS6Hww9pf0WswKI10y0EInHEWbRrn2MdaIQSVCxRHZigrugZUfU9ohtiQSI+kjQ4lhsdV+M+JerAaRjJxe3ZVmIx+P4xje+gZUrV+KRRx7Brl27cPz4cXR0dODKlSvo7OzkqVIAmZ83W5ywEHTLMuE4LlweJUrlXIa7Ab2rVcX3yrjs/GS7OoSI7XtakCARB8ttoFKE6D9XoJ0ZDZFxkyYmqDdhGM9DFXwoqwfx/ABAliWPnBQStJmmiWi0kN/EMEy4LhNm6rqJZDKJu+66C3fffTe+9a1vYf369WhsbERjYyMfZPP5PK9Pp6oqHMdBPp9HLJbw9jwW1+Jw0KosuPoWUWx1Lp6/6MoKkioa+JkWSh62rZj1VbQmFTLV2r79FNMulRrAalD4OO0wmmZiNJdZ8J7TQkGSCuJ+cV8iyRnJOkS/Fa1F4j7ou7FbEke2FJWC5NUTdF0JiqJ57mr2ub5+Hh54YA1WrLgLpmmiubkZmzdvxvbt29Hc3IyhoSFEtBhsy+LaQ0lyvTGStR+LxXj1AXYtCsfJFlM2amEcLHUMhete/LqKc4GiKF4+qETVyNA0RU0Qoi8r0MasAHX6XC7Ha6tRMcvx+2lrhwwBfkIkmv0JlOwtkYghnU7DsiwkkwlIEssj9N3v/j4efPBBPPHEE2hsbOSRLI7jeBXptWHhnTShRKNRIa1BsdUv+HEFETxm0XURdHMENR1EYlzX5ekASFdE+TpIB0SZ0okcUeFSVVX5iyxQxSxDpQIDipHq0c45xMRQjFQE+wmhmEtWtAzRNtRHqD+I5X0oQ3Qx66GYNFFRFKTTaU6maaFA+6TnqNhx0XflTryOU+j7Yn8mi9ecOSlEIhFIkoTFixfjG9/4Bv7iL/4Ce/fuxd69e/HbzVvR09ODXD7jucoKYwhFXwEQFgykLaJrWRvjYCkU+kjp55H6UjQaRTqd9iKmQ0Y0DpTNRSpBiE4AuAFgQQXamtEQCVE8HgcAPng5jgWI2Ujd6fUgULQcWUBs2+ZiYEr3rmkKenpyWLp0CVavXo2nn34a69evx5IlSzCvvgHJZBKKqsLQWYK3iBaB6zhwLBuKJMO1HZ55WlVVSF70LdU5GwlBzUZh1U2raHXY6lokPPF4vKjwmVx/ADA4OIju7m5kMhmoqopkMsmtO7FYDLFYDPF4nJM7cWVvGAZ3AYpFitm1dRC0EgTPi1COcDbE+CC6hMXIVvqfCNM0fZYgRVE4aWAWzhj/Xmwrk8kgnU4jk8lwwiEmn6Xiq3V1dT6RPy1A6FjEPi+i8F1wovZXVx+1PzkuVFmBK8nMOuwAlm1DkmSosoJcJs/6t6bA0E1ILnDrLTfj1lt+gD/6gz9Ex/9yAxcvXsThIwfx+eef46uvTiOdTqO/v5+X3iFXOXNPe5mSXYBFvimoOikqOn4HXZeBscoLpJE9rktjzdDQEJqamgCQpX3Sjnqm4AYqUE6sUslX9gP4boXamvEwTZOv/Aop8mXUVC6NcUKSCpYusto0NDRgwYIFaGxsREPDXMRiMSiKgj//8z/Hfffdh2QyCVmWWdJFeK4k1/WJiEWXgOzll5J4zO1wofNIFpGgG0v8Lp/P8klEJHbittlsFoODg+jq6kJnZycGBga4LiqXy+HChQs4cuQIWlpakM1mufUvn88jHo/jtttuwwMPPICVK1fyukCWZcGyLNx0001YtGgRGhsbudUgFotBkiSYpolcLsetRjSZiscoaptCMlR5FCMTRIiKpUwIWu5isRhc14VhGNx96rouenp60NHRgUuXLvlE9K7r4vr16zhx4gTOnj2L1tZWn8UllUph+fLlWL16NW655RbMnz+fByrMmTMHN910ExYvXox4PA7HYaUhgq42Oi+yTBWHP3R/pOsjCUEMkuzVGZQBx3YRT8Tg2GyfkagGuBojTd6iaenSJViyZAkefewh/OQnP8Hlyxdx7tw5HD58GG1tbejr68P169fR3t7uZfb3LLCaAkiOt7CpNiEqNn6P9jeDmAQxGo2y3HQ1gLG7WquO/ZVopJxaZiL+BsB/q0RDMxU0qTuOg87OTnz++ec4evQoH/wKZl/ZN6ASRuuQo93HcrcfrT0yz9Oxx+Nx3HTTTVi5ciVuueUW1NfX84SZmqb5BJS2bXOLWVBwWs4DKVpKmIVKgyRJnFzQPtvb23loPxUGpnxIAwMDuHHjBq5evYr29nacP38eLS0tuHLlCrq7u7kpPxKLIpPJ8JV8kNSRhSCVSvHEnCTEVlUVixcuwB133IHly+/A3Llz0dTUhGXLlmHJkiWIx+NobJzPJ0zHcbimiqxlqVTCl7qArAVkbSjl7pkGA90UYfhk6r9mLAs+EVLx/yQkJutlNBrl90rTNBiGgXw+j0wmg9bWVpw9exb9/f0wDAMXL17EmTNncO3aNS8CU/cysmuchGcyGX4cJCa2LHa8iUQCqVQKsViE5/tZtGgR7rjjDtx2221YuHAh5syZgxUrmDZPVVXEYjEkk0lIkoRIREU6neX9yDAMTt4Y4ZZgWTZYaiAxKjLo2h1blF0xdyMjihYne6rKIkZN00Ymk0E+n4eu62hpacHp06fR2dnpG28YIfVnnw++yu3no23PLHMOvz8jbV9MC6aqKk9Dcu+99+Kxxx7DrbfeGlp8x47/FcB/L7eRShGiRwHsqERDMxk0WQFAV1cXhoaGMHfuXAD+SKOgHmS6PBDi6pMGWBI/k/uJiAZQKKNBq+JSYmGx7VIQNRri9SLiQa5JCuWNRhmBEV0U5PK6fv06X41euXIFHR0dOHfuHLq7u9HV1eWF+xfOWZZlSEoheZ2oHyIrTi6X4xolIsFUj81xHLi2g3g8ilgsAU3TMGfOHNx2221YsWIFFi1ahLvvXo2lS5fi9ttvRzwe59tSdvZ8PotkMgkAfGKm8yIXbfBaTqPV36TDtk2fFUS8NuxeOb46X2TlNU0Tvb293PoZiUSgKAosy0JfXx+6urqQTqfR3NyMK1eu4MiRIzh16hT6+/shSRJ0Xcfg4KBP/8MItA7bdiBJrD8lk0nPVUb5qdh9ti0Xkux6OiTWt2OxGKLRKO9rmqZh+fI7cPvtt2PevHm49dZbsXLlStx6661YunQpYrEYHJvth7QrkagyzE0jWmup2ChdJ1ken7OBiApZRhRF80WkirUpbdtGMhmHbbvI5VjKDhov6RxNU/cdTzFtXbVRSudHC2UKGkkmk2hoaODfA6OXlgqBxwDsLLeRShEiFcAAgMRoP5zN0HUdjuMgGo3yiZmiJ4KhtUFiEBQpBzHZFqJiJKWUmJQmESq1YZomUqkUHwAB+CYA0hwVI0S0n7FO2kQ0AHCSJa7kTdOEYRiIRqOcqHV0dHDLz5kzZ3D58mXcuHEDfX19GBgYQDabhWmanGgkk0lOMLLZLEsg6diQvHMSLQh0PiSUJZJE14AGfUUCn/DoWAEgmaxDfX09kskkFi1ahLVr1+K+++7DPffcg2XLliGixRCLR6CqhbBn2odIwItdp1L3dzYi+PwRxL4n/sa2XciyxC0Zqiojm82ir68PbW1tuHr1Kk6ePIkDBw7g+vXryOVy6OvrQ39/P3cTiZYV0yzUXwQYQSMCTQSLESTZs7AyAmEaNhzX8qxSLhdi27aNbDbLLS+O4yCRSEBVVTQ2NmLFihVYuXIlVq1axYnRihUrEI1GIEksxN22GVlRVQW2bRXIvyRhuEVtfBO2SIZc1/WCTADL8rvuKMjAMAyfbk9MccGsphbfZjL68kQt1CO1Jf6f7jOdLwDuWqXyQyFKIgugHoA12g9HQ6UIEQBsAfB7lWpsJoI6u6IofIKUZTaQxmKxYbW2xAen2iuEoIYi+LmYbkJ8p/MZLeNysUmpGGj39NNiE5pIvsQVPxGFvr4+7Nq1C2+++Sa3CHV2dkLX9WFuy8JKVuEDsmVZnOTGEnHuphJJoRjtIxaWDVqLHMv0LFkRRKNR2LbtWZXAJzjbttHU1IRUKoUlS5ZgzZo1+J2vr8P69etxy61LoWkKd+tEo1F+PDTQBgt3irlraqG8TbUhuleKESPSi7H6gyYn8ezayjh8+DB27NiBXbt24erVq8hkMujp6QHpwEgXQjo1thCiSDN/Uk5VlX3BCewYWHg7ESnXdVmmZlXiFhJN07jLjkUzOr5nlxYq0WgUqVQK8+bNw+LFi9HQ0ICf/OQnePDBB9HQ0OAtVIY/Z9SGSIjYMY9sIQouaoIavmL9z7IcvhBJJBLI5XI8ZQlZ5Oi5UNXhub6C75OJYhozEeL5i+M6bWMYBl+gkXVdfA8xIrYCeKoSDVWSEP3vAP5rpRqbadB1na8CgqbQYGmGYhjNQjTZKDaYBf8fJCM0uAe3FaNhaFtxQCx2DYIDqng5JImtZgsrauZSIGJD7rJoNALDMLnr4pNPPsHhw4fR0dGBwcF+PvGICR/peGlyEldwNGBRxBgJpOl70vuI7i1xEAfAxbU0sRbOqfA92zcrjTJv3jzk83lkc1kkE8xqtGrVKjz/+8/hkUcewZ133sGvD3Foy2LHQKt/26b8RqRHsaFps5sQ0bUulEpR+SQrVh0nSBK7xqdPn8aBAwewc+d2XLhwAW1tbejo6PBybhXEsdFogTAHtS1UyoLBHx5Pz1okQv2x4MIDwK1KlmX4clXJsuqbcOEy62U8HmeuNsfk/TAajULTNNx1112YN28e7r//fjz33Hfw4IMPctey+DywfRbGMV3XEY8nR72+4nkV+951ifQV/k/PdSSiwnEKrvFgOHq1gwpGGx9Laajona4vWaHFPHW2bddaRflaw/8B4O8r0VAlCdHjAD6vVGMzHcX0HMWEd8X+V4sgIhC0/tCgHCxRERQWjqZn8V8PeNlrC9soioRsNo9sNgugoKOgiT6fN7Bjxw5s27YNZ86cQVtbG1paWgQ9kDPsmovHUyy5negCLLYdDWpininxOojZfYdbBAuuN9u2AVeG7dhQZAW2Y0OWZEQiEeT1PCRIuPW2m/HII4/g0UcfxX333Yfly5ejoYHp03S9UDeKJjE2EYeEiECRYo7jIJvNQpZVxOMxSBKQy+mcuCiKjKGhNFpbW3HkyBFs374dBw4cQHv7Na5Jo3sdj8eZW8s0GaH12hC1OME+RO6owncsyaltB3WFheeE9algLrNCuDxbdHnRYtR/ZEb8KdjANE3E43Hkcjk0NTVh1aq7sH79evze7/0eHnroIW6RAeC5wXVuLWWWz4kFLBcjRHTe4lDgOP7viByxazq99TWixXi6jfs1gicAbK9EQ5UkRAqAPgB1lWpwJkJM3EcD4ljcYbUkDiyGkYhMqf+L5Gg0l41fy0F6m0LbmqYgnzcwNDQE27Yxd+5cxGIR9Pb24/Lly/jwww+xf/9+HDt2DDdu3OD3IJVKIZvNcg1CcJKiiK0gaaNjKbYyLXavqJ3g+YjWQrEdXprAkbw6TRIkMJJl2RYAF6ri5SyCi1iMRcctWrQITz75JJ555hncf//9PPRaTPhHkX7iOc32BHBEOMjFGUyOGY1oSKfz6O3txYkTJ/DBBx9g69ataG9vh6wAul5IiyBaFQGZf5ZlGY4NOF6WZQmBWna+WoYOJ0dkNWG3ivpeMBo1mGHaP6ZoasQj3oX9a6oG09K9Y7a5pSoWi3lC5iTWrFmDdevW4Xvf+x6WLl2KhQsXwnEcDA4OwrIsJBIJnj5jIhhtIST+ptiigrYdzYJebWIx0thA1mHqO2RZDi1DY8IQgHkYvRDomFBJQgQAHwF4tpINzhSUYv5ifa+gVWWseppaQFA7Exy8gOJRFmMZEIfvy1/6gAbEaDTCM+ZqmoLBwTQ2bdqEjRs34oMPPuCuq0gkgkQigUwmI7jA/Kt0PwHzE6IgxN+LvxEHbnHQFn8XtJwBJAZnrjXXoVD7QA4cOJDABKaRSAS5fManc2poaMD69evxwx/+EE8++SSamhoxODgE0zQ9UXgUjkP6IRnTpJtNKnI55mKNx2OwLBtDQ0NeluU69PYMYOvWrdi4caNnEWrnRMeyDaRSKaiqzHUuhfstB7LRy4za0nPiJURUFS9BqyuKg0UrKP8WALiFqEDCbN4+AMhSIaCA9V8Zjut4leEZiZYlWdhfoY/PmTOHpwqg4Ievfe1reOqpp/C9730P9957L1RV9UTbjGQ3NDRU5B4EyY+ouwlamwG/tm+6YCT3YVDrRyRpuswDVcDHAJ6rVGOVJkT/M4D/q5INhpjdEAcPMQEeAGSzeW62L+htgLa2DuzduxdbtmzBrl270Nrayi05mqZxAbthGFwUXfWkbhye5ooneJN839MkWSBUXr6bCBOaWpbFQ5NlWca6devw/PPP4/HHH8eKFSswb95c6DqbsCMRzXNTuFAUPwkUM4IDM8N8X2pRwkhDwXpLrgtyv7a1teHjjz7Bxx9/jAMHDsAwDShyQVxvWkwn5DiWj/iI+y38XfwaygJJLliKxtInvXYLJiSPPQX25wYjw8Rx3wGF0QcXYaIVt7GxEY8//ji+//3v49FHH0VDQwO3OI6EiSx6QoQYI/4awP9dqcYqTYh+BxUosBZi9mE8gyaJXElHZFkWNE3DwMAAWlpa8MknbPJqbm7miRJJTFpwZfiF35TDpfoYjRBJgjWANCayl623EEEUj8cxODgIx3GwcOFC3HHHHfjOd76DZ555BsuXL0c8HvdpL8gFKUbCBS1k03lCExNzBi2VkiQhnzcQi0WQzxteYU1mAdm9ezdefvllnDxxGh0dHdyCQtnDyaqjaQUrUDFCJIEsGMFrSFqfQsFSZjUaa63CsRIi+l0xUuQArgtJGh4JxffiBX9EIhHcfvvt+O53v4vnn38eK1as4CVqRMsGbUPnX6zNECEqgLUADlWqsUoTIgC4BODWSjcaYmZjNK2RGL1lWYWoLxp0r1+/jt/+9rfYsmULDh06xEsdUBQOWZhocgfgc2GJeUyqC5EQiROb7JuwCpondvzRmMbzPlEdNXLfUMTbvHnz8OSTT+KnP/0pvvGNbyCZTMB1C9FoxTAd3bfFECTCxT5T1nFFUXDsWEEndOLECR6xGIlEuPiYQsApD47f3eNdVFeGCxdSCW0P+9sR3GPuOAmRB0nxCJHsEaIAEfL9NkiKHG9bx0eI/Fo5lz9zALB48WI8+OCDeO655/D0009jyZJFRV1awfmldB8q10I7vYXVISaEywBuq2SDyt/93d9Vsj0AuA/A1yrdaIiZjWLRZhQCTWUvmE6A5VfRNIVH/Fy6dAlvvfUWfvOb32D79u3o7+/3RfO4rsutQwB8NcAKLo5aEa1LnjVB4n8Xvpc9Q4B4vJ4Y2BPFkkBT13Web6murg6u66K/vx8XL15ES0sLBgcH0dTUhIaGBhiGyS1NdM3o2os5iqYzISJSR5oXOifS8FGBVsMwcPDgQfzyl/8fNmzYgJaWFk+0r/EJXyybUogkDGo6xfsmYfj9FH9HxMP1/hbfx9gvJcEiJI20P/qN2K4beBf+wwkNO0YK0R8cHERzczPa2tqQzWaxYMF8qKqKRILl5iVXNKUZGZ1Ul/v8Td++GWLCeA/AB5VscDIIUQrAC5VuNMTMhxieDhQsQ5SjhWWZNr3oiwhu3OjC1q1b8dprr+G99/4DX311BrZtQZYlmKbhuSBc/k4v13X4KxjeWz0ULELDJ1DPrQKJaUEkcaJkE6fj2J6Gxfadr+s6yOdzsCwTmqbCti20tl7AiRPHMTQ0iPnzm7BkyWIA4MSAJntywZFwdzoTIupbVHeMao8B4DW8rly5wvvTpk0fo7+/zyOgjq8/MfJTEPMzoh20cI72LloAXa8PBolJmYTIpUzYkvAit5qfEDGy4m+SLF2kM6MoOdO0IEkybNtBT3cvWlsvoK3tGlzXxYIFC6BpGvL5PO87/usSOGz+fUiIQowb/w+Ak5VscDIIUReYuDpEiAlBXEnSRGbbNtLpNDQtgrq6JPr6+vHee+/hlVdewW9/+1v09HR7Cdwi3MoRjUZ5ludgWHCxiLfqophFwV80U6III/6NeA7sb38qAo1bfSikmrJY9/f3o6WlBfl8HnV1dWhsbEQ8HucZlElLRNqi6Z4xV9Sz5PN55PN5RCIRXuT06NGjePnll/Hqq69yFxngz+LtL8QcvBbBCd0jAggSyWIESXSpBS03EsZEFoKEyC2lWfLaCxIigGuYip0HAM/1qnA3IxHofF7H6dOn0d7eBkVRcMstt6CpqYlbZkl0XcpCVLCOlYPp2zdDTBj/E4B0JRucDEKUBiu0dlulGw4xcyGa1MVwYSJEFNETiUTR09OLLVu24NVXX8WXX37p6WQUviIVSZSYrwgYro2oHRQjRKKliFb6FInk64EPXwAAIABJREFUeJNo4W/A9bkoRIubGLZMq33TNNHZ2YmTJ9kiK5lM8mLD5F6kkGaxdtR0hOM43CJE51RXV4dsNouTJ0/il7/8f/HJJ5vQ0nLBCzenhIgsAtFx/KkTFEWGLEtwXcd7pz5G94nBT4hEi434O9e750GLUGlX1jAMsxANF+X72gu6zAQ3bCEPVuE8IloMpmmxmn2QoGksxQX7G7BtC21t19DZ2YloNIr58+cjkUggEon4okBDQhSiQtgB4J8r3ejE0ouOjq1gpChEiDEhGAZNrjIiNJIkoa6uDp2dXdiwYQNef/11HD58EKzWl8oL5pImRMwSTYnOghDN+dUtjRIU3IqDuwMS3hLcIjnIxGRuZA0hVxcRQ/pM1jPDMHD16lV0dXXh4sWLME0TjY2NmDNnjlAiQeFWt+kMsnhR/Ti6VsePH8frr7+OTz7ZjM7OTs+iyGqAkcVEllWfaJraE0tljAxyR3kuT+878f+QHIBbaMZ7rUfqP943kmjVkgAonriakW7XtXzbS1AEvRpgmAYnQqSjcuFCUzWkUinYjolMZgj79+9HX18fOjs78cMf/hB33nmnzwXLjqXY9fL38RAhRsHWyWh0MixEAJAD8J8no+EQMws8n44kI5/ToagqAFaLLBaL8ggpmpQ/+2wbfvWrf8Hhw4cAOGx+kSTkc3nQqtv1Fryul9mX3ku9Rvv/5L8ASApb5UuS8C9xJV/QQLHvIbyTuyMY5eQ/N/EzVS9nofcS+vr6cO5cMwAJd955F5qaGiHLKjKZLGKxqEBWWdkUZhVhtaZkuQZW544Ly7QgC+VO/FFStleQl2V+jkQ0tLZewvsffIjfvP4GbtzoQjQagaJongVNRSTC/jZNC8Hrx1I+YNj3BRS0Oy5cuFIhfsz/7nrWvcL9838W2x6p/6jggjhfZJlb5EX/IoLmCn1PASALv1RAli1JZs+lA6+OBpiYP5fPQ8/noKoaZFnBjRtduHTpMtrbO2CaFu655x5ePkTXDUQimidwt6CqYrmKMp+hELMJfwOgvdKNThYhagfwAwBNk9F4iJkBnyvLlaAoqje5w4uWcuA4LK9OX18fNmzYgH/7t3/DkSNHYBgGNI393rZsTPuwW2mETLtEjHwEKYigu6W4q83/e3pntbGGhobQ2toKwzCwbBmrhZbP6567iPIgsbZp7pW9SbLq3jSX8jH5S69QHyOLoesC6XQa+/cfwK9+9St8+OHH6Oy8AdcTSjM3I2uSsp5PDAFLUEmxNTt4CQ6z2JS8vyNBFojQRG6E5O1XbINeQv9xpQJxCRynJIHnwFIUBT09PTh58iT6+vqwcOEizJvXgFQqwQk1K5YreYQ6zJQeYlw4C+BvJ6PhySJEALACwIOT1XiImQPXdWGZNiSJ5WzRdR25XM7TDano6urGjh078dJLL2PHjp0wTZZE0XHYyra4yHWaQSqX0NE1CE5kfAfwEyOyJrG/IpEoLMtCX18furq6YNs2li1bjkWLFsBxSFTNJj7HcXmkEelsqm0lcj2Nj2lZvESLGB5PxW0vXbqMTZs2YdPHn2Lrlm24dOkin5DFGmZAoU6dWNh3dAjXnS7YiKJqgETNdI+kYZFhY7EQlWkp4QQn2Ab97Xd3uQH3VizKaqWJbkTbttHb24u+vj7Mnz8fixcvQSwW80qiqNA0JSRDISaC1wFsnoyGJ5MQAcCLk9l4iOmLYM0i23KRy+WgG3k+kc2Zk0JPTy82btyIl19+GQcPHvSqcidgWTbYIK1AkuTCzD4tIaO8WcE/aRWzlkkQxdr+6CUilK7rIpFIoLe3F1999RUkScLNN9+CefPm8azWBasQlUqRBMtR9UC7d1x/6Q2KclJVFTdu3MArr7yKv//7v8eBL79EJp2B6tWCs+1C2Q1RywYML8w7piMZZhEKHmmQEJXTfyUAZdbyGiMhGv57AK4L2y4kNiXyGY1GkclkcPXqVfT396O+vh433XQTkskkAPAaevm84X0OmVGIMeG/AmiZjIYnS1QNMAZ3HcCiSdxHiBkEy7KgGwbq6uqQTMbQ0z2ATR9/itd+/RscPnyYJWhUIjB0CxIUyIoC2wHgK40wMbjTfCyWfJPi8JPhyfFKTL1EBiihY3t7O9544w0MDg7ir/7qr7B48WLehqYp0DSVF5xlLs5JO7UxQRTsKooC0zRhmqanA2LXZc+ePdi9ezdyuRyiEebayRs6Muk0FFkBXJldOZeuFdvOsTFq/3LHTWj81eldzxVZwDgvaJXXAyJ5pFxWFNVnGAa2b98OWZaRTCbx2GOPeWk0dKRSCR6WH5b4CDEGXMckWYeAyRdefDLJ7YeYpggmbHNdF8lkEolEAolEDLpuYfPmzXjppZdw/PhxPpiqqgrbYRFQEpTamI1rAqUsEjJ/8WsO2XPLFPIcUd4iikxLJpNobW3F22+/jU8++QTpdNoLNZdh267nCSIBe21Y50Sro+M4SCQSqK+vhyRJaG5uxsaNG7Fv3z6YpgnLspDNZZmAWlFgC5mmg+fjFM3PMwIm0h+LldiYDhCIkJiRmkrmUFBEJpPB9u3b8fnnn6O/vx/RKCNBjgMoSvj8hhgzJpVTTLbLTAXw/cncQYjpD0mS4NhMpxKJRtDe3oGPPvoIr732Gr74Yj9M0/ImOc+14/grvquaBtcJamjG+So7yqXM1zAx63iOXdSglBLFioTJ5Z/IjcaydjNSRCHptm1jaGgIvb29WLlyJRYsWIBYLALXBdcMkQut2uARZd5kDACJRAL5fB6HDx/GSy+9gq1bt6GnpweRSASxaJxN3IrKiwT7ND/lvIL6HmAEwfN4oslGepV7ASfqMiMS6vDUBmL+K9JyybKMbDYLVVUxf/58LFlyE+bMSQEALMse1odCK1GIEvg/AXw1WY1PNiFqBfBfAMQncychpifEQU+RFeTzOgAJX3zxBX7xi19gz549AAr5SyzbgiKzlajt2OyzLMO2LEjlTgpVH3/LOQDREVZqQqPPbuCdba1pKhfFUiK9aDQKx3HQ29uLVCqF2267DU1N8z3hLCV6JDJSxuFXALYnpGbctpCE8quvvsJrr72Gd955F319fQDgZeJWeLJGF4AkZDIPJhCszORc9Q42MsokRIpSIEJiRm9JkhCLxZBIJCBJEi5evIjm5makUiksX3474vEo0wDCnYRrHmKGoRfAnwNFErFVCJNNiGwA9wC4fzJ3EqL2ESzaSoMlZU22LZY9+NChQ/jggw/w/vvve1tKfNUpoVA7SoLiyzU03DIy3V7lItjOKBYJnsOIkSOxOClFW1kWE8o6joNr166ht7cXTU1NuOmmm7jIWNOUKfFaBvMK8bPxMpIrXuZtLRLhfaSzsxP/+q//infffRc9Pb1ewVGAorgcx2HaH1/IuiTk5xH+HoOVrijGHApfbv8t0205EULkqztYcCtS36B7RfXjKMlqb28vrly5gqVLl2LVqpV8eyoZQ/fZNE2fGy7ErMc7AN6dzB1MheP6oynYR4gaB01oYo4Y27b5QKmqbMDbvXs3du3axTNMx+PxcDCcApBoWCxtQgJlWZbR1taGDz/8EPv27UNfXx9c10UkosIwLFBG4+CrkhCLy4olXeidsprn83meXfv06dPYu3cv2tra0NjYiPr6ekS0CI8aIzdZsM5diMqDSqXE43EYhoFz585h69at6OsbgGkyAXY2m+VEKJ/Pc/1R+PyH8DDpXGKyLUQAcAHMzJWY7B2FqF3QoGYYBliGZJVPbKqqoqP9Ot588w38t//+D2htvYBUsg55PQ/TND0CNZoraLqj0haCUtdEsBAFvxtWsb1AkKgoai6Xw7333ov58+fDMEzE4zFOiHx7D4jmy0WQDAXb1jRWM2twaAiSJOHEiRP4h3/4Bxw4cACNjY0YHBxCPp+HaVmeSJqOT4EsKRUgcBO0/AnlM8pDFSxEo+xfvD+0+DEMlkNM13WcO3cOixYtwtKlSzF3bj1yuRwinoXPtm3+udJ9KcS0RDcm2V0GTI2FSAfw4RTsJ0QNQ6xlRKG5pmlCVVnmh9bWVmzYsAE3btxAJBLhg990r7I+fSDUShOsPCSuBoBYLIYvv/wS7777Lpqbm73JikUKiZiM+yVanYJWLEmSMDQ4CEgSGhoa0NnZib179+L48ePI5XLo7+9HPp/nLkDJc8OyPunw86saJCrdMbMQJJlUoBlghYSHhobw1ltv4dixYzBNE7FYDLlcDq7rIhaL8ZqGYiRqrUQ0hphyfAjGJSYVU2Urfn/0n4SYyaBiodFoFK7rIp1Ow3FYEr3Ozk4cPnwQp0+fRDSqQZaBofQA4JUzcFwLw0tTzMxJpCxIE7ke7JqKroli4lbHcZBOp2EYBjZu3IjNmzd77g2baz0mR4xcALUfdJ9ZloW6ujo4nhXi3XffxRtvvIF0Og1VjcBxUAgBl2ROzikhZWWOUw68RjsZp8j9csp41T5Eok0JMw8ePIiPP/4Y586dQzKZ5BpDCuOnBVNIhmY9poRDTBUh+gjA5SnaV4gaBLk5RLFuMplELpfDvn37sHnzZvT398M0Tei6zivWiybzEKVQ/oQYnHCC5CYSiSASiSAej6OjowOffPIJtm3bBk1TfFFFkzVxFctbRQkALctCNstyCp09exZ79+7FmTNnkMlkeIJAyn7uuA4c1xlmbQoxOaD+EI1Gufs7kUhw13k+n8f27duxc+dODA0NIR6PQ1VVntRRlmXuZhPbDDGrcBlTpEWeSjVhaCWaxSDhqmEYcBwHsVgMjuPg3Llz+PDDD7Fn7y7ICnhVe8ex4DhWYZL16VyEAbHoSjvEcMvB2C0JYg4ZelmWhWiU1TuTZRlfffUV/vmf/xnXrrVDliVOTChCbTJX9OJxEaGJRCKQZRn/8R//gS+//BKDg4OQJAmpVIrXIpMkCbIkQ5FVyLIKydMOiRF2lUMJS9Es7a9EaqjGGQCuE2ppacHmzZs5KdI0jZddyefzvv4UkqFZiSnjDlNJiDZO4b5C1CjIHC7LMm7cuIFjx45hz549MA0bpsmihGgCo5D8UTFds/xWEmVOsiNZSiiaixLrRSIRmKaJvXv3Ytu2bUinM5wMESESk/NVAsVIGkXBUXmO1tZWbNq0CV1dXVyrkk6nC8fhynBdf5QaO++w/0wcnuVutNImrstrzOm67tWPM+E4FlRVxhdffIFNmzbh8uXLXMCv6zqy2bxX2kMe1l6IWYMp4w5TORLsAnBkCvcXYgohrt7IncELt9o2FEWBrptegjYFmUwOhw4dwRtvbMD169dhWCbgTcpiIU3LMkDWDRc2XLg8TYwLeQaRoSrpR7x7xAiCzdsUP0uSC1WV4TgWstk0ZBleQj0Xr7/+72hvv4ZEIuGrYUXuTrEflINCl5DgukxbYhiWV0ZEwbnmFvyPf3sJp06dgetK/EXZtwE50He8l/e78jHGe+PKxV/VRsnjGOE8oLCXJHsWXEFDJSm+lwQFtl3oB4aR93JXOVAUCf39/di5czeOHj2Ovr4B1NXVA5ChyBpyOR2W6Xj3Uw6Qd+qrIWYojoBxhynBVD+J/zHF+wsxRShlXaBJ0XHg5Ylh2oFr165hw4YN2L17N7LZ/Ph3yAfvMYpYQ4yAsbvSqARDf38/dF3H0aNHsWnTJgwMDEBVVV7lnPJIkTi2XMiyxEkRy4oMr16Wikwmgw0bNuD111+Hrutco5ZIsEwfQQ1KiMnA6Pc4mE2e6uBRduvz589j8+bN6OrqgqZGYVus7IfreC5Z04Fl2bBt17doCjVgMxpTyhlCQhSiYhCFrxQJRO+2bSMWi/EConv27MG+ffug6zqfuELULsjKI6ZEiMVi6Onpwa5du3Dw4EHk84zYWpbFtR+VgiTBszaxz5Zl8Srply9fxrVr19DZ2YlYLAaAEXHDMELdyZRDAqRiObW8/wZcs7RgYkWDbRw+fBifffYZMpkM6uqSXGRNUYIiwQ7v66zAjCZE5xBmrp6RCE484meKGJNlttLv7u7GRx99hM7OTiQSCb6iD1G7EEutkEuUJqZDhw7h448/Rk9PD7cgTYYQlgiW61IaB2BgYBBffvklTp8+7TtW5lIrCHlDTCLG5PKT+G8ZKWKaI9eVYNsudJ2F4Xd0dHhFnb/glUGYJVCGqsIbQ8J7OkvwERhnmDJUw9fwdhX2GWKSIU56lHSRynIw9wnTgeRyeRw4cABnz57lqfqrnhgvxKgga594r3RdRyqVQltbG/bt2+dLqplIJLgFp1KTF4ntLatwDBcuXMCuXbtw9OhRbpkiV524TYgpgOTpikbQRxWrRUdk27ZtZDIZHDt2DBs3bkQmk/XSPSiwbcC22RjiOKF1aJZgyrlCNQjROwDaqrDfEJMIMVkehWmLodiWxUhRS0sLXn/9dQwNDQGAL/laiNqFWDtMURR+z+rr6yFJEtra2nDixAkMDg4iFotxQlKpict1waOUWO07FZlMDkeOHMHhw4e5VYjcK7qucxIXYgowEul1SecnMauPK3tRaQX9H90nEuN/8sknuHTpEiIRGbYdEqBZiDYwrjClqMZooSO0Es1o0EREL1r9dXR04o033sCnn36KgYEBAEAulwtFr9MARIZI82FZFhzHwdDQEGRZRjqdxqeffopTp055EYW64OKqRJRZwVXH6t8p6OrqwpEjR3Dt2jVfRBvtL2jRCjGJ4NagYq/iKOiJCveJ+ll7Rzt+/etfo6Oji5NbSfK7zEIt0YzG25iCUh1BVGv59FaV9htikhDUipDbgl6RiIaTJ0/ijTfeQC6Xg6ZpiEajAFjG6hC1DSK2ZPmh73K5HJLJJPL5PHbv3o3Tp0/z0iyUxLESLjORjDEXC9DX14dLly4hk8lA0zRe/4pEuuPKZRViEiFz4gPIXBtE7jRJkhCPx7l1SFVVzKmbg5deegknTpxAMhn17j+5y7zNQyI0k1EVjlCtkeIAgK1V2neISYAkSVwcTQUZLcvi1p/jx0/g3//933Hjxg0oigLTNPnvKXnemAS4oZhyykGrdnoP1hFjEUF16O3txTvvvIOTJ08imUxyDVGwrfGKrSmpn6gLunGjGxs2bMC+ffugaRp3z8qyPCzxYiWj3UKUwsjWoGCuJ8o+77osnYKu67zYM40b+Xwe//RP/4RNm37L+x4r+cH6HpX3CAXWMw5bwTjClKOaS6cNVdx3iArDdV0+AVIeGl3Xoaoq0uk0du/ejQsXLvCBj1wuYa2y6YVglmjKOk6asK6uLly+fJkXfKVtxMzVxQrBjgaaABVFQTQaRVtbG86fP4/BwUFfuZBKZ8gOUUmI043/3gfzCjmOA93Qcf78eXz++edoa2uDpjGrs2FYPEN5GKE6I1E1blBNQvQmgGtV3H+ICoIGJl3XeXr+aDQK27Z5Wv6zZ88C8JdOCCev6QlRJ+a6LIGepmloa2vDkSNHkMlkAAwvuVHO/og85/N5nDhxAhcuXABQ6E8hGZqO8GfC5jXnZBmKrODq1avYsWMHjh49inzehCzLyGQyXHNkmmZ4z2cWroFxg6qgmoQoB+CNKu4/RAUhRomYpgnbthGPx9Hb24s9e/bgxIkT6Ovrg6qqoaZjmkLUA4kkxLZtRKNRnqjxxIkTSKfTgt5n/BahIBRF4m0NDAzg5MmT6Ojo8PUnkXSFVsdahOi69JMYuociqY3H47AdG1euXMHhw4c9d7vEF1oAoKpqeK9nFt4A4wZVQbVnptervP8QFYKiKDwcmrLKGoaBU6dO4fTp0+jv7wfgz3QcEqPpheBKnCYvsUSH4zjo6OjAwMCAL3kjkSnRjTbelT0RrO7ubrS0tKC7u5tbJqkvVYJ8hZgIRquvN7KOi+4ZieJJD6bICtLpNI4ePYqjR48inc4ikYhxPZGqqqFGbGahqpyg2jPSCQDvVvkYQlQItGqjxHzXr1/Hvn37cOzYMS6MJasC4HenhKh9FLtPLIswy/tDmrGhoSG0trZyHZEY+j5R15njsH6Vy+Vw9OhRnD9/nu/fNM1h0Wxh36pVFCcvYh8hYmSaLHu1bds4efIktmzZ4iXgdHi/ot+GmBF4F4wTVA3VJkQA8JtqH0CIyiASifDID9u2sX//fuzevRtXr17lCRipvlSI6QnRBRbM92PbNjRNQ39/P7744gtf9GAxjc94RdWqqiKXy+HQoUO4fPkyr3NFViqxtAgd63j3E6JSGM1ihJLf0700TROxWAyqqqKzsxN79uzBzp07eUZ0iigUU0GEmNaoOheoBUL0AYAvq30QIcoDESEKs+/s7MSmTZtw+PBhX6FXqoIOYIREbiO9gLFU1g4xVlB+GGCk664omu9vFkYtw7ZZ6LToNhsYGMDRo0cxNDTkK8sQjDQbD8RoxJ6eHmSzWW5FKNZWSLqnAwr9SQIVbZXhOozYWrbFIxkt20JrayuOHTuG9vZ27lrLZDJ87AkxrfElGBeoKmqlZsJrANZV+yBClEYh3FqGJLHkaLpu8IkqEonAdYFIJIaBgSFs374db7/9Nq8tJcu2N3DJcCFDUVXYtgO4gCTLcMdUIJIORvxtqB8AMEKBzRLXR/y95IBNTKVJhO0AoIKcAOekjgvk8gYkSJBlFdks00N2dHTi4MHDWLhwMWRZhq7nkEqlEIlEfNqjYYclhPXT31QLT1U1mKYOyzKgqjJs24TrUrSR7pEgvwWKtQf4yXRIqKcaQspW9iY5EO+DCy/hoiSxHuu6gCSjp6+PbSUpyGQz3Oq8fPltUFUViiJztxrbrJASQvw7RM3jtWofAFAbFiKAXYyr1T6IECOjMEmxUgqSJMGxAUO3kM1mkc3muKj27bff9mUqpnw1bHsXjkNDZKAQ5FheISoLN0gWxvtibeTzee4avXjxIo4fP47u7m4eng8Ud2MFrTnFJjBGqnR0dHTg0qVLPLpoYnXwQutR1VH0mZaG/9+D4zqon1OPG53d2LhxIz799FPEYjEkk0muISMrpZilPCRD0wJXERIiH4YA/LraBxGiNArRO4W/2QqNrcRs20YsFoNt29i7dy+2bdvmE7qKhAik82BLwiqcTYiKwbuPlJSTXByGYUCWZTQ1NSEeZyVaxpIvSJzAxM+5XA7ZbBYtLS04c+YMTNMs6S4rHFpIfGYKNJX1L9Mycfz4cbz11ltobm7mFkRCGGE4LfFrMA5QddQKIQLYRZnyYm4hxga/GLZQYFFRFGia5n2WcOrUKbz99tswDINHldH2wyaocOCa/pAkwCvTQroOijbL5/NeCLUzIhkqNoEFv4vFYojFYmhvb0c6nebtBDMVh5PhzISiKBgYHIAiK8jn89ixYwe2bdsGy7IQjUZ5X6DxZiQLZIiago4aMobUEiFqAfBKtQ8iRHFQjhlajLku+ACkKApisRiamy/g9ddfx86dO1FXV+cTwhqGMSy0tuCCC3VA0wlirh8ulvfuIVkBLcvCZ599hv3793NrkfgCSofgFyM1iqJgYGAAx48fhyRJPNcVlYwhkXeIaY6gW9z7m4I1NE2D4zgYGhrCnj17cPXqVR6oUaxuXZi9vObxCtjcXxOotRHk1WofQIjSEF1mjuPyUGvXdRGNati5cyc++ugj6Lru/caBpmmQZdm3egstQzMDIqlVFZVHmdH7qVOncOnSJSQSLHSaXKzFQuRHg67rOHPmDHbs2OEL9wfGpkEKHPn4TjRE1eG6LjQ1AoDd91gshi+//BJbt27l/YCylov50Oj3IWoWr1b7AETUWk85gLDoa81CJETBfDStrZewefNmXLlyBbFYDLqu+1ZrxbLJhiu36YlgfTLxZVkWbNvmlqBIhE1i1E+Khd4HiVGwX5AVqKenB21tbZxgk5jW7zYLVl2XIUlhnprpDspITZZmx3Fw9epVvP/++zh58iT6+/v5mESlg4DQhVrj2IAqVbUvhVojRADwcrUPIMRwkCUIAHebicU99+zZgy+++AK2bcMwDD4xGkYhNF8qsKnApBcOWtMNfiIEn3aDVulUxsU0bV6OIajzGEkEK/YRalOWZT45uq6LZDI5jqOWEfa16QnHcWA7NifYVPF+586d+MUvfoHOzk7kcjk+5lBuIqq1F6ImUXNzfS0Soq0APqr2QYTwQ1EUvhInV1kkwkKfW1pasHv3bgwMDAAA5s6d6zNTE5niE1y4aqs9jDf1QSBk2oXfakT3v7m5GZqmIJVKQRLE10ESJFqLxHZEi5Ku6zySkX6fyWR8vy/0s4KlyHVdlkMp7He1i1FSajiOAwkS8nqeu8zYQkvBzp27cezYMR9pJisRuWjFfhRapmsCH4HN9TWFWiREAPBStQ8ghB9UOsFxAE1jGhHDsDA0NIS9e/diz549fHLK5/M+F1now59dIFJimiYuXbqE7u7eUX9fCsUKwhLBpu9Dt8jMB88xJMmwLIePMfl8HleuXMGWLVvQ0dHBSXddXR0nRaJ7HxgegRYSpKqgJuf4Wp2pPgCwpdoHEYKBJiHy3QPgdaW2bduGV199FefPn0c8HkcikfDVKwsHnNkJKtfx1Vdf4caNGyO6x4L1zYpFsQEsF1EwT1HYv2YHbMf2Ra1KkoRUag6SySQMw8Bnn32Gzz//HKZp8mSdZBkqRMg6w/pLmLeoKtiCGijTUQy1SogA4N+qfQCzHeLgQWHOqipD15l//saNG3jvvfdw7tw5KIqC+vp6qKrK3SJAYdIKMTsQjOy5fPkyz2BNSRuDFsORJiQiRL29vbh27ZrP8hhmI559ECMMaaEmSRK6urrwzjvvoLm5GdFoFLqu+wT9pRJ+hqgKanZur2VC9A6Az6p9ELMVQRKTzWa5hkiSJORyORw7dgyHDh2CruuQZRm5XI67zcSJMRyAZi8GBwd5viCxhItItsdiNbp27RpOnjzJUzqI20zcJRuMSAtRO/DfG0XWeL4rCawf5XI55HI5xGIxuK6Lo0eP4oMPPuB9DgDPpE/jUDF3Wbhgm1J8Bja31yQgalFyAAAgAElEQVRqfTT412ofwGxEMATadV0kEgmoqgpdNxGJqOjp6cGxY8d4ZmLLYnoiii6igSjYXoiZCSkQvSUW26SM5cX0QMVQ7PtsNovz589zCxGRqlK/Hx3Boa/Wh8LZjUJ/kbieCGDEmOqZ6bqO9957D4cPH4aiKFxgTekg6DX+vFUhKoiantNrfRR4C8C2ah/EbIU4cHR3d/Os1M3NF/DLX/4S//Iv/4KOjg5umqaMsSEZmp0QSQ6900o9KGgdbRIKEqZkMonOzk5uDQpLM8wuiP2B8hGRJiiTyfC0DufOncPmzZtx+fJlTsppwUYayLC/VA3bwOb0mkWtEyIA+FW1D2A2odRg0dDQwIXV58+fx5EjR9Df38+jOMSaZTQAhSuv2QnxvlPOoGCUD2mDgn2kWLJHAEgkEhgaGuIh9a4rQZIUL+miDAnKiC/vyLydyABIixR8D1HLUGQZLlxf8s9cLgdVVZHJZOA4wP79+3Hq1BkAzFKZz+d9WdJFF2tIjqYUNT+X///svXmcFOd57/utqq7eezaGYYBhhp1hEwKBMAYhhGStRrYsbIQQlhed+JzEjnOvE9977r05cZKTe+KTfBInJyc++dwkPlbiOIl8ZHmRvBvJQcg2ChJawCCI2cQiGJi196q6f7z1vl1V0z0zwAxND/3jU5+me7qr31r6fX7v8/ye56kFQvQ14DvVHsSNAK9GSNaSSafTrihWxzRN+vr6+NGPfsTPfvYzsdrCIl/IqtYMmuagaSUvQckYejQh8r+O1AnUwm14o0OvvDnCSMmWHV4vYaGQwyvxcRwLx7EQBERsjmNh20Ucx/LcP/Lv4j7KZvMkkw04joauhcR3OhoaIXAM0EJqczBKm6a5FZK0MrVubN/31HE9IXhdbN/CC2TRRUGQbRtCoTD5fJHXX3+T53f9hLNn38EwDBxHwzBCWJbjq2INDNtnHROG7yBs+XWNWrFE/6PaA5jskOEw8LunpXErFIoMDWV48803OXjwIAMDAwBEIhElahxd0+GZeEYowlZH7UFD811/aWRke41KmiGvsDroQfI+j0ajtLW1AbKRrIZWgaBJr5Eka2AMv98027/VUdNwbA3bEj31BgfTfP/73+db33yWdDpLMpkkny/4eivKhVq5rMc6JgQ1YcNr5U74JvB0tQcxmeGt8SGFsIBqvxAKhTh+/DjPP/88R44c8WULFQqFesbGDQ4ZxvDeB/L+8BqcSnVfKmmCpLeysbGRhQsXomul6tPib+XbMpT2V8EDWabadh21C+EJKs1bv/jFL/jmN7/JG2+8oSpXS3JeLwVyzfE0woZf96ilmeCL1R7AZIY0WlIYLf8v/9bf3883v/lNvvrVr3LkyBFV6MzbbHE0L0AdkxfBLDMQpCQUCpHP50ckPMHMs3JZjg0NDSxZskSEZYd9V71x8I2OYrGIg0Mun0PXdPKFPC+++CJPP/00Q0NDmKapCjSCv1RDPWQ24agZ211LhOiHwJerPYjJimBYQ4qj5cRx5swZdu/ezfHjx4nFYiSTSZVdJt9fN0KTGTYjaW68mYUSlmXR0tJCNpv1td3wVjwPolLYNRwO0dXVpQiUIk84/ucV78NKGqg6Jgs0NHRNiKbNkEk6neall17i/PnzmKbpC+0He+fVMWH4MjWUKV5rM8JfAsVqD2IyI+gpCoVC9PX18ZWvfIUXXniBfD5PKBQim836OpfXcWOjnGHRdZ1ly5YRj8cVGQqmP3v1Rt7MM69+SN6TDQ0NfkEsDhr11gt1eOYtx6ZoFSkUCzg4/OQnP+H3f//3OX78OICqiQWlWll1DdGEoYiw2TWDWrsTfg78RbUHMRnhFVFLhMNhcrkc//qv/8qePXvIZrM0NDRgGIaqA2IYhqo1I1E3UDcCPN4izfYRY3n9I5EIa9eupb293Ud+guRJptJ7N8fRcJzSfSSyiEIULZkJCXi8Q1eOuqdossDBwdANwmaYhlQD09unA/Ctb32Lr3/965w9e9ZHtr26yTomBH+BsNk1g1qcCf47cLbag5jM8Gb+XLhwgX/5l3/h9ddfp1gsEolElMtZZmvIdH0v6hPNjQWHknjae3/MmzePpqYm9bpE0BNUTjcUDH8FvUbSOyTeU0+fv5Fh2RaGbqgkj/6Bfvr6+tA0jYsXL/Ltb39b9cILeoS8Xsc6xg1nEba6plCLhOgIdS/RhEFODlITcvToUV555RV6e3uVuzmYuirhNYjB7KI6rneMVVtjqVR1TXdUyrrM/gJ83qB0Oq3uG13XVZkGr2ZN1i8KkiJJmGSITdd1TNMAreRlUuE2NRaxeWsZBesa1VF7cCh5sL2i+nK9yTRNIxqJ+irnHzp0iJdffpm+vj71ftM0fZlpdYwr/gJhq2sKtWqx/hvwarUHMdng1XDICq+xWIyFCxfS2dmJ4zj09PSQTqeJRCI+giRT872tFaSxMk2zmodVx3iibLaYo0iKzCwDkfkjm7FKyOxEsavKKfjB0IZh6LS1tbFy5UohzLYtZST9+xCEzaG+6p9MCBninpLXXVac1jRNzS+6rhONRkmlUpimSS6Xw7IsIpGI8lJmMhkKhYLab11UPSF4FWGjaw6h0d9yXaIfccL/ptoDmSzwZvdIYxSJRFiwYAEPPfQQxaLN/v37OXDgAOfOnVPvNwxDaYqgtGKXzRWlmLaOGkfF4oV+Tw2UvIzt7e00NTWpzDLhNXR3V4EMyb9568VYloVpmnR2drBhwwZ+/vOSLMHBRtcMlxzJzT9mB1TXDur2ryYhvdGOgxsqLd1ntm2LFi2aRi6XI5PNANDc1Mz8BXOZP38+GzduZN26dUydOtW3QKsTognBf0PY6JpDrRIigL8FPgA8UO2BTAYE05mlu7mpqYkVK1awZMkydu3axVNPPcULL7zAuXPnfCt5Ocnk85YvZCbDHXVN0eSFNFSl/zuYpsmqVatYvHgxANlsVoW8vJ3qK90X3mxHKcSeOnUqHR0d4m9OKTxr2Ra6YbhFGjWE1dTAcUmaVquO8DokbMdG13RCRkgRbBlqtSyLkBFSnkkDg5kzZ/Lud7+bB9/3XjZu3EgsFiOVSqHr+Ao01jHueBZhm2sStUyIAP6cOiEaF3iFsIBPuyFCY7B+/XqWLFnCwYMH+cEPfsB3vvMd/u3f/k15k4S3KEY+n1dCa6/xq6OWIElEBc+QY/vCZ6GQMFQyMxGgs7OTmTNnKg9iOBxG00I+Y+StCTMSpNZD7ttxHNU41rItNGw0bBzXFaShqZAajrdwZPB4dPmWOq5jSI2a6J8orlYsFiMUCjEwMCCavGYzJBNJ7rzzTnbs2MG6detobEqp+UmUCSkqr7bcXx3jij+v9gCuBrVOiL6PqHPwq9UeyGSA1zh5Jw2xEhNhi8bGRtrb25k/fz7Lli3jmWeeYd++fZw/fx4QBfRM0/St7OuYpHA9MUIvZvlKNxSLRUKh0LCeeLLr+GgkqNQUuETS5co+Go2STmc9ZNtG02SITRo4r1DbBurC2VqG13utoWG4FdDT6TS2bRMJG6y9dS2bN29m8+bNrFy5ksbGRopW3ncvSa2jRD3xY1zxlwibXLOodUIE8GfAg0BHtQdSy/Bm/XizNeQ2MDBAIpEgEjEJh5MsWbKY9vZ2pk+fzksvvcTu3bs5cOAAly71EIlEVBYajN0LUEctoDzBlSFWSYSbmpqYNWsW4XCYYrFIOBwmHA6PiQx5Q7ayAScIcf7SpUuZOXMmR4/8EoCiVfTokfzd0QXc75IaKNW3LOgxqhvG6xkyBF+0LMyQiRHSVF20m2++mdW33Mqtt97KmjVr6OjoIBwW17Poyhfl/KZp+HSNY7kf6xgTTiFscU1jMhCiw8AXgD+u9kBqGbZtq7h8uZT6KVOayeeLpNNZtfpvaWnmvvvuY+PGjaxYsYIvfelL7Nq1y5dZJDPRSp4id7Wu2R7jVHdb1wr86fHS8yLISyKRUOL6GTNmcNNNNzFt2jQKhQLhcFj0IfN83h82K31HkJRLYxaPx1m9ejWdnZ28feqMLyxbIkVX4pGsk6HrH8LDWLSKFItFDEMsulatWsVnPvMZ1r/7NmKxmCcUJj4lM181DTczrdRjT0LOe3VcFb6AsMU1jckyE/wpsKvag6hlCMGrqVzIwcJ5tm2rcFhDQxJN0xgcHMIqOjQ3NdI2tZ1C3sLQTXQ9BOiEQsI7UK6/lOagdB/KFrr1bXzb8JGW2cp8vvKRXuYWQLkxjvh9tYbKPcvUatqxkBWqwcYICe+MZRXI5TI0NzeyePEiFi1aAAijJL2Govp0qRo16GiaMEbyXpP3ouxgLr87lysQi8XYsGED09qnki9k0XWpA9GxLAfDMBWB8ho5RbI0cDQNB92z1VHxvh7rNu4I/AY1jVw+R8g0cXDcSvkijDplyhSisTCRaIhsLk2hmMNBiO1DIem1FPdsuYKfdTJ01diFsME1j8lCiGwmyQW5HuHtNwVgWQ6xWATTNInFTE6ePMPzz7/AL395jFw+58sAgjKZROUm0ElFKiYnfIZEXVPL5wE0TZNUKsXatWtJpVIjFugcKVThbfPhOA4DA0MUCgVSqSSrVq1SdWWk10l4i6TxE/son90YfF5v3XH9Q2rF3IQPXWjRNDSOHj3KP/3TP7nJHajUe8MohVpDoeHXtx4mG1f8KZPEzT8ZQmYS36IusB53eCsCS+MmM8+koXv99df58Y9/zOnTpwFhFPOFq6w95FQyUqNoPip+7nJRKbtKrlgnxe/fg5GPx9diQ7VtARAp0Lr7mq7rJJNJbr31VpLJ5LBWCWPNKPP+X6bxy9fnz59PIpEAxOq+UCj4ss5kqE081rMcx4Rx+91MJLRh3r9z587xzDPPMH36dKZOnUprayvpdBrHEYVBhZC6pBOqE6Fxx18ibO+kQC38Ci4Hf0INlgu/XuEt1igzxwxDIxQyKBaFoXvnnYu8/PLLHD16lEIxT9gMuyEU/+fL7P1aHUYd4w7/tCGzdyQZaWxspLW1VREky7KGFWIcyTAF36dpGtGo0CBlMlkSiQSzZs0iEokAJcGtDMvJrU6EJhtK80mhUFCk9/Tp03z/+99n9+7dqrxDNpurKJiuk6JxwxGEzZ00mGyE6CiT7AJVG16jIsMRjiN0Hul0mueee45du3bR39+n3p/P592VvTWsR1Vg7wzTqjj6GFerZXQul/25kbZRMOZxTg44tr+jvS1vBFCp9Llcjng8zpIlS1QT4HLEZCwGSfN4nETVc0cRq4aGBtasWUNLSwv5fN4n1i6rV6sbwJqHV8voOA5Fq0g+n1ce64MHD/Lss89y8uRJHMchm826izehLRupMnodV4w/QdjcSYPJOKN/EXi62oOYTPBWns7lcqoFw+HDh/lf/+t/8fLLLwvvkW5g2QVXz1HqV1XH5IIyLpqoBxMOh1URz87OTjZt2kRTU5MKlcnwxpUYJfkZaQhN0yQajdLd3U1bW5sqBgmQz+dVixBvyYc6Jg+8ujCHUjmPs2fPsm/fPk6ePEkkIu4R8X6/lrE+H40bnkbY2kmFyUiIQKTg91Z7EJMBXjIkY/eGodHb28+uXbvYv38/Q0NDGIbh03l46xqN7YvG6HGZqCyXK93vZPcUqXPhb7iqHjHQtRCFgsgAW7p0KbfccgvNzc1XZIjK3S+CCJUygXRdp6Ojg1tuuYV4PK6IkkzDl58Z2TtZhx+Xm305SpbnVWep+T22QotWKuGhazqG4SfLZ86c4cUXX+TMmXPEYhHXky1E1XUiNK7oZZKWuZmsM/lLTNILdi0RDJcNDg6qieXYsWPs2rWL3t5etUL3G6BSptl1OxnJiXjSCaTHHyok5RofGTKzLMttiWCTSqXo6upi6tSpvua+l9sewRv6KmWaCZGsKPJoMnPmTDZu3MisWbPI5/NEo1FfmE2OuY5rhAn/DbnZio6DY1vYTtGnUYzH47zzzjs89dRTPP/886TTWWxb/L1YrP++xxl/jLCxkw6TlRCBuGg/qPYgagneNGfpmpbCRClWBHj77TM89dRT7Nu3T4UpstksuVwOjVKPIE0z0PUQmmaUNgzXo6IxPAV6JFig2aWaIZJoyeJ97ib3Kjddc9A1x1PzyLM57usjOBE03UHTJ7+Xoez5cc+N5ggNkeE218QRHcN0XcexbXLZLIZh0NnZycaNG4nH4/T19fl0H2Meh8cT5SU4tu0o0pPN5mhubmLjxo0sX76cSCRCOp1WehJvFpI3G7Lcd9QhMVZtXXm9ne421dXRCOkGhqare2ekTUcTnx3FI6tpuvIAah7RvGUVMAxN1a564403ePrpp3nttddIp9MAipiDv3SE4zg+r2IdY8IPmMTOhslMiHLAH7mPdYwCGRYr13TTtm0GBgaIRqPYts33vvc9vvGNb9Db20soFKJoFX2FHAUp0hWxUgbxakJLQSPmGktNL3mixh4ecShluXn/X0claIjQRNEq+hptJhIJHMehtbWVtWvXMn/+fGKxGNFoVJFpb1XgK/5+TTQblgSpWLRoaGigu7ubZDKptEQlEbalUv5lmwaJkbMf67gSaJomyDKlNi66rvt0Ple7f0Ga/K/JfVuWRSgkCsf+7Gc/49VXX3U1jwVVmiF4H3jbwtQxJkx6mzqZCREINvtfqz2IWoS3oWY6nSaZTOI4DocOHeLZZ5/lzTffpFAokM/nkX4ZTZOeH7WX0ubzCmmMqkeQ8KwcVWsGxxYbDo5j4/g8EP7Vqwq/YHs2+c9SW4kYOWrfYv/OsHEEzlT5cdcSNDtwfoZvoZBBKGSga7rP42KaJiBadWzYsIFZs2YBlDrRW1dZj0oO0b2tpMfHsiwaGxtZu3Yt8+bNU14AWY9IkjCZmebbCXUyFETQM3e5m2Vb2LaF7YjN8fyGgpuD9/cl/z8yxG808JrnGmazWVUf7eTJk7z00kv09PSo+zAcDpfNRJQapDrGhP/KJI+61PhMPib8EfDjag/ieodcgXs7Q0uXcj6fJxaLMTg4yJ49e3jttdcAYfQKxYLqal6qWKy5jnD5GCRKVwY1iYmGRKWx65pym5dbjTrD0ugrpNY7jkolxzPZ3jjGs7JhkPcGiIaqIMjJ4OCgarC5bNkyIpEI+Xze18NuPM6fpgnypbk9qQzDIBTSWbp0KRs2bKClpQXLspS4Wr7Htm1B2urhsYmDJtrvOI7j/uZLJMPQDWzHzfhz/8n/S4zl/nA8v0tZAiKoM8vlcqqX3iuvvMKuXbtU6yDLslQBT93jVR7r99fBjxG2dFLjRiBEAwhmm632QGoNcrWdTCbJ5XKcOHGCn/3sZ7z99tuAELnqbmxfTEpBz4+mtENj7xlW3uPiFWxLYyc0JsJQilo4Xl2Id1UqMYIOQvbn8p+AEc7OJPAM+TCyTsR2ilh2QRg/zSEcDivysWzZMu6//35mz56t7gVAhcvGI2TiOGAYmrokpmlg29Da2srmzZtZvny5Ij+WZakaNZLo1zEyvN7Sy95czZamaYTDYV8NKulBdMp4gcq9Nmp2Z4V7SS7KZOjsyJEjfO1rX2P37t2Ypkk6nSaXywVaEJXGXseIyCJs6EC1BzLRmEwz+kj4HvD5ag/ieoc3Q0eurES/shg9PT386Ec/Yvfu3aqbvTRALk0pt8dxW3159UzB1WGhkBuD0bUDj3VcDqSgHkrXQhZFXLNmDevXryeRSJDJZBQBGc+Vt9yVt2+aFPrffPPNrF692hVcZ4nH4wBKc1QnRBMPy7KUJ0hCiuK1cfAOy/3J+ldBYby3l16xWCSTybB3716efPJJLly4QDweV0RNea8qVLKuYxg+j7Chkx43CiECcVG/W+1BXK8IiqgBV7xaZGBggBdffJFvfOMbHDlyRBXHA1ejQUlMLQXV3m2452gM2qEyUJOfLbwWpimaPHpd6LZt+1zzsiP72BGsfn2judPLV+z2en1s21ar7ZtuWsbatWuYOnWqzzvkJUXjodGQdqvUlkP8PxQK0drayq233sry5csVCQqHw74x1w3fKHA82rwr2YCwKUhzsVhUZGO0LK6yXqIyCF7DYDmPIOmNxWJcvHiRH/zgB3z3u99V3m4vQQ6SqTrK4rvcQM6EG4kQZRAXtqfaA7ke4fW4SHGipmkMDg5y6tQpnnnmGV599VXAVlk8MsOsJFq9Ui9MOY0PPte50DbJSUx4ppLJJMlkEjMcxrYtLKvoTrBXMMGN5KavT5jqesdiMRWKamxs5Pbbb+eWW25RYYdoNEokEnE1PqFxIyOaBpYlKqTrOliWjWmG3K7mOsuWLePOO+/ENE0GBgZUY09vqFWEbr1EGcbcqmUyQ5PC5uDvd6yPEI/HaWhoUCEyoffSyBfyZQXRXvhIUYVCp47tqXEWSKGX4Tld1ykUCoooFwoFzp49y7e+9S1OnjxJJpNRmWjy897K13UMQw/CZmaqPZBrBeNzn/tctcdwLXEM8Su+u8rjuK5QquehUygUlSHL54uEQibPPfcsf/u3f8vAQB+Gobs6DZtCoYChu6m2KnsLj7Epl2UymsYn8NzNLNN1Hdsq4NgWmgEh0+CB997PPffcTSwepb+/n4GBfpKJFPlCFnAIhYSRlgZcCb41HV2XxlH3fKd3fKVHTeXR4fm/E9gIbLrvU6XNm7XmKchytWEFub9h+5GCdqfC+4PZQEE4LhFFvcdxbHRdo7GxgT/90z9l5syZqqWL7GvmrWg9XgZHlJ1yFDkuEXiLWCzO7NmzOXr0KL/85S+xbYfGxiYymQwNDQ1YBdv1grjHBOo6gi2r4VTcSuex0na1pDm4/9H2d5nvD95vvnsPNJ8n1f8otFslwqSpwl3y7zrvfvd6PvnJT5JIxnjt9f0ie0xzsKwikYjpemUqzQcaYFDKPh1+bjVNw3FrhwnIcUt9oe3LbCsWC+o+PX78GKFQiBUrVpBKpZTo3lvNPOh9EvsuecxvUNL0O8A/VHsQ1xI3kodI4o+Bf6z2IK43mKZJJpNRoYZMJkc4HOLSpUu88sorXLx4kWKx6KYzl9KpbTuQReSt/nxZ1WsD79VKZEh6hTRdJxQ2cNyeWdu3b+dzn/tPfPWrX+WjH/0ora2tDA71qxo4MoRTzkVeEoGDrl99nZwrR7XrIHk9A5Uh9WIyVNbW1sbChQvp7u4mkUgMI0Le1ft468i8+5fXt7ExxfLlS/nsZz/L/PnzAZGKnUgkGBoaGjYG6UkspYDXqpdoPKbwUvNTw9DcJAVd/e5EXSH5XtuXzDBlSjOzZ3eydetWPvrRj7Jz5066u7tVxp9pGq7msLInrqQxurpjCd57Ug+ZyWT453/+Z1566SUf+ZGFPGWPRm8Bx3L7vcHwj0ziAoyVcKN5iCTeAjYDrdUeyPUCTcMlRBGGhjIUi0VyuTzPPfccf/M3f8358+fddzpukTMxcRi6yO4Y5phQdYeCCHqKJGz/a5p/lebYbuE9QyMajfLggw+yc+dOEglRH2npkqXMmDGDtrY2hoaG6O/vJx6Pk0qliEajpNNpVZ9Gij2lARdaEzkRlvcQeQY2ltM5wvukhyg48V6lYdOC4w+OI+gh8q60nfLvkW91jWUsFlONXGfOnMlf/MVf0NnZ6etK760M7fUSjSfKtYOxLNHeo729nT179nDixAlF8IWOxb2PKh2j8rJUGutox3C1pG/YD8h9uZInMXhdK3y/+/nRPHWOI7xuqleYmyFmGAaO46jil5IYT58+nU2bNvHpT3+a3/u93+POzXcAOnPmzqatrY2f/vSn9PT0MG1am2r5IzZPAVdN85TkkOc/OD/4a5B5KDGSnKlDdX/XktRIzVCxWCSdTtPV1cXKlStVgVnLshQRktqzoND6BtWfHQI+DZyr9kCuNW5UQnQOkUL4/moP5HqBpkEkEqNQEJNeLBZj3759fOlLX2Lv3pddd7QwPKJHkGzrIcJSZdZVo31j4HnAGClCJCalaExoU9JDg8yZM4df+7VfY+XNK+nr68M0TRpSjcyfP58FCxYwc+ZM2traGBgY4NixY2q1qmkahUJB6aRkZeOSO987rmtJiEqBmSvGBBOiWCxGOp1WLTp27tzJAw88AJTKIHjrQI13e4zgyl2SMPkd4bBJoVBUtZFOnDjBmTNnVCackp94jtF7XbVh133YWRhthJd3QCPu3+NJGUacK42zEiEaYVyO/x4wDF15TaSOUHr+0uk0juMwa9Ys7rvvPnbu3MlDDz3EqlWraG9vJ5sRmi0zrGMYIS5cuMDRo0e5cOG8IiCVCJGmgTMs3Ou/b2X7HM13foYTY6+XSHioTF/5hc7OTubMmaOIUjQaJRQKKY2cl8zfgERI4jeB71d7ENXAjUqIAPYDDcC6ag/keoDjiElgYGCQZDLJxYsX+epXv8qzzz5LOp3Gti3A2zxTU2EnEd+XOxprEcYK2iKlbXGfuoSokM+Ry+eZPmM6jz76KB/60IcwTZMLFy5gWRYNqRSJRIxp09pZtmwZK1euJJVK0d/fj+M49PT0qEkvHA6rSVCWFxhOiErj0sq+Xmkb/vnhx00ZAnN9EyKASCSCrus8+uijPPbYY0QiERobG8sajqAOYzzgNVJewbTwGOmYptChNDQ0cO7cOY4ePUrW7bOm9CWOvJrlHy//euL5+1UdnfvoJUNlQkwe3c+w8ZXTCZUbp+9+F9B1DdsWXhLpCZTZhIVCgenTp9PV1cXGjRt56KGHuPfee1m0aBGJREJ4k7MFCoUCkWiYRCJJJjPE8ePHOH36tBI6i2sWHLf03BHwgPnHqON9Wjr+cl5Ir5DeNE0ikQiDg4MMDAyQTCZZsWIFyWSSbDZLOBxWXrBKafjXdYPq8cefcAN3d7iRCRHAPmAlMK/aA6k2HMchk8kAGtFomB/+8Ec8+eSTHDp0yF1JRVSMXUwO0jiJfkUqL3rcDLv71CVE4YiYuO66604++tGPMm/ePLLZLC0tLUQiEWzXc+WdCBctWsTChd5jlEEAACAASURBVAtpbGzk4sWL5PN5MpmM8g4BnrTgyoSiJI4e0wGM8rxSyOz6JkQylDJ//nwef/xxli5dSmtr5YjzeK+wKxkqGcbJZHLYtkM+n6exsRGAN954g76+PnWNHUcQonJ1cSrXyhnteqrRjPFIKiFwnUbV33l/b5eh1yur57IxjFJ1aampKRaLtLS0sHDhQnbs2MEDDzzA+973PlavXk0ymWRoaIihoSGKxSKppDjn6fQQqVSCqVOncuLECQ4dOlRBm1OGEPleD7zb97IIl4nXS3ogOTf5ibLm075ls1na29uZPn068XicQqHA4OCgIvv+rEQ/yboB8APgfwPS1R5ItXCjE6I0cBKRdZaq8liqCun5CYcjnDr1Nl/+n3/Hv/xkN0PpQQAikbAqiw+U6sAYpjuRyiyRUVAh20XTy016JcNaLOTpmj2bj3/8Y2zevJmwGcbBIWyGGRoaIhKOqFTraDRMKGTS2Jiis7OL7u5u5s+fT1NTE319ffT396tMk1IZf2lQKhEiKvy9wip8tNBGjRGiWCyGZVncd9993HvvvcydO5fz588TDod9AtZrhWCZiHg8jmWJa5hIxGhqaqa/v5/jx4/T29vrqYUkhNRaQLNVjiLJ91+W5+/Kj8i/D23kayI4evD9YxiDShn0ZheKl6QGTLa46Ozs5H3vex+PP/4473//+1m+fDnTp08XxVjdjMJIJOL2C3NrAWkOoZCJZRVJpVJYlsXevXuHtcsYToic0lPvvIC7+SYH77j91yFIZryZZMVikd7eXvr7++no6GDhwoVKYyZDa/5TdUMRotMIMnSg2gOpJm50QgQiFT8H3F/lcVQV2WyWSCRCNptj165d/P3ffYVjx48BIhafz4u06lLLBgvH0USvIttmzKLgCpqGYa5vEcNThCiRTHDPPffw8Y9/jKamJnJ5US3bwXE9RDaxWIRi0cKyZCVrMSE2NzezePFilixZQldXF7quc/HiRS5duqSaf145IRp2JBUeJWqTEGmaxl133cXDDz/Mpk2bGBwcJBqNKn1IJULkXalfDYLFHYP7KxQs1cDTth3i8ThtbW0cOHCAU6dOqerqXoOsoSlDPNxDdLnPr5YQeXftLVtR8U3ugwyNXeb3a5TIkaYhiys6jkMikWDp0qU8+OCDfPCDH+SOO+4gkUiQTCYxDIOhoSEymQyGYRCJRERWmqljmiE3cUGE3WbNmoXjOLz00ksMDAS7PmjKY+c9nOAT9StyRdXBcxMkPvI1WRfLmzIvyfPZs2eZNm0aN910E6lUytMGSB+mg8P3/ZMa/xF4qtqDqDbqhEhgLzAVuLXaA5koBGtuSDe2rutkMhkljH3nnfN8/etfZ/fuF8lmsjhu2q2M18vsDE3T0TXDH0KDETab8vV63EnPcffg2Jhuh+qQEQIsUqkk0UiET33yk9yyahWRcATHdijk88RjMbcDu4HjQChkqJWupulKH5DJZGhsbGTx4sUsX76coaEhfvnLX6qQi2HorhAzhGHo2Lbrbg+FsWxLGUyZri3sSWB16z6Tf5fnTLwtSEzcI69IZC4TV0mIpM5Ghh6kF0DXdRKJBLFYjIcffpidO3cSDgtvYSqVUtqLisOaQHGqN1vQMEQ9KdMMkc1m0HWDWCzG2bNn2bNnD7lcjkgkQqFQAMR9IjQzwtA6ZesxeZ4rj0zQU3QFZKQMdGmEfbW45GNwbMPHJ7PkdE13FynF0t80wM0iC5shLKuoEgpwr584HzYLFixgx44dfOpTn2Lr1q0sXLhQhZ0kIpEI0WhUCbBFUoJw8QotkkOhIBr8mqbB6dNvc/z4MfL5HJZlu0Jm051HpHd2hHOPp/J8BfLuDXVJUuNtQ6TaDDkO2axoa7lw4UK6urqIRCLqfbKgo2wMLOe8a+0Bvcb478DvVnsQ1wPqhKiEV4AVwNxqD2Qi4F0lyeaXUlRsGAbRaJSLFy/yxS/+D/76r/+anp6LYsJzLDdLJ9j41FBEyP2GUUYwstGQzRmhpAOKRCJoGsyaNYvf/u3f5v7776ehQRRWk00kAXK5HIYRUiG34Y8akYiJrotwQGtrK5s2bWLr1q3MmDGD/fv3MzQ0iOMIz0JzczOmGS5pTtwdhUIhQoYYp7c9iKEbwzQSyuOg6eqVsufhOiJEUlTr1V7IVfNdd93Ftm3bWLBggc9AeA3HRMKXmVRmk2OQBE3XDeLxKJZlc/z4cY4cOeLLIJLGXJK+yhoXNYDyr4/j8QmUI0NlP+F7FjJC2I4ojmq75MebhSfJAIjXpWdPhplt2+J973sfn/3sZ1UtoVgspsKS3n15dTvyufi/qEum6yWiGo+L7MT9+/fT09ODYYTcMJWlrlfIXQCVUC4k6f2b9zF4/krPvd3sgz3tBgYGaGtrY9GiRTQ1Nak5URJF7+Jxkmec/RD434HBag/kekCdEJUwiNAT3QE0VXks445grzJpQIrFIvF4nHw+z5tvvsn//J9f5s0336SlZQqGYZB3G6eKLDMBKab2P5evBQ1LsPq0O0n5VrdifLI5pJxgpcfmXe96Fw899BCzZ8/2VZ+WOiBRLNLrjfFIJdwVcjqdplgskM1mcBybWCzKtGltzJgxnfb2aUp4+c4777h1U0Q/LE3HDRciPFFGab9y37bjrcIrV/pBQlTJk+AllVeBqyREgiBYHuMmjEChUCAajfKxj32M++67TxmvSCRCOp0W4crrYAUtxywJfjabEaHWhBD/Hjx4kEuXLikDbFmWL7vI61HxG90gu5YhqvE1kFrZsJcd+P9IHizH52kpGXDxmmUVCYUMkskEtm2RzWYoFgvMnDmDNWtW88ADD7Bt2zY2bdpEKpXCtm2lGfR6h4JZfiWyUPKE6nppjhEeODh+/DgnTpwgl8ujaRr5fMHXqNdxgpWs5fFVCk3KUCeub2w4vCRX3reyvpK8d+fPn6/S8CUh8s6T3hDaJMRx4DPAG9UeyPWCOiHy4xgwBGyp8jjGHbLwmHd1Jw2CaQph9D/8wz/w7W8/SzabRUP0BQqFDDfMEJxyvK0pQIiqKfO+4VNVueJ4cmIVq8o4juOQL+SZOXMG27ZtY+3atTQ3N6v9ybCf13iPBJlqL7d0Ok0+n6e9vZ0VK1awYMECpkyZojJRMpmsmhAdx0FDeBSKVkGRSak98HsXKhGiCcZVEiKp0ZA6McMQFYY1TWPFihV8/OMfZ86cOQwNDfnOoTc7p9qQBjYUCpHP57Ftm0QiSUtLC7lcjoMHD6p+VjI8Ij1cwzygQc/nsOMbb0LkfeYw3DM0sgfL27zU620JhQxfPR6p6Zo2bRqrV69m69atbN++nQ984AMsW7YMwzCUPqict0SMVfN9L4j6ZPJ90kMkfp9CkG+aJmfOnOHUqbdVyH24V6jc8Y1OiEaDnCu8HilAleTo6upixowZAL57OVjxehLis8DT1R7E9YQ6IRqOfUAM2FDtgYwnvKt4OTlIg97X18f+/fv5q7/6Kw4cOEgoFCKTzYrGreielacXQULkDQ1512yj6SvkvkueiUgkQjaXxjB03vWud/GRj3yE7u5FCMlDyYUvtSuSGI0E6U2S5wJwWxQI49nV1cWiRYtYs2YNXV1dZLM5zp8/79ZgsonHY+h6KZ1XjgMkmQuubHFFu9fI3T4OomqpI5HVvIvFIgsXLuTxxx/n3nvvVcRZZpZZluWGNatPhqBECqSXCKBYLDB9ejuzZnXy6quvcuzYMWXEZXsX8dlyBMRzjoaFzCaKEFXSDwXh90iCrWoJyd+rYei+hUYmk8GyCnR0zOQDH3iIj33sozzwwP0sXboE0yyFoKUXBSCfz/v0OCMcgfp+bxhN10Vl+ba2Nnp6eti//zX6+/sJh03XayWzVMstpMrpieS3OWO+At5FoLcKd19fH729vXR0dLBs2TJisZj4Ns8CZxKHyz7PDVxvqBLqhKg8fgrMB5ZWeyDjBTkRFItFVShNbq+++ip/9md/xp49e7Asm0QigWxOWigWXEMZdOl7CVG5YozlCdFw71DJkMuwmVUUnesXLVrEli1buPfee1X7Bbn6hNJkNZZVnAyNeIuvyUq84XCYQqFAIpFg1qxZrreoFU3TyGQyDA4OkslklPGUq20vISp5WUoGU5PnqUYIkRCT24rstbW1sXXrVp544glaW1vJ5/Oqk71lWb5K39VeRXsJvzf0MTQ0RCwWo61tKidOnOTIkSP09vb6FgdSP1UelbRgE+khgrEvKKTXRjzzkn2ZMCCv6Zw5c9i06Xbe+9738tBDD3HrrbfS0NBAoVCgWLQUEfYSAm87i3JbafwiZBZcLOTzorBjU5NotHvgwEFOnTrlqU2kueGykY9v+Kvlz0u535qmaSq9XtM0VS7AcRzS6TSmaaoK9149WrAFzSTCPyOqUedHe+ONhjohKo88op/LLcDMKo9lXCB/1LJ1hTTo+Xyef/qnf+IrX/kKg4ODFIsWuWyhZDBsEdv3V3MGTYXINM/mRaUJvfzKN2SY7mSlY1miINwjjzzCQw89RFdXJ+GwWLHKVW8wlbvSpOUlTWLiL6rwGfjTuWXRxlQqRUfHTObOnUN7+3Sam5sZHBxU4TR/VVtbeY5K50M8ai5ZrBVCJEmdNAjr16/nE5/4BMuWLRNhVM2fmiwfrwcNkSRl0uhJD1GpvozwPPb09HD8+HEymYzPsF82IRpnLdGVE6JSyNPbwwtwQ4YJ5s6dy4YN7+bhhz/ARz7yEe644w7mzJmjiC3gJiX4iY68x2X7k/Ljlr+v0nPpiRH7L6oK8bFYjMHBIQ4dOkR/v2jCXCx62+aU/YZhz7QxnRc/pG7Mqw+SWqKzZ8/S1tbGihUrfF6ySVqh+ucIMnSq2gO5HlEnRJXxDqLn2WYgWeWxXDXkD1u2qpDp9r29vXzxi1/ktddeI5EQtSkNPaSy0aLRKIWCXEjISUhXAsqSmFL+XW7B9OGg9NE/oYVCgvBEo6LA4qxZs/jEJz7BbbdtUJkrxaJMkx6uiRpt4pIrQ68RKBlDW3mPvLqqmTNnsmhRN0uXLqWpqYlwOMylS5dU93SZWQOUJUSlczWWSTXY5PJyUUmcPRohEu+R4Y5IJKK8P7JnVangZZRCoaAIRz6fV+es2pCETKbXW5ZFNpslFou5GjiNjo4OBgcHOXDgAOfOnSMUChGPx8lmRyrMW8lDRIXnV4YrJ0TB/WiKGAIsWrSIO++8k1/7tU+ybt27WLBggQpzSoIgmriWRMcyXAqlgq3lvqfc+L0LL292arFYpKmpCdt2+OlPf8rbb79NIpEgm82pkhcVjqjCs0rvl4kd/gQPGQqWnjOZTKJpmmrpsXnzZlKplG8RVel4axTngN8C/qXaA7leUSdEI+MwkGESFG2U9TdisRi5XE7F0f/wD/+Q5557jny+SCaTYcqUKSRTCbK5DJZVpFDMe1Z8IbWSlHF/UQNI92Ra2QzPiLGFt0ST9YwgGo26+xHZPeFIGNMMKeP7m7/5m3zoQx8iHA6Ry+Xd7/ZrImDsMX4vcQqmEMsJX07+3tCaaYZobm5i5cpVrF69mqGhIU6dOkV/fz+2bdPY2ARoyoMlQoug6ZIkBI2JJD5O4DUvIYLRyZH3/SNtEuVEq571dkAntm7dOn7jN36Dzs5Ot56M9NCVwicyxHI9QY5TVF0X7VlEGr6GZRWZPbuLbDbD3r0/x7YtYrEosVjMbVsDmibqV5XOje6GjxX9dx91z/9htOshmppW2oBhOj0vwdbcMZUMfdCbE47EiERjFPIFNE1n9uw53HPPvfzu7/4e99xzNx0dHTQ1NbvtTQpuzS6TkB4CRwSgvMTHG1oeKVTmhfdl6VHSdVECwTBCFIsWjY2NJBIJjh49yjvvvIOul37P5T2NToUteN0jbiZoCDThwRbzVmkMjgOWZaNpOo2NTRhGiEwmi6bpnDlzmkwmw9133+07Tq8ebRLg/wT+vtqDuJ5RJ0SjYy8QpcZF1nLSkaEjGevv6+sjFovx9ttiQhgaGqK/vx9d12lqalIuc683xbdy0sGyhb5HfI8gPGJy9OtTvGJWkFVkcWukoDKbbr75Zj7zmc8wffp0CoWiMmyl/fqPayLOFZQE3I7jcPHiJebOncuqVatYvHgxbW1tnDp1igsXLqjjELoI9/PKoxCc4Mt5bCqRl5H6U5U8UGPzIvjf4zNwOphuoULbtpk5cybvec97uO+++0ilUsOM1PVGgsYKXddVuYA33niDEydOqAamwz187jmqeP3G01PklNHEDL9evnCs5r8OtgOFfJ558+bxyCOP8OEPf5iPfOQjLFmyhGg0hmV5+rlRIv+qIKQ+cp2nq4H8HRmGQSKRoL29nQsXLrBv3z5M0ySbzfqy2YLeovJ1ogLfYevCD61pGLrwBIXNCGilQrSxWIyGhgakNjCdThMOh5kxYwbbtn2IjRs3snTpUmSbj7FmsNYI/hD4L9UexPWOOiEaG14COhGFG2sScqUjQ02yBUdHRwdLlixh4cJFhEIhenp6lL4il8uRy+WUeNab1iyfS5LlT98ebjTl+0srrzyOU0pfl3VJotEo/+7f/Ts++MGH0XVRryQcDrlEY+IIUTk9kjejLBQSGWmJRIKFCxeyatUqFi5c6Kl4XXS9ZtLjVClkdjmESAozKnUxDxqJchWNAytqzRZcLdBDLmyGsG2LadOmcd9997F9+3aWLVtGJpNRAuVaNg7FYlGFgZqbm+np6eHw4cNKE1a65qWsR0lCHGQlaPBfP6fM8yvYNFHFXV3nMRBcSYhUeMd2WL1mDb/1m7/Jzp07Wbt2La2tLQwNpUkkEmqfMp1eefrcZAZNn7jr6k3o0DSNpqYmEokEr776KqdOnVLzgsxiDBbLDIavysHQTXEqNQ3LtrDtIo5jK2F5Y2Mj6XSabDarMhFt22b16tU88cQT7Nz5GDfffLMqIyHnNqCC56qm8HeIFPtCtQdyvaNOiMaGAvA6sIQarWTtrakjw0KFQoFUKkVraytLly5jyZIltLS00N/fT29vL/l8XqVXy1L9wDCNgVeYXMloyklNTsRSxFqadET9m7vuuov/8B/+A+3t07AsJ1AUbmI9ROXGLifiWCzO0NCQ0hukUinmzJnD8ePH2bdvH7lcVu7F3Y+c0MdCiIICZ9coKwNZdrSBz4xgMDRB1IId0UvjcigWCziOzbJly9ixYwcbN24kHA7T19dHPB6vvO8agcyGs22bhoYGAA4fPqwynoajRIjcZ+r14PtK//We58t5dFPIK17rMqPzeIiEl89g6dKlPPbYY8ybNw/TNOjpuUShUHD7jfkLE8rfozyuiSZEgDr/hUKBtrY2ent7+eEPf6g0X9FoVM03XgIyFnGz4/ZEE+1IAK2Ueeqtv2RZFqZp0t3dzXvf+14ee+wxtmzZQkfHTDWOct6xWl0IICpRfxahH6pjFNQJ0dhxEVG4cTUwrbpDuXx4yYycGPN5oQ8SQlmdjo4ZzJkzl9bWVqLRKCBW1tls1pdyLlN5Zdq6V6Q8EoRep0RqvCJnXTdYtGgRv/Vbv8XatWvJZnMUi0UiEZNCoag+N1zMOXETlXcytG1BzuR56e/v58UXX+Qb3/gGhw8fRtPkxK/5Q2ZOkGSVI0TyedCbM4KwVmO416jShuN+rQNO8HvEoxkymDq1lTvvvJP3v//9TJ8+XXlV5DHXMrwF+RxHNAS+ePEiR44cob+/35MG7g9PlUh4JSIkz2/gPF/mo6YFw6OVNElyjB79kTuedDpNx8yZdHd34zjitztlyhS3zxu+tHNJEDR5vBP4O5JhelmgMZ/Pk0wmicVi7N69m0wmQzab9XlkAF8YbWTtkoahm+77HOV59hKifD5Pa2sr3d3dbN68mUcffZStW7dyyy230NzcpIiaHO8k8Q69DvwfwKvVHkitoE6ILg8ngPPA7dRg5pkkLl4yU3JHC6MfjUZZuHAh3d3dTJ06lWQySTwep6enR8X6pbdI0zQ1iXhFzhLlC5w5ilDJ91iWRTye4OGHH+axxx4jlUoyMDBAIpGgWLRcwXL5SfFarNzEOZIF6wzS6Qz9/f38+Z//Od/5znfcbCu5ClWfck/CSIa00heONXQS3LcM4Xgfyx4QaN4eVA6OXeTWW29l69atrF+/XuzNJQ41bBAUcrmcCpWk02kaGxvVfX3q1CkGB0UrJ+/vQT7XNG2E6wglYnPlGK4hqrTD4URa3p/pdBpd09i0aRMtLS2q9o74bTqe610KCWuKwE+8h0h6paUmsKGhgaGhId566y0GBwdVZXTwExFJiMqFzeT7dUPHsYVWseSFLrUo6urq4rbbbuNDH/oQjz76KLfddhutra3uoqyUSSe9Z1J3VMOVqs8hyNB3qz2QWkKdEF0+DgBp4F6GK2ava3hdz0ERo+Zmi8maIVOmTGHJkiUsXbqUlpYWTp8+TU9PD7lcTjWGld4dmcYb1N54IeYUxzcOOdnEYjFWr17D448/zrx589xeVFlSqQTZbIZIJFxxlTiRhMh7DJZlq8q7fX39PPfcczz55JP09PSQSCQoFPI+D5GD5npjZIaQGrHcu//LvDohn6h6JP1J8NjdEIzvMahXEbZP1zXXEAgNVyqVZMuWLdx99920tbWRyWR8RflqPQVZkgEpoJYCW8Mw+MUvfsGZM2d8hk94X7zhEnltKhy7BqNfr8pbmSBzpSPB7ymSHh7dFf9fpKmpiTlz5tDS0qRa0GhaySPrCwe5l3WiQ2amaVIoFMhms6ooYigUorW1lfPnz/P2228zMDCgMhqlqHk0MiQ30wyj6yXvl0wckSLu7du38+ijj3LPPffQ3j4NXZfkqVSiAIZrHWs0w8xCZJR9udoDqTXUCdGVYa/7eEdVR3GZ8BbUA9QPXxg+nUKhVERNrtZmzJhBV1cXK1eupLm5mUgkQl9fH5lMhlgspsiRV+sDJTLh9QxJAyO9UwCxWIwpU6awbdsj3HfffcRiMTVOmWo/Us+yiTDO5QWcmhteLNLT08PnP/95Dh48SFNTEwMDAziO7SNEJb4zFg0RFYiQ9+92GYMsnwdrPpXZv9yNxzPkrb30nrvuZOvWraxYsUJl/nhT2Mvtp5YgPQa5XI5YLKYIfSqV4o033uDQoUOB4/QIln33QyVCNFJGIFD2nvKPL/DKyPsLECLbFmGeXDbLyZMnmT59Ou3t00kmk1iWRaGQ93lO1OLFdhca10BULYkooOqgSU/W3r17OX/+POFw2C3YWPSJm/19z3CPXfMQl5JQ2rIsEokEy5cv55FHHuFXf/VXueeee1i8eDHRaEQlaAS1Sd6kE+9cI72LNYTfBf642oOoRdQJ0ZXjBaAZeFe1B3Kl8GWpOI67ijTQNDDNkNvKwSIajTBv3lyWLFlMR8dMpk1rIxQyeOedc+RyWaWxKDXKLMXgHcfCNN002HCYfD6viuVZlkUyKTwTjzyynY6ODtV1PhIRYTJvaG8iyZDUV8iCcl63uZggdXQd0ukMu3bt4vvf/z5vv/22qulUqnSslR41jbGl3YuQiVKKaFLr4/E4KL4U9A5591PZQ6FpMizj4NgWra1TGOjvo1gssGD+PD75yU+yZs0aGhoalPBWhje8BftG0nJc75DXMxqNqoQB2Ypk//79XLhwQWld8vkc4bBJsWgFDHIl71zgel3xVrp/xD8d3a2LVKp7VPIQOfJWcaFrmmq6u3LlStrb2917GxXqlve4ZVnuvifOQyTJd6mQael7ZEgvlUpx9OhR3nrrLbJZkZyQz4tisN5+c+Bvviq9SaJcR15lsi1YsID777+fxx9/nB07dtDZ2Ulzc7Pr4UXVPvKJ0gOecy9qjAz9GfAfqz2IWkWdEF0dfg5Mp4bT8cvBOyF4jWBDQwPz5s1j6dKlaqIdGBggl8tRKBR97u1Ser6meqfJFZzM8rFtm7lz57Jjxw5WrlxFY2ODW3xRJxQyfBPptTpmOYHLbumAaxAdikWLXbt28cwzz7Bv3z7S6bQiT1dFiDS7ZF416WkaxeNQNlw2+vFJgikr9zqOw7333suOHTuYMWOGqhnj9SbWuLAUKB2/9GZKPV0ymSQSifDOO+9w/PhxBgcHCYVCpFIpBgcHVbhzuNfQe/5lMdJxGal6VPSnLAENaMTc36jtZnIZhkF7ezvz5893KzKL6tFBT26xIDRGE+kh8o3aq1/yLMYKhYIKnUnSKsObskyIt/QH4OvTFolEVZh/27ZtbN++nTVr1tDSIgqniuKcuiJDkxRPAv8XophwHVeAOiG6OmQQSv7ZwKLqDuXqUIkESaPoreLc2NjI/Pnz6e7uJh6Pc+nSJfr6+tUEJlafBVUMTopZTdNUE3Iul6O5uZnbb7+d7du309ExE3CUp8rvuRppEivVjblaeMmXJAylir0aFy5c4Mtf/jLf/va36enpUZ4wsYKVxulKCJHjFshzcLCH/738aKnsKRoO6bGTHq9sNotlWSxatIgPf/jDrF27lnA47AsZyLAS1F6IrBzk/SRrZ8l+Vs3NzUyZMoXTp09z9OhR5cXMZDKYZghNK1UgL8Hr1YGRzv/lnbvRCFHw/27oLOA56evrwzRNli9fzowZ7TiOQ39/P7FYzHcebMvGCIXG4+cz8lH59Fil13RdJxQKMXXqVAzD4PDhw5w9e1ZdI7ko8vaoM01TebjkfHPzzSvZtm0bTzzxBFu2bGHu3NluhWqZjSfa/9Q6sR8B30SQodPVHkgto06Irh6XEC0+FiGIUU0jGBaRk5Y0lJZlqX5R06dPZ+HChSxcuJDly28iEolw4cIFhoaGCIdN4vG4atEhPS5SO2DbNt3d3dx3332sW7eOeDyuhLxBr8TIhChIRCq8awy1TKShkN8tQyW2bZNOZ9i9ezdPPfUUhw4d8pUMKBWm9I7j8ghRKQwyuoEddX8Vji1IMKPRKE888QT3338/iURC/U16jiQhmixGRB6fvLbeCsptbW0MDQ3xdat44gAAIABJREFU85//nN7eXkXgpTh3rJqeq8dYPERe75AjDw7ca2oYBkNDQ9i2zYwZM5g9ew6pVJJMJuMTyeu6jm3Z6BOsIaoEr84wmUwSDoc5ceIEJ06cYHBwUC02ZEFUeWxyDgLo7Oxk7dq17NjxGB/4wAdYuXKFp2ksbtjf9nmGJgO5D+B5BBk6UOVx1DzqhGh8cAY4DiwDZlR5LFeNcvF1b00PqfPJZrM0NTXR3d3N8uU30dbWRi6XoafnAoODgxQKBWVQpABbTsYzZ87k3nvvZcuWLcyaNUsZYJmx5s30kOPwIyg8HtskV24yDLrv5SYnXdM0OXLkKF/60pfYs2eP6zkwlR5DrGKlZ2d8CNHwOjNBeKthB/ZXBtL4yOJzhmFyxx2b+dSnfp0FCxa62rFSWrY0mN6sm1qGtxWDvN7eRr+hUIhwOMzhw4c5fvw4hUKBaDSqigmOrvmZSEJkuK+XIULe73VE2QwZRsrn8xSLRdrb25k1q2PY70p6Z4QEcOKvb/C3bNu2CqPLGl+FQoEzZ87w9ttvK61XIpFQJEjWK2pvb+eWW27hkUce4ROf+ATr12+gvb2NdDqrwp7CGy3IkAx/T0JS9DLwfyO6KdRxlagTovHDMQQxWglMre5Qrg6VxMtyApOGEoQuYWhoiEQiyezZs1m6dAldXV3E43HS6TQDAwM+DZH0OGzcuJGdO3eybt061X3am30WDJUNn8BG0nSM7bjk9wSfe1ehsViMYrHIj3+8i69+9aucOnVK/d1bp2S8CVFJ3FnJ0I52PgLvdomADF82NjbxG7/xG2zYsIFoNOLTS0lC6E05rnUDIj1BUjgPnn5e7r3Z1NRELpfj5Zdfpre3F8dxSCaTSuhbHvL+HK+RBgmRETj35QmREQrhuMcoRdP5fJ5Lly4Ri8VYvnwZra2tPlIEYOjiek+0h8jrofUmLEhCZNu2KtZ48OBB9u/fr8JihUJBeZjb29u54447eOyxx9i2bRubN29mwYIFhEJCAC91UvI8WFZRJQaUE1EHx1ZjOAj8P8D3qz2QyYI6IRpfHAYuAGuApiqP5YpRjhDl83kVJpKTi+xpViwWKRTyhMMmU6dOZd68eSxatIhp06aRzWY5d+6cMkiWZdHQ0MDOnTu55557SCbjDAz0YxghVbAt2MvIP6YyKeniHZd1TPJ75Hd4v0uGBqXeac+ePTz55N+xf/9+T1ZZqbiku7fAOK6UELmZRcrFP7ymU/njHY0QiY7fQgujcffdd/Mrv/IrtLS0kMvlKRYLaJrmNtotkTKvpqiW4fUAAr5jBJSXIpVKcfLkSd566y3Vx096CstDkNixhXfHNFL1KO6J4LkvT4ikUN52W0/IWj7ZbJZsNkt39yLmzZunMrvkMRfdHoIhc2IzqSoVWpSvDw4OEg6HiUQinDp1ikOHDnHu3DlFimKxGPPmzeM973kP27Zt473vfS/d3d0kk0mGhobI5wuk02lF+k3TJBIx1QIrqIustOirIRxHkKGvV3sgkwl1QjT+eBPoQ6Tj11Q160qTuTeUIqoyGypcZNs2kUhEVTQ2DIN4PK6axk6dOpVwOMzAwIAqj3/TTTfx6U9/mrlz5zIw0E9jYyMis6zUBqRyL6OxekzGDukN8WbAyPDdxYsX+Zu/+RuefPLvRCVgj+GTk28ppOIdx2UQIjTXw1CqHCyF5aX6RqMd70jeJPF3GbZsa2vj13/919m4cSOmGWJwcIhEIq7CSN4sM29vp1qGppX670kir3Q0LlnPZrNMnTqVeDzOvn376O3tddvaBGsRDW+roet+T+aVn6/RCFHwOntIsy+7U1fe3P7+ftraprJ48WKSySS5XE6Jk3FLD0x0yCxIiLy/o1AoRDQaJZPJ0NDQQHNzM5cuXeLll18mlUrR1dXFHXfcwUMPPcSOHTtYu3Yt8XhcCa1FrzaRhSb7oYm2RIaqIF+O1Ndw+Owc8NvA31d7IJMNdUI0MXgVGALWAzXbCKpcyMpLHGSIK5ii7a3x0t7ezqpVq+ju7laT9Gc/+1lWr17tFoDME43GfBql4Gp7uEEot42MoIYguH8ZspOF3eRx7dq1i29+85u89dZhtxSAICkig87Bti1BXgzdtU2jESKvcDr4emlstmO5WhCxLzmxS0+PDG1FwjEsq+g+F9qjcDiCZYlq1ZFIFMuyle6rtbWVBx98kO3btzNlyhQAt/u5/7xLVCqIWYsI3lve/xfyWaKxKNlMmvb2aTQ1t7B37176+wdxHND10vnVMEDT0Y0Qmm6g6Qa2ZQGihUYsFsdxwDBC7v1RqsUj4T2d/lNbnhD57xj3vtLcD2samqcOkm1bOI6t7tV8Pkdvby+5XI4NGzb4tFQh0/T9fEbS2F0NKnnQ5P+9Av5kMsnNN9/MCy+8wG233cajjz7K448/zi233ML06dNVew05F4lFlOOW7BBC6nDYHFZvyPv9NXw/9wL/Cfj/qj2QyYiaqjhVY/giEAH+M5Co8lgmHNKT4G3MaBgGLS0tJJNJWltbWbx4MceOHWP16tVKmyObxU70BFVpEpRu+5I4upRdVSwWefrpp3nllVeGeayC+xg3TS0i+T44VknSLMvxhXF0XSceS5LNpZWRkx3OvenKhUKBRCLBunXrePDBB5k5cya6DtlsnnA4fC00tdc1wpEI+VwO27Zpbmlh/fr1rFq1ipMnv6UKigLoWgjd0LEBy/U4RaIRIvEEDpYKs2laqUAilETdJa3ZlULehzY47v81KZQu3aPBys6HDx/mqaee4sEHH2T58uWk02k1TvCHsSY6nDTc4ybE/vl8noGBAXRdp6uriz/4gz+go6ODzs5OotGoSmSQv1FJNINkU35HDZOeShhCVKH+YrUHMllR9xBNLH4KFICNTHLy6a1T5K15AyJEEY/HaW9vp6uri1QqBYhJWxZc82KiJrKRdESWR3shvSkvv/wyX/jCFzh9+rQvzOLVHqnwiYqEjeYhKg+paXU82hDvalZ2LHcc4dGRWVAaoqaQpqFKHMjzXiyKYpmyFcKMGTP44Ac/yJYtW2hsTJHN5lUJhclnOy4PxUJeZZTl83kam5rJZDK8/vob9Pb2qgKclqsdK4VKhadUFOkUJFqSH3FP6RSLVhkvUKUTPpqHqIIGTSvV7wreo/K1d955h8bGRm699VZisZhqYVLOY3MtyERQ5Cy9nnJx0tXVxdSpU91egaXQpXfRFfRij6QTqnHkgN8B/qTaA5nMmBwFRq5v/BGC1RdHe2Mtw1tBVk5EMvwkM0XS6bTyxoA/o0niWpCh4PfJv6XTabLZLIVCgf379/OFL3yBc+fOASiDGPycb+IdsZrxlUGeH2lob7/9drZs2cKyZcvQNI1MVpQAiMfjvuOU2goZpkwmkyxevFi153CcUvHJSVJm6Koge7fJgozRaJS77rqLe+65h3g8rrKXzJCJhks6HQfNraIccntpyWy1pUuXctttt/myqMr14xovDCfqAtKLEo1GiUajPP300+zdu1dpbSTRuNZEIvgd0gMXi8WIRqMMDg4qnaL8G6BKBXh/j16d2yQlQ0WEDfmjag9ksmNSey2uI/wXBPn8XaAm2yePBjkJeSdm6VWRkDodrw5JrqavFSoZDCUyBc6fP893v/tdnnvuORVyAukdkqv2wL5sueqXYYzxOSbHEd4eSXqeeOIJ1q1bx2uvvcY//uM/8uLulzh//jyDg4OAMCiRSEQ155Xnubm5mfXr17N48WIAikVL1SSqA2KuSBd0YvEkjuMwY8YM7r//fg4fPszzzz8vwpRumCocMtHDETKZDIMDA5ghk/Zp01mwYAHvec976O7uxnEcDhw4QDqdJp1OIzVGpfvdS2CuniyVW1zI6y+bMZ89e5bvfe97rFmzhlgs5gubVQPyu2UYWGayJhIJ5bGVtc8qjXOyFA6tAAv4HMKG1DHBqBOia4c/QFjL32ESkiKvZ0JqgrwpzSDFu4aqPyL1FdJTUS3IrJRUKkWhUOAXv/gFL7zwgk8cLj1dwVV++Qywq4OGhqYm+VI225IlS7jpppuYO3c27e3tTJkyhe5FS/jRj37Ev/3yCOfOnSOfzysNlKzFIls43HbbbbS2tqqik/F4lGLRkUWOb2h4+2SZpkk6nSYajbJmzRpuv/12Xn/9dXp7e4mEY8pzITVwjY2NLF26lLvuuotNmzaxYsUKEokohYLNihUr2Lt3r/KGQmVv5dVALEb8z70LFE3TGBoaIhaLsXv3br7zne/w4IMP+sJm1zrryqtfCj4Ph8OqWrV87hWDy/dPhpIQI8BCLKL/oNoDuVFQ1xBdW/wEEfzfyCQLV0rXOwzP5PDWFfIKIGVWibdn1kQj6E6XRCedTmMYBqdPn+ZrX/sa3/ve98hkMliWg6aV6g45jqgTNGq2m/oO+Sg/EzCAmg2aEGU7btq98Fjp7vkR4120aBH//t//e+68c7P79xBdXZ2se9e7ede73kV7+zRSqRS9vb309/fT3NxMLBbDtm0WLFjAxz/+cTZt2kQ0GvFcH92tUD0hp7qmkM3mMM2wKuonG4omEnGy2QxvvPEm58+fJxINY4R0BocGcLBZumwJWz/4MJ/61K9z//33s2DBHECnUBAtJ/r6+jlx4iT9/QPouoGGLjZNPIqfQvnWL5ejISolKUpxtbgf3Wx8lXloWTaDg0P09w+wfPlNNDQ0KkLsDXvDtSVGkpTJhZGcJwzDUF4suXmzBaGmCyuOBEmGfr/aA7mRUCdE1x4/Qdzsk4oUyTBYcGUKJZd2oVBQ75NZXHJyG2lCm6gJT4qpLcsimUySz+c5cOAATz31FMeOHXPDDHEVfpI9rWStIAmtnFZoGCEqY8hAGDPP67p7boyQnPTF6+vXr2f79u20tLS4YQSNTCZLJBKmdeoUuru7WbBgAeFwmPPnzzMwMMDFixeZOnUqv/Irv8L73/9+2tpaSaczaJqOaRrkcnlM08CyHFVH50aFDJfKEKK3QGVDQwORSJRXXnmFc+fOEY/H6ezs5N3vfjdbtmzhwx/+MEuWLCYUMrHtUpHHfD5PR0cHmUyGffv2ARUyFH33xhUSIpdUVfI+yeKGtm2TyWTI5XLMmjWL+fPn09zc6OnZ5u7yGnuL5Dwgf4/SwykLg3rniODC61qO8xqhiAiT/ecqj+OGQ50QVQf/grjpNzBJw5blxI1SCClfK1f3ptK+xgMylOdt3aAyhMImb58+zd9+6W954Sc/IZ3OUSgUKVoWIdNElPXR3c01UJrm2eRz8XehNZGaIu/4XaMjPUOe18NmWIXk4nFRliCXy7JmzRoeffRR1q5dSyqVUgSxUChihkUj1mQyzrRpbUyf3k5zcxOGoTM0NMicObPZuvVhli5d4oZ4Qsiu36GQ7GQ/6QzKZcPb3yyYTRiPx+nr6+Vf//VlMpksq1evZvv27TzxxBNs2LCBhoYGEZoMhxgaGiSRjFEsiPBqW1sL0WicY8eOcfDgQUKhEI2NjViWTS6Xx8FB1zQcVYF9OCHyo0KWWfC1ALyFNmURSsMwWLlyJTNmTHczFTUVvs7n84okXkvI3ySgPEbebLJy9+kku3dzCDL0/1Z5HDck6oSoetiNuPnfDYSrPJYbArLKtjR62WwWXdeJRCIMDg3y4x//mGeeeYa33noLDREmQ6b5aiVNjw+S+KiXK3mG1Afcl4eX2guFQhStIoYuwli5XI7Ozlk8+OCD3H333cyaNQsoVf0Vxf/EOLPZjKih09zM/PnzWbFiBQsWLGDRokWsWbOGlpYWn+YiaFwmmVG5bJQztjLFW2pYhoaGWLJkKQ8//DAPPPAAs2d3USxavuSBUEgQVNsS17dYtIlGo/T29rJnzx71Pf0D/UTCERxb1v+ZeEIkSZ+sq6RpGp2dnXR0zKKlpVl5iGzbVo1WZVXrG/3+uEYYQmhMP1/tgdyoqBOi6mIPkEa0+ajZita1ABnGkCns3lVosVjkjTff5O///u958cUXyWYybpVhG/7/9s40Sq7yzO+/e6tuLV3VrVa3pNbS3QKJthDaAaEVtGEWicUgtmAWrycmJBNIZuJxPuSc8CVhPCexk9ly4oTYmTjjsWMSY8Y2GBAeCcISIpBiLAIObSTTFi11q7fa7pIP731v3a6ubq2tW9X1/DjvafX+iLq67/8+7/P8H8/AjMUDx+hy5ifcVeb5Aif8ec2ZCyIA13NJp9OUSmqY5bXXbuXBBx/kyiuvDI4ZQT/xm37LvKpN0oaMs2fPZsGCBXR1dbFo0SIWLlw4of5iBh83XDC0INLHNnPnzmX9+qtZu3YNbW2zGRo6xeDgAK2ts3wPohLJZIJCIY9hqnEeo6MjdHTMwbKSvP++KnwfGdHu12YwILhcR3Q+gmiyujYD04jhuC6mEcOyEhSLJYZOqbqmbHOG7u6uQDDl83nS6fS4zku5RqadQcRnKHJmTA1LHfMN4J+i5tMI00T46Td8ZGYYBoVCgZdffplXX32VsbExLL+I03NdCHXLTY5Zdg0+B7Q4sR0b0zBJJNVMt/b2djZu3MiKFSv8MSeFoNBUbajl708mk0F2YmRkhLGxMWbNmsWCBQsCHyht1FiZDZmOTrl6JdzBVJlBW758OVdccQWZTAbbVlPUm5ubsSxrXJZIdwWGzRuXLVvGI488wpIlS7Bte1zG7sI0FJxesJh+lrNYLJKwEhRLRV577TWefvpp+vtP0tTURDqdDv5+o6OjF8VFXuB3qD3gG1EH0uiIIKoN/hz4GmqCsTAN6AJNXRMSdqceHh5m3759fPjhh4HnieM4gRiyfQE1HjO0fMaJoorPVUFtuuNb3uOWSS6njr9WrVLmfu3t7RSLeQqFXKj1GN9csew/o6eFJxLqBFZ1SWWCI4/Jitdlw1P5FtdT43UDD/KQ8/qsWbOC4bgDAwOMjQ6TSlrMbm0BzwFcEok4nueQSMSJx1X2LpNR35NKJ9ixcxubN28mnU5TKOSx7RKOa2M70+/ZGh6oWrJLaiJ83KKvr48333yTd955ByDwAtLu8tNpJikA6p7/NWQcR00ggqh2eAr4KvBu1IHMRPRRmd4UdFFpsVhk3759vP322+CLCs/zlAjSm8gZCYaz+6cUPsLSxbzxWDyIraNjLlu3bmX58uVBh1tlu7FhqCxRZU1QPB4PfFssy6K5uTkw4QtnMSQzdHrCGRwtOtvb28lms8Fxmnaj1q9luE08k1FjDJNJ9Trs3r2bNWvWUCgUsCyLhJUgFpt+Qep6452y9dGr67kMDg7y9a9/nd/85jckk0lc12V4eHhcVlGYFt5F3fOfijoQQSGCqLb4HvBPgDejDmSmUSwWVdGybZPP53FdtRHs37+fb33rWxw/fpxEMolBDLtU3jj0EZV6J5wVOn0G6HSERZE2oHMch9bWVm6++WZuuOEGMpkMhUIh8MUpt/+XYzTN8RkAfYSmzQZ1t44Ux05Ntf81Wqzqa6BUKgAupv9+PB4nblkYpnpN9FvPc8a5jLuuS6GQY/WalWzfcR2zZ88OWt0vllu465V9hkqlUvB78/k8hw4d4sCBA/T39wfXj8446kHCwgXlTdS9/ntRByKUEUFUe/wY+ANgX8RxzDh0fY1pmjQ1NXHkyBGefvppXnrppaAmpFAoKL+keJxYXNXy6KnmGC5KiFQumDh6odrn1NvKgmYtihxXHeldcskl3HbbbWzcuHGcaZ0eX6CXzk6Ej//CNVLV/v6ayVqYGx3DIDiODBP2xgmGusbjyoLBdTGI4bgOeCaOU86+6W4u7QPU3t7O+vXr6enpwXGditeg2u14qusqzNRZHF0/FP59pmliGiZjY2MUi3meeuopnn32WYaHh0kkEuRyOfRwYOGCsg91j/9xxHEIFUiXWW3yIXAIWAAsizaU+kcLBtd1x21qr7zyCk8++aR/dGExMjxCzDRIJRM4dgnPc4OWaN3z4/v/YuBWLG+SBQYupmGoImjPxUP9PPy4Yv4AVsP0yGQy3H777XzmM3fQ3t5WFmixOMqFWE81x/cTMvxus/KGFy7SrSwMFiFUnXE9WcbEbJH+/2uaMUwzNu47tDO0aZgYhvp88DGz3KFYLJaCUR+xmMnbbx9kaPgU4BtDeibxuAWegRcIHOVTxKTXl3+NGYYv2LVB43ibLHUtE/I78jBjBlZC1Qs5js3HH39MNptlxYoVzJs3L+TO7o27pqJws55B/AhVQP1q1IEIE5EMUe3yFvCPgO9EHchMIGy25zgOv/zlL3n++eeDlmrbtoPam7CAAn+zMtxxG87ENRnl7JDOCCifISP4cywWo7lFFT/PmzePe+65h4ULFzI6mmN4eDgYdHn63yFEy+S303hcFcvncjnmz5/P7t272bBhA9lslmQyiV1ycT1X1SN5fgbKjGGgPYqmwvOvTUVlB2G4s1C30usmg1KpFNQ/jY2N8cEHH/CrX/2KgYEBVddWZcagCOtz5juoe/pbUQciVEcEUW3zAfA48M2oA6l39LFUJpOht7eX7373u7z88ss4jsOpU6coFovBE7Guu9FHULoAtRqe/9/kQsl/Gjf9p3xDfZfj2oEZn23bDAwM0NLSwpYtW1i3bl0QbzabHTcWRahPXJegjss0obu7m4ceeoi2tjblEl1Rg1Q5Hmbq68v/iimKn3U9mW3bQf2QrjtLJpOBR9cbb7zBCy+8wMmTJ/3MkRPUQElx9XnxTdS9/IOoAxEmRwRR7XMSeAxl2nVxqi9nILoY2fM83n33XV588UWOHTtGPp+nra0tKGouFAqBo7X29qlGWQidPY6rXsZEIhGYLSYSCXbu3MkXv/hFEokEpVKJVCpJNpsNuuOqOSnLJlXb6Jcsn8+TyWSwLItcrkA+n2fHjh1s2rQpeF31INNYLIaHd+Yt78bkYiWoT/MzoZZlkUgkAt8kPdh4dHSUtjZ1RHvgwAH279/PyMgIlmVRKBTGHZ8JZ4WDunc/hrqXCzWMCKL64Qng9xADx3NCF7aeOHEC27bp6uoik8kEs5vCIz0Af45Y4Yzbjr3T/Ke9ZoLW+FicVCqlhBoeV155JXv37uW667ZiWbGgkFU7bE81bkM2qVpGZXx0liXshdXU1MR9993H1VdfjevaOE4Jz3P8NnwX17PxcJTgwZl8Ba+/KrjWHW6e52AYHqapOhHjcRPD8LDtIp7nkExaZDJpmppSmKbJyZMnMQyDzs5O4vE4uVwuyJLqI2QR4WfF71D37CeiDkQ4M6Sour54A1VwvRzoiDaU+kL7w8Tj8WDeV0dHB4sWLeL1118PaimSyWQgVFTnljpS0C3K57sV6IJuvdEUigXSqTTXX7+L++67j9mzW9Xv8VTRdKlUqhiKWzHyI+hWk2ebKNF1OtVQtTsmhUKRRCKB4yjzRsMwaWtro7+/n/feOxI4QyvxdHbCwzAmzxDp2iHdgRj+uaVSKZjp19nZyc6dO3nkkUfYtm0b2WzWjzUx7hh5st8jjOMQymPo21EHIpw5M3LS+gznB6gnj38GXB9xLHXD2NgYsZjKvOgZX6tWreLo0aMcP36c3t5ejh07Ri6XCzYPPWNq/CYy2Y1/6uMNvWG4no16+vcoFEskEgnWrlvNddddR2dnJ6WSQzwe83+fEdRxTDXeQTaj2qTsGaWIxYzASDOfL5JKqdEfN9xwA7/+9fu89NJL9PX1BV+rRUh1YTReAFfr/NLZHN0k4Hle4C+kB7cmEglmzZrF5Zdfzle+8hW2bt1Kd3d3YGSqj2unmjgv198Efo7KCv1t1IEIZ4dkiOqT36DaNmcDayKOpS5IJBKMjIwABD49LS0tdHR0sGrVKpYuXQrAwMAAhUIh5DhsVhjnTXbzP40PTKjLDQiGZnZ2drJnzx727t1La2trUDcSj6tp9qq9vrz56Y6jiZuQbEq1wFQZFNM0yeWUCEkk4gwNjZBKpeju7ubUqUHef/99Pv744yAjqL2lqv/M6kODJ/v6ZDIZZIp0rVxrayvXX389X/rSl/jCF77Arl27aGlpwTAMcrlcYGCqu82q1bGJGJrAf0YZLh6MOhDh7BFBVL+cBH4GxICtEcdS0+jNRdfl6KdlfTOfN28ePT099PT0cOmll2KaJp988gkjIyO4blnoZLNZrHgiEFQxU20uMTPG6QRR2MtFF7O2tLRw8803c+utt7Jq1aqg9bmpKYXrlsdyhGNVvjJnskEKF5PJhIj+uOd5vrgwUZ2FbiB04/EYpmnwwQf/l2PHjpLLjQXGkJUeQOWfG/ZLUl+sMzlaVOufn0qlsG2bpqamoFB6+fLl3HXXXTz66KPs2LGDRYsWBce4+XweIDg+njgyZmIdmwDAv0SJIanzrFNEENU3JeAFoB+4CshGG07tEq6B0KMydNbGtm0ymQydnZ2sXLmSBQsWYJomxWKRfF51BKVSKcbGxiiVVHF0PBYPjrPisbhveDfRoyX8fnjAbHNzM93d3dxxxx3s2rUr2Mj0YM2yoV5lbcpkwks2plqm8noAI+jcchybdDqNbZc4ePAgAwMD2HZZtE81cV5fV2EhZBgGqVQq6GDU17jruqxdu5YNGzbwwAMPcP/999PV1UU6naZUKo37d2GaZpAVCsdf+XcRACWA/hD4F6h7slCniCCaGbwBHAGWAosijqUmqSaI9JO7PprQ7e/z589nxYoVXH755SQSSUZHRzl16hSO45DNNBOPx4OjL/1zHbfsVRQ+WtBfpyfQ69+ZTCbZvn07d955J0uXLiWfzwcfV87TBN8vgqge0KadU78O+vozTWW4aNulIHuTSqU5evQYR468Fxzb6iMufR3EYlbgWq4dsNWokbKJaHh+Xfh4eMuWLTz22GPccsstbNy4kY6OjsCU0XGcQIyHRVHlMZlkhybwOmoMx19GHYhw/oggmjm8B7wGtAMrIo6lJqnWtq5v+GFX6mQyyZw5c+ju7mbZssvZtGkT7e3t9Pf387u+49i2TSqVCo5BLMuaXpdIAAAOnElEQVTC9crtz+G34Q4fx3FIJpPKmbq5mc9//vNce+21wddqkRaPxwjvNSKI6oGpi+4rHaPDH9f1aqZp0trayuHDh/nkk08CkQ7hTONEgaIG/1pBR9isWbPwPI98Pk9zczMbN27k3nvv5e677+baa6/l0ksvJZlMMjIyQjqdDq69Ss+tatnO8OcE/hr4faR4esYggmhmcRz4KVJXNIHwzV0LFn1TDx8VhIejWpZFW1s7l112GV1dXTQ1NWGXlJfR6OgopmkGG4oSMRM7gvQ4EH08F4vFyGazQSH14sXdFArFYKRCoVAglUrguuV6ofFZIhFEtYkXels9U1QpLLSY0ZkcNbplPrlcnkOHDjM8PAIYWFYCdcTmBSJco6+bUskmHldvx8ZypNNNXH31evbsuYVbbrmVu+66mxUrVhKLxXFdzz+Sg1QqCZh+bZP/N/DGF2hXXtMihgB4EiWGjkYdiHDhEEE08yii2j5/C6wGWqMNp/ao9qSrO8m0ONJZnWKxFDy5r1y5kjWr15LNZhkZGaGvry+YOG+axrhi1nAhreu6ZDIZbNumWCzS09PDE088QU9PD8lkIhA88Xg8qFdSYxWqPZGLIKpNKl+Xid1Y4WyLFhn6WGpgYIBsNothmCxcuJBXXnmF3t5egKDGR39P+LhXf0xbMziOQ1dXF7fffjuPP/449957L2vWrCGdTvs/K4ltO0GTQbFYCmrWqsWrY52s5b4B6UUVTv8R6l4rzCBEEM1c3kK1fnYCSyKOpeaodsPXWRxdV+F5HqWS7R9JJAIPo23btrN69Wr6+/s5ceIEY2NjYJRrkSqP4UBtfIVCgTlz5nD33Xfzuc89RDKZwHFcLCs+Lib1/mRdZSKIapPK12XyTFE1HMfDslQmce7cuRw/fpyjR48yODhIqVTCIIaBSSwWJx6zCDJGAJ5BLK7m3i1ZsoQvf/nLPPDAA1xxxRU0NTUFbfzKi0s1AqTTaeJxE+V1Nd7TSLyGJuXnwD8Gfhh1IML0IIJoZvMh6h9xCrgm2lCiJ/xEXZkl0iJIt+iXx3gYJJMWp04NqaMJu0QqlWDx4m7mzpvDvLkdxC2Tvr6+cRmhcG2I6iCyMQyDzZs38+ijj9LRMR/Pg0KhgGVZvgCDREKLIxWb6zrjWp5FENUqU78ulcXx+s/6ekmnUwwNDZPNNgEGc+fO5cSJE/T29jI8PIwVT5R/U+jYzIpbNGVSXHPNNXz2s5/l4Ycf5q677qKraxGJhBr5ot3OLcvCsmIYhkksZjAyMuYX8Vf521Qcmwn8KWpS/eGoAxGmDxFEM58R4G9QrflrgeZow4mOqdL+YdER9n3RtRWpVBLPc0kkLH/kRoklSy5h+fLlLF68mAULFtDS0kKhUKBQKATt9VpoFQoFmpubefDBB9m9ezemafrdRSkcx/VdjCufyqkQQ6A22GpLiJapX5ep2uaVGDZ8vyB13XR0zCWdbuLw4cP09vbieg7JZIJYzMS2S7ieQ3NzlrXr1rB7924efvhhbr75Rq666sqgwBqUoPY85X+kry/V4eb5mciJDwj6fRFCgCo9+Brwz1H3UmEGI4KocXgDdYy2CNWeL5wFtm0HrcnKo0i1Rbe0NLNgwXxWrlxFT08PlmXR19fH4OCg/0RuBbOibrzxRu644w6WLfuUP55DCS61+UT9NxSixfCtFgz/mgDX9RgcHOTdd99ldHQUy7ICkT1v3jy2bNnCPffcw969e1mxYjmtra2BjYQeCFxZ11atsDv8VhjH88DjwPejDkS4OMgss8ZiHyrl+zVU+lc4Q8ImdUCQ4dEt9Ol0hnnz5rFw4UIuueQSfvKTn3Dw4EFOnDgBwBVXXMH999/PVVddheO4Qd2GdqQWGo9wB5eeXac+DoVCia6uLm666Sb27dvH0NAQuVyOuXPnsmnTJnbu3MnatWvp6elhwYL5GAbBfDJd/6ZJJBLjjuwqOxdFDFXlX6GMFvujDkS4eIggajz6UYWB76CE0bJow6kP9JO2PgrTs8hKpRKlUgnLSuK6LkuXLmXx4sVs2bKF5557jl/84hd89NFH7Nmzh23btjFrVgtDQ8NkMplQHYmIokanUpQUi0WamzMsX76czZs3c+zYMbq6uti5cye7d+9m2bJlgfApFIoYhromdTeZroWb7OeLCJqUIygh9O2oAxEuPkb1ScpCg7AaJYruizqQWqdYLAZHFvroTG862pzRtl3fHM/CMKC//yRvvfUWhw4dYt26dWzfvh3btn3DvCyu6xGLGdi2O6HTR2hMtDgeG8uTTCqRvX//fg4cOMD69evZsGEDra0tFAql4DoE/GLpiSKncq6ZMCV/hRJD70QdiBANIogEUAZjf4hyuRaqED5iCMZ1hLJFxaIddIjl88XAhDGfzzM0NERTUxNtba0Ui7bvdWRSKpW/R2hsysNclSByHCW8TdMkl8sxMjJCS0sLyWQy6FjUwtu2VVG+9irS4zfUz6sc/SJU4QRqMOsfRx2IEC0iiATNduCrwE0Rx1GT6JZ9NbE8NiE7FG7p10/j4fbo8AYF5XZrnWkSGhstfqBc46N9rfSQVsdxgvEc8Xg8GAejj2/DPljh96s5TlcbH9Kg/BTlOr0v4jiEGkAEkRAmjRJFX0V5Fwk+4cnjMF70hItU9UYWNnvU36ef3sMbl/54uNVfaDy0PYP+MxDUCOl5Znpwq23bQRdZpZDS6I9XXpuV89Sq+XI1CHmUEHoSyEUci1AjiCASqnEjyp5+Z9SB1AvVNhYtdqp19EiHjxCmMktTaSI6WXZHrp9z4kXU6I2fRR2IUFuIIBImoxn4A5QwSkYcS10S3tTCyIYmnI5KIV2JXDfnRAElhL4ODEcci1CDiCASTsenUcLo01EHUtu4k35mqn9j5Y1NuoCEMjJh/oLzPEoIPR91IELtIoJIOBOSqE603wdaI46lRplcEJ0ZIogEYRoYRHWP/TEqQyQIkyKCSDgbNqFE0Z1RB1J7iCASLj4NXBR9JvwQJYRejToQoT4QQSScC4+gRn9cFnUgtUNZEJ3bJiWCSDh7RBBV5X3U6I0/jzoQob4QQSScK0tRoujvRR1IbSAZIuH8qVZIfTqfoAb3Earkz1Bi6IOoAxHqDxFEwvlyK2oi9I6oA4kWEUTC+VMt4yOC54x4CfjXwDNRByLULyKIhAuBiRJFjwGdEcciCELjcBT4BkoMne9TidDgiCASLiSfAv4hcowmCML082fAN4H3og5EmBmIIBKmgxuA3wP2RB2IIAgzjmeBfwM8F3UgwsxCBJEwnXwB+AfA2qgDEQSh7jkI/FvgP0YdiDAzEUEkTDctKFH094H5EcciCEL90Qf8CUoMDUUcizCDEUEkXCwuAx5FCaN4xLEIglD72Cgh9KcobyFBmFZEEAkXm2tQRdcPRx2IIAg1y7dRRdOvRx2I0DiIIBKi4nqU47WMAREEQfNDlMP0z6MORGg8RBAJUXMb8BXg5qgDEQQhMn4C/AXwo6gDERoXEURCrXAX8HdRmSNBEBqDnwP/DvhB1IEIgggioda4F/gysCvqQARBmDZeAP498L2oAxEEjQgioVa5G/gSyuRREISZwXPAt4DvRx2IIFQigkiodW4HvogaIisIQn3yDPAfgP8RdSCCMBkiiIR64dMo5+v7og5EEIQz5q9QztLPRx2IIJwOEURCvbEB+BzweSAZbSiCIFShADwF/CfgtWhDEYQzRwSRUK9chjJ3fBjoijgWQRDgI5Sh4rcRZ2mhDhFBJNQ7zcBD/rom4lgEoRF5HfiOv4YjjkUQzhkRRMJM4nbgAZSnkSAI08sPgL9ECqWFGYIIImEmshr4LHA/0BlxLIIwkzgKfBf4L8A7EcciCBcUEUTCTCYN/B1UZ9qnI45FEOqZ51EdY/8VyEUciyBMCyKIhEZhA8oF+x5gUcSxCEI9cAz4a5SbtHSLCTMeEURCo5FEuWDfg5g9CkI1nkEJoe+jWugFoSEQQSQ0MsuAvf66MuJYBCFK3gL+m7+ORByLIESCCCJBUFwH3Al8BlgccSyCcDHoBf478EPgFxHHIgiRI4JIECZyK0oY3QbMiTgWQbiQ9AM/QgmhZyKORRBqChFEgjA5SZQ4uhW4BWiLNhxBOCdOAj9GCaBnkLogQaiKCCJBODOSwB5/7QbmRxuOIExJH/A3wLP+EhEkCKdBBJEgnBs3+etG4PKIYxEEgF8BPwN+6i9BEM4CEUSCcP5cDdyAMn/cHm0oQoOxD2Wa+BzwZrShCEJ9I4JIEC4s84Fd/tqJdKwJF5Ze4EXgBX/1RRuOIMwcRBAJwvRyNSprtM1fzZFGI9Qbw8DL/tqHZIEEYdoQQSQIF48Yyu/oWmArsAVoijQiodYYAw4A+4G/RfkDOZFGJAgNgggiQYiOOEoUbfLXRmBepBEJF5vjwP8EXvXXAcCONCJBaFBEEAlCbbEauAZY76910YYjXGD+N/CGv14H3ok2HEEQNCKIBKG2aQauQs1aWwesBVZGGpFwphwGDqJE0FvA/0LVBAmCUIOIIBKE+qMZlUlaDaxCCaQViJN2VJwE/g9KAB1CZX3eQcSPINQVIogEYeawGFjur2X++hSwMMqgZhC/Bd5DTYM/Arzrr94ogxIE4cIggkgQZj6twGX+WgJc6q/F/rKiC62mKKHETS/w//z1a+B9fw1GF5ogCNONCCJBELr81QksQmWUFvhrPqrzbU5k0V0Y+lEdXX3Ax/76LXAMOAp85C9BEBoUEUSCIJwJcWAuShi1o+qVZqOyT61Ai7+agSyQQXkspYEUajhuEpWNslCeTDHABAz/d3iAi/LdcVAZmxJqMGkByAM5lFfPKDCCqtMZ8tegvwZQdT0nUELoE6SVXRCE0yCCSBAEQRCEhseMOgBBEARBEISoEUEkCIIgCELDI4JIEARBEISGRwSRIAiCIAgNjwgiQRAEQRAaHhFEgiAIgiA0PCKIBEEQBEFoeEQQCYIgCILQ8IggEgRBEASh4fn/HN4ybG2tsBkAAAAASUVORK5CYII=</pre>
</div>
<div status="complete" title="$:/Import">
<pre>The following tiddlers were imported:
# [[images/repo]]</pre>
</div>
<div title="$:/info/browser">
<pre>yes</pre>
</div>
<div title="$:/info/browser/language">
<pre>es-ES</pre>
</div>
<div title="$:/info/browser/screen/height">
<pre>768</pre>
</div>
<div title="$:/info/browser/screen/width">
<pre>1366</pre>
</div>
<div title="$:/info/node">
<pre>no</pre>
</div>
<div title="$:/info/url/full">
<pre>file:///media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha.html</pre>
</div>
<div title="$:/info/url/host">
<pre></pre>
</div>
<div title="$:/info/url/hostname">
<pre></pre>
</div>
<div title="$:/info/url/origin">
<pre>null</pre>
</div>
<div title="$:/info/url/pathname">
<pre>/media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha.html</pre>
</div>
<div title="$:/info/url/port">
<pre></pre>
</div>
<div title="$:/info/url/protocol">
<pre>file:</pre>
</div>
<div title="$:/info/url/search">
<pre></pre>
</div>
<div title="$:/isEncrypted">
<pre>no</pre>
</div>
<div title="$:/language">
<pre>$:/languages/en-GB</pre>
</div>
<div title="$:/language/AboveStory/ClassicPlugin/Warning">
<pre>It looks like you are trying to load a plugin designed for ~TiddlyWiki Classic. Please note that [[these plugins do not work with TiddlyWiki version 5.x.x|https://tiddlywiki.com/#TiddlyWikiClassic]]. ~TiddlyWiki Classic plugins detected:</pre>
</div>
<div title="$:/language/BinaryWarning/Prompt">
<pre>This tiddler contains binary data</pre>
</div>
<div title="$:/language/Buttons/AdvancedSearch/Caption">
<pre>advanced search</pre>
</div>
<div title="$:/language/Buttons/AdvancedSearch/Hint">
<pre>Advanced search</pre>
</div>
<div title="$:/language/Buttons/Bold/Caption">
<pre>bold</pre>
</div>
<div title="$:/language/Buttons/Bold/Hint">
<pre>Apply bold formatting to selection</pre>
</div>
<div title="$:/language/Buttons/Cancel/Caption">
<pre>cancel</pre>
</div>
<div title="$:/language/Buttons/Cancel/Hint">
<pre>Discard changes to this tiddler</pre>
</div>
<div title="$:/language/Buttons/Clear/Caption">
<pre>clear</pre>
</div>
<div title="$:/language/Buttons/Clear/Hint">
<pre>Clear image to solid colour</pre>
</div>
<div title="$:/language/Buttons/Clone/Caption">
<pre>clone</pre>
</div>
<div title="$:/language/Buttons/Clone/Hint">
<pre>Clone this tiddler</pre>
</div>
<div title="$:/language/Buttons/Close/Caption">
<pre>close</pre>
</div>
<div title="$:/language/Buttons/Close/Hint">
<pre>Close this tiddler</pre>
</div>
<div title="$:/language/Buttons/CloseAll/Caption">
<pre>close all</pre>
</div>
<div title="$:/language/Buttons/CloseAll/Hint">
<pre>Close all tiddlers</pre>
</div>
<div title="$:/language/Buttons/CloseOthers/Caption">
<pre>close others</pre>
</div>
<div title="$:/language/Buttons/CloseOthers/Hint">
<pre>Close other tiddlers</pre>
</div>
<div title="$:/language/Buttons/ControlPanel/Caption">
<pre>control panel</pre>
</div>
<div title="$:/language/Buttons/ControlPanel/Hint">
<pre>Open control panel</pre>
</div>
<div title="$:/language/Buttons/CopyToClipboard/Caption">
<pre>copy to clipboard</pre>
</div>
<div title="$:/language/Buttons/CopyToClipboard/Hint">
<pre>Copy this text to the clipboard</pre>
</div>
<div title="$:/language/Buttons/Delete/Caption">
<pre>delete</pre>
</div>
<div title="$:/language/Buttons/Delete/Hint">
<pre>Delete this tiddler</pre>
</div>
<div title="$:/language/Buttons/Edit/Caption">
<pre>edit</pre>
</div>
<div title="$:/language/Buttons/Edit/Hint">
<pre>Edit this tiddler</pre>
</div>
<div title="$:/language/Buttons/EditorHeight/Caption">
<pre>editor height</pre>
</div>
<div title="$:/language/Buttons/EditorHeight/Caption/Auto">
<pre>Automatically adjust height to fit content</pre>
</div>
<div title="$:/language/Buttons/EditorHeight/Caption/Fixed">
<pre>Fixed height:</pre>
</div>
<div title="$:/language/Buttons/EditorHeight/Hint">
<pre>Choose the height of the text editor</pre>
</div>
<div title="$:/language/Buttons/Encryption/Caption">
<pre>encryption</pre>
</div>
<div title="$:/language/Buttons/Encryption/ClearPassword/Caption">
<pre>clear password</pre>
</div>
<div title="$:/language/Buttons/Encryption/ClearPassword/Hint">
<pre>Clear the password and save this wiki without encryption</pre>
</div>
<div title="$:/language/Buttons/Encryption/Hint">
<pre>Set or clear a password for saving this wiki</pre>
</div>
<div title="$:/language/Buttons/Encryption/SetPassword/Caption">
<pre>set password</pre>
</div>
<div title="$:/language/Buttons/Encryption/SetPassword/Hint">
<pre>Set a password for saving this wiki with encryption</pre>
</div>
<div title="$:/language/Buttons/Excise/Caption">
<pre>excise</pre>
</div>
<div title="$:/language/Buttons/Excise/Caption/Excise">
<pre>Perform excision</pre>
</div>
<div title="$:/language/Buttons/Excise/Caption/MacroName">
<pre>Macro name:</pre>
</div>
<div title="$:/language/Buttons/Excise/Caption/NewTitle">
<pre>Title of new tiddler:</pre>
</div>
<div title="$:/language/Buttons/Excise/Caption/Replace">
<pre>Replace excised text with:</pre>
</div>
<div title="$:/language/Buttons/Excise/Caption/Replace/Link">
<pre>link</pre>
</div>
<div title="$:/language/Buttons/Excise/Caption/Replace/Macro">
<pre>macro</pre>
</div>
<div title="$:/language/Buttons/Excise/Caption/Replace/Transclusion">
<pre>transclusion</pre>
</div>
<div title="$:/language/Buttons/Excise/Caption/Tag">
<pre>Tag new tiddler with the title of this tiddler</pre>
</div>
<div title="$:/language/Buttons/Excise/Caption/TiddlerExists">
<pre>Warning: tiddler already exists</pre>
</div>
<div title="$:/language/Buttons/Excise/Hint">
<pre>Excise the selected text into a new tiddler</pre>
</div>
<div title="$:/language/Buttons/ExportPage/Caption">
<pre>export all</pre>
</div>
<div title="$:/language/Buttons/ExportPage/Hint">
<pre>Export all tiddlers</pre>
</div>
<div title="$:/language/Buttons/ExportTiddler/Caption">
<pre>export tiddler</pre>
</div>
<div title="$:/language/Buttons/ExportTiddler/Hint">
<pre>Export tiddler</pre>
</div>
<div title="$:/language/Buttons/ExportTiddlers/Caption">
<pre>export tiddlers</pre>
</div>
<div title="$:/language/Buttons/ExportTiddlers/Hint">
<pre>Export tiddlers</pre>
</div>
<div title="$:/language/Buttons/Fold/Caption">
<pre>fold tiddler</pre>
</div>
<div title="$:/language/Buttons/Fold/FoldBar/Caption">
<pre>fold-bar</pre>
</div>
<div title="$:/language/Buttons/Fold/FoldBar/Hint">
<pre>Optional bars to fold and unfold tiddlers</pre>
</div>
<div title="$:/language/Buttons/Fold/Hint">
<pre>Fold the body of this tiddler</pre>
</div>
<div title="$:/language/Buttons/FoldAll/Caption">
<pre>fold all tiddlers</pre>
</div>
<div title="$:/language/Buttons/FoldAll/Hint">
<pre>Fold the bodies of all opened tiddlers</pre>
</div>
<div title="$:/language/Buttons/FoldOthers/Caption">
<pre>fold other tiddlers</pre>
</div>
<div title="$:/language/Buttons/FoldOthers/Hint">
<pre>Fold the bodies of other opened tiddlers</pre>
</div>
<div title="$:/language/Buttons/FullScreen/Caption">
<pre>full-screen</pre>
</div>
<div title="$:/language/Buttons/FullScreen/Hint">
<pre>Enter or leave full-screen mode</pre>
</div>
<div title="$:/language/Buttons/Heading1/Caption">
<pre>heading 1</pre>
</div>
<div title="$:/language/Buttons/Heading1/Hint">
<pre>Apply heading level 1 formatting to lines containing selection</pre>
</div>
<div title="$:/language/Buttons/Heading2/Caption">
<pre>heading 2</pre>
</div>
<div title="$:/language/Buttons/Heading2/Hint">
<pre>Apply heading level 2 formatting to lines containing selection</pre>
</div>
<div title="$:/language/Buttons/Heading3/Caption">
<pre>heading 3</pre>
</div>
<div title="$:/language/Buttons/Heading3/Hint">
<pre>Apply heading level 3 formatting to lines containing selection</pre>
</div>
<div title="$:/language/Buttons/Heading4/Caption">
<pre>heading 4</pre>
</div>
<div title="$:/language/Buttons/Heading4/Hint">
<pre>Apply heading level 4 formatting to lines containing selection</pre>
</div>
<div title="$:/language/Buttons/Heading5/Caption">
<pre>heading 5</pre>
</div>
<div title="$:/language/Buttons/Heading5/Hint">
<pre>Apply heading level 5 formatting to lines containing selection</pre>
</div>
<div title="$:/language/Buttons/Heading6/Caption">
<pre>heading 6</pre>
</div>
<div title="$:/language/Buttons/Heading6/Hint">
<pre>Apply heading level 6 formatting to lines containing selection</pre>
</div>
<div title="$:/language/Buttons/Help/Caption">
<pre>help</pre>
</div>
<div title="$:/language/Buttons/Help/Hint">
<pre>Show help panel</pre>
</div>
<div title="$:/language/Buttons/HideSideBar/Caption">
<pre>hide sidebar</pre>
</div>
<div title="$:/language/Buttons/HideSideBar/Hint">
<pre>Hide sidebar</pre>
</div>
<div title="$:/language/Buttons/Home/Caption">
<pre>home</pre>
</div>
<div title="$:/language/Buttons/Home/Hint">
<pre>Open the default tiddlers</pre>
</div>
<div title="$:/language/Buttons/Import/Caption">
<pre>import</pre>
</div>
<div title="$:/language/Buttons/Import/Hint">
<pre>Import many types of file including text, image, TiddlyWiki or JSON</pre>
</div>
<div title="$:/language/Buttons/Info/Caption">
<pre>info</pre>
</div>
<div title="$:/language/Buttons/Info/Hint">
<pre>Show information for this tiddler</pre>
</div>
<div title="$:/language/Buttons/Italic/Caption">
<pre>italic</pre>
</div>
<div title="$:/language/Buttons/Italic/Hint">
<pre>Apply italic formatting to selection</pre>
</div>
<div title="$:/language/Buttons/Language/Caption">
<pre>language</pre>
</div>
<div title="$:/language/Buttons/Language/Hint">
<pre>Choose the user interface language</pre>
</div>
<div title="$:/language/Buttons/LineWidth/Caption">
<pre>line width</pre>
</div>
<div title="$:/language/Buttons/LineWidth/Hint">
<pre>Set line width for painting</pre>
</div>
<div title="$:/language/Buttons/Link/Caption">
<pre>link</pre>
</div>
<div title="$:/language/Buttons/Link/Hint">
<pre>Create wikitext link</pre>
</div>
<div title="$:/language/Buttons/Linkify/Caption">
<pre>wikilink</pre>
</div>
<div title="$:/language/Buttons/Linkify/Hint">
<pre>Wrap selection in square brackets</pre>
</div>
<div title="$:/language/Buttons/ListBullet/Caption">
<pre>bulleted list</pre>
</div>
<div title="$:/language/Buttons/ListBullet/Hint">
<pre>Apply bulleted list formatting to lines containing selection</pre>
</div>
<div title="$:/language/Buttons/ListNumber/Caption">
<pre>numbered list</pre>
</div>
<div title="$:/language/Buttons/ListNumber/Hint">
<pre>Apply numbered list formatting to lines containing selection</pre>
</div>
<div title="$:/language/Buttons/Manager/Caption">
<pre>tiddler manager</pre>
</div>
<div title="$:/language/Buttons/Manager/Hint">
<pre>Open tiddler manager</pre>
</div>
<div title="$:/language/Buttons/MonoBlock/Caption">
<pre>monospaced block</pre>
</div>
<div title="$:/language/Buttons/MonoBlock/Hint">
<pre>Apply monospaced block formatting to lines containing selection</pre>
</div>
<div title="$:/language/Buttons/MonoLine/Caption">
<pre>monospaced</pre>
</div>
<div title="$:/language/Buttons/MonoLine/Hint">
<pre>Apply monospaced character formatting to selection</pre>
</div>
<div title="$:/language/Buttons/More/Caption">
<pre>more</pre>
</div>
<div title="$:/language/Buttons/More/Hint">
<pre>More actions</pre>
</div>
<div title="$:/language/Buttons/NewHere/Caption">
<pre>new here</pre>
</div>
<div title="$:/language/Buttons/NewHere/Hint">
<pre>Create a new tiddler tagged with this one</pre>
</div>
<div title="$:/language/Buttons/NewImage/Caption">
<pre>new image</pre>
</div>
<div title="$:/language/Buttons/NewImage/Hint">
<pre>Create a new image tiddler</pre>
</div>
<div title="$:/language/Buttons/NewJournal/Caption">
<pre>new journal</pre>
</div>
<div title="$:/language/Buttons/NewJournal/Hint">
<pre>Create a new journal tiddler</pre>
</div>
<div title="$:/language/Buttons/NewJournalHere/Caption">
<pre>new journal here</pre>
</div>
<div title="$:/language/Buttons/NewJournalHere/Hint">
<pre>Create a new journal tiddler tagged with this one</pre>
</div>
<div title="$:/language/Buttons/NewMarkdown/Caption">
<pre>new Markdown tiddler</pre>
</div>
<div title="$:/language/Buttons/NewMarkdown/Hint">
<pre>Create a new Markdown tiddler</pre>
</div>
<div title="$:/language/Buttons/NewTiddler/Caption">
<pre>new tiddler</pre>
</div>
<div title="$:/language/Buttons/NewTiddler/Hint">
<pre>Create a new tiddler</pre>
</div>
<div title="$:/language/Buttons/Opacity/Caption">
<pre>opacity</pre>
</div>
<div title="$:/language/Buttons/Opacity/Hint">
<pre>Set painting opacity</pre>
</div>
<div title="$:/language/Buttons/OpenWindow/Caption">
<pre>open in new window</pre>
</div>
<div title="$:/language/Buttons/OpenWindow/Hint">
<pre>Open tiddler in new window</pre>
</div>
<div title="$:/language/Buttons/Paint/Caption">
<pre>paint colour</pre>
</div>
<div title="$:/language/Buttons/Paint/Hint">
<pre>Set painting colour</pre>
</div>
<div title="$:/language/Buttons/Palette/Caption">
<pre>palette</pre>
</div>
<div title="$:/language/Buttons/Palette/Hint">
<pre>Choose the colour palette</pre>
</div>
<div title="$:/language/Buttons/Permalink/Caption">
<pre>permalink</pre>
</div>
<div title="$:/language/Buttons/Permalink/Hint">
<pre>Set browser address bar to a direct link to this tiddler</pre>
</div>
<div title="$:/language/Buttons/Permaview/Caption">
<pre>permaview</pre>
</div>
<div title="$:/language/Buttons/Permaview/Hint">
<pre>Set browser address bar to a direct link to all the tiddlers in this story</pre>
</div>
<div title="$:/language/Buttons/Picture/Caption">
<pre>picture</pre>
</div>
<div title="$:/language/Buttons/Picture/Hint">
<pre>Insert picture</pre>
</div>
<div title="$:/language/Buttons/Preview/Caption">
<pre>preview</pre>
</div>
<div title="$:/language/Buttons/Preview/Hint">
<pre>Show preview pane</pre>
</div>
<div title="$:/language/Buttons/PreviewType/Caption">
<pre>preview type</pre>
</div>
<div title="$:/language/Buttons/PreviewType/Hint">
<pre>Choose preview type</pre>
</div>
<div title="$:/language/Buttons/Print/Caption">
<pre>print page</pre>
</div>
<div title="$:/language/Buttons/Print/Hint">
<pre>Print the current page</pre>
</div>
<div title="$:/language/Buttons/Quote/Caption">
<pre>quote</pre>
</div>
<div title="$:/language/Buttons/Quote/Hint">
<pre>Apply quoted text formatting to lines containing selection</pre>
</div>
<div title="$:/language/Buttons/Refresh/Caption">
<pre>refresh</pre>
</div>
<div title="$:/language/Buttons/Refresh/Hint">
<pre>Perform a full refresh of the wiki</pre>
</div>
<div title="$:/language/Buttons/RotateLeft/Caption">
<pre>rotate left</pre>
</div>
<div title="$:/language/Buttons/RotateLeft/Hint">
<pre>Rotate image left by 90 degrees</pre>
</div>
<div title="$:/language/Buttons/Save/Caption">
<pre>ok</pre>
</div>
<div title="$:/language/Buttons/Save/Hint">
<pre>Confirm changes to this tiddler</pre>
</div>
<div title="$:/language/Buttons/SaveWiki/Caption">
<pre>save changes</pre>
</div>
<div title="$:/language/Buttons/SaveWiki/Hint">
<pre>Save changes</pre>
</div>
<div title="$:/language/Buttons/ShowSideBar/Caption">
<pre>show sidebar</pre>
</div>
<div title="$:/language/Buttons/ShowSideBar/Hint">
<pre>Show sidebar</pre>
</div>
<div title="$:/language/Buttons/SidebarSearch/Hint">
<pre>Select the sidebar search field</pre>
</div>
<div title="$:/language/Buttons/Size/Caption">
<pre>image size</pre>
</div>
<div title="$:/language/Buttons/Size/Caption/Height">
<pre>Height:</pre>
</div>
<div title="$:/language/Buttons/Size/Caption/Resize">
<pre>Resize image</pre>
</div>
<div title="$:/language/Buttons/Size/Caption/Width">
<pre>Width:</pre>
</div>
<div title="$:/language/Buttons/Size/Hint">
<pre>Set image size</pre>
</div>
<div title="$:/language/Buttons/Stamp/Caption">
<pre>stamp</pre>
</div>
<div title="$:/language/Buttons/Stamp/Caption/New">
<pre>Add your own</pre>
</div>
<div title="$:/language/Buttons/Stamp/Hint">
<pre>Insert a preconfigured snippet of text</pre>
</div>
<div title="$:/language/Buttons/Stamp/New/Text">
<pre>Text of snippet. (Remember to add a descriptive title in the caption field).</pre>
</div>
<div title="$:/language/Buttons/Stamp/New/Title">
<pre>Name as shown in menu</pre>
</div>
<div title="$:/language/Buttons/StoryView/Caption">
<pre>storyview</pre>
</div>
<div title="$:/language/Buttons/StoryView/Hint">
<pre>Choose the story visualisation</pre>
</div>
<div title="$:/language/Buttons/Strikethrough/Caption">
<pre>strikethrough</pre>
</div>
<div title="$:/language/Buttons/Strikethrough/Hint">
<pre>Apply strikethrough formatting to selection</pre>
</div>
<div title="$:/language/Buttons/Subscript/Caption">
<pre>subscript</pre>
</div>
<div title="$:/language/Buttons/Subscript/Hint">
<pre>Apply subscript formatting to selection</pre>
</div>
<div title="$:/language/Buttons/Superscript/Caption">
<pre>superscript</pre>
</div>
<div title="$:/language/Buttons/Superscript/Hint">
<pre>Apply superscript formatting to selection</pre>
</div>
<div title="$:/language/Buttons/TagManager/Caption">
<pre>tag manager</pre>
</div>
<div title="$:/language/Buttons/TagManager/Hint">
<pre>Open tag manager</pre>
</div>
<div title="$:/language/Buttons/Theme/Caption">
<pre>theme</pre>
</div>
<div title="$:/language/Buttons/Theme/Hint">
<pre>Choose the display theme</pre>
</div>
<div title="$:/language/Buttons/Timestamp/Caption">
<pre>timestamps</pre>
</div>
<div title="$:/language/Buttons/Timestamp/Hint">
<pre>Choose whether modifications update timestamps</pre>
</div>
<div title="$:/language/Buttons/Timestamp/Off/Caption">
<pre>timestamps are off</pre>
</div>
<div title="$:/language/Buttons/Timestamp/Off/Hint">
<pre>Don't update timestamps when tiddlers are modified</pre>
</div>
<div title="$:/language/Buttons/Timestamp/On/Caption">
<pre>timestamps are on</pre>
</div>
<div title="$:/language/Buttons/Timestamp/On/Hint">
<pre>Update timestamps when tiddlers are modified</pre>
</div>
<div title="$:/language/Buttons/ToggleSidebar/Hint">
<pre>Toggle the sidebar visibility</pre>
</div>
<div title="$:/language/Buttons/Transcludify/Caption">
<pre>transclusion</pre>
</div>
<div title="$:/language/Buttons/Transcludify/Hint">
<pre>Wrap selection in curly brackets</pre>
</div>
<div title="$:/language/Buttons/Underline/Caption">
<pre>underline</pre>
</div>
<div title="$:/language/Buttons/Underline/Hint">
<pre>Apply underline formatting to selection</pre>
</div>
<div title="$:/language/Buttons/Unfold/Caption">
<pre>unfold tiddler</pre>
</div>
<div title="$:/language/Buttons/Unfold/Hint">
<pre>Unfold the body of this tiddler</pre>
</div>
<div title="$:/language/Buttons/UnfoldAll/Caption">
<pre>unfold all tiddlers</pre>
</div>
<div title="$:/language/Buttons/UnfoldAll/Hint">
<pre>Unfold the bodies of all opened tiddlers</pre>
</div>
<div title="$:/language/ClassicWarning/Hint">
<pre>This tiddler is written in TiddlyWiki Classic wiki text format, which is not fully compatible with TiddlyWiki version 5. See https://tiddlywiki.com/static/Upgrading.html for more details.</pre>
</div>
<div title="$:/language/ClassicWarning/Upgrade/Caption">
<pre>upgrade</pre>
</div>
<div title="$:/language/CloseAll/Button">
<pre>close all</pre>
</div>
<div title="$:/language/ColourPicker/Recent">
<pre>Recent:</pre>
</div>
<div title="$:/language/ConfirmCancelTiddler">
<pre>Do you wish to discard changes to the tiddler &quot;&lt;$text text=&lt;&lt;title&gt;&gt;/&gt;&quot;?</pre>
</div>
<div title="$:/language/ConfirmDeleteTiddler">
<pre>Do you wish to delete the tiddler &quot;&lt;$text text=&lt;&lt;title&gt;&gt;/&gt;&quot;?</pre>
</div>
<div title="$:/language/ConfirmEditShadowTiddler">
<pre>You are about to edit a ShadowTiddler. Any changes will override the default system making future upgrades non-trivial. Are you sure you want to edit &quot;&lt;$text text=&lt;&lt;title&gt;&gt;/&gt;&quot;?</pre>
</div>
<div title="$:/language/ConfirmOverwriteTiddler">
<pre>Do you wish to overwrite the tiddler &quot;&lt;$text text=&lt;&lt;title&gt;&gt;/&gt;&quot;?</pre>
</div>
<div title="$:/language/ControlPanel/Advanced/Caption">
<pre>Advanced</pre>
</div>
<div title="$:/language/ControlPanel/Advanced/Hint">
<pre>Internal information about this TiddlyWiki</pre>
</div>
<div title="$:/language/ControlPanel/Appearance/Caption">
<pre>Appearance</pre>
</div>
<div title="$:/language/ControlPanel/Appearance/Hint">
<pre>Ways to customise the appearance of your TiddlyWiki.</pre>
</div>
<div title="$:/language/ControlPanel/Basics/AnimDuration/Prompt">
<pre>Animation duration</pre>
</div>
<div title="$:/language/ControlPanel/Basics/AutoFocus/Prompt">
<pre>Default focus field for new tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Basics/Caption">
<pre>Basics</pre>
</div>
<div title="$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint">
<pre>Use &amp;#91;&amp;#91;double square brackets&amp;#93;&amp;#93; for titles with spaces. Or you can choose to &lt;$button set=&quot;$:/DefaultTiddlers&quot; setTo=&quot;[list[$:/StoryList]]&quot;&gt;retain story ordering&lt;/$button&gt;</pre>
</div>
<div title="$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt">
<pre>Default tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint">
<pre>Choose which tiddlers are displayed at startup</pre>
</div>
<div title="$:/language/ControlPanel/Basics/Language/Prompt">
<pre>Hello! Current language:</pre>
</div>
<div title="$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt">
<pre>Tags for new journal tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Basics/NewJournal/Text/Prompt">
<pre>Text for new journal tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Basics/NewJournal/Title/Prompt">
<pre>Title of new journal tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Basics/NewTiddler/Tags/Prompt">
<pre>Tags for new tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt">
<pre>Title of new tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt">
<pre>Number of overridden shadow tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt">
<pre>Number of shadow tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Basics/Subtitle/Prompt">
<pre>Subtitle</pre>
</div>
<div title="$:/language/ControlPanel/Basics/SystemTiddlers/Prompt">
<pre>Number of system tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Basics/Tags/Prompt">
<pre>Number of tags</pre>
</div>
<div title="$:/language/ControlPanel/Basics/Tiddlers/Prompt">
<pre>Number of tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Basics/Title/Prompt">
<pre>Title of this ~TiddlyWiki</pre>
</div>
<div title="$:/language/ControlPanel/Basics/Username/Prompt">
<pre>Username for signing edits</pre>
</div>
<div title="$:/language/ControlPanel/Basics/Version/Prompt">
<pre>~TiddlyWiki version</pre>
</div>
<div title="$:/language/ControlPanel/EditorTypes/Caption">
<pre>Editor Types</pre>
</div>
<div title="$:/language/ControlPanel/EditorTypes/Editor/Caption">
<pre>Editor</pre>
</div>
<div title="$:/language/ControlPanel/EditorTypes/Hint">
<pre>These tiddlers determine which editor is used to edit specific tiddler types.</pre>
</div>
<div title="$:/language/ControlPanel/EditorTypes/Type/Caption">
<pre>Type</pre>
</div>
<div title="$:/language/ControlPanel/Info/Caption">
<pre>Info</pre>
</div>
<div title="$:/language/ControlPanel/Info/Hint">
<pre>Information about this TiddlyWiki</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Add/Caption">
<pre>add shortcut</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt">
<pre>Type shortcut here</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Caption">
<pre>Keyboard Shortcuts</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Hint">
<pre>Manage keyboard shortcut assignments</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption">
<pre>No keyboard shortcuts assigned</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Platform/All">
<pre>All platforms</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux">
<pre>Linux platform only</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac">
<pre>Macintosh platform only</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux">
<pre>Non-Linux platforms only</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac">
<pre>Non-Macintosh platforms only</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows">
<pre>Non-Windows platforms only</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows">
<pre>Windows platform only</pre>
</div>
<div title="$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint">
<pre>remove keyboard shortcut</pre>
</div>
<div title="$:/language/ControlPanel/LoadedModules/Caption">
<pre>Loaded Modules</pre>
</div>
<div title="$:/language/ControlPanel/LoadedModules/Hint">
<pre>These are the currently loaded tiddler modules linked to their source tiddlers. Any italicised modules lack a source tiddler, typically because they were setup during the boot process.</pre>
</div>
<div title="$:/language/ControlPanel/Palette/Caption">
<pre>Palette</pre>
</div>
<div title="$:/language/ControlPanel/Palette/Editor/Clone/Caption">
<pre>clone</pre>
</div>
<div title="$:/language/ControlPanel/Palette/Editor/Clone/Prompt">
<pre>It is recommended that you clone this shadow palette before editing it</pre>
</div>
<div title="$:/language/ControlPanel/Palette/Editor/Delete/Hint">
<pre>delete this entry from the current palette</pre>
</div>
<div title="$:/language/ControlPanel/Palette/Editor/Names/External/Show">
<pre>Show color names that are not part of the current palette</pre>
</div>
<div title="$:/language/ControlPanel/Palette/Editor/Prompt">
<pre>Editing</pre>
</div>
<div title="$:/language/ControlPanel/Palette/Editor/Prompt/Modified">
<pre>This shadow palette has been modified</pre>
</div>
<div title="$:/language/ControlPanel/Palette/Editor/Reset/Caption">
<pre>reset</pre>
</div>
<div title="$:/language/ControlPanel/Palette/HideEditor/Caption">
<pre>hide editor</pre>
</div>
<div title="$:/language/ControlPanel/Palette/Prompt">
<pre>Current palette:</pre>
</div>
<div title="$:/language/ControlPanel/Palette/ShowEditor/Caption">
<pre>show editor</pre>
</div>
<div title="$:/language/ControlPanel/Parsing/Block/Caption">
<pre>Block Parse Rules</pre>
</div>
<div title="$:/language/ControlPanel/Parsing/Caption">
<pre>Parsing</pre>
</div>
<div title="$:/language/ControlPanel/Parsing/Hint">
<pre>Here you can globally disable/enable wiki parser rules. For changes to take effect, save and reload your wiki. Disabling certain parser rules can prevent &lt;$text text=&quot;TiddlyWiki&quot;/&gt; from functioning correctly. Use [[safe mode|https://tiddlywiki.com/#SafeMode]] to restore normal operation.</pre>
</div>
<div title="$:/language/ControlPanel/Parsing/Inline/Caption">
<pre>Inline Parse Rules</pre>
</div>
<div title="$:/language/ControlPanel/Parsing/Pragma/Caption">
<pre>Pragma Parse Rules</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Add/Caption">
<pre>Get more plugins</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Add/Hint">
<pre>Install plugins from the official library</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint">
<pre>This plugin is already installed at version &lt;$text text=&lt;&lt;installedVersion&gt;&gt;/&gt;</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/AlsoRequires">
<pre>Also requires:</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Caption">
<pre>Plugins</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/ClosePluginLibrary">
<pre>close plugin library</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Disable/Caption">
<pre>disable</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Disable/Hint">
<pre>Disable this plugin when reloading page</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Disabled/Status">
<pre>(disabled)</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Downgrade/Caption">
<pre>downgrade</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Empty/Hint">
<pre>None</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Enable/Caption">
<pre>enable</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Enable/Hint">
<pre>Enable this plugin when reloading page</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Install/Caption">
<pre>install</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Installed/Hint">
<pre>Currently installed plugins:</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Languages/Caption">
<pre>Languages</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Languages/Hint">
<pre>Language pack plugins</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/NoInfoFound/Hint">
<pre>No ''&quot;&lt;$text text=&lt;&lt;currentTab&gt;&gt;/&gt;&quot;'' found</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/NotInstalled/Hint">
<pre>This plugin is not currently installed</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/OpenPluginLibrary">
<pre>open plugin library</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Plugins/Caption">
<pre>Plugins</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Plugins/Hint">
<pre>Plugins</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/PluginWillRequireReload">
<pre>(requires reload)</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Reinstall/Caption">
<pre>reinstall</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/SubPluginPrompt">
<pre>With &lt;&lt;count&gt;&gt; sub-plugins available</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Themes/Caption">
<pre>Themes</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Themes/Hint">
<pre>Theme plugins</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Update/Caption">
<pre>update</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Updates/Caption">
<pre>Updates</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Updates/Hint">
<pre>Available updates to installed plugins</pre>
</div>
<div title="$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption">
<pre>Update &lt;&lt;update-count&gt;&gt; plugins</pre>
</div>
<div title="$:/language/ControlPanel/Saving/Caption">
<pre>Saving</pre>
</div>
<div title="$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Description">
<pre>Permit automatic saving for the download saver</pre>
</div>
<div title="$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Hint">
<pre>Enable Autosave for Download Saver</pre>
</div>
<div title="$:/language/ControlPanel/Saving/DownloadSaver/Caption">
<pre>Download Saver</pre>
</div>
<div title="$:/language/ControlPanel/Saving/DownloadSaver/Hint">
<pre>These settings apply to the HTML5-compatible download saver</pre>
</div>
<div title="$:/language/ControlPanel/Saving/General/Caption">
<pre>General</pre>
</div>
<div title="$:/language/ControlPanel/Saving/General/Hint">
<pre>These settings apply to all the loaded savers</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/Branch">
<pre>Target branch for saving</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/CommitMessage">
<pre>Saved by TiddlyWiki</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/Description">
<pre>These settings are only used when saving to &lt;&lt;service-name&gt;&gt;</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/Filename">
<pre>Filename of target file (e.g. `index.html`)</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/Gitea/Caption">
<pre>Gitea Saver</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/Gitea/Password">
<pre>Personal access token for API (via Giteas web interface: `Settings | Applications | Generate New Token`)</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/GitHub/Caption">
<pre>~GitHub Saver</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/GitHub/Password">
<pre>Password, OAUTH token, or personal access token (see [[GitHub help page|https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line]] for details)</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/GitLab/Caption">
<pre>~GitLab Saver</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/GitLab/Password">
<pre>Personal access token for API (see [[GitLab help page|https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html]] for details)</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/Path">
<pre>Path to target file (e.g. `/wiki/`)</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/Repo">
<pre>Target repository (e.g. `Jermolene/TiddlyWiki5`)</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/ServerURL">
<pre>Server API URL</pre>
</div>
<div title="$:/language/ControlPanel/Saving/GitService/UserName">
<pre>Username</pre>
</div>
<div title="$:/language/ControlPanel/Saving/Hint">
<pre>Settings used for saving the entire TiddlyWiki as a single file via a saver module</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading">
<pre>Advanced Settings</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/BackupDir">
<pre>Backup Directory</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/Backups">
<pre>Backups</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/Caption">
<pre>~TiddlySpot Saver</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/Description">
<pre>These settings are only used when saving to http://tiddlyspot.com or a compatible remote server</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/Filename">
<pre>Upload Filename</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/Heading">
<pre>~TiddlySpot</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/Hint">
<pre>//The server URL defaults to `http://&lt;wikiname&gt;.tiddlyspot.com/store.cgi` and can be changed to use a custom server address, e.g. `http://example.com/store.php`.//</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/Password">
<pre>Password</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/ServerURL">
<pre>Server URL</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/UploadDir">
<pre>Upload Directory</pre>
</div>
<div title="$:/language/ControlPanel/Saving/TiddlySpot/UserName">
<pre>Wiki Name</pre>
</div>
<div title="$:/language/ControlPanel/Settings/AutoSave/Caption">
<pre>Autosave</pre>
</div>
<div title="$:/language/ControlPanel/Settings/AutoSave/Disabled/Description">
<pre>Do not save changes automatically</pre>
</div>
<div title="$:/language/ControlPanel/Settings/AutoSave/Enabled/Description">
<pre>Save changes automatically</pre>
</div>
<div title="$:/language/ControlPanel/Settings/AutoSave/Hint">
<pre>Attempt to automatically save changes during editing when using a supporting saver</pre>
</div>
<div title="$:/language/ControlPanel/Settings/CamelCase/Caption">
<pre>Camel Case Wiki Links</pre>
</div>
<div title="$:/language/ControlPanel/Settings/CamelCase/Description">
<pre>Enable automatic ~CamelCase linking</pre>
</div>
<div title="$:/language/ControlPanel/Settings/CamelCase/Hint">
<pre>You can globally disable automatic linking of ~CamelCase phrases. Requires reload to take effect</pre>
</div>
<div title="$:/language/ControlPanel/Settings/Caption">
<pre>Settings</pre>
</div>
<div title="$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption">
<pre>Default More Sidebar Tab</pre>
</div>
<div title="$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Hint">
<pre>Specify which More sidebar tab is displayed by default</pre>
</div>
<div title="$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption">
<pre>Default Sidebar Tab</pre>
</div>
<div title="$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint">
<pre>Specify which sidebar tab is displayed by default</pre>
</div>
<div title="$:/language/ControlPanel/Settings/EditorToolbar/Caption">
<pre>Editor Toolbar</pre>
</div>
<div title="$:/language/ControlPanel/Settings/EditorToolbar/Description">
<pre>Show editor toolbar</pre>
</div>
<div title="$:/language/ControlPanel/Settings/EditorToolbar/Hint">
<pre>Enable or disable the editor toolbar:</pre>
</div>
<div title="$:/language/ControlPanel/Settings/Hint">
<pre>These settings let you customise the behaviour of TiddlyWiki.</pre>
</div>
<div title="$:/language/ControlPanel/Settings/InfoPanelMode/Caption">
<pre>Tiddler Info Panel Mode</pre>
</div>
<div title="$:/language/ControlPanel/Settings/InfoPanelMode/Hint">
<pre>Control when the tiddler info panel closes:</pre>
</div>
<div title="$:/language/ControlPanel/Settings/InfoPanelMode/Popup/Description">
<pre>Tiddler info panel closes automatically</pre>
</div>
<div title="$:/language/ControlPanel/Settings/InfoPanelMode/Sticky/Description">
<pre>Tiddler info panel stays open until explicitly closed</pre>
</div>
<div title="$:/language/ControlPanel/Settings/LinkToBehaviour/Caption">
<pre>Tiddler Opening Behaviour</pre>
</div>
<div title="$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint">
<pre>Navigation from //within// the story river</pre>
</div>
<div title="$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove">
<pre>Open above the current tiddler</pre>
</div>
<div title="$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom">
<pre>Open at the bottom of the story river</pre>
</div>
<div title="$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop">
<pre>Open at the top of the story river</pre>
</div>
<div title="$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow">
<pre>Open below the current tiddler</pre>
</div>
<div title="$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint">
<pre>Navigation from //outside// the story river</pre>
</div>
<div title="$:/language/ControlPanel/Settings/MissingLinks/Caption">
<pre>Wiki Links</pre>
</div>
<div title="$:/language/ControlPanel/Settings/MissingLinks/Description">
<pre>Enable links to missing tiddlers</pre>
</div>
<div title="$:/language/ControlPanel/Settings/MissingLinks/Hint">
<pre>Choose whether to link to tiddlers that do not exist yet</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationAddressBar/Caption">
<pre>Navigation Address Bar</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationAddressBar/Hint">
<pre>Behaviour of the browser address bar when navigating to a tiddler:</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description">
<pre>Do not update the address bar</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description">
<pre>Include the target tiddler</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description">
<pre>Include the target tiddler and the current story sequence</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationHistory/Caption">
<pre>Navigation History</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationHistory/Hint">
<pre>Update browser history when navigating to a tiddler:</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationHistory/No/Description">
<pre>Do not update history</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description">
<pre>Update history</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption">
<pre>Permalink/permaview Mode</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/CopyToClipboard/Description">
<pre>Copy permalink/permaview URL to clipboard</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Hint">
<pre>Choose how permalink/permaview is handled:</pre>
</div>
<div title="$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description">
<pre>Update address bar with permalink/permaview URL</pre>
</div>
<div title="$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption">
<pre>Performance Instrumentation</pre>
</div>
<div title="$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description">
<pre>Enable performance instrumentation</pre>
</div>
<div title="$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint">
<pre>Displays performance statistics in the browser developer console. Requires reload to take effect</pre>
</div>
<div title="$:/language/ControlPanel/Settings/TitleLinks/Caption">
<pre>Tiddler Titles</pre>
</div>
<div title="$:/language/ControlPanel/Settings/TitleLinks/Hint">
<pre>Optionally display tiddler titles as links</pre>
</div>
<div title="$:/language/ControlPanel/Settings/TitleLinks/No/Description">
<pre>Do not display tiddler titles as links</pre>
</div>
<div title="$:/language/ControlPanel/Settings/TitleLinks/Yes/Description">
<pre>Display tiddler titles as links</pre>
</div>
<div title="$:/language/ControlPanel/Settings/ToolbarButtons/Caption">
<pre>Toolbar Buttons</pre>
</div>
<div title="$:/language/ControlPanel/Settings/ToolbarButtons/Hint">
<pre>Default toolbar button appearance:</pre>
</div>
<div title="$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description">
<pre>Include icon</pre>
</div>
<div title="$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description">
<pre>Include text</pre>
</div>
<div title="$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption">
<pre>Toolbar Button Style</pre>
</div>
<div title="$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint">
<pre>Choose the style for toolbar buttons:</pre>
</div>
<div title="$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless">
<pre>Borderless</pre>
</div>
<div title="$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed">
<pre>Boxed</pre>
</div>
<div title="$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded">
<pre>Rounded</pre>
</div>
<div title="$:/language/ControlPanel/StoryView/Caption">
<pre>Story View</pre>
</div>
<div title="$:/language/ControlPanel/StoryView/Prompt">
<pre>Current view:</pre>
</div>
<div title="$:/language/ControlPanel/Stylesheets/Caption">
<pre>Stylesheets</pre>
</div>
<div title="$:/language/ControlPanel/Stylesheets/Expand/Caption">
<pre>Expand All</pre>
</div>
<div title="$:/language/ControlPanel/Stylesheets/Hint">
<pre>This is the rendered CSS of the current stylesheet tiddlers tagged with &lt;&lt;tag &quot;$:/tags/Stylesheet&quot;&gt;&gt;</pre>
</div>
<div title="$:/language/ControlPanel/Stylesheets/Restore/Caption">
<pre>Restore</pre>
</div>
<div title="$:/language/ControlPanel/Theme/Caption">
<pre>Theme</pre>
</div>
<div title="$:/language/ControlPanel/Theme/Prompt">
<pre>Current theme:</pre>
</div>
<div title="$:/language/ControlPanel/TiddlerFields/Caption">
<pre>Tiddler Fields</pre>
</div>
<div title="$:/language/ControlPanel/TiddlerFields/Hint">
<pre>This is the full set of TiddlerFields in use in this wiki (including system tiddlers but excluding shadow tiddlers).</pre>
</div>
<div title="$:/language/ControlPanel/Toolbars/Caption">
<pre>Toolbars</pre>
</div>
<div title="$:/language/ControlPanel/Toolbars/EditorToolbar/Caption">
<pre>Editor Toolbar</pre>
</div>
<div title="$:/language/ControlPanel/Toolbars/EditorToolbar/Hint">
<pre>Choose which buttons are displayed in the editor toolbar. Note that some buttons will only appear when editing tiddlers of a certain type. Drag and drop to change the ordering</pre>
</div>
<div title="$:/language/ControlPanel/Toolbars/EditToolbar/Caption">
<pre>Edit Toolbar</pre>
</div>
<div title="$:/language/ControlPanel/Toolbars/EditToolbar/Hint">
<pre>Choose which buttons are displayed for tiddlers in edit mode. Drag and drop to change the ordering</pre>
</div>
<div title="$:/language/ControlPanel/Toolbars/Hint">
<pre>Select which toolbar buttons are displayed</pre>
</div>
<div title="$:/language/ControlPanel/Toolbars/PageControls/Caption">
<pre>Page Toolbar</pre>
</div>
<div title="$:/language/ControlPanel/Toolbars/PageControls/Hint">
<pre>Choose which buttons are displayed on the main page toolbar. Drag and drop to change the ordering</pre>
</div>
<div title="$:/language/ControlPanel/Toolbars/ViewToolbar/Caption">
<pre>View Toolbar</pre>
</div>
<div title="$:/language/ControlPanel/Toolbars/ViewToolbar/Hint">
<pre>Choose which buttons are displayed for tiddlers in view mode. Drag and drop to change the ordering</pre>
</div>
<div title="$:/language/ControlPanel/Tools/Download/Full/Caption">
<pre>Download full wiki</pre>
</div>
<div title="$:/language/Count">
<pre>count</pre>
</div>
<div title="$:/language/Date/DaySuffix/1">
<pre>st</pre>
</div>
<div title="$:/language/Date/DaySuffix/10">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/11">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/12">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/13">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/14">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/15">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/16">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/17">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/18">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/19">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/2">
<pre>nd</pre>
</div>
<div title="$:/language/Date/DaySuffix/20">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/21">
<pre>st</pre>
</div>
<div title="$:/language/Date/DaySuffix/22">
<pre>nd</pre>
</div>
<div title="$:/language/Date/DaySuffix/23">
<pre>rd</pre>
</div>
<div title="$:/language/Date/DaySuffix/24">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/25">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/26">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/27">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/28">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/29">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/3">
<pre>rd</pre>
</div>
<div title="$:/language/Date/DaySuffix/30">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/31">
<pre>st</pre>
</div>
<div title="$:/language/Date/DaySuffix/4">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/5">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/6">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/7">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/8">
<pre>th</pre>
</div>
<div title="$:/language/Date/DaySuffix/9">
<pre>th</pre>
</div>
<div title="$:/language/Date/Long/Day/0">
<pre>Sunday</pre>
</div>
<div title="$:/language/Date/Long/Day/1">
<pre>Monday</pre>
</div>
<div title="$:/language/Date/Long/Day/2">
<pre>Tuesday</pre>
</div>
<div title="$:/language/Date/Long/Day/3">
<pre>Wednesday</pre>
</div>
<div title="$:/language/Date/Long/Day/4">
<pre>Thursday</pre>
</div>
<div title="$:/language/Date/Long/Day/5">
<pre>Friday</pre>
</div>
<div title="$:/language/Date/Long/Day/6">
<pre>Saturday</pre>
</div>
<div title="$:/language/Date/Long/Month/1">
<pre>January</pre>
</div>
<div title="$:/language/Date/Long/Month/10">
<pre>October</pre>
</div>
<div title="$:/language/Date/Long/Month/11">
<pre>November</pre>
</div>
<div title="$:/language/Date/Long/Month/12">
<pre>December</pre>
</div>
<div title="$:/language/Date/Long/Month/2">
<pre>February</pre>
</div>
<div title="$:/language/Date/Long/Month/3">
<pre>March</pre>
</div>
<div title="$:/language/Date/Long/Month/4">
<pre>April</pre>
</div>
<div title="$:/language/Date/Long/Month/5">
<pre>May</pre>
</div>
<div title="$:/language/Date/Long/Month/6">
<pre>June</pre>
</div>
<div title="$:/language/Date/Long/Month/7">
<pre>July</pre>
</div>
<div title="$:/language/Date/Long/Month/8">
<pre>August</pre>
</div>
<div title="$:/language/Date/Long/Month/9">
<pre>September</pre>
</div>
<div title="$:/language/Date/Period/am">
<pre>am</pre>
</div>
<div title="$:/language/Date/Period/pm">
<pre>pm</pre>
</div>
<div title="$:/language/Date/Short/Day/0">
<pre>Sun</pre>
</div>
<div title="$:/language/Date/Short/Day/1">
<pre>Mon</pre>
</div>
<div title="$:/language/Date/Short/Day/2">
<pre>Tue</pre>
</div>
<div title="$:/language/Date/Short/Day/3">
<pre>Wed</pre>
</div>
<div title="$:/language/Date/Short/Day/4">
<pre>Thu</pre>
</div>
<div title="$:/language/Date/Short/Day/5">
<pre>Fri</pre>
</div>
<div title="$:/language/Date/Short/Day/6">
<pre>Sat</pre>
</div>
<div title="$:/language/Date/Short/Month/1">
<pre>Jan</pre>
</div>
<div title="$:/language/Date/Short/Month/10">
<pre>Oct</pre>
</div>
<div title="$:/language/Date/Short/Month/11">
<pre>Nov</pre>
</div>
<div title="$:/language/Date/Short/Month/12">
<pre>Dec</pre>
</div>
<div title="$:/language/Date/Short/Month/2">
<pre>Feb</pre>
</div>
<div title="$:/language/Date/Short/Month/3">
<pre>Mar</pre>
</div>
<div title="$:/language/Date/Short/Month/4">
<pre>Apr</pre>
</div>
<div title="$:/language/Date/Short/Month/5">
<pre>May</pre>
</div>
<div title="$:/language/Date/Short/Month/6">
<pre>Jun</pre>
</div>
<div title="$:/language/Date/Short/Month/7">
<pre>Jul</pre>
</div>
<div title="$:/language/Date/Short/Month/8">
<pre>Aug</pre>
</div>
<div title="$:/language/Date/Short/Month/9">
<pre>Sep</pre>
</div>
<div title="$:/language/DefaultNewTiddlerTitle">
<pre>New Tiddler</pre>
</div>
<div title="$:/language/Diffs/CountMessage">
<pre>&lt;&lt;diff-count&gt;&gt; differences</pre>
</div>
<div title="$:/language/Docs/Fields/_canonical_uri">
<pre>The full URI of an external image tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/_is_skinny">
<pre>If present, indicates that the tiddler text field must be loaded from the server</pre>
</div>
<div title="$:/language/Docs/Fields/bag">
<pre>The name of the bag from which a tiddler came</pre>
</div>
<div title="$:/language/Docs/Fields/caption">
<pre>The text to be displayed on a tab or button</pre>
</div>
<div title="$:/language/Docs/Fields/color">
<pre>The CSS color value associated with a tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/component">
<pre>The name of the component responsible for an [[alert tiddler|AlertMechanism]]</pre>
</div>
<div title="$:/language/Docs/Fields/created">
<pre>The date a tiddler was created</pre>
</div>
<div title="$:/language/Docs/Fields/creator">
<pre>The name of the person who created a tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/current-tiddler">
<pre>Used to cache the top tiddler in a [[history list|HistoryMechanism]]</pre>
</div>
<div title="$:/language/Docs/Fields/dependents">
<pre>For a plugin, lists the dependent plugin titles</pre>
</div>
<div title="$:/language/Docs/Fields/description">
<pre>The descriptive text for a plugin, or a modal dialogue</pre>
</div>
<div title="$:/language/Docs/Fields/draft.of">
<pre>For draft tiddlers, contains the title of the tiddler of which this is a draft</pre>
</div>
<div title="$:/language/Docs/Fields/draft.title">
<pre>For draft tiddlers, contains the proposed new title of the tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/footer">
<pre>The footer text for a wizard</pre>
</div>
<div title="$:/language/Docs/Fields/hide-body">
<pre>The view template will hide bodies of tiddlers if set to: ''yes''</pre>
</div>
<div title="$:/language/Docs/Fields/icon">
<pre>The title of the tiddler containing the icon associated with a tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/library">
<pre>Indicates that a tiddler should be saved as a JavaScript library if set to: ''yes''</pre>
</div>
<div title="$:/language/Docs/Fields/list">
<pre>An ordered list of tiddler titles associated with a tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/list-after">
<pre>If set, the title of the tiddler after which this tiddler should be added to the ordered list of tiddler titles, or at the end of the list if this field is present but empty</pre>
</div>
<div title="$:/language/Docs/Fields/list-before">
<pre>If set, the title of a tiddler before which this tiddler should be added to the ordered list of tiddler titles, or at the start of the list if this field is present but empty</pre>
</div>
<div title="$:/language/Docs/Fields/modified">
<pre>The date and time at which a tiddler was last modified</pre>
</div>
<div title="$:/language/Docs/Fields/modifier">
<pre>The tiddler title associated with the person who last modified a tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/name">
<pre>The human readable name associated with a plugin tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/plugin-priority">
<pre>A numerical value indicating the priority of a plugin tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/plugin-type">
<pre>The type of plugin in a plugin tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/released">
<pre>Date of a TiddlyWiki release</pre>
</div>
<div title="$:/language/Docs/Fields/revision">
<pre>The revision of the tiddler held at the server</pre>
</div>
<div title="$:/language/Docs/Fields/source">
<pre>The source URL associated with a tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/subtitle">
<pre>The subtitle text for a wizard</pre>
</div>
<div title="$:/language/Docs/Fields/tags">
<pre>A list of tags associated with a tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/text">
<pre>The body text of a tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/throttle.refresh">
<pre>If present, throttles refreshes of this tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/title">
<pre>The unique name of a tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/toc-link">
<pre>Suppresses the tiddler's link in a Table of Contents tree if set to: ''no''</pre>
</div>
<div title="$:/language/Docs/Fields/type">
<pre>The content type of a tiddler</pre>
</div>
<div title="$:/language/Docs/Fields/version">
<pre>Version information for a plugin</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/allfilteroperator">
<pre>A sub-operator for the ''all'' filter operator.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/animation">
<pre>Animations that may be used with the RevealWidget.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/authenticator">
<pre>Defines how requests are authenticated by the built-in HTTP server.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/bitmapeditoroperation">
<pre>A bitmap editor toolbar operation.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/command">
<pre>Commands that can be executed under Node.js.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/config">
<pre>Data to be inserted into `$tw.config`.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/filteroperator">
<pre>Individual filter operator methods.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/global">
<pre>Global data to be inserted into `$tw`.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/info">
<pre>Publishes system information via the [[$:/temp/info-plugin]] pseudo-plugin.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/isfilteroperator">
<pre>Operands for the ''is'' filter operator.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/library">
<pre>Generic module type for general purpose JavaScript modules.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/macro">
<pre>JavaScript macro definitions.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/parser">
<pre>Parsers for different content types.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/route">
<pre>Defines how individual URL patterns are handled by the built-in HTTP server.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/saver">
<pre>Savers handle different methods for saving files from the browser.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/startup">
<pre>Startup functions.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/storyview">
<pre>Story views customise the animation and behaviour of list widgets.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/texteditoroperation">
<pre>A text editor toolbar operation.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/tiddlerdeserializer">
<pre>Converts different content types into tiddlers.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/tiddlerfield">
<pre>Defines the behaviour of an individual tiddler field.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/tiddlermethod">
<pre>Adds methods to the `$tw.Tiddler` prototype.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/upgrader">
<pre>Applies upgrade processing to tiddlers during an upgrade/import.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/utils">
<pre>Adds methods to `$tw.utils`.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/utils-node">
<pre>Adds Node.js-specific methods to `$tw.utils`.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/widget">
<pre>Widgets encapsulate DOM rendering and refreshing.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/wikimethod">
<pre>Adds methods to `$tw.Wiki`.</pre>
</div>
<div title="$:/language/Docs/ModuleTypes/wikirule">
<pre>Individual parser rules for the main WikiText parser.</pre>
</div>
<div title="$:/language/Docs/PaletteColours/alert-background">
<pre>Alert background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/alert-border">
<pre>Alert border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/alert-highlight">
<pre>Alert highlight</pre>
</div>
<div title="$:/language/Docs/PaletteColours/alert-muted-foreground">
<pre>Alert muted foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/background">
<pre>General background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/blockquote-bar">
<pre>Blockquote bar</pre>
</div>
<div title="$:/language/Docs/PaletteColours/button-background">
<pre>Default button background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/button-border">
<pre>Default button border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/button-foreground">
<pre>Default button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/code-background">
<pre>Code background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/code-border">
<pre>Code border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/code-foreground">
<pre>Code foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/dirty-indicator">
<pre>Unsaved changes indicator</pre>
</div>
<div title="$:/language/Docs/PaletteColours/download-background">
<pre>Download button background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/download-foreground">
<pre>Download button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/dragger-background">
<pre>Dragger background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/dragger-foreground">
<pre>Dragger foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/dropdown-background">
<pre>Dropdown background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/dropdown-border">
<pre>Dropdown border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/dropdown-tab-background">
<pre>Dropdown tab background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/dropdown-tab-background-selected">
<pre>Dropdown tab background for selected tabs</pre>
</div>
<div title="$:/language/Docs/PaletteColours/dropzone-background">
<pre>Dropzone background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/external-link-background">
<pre>External link background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/external-link-background-hover">
<pre>External link background hover</pre>
</div>
<div title="$:/language/Docs/PaletteColours/external-link-background-visited">
<pre>External link background visited</pre>
</div>
<div title="$:/language/Docs/PaletteColours/external-link-foreground">
<pre>External link foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/external-link-foreground-hover">
<pre>External link foreground hover</pre>
</div>
<div title="$:/language/Docs/PaletteColours/external-link-foreground-visited">
<pre>External link foreground visited</pre>
</div>
<div title="$:/language/Docs/PaletteColours/foreground">
<pre>General foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/menubar-background">
<pre>Menu bar background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/menubar-foreground">
<pre>Menu bar foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/message-background">
<pre>Message box background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/message-border">
<pre>Message box border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/message-foreground">
<pre>Message box foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/modal-backdrop">
<pre>Modal backdrop</pre>
</div>
<div title="$:/language/Docs/PaletteColours/modal-background">
<pre>Modal background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/modal-border">
<pre>Modal border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/modal-footer-background">
<pre>Modal footer background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/modal-footer-border">
<pre>Modal footer border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/modal-header-border">
<pre>Modal header border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/muted-foreground">
<pre>General muted foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/notification-background">
<pre>Notification background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/notification-border">
<pre>Notification border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/page-background">
<pre>Page background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/pre-background">
<pre>Preformatted code background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/pre-border">
<pre>Preformatted code border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/primary">
<pre>General primary</pre>
</div>
<div title="$:/language/Docs/PaletteColours/select-tag-background">
<pre>`&lt;select&gt;` element background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/select-tag-foreground">
<pre>`&lt;select&gt;` element text</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-button-foreground">
<pre>Sidebar button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-controls-foreground">
<pre>Sidebar controls foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-controls-foreground-hover">
<pre>Sidebar controls foreground hover</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-foreground">
<pre>Sidebar foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-foreground-shadow">
<pre>Sidebar foreground shadow</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-muted-foreground">
<pre>Sidebar muted foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-muted-foreground-hover">
<pre>Sidebar muted foreground hover</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-tab-background">
<pre>Sidebar tab background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-tab-background-selected">
<pre>Sidebar tab background for selected tabs</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-tab-border">
<pre>Sidebar tab border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-tab-border-selected">
<pre>Sidebar tab border for selected tabs</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-tab-divider">
<pre>Sidebar tab divider</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-tab-foreground">
<pre>Sidebar tab foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-tab-foreground-selected">
<pre>Sidebar tab foreground for selected tabs</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground">
<pre>Sidebar tiddler link foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground-hover">
<pre>Sidebar tiddler link foreground hover</pre>
</div>
<div title="$:/language/Docs/PaletteColours/site-title-foreground">
<pre>Site title foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/static-alert-foreground">
<pre>Static alert foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tab-background">
<pre>Tab background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tab-background-selected">
<pre>Tab background for selected tabs</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tab-border">
<pre>Tab border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tab-border-selected">
<pre>Tab border for selected tabs</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tab-divider">
<pre>Tab divider</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tab-foreground">
<pre>Tab foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tab-foreground-selected">
<pre>Tab foreground for selected tabs</pre>
</div>
<div title="$:/language/Docs/PaletteColours/table-border">
<pre>Table border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/table-footer-background">
<pre>Table footer background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/table-header-background">
<pre>Table header background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tag-background">
<pre>Tag background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tag-foreground">
<pre>Tag foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-background">
<pre>Tiddler background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-border">
<pre>Tiddler border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-controls-foreground">
<pre>Tiddler controls foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-controls-foreground-hover">
<pre>Tiddler controls foreground hover</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-controls-foreground-selected">
<pre>Tiddler controls foreground for selected controls</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-editor-background">
<pre>Tiddler editor background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-editor-border">
<pre>Tiddler editor border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-editor-border-image">
<pre>Tiddler editor border image</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-editor-fields-even">
<pre>Tiddler editor background for even fields</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-editor-fields-odd">
<pre>Tiddler editor background for odd fields</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-info-background">
<pre>Tiddler info panel background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-info-border">
<pre>Tiddler info panel border</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-info-tab-background">
<pre>Tiddler info panel tab background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-link-background">
<pre>Tiddler link background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-link-foreground">
<pre>Tiddler link foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-subtitle-foreground">
<pre>Tiddler subtitle foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/tiddler-title-foreground">
<pre>Tiddler title foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/toolbar-cancel-button">
<pre>Toolbar 'cancel' button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/toolbar-close-button">
<pre>Toolbar 'close' button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/toolbar-delete-button">
<pre>Toolbar 'delete' button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/toolbar-done-button">
<pre>Toolbar 'done' button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/toolbar-edit-button">
<pre>Toolbar 'edit' button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/toolbar-info-button">
<pre>Toolbar 'info' button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/toolbar-new-button">
<pre>Toolbar 'new tiddler' button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/toolbar-options-button">
<pre>Toolbar 'options' button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/toolbar-save-button">
<pre>Toolbar 'save' button foreground</pre>
</div>
<div title="$:/language/Docs/PaletteColours/untagged-background">
<pre>Untagged pill background</pre>
</div>
<div title="$:/language/Docs/PaletteColours/very-muted-foreground">
<pre>Very muted foreground</pre>
</div>
<div description="JavaScript code" group="Developer" group-sort="2" name="application/javascript" title="$:/language/Docs/Types/application/javascript">
<pre></pre>
</div>
<div description="JSON data" group="Developer" group-sort="2" name="application/json" title="$:/language/Docs/Types/application/json">
<pre></pre>
</div>
<div description="Data dictionary" group="Developer" group-sort="2" name="application/x-tiddler-dictionary" title="$:/language/Docs/Types/application/x-tiddler-dictionary">
<pre></pre>
</div>
<div description="GIF image" group="Image" group-sort="1" name="image/gif" title="$:/language/Docs/Types/image/gif">
<pre></pre>
</div>
<div description="JPEG image" group="Image" group-sort="1" name="image/jpeg" title="$:/language/Docs/Types/image/jpeg">
<pre></pre>
</div>
<div description="PNG image" group="Image" group-sort="1" name="image/png" title="$:/language/Docs/Types/image/png">
<pre></pre>
</div>
<div description="Structured Vector Graphics image" group="Image" group-sort="1" name="image/svg+xml" title="$:/language/Docs/Types/image/svg+xml">
<pre></pre>
</div>
<div description="ICO format icon file" group="Image" group-sort="1" name="image/x-icon" title="$:/language/Docs/Types/image/x-icon">
<pre></pre>
</div>
<div description="Static stylesheet" group="Developer" group-sort="2" name="text/css" title="$:/language/Docs/Types/text/css">
<pre></pre>
</div>
<div description="HTML markup" group="Text" group-sort="0" name="text/html" title="$:/language/Docs/Types/text/html">
<pre></pre>
</div>
<div description="Plain text" group="Text" group-sort="0" name="text/plain" title="$:/language/Docs/Types/text/plain">
<pre></pre>
</div>
<div description="TiddlyWiki 5" group="Text" group-sort="0" name="text/vnd.tiddlywiki" title="$:/language/Docs/Types/text/vnd.tiddlywiki">
<pre></pre>
</div>
<div description="TiddlyWiki Classic" group="Text" group-sort="0" name="text/x-tiddlywiki" title="$:/language/Docs/Types/text/x-tiddlywiki">
<pre></pre>
</div>
<div title="$:/language/DropMessage">
<pre>Drop here (or use the 'Escape' key to cancel)</pre>
</div>
<div title="$:/language/EditTemplate/Body/External/Hint">
<pre>This tiddler shows content stored outside of the main TiddlyWiki file. You can edit the tags and fields but cannot directly edit the content itself</pre>
</div>
<div title="$:/language/EditTemplate/Body/Placeholder">
<pre>Type the text for this tiddler</pre>
</div>
<div title="$:/language/EditTemplate/Body/Preview/Type/Output">
<pre>output</pre>
</div>
<div title="$:/language/EditTemplate/Field/Dropdown/Caption">
<pre>field list</pre>
</div>
<div title="$:/language/EditTemplate/Field/Dropdown/Hint">
<pre>Show field list</pre>
</div>
<div title="$:/language/EditTemplate/Field/Remove/Caption">
<pre>remove field</pre>
</div>
<div title="$:/language/EditTemplate/Field/Remove/Hint">
<pre>Remove field</pre>
</div>
<div title="$:/language/EditTemplate/Fields/Add/Button">
<pre>add</pre>
</div>
<div title="$:/language/EditTemplate/Fields/Add/Button/Hint">
<pre>Add the new field to the tiddler</pre>
</div>
<div title="$:/language/EditTemplate/Fields/Add/Dropdown/System">
<pre>System fields</pre>
</div>
<div title="$:/language/EditTemplate/Fields/Add/Dropdown/User">
<pre>User fields</pre>
</div>
<div title="$:/language/EditTemplate/Fields/Add/Name/Placeholder">
<pre>field name</pre>
</div>
<div title="$:/language/EditTemplate/Fields/Add/Prompt">
<pre>Add a new field:</pre>
</div>
<div title="$:/language/EditTemplate/Fields/Add/Value/Placeholder">
<pre>field value</pre>
</div>
<div title="$:/language/EditTemplate/Shadow/OverriddenWarning">
<pre>This is a modified shadow tiddler. You can revert to the default version in the plugin &lt;&lt;pluginLink&gt;&gt; by deleting this tiddler</pre>
</div>
<div title="$:/language/EditTemplate/Shadow/Warning">
<pre>This is a shadow tiddler. Any changes you make will override the default version from the plugin &lt;&lt;pluginLink&gt;&gt;</pre>
</div>
<div title="$:/language/EditTemplate/Tags/Add/Button">
<pre>add</pre>
</div>
<div title="$:/language/EditTemplate/Tags/Add/Button/Hint">
<pre>add tag</pre>
</div>
<div title="$:/language/EditTemplate/Tags/Add/Placeholder">
<pre>tag name</pre>
</div>
<div title="$:/language/EditTemplate/Tags/Dropdown/Caption">
<pre>tag list</pre>
</div>
<div title="$:/language/EditTemplate/Tags/Dropdown/Hint">
<pre>Show tag list</pre>
</div>
<div title="$:/language/EditTemplate/Title/BadCharacterWarning">
<pre>Warning: avoid using any of the characters &lt;&lt;bad-chars&gt;&gt; in tiddler titles</pre>
</div>
<div title="$:/language/EditTemplate/Title/Exists/Prompt">
<pre>Target tiddler already exists</pre>
</div>
<div title="$:/language/EditTemplate/Title/References/Prompt">
<pre>The following references to this tiddler will not be automatically updated:</pre>
</div>
<div title="$:/language/EditTemplate/Title/Relink/Prompt">
<pre>Update ''&lt;$text text=&lt;&lt;fromTitle&gt;&gt;/&gt;'' to ''&lt;$text text=&lt;&lt;toTitle&gt;&gt;/&gt;'' in the //tags// and //list// fields of other tiddlers</pre>
</div>
<div title="$:/language/EditTemplate/Type/Delete/Caption">
<pre>delete content type</pre>
</div>
<div title="$:/language/EditTemplate/Type/Delete/Hint">
<pre>Delete content type</pre>
</div>
<div title="$:/language/EditTemplate/Type/Dropdown/Caption">
<pre>content type list</pre>
</div>
<div title="$:/language/EditTemplate/Type/Dropdown/Hint">
<pre>Show content type list</pre>
</div>
<div title="$:/language/EditTemplate/Type/Placeholder">
<pre>content type</pre>
</div>
<div title="$:/language/EditTemplate/Type/Prompt">
<pre>Type:</pre>
</div>
<div title="$:/language/Encryption/Cancel">
<pre>Cancel</pre>
</div>
<div title="$:/language/Encryption/ConfirmClearPassword">
<pre>Do you wish to clear the password? This will remove the encryption applied when saving this wiki</pre>
</div>
<div title="$:/language/Encryption/Password">
<pre>Password</pre>
</div>
<div title="$:/language/Encryption/PasswordNoMatch">
<pre>Passwords do not match</pre>
</div>
<div title="$:/language/Encryption/PromptSetPassword">
<pre>Set a new password for this TiddlyWiki</pre>
</div>
<div title="$:/language/Encryption/RepeatPassword">
<pre>Repeat password</pre>
</div>
<div title="$:/language/Encryption/SetPassword">
<pre>Set password</pre>
</div>
<div title="$:/language/Encryption/Username">
<pre>Username</pre>
</div>
<div title="$:/language/Error/Caption">
<pre>Error</pre>
</div>
<div title="$:/language/Error/EditConflict">
<pre>File changed on server</pre>
</div>
<div title="$:/language/Error/Filter">
<pre>Filter error</pre>
</div>
<div title="$:/language/Error/FilterSyntax">
<pre>Syntax error in filter expression</pre>
</div>
<div title="$:/language/Error/IsFilterOperator">
<pre>Filter Error: Unknown operand for the 'is' filter operator</pre>
</div>
<div title="$:/language/Error/LoadingPluginLibrary">
<pre>Error loading plugin library</pre>
</div>
<div title="$:/language/Error/NetworkErrorAlert">
<pre>`&lt;h2&gt;''Network Error''&lt;/h2&gt;It looks like the connection to the server has been lost. This may indicate a problem with your network connection. Please attempt to restore network connectivity before continuing.&lt;br&gt;&lt;br&gt;''Any unsaved changes will be automatically synchronised when connectivity is restored''.`</pre>
</div>
<div title="$:/language/Error/RecursiveTransclusion">
<pre>Recursive transclusion error in transclude widget</pre>
</div>
<div title="$:/language/Error/RetrievingSkinny">
<pre>Error retrieving skinny tiddler list</pre>
</div>
<div title="$:/language/Error/SavingToTWEdit">
<pre>Error saving to TWEdit</pre>
</div>
<div title="$:/language/Error/WhileSaving">
<pre>Error while saving</pre>
</div>
<div title="$:/language/Error/XMLHttpRequest">
<pre>XMLHttpRequest error code</pre>
</div>
<div title="$:/language/Exporters/CsvFile">
<pre>CSV file</pre>
</div>
<div title="$:/language/Exporters/JsonFile">
<pre>JSON file</pre>
</div>
<div title="$:/language/Exporters/StaticRiver">
<pre>Static HTML</pre>
</div>
<div title="$:/language/Exporters/TidFile">
<pre>&quot;.tid&quot; file</pre>
</div>
<div title="$:/language/Filters/AllTags">
<pre>All tags except system tags</pre>
</div>
<div title="$:/language/Filters/AllTiddlers">
<pre>All tiddlers except system tiddlers</pre>
</div>
<div title="$:/language/Filters/Drafts">
<pre>Draft tiddlers</pre>
</div>
<div title="$:/language/Filters/Missing">
<pre>Missing tiddlers</pre>
</div>
<div title="$:/language/Filters/Orphans">
<pre>Orphan tiddlers</pre>
</div>
<div title="$:/language/Filters/OverriddenShadowTiddlers">
<pre>Overridden shadow tiddlers</pre>
</div>
<div title="$:/language/Filters/RecentSystemTiddlers">
<pre>Recently modified tiddlers, including system tiddlers</pre>
</div>
<div title="$:/language/Filters/RecentTiddlers">
<pre>Recently modified tiddlers</pre>
</div>
<div title="$:/language/Filters/SessionTiddlers">
<pre>Tiddlers modified since the wiki was loaded</pre>
</div>
<div title="$:/language/Filters/ShadowTiddlers">
<pre>Shadow tiddlers</pre>
</div>
<div title="$:/language/Filters/StoryList">
<pre>Tiddlers in the story river, excluding &lt;$text text=&quot;$:/AdvancedSearch&quot;/&gt;</pre>
</div>
<div title="$:/language/Filters/SystemTags">
<pre>System tags</pre>
</div>
<div title="$:/language/Filters/SystemTiddlers">
<pre>System tiddlers</pre>
</div>
<div title="$:/language/Filters/TypedTiddlers">
<pre>Non wiki-text tiddlers</pre>
</div>
<div description="Automatically run configured commands" title="$:/language/Help/build">
<pre>Build the specified build targets for the current wiki. If no build targets are specified then all available targets will be built.
```
--build &lt;target&gt; [&lt;target&gt; ...]
```
Build targets are defined in the `tiddlywiki.info` file of a wiki folder.
</pre>
</div>
<div description="Clear a password for subsequent crypto operations" title="$:/language/Help/clearpassword">
<pre>Clear the password for subsequent crypto operations
```
--clearpassword
```
</pre>
</div>
<div title="$:/language/Help/default">
<pre>\define commandTitle()
$:/language/Help/$(command)$
\end
```
usage: tiddlywiki [&lt;wikifolder&gt;] [--&lt;command&gt; [&lt;args&gt;...]...]
```
Available commands:
&lt;ul&gt;
&lt;$list filter=&quot;[commands[]sort[title]]&quot; variable=&quot;command&quot;&gt;
&lt;li&gt;&lt;$link to=&lt;&lt;commandTitle&gt;&gt;&gt;&lt;$macrocall $name=&quot;command&quot; $type=&quot;text/plain&quot; $output=&quot;text/plain&quot;/&gt;&lt;/$link&gt;: &lt;$transclude tiddler=&lt;&lt;commandTitle&gt;&gt; field=&quot;description&quot;/&gt;&lt;/li&gt;
&lt;/$list&gt;
&lt;/ul&gt;
To get detailed help on a command:
```
tiddlywiki --help &lt;command&gt;
```
</pre>
</div>
<div description="Deletes a group of tiddlers" title="$:/language/Help/deletetiddlers">
<pre>&lt;&lt;.from-version &quot;5.1.20&quot;&gt;&gt; Deletes a group of tiddlers identified by a filter.
```
--deletetiddlers &lt;filter&gt;
```
</pre>
</div>
<div description="Lists the available editions of TiddlyWiki" title="$:/language/Help/editions">
<pre>Lists the names and descriptions of the available editions. You can create a new wiki of a specified edition with the `--init` command.
```
--editions
```
</pre>
</div>
<div description="Fetch tiddlers from wiki by URL" title="$:/language/Help/fetch">
<pre>Fetch one or more files over HTTP/HTTPS, and import the tiddlers matching a filter, optionally transforming the incoming titles.
```
--fetch file &lt;url&gt; &lt;import-filter&gt; &lt;transform-filter&gt;
--fetch files &lt;url-filter&gt; &lt;import-filter&gt; &lt;transform-filter&gt;
--fetch raw-file &lt;url&gt; &lt;transform-filter&gt;
--fetch raw-files &lt;url-filter&gt; &lt;transform-filter&gt;
```
The &quot;file&quot; and &quot;files&quot; variants fetch the specified files and attempt to import the tiddlers within them (the same processing as if the files were dragged into the browser window). The &quot;raw-file&quot; and &quot;raw-files&quot; variants fetch the specified files and then store the raw file data in tiddlers, without applying the import logic.
With the &quot;file&quot; and &quot;raw-file&quot; variants only a single file is fetched and the first parameter is the URL of the file to read.
With the &quot;files&quot; and &quot;raw-files&quot; variants, multiple files are fetched and the first parameter is a filter yielding a list of URLs of the files to read. For example, given a set of tiddlers tagged &quot;remote-server&quot; that have a field &quot;url&quot; the filter `[tag[remote-server]get[url]]` will retrieve all the available URLs.
For the &quot;file&quot; and &quot;files&quot; variants, the `&lt;import-filter&gt;` parameter specifies a filter determining which tiddlers are imported. It defaults to `[all[tiddlers]]` if not provided.
For all variants, the `&lt;transform-filter&gt;` parameter specifies an optional filter that transforms the titles of the imported tiddlers. For example, `[addprefix[$:/myimports/]]` would add the prefix `$:/myimports/` to each title.
Preceding the `--fetch` command with `--verbose` will output progress information during the import.
Note that TiddlyWiki will not fetch an older version of an already loaded plugin.
The following example retrieves all the non-system tiddlers from https://tiddlywiki.com and saves them to a JSON file:
```
tiddlywiki --verbose --fetch file &quot;https://tiddlywiki.com/&quot; &quot;[!is[system]]&quot; &quot;&quot; --rendertiddler &quot;$:/core/templates/exporters/JsonFile&quot; output.json text/plain &quot;&quot; exportFilter &quot;[!is[system]]&quot;
```
The following example retrieves the &quot;favicon&quot; file from tiddlywiki.com and saves it in a file called &quot;output.ico&quot;. Note that the intermediate tiddler &quot;Icon Tiddler&quot; is quoted in the &quot;--fetch&quot; command because it is being used as a transformation filter to replace the default title, while there are no quotes for the &quot;--savetiddler&quot; command because it is being used directly as a title.
```
tiddlywiki --verbose --fetch raw-file &quot;https://tiddlywiki.com/favicon.ico&quot; &quot;[[Icon Tiddler]]&quot; --savetiddler &quot;Icon Tiddler&quot; output.ico
```
</pre>
</div>
<div description="Display help for TiddlyWiki commands" title="$:/language/Help/help">
<pre>Displays help text for a command:
```
--help [&lt;command&gt;]
```
If the command name is omitted then a list of available commands is displayed.
</pre>
</div>
<div description="Import tiddlers from a file" title="$:/language/Help/import">
<pre>Import tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The deserializer must be explicitly specified, unlike the `load` command which infers the deserializer from the file extension.
```
--import &lt;filepath&gt; &lt;deserializer&gt; [&lt;title&gt;] [&lt;encoding&gt;]
```
The deserializers in the core include:
* application/javascript
* application/json
* application/x-tiddler
* application/x-tiddler-html-div
* application/x-tiddlers
* text/html
* text/plain
The title of the imported tiddler defaults to the filename.
The encoding defaults to &quot;utf8&quot;, but can be &quot;base64&quot; for importing binary files.
Note that TiddlyWiki will not import an older version of an already loaded plugin.
</pre>
</div>
<div description="Initialise a new wiki folder" title="$:/language/Help/init">
<pre>Initialise an empty [[WikiFolder|WikiFolders]] with a copy of the specified edition.
```
--init &lt;edition&gt; [&lt;edition&gt; ...]
```
For example:
```
tiddlywiki ./MyWikiFolder --init empty
```
Note:
* The wiki folder directory will be created if necessary
* The &quot;edition&quot; defaults to ''empty''
* The init command will fail if the wiki folder is not empty
* The init command removes any `includeWikis` definitions in the edition's `tiddlywiki.info` file
* When multiple editions are specified, editions initialised later will overwrite any files shared with earlier editions (so, the final `tiddlywiki.info` file will be copied from the last edition)
* `--editions` returns a list of available editions
</pre>
</div>
<div description="Provides an HTTP server interface to TiddlyWiki" title="$:/language/Help/listen">
<pre>Serves a wiki over HTTP.
The listen command uses NamedCommandParameters:
```
--listen [&lt;name&gt;=&lt;value&gt;]...
```
All parameters are optional with safe defaults, and can be specified in any order. The recognised parameters are:
* ''host'' - optional hostname to serve from (defaults to &quot;127.0.0.1&quot; aka &quot;localhost&quot;)
* ''path-prefix'' - optional prefix for paths
* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to &quot;8080&quot;)
* ''credentials'' - pathname of credentials CSV file (relative to wiki folder)
* ''anon-username'' - the username for signing edits for anonymous users
* ''username'' - optional username for basic authentication
* ''password'' - optional password for basic authentication
* ''authenticated-user-header'' - optional name of header to be used for trusted authentication
* ''readers'' - comma separated list of principals allowed to read from this wiki
* ''writers'' - comma separated list of principals allowed to write to this wiki
* ''csrf-disable'' - set to &quot;yes&quot; to disable CSRF checks (defaults to &quot;no&quot;)
* ''root-tiddler'' - the tiddler to serve at the root (defaults to &quot;$:/core/save/all&quot;)
* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to &quot;text/plain&quot;)
* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to &quot;text/html&quot;)
* ''tls-cert'' - pathname of TLS certificate file (relative to wiki folder)
* ''tls-key'' - pathname of TLS key file (relative to wiki folder)
* ''debug-level'' - optional debug level; set to &quot;debug&quot; to view request details (defaults to &quot;none&quot;)
* ''gzip'' - set to &quot;yes&quot; to enable gzip compression for some http endpoints (defaults to &quot;no&quot;)
For information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com.
</pre>
</div>
<div description="Load tiddlers from a file" title="$:/language/Help/load">
<pre>Load tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The processing applied to incoming files is determined by the file extension. Use the alternative `import` command if you need to specify the deserializer and encoding explicitly.
```
--load &lt;filepath&gt; [noerror]
--load &lt;dirpath&gt; [noerror]
```
By default, the load command raises an error if no tiddlers are found. The error can be suppressed by providing the optional &quot;noerror&quot; parameter.
To load tiddlers from an encrypted TiddlyWiki file you should first specify the password with the PasswordCommand. For example:
```
tiddlywiki ./MyWiki --password pa55w0rd --load my_encrypted_wiki.html
```
Note that TiddlyWiki will not load an older version of an already loaded plugin.
</pre>
</div>
<div description="Construct library plugin required by upgrade process" title="$:/language/Help/makelibrary">
<pre>Constructs the `$:/UpgradeLibrary` tiddler for the upgrade process.
The upgrade library is formatted as an ordinary plugin tiddler with the plugin type `library`. It contains a copy of each of the plugins, themes and language packs available within the TiddlyWiki5 repository.
This command is intended for internal use; it is only relevant to users constructing a custom upgrade procedure.
```
--makelibrary &lt;title&gt;
```
The title argument defaults to `$:/UpgradeLibrary`.
</pre>
</div>
<div title="$:/language/Help/notfound">
<pre>No such help item</pre>
</div>
<div description="Set the base output directory for subsequent commands" title="$:/language/Help/output">
<pre>Sets the base output directory for subsequent commands. The default output directory is the `output` subdirectory of the edition directory.
```
--output &lt;pathname&gt;
```
If the specified pathname is relative then it is resolved relative to the current working directory. For example `--output .` sets the output directory to the current working directory.
</pre>
</div>
<div description="Set a password for subsequent crypto operations" title="$:/language/Help/password">
<pre>Set a password for subsequent crypto operations
```
--password &lt;password&gt;
```
''Note'': This should not be used for serving TiddlyWiki with password protection. Instead, see the password option under the [[ServerCommand]].
</pre>
</div>
<div description="Renders individual tiddlers to files" title="$:/language/Help/render">
<pre>Render individual tiddlers identified by a filter and save the results to the specified files.
Optionally, the title of a template tiddler can be specified. In this case, instead of directly rendering each tiddler, the template tiddler is rendered with the &quot;currentTiddler&quot; variable set to the title of the tiddler that is being rendered.
A name and value for an additional variable may optionally also be specified.
```
--render &lt;tiddler-filter&gt; [&lt;filename-filter&gt;] [&lt;render-type&gt;] [&lt;template&gt;] [&lt;name&gt;] [&lt;value&gt;]
```
* ''tiddler-filter'': A filter identifying the tiddler(s) to be rendered
* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]addsuffix[.html]]`, which uses the unchanged tiddler title as the filename
* ''render-type'': Optional render type: `text/html` (the default) returns the full HTML text and `text/plain` just returns the text content (ie it ignores HTML tags and other unprintable material)
* ''template'': Optional template through which each tiddler is rendered
* ''name'': Name of optional variable
* ''value'': Value of optional variable
By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
Notes:
* The output directory is not cleared of any existing files
* Any missing directories in the path to the filename are automatically created.
* When referring to a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--render &quot;[[Motovun Jack.jpg]]&quot;`
* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being rendered, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/`
* The `--render` command is a more flexible replacement for both the `--rendertiddler` and `--rendertiddlers` commands, which are deprecated
Examples:
* `--render &quot;[!is[system]]&quot; &quot;[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]&quot;` -- renders all non-system tiddlers as files in the subdirectory &quot;tiddlers&quot; with URL-encoded titles and the extension HTML
</pre>
</div>
<div description="Render an individual tiddler as a specified ContentType" title="$:/language/Help/rendertiddler">
<pre>(Note: The `--rendertiddler` command is deprecated in favour of the new, more flexible `--render` command)
Render an individual tiddler as a specified ContentType, defaulting to `text/html` and save it to the specified filename.
Optionally the title of a template tiddler can be specified, in which case the template tiddler is rendered with the &quot;currentTiddler&quot; variable set to the tiddler that is being rendered (the first parameter value).
A name and value for an additional variable may optionally also be specified.
```
--rendertiddler &lt;title&gt; &lt;filename&gt; [&lt;type&gt;] [&lt;template&gt;] [&lt;name&gt;] [&lt;value&gt;]
```
By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
Any missing directories in the path to the filename are automatically created.
For example, the following command saves all tiddlers matching the filter `[tag[done]]` to a JSON file titled `output.json` by employing the core template `$:/core/templates/exporters/JsonFile`.
```
--rendertiddler &quot;$:/core/templates/exporters/JsonFile&quot; output.json text/plain &quot;&quot; exportFilter &quot;[tag[done]]&quot;
```
</pre>
</div>
<div description="Render tiddlers matching a filter to a specified ContentType" title="$:/language/Help/rendertiddlers">
<pre>(Note: The `--rendertiddlers` command is deprecated in favour of the new, more flexible `--render` command)
Render a set of tiddlers matching a filter to separate files of a specified ContentType (defaults to `text/html`) and extension (defaults to `.html`).
```
--rendertiddlers &lt;filter&gt; &lt;template&gt; &lt;pathname&gt; [&lt;type&gt;] [&lt;extension&gt;] [&quot;noclean&quot;]
```
For example:
```
--rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html ./static text/plain
```
By default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
Any files in the target directory are deleted unless the ''noclean'' flag is specified. The target directory is recursively created if it is missing.
</pre>
</div>
<div description="Saves individual raw tiddlers to files" title="$:/language/Help/save">
<pre>Saves individual tiddlers identified by a filter in their raw text or binary format to the specified files.
```
--save &lt;tiddler-filter&gt; &lt;filename-filter&gt;
```
* ''tiddler-filter'': A filter identifying the tiddler(s) to be saved
* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]]`, which uses the unchanged tiddler title as the filename
By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
Notes:
* The output directory is not cleared of any existing files
* Any missing directories in the path to the filename are automatically created.
* When saving a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--save &quot;[[Motovun Jack.jpg]]&quot;`
* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being saved, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/`
* The `--save` command is a more flexible replacement for both the `--savetiddler` and `--savetiddlers` commands, which are deprecated
Examples:
* `--save &quot;[!is[system]is[image]]&quot; &quot;[encodeuricomponent[]addprefix[tiddlers/]]&quot;` -- saves all non-system image tiddlers as files in the subdirectory &quot;tiddlers&quot; with URL-encoded titles
</pre>
</div>
<div description="Saves a raw tiddler to a file" title="$:/language/Help/savetiddler">
<pre>(Note: The `--savetiddler` command is deprecated in favour of the new, more flexible `--save` command)
Saves an individual tiddler in its raw text or binary format to the specified filename.
```
--savetiddler &lt;title&gt; &lt;filename&gt;
```
By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
Any missing directories in the path to the filename are automatically created.
</pre>
</div>
<div description="Saves a group of raw tiddlers to a directory" title="$:/language/Help/savetiddlers">
<pre>(Note: The `--savetiddlers` command is deprecated in favour of the new, more flexible `--save` command)
Saves a group of tiddlers in their raw text or binary format to the specified directory.
```
--savetiddlers &lt;filter&gt; &lt;pathname&gt; [&quot;noclean&quot;]
```
By default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
The output directory is cleared of existing files before saving the specified files. The deletion can be disabled by specifying the ''noclean'' flag.
Any missing directories in the pathname are automatically created.
</pre>
</div>
<div description="Saves a wiki to a new wiki folder" title="$:/language/Help/savewikifolder">
<pre>&lt;&lt;.from-version &quot;5.1.20&quot;&gt;&gt; Saves the current wiki as a wiki folder, including tiddlers, plugins and configuration:
```
--savewikifolder &lt;wikifolderpath&gt; [&lt;filter&gt;]
```
* The target wiki folder must be empty or non-existent
* The filter specifies which tiddlers should be included. It is optional, defaulting to `[all[tiddlers]]`
* Plugins from the official plugin library are replaced with references to those plugins in the `tiddlywiki.info` file
* Custom plugins are unpacked into their own folder
A common usage is to convert a TiddlyWiki HTML file into a wiki folder:
```
tiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder
```
</pre>
</div>
<div description="Provides an HTTP server interface to TiddlyWiki (deprecated in favour of the new listen command)" title="$:/language/Help/server">
<pre>Legacy command to serve a wiki over HTTP.
```
--server &lt;port&gt; &lt;root-tiddler&gt; &lt;root-render-type&gt; &lt;root-serve-type&gt; &lt;username&gt; &lt;password&gt; &lt;host&gt; &lt;path-prefix&gt; &lt;debug-level&gt;
```
The parameters are:
* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to &quot;8080&quot;)
* ''root-tiddler'' - the tiddler to serve at the root (defaults to &quot;$:/core/save/all&quot;)
* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to &quot;text/plain&quot;)
* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to &quot;text/html&quot;)
* ''username'' - the default username for signing edits
* ''password'' - optional password for basic authentication
* ''host'' - optional hostname to serve from (defaults to &quot;127.0.0.1&quot; aka &quot;localhost&quot;)
* ''path-prefix'' - optional prefix for paths
* ''debug-level'' - optional debug level; set to &quot;debug&quot; to view request details (defaults to &quot;none&quot;)
If the password parameter is specified then the browser will prompt the user for the username and password. Note that the password is transmitted in plain text so this implementation should only be used on a trusted network or over HTTPS.
For example:
```
--server 8080 $:/core/save/all text/plain text/html MyUserName passw0rd
```
The username and password can be specified as empty strings if you need to set the hostname or pathprefix and don't want to require a password.
```
--server 8080 $:/core/save/all text/plain text/html &quot;&quot; &quot;&quot; 192.168.0.245
```
Using an address like this exposes your system to the local network. For information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com.
To run multiple TiddlyWiki servers at the same time you'll need to put each one on a different port. It can be useful to use an environment variable to pass the port number to the Node.js process. This example references an environment variable called &quot;MY_PORT_NUMBER&quot;:
```
--server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd
```
</pre>
</div>
<div description="Prepares external tiddlers for use" title="$:/language/Help/setfield">
<pre>//Note that this command is experimental and may change or be replaced before being finalised//
Sets the specified field of a group of tiddlers to the result of wikifying a template tiddler with the `currentTiddler` variable set to the tiddler.
```
--setfield &lt;filter&gt; &lt;fieldname&gt; &lt;templatetitle&gt; &lt;rendertype&gt;
```
The parameters are:
* ''filter'' - filter identifying the tiddlers to be affected
* ''fieldname'' - the field to modify (defaults to &quot;text&quot;)
* ''templatetitle'' - the tiddler to wikify into the specified field. If blank or missing then the specified field is deleted
* ''rendertype'' - the text type to render (defaults to &quot;text/plain&quot;; &quot;text/html&quot; can be used to include HTML tags)
</pre>
</div>
<div description="Unpack the payload tiddlers from a plugin" title="$:/language/Help/unpackplugin">
<pre>Extract the payload tiddlers from a plugin, creating them as ordinary tiddlers:
```
--unpackplugin &lt;title&gt;
```
</pre>
</div>
<div description="Triggers verbose output mode" title="$:/language/Help/verbose">
<pre>Triggers verbose output, useful for debugging
```
--verbose
```
</pre>
</div>
<div description="Displays the version number of TiddlyWiki" title="$:/language/Help/version">
<pre>Displays the version number of TiddlyWiki.
```
--version
```
</pre>
</div>
<div title="$:/language/Import/Imported/Hint">
<pre>The following tiddlers were imported:</pre>
</div>
<div title="$:/language/Import/Listing/Cancel/Caption">
<pre>Cancel</pre>
</div>
<div title="$:/language/Import/Listing/Hint">
<pre>These tiddlers are ready to import:</pre>
</div>
<div title="$:/language/Import/Listing/Import/Caption">
<pre>Import</pre>
</div>
<div title="$:/language/Import/Listing/Preview">
<pre>Preview:</pre>
</div>
<div title="$:/language/Import/Listing/Preview/Diff">
<pre>Diff</pre>
</div>
<div title="$:/language/Import/Listing/Preview/DiffFields">
<pre>Diff (Fields)</pre>
</div>
<div title="$:/language/Import/Listing/Preview/Fields">
<pre>Fields</pre>
</div>
<div title="$:/language/Import/Listing/Preview/Text">
<pre>Text</pre>
</div>
<div title="$:/language/Import/Listing/Preview/TextRaw">
<pre>Text (Raw)</pre>
</div>
<div title="$:/language/Import/Listing/Select/Caption">
<pre>Select</pre>
</div>
<div title="$:/language/Import/Listing/Status/Caption">
<pre>Status</pre>
</div>
<div title="$:/language/Import/Listing/Title/Caption">
<pre>Title</pre>
</div>
<div title="$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible">
<pre>Blocked incompatible or obsolete plugin</pre>
</div>
<div title="$:/language/Import/Upgrader/Plugins/Suppressed/Version">
<pre>Blocked plugin (due to incoming &lt;&lt;incoming&gt;&gt; being older than existing &lt;&lt;existing&gt;&gt;)</pre>
</div>
<div title="$:/language/Import/Upgrader/Plugins/Upgraded">
<pre>Upgraded plugin from &lt;&lt;incoming&gt;&gt; to &lt;&lt;upgraded&gt;&gt;</pre>
</div>
<div title="$:/language/Import/Upgrader/State/Suppressed">
<pre>Blocked temporary state tiddler</pre>
</div>
<div title="$:/language/Import/Upgrader/System/Alert">
<pre>You are about to import a tiddler that will overwrite a core module tiddler. This is not recommended as it may make the system unstable</pre>
</div>
<div title="$:/language/Import/Upgrader/System/Suppressed">
<pre>Blocked system tiddler</pre>
</div>
<div title="$:/language/Import/Upgrader/System/Warning">
<pre>Core module tiddler</pre>
</div>
<div title="$:/language/Import/Upgrader/ThemeTweaks/Created">
<pre>Migrated theme tweak from &lt;$text text=&lt;&lt;from&gt;&gt;/&gt;</pre>
</div>
<div title="$:/language/InternalJavaScriptError/Hint">
<pre>Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser</pre>
</div>
<div title="$:/language/InternalJavaScriptError/Title">
<pre>Internal JavaScript Error</pre>
</div>
<div title="$:/language/InvalidFieldName">
<pre>Illegal characters in field name &quot;&lt;$text text=&lt;&lt;fieldName&gt;&gt;/&gt;&quot;. Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`)</pre>
</div>
<div title="$:/language/LazyLoadingWarning">
<pre>&lt;p&gt;Trying to load external content from ''&lt;$text text={{!!_canonical_uri}}/&gt;''&lt;/p&gt;&lt;p&gt;If this message doesn't disappear, either the tiddler content type doesn't match the type of the external content, or you may be using a browser that doesn't support external content for wikis loaded as standalone files. See https://tiddlywiki.com/#ExternalText&lt;/p&gt;</pre>
</div>
<div title="$:/language/LoginToTiddlySpace">
<pre>Login to TiddlySpace</pre>
</div>
<div title="$:/language/Manager/Controls/FilterByTag/None">
<pre>(none)</pre>
</div>
<div title="$:/language/Manager/Controls/FilterByTag/Prompt">
<pre>Filter by tag:</pre>
</div>
<div title="$:/language/Manager/Controls/Order/Prompt">
<pre>Reverse order</pre>
</div>
<div title="$:/language/Manager/Controls/Search/Placeholder">
<pre>Search</pre>
</div>
<div title="$:/language/Manager/Controls/Search/Prompt">
<pre>Search:</pre>
</div>
<div title="$:/language/Manager/Controls/Show/Option/Tags">
<pre>tags</pre>
</div>
<div title="$:/language/Manager/Controls/Show/Option/Tiddlers">
<pre>tiddlers</pre>
</div>
<div title="$:/language/Manager/Controls/Show/Prompt">
<pre>Show:</pre>
</div>
<div title="$:/language/Manager/Controls/Sort/Prompt">
<pre>Sort by:</pre>
</div>
<div title="$:/language/Manager/Item/Colour">
<pre>Colour</pre>
</div>
<div title="$:/language/Manager/Item/Fields">
<pre>Fields</pre>
</div>
<div title="$:/language/Manager/Item/Icon">
<pre>Icon</pre>
</div>
<div title="$:/language/Manager/Item/Icon/None">
<pre>(none)</pre>
</div>
<div title="$:/language/Manager/Item/RawText">
<pre>Raw text</pre>
</div>
<div title="$:/language/Manager/Item/Tags">
<pre>Tags</pre>
</div>
<div title="$:/language/Manager/Item/Tools">
<pre>Tools</pre>
</div>
<div title="$:/language/Manager/Item/WikifiedText">
<pre>Wikified text</pre>
</div>
<div title="$:/language/MissingTiddler/Hint">
<pre>Missing tiddler &quot;&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;&quot; -- click {{||$:/core/ui/Buttons/edit}} to create</pre>
</div>
<div footer="&lt;$button message=&quot;tm-close-tiddler&quot;&gt;Close&lt;/$button&gt;" help="https://tiddlywiki.com/static/DownloadingChanges.html" subtitle="Download changes" title="$:/language/Modals/Download">
<pre>Your browser only supports manual saving.
To save your modified wiki, right click on the download link below and select &quot;Download file&quot; or &quot;Save file&quot;, and then choose the folder and filename.
//You can marginally speed things up by clicking the link with the control key (Windows) or the options/alt key (Mac OS X). You will not be prompted for the folder or filename, but your browser is likely to give it an unrecognisable name -- you may need to rename the file to include an `.html` extension before you can do anything useful with it.//
On smartphones that do not allow files to be downloaded you can instead bookmark the link, and then sync your bookmarks to a desktop computer from where the wiki can be saved normally.
</pre>
</div>
<div footer="&lt;$button message=&quot;tm-close-tiddler&quot;&gt;Close&lt;/$button&gt;" help="https://tiddlywiki.com/static/SavingChanges.html" subtitle="Save your work" title="$:/language/Modals/SaveInstructions">
<pre>Your changes to this wiki need to be saved as a ~TiddlyWiki HTML file.
!!! Desktop browsers
# Select ''Save As'' from the ''File'' menu
# Choose a filename and location
#* Some browsers also require you to explicitly specify the file saving format as ''Webpage, HTML only'' or similar
# Close this tab
!!! Smartphone browsers
# Create a bookmark to this page
#* If you've got iCloud or Google Sync set up then the bookmark will automatically sync to your desktop where you can open it and save it as above
# Close this tab
//If you open the bookmark again in Mobile Safari you will see this message again. If you want to go ahead and use the file, just click the ''close'' button below//
</pre>
</div>
<div title="$:/language/No">
<pre>No</pre>
</div>
<div title="$:/language/Notifications/CopiedToClipboard/Failed">
<pre>Failed to copy to clipboard!</pre>
</div>
<div title="$:/language/Notifications/CopiedToClipboard/Succeeded">
<pre>Copied to clipboard!</pre>
</div>
<div title="$:/language/Notifications/Save/Done">
<pre>Saved wiki</pre>
</div>
<div title="$:/language/Notifications/Save/Starting">
<pre>Starting to save wiki</pre>
</div>
<div title="$:/language/OfficialPluginLibrary">
<pre>Official ~TiddlyWiki Plugin Library</pre>
</div>
<div title="$:/language/OfficialPluginLibrary/Hint">
<pre>The official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team.</pre>
</div>
<div title="$:/language/PluginReloadWarning">
<pre>Please save {{$:/core/ui/Buttons/save-wiki}} and reload {{$:/core/ui/Buttons/refresh}} to allow changes to ~JavaScript plugins to take effect</pre>
</div>
<div title="$:/language/RecentChanges/DateFormat">
<pre>DDth MMM YYYY</pre>
</div>
<div title="$:/language/RelativeDate/Future/Days">
<pre>&lt;&lt;period&gt;&gt; days from now</pre>
</div>
<div title="$:/language/RelativeDate/Future/Hours">
<pre>&lt;&lt;period&gt;&gt; hours from now</pre>
</div>
<div title="$:/language/RelativeDate/Future/Minutes">
<pre>&lt;&lt;period&gt;&gt; minutes from now</pre>
</div>
<div title="$:/language/RelativeDate/Future/Months">
<pre>&lt;&lt;period&gt;&gt; months from now</pre>
</div>
<div title="$:/language/RelativeDate/Future/Second">
<pre>1 second from now</pre>
</div>
<div title="$:/language/RelativeDate/Future/Seconds">
<pre>&lt;&lt;period&gt;&gt; seconds from now</pre>
</div>
<div title="$:/language/RelativeDate/Future/Years">
<pre>&lt;&lt;period&gt;&gt; years from now</pre>
</div>
<div title="$:/language/RelativeDate/Past/Days">
<pre>&lt;&lt;period&gt;&gt; days ago</pre>
</div>
<div title="$:/language/RelativeDate/Past/Hours">
<pre>&lt;&lt;period&gt;&gt; hours ago</pre>
</div>
<div title="$:/language/RelativeDate/Past/Minutes">
<pre>&lt;&lt;period&gt;&gt; minutes ago</pre>
</div>
<div title="$:/language/RelativeDate/Past/Months">
<pre>&lt;&lt;period&gt;&gt; months ago</pre>
</div>
<div title="$:/language/RelativeDate/Past/Second">
<pre>1 second ago</pre>
</div>
<div title="$:/language/RelativeDate/Past/Seconds">
<pre>&lt;&lt;period&gt;&gt; seconds ago</pre>
</div>
<div title="$:/language/RelativeDate/Past/Years">
<pre>&lt;&lt;period&gt;&gt; years ago</pre>
</div>
<div title="$:/language/Search/DefaultResults/Caption">
<pre>List</pre>
</div>
<div title="$:/language/Search/Filter/Caption">
<pre>Filter</pre>
</div>
<div title="$:/language/Search/Filter/Hint">
<pre>Search via a [[filter expression|https://tiddlywiki.com/static/Filters.html]]</pre>
</div>
<div title="$:/language/Search/Filter/Matches">
<pre>//&lt;small&gt;&lt;&lt;resultCount&gt;&gt; matches&lt;/small&gt;//</pre>
</div>
<div title="$:/language/Search/Matches">
<pre>//&lt;small&gt;&lt;&lt;resultCount&gt;&gt; matches&lt;/small&gt;//</pre>
</div>
<div title="$:/language/Search/Matches/All">
<pre>All matches:</pre>
</div>
<div title="$:/language/Search/Matches/Title">
<pre>Title matches:</pre>
</div>
<div title="$:/language/Search/Search">
<pre>Search</pre>
</div>
<div title="$:/language/Search/Search/TooShort">
<pre>Search text too short</pre>
</div>
<div title="$:/language/Search/Shadows/Caption">
<pre>Shadows</pre>
</div>
<div title="$:/language/Search/Shadows/Hint">
<pre>Search for shadow tiddlers</pre>
</div>
<div title="$:/language/Search/Shadows/Matches">
<pre>//&lt;small&gt;&lt;&lt;resultCount&gt;&gt; matches&lt;/small&gt;//</pre>
</div>
<div title="$:/language/Search/Standard/Caption">
<pre>Standard</pre>
</div>
<div title="$:/language/Search/Standard/Hint">
<pre>Search for standard tiddlers</pre>
</div>
<div title="$:/language/Search/Standard/Matches">
<pre>//&lt;small&gt;&lt;&lt;resultCount&gt;&gt; matches&lt;/small&gt;//</pre>
</div>
<div title="$:/language/Search/System/Caption">
<pre>System</pre>
</div>
<div title="$:/language/Search/System/Hint">
<pre>Search for system tiddlers</pre>
</div>
<div title="$:/language/Search/System/Matches">
<pre>//&lt;small&gt;&lt;&lt;resultCount&gt;&gt; matches&lt;/small&gt;//</pre>
</div>
<div title="$:/language/SideBar/All/Caption">
<pre>All</pre>
</div>
<div title="$:/language/SideBar/Contents/Caption">
<pre>Contents</pre>
</div>
<div title="$:/language/SideBar/Drafts/Caption">
<pre>Drafts</pre>
</div>
<div title="$:/language/SideBar/Explorer/Caption">
<pre>Explorer</pre>
</div>
<div title="$:/language/SideBar/Missing/Caption">
<pre>Missing</pre>
</div>
<div title="$:/language/SideBar/More/Caption">
<pre>More</pre>
</div>
<div title="$:/language/SideBar/Open/Caption">
<pre>Open</pre>
</div>
<div title="$:/language/SideBar/Orphans/Caption">
<pre>Orphans</pre>
</div>
<div title="$:/language/SideBar/Recent/Caption">
<pre>Recent</pre>
</div>
<div title="$:/language/SideBar/Shadows/Caption">
<pre>Shadows</pre>
</div>
<div title="$:/language/SideBar/System/Caption">
<pre>System</pre>
</div>
<div title="$:/language/SideBar/Tags/Caption">
<pre>Tags</pre>
</div>
<div title="$:/language/SideBar/Tags/Untagged/Caption">
<pre>untagged</pre>
</div>
<div title="$:/language/SideBar/Tools/Caption">
<pre>Tools</pre>
</div>
<div title="$:/language/SideBar/Types/Caption">
<pre>Types</pre>
</div>
<div caption="List of tiddlers by tag" tags="$:/tags/TextEditor/Snippet" title="$:/language/Snippets/ListByTag">
<pre>&lt;&lt;list-links &quot;[tag[task]sort[title]]&quot;&gt;&gt;
</pre>
</div>
<div caption="Macro definition" tags="$:/tags/TextEditor/Snippet" title="$:/language/Snippets/MacroDefinition">
<pre>\define macroName(param1:&quot;default value&quot;,param2)
Text of the macro
\end
</pre>
</div>
<div caption="Table with 4 columns by 3 rows" tags="$:/tags/TextEditor/Snippet" title="$:/language/Snippets/Table4x3">
<pre>|! |!Alpha |!Beta |!Gamma |!Delta |
|!One | | | | |
|!Two | | | | |
|!Three | | | | |
</pre>
</div>
<div caption="Table of Contents" tags="$:/tags/TextEditor/Snippet" title="$:/language/Snippets/TableOfContents">
<pre>&lt;div class=&quot;tc-table-of-contents&quot;&gt;
&lt;&lt;toc-selective-expandable 'TableOfContents'&gt;&gt;
&lt;/div&gt;</pre>
</div>
<div title="$:/language/SystemTiddler/Tooltip">
<pre>This is a system tiddler</pre>
</div>
<div title="$:/language/SystemTiddlers/Include/Prompt">
<pre>Include system tiddlers</pre>
</div>
<div title="$:/language/TagManager/Colour/Heading">
<pre>Colour</pre>
</div>
<div title="$:/language/TagManager/Count/Heading">
<pre>Count</pre>
</div>
<div title="$:/language/TagManager/Icon/Heading">
<pre>Icon</pre>
</div>
<div title="$:/language/TagManager/Icons/None">
<pre>None</pre>
</div>
<div title="$:/language/TagManager/Info/Heading">
<pre>Info</pre>
</div>
<div title="$:/language/TagManager/Tag/Heading">
<pre>Tag</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics">
<pre>Sizes</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/BodyFontSize">
<pre>Font size for tiddler body</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/BodyLineHeight">
<pre>Line height for tiddler body</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/FontSize">
<pre>Font size</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/LineHeight">
<pre>Line height</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/SidebarBreakpoint">
<pre>Sidebar breakpoint</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/SidebarBreakpoint/Hint">
<pre>the minimum page width at which the story&lt;br&gt;river and sidebar will appear side by side</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/SidebarWidth">
<pre>Sidebar width</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/SidebarWidth/Hint">
<pre>the width of the sidebar in fluid-fixed layout</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/StoryLeft">
<pre>Story left position</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/StoryLeft/Hint">
<pre>how far the left margin of the story river&lt;br&gt;(tiddler area) is from the left of the page</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/StoryRight">
<pre>Story right</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/StoryRight/Hint">
<pre>how far the left margin of the sidebar &lt;br&gt;is from the left of the page</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/StoryTop">
<pre>Story top position</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/StoryTop/Hint">
<pre>how far the top margin of the story river&lt;br&gt;is from the top of the page</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/StoryWidth">
<pre>Story width</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/StoryWidth/Hint">
<pre>the overall width of the story river</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/TiddlerWidth">
<pre>Tiddler width</pre>
</div>
<div title="$:/language/ThemeTweaks/Metrics/TiddlerWidth/Hint">
<pre>within the story river</pre>
</div>
<div title="$:/language/ThemeTweaks/Options">
<pre>Options</pre>
</div>
<div title="$:/language/ThemeTweaks/Options/CodeWrapping">
<pre>Wrap long lines in code blocks</pre>
</div>
<div title="$:/language/ThemeTweaks/Options/SidebarLayout">
<pre>Sidebar layout</pre>
</div>
<div title="$:/language/ThemeTweaks/Options/SidebarLayout/Fixed-Fluid">
<pre>Fixed story, fluid sidebar</pre>
</div>
<div title="$:/language/ThemeTweaks/Options/SidebarLayout/Fluid-Fixed">
<pre>Fluid story, fixed sidebar</pre>
</div>
<div title="$:/language/ThemeTweaks/Options/StickyTitles">
<pre>Sticky titles</pre>
</div>
<div title="$:/language/ThemeTweaks/Options/StickyTitles/Hint">
<pre>Causes tiddler titles to &quot;stick&quot; to the top of the browser window</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings">
<pre>Settings</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings/BackgroundImage">
<pre>Page background image</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings/BackgroundImageAttachment">
<pre>Page background image attachment</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Fixed">
<pre>Fixed to window</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Scroll">
<pre>Scroll with tiddlers</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings/BackgroundImageSize">
<pre>Page background image size</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings/BackgroundImageSize/Auto">
<pre>Auto</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings/BackgroundImageSize/Contain">
<pre>Contain</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings/BackgroundImageSize/Cover">
<pre>Cover</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings/CodeFontFamily">
<pre>Code font family</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings/EditorFontFamily">
<pre>Editor font family</pre>
</div>
<div title="$:/language/ThemeTweaks/Settings/FontFamily">
<pre>Font family</pre>
</div>
<div title="$:/language/ThemeTweaks/ThemeTweaks">
<pre>Theme Tweaks</pre>
</div>
<div title="$:/language/ThemeTweaks/ThemeTweaks/Hint">
<pre>You can tweak certain aspects of the ''Vanilla'' theme.</pre>
</div>
<div title="$:/language/Tiddler/DateFormat">
<pre>DDth MMM YYYY at hh12:0mmam</pre>
</div>
<div title="$:/language/TiddlerInfo/Advanced/Caption">
<pre>Advanced</pre>
</div>
<div title="$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint">
<pre>none</pre>
</div>
<div title="$:/language/TiddlerInfo/Advanced/PluginInfo/Heading">
<pre>Plugin Details</pre>
</div>
<div title="$:/language/TiddlerInfo/Advanced/PluginInfo/Hint">
<pre>This plugin contains the following shadow tiddlers:</pre>
</div>
<div title="$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading">
<pre>Shadow Status</pre>
</div>
<div title="$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint">
<pre>The tiddler &lt;$link to=&lt;&lt;infoTiddler&gt;&gt;&gt;&lt;$text text=&lt;&lt;infoTiddler&gt;&gt;/&gt;&lt;/$link&gt; is not a shadow tiddler</pre>
</div>
<div title="$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint">
<pre>It is overridden by an ordinary tiddler</pre>
</div>
<div title="$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint">
<pre>The tiddler &lt;$link to=&lt;&lt;infoTiddler&gt;&gt;&gt;&lt;$text text=&lt;&lt;infoTiddler&gt;&gt;/&gt;&lt;/$link&gt; is a shadow tiddler</pre>
</div>
<div title="$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source">
<pre>It is defined in the plugin &lt;$link to=&lt;&lt;pluginTiddler&gt;&gt;&gt;&lt;$text text=&lt;&lt;pluginTiddler&gt;&gt;/&gt;&lt;/$link&gt;</pre>
</div>
<div title="$:/language/TiddlerInfo/Fields/Caption">
<pre>Fields</pre>
</div>
<div title="$:/language/TiddlerInfo/List/Caption">
<pre>List</pre>
</div>
<div title="$:/language/TiddlerInfo/List/Empty">
<pre>This tiddler does not have a list</pre>
</div>
<div title="$:/language/TiddlerInfo/Listed/Caption">
<pre>Listed</pre>
</div>
<div title="$:/language/TiddlerInfo/Listed/Empty">
<pre>This tiddler is not listed by any others</pre>
</div>
<div title="$:/language/TiddlerInfo/References/Caption">
<pre>References</pre>
</div>
<div title="$:/language/TiddlerInfo/References/Empty">
<pre>No tiddlers link to this one</pre>
</div>
<div title="$:/language/TiddlerInfo/Tagging/Caption">
<pre>Tagging</pre>
</div>
<div title="$:/language/TiddlerInfo/Tagging/Empty">
<pre>No tiddlers are tagged with this one</pre>
</div>
<div title="$:/language/TiddlerInfo/Tools/Caption">
<pre>Tools</pre>
</div>
<div title="$:/language/UnsavedChangesWarning">
<pre>You have unsaved changes in TiddlyWiki</pre>
</div>
<div title="$:/language/Yes">
<pre>Yes</pre>
</div>
<div author="JeremyRuston" core-version="&gt;=5.0.0&quot;" description="English (British)" name="en-GB" title="$:/languages/en-GB">
<pre>Stub pseudo-plugin for the default language</pre>
</div>
<div title="$:/languages/en-GB/icon" type="image/svg+xml">
<pre>&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 60 30&quot; width=&quot;1200&quot; height=&quot;600&quot;&gt;
&lt;clipPath id=&quot;t&quot;&gt;
&lt;path d=&quot;M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z&quot;/&gt;
&lt;/clipPath&gt;
&lt;path d=&quot;M0,0 v30 h60 v-30 z&quot; fill=&quot;#00247d&quot;/&gt;
&lt;path d=&quot;M0,0 L60,30 M60,0 L0,30&quot; stroke=&quot;#fff&quot; stroke-width=&quot;6&quot;/&gt;
&lt;path d=&quot;M0,0 L60,30 M60,0 L0,30&quot; clip-path=&quot;url(#t)&quot; stroke=&quot;#cf142b&quot; stroke-width=&quot;4&quot;/&gt;
&lt;path d=&quot;M30,0 v30 M0,15 h60&quot; stroke=&quot;#fff&quot; stroke-width=&quot;10&quot;/&gt;
&lt;path d=&quot;M30,0 v30 M0,15 h60&quot; stroke=&quot;#cf142b&quot; stroke-width=&quot;6&quot;/&gt;
&lt;/svg&gt;
</pre>
</div>
<div title="$:/library/sjcl.js/license" type="text/plain">
<pre>SJCL is open. You can use, modify and redistribute it under a BSD
license or under the GNU GPL, version 2.0.
---------------------------------------------------------------------
http://opensource.org/licenses/BSD-2-Clause
Copyright (c) 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at
Stanford University. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS
IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------
http://opensource.org/licenses/GPL-2.0
The Stanford Javascript Crypto Library (hosted here on GitHub) is a
project by the Stanford Computer Security Lab to build a secure,
powerful, fast, small, easy-to-use, cross-browser library for
cryptography in Javascript.
Copyright (c) 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at
Stanford University.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</pre>
</div>
<div color="#bbb" icon="$:/core/images/list" title="$:/Manager">
<pre>\define lingo-base() $:/language/Manager/
\define list-item-content-item()
&lt;div class=&quot;tc-manager-list-item-content-item&quot;&gt;
&lt;$vars state-title=&quot;&quot;&quot;$:/state/popup/manager/item/$(listItem)$&quot;&quot;&quot;&gt;
&lt;$reveal state=&lt;&lt;state-title&gt;&gt; type=&quot;match&quot; text=&quot;show&quot; default=&quot;show&quot; tag=&quot;div&quot;&gt;
&lt;$button set=&lt;&lt;state-title&gt;&gt; setTo=&quot;hide&quot; class=&quot;tc-btn-invisible tc-manager-list-item-content-item-heading&quot;&gt;
{{$:/core/images/down-arrow}} &lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; field=&quot;caption&quot;/&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&lt;&lt;state-title&gt;&gt; type=&quot;nomatch&quot; text=&quot;show&quot; default=&quot;show&quot; tag=&quot;div&quot;&gt;
&lt;$button set=&lt;&lt;state-title&gt;&gt; setTo=&quot;show&quot; class=&quot;tc-btn-invisible tc-manager-list-item-content-item-heading&quot;&gt;
{{$:/core/images/right-arrow}} &lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt; field=&quot;caption&quot;/&gt;
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&lt;&lt;state-title&gt;&gt; type=&quot;match&quot; text=&quot;show&quot; default=&quot;show&quot; tag=&quot;div&quot; class=&quot;tc-manager-list-item-content-item-body&quot;&gt;
&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;
&lt;/$reveal&gt;
&lt;/$vars&gt;
&lt;/div&gt;
\end
&lt;div class=&quot;tc-manager-wrapper&quot;&gt;
&lt;div class=&quot;tc-manager-controls&quot;&gt;
&lt;div class=&quot;tc-manager-control&quot;&gt;
&lt;&lt;lingo Controls/Show/Prompt&gt;&gt; &lt;$select tiddler=&quot;$:/config/Manager/Show&quot; default=&quot;tiddlers&quot;&gt;
&lt;option value=&quot;tiddlers&quot;&gt;&lt;&lt;lingo Controls/Show/Option/Tiddlers&gt;&gt;&lt;/option&gt;
&lt;option value=&quot;tags&quot;&gt;&lt;&lt;lingo Controls/Show/Option/Tags&gt;&gt;&lt;/option&gt;
&lt;/$select&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-manager-control&quot;&gt;
&lt;&lt;lingo Controls/Search/Prompt&gt;&gt; &lt;$edit-text tiddler=&quot;$:/config/Manager/Filter&quot; tag=&quot;input&quot; default=&quot;&quot; placeholder={{$:/language/Manager/Controls/Search/Placeholder}}/&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-manager-control&quot;&gt;
&lt;&lt;lingo Controls/FilterByTag/Prompt&gt;&gt; &lt;$select tiddler=&quot;$:/config/Manager/Tag&quot; default=&quot;&quot;&gt;
&lt;option value=&quot;&quot;&gt;&lt;&lt;lingo Controls/FilterByTag/None&gt;&gt;&lt;/option&gt;
&lt;$list filter=&quot;[!is{$:/config/Manager/System}tags[]!is[system]sort[title]]&quot; variable=&quot;tag&quot;&gt;
&lt;option value=&lt;&lt;tag&gt;&gt;&gt;&lt;$text text=&lt;&lt;tag&gt;&gt;/&gt;&lt;/option&gt;
&lt;/$list&gt;
&lt;/$select&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-manager-control&quot;&gt;
&lt;&lt;lingo Controls/Sort/Prompt&gt;&gt; &lt;$select tiddler=&quot;$:/config/Manager/Sort&quot; default=&quot;title&quot;&gt;
&lt;optgroup label=&quot;Common&quot;&gt;
&lt;$list filter=&quot;title modified modifier created creator created&quot; variable=&quot;field&quot;&gt;
&lt;option value=&lt;&lt;field&gt;&gt;&gt;&lt;$text text=&lt;&lt;field&gt;&gt;/&gt;&lt;/option&gt;
&lt;/$list&gt;
&lt;/optgroup&gt;
&lt;optgroup label=&quot;All&quot;&gt;
&lt;$list filter=&quot;[all{$:/config/Manager/Show}!is{$:/config/Manager/System}fields[]sort[title]] -title -modified -modifier -created -creator -created&quot; variable=&quot;field&quot;&gt;
&lt;option value=&lt;&lt;field&gt;&gt;&gt;&lt;$text text=&lt;&lt;field&gt;&gt;/&gt;&lt;/option&gt;
&lt;/$list&gt;
&lt;/optgroup&gt;
&lt;/$select&gt;
&lt;$checkbox tiddler=&quot;$:/config/Manager/Order&quot; field=&quot;text&quot; checked=&quot;reverse&quot; unchecked=&quot;forward&quot; default=&quot;forward&quot;&gt;
&lt;&lt;lingo Controls/Order/Prompt&gt;&gt;
&lt;/$checkbox&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-manager-control&quot;&gt;
&lt;$checkbox tiddler=&quot;$:/config/Manager/System&quot; field=&quot;text&quot; checked=&quot;&quot; unchecked=&quot;system&quot; default=&quot;system&quot;&gt;
{{$:/language/SystemTiddlers/Include/Prompt}}
&lt;/$checkbox&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-manager-list&quot;&gt;
&lt;$list filter=&quot;[all{$:/config/Manager/Show}!is{$:/config/Manager/System}search{$:/config/Manager/Filter}tag:strict{$:/config/Manager/Tag}sort{$:/config/Manager/Sort}order{$:/config/Manager/Order}]&quot;&gt;
&lt;$vars transclusion=&lt;&lt;currentTiddler&gt;&gt;&gt;
&lt;div style=&quot;tc-manager-list-item&quot;&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/manager/popup&quot;&gt;&gt; class=&quot;tc-btn-invisible tc-manager-list-item-heading&quot; selectedClass=&quot;tc-manager-list-item-heading-selected&quot;&gt;
&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;
&lt;/$button&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/manager/popup&quot;&gt;&gt; type=&quot;nomatch&quot; text=&quot;&quot; default=&quot;&quot; tag=&quot;div&quot; class=&quot;tc-manager-list-item-content tc-popup-handle&quot;&gt;
&lt;div class=&quot;tc-manager-list-item-content-tiddler&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;
&lt;&lt;list-item-content-item&gt;&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;div class=&quot;tc-manager-list-item-content-sidebar&quot;&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]&quot; variable=&quot;listItem&quot;&gt;
&lt;&lt;list-item-content-item&gt;&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;/$vars&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/div&gt;
</pre>
</div>
<div caption="{{$:/language/Manager/Item/Fields}}" tags="$:/tags/Manager/ItemMain" title="$:/Manager/ItemMain/Fields">
<pre>&lt;table&gt;
&lt;tbody&gt;
&lt;$list filter=&quot;[all[current]fields[]sort[title]] -text&quot; template=&quot;$:/core/ui/TiddlerFieldTemplate&quot; variable=&quot;listItem&quot;/&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</pre>
</div>
<div caption="{{$:/language/Manager/Item/RawText}}" tags="$:/tags/Manager/ItemMain" title="$:/Manager/ItemMain/RawText">
<pre>&lt;pre&gt;&lt;code&gt;&lt;$view/&gt;&lt;/code&gt;&lt;/pre&gt;
</pre>
</div>
<div caption="{{$:/language/Manager/Item/WikifiedText}}" tags="$:/tags/Manager/ItemMain" title="$:/Manager/ItemMain/WikifiedText">
<pre>&lt;$transclude mode=&quot;block&quot;/&gt;
</pre>
</div>
<div caption="{{$:/language/Manager/Item/Colour}}" tags="$:/tags/Manager/ItemSidebar" title="$:/Manager/ItemSidebar/Colour">
<pre>\define swatch-styles()
height: 1em;
background-color: $(colour)$
\end
&lt;$vars colour={{!!color}}&gt;
&lt;p style=&lt;&lt;swatch-styles&gt;&gt;/&gt;
&lt;/$vars&gt;
&lt;p&gt;
&lt;$edit-text field=&quot;color&quot; tag=&quot;input&quot; type=&quot;color&quot;/&gt; / &lt;$edit-text field=&quot;color&quot; tag=&quot;input&quot; type=&quot;text&quot; size=&quot;9&quot;/&gt;
&lt;/p&gt;
</pre>
</div>
<div caption="{{$:/language/Manager/Item/Icon}}" tags="$:/tags/Manager/ItemSidebar" title="$:/Manager/ItemSidebar/Icon">
<pre>&lt;p&gt;
&lt;div class=&quot;tc-manager-icon-editor&quot;&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/image-picker&quot;&gt;&gt; class=&quot;tc-btn-invisible&quot;&gt;
&lt;$transclude tiddler={{!!icon}}&gt;
{{$:/language/Manager/Item/Icon/None}}
&lt;/$transclude&gt;
&lt;/$button&gt;
&lt;div class=&quot;tc-block-dropdown-wrapper&quot; style=&quot;position: static;&quot;&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/image-picker&quot;&gt;&gt; type=&quot;nomatch&quot; text=&quot;&quot; default=&quot;&quot; tag=&quot;div&quot; class=&quot;tc-popup&quot;&gt;
&lt;div class=&quot;tc-block-dropdown tc-popup-keep&quot; style=&quot;width: 80%; left: 10%; right: 10%; padding: 0.5em;&quot;&gt;
&lt;$macrocall $name=&quot;image-picker-include-tagged-images&quot; actions=&quot;&quot;&quot;
&lt;$action-setfield $field=&quot;icon&quot; $value=&lt;&lt;imageTitle&gt;&gt;/&gt;
&lt;$action-deletetiddler $tiddler=&lt;&lt;qualify &quot;$:/state/popup/image-picker&quot;&gt;&gt;/&gt;
&quot;&quot;&quot;/&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/p&gt;
</pre>
</div>
<div caption="{{$:/language/Manager/Item/Tags}}" tags="$:/tags/Manager/ItemSidebar" title="$:/Manager/ItemSidebar/Tags">
<pre>\define tag-checkbox-actions()
&lt;$action-listops
$tiddler=&quot;$:/config/Manager/RecentTags&quot;
$subfilter=&quot;[&lt;tag&gt;] [list[$:/config/Manager/RecentTags]] +[limit[12]]&quot;
/&gt;
\end
\define tag-picker-actions()
&lt;&lt;tag-checkbox-actions&gt;&gt;
&lt;$action-listops
$tiddler=&lt;&lt;currentTiddler&gt;&gt;
$field=&quot;tags&quot;
$subfilter=&quot;[&lt;tag&gt;] [all[current]tags[]]&quot;
/&gt;
\end
&lt;p&gt;
&lt;$list filter=&quot;[all[current]tags[]] [list[$:/config/Manager/RecentTags]] +[sort[title]] &quot; variable=&quot;tag&quot;&gt;
&lt;div&gt;
&lt;$checkbox tiddler=&lt;&lt;currentTiddler&gt;&gt; tag=&lt;&lt;tag&gt;&gt; actions=&lt;&lt;tag-checkbox-actions&gt;&gt;&gt;
&lt;$macrocall $name=&quot;tag-pill&quot; tag=&lt;&lt;tag&gt;&gt;/&gt;
&lt;/$checkbox&gt;
&lt;/div&gt;
&lt;/$list&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;$macrocall $name=&quot;tag-picker&quot; actions=&lt;&lt;tag-picker-actions&gt;&gt;/&gt;
&lt;/p&gt;
</pre>
</div>
<div caption="{{$:/language/Manager/Item/Tools}}" tags="$:/tags/Manager/ItemSidebar" title="$:/Manager/ItemSidebar/Tools">
<pre>&lt;p&gt;
&lt;$button to=&lt;&lt;currentTiddler&gt;&gt;&gt;{{$:/core/images/link}} open&lt;/$button&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;$button message=&quot;tm-edit-tiddler&quot; param=&lt;&lt;currentTiddler&gt;&gt;&gt;{{$:/core/images/edit-button}} edit&lt;/$button&gt;
&lt;/p&gt;
</pre>
</div>
<div title="$:/palette">
<pre>$:/palettes/Vanilla</pre>
</div>
<div title="$:/PaletteManager">
<pre>\define lingo-base() $:/language/ControlPanel/Palette/Editor/
\define describePaletteColour(colour)
&lt;$transclude tiddler=&quot;$:/language/Docs/PaletteColours/$colour$&quot;&gt;&lt;$text text=&quot;$colour$&quot;/&gt;&lt;/$transclude&gt;
\end
\define edit-colour-placeholder()
edit $(colourName)$
\end
\define colour-tooltip(showhide) $showhide$ editor for $(newColourName)$
\define resolve-colour(macrocall)
\import $:/core/macros/utils
\whitespace trim
&lt;$wikify name=&quot;name&quot; text=&quot;&quot;&quot;$macrocall$&quot;&quot;&quot;&gt;
&lt;&lt;name&gt;&gt;
&lt;/$wikify&gt;
\end
\define delete-colour-index-actions() &lt;$action-setfield $index=&lt;&lt;colourName&gt;&gt;/&gt;
\define palette-manager-colour-row-segment()
\whitespace trim
&lt;$edit-text index=&lt;&lt;colourName&gt;&gt; tag=&quot;input&quot; placeholder=&lt;&lt;edit-colour-placeholder&gt;&gt; default=&quot;&quot;/&gt;
&lt;br&gt;
&lt;$edit-text index=&lt;&lt;colourName&gt;&gt; type=&quot;color&quot; tag=&quot;input&quot; class=&quot;tc-palette-manager-colour-input&quot;/&gt;
&lt;$list filter=&quot;[&lt;currentTiddler&gt;getindex&lt;colourName&gt;removeprefix[&lt;&lt;]removesuffix[&gt;&gt;]] [&lt;currentTiddler&gt;getindex&lt;colourName&gt;removeprefix[&lt;$]removesuffix[/&gt;]]&quot; variable=&quot;ignore&quot;&gt;
&lt;$set name=&quot;state&quot; value={{{ [[$:/state/palettemanager/]addsuffix&lt;currentTiddler&gt;addsuffix[/]addsuffix&lt;colourName&gt;] }}}&gt;
&lt;$wikify name=&quot;newColourName&quot; text=&quot;&quot;&quot;&lt;$macrocall $name=&quot;resolve-colour&quot; macrocall={{{ [&lt;currentTiddler&gt;getindex&lt;colourName&gt;] }}}/&gt;&quot;&quot;&quot;&gt;
&lt;$reveal state=&lt;&lt;state&gt;&gt; type=&quot;nomatch&quot; text=&quot;show&quot;&gt;
&lt;$button tooltip=&lt;&lt;colour-tooltip show&gt;&gt; aria-label=&lt;&lt;colour-tooltip show&gt;&gt; class=&quot;tc-btn-invisible&quot; set=&lt;&lt;state&gt;&gt; setTo=&quot;show&quot;&gt;{{$:/core/images/down-arrow}}&amp;nbsp;&lt;$text text=&lt;&lt;newColourName&gt;&gt;/&gt;&lt;/$button&gt;&lt;br&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&lt;&lt;state&gt;&gt; type=&quot;match&quot; text=&quot;show&quot;&gt;
&lt;$button tooltip=&lt;&lt;colour-tooltip hide&gt;&gt; aria-label=&lt;&lt;colour-tooltip show&gt;&gt; class=&quot;tc-btn-invisible&quot; actions=&quot;&quot;&quot;&lt;$action-deletetiddler $tiddler=&lt;&lt;state&gt;&gt;/&gt;&quot;&quot;&quot;&gt;{{$:/core/images/up-arrow}}&amp;nbsp;&lt;$text text=&lt;&lt;newColourName&gt;&gt;/&gt;&lt;/$button&gt;&lt;br&gt;
&lt;/$reveal&gt;
&lt;$reveal state=&lt;&lt;state&gt;&gt; type=&quot;match&quot; text=&quot;show&quot;&gt;
&lt;$set name=&quot;colourName&quot; value=&lt;&lt;newColourName&gt;&gt;&gt;
&lt;br&gt;
&lt;&lt;palette-manager-colour-row-segment&gt;&gt;
&lt;br&gt;&lt;br&gt;
&lt;/$set&gt;
&lt;/$reveal&gt;
&lt;/$wikify&gt;
&lt;/$set&gt;
&lt;/$list&gt;
\end
\define palette-manager-colour-row()
\whitespace trim
&lt;tr&gt;
&lt;td&gt;
&lt;span style=&quot;float:right;&quot;&gt;
&lt;$button tooltip=&lt;&lt;lingo Delete/Hint&gt;&gt; aria-label=&lt;&lt;lingo Delete/Hint&gt;&gt; class=&quot;tc-btn-invisible&quot; actions=&lt;&lt;delete-colour-index-actions&gt;&gt;&gt;
{{$:/core/images/delete-button}}&lt;/$button&gt;
&lt;/span&gt;
''&lt;$macrocall $name=&quot;describePaletteColour&quot; colour=&lt;&lt;colourName&gt;&gt;/&gt;''&lt;br/&gt;
&lt;$macrocall $name=&quot;colourName&quot; $output=&quot;text/plain&quot;/&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;&lt;palette-manager-colour-row-segment&gt;&gt;
&lt;/td&gt;
&lt;/tr&gt;
\end
\define palette-manager-table()
\whitespace trim
&lt;table&gt;
&lt;tbody&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/Palette]indexes[]]&quot; variable=&quot;colourName&quot;&gt;
&lt;$list filter=&quot;[&lt;currentTiddler&gt;indexes[]removeprefix&lt;colourName&gt;suffix[]]&quot; variable=&quot;ignore&quot; emptyMessage=&quot;&quot;&quot;
&lt;$list filter=&quot;[{$:/state/palettemanager/showexternal}removeprefix[yes]suffix[]]&quot; variable=&quot;ignore&quot;&gt;
&lt;&lt;palette-manager-colour-row&gt;&gt;
&lt;/$list&gt;
&quot;&quot;&quot;&gt;
&lt;&lt;palette-manager-colour-row&gt;&gt;
&lt;/$list&gt;
&lt;/$list&gt;
&lt;/tbody&gt;
&lt;/table&gt;
\end
&lt;$set name=&quot;currentTiddler&quot; value={{$:/palette}}&gt;
&lt;&lt;lingo Prompt&gt;&gt; &lt;$link to={{$:/palette}}&gt;&lt;$macrocall $name=&quot;currentTiddler&quot; $output=&quot;text/plain&quot;/&gt;&lt;/$link&gt;
&lt;$list filter=&quot;[all[current]is[shadow]is[tiddler]]&quot; variable=&quot;listItem&quot;&gt;
&lt;&lt;lingo Prompt/Modified&gt;&gt;
&lt;$button message=&quot;tm-delete-tiddler&quot; param={{$:/palette}}&gt;&lt;&lt;lingo Reset/Caption&gt;&gt;&lt;/$button&gt;
&lt;/$list&gt;
&lt;$list filter=&quot;[all[current]is[shadow]!is[tiddler]]&quot; variable=&quot;listItem&quot;&gt;
&lt;&lt;lingo Clone/Prompt&gt;&gt;
&lt;/$list&gt;
&lt;$button message=&quot;tm-new-tiddler&quot; param={{$:/palette}}&gt;&lt;&lt;lingo Clone/Caption&gt;&gt;&lt;/$button&gt;
&lt;$checkbox tiddler=&quot;$:/state/palettemanager/showexternal&quot; field=&quot;text&quot; checked=&quot;yes&quot; unchecked=&quot;no&quot;&gt;&amp;nbsp;&lt;&lt;lingo Names/External/Show&gt;&gt;&lt;/$checkbox&gt;
&lt;&lt;palette-manager-table&gt;&gt;
</pre>
</div>
<div description="A clean white palette to let you focus" name="Blanca" tags="$:/tags/Palette" title="$:/palettes/Blanca" type="application/x-tiddler-dictionary">
<pre>alert-background: #ffe476
alert-border: #b99e2f
alert-highlight: #881122
alert-muted-foreground: #b99e2f
background: #ffffff
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
button-background:
button-foreground:
button-border:
code-background: #f7f7f9
code-border: #e1e1e8
code-foreground: #dd1144
dirty-indicator: #ff0000
download-background: #66cccc
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: &lt;&lt;colour background&gt;&gt;
dropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;
dropdown-tab-background-selected: #fff
dropdown-tab-background: #ececec
dropzone-background: rgba(0,200,0,0.7)
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #0000aa
external-link-foreground: #0000ee
foreground: #333333
message-background: #ecf2ff
message-border: #cfd6e6
message-foreground: #547599
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: #999999
modal-footer-background: #f5f5f5
modal-footer-border: #dddddd
modal-header-border: #eeeeee
muted-foreground: #999999
notification-background: #ffffdd
notification-border: #999999
page-background: #ffffff
pre-background: #f5f5f5
pre-border: #cccccc
primary: #7897f3
select-tag-background:
select-tag-foreground:
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: #000000
sidebar-controls-foreground: #ccc
sidebar-foreground-shadow: rgba(255,255,255, 0.8)
sidebar-foreground: #acacac
sidebar-muted-foreground-hover: #444444
sidebar-muted-foreground: #c0c0c0
sidebar-tab-background-selected: #ffffff
sidebar-tab-background: &lt;&lt;colour tab-background&gt;&gt;
sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;
sidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;
sidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;
sidebar-tab-foreground-selected:
sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-tiddler-link-foreground-hover: #444444
sidebar-tiddler-link-foreground: #7897f3
site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;
static-alert-foreground: #aaaaaa
tab-background-selected: #ffffff
tab-background: #eeeeee
tab-border-selected: #cccccc
tab-border: #cccccc
tab-divider: #d8d8d8
tab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;
tab-foreground: #666666
table-border: #dddddd
table-footer-background: #a8a8a8
table-header-background: #f0f0f0
tag-background: #ffeedd
tag-foreground: #000
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: #eee
tiddler-controls-foreground-hover: #888888
tiddler-controls-foreground-selected: #444444
tiddler-controls-foreground: #cccccc
tiddler-editor-background: #f8f8f8
tiddler-editor-border-image: #ffffff
tiddler-editor-border: #cccccc
tiddler-editor-fields-even: #e0e8e0
tiddler-editor-fields-odd: #f0f4f0
tiddler-info-background: #f8f8f8
tiddler-info-border: #dddddd
tiddler-info-tab-background: #f8f8f8
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: #c0c0c0
tiddler-title-foreground: #ff9900
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: #999999
very-muted-foreground: #888888
</pre>
</div>
<div description="A blue theme" name="Blue" tags="$:/tags/Palette" title="$:/palettes/Blue" type="application/x-tiddler-dictionary">
<pre>alert-background: #ffe476
alert-border: #b99e2f
alert-highlight: #881122
alert-muted-foreground: #b99e2f
background: #fff
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
button-background:
button-foreground:
button-border:
code-background: #f7f7f9
code-border: #e1e1e8
code-foreground: #dd1144
dirty-indicator: #ff0000
download-background: #34c734
download-foreground: &lt;&lt;colour foreground&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: &lt;&lt;colour background&gt;&gt;
dropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;
dropdown-tab-background-selected: #fff
dropdown-tab-background: #ececec
dropzone-background: rgba(0,200,0,0.7)
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #0000aa
external-link-foreground: #0000ee
foreground: #333353
message-background: #ecf2ff
message-border: #cfd6e6
message-foreground: #547599
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: #999999
modal-footer-background: #f5f5f5
modal-footer-border: #dddddd
modal-header-border: #eeeeee
muted-foreground: #999999
notification-background: #ffffdd
notification-border: #999999
page-background: #ddddff
pre-background: #f5f5f5
pre-border: #cccccc
primary: #5778d8
select-tag-background:
select-tag-foreground:
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: #000000
sidebar-controls-foreground: #ffffff
sidebar-foreground-shadow: rgba(255,255,255, 0.8)
sidebar-foreground: #acacac
sidebar-muted-foreground-hover: #444444
sidebar-muted-foreground: #c0c0c0
sidebar-tab-background-selected: &lt;&lt;colour page-background&gt;&gt;
sidebar-tab-background: &lt;&lt;colour tab-background&gt;&gt;
sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;
sidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;
sidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;
sidebar-tab-foreground-selected:
sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-tiddler-link-foreground-hover: #444444
sidebar-tiddler-link-foreground: #5959c0
site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;
static-alert-foreground: #aaaaaa
tab-background-selected: &lt;&lt;colour background&gt;&gt;
tab-background: #ccccdd
tab-border-selected: #ccccdd
tab-border: #cccccc
tab-divider: #d8d8d8
tab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;
tab-foreground: #666666
table-border: #dddddd
table-footer-background: #a8a8a8
table-header-background: #f0f0f0
tag-background: #eeeeff
tag-foreground: #000
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: &lt;&lt;colour background&gt;&gt;
tiddler-controls-foreground-hover: #666666
tiddler-controls-foreground-selected: #444444
tiddler-controls-foreground: #cccccc
tiddler-editor-background: #f8f8f8
tiddler-editor-border-image: #ffffff
tiddler-editor-border: #cccccc
tiddler-editor-fields-even: #e0e8e0
tiddler-editor-fields-odd: #f0f4f0
tiddler-info-background: #ffffff
tiddler-info-border: #dddddd
tiddler-info-tab-background: #ffffff
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: #c0c0c0
tiddler-title-foreground: #5959c0
toolbar-new-button: #5eb95e
toolbar-options-button: rgb(128, 88, 165)
toolbar-save-button: #0e90d2
toolbar-info-button: #0e90d2
toolbar-edit-button: rgb(243, 123, 29)
toolbar-close-button: #dd514c
toolbar-delete-button: #dd514c
toolbar-cancel-button: rgb(243, 123, 29)
toolbar-done-button: #5eb95e
untagged-background: #999999
very-muted-foreground: #888888
</pre>
</div>
<div description="High contrast and unambiguous (dark version)" name="Contrast (Dark)" tags="$:/tags/Palette" title="$:/palettes/ContrastDark" type="application/x-tiddler-dictionary">
<pre>alert-background: #f00
alert-border: &lt;&lt;colour background&gt;&gt;
alert-highlight: &lt;&lt;colour foreground&gt;&gt;
alert-muted-foreground: #800
background: #000
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
button-background: &lt;&lt;colour background&gt;&gt;
button-foreground: &lt;&lt;colour foreground&gt;&gt;
button-border: &lt;&lt;colour foreground&gt;&gt;
code-background: &lt;&lt;colour background&gt;&gt;
code-border: &lt;&lt;colour foreground&gt;&gt;
code-foreground: &lt;&lt;colour foreground&gt;&gt;
dirty-indicator: #f00
download-background: #080
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: &lt;&lt;colour background&gt;&gt;
dropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;
dropdown-tab-background-selected: &lt;&lt;colour foreground&gt;&gt;
dropdown-tab-background: &lt;&lt;colour foreground&gt;&gt;
dropzone-background: rgba(0,200,0,0.7)
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #00a
external-link-foreground: #00e
foreground: #fff
message-background: &lt;&lt;colour foreground&gt;&gt;
message-border: &lt;&lt;colour background&gt;&gt;
message-foreground: &lt;&lt;colour background&gt;&gt;
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: &lt;&lt;colour foreground&gt;&gt;
modal-footer-background: &lt;&lt;colour background&gt;&gt;
modal-footer-border: &lt;&lt;colour foreground&gt;&gt;
modal-header-border: &lt;&lt;colour foreground&gt;&gt;
muted-foreground: &lt;&lt;colour foreground&gt;&gt;
notification-background: &lt;&lt;colour background&gt;&gt;
notification-border: &lt;&lt;colour foreground&gt;&gt;
page-background: &lt;&lt;colour background&gt;&gt;
pre-background: &lt;&lt;colour background&gt;&gt;
pre-border: &lt;&lt;colour foreground&gt;&gt;
primary: #00f
select-tag-background:
select-tag-foreground:
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: &lt;&lt;colour background&gt;&gt;
sidebar-controls-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-foreground-shadow: rgba(0,0,0, 0)
sidebar-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-muted-foreground-hover: #444444
sidebar-muted-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-tab-background-selected: &lt;&lt;colour background&gt;&gt;
sidebar-tab-background: &lt;&lt;colour tab-background&gt;&gt;
sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;
sidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;
sidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;
sidebar-tab-foreground-selected: &lt;&lt;colour foreground&gt;&gt;
sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-tiddler-link-foreground-hover: &lt;&lt;colour foreground&gt;&gt;
sidebar-tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;
static-alert-foreground: #aaaaaa
tab-background-selected: &lt;&lt;colour background&gt;&gt;
tab-background: &lt;&lt;colour foreground&gt;&gt;
tab-border-selected: &lt;&lt;colour foreground&gt;&gt;
tab-border: &lt;&lt;colour foreground&gt;&gt;
tab-divider: &lt;&lt;colour foreground&gt;&gt;
tab-foreground-selected: &lt;&lt;colour foreground&gt;&gt;
tab-foreground: &lt;&lt;colour background&gt;&gt;
table-border: #dddddd
table-footer-background: #a8a8a8
table-header-background: #f0f0f0
tag-background: #fff
tag-foreground: #000
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: &lt;&lt;colour foreground&gt;&gt;
tiddler-controls-foreground-hover: #ddd
tiddler-controls-foreground-selected: #fdd
tiddler-controls-foreground: &lt;&lt;colour foreground&gt;&gt;
tiddler-editor-background: &lt;&lt;colour background&gt;&gt;
tiddler-editor-border-image: &lt;&lt;colour foreground&gt;&gt;
tiddler-editor-border: #cccccc
tiddler-editor-fields-even: &lt;&lt;colour background&gt;&gt;
tiddler-editor-fields-odd: &lt;&lt;colour background&gt;&gt;
tiddler-info-background: &lt;&lt;colour background&gt;&gt;
tiddler-info-border: &lt;&lt;colour foreground&gt;&gt;
tiddler-info-tab-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: &lt;&lt;colour foreground&gt;&gt;
tiddler-title-foreground: &lt;&lt;colour foreground&gt;&gt;
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: &lt;&lt;colour foreground&gt;&gt;
very-muted-foreground: #888888
</pre>
</div>
<div description="High contrast and unambiguous (light version)" name="Contrast (Light)" tags="$:/tags/Palette" title="$:/palettes/ContrastLight" type="application/x-tiddler-dictionary">
<pre>alert-background: #f00
alert-border: &lt;&lt;colour background&gt;&gt;
alert-highlight: &lt;&lt;colour foreground&gt;&gt;
alert-muted-foreground: #800
background: #fff
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
button-background: &lt;&lt;colour background&gt;&gt;
button-foreground: &lt;&lt;colour foreground&gt;&gt;
button-border: &lt;&lt;colour foreground&gt;&gt;
code-background: &lt;&lt;colour background&gt;&gt;
code-border: &lt;&lt;colour foreground&gt;&gt;
code-foreground: &lt;&lt;colour foreground&gt;&gt;
dirty-indicator: #f00
download-background: #080
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: &lt;&lt;colour background&gt;&gt;
dropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;
dropdown-tab-background-selected: &lt;&lt;colour foreground&gt;&gt;
dropdown-tab-background: &lt;&lt;colour foreground&gt;&gt;
dropzone-background: rgba(0,200,0,0.7)
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #00a
external-link-foreground: #00e
foreground: #000
message-background: &lt;&lt;colour foreground&gt;&gt;
message-border: &lt;&lt;colour background&gt;&gt;
message-foreground: &lt;&lt;colour background&gt;&gt;
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: &lt;&lt;colour foreground&gt;&gt;
modal-footer-background: &lt;&lt;colour background&gt;&gt;
modal-footer-border: &lt;&lt;colour foreground&gt;&gt;
modal-header-border: &lt;&lt;colour foreground&gt;&gt;
muted-foreground: &lt;&lt;colour foreground&gt;&gt;
notification-background: &lt;&lt;colour background&gt;&gt;
notification-border: &lt;&lt;colour foreground&gt;&gt;
page-background: &lt;&lt;colour background&gt;&gt;
pre-background: &lt;&lt;colour background&gt;&gt;
pre-border: &lt;&lt;colour foreground&gt;&gt;
primary: #00f
select-tag-background:
select-tag-foreground:
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: &lt;&lt;colour background&gt;&gt;
sidebar-controls-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-foreground-shadow: rgba(0,0,0, 0)
sidebar-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-muted-foreground-hover: #444444
sidebar-muted-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-tab-background-selected: &lt;&lt;colour background&gt;&gt;
sidebar-tab-background: &lt;&lt;colour tab-background&gt;&gt;
sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;
sidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;
sidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;
sidebar-tab-foreground-selected: &lt;&lt;colour foreground&gt;&gt;
sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-tiddler-link-foreground-hover: &lt;&lt;colour foreground&gt;&gt;
sidebar-tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;
static-alert-foreground: #aaaaaa
tab-background-selected: &lt;&lt;colour background&gt;&gt;
tab-background: &lt;&lt;colour foreground&gt;&gt;
tab-border-selected: &lt;&lt;colour foreground&gt;&gt;
tab-border: &lt;&lt;colour foreground&gt;&gt;
tab-divider: &lt;&lt;colour foreground&gt;&gt;
tab-foreground-selected: &lt;&lt;colour foreground&gt;&gt;
tab-foreground: &lt;&lt;colour background&gt;&gt;
table-border: #dddddd
table-footer-background: #a8a8a8
table-header-background: #f0f0f0
tag-background: #000
tag-foreground: #fff
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: &lt;&lt;colour foreground&gt;&gt;
tiddler-controls-foreground-hover: #ddd
tiddler-controls-foreground-selected: #fdd
tiddler-controls-foreground: &lt;&lt;colour foreground&gt;&gt;
tiddler-editor-background: &lt;&lt;colour background&gt;&gt;
tiddler-editor-border-image: &lt;&lt;colour foreground&gt;&gt;
tiddler-editor-border: #cccccc
tiddler-editor-fields-even: &lt;&lt;colour background&gt;&gt;
tiddler-editor-fields-odd: &lt;&lt;colour background&gt;&gt;
tiddler-info-background: &lt;&lt;colour background&gt;&gt;
tiddler-info-border: &lt;&lt;colour foreground&gt;&gt;
tiddler-info-tab-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: &lt;&lt;colour foreground&gt;&gt;
tiddler-title-foreground: &lt;&lt;colour foreground&gt;&gt;
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: &lt;&lt;colour foreground&gt;&gt;
very-muted-foreground: #888888
</pre>
</div>
<div created="20150402111612188" description="Good with dark photo backgrounds" modified="20150402112344080" name="DarkPhotos" tags="$:/tags/Palette" title="$:/palettes/DarkPhotos" type="application/x-tiddler-dictionary">
<pre>alert-background: #ffe476
alert-border: #b99e2f
alert-highlight: #881122
alert-muted-foreground: #b99e2f
background: #ffffff
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
button-background:
button-foreground:
button-border:
code-background: #f7f7f9
code-border: #e1e1e8
code-foreground: #dd1144
dirty-indicator: #ff0000
download-background: #34c734
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: &lt;&lt;colour background&gt;&gt;
dropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;
dropdown-tab-background-selected: #fff
dropdown-tab-background: #ececec
dropzone-background: rgba(0,200,0,0.7)
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #0000aa
external-link-foreground: #0000ee
foreground: #333333
message-background: #ecf2ff
message-border: #cfd6e6
message-foreground: #547599
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: #999999
modal-footer-background: #f5f5f5
modal-footer-border: #dddddd
modal-header-border: #eeeeee
muted-foreground: #ddd
notification-background: #ffffdd
notification-border: #999999
page-background: #336438
pre-background: #f5f5f5
pre-border: #cccccc
primary: #5778d8
select-tag-background:
select-tag-foreground:
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: #ccf
sidebar-controls-foreground: #fff
sidebar-foreground-shadow: rgba(0,0,0, 0.5)
sidebar-foreground: #fff
sidebar-muted-foreground-hover: #444444
sidebar-muted-foreground: #eee
sidebar-tab-background-selected: rgba(255,255,255, 0.8)
sidebar-tab-background: rgba(255,255,255, 0.4)
sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;
sidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;
sidebar-tab-divider: rgba(255,255,255, 0.2)
sidebar-tab-foreground-selected:
sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-tiddler-link-foreground-hover: #aaf
sidebar-tiddler-link-foreground: #ddf
site-title-foreground: #fff
static-alert-foreground: #aaaaaa
tab-background-selected: #ffffff
tab-background: #d8d8d8
tab-border-selected: #d8d8d8
tab-border: #cccccc
tab-divider: #d8d8d8
tab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;
tab-foreground: #666666
table-border: #dddddd
table-footer-background: #a8a8a8
table-header-background: #f0f0f0
tag-background: #ec6
tag-foreground: #ffffff
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: &lt;&lt;colour background&gt;&gt;
tiddler-controls-foreground-hover: #888888
tiddler-controls-foreground-selected: #444444
tiddler-controls-foreground: #cccccc
tiddler-editor-background: #f8f8f8
tiddler-editor-border-image: #ffffff
tiddler-editor-border: #cccccc
tiddler-editor-fields-even: #e0e8e0
tiddler-editor-fields-odd: #f0f4f0
tiddler-info-background: #f8f8f8
tiddler-info-border: #dddddd
tiddler-info-tab-background: #f8f8f8
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: #c0c0c0
tiddler-title-foreground: #182955
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: #999999
very-muted-foreground: #888888
</pre>
</div>
<div description="Retro groove color scheme" license="https://github.com/morhetz/gruvbox" name="Gruvbox Dark" tags="$:/tags/Palette" title="$:/palettes/GruvboxDark" type="application/x-tiddler-dictionary">
<pre>alert-background: #cc241d
alert-border: #cc241d
alert-highlight: #d79921
alert-muted-foreground: #504945
background: #3c3836
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
button-background: #504945
button-foreground: #fbf1c7
button-border: transparent
code-background: #504945
code-border: #504945
code-foreground: #fb4934
diff-delete-background: #fb4934
diff-delete-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-equal-background:
diff-equal-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-insert-background: #b8bb26
diff-insert-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-invisible-background:
diff-invisible-foreground: &lt;&lt;colour muted-foreground&gt;&gt;
dirty-indicator: #fb4934
download-background: #b8bb26
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: #665c54
dropdown-border: &lt;&lt;colour background&gt;&gt;
dropdown-tab-background-selected: #ebdbb2
dropdown-tab-background: #665c54
dropzone-background: #98971a
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #d3869b
external-link-foreground: #8ec07c
foreground: #fbf1c7
menubar-background: #504945
menubar-foreground: &lt;&lt;colour foreground&gt;&gt;
message-background: #83a598
message-border: #83a598
message-foreground: #3c3836
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: #504945
modal-footer-background: #3c3836
modal-footer-border: #3c3836
modal-header-border: #3c3836
muted-foreground: #d5c4a1
notification-background: &lt;&lt;colour primary&gt;&gt;
notification-border: &lt;&lt;colour primary&gt;&gt;
page-background: #282828
pre-background: #504945
pre-border: #504945
primary: #d79921
select-tag-background: #665c54
select-tag-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: #7c6f64
sidebar-controls-foreground: #504945
sidebar-foreground-shadow: transparent
sidebar-foreground: #fbf1c7
sidebar-muted-foreground-hover: #7c6f64
sidebar-muted-foreground: #504945
sidebar-tab-background-selected: #bdae93
sidebar-tab-background: #3c3836
sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;
sidebar-tab-border: #bdae93
sidebar-tab-divider: &lt;&lt;colour page-background&gt;&gt;
sidebar-tab-foreground-selected: #282828
sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-tiddler-link-foreground-hover: #458588
sidebar-tiddler-link-foreground: #98971a
site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;
static-alert-foreground: #B48EAD
tab-background-selected: #ebdbb2
tab-background: #665c54
tab-border-selected: #665c54
tab-border: #665c54
tab-divider: #bdae93
tab-foreground-selected: #282828
tab-foreground: #ebdbb2
table-border: #7c6f64
table-footer-background: #665c54
table-header-background: #504945
tag-background: #d3869b
tag-foreground: #282828
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: &lt;&lt;colour background&gt;&gt;
tiddler-controls-foreground-hover: #7c6f64
tiddler-controls-foreground-selected: #7c6f64
tiddler-controls-foreground: #665c54
tiddler-editor-background: #282828
tiddler-editor-border-image: #282828
tiddler-editor-border: #282828
tiddler-editor-fields-even: #504945
tiddler-editor-fields-odd: #7c6f64
tiddler-info-background: #32302f
tiddler-info-border: #ebdbb2
tiddler-info-tab-background: #ebdbb2
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: #7c6f64
tiddler-title-foreground: #a89984
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: #504945
very-muted-foreground: #bdae93
wikilist-background: &lt;&lt;colour page-background&gt;&gt;
wikilist-button-background: &lt;&lt;colour button-background&gt;&gt;
wikilist-button-foreground: &lt;&lt;colour button-foreground&gt;&gt;
wikilist-item: &lt;&lt;colour background&gt;&gt;
wikilist-toolbar-background: &lt;&lt;colour background&gt;&gt;
wikilist-toolbar-foreground: &lt;&lt;colour foreground&gt;&gt;
wikilist-title: &lt;&lt;colour foreground&gt;&gt;
wikilist-title-svg: &lt;&lt;colour wikilist-title&gt;&gt;
wikilist-url: &lt;&lt;colour muted-foreground&gt;&gt;
wikilist-button-open-hover: &lt;&lt;colour primary&gt;&gt;
wikilist-button-open: &lt;&lt;colour dropzone-background&gt;&gt;
wikilist-button-remove: &lt;&lt;colour dirty-indicator&gt;&gt;
wikilist-button-remove-hover: &lt;&lt;colour alert-background&gt;&gt;
wikilist-droplink-dragover: &lt;&lt;colour dropzone-background&gt;&gt;
wikilist-button-reveal: &lt;&lt;colour sidebar-tiddler-link-foreground-hover&gt;&gt;
wikilist-button-reveal-hover: &lt;&lt;colour message-background&gt;&gt;</pre>
</div>
<div description="Bright tiddlers on a muted background" name="Muted" tags="$:/tags/Palette" title="$:/palettes/Muted" type="application/x-tiddler-dictionary">
<pre>alert-background: #ffe476
alert-border: #b99e2f
alert-highlight: #881122
alert-muted-foreground: #b99e2f
background: #ffffff
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
button-background:
button-foreground:
button-border:
code-background: #f7f7f9
code-border: #e1e1e8
code-foreground: #dd1144
dirty-indicator: #ff0000
download-background: #34c734
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: &lt;&lt;colour background&gt;&gt;
dropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;
dropdown-tab-background-selected: #fff
dropdown-tab-background: #ececec
dropzone-background: rgba(0,200,0,0.7)
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #0000aa
external-link-foreground: #0000ee
foreground: #333333
message-background: #ecf2ff
message-border: #cfd6e6
message-foreground: #547599
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: #999999
modal-footer-background: #f5f5f5
modal-footer-border: #dddddd
modal-header-border: #eeeeee
muted-foreground: #bbb
notification-background: #ffffdd
notification-border: #999999
page-background: #6f6f70
pre-background: #f5f5f5
pre-border: #cccccc
primary: #29a6ee
select-tag-background:
select-tag-foreground:
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: #000000
sidebar-controls-foreground: #c2c1c2
sidebar-foreground-shadow: rgba(255,255,255,0)
sidebar-foreground: #d3d2d4
sidebar-muted-foreground-hover: #444444
sidebar-muted-foreground: #c0c0c0
sidebar-tab-background-selected: #6f6f70
sidebar-tab-background: #666667
sidebar-tab-border-selected: #999
sidebar-tab-border: #515151
sidebar-tab-divider: #999
sidebar-tab-foreground-selected:
sidebar-tab-foreground: #999
sidebar-tiddler-link-foreground-hover: #444444
sidebar-tiddler-link-foreground: #d1d0d2
site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;
static-alert-foreground: #aaaaaa
tab-background-selected: #ffffff
tab-background: #d8d8d8
tab-border-selected: #d8d8d8
tab-border: #cccccc
tab-divider: #d8d8d8
tab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;
tab-foreground: #666666
table-border: #dddddd
table-footer-background: #a8a8a8
table-header-background: #f0f0f0
tag-background: #d5ad34
tag-foreground: #ffffff
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: &lt;&lt;colour background&gt;&gt;
tiddler-controls-foreground-hover: #888888
tiddler-controls-foreground-selected: #444444
tiddler-controls-foreground: #cccccc
tiddler-editor-background: #f8f8f8
tiddler-editor-border-image: #ffffff
tiddler-editor-border: #cccccc
tiddler-editor-fields-even: #e0e8e0
tiddler-editor-fields-odd: #f0f4f0
tiddler-info-background: #f8f8f8
tiddler-info-border: #dddddd
tiddler-info-tab-background: #f8f8f8
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: #c0c0c0
tiddler-title-foreground: #182955
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: #999999
very-muted-foreground: #888888
</pre>
</div>
<div description="An arctic, north-bluish color palette." license="MIT, arcticicestudio, https://github.com/arcticicestudio/nord/blob/develop/LICENSE.md" name="Nord" tags="$:/tags/Palette" title="$:/palettes/Nord" type="application/x-tiddler-dictionary">
<pre>alert-background: #D08770
alert-border: #D08770
alert-highlight: #B48EAD
alert-muted-foreground: #4C566A
background: #3b4252
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
button-background: #4C566A
button-foreground: #D8DEE9
button-border: transparent
code-background: #2E3440
code-border: #2E3440
code-foreground: #BF616A
diff-delete-background: #BF616A
diff-delete-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-equal-background:
diff-equal-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-insert-background: #A3BE8C
diff-insert-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-invisible-background:
diff-invisible-foreground: &lt;&lt;colour muted-foreground&gt;&gt;
dirty-indicator: #BF616A
download-background: #A3BE8C
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: &lt;&lt;colour background&gt;&gt;
dropdown-border: &lt;&lt;colour background&gt;&gt;
dropdown-tab-background-selected: #ECEFF4
dropdown-tab-background: #4C566A
dropzone-background: #A3BE8C
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #5E81AC
external-link-foreground: #8FBCBB
foreground: #d8dee9
menubar-background: #2E3440
menubar-foreground: #d8dee9
message-background: #2E3440
message-border: #2E3440
message-foreground: #547599
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: #3b4252
modal-footer-background: #3b4252
modal-footer-border: #3b4252
modal-header-border: #3b4252
muted-foreground: #4C566A
notification-background: &lt;&lt;colour primary&gt;&gt;
notification-border: #EBCB8B
page-background: #2e3440
pre-background: #2E3440
pre-border: #2E3440
primary: #5E81AC
select-tag-background: #3b4252
select-tag-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: #D8DEE9
sidebar-controls-foreground: #4C566A
sidebar-foreground-shadow: transparent
sidebar-foreground: #D8DEE9
sidebar-muted-foreground-hover: #4C566A
sidebar-muted-foreground: #4C566A
sidebar-tab-background-selected: #ECEFF4
sidebar-tab-background: #4C566A
sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;
sidebar-tab-border: #4C566A
sidebar-tab-divider: &lt;&lt;colour page-background&gt;&gt;
sidebar-tab-foreground-selected: #4C566A
sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-tiddler-link-foreground-hover: #A3BE8C
sidebar-tiddler-link-foreground: #81A1C1
site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;
static-alert-foreground: #B48EAD
tab-background-selected: #ECEFF4
tab-background: #4C566A
tab-border-selected: #4C566A
tab-border: #4C566A
tab-divider: #4C566A
tab-foreground-selected: #4C566A
tab-foreground: #D8DEE9
table-border: #4C566A
table-footer-background: #2e3440
table-header-background: #2e3440
tag-background: #A3BE8C
tag-foreground: #4C566A
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: &lt;&lt;colour background&gt;&gt;
tiddler-controls-foreground-hover:
tiddler-controls-foreground-selected: #EBCB8B
tiddler-controls-foreground: #4C566A
tiddler-editor-background: #2e3440
tiddler-editor-border-image: #2e3440
tiddler-editor-border: #2e3440
tiddler-editor-fields-even: #2e3440
tiddler-editor-fields-odd: #2e3440
tiddler-info-background: #2e3440
tiddler-info-border: #2e3440
tiddler-info-tab-background: #2e3440
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: #4C566A
tiddler-title-foreground: #81A1C1
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: #2d3038
very-muted-foreground: #2d3038
</pre>
</div>
<div description="A dark theme" name="Rocker" tags="$:/tags/Palette" title="$:/palettes/Rocker" type="application/x-tiddler-dictionary">
<pre>alert-background: #ffe476
alert-border: #b99e2f
alert-highlight: #881122
alert-muted-foreground: #b99e2f
background: #ffffff
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
button-background:
button-foreground:
button-border:
code-background: #f7f7f9
code-border: #e1e1e8
code-foreground: #dd1144
dirty-indicator: #ff0000
download-background: #34c734
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: &lt;&lt;colour background&gt;&gt;
dropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;
dropdown-tab-background-selected: #fff
dropdown-tab-background: #ececec
dropzone-background: rgba(0,200,0,0.7)
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #0000aa
external-link-foreground: #0000ee
foreground: #333333
message-background: #ecf2ff
message-border: #cfd6e6
message-foreground: #547599
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: #999999
modal-footer-background: #f5f5f5
modal-footer-border: #dddddd
modal-header-border: #eeeeee
muted-foreground: #999999
notification-background: #ffffdd
notification-border: #999999
page-background: #000
pre-background: #f5f5f5
pre-border: #cccccc
primary: #cc0000
select-tag-background:
select-tag-foreground:
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: #000000
sidebar-controls-foreground: #ffffff
sidebar-foreground-shadow: rgba(255,255,255, 0.0)
sidebar-foreground: #acacac
sidebar-muted-foreground-hover: #444444
sidebar-muted-foreground: #c0c0c0
sidebar-tab-background-selected: #000
sidebar-tab-background: &lt;&lt;colour tab-background&gt;&gt;
sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;
sidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;
sidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;
sidebar-tab-foreground-selected:
sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-tiddler-link-foreground-hover: #ffbb99
sidebar-tiddler-link-foreground: #cc0000
site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;
static-alert-foreground: #aaaaaa
tab-background-selected: #ffffff
tab-background: #d8d8d8
tab-border-selected: #d8d8d8
tab-border: #cccccc
tab-divider: #d8d8d8
tab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;
tab-foreground: #666666
table-border: #dddddd
table-footer-background: #a8a8a8
table-header-background: #f0f0f0
tag-background: #ffbb99
tag-foreground: #000
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: &lt;&lt;colour background&gt;&gt;
tiddler-controls-foreground-hover: #888888
tiddler-controls-foreground-selected: #444444
tiddler-controls-foreground: #cccccc
tiddler-editor-background: #f8f8f8
tiddler-editor-border-image: #ffffff
tiddler-editor-border: #cccccc
tiddler-editor-fields-even: #e0e8e0
tiddler-editor-fields-odd: #f0f4f0
tiddler-info-background: #f8f8f8
tiddler-info-border: #dddddd
tiddler-info-tab-background: #f8f8f8
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: #c0c0c0
tiddler-title-foreground: #cc0000
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: #999999
very-muted-foreground: #888888
</pre>
</div>
<div description="Warm, relaxing earth colours" name="Solar Flare" tags="$:/tags/Palette" title="$:/palettes/SolarFlare" type="application/x-tiddler-dictionary">
<pre>: Background Tones
base03: #002b36
base02: #073642
: Content Tones
base01: #586e75
base00: #657b83
base0: #839496
base1: #93a1a1
: Background Tones
base2: #eee8d5
base3: #fdf6e3
: Accent Colors
yellow: #b58900
orange: #cb4b16
red: #dc322f
magenta: #d33682
violet: #6c71c4
blue: #268bd2
cyan: #2aa198
green: #859900
: Additional Tones (RA)
base10: #c0c4bb
violet-muted: #7c81b0
blue-muted: #4e7baa
yellow-hot: #ffcc44
orange-hot: #eb6d20
red-hot: #ff2222
blue-hot: #2298ee
green-hot: #98ee22
: Palette
: Do not use colour macro for background and foreground
background: #fdf6e3
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: &lt;&lt;colour background&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
sidebar-foreground-shadow: &lt;&lt;colour background&gt;&gt;
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: &lt;&lt;colour background&gt;&gt;
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tab-background-selected: &lt;&lt;colour background&gt;&gt;
dropdown-tab-background-selected: &lt;&lt;colour tab-background-selected&gt;&gt;
foreground: #657b83
dragger-background: &lt;&lt;colour foreground&gt;&gt;
tab-foreground: &lt;&lt;colour foreground&gt;&gt;
tab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-tab-foreground-selected: &lt;&lt;colour tab-foreground-selected&gt;&gt;
sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-foreground: &lt;&lt;colour foreground&gt;&gt;
: base03
: base02
: base01
alert-muted-foreground: &lt;&lt;colour base01&gt;&gt;
: base00
code-foreground: &lt;&lt;colour base00&gt;&gt;
message-foreground: &lt;&lt;colour base00&gt;&gt;
tag-foreground: &lt;&lt;colour base00&gt;&gt;
: base0
sidebar-tiddler-link-foreground: &lt;&lt;colour base0&gt;&gt;
: base1
muted-foreground: &lt;&lt;colour base1&gt;&gt;
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
dropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;
sidebar-muted-foreground: &lt;&lt;colour muted-foreground&gt;&gt;
tiddler-title-foreground: &lt;&lt;colour muted-foreground&gt;&gt;
site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;
: base2
modal-footer-background: &lt;&lt;colour base2&gt;&gt;
page-background: &lt;&lt;colour base2&gt;&gt;
modal-backdrop: &lt;&lt;colour page-background&gt;&gt;
notification-background: &lt;&lt;colour page-background&gt;&gt;
code-background: &lt;&lt;colour page-background&gt;&gt;
code-border: &lt;&lt;colour code-background&gt;&gt;
pre-background: &lt;&lt;colour page-background&gt;&gt;
pre-border: &lt;&lt;colour pre-background&gt;&gt;
sidebar-tab-background-selected: &lt;&lt;colour page-background&gt;&gt;
table-header-background: &lt;&lt;colour base2&gt;&gt;
tag-background: &lt;&lt;colour base2&gt;&gt;
tiddler-editor-background: &lt;&lt;colour base2&gt;&gt;
tiddler-info-background: &lt;&lt;colour base2&gt;&gt;
tiddler-info-tab-background: &lt;&lt;colour base2&gt;&gt;
tab-background: &lt;&lt;colour base2&gt;&gt;
dropdown-tab-background: &lt;&lt;colour tab-background&gt;&gt;
: base3
alert-background: &lt;&lt;colour base3&gt;&gt;
message-background: &lt;&lt;colour base3&gt;&gt;
: yellow
: orange
: red
: magenta
alert-highlight: &lt;&lt;colour magenta&gt;&gt;
: violet
external-link-foreground: &lt;&lt;colour violet&gt;&gt;
: blue
: cyan
: green
: base10
tiddler-controls-foreground: &lt;&lt;colour base10&gt;&gt;
: violet-muted
external-link-foreground-visited: &lt;&lt;colour violet-muted&gt;&gt;
: blue-muted
primary: &lt;&lt;colour blue-muted&gt;&gt;
download-background: &lt;&lt;colour primary&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
alert-border: #b99e2f
dirty-indicator: #ff0000
dropzone-background: rgba(0,200,0,0.7)
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
message-border: #cfd6e6
modal-border: #999999
select-tag-background:
select-tag-foreground:
sidebar-controls-foreground-hover:
sidebar-muted-foreground-hover:
sidebar-tab-background: #ded8c5
sidebar-tiddler-link-foreground-hover:
static-alert-foreground: #aaaaaa
tab-border: #cccccc
modal-footer-border: &lt;&lt;colour tab-border&gt;&gt;
modal-header-border: &lt;&lt;colour tab-border&gt;&gt;
notification-border: &lt;&lt;colour tab-border&gt;&gt;
sidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;
tab-border-selected: &lt;&lt;colour tab-border&gt;&gt;
sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;
tab-divider: #d8d8d8
sidebar-tab-divider: &lt;&lt;colour tab-divider&gt;&gt;
table-border: #dddddd
table-footer-background: #a8a8a8
tiddler-controls-foreground-hover: #888888
tiddler-controls-foreground-selected: #444444
tiddler-editor-border-image: #ffffff
tiddler-editor-border: #cccccc
tiddler-editor-fields-even: #e0e8e0
tiddler-editor-fields-odd: #f0f4f0
tiddler-info-border: #dddddd
tiddler-subtitle-foreground: #c0c0c0
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: #999999
very-muted-foreground: #888888
</pre>
</div>
<div description="Precision colors for machines and people" license="MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE" name="SolarizedLight" tags="$:/tags/Palette" title="$:/palettes/SolarizedLight" type="application/x-tiddler-dictionary">
<pre>alert-background: #eee8d5
alert-border: #073642
alert-highlight: #cb4b16
alert-muted-foreground: #586e75
background: #fdf6e3
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
button-background: #cb4b16
button-foreground: #fdf6e3
button-border: transparent
code-background: #eee8d5
code-border: #93a1a1
code-foreground: #d33682
diff-delete-background: #BF616A
diff-delete-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-equal-background:
diff-equal-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-insert-background: #859900
diff-insert-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-invisible-background:
diff-invisible-foreground: &lt;&lt;colour muted-foreground&gt;&gt;
dirty-indicator: #D08770
download-background: #859900
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: &lt;&lt;colour background&gt;&gt;
dropdown-border: &lt;&lt;colour background&gt;&gt;
dropdown-tab-background-selected: #fdf6e3
dropdown-tab-background: #93a1a1
dropzone-background: #859900
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: #d33682
external-link-foreground-visited: #b58900
external-link-foreground: #cb4b16
foreground: #839496
message-background: #586e75
message-border: #586e75
message-foreground: #eee8d5
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: #eee8d5
modal-footer-background: #eee8d5
modal-footer-border: #eee8d5
modal-header-border: #eee8d5
muted-foreground: #93a1a1
notification-background: #EBCB8B
notification-border: #D08770
page-background: #eee8d5
pre-background: #eee8d5
pre-border: #93a1a1
primary: #2aa198
select-tag-background: #eee8d5
select-tag-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-button-foreground: #eee8d5
sidebar-controls-foreground-hover: #268bd2
sidebar-controls-foreground: #586e75
sidebar-foreground-shadow: transparent
sidebar-foreground: #839496
sidebar-muted-foreground-hover: #657b83
sidebar-muted-foreground: #93a1a1
sidebar-tab-background-selected: #eee8d5
sidebar-tab-background: #839496
sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;
sidebar-tab-border: #657b83
sidebar-tab-divider: &lt;&lt;colour page-background&gt;&gt;
sidebar-tab-foreground-selected: #839496
sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-tiddler-link-foreground-hover: #859900
sidebar-tiddler-link-foreground: #268bd2
site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;
static-alert-foreground: #dc322f
tab-background-selected: #fdf6e3
tab-background: #839496
tab-border-selected: #93a1a1
tab-border: #93a1a1
tab-divider: #fdf6e3
tab-foreground-selected: #839496
tab-foreground: #eee8d5
table-border: #657b83
table-footer-background: #657b83
table-header-background: #93a1a1
tag-background: #6c71c4
tag-foreground: #eee8d5
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: &lt;&lt;colour background&gt;&gt;
tiddler-controls-foreground-hover: #b58900
tiddler-controls-foreground-selected: #b58900
tiddler-controls-foreground: #073642
tiddler-editor-background: #eee8d5
tiddler-editor-border-image: #eee8d5
tiddler-editor-border: #eee8d5
tiddler-editor-fields-even: #eee8d5
tiddler-editor-fields-odd: #fdf6e3
tiddler-info-background: #eee8d5
tiddler-info-border: #eee8d5
tiddler-info-tab-background: #586e75
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: #586e75
tiddler-title-foreground: #073642
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: #839496
very-muted-foreground: #93a1a1
</pre>
</div>
<div description="Cold, spartan day colors" name="Spartan Day" tags="$:/tags/Palette" title="$:/palettes/SpartanDay" type="application/x-tiddler-dictionary">
<pre>alert-background: &lt;&lt;colour background&gt;&gt;
alert-border: &lt;&lt;colour very-muted-foreground&gt;&gt;
alert-highlight: &lt;&lt;colour very-muted-foreground&gt;&gt;
alert-muted-foreground: &lt;&lt;colour muted-foreground&gt;&gt;
background: #FAFAFA
blockquote-bar: &lt;&lt;colour page-background&gt;&gt;
button-background: transparent
button-foreground: inherit
button-border: &lt;&lt;colour tag-background&gt;&gt;
code-background: #ececec
code-border: #ececec
code-foreground:
dirty-indicator: #c80000
download-background: &lt;&lt;colour primary&gt;&gt;
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: #FFFFFF
dropdown-border: &lt;&lt;colour dropdown-background&gt;&gt;
dropdown-tab-background-selected: &lt;&lt;colour dropdown-background&gt;&gt;
dropdown-tab-background: #F5F5F5
dropzone-background: &lt;&lt;colour tag-background&gt;&gt;
external-link-background-hover: transparent
external-link-background-visited: transparent
external-link-background: transparent
external-link-foreground-hover:
external-link-foreground-visited:
external-link-foreground:
foreground: rgba(0, 0, 0, 0.87)
message-background: &lt;&lt;colour background&gt;&gt;
message-border: &lt;&lt;colour very-muted-foreground&gt;&gt;
message-foreground: rgba(0, 0, 0, 0.54)
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: &lt;&lt;colour very-muted-foreground&gt;&gt;
modal-footer-background: &lt;&lt;colour background&gt;&gt;
modal-footer-border: &lt;&lt;colour very-muted-foreground&gt;&gt;
modal-header-border: &lt;&lt;colour very-muted-foreground&gt;&gt;
muted-foreground: rgba(0, 0, 0, 0.54)
notification-background: &lt;&lt;colour dropdown-background&gt;&gt;
notification-border: &lt;&lt;colour dropdown-background&gt;&gt;
page-background: #f4f4f4
pre-background: #ececec
pre-border: #ececec
primary: #3949ab
select-tag-background: &lt;&lt;colour background&gt;&gt;
select-tag-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: #aeaeae
sidebar-controls-foreground: #c6c6c6
sidebar-foreground-shadow: transparent
sidebar-foreground: rgba(0, 0, 0, 0.54)
sidebar-muted-foreground-hover: rgba(0, 0, 0, 0.54)
sidebar-muted-foreground: rgba(0, 0, 0, 0.38)
sidebar-tab-background-selected: &lt;&lt;colour page-background&gt;&gt;
sidebar-tab-background: transparent
sidebar-tab-border-selected: &lt;&lt;colour table-border&gt;&gt;
sidebar-tab-border: transparent
sidebar-tab-divider: &lt;&lt;colour table-border&gt;&gt;
sidebar-tab-foreground-selected: rgba(0, 0, 0, 0.87)
sidebar-tab-foreground: rgba(0, 0, 0, 0.54)
sidebar-tiddler-link-foreground-hover: rgba(0, 0, 0, 0.87)
sidebar-tiddler-link-foreground: rgba(0, 0, 0, 0.54)
site-title-foreground: rgba(0, 0, 0, 0.87)
static-alert-foreground: #aaaaaa
tab-background-selected: &lt;&lt;colour background&gt;&gt;
tab-background: transparent
tab-border-selected: &lt;&lt;colour table-border&gt;&gt;
tab-border: transparent
tab-divider: &lt;&lt;colour table-border&gt;&gt;
tab-foreground-selected: rgba(0, 0, 0, 0.87)
tab-foreground: rgba(0, 0, 0, 0.54)
table-border: #d8d8d8
table-footer-background: &lt;&lt;colour tiddler-editor-fields-odd&gt;&gt;
table-header-background: &lt;&lt;colour tiddler-editor-fields-even&gt;&gt;
tag-background: #ec6
tag-foreground: &lt;&lt;colour button-foreground&gt;&gt;
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: #f9f9f9
tiddler-controls-foreground-hover: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;
tiddler-controls-foreground-selected: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;
tiddler-controls-foreground: &lt;&lt;colour sidebar-controls-foreground&gt;&gt;
tiddler-editor-background: transparent
tiddler-editor-border-image:
tiddler-editor-border: #e8e7e7
tiddler-editor-fields-even: rgba(0, 0, 0, 0.1)
tiddler-editor-fields-odd: rgba(0, 0, 0, 0.04)
tiddler-info-background: #F5F5F5
tiddler-info-border: #F5F5F5
tiddler-info-tab-background: &lt;&lt;colour tiddler-editor-fields-odd&gt;&gt;
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: &lt;&lt;colour muted-foreground&gt;&gt;
tiddler-title-foreground: #000000
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: &lt;&lt;colour very-muted-foreground&gt;&gt;
very-muted-foreground: rgba(0, 0, 0, 0.12)
</pre>
</div>
<div description="Dark spartan colors" name="Spartan Night" tags="$:/tags/Palette" title="$:/palettes/SpartanNight" type="application/x-tiddler-dictionary">
<pre>alert-background: &lt;&lt;colour background&gt;&gt;
alert-border: &lt;&lt;colour very-muted-foreground&gt;&gt;
alert-highlight: &lt;&lt;colour very-muted-foreground&gt;&gt;
alert-muted-foreground: &lt;&lt;colour muted-foreground&gt;&gt;
background: #303030
blockquote-bar: &lt;&lt;colour page-background&gt;&gt;
button-background: transparent
button-foreground: inherit
button-border: &lt;&lt;colour tag-background&gt;&gt;
code-background: &lt;&lt;colour pre-background&gt;&gt;
code-border: &lt;&lt;colour pre-border&gt;&gt;
code-foreground: rgba(255, 255, 255, 0.54)
dirty-indicator: #c80000
download-background: &lt;&lt;colour primary&gt;&gt;
download-foreground: &lt;&lt;colour foreground&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: #424242
dropdown-border: &lt;&lt;colour dropdown-background&gt;&gt;
dropdown-tab-background-selected: &lt;&lt;colour dropdown-background&gt;&gt;
dropdown-tab-background: #050505
dropzone-background: &lt;&lt;colour tag-background&gt;&gt;
external-link-background-hover: transparent
external-link-background-visited: transparent
external-link-background: transparent
external-link-foreground-hover:
external-link-foreground-visited: #7c318c
external-link-foreground: #9e3eb3
foreground: rgba(255, 255, 255, 0.7)
message-background: &lt;&lt;colour background&gt;&gt;
message-border: &lt;&lt;colour very-muted-foreground&gt;&gt;
message-foreground: rgba(255, 255, 255, 0.54)
modal-backdrop: &lt;&lt;colour page-background&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: &lt;&lt;colour very-muted-foreground&gt;&gt;
modal-footer-background: &lt;&lt;colour background&gt;&gt;
modal-footer-border: &lt;&lt;colour background&gt;&gt;
modal-header-border: &lt;&lt;colour very-muted-foreground&gt;&gt;
muted-foreground: rgba(255, 255, 255, 0.54)
notification-background: &lt;&lt;colour dropdown-background&gt;&gt;
notification-border: &lt;&lt;colour dropdown-background&gt;&gt;
page-background: #212121
pre-background: #2a2a2a
pre-border: transparent
primary: #5656f3
select-tag-background: &lt;&lt;colour background&gt;&gt;
select-tag-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: #494949
sidebar-controls-foreground: #5d5d5d
sidebar-foreground-shadow: transparent
sidebar-foreground: rgba(255, 255, 255, 0.54)
sidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54)
sidebar-muted-foreground: rgba(255, 255, 255, 0.38)
sidebar-tab-background-selected: &lt;&lt;colour page-background&gt;&gt;
sidebar-tab-background: transparent
sidebar-tab-border-selected: &lt;&lt;colour table-border&gt;&gt;
sidebar-tab-border: transparent
sidebar-tab-divider: &lt;&lt;colour table-border&gt;&gt;
sidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87)
sidebar-tab-foreground: rgba(255, 255, 255, 0.54)
sidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7)
sidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54)
site-title-foreground: rgba(255, 255, 255, 0.7)
static-alert-foreground: #aaaaaa
tab-background-selected: &lt;&lt;colour background&gt;&gt;
tab-background: transparent
tab-border-selected: &lt;&lt;colour table-border&gt;&gt;
tab-border: transparent
tab-divider: &lt;&lt;colour table-border&gt;&gt;
tab-foreground-selected: rgba(255, 255, 255, 0.87)
tab-foreground: rgba(255, 255, 255, 0.54)
table-border: #3a3a3a
table-footer-background: &lt;&lt;colour tiddler-editor-fields-odd&gt;&gt;
table-header-background: &lt;&lt;colour tiddler-editor-fields-even&gt;&gt;
tag-background: #ec6
tag-foreground: &lt;&lt;colour button-foreground&gt;&gt;
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: rgb(55,55,55)
tiddler-controls-foreground-hover: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;
tiddler-controls-foreground-selected: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;
tiddler-controls-foreground: &lt;&lt;colour sidebar-controls-foreground&gt;&gt;
tiddler-editor-background: transparent
tiddler-editor-border-image:
tiddler-editor-border: rgba(255, 255, 255, 0.08)
tiddler-editor-fields-even: rgba(255, 255, 255, 0.1)
tiddler-editor-fields-odd: rgba(255, 255, 255, 0.04)
tiddler-info-background: #454545
tiddler-info-border: #454545
tiddler-info-tab-background: &lt;&lt;colour tiddler-editor-fields-odd&gt;&gt;
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: &lt;&lt;colour muted-foreground&gt;&gt;
tiddler-title-foreground: #FFFFFF
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: &lt;&lt;colour very-muted-foreground&gt;&gt;
very-muted-foreground: rgba(255, 255, 255, 0.12)
</pre>
</div>
<div author="Thomas Elmiger" description="Delightful, soft darkness." name="Twilight" tags="$:/tags/Palette" title="$:/palettes/Twilight" type="application/x-tiddler-dictionary">
<pre>alert-background: rgb(255, 255, 102)
alert-border: rgb(232, 232, 125)
alert-highlight: rgb(255, 51, 51)
alert-muted-foreground: rgb(224, 82, 82)
background: rgb(38, 38, 38)
blockquote-bar: rgba(240, 196, 117, 0.7)
button-background: rgb(63, 63, 63)
button-border: rgb(127, 127, 127)
button-foreground: rgb(179, 179, 179)
code-background: rgba(0,0,0,0.03)
code-border: rgba(0,0,0,0.08)
code-foreground: rgb(255, 94, 94)
diff-delete-background: #ffc9c9
diff-delete-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-equal-background:
diff-equal-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-insert-background: #aaefad
diff-insert-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-invisible-background:
diff-invisible-foreground: &lt;&lt;colour muted-foreground&gt;&gt;
dirty-indicator: rgb(255, 94, 94)
download-background: #19a974
download-foreground: rgb(38, 38, 38)
dragger-background: rgb(179, 179, 179)
dragger-foreground: rgb(38, 38, 38)
dropdown-background: rgb(38, 38, 38)
dropdown-border: rgb(255, 255, 255)
dropdown-tab-background: rgba(0,0,0,.1)
dropdown-tab-background-selected: rgba(255,255,255,1)
dropzone-background: #9eebcf
external-link-background: inherit
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-foreground: rgb(179, 179, 255)
external-link-foreground-hover: inherit
external-link-foreground-visited: rgb(153, 153, 255)
foreground: rgb(179, 179, 179)
message-background: &lt;&lt;colour tag-foreground&gt;&gt;
message-border: #96ccff
message-foreground: &lt;&lt;colour tag-background&gt;&gt;
modal-backdrop: rgb(179, 179, 179)
modal-background: rgb(38, 38, 38)
modal-border: rgba(0,0,0,.5)
modal-footer-background: #f4f4f4
modal-footer-border: rgba(0,0,0,.1)
modal-header-border: rgba(0,0,0,.2)
muted-foreground: rgb(255, 255, 255)
notification-background: &lt;&lt;colour tag-foreground&gt;&gt;
notification-border: &lt;&lt;colour tag-background&gt;&gt;
page-background: rgb(26, 26, 26)
pre-background: rgb(25, 25, 25)
pre-border: rgba(0,0,0,.2)
primary: rgb(255, 201, 102)
select-tag-background:
select-tag-foreground:
sidebar-button-foreground: rgb(179, 179, 179)
sidebar-controls-foreground: rgb(153, 153, 153)
sidebar-controls-foreground-hover: &lt;&lt;colour tiddler-controls-foreground-hover&gt;&gt;
sidebar-foreground: rgb(141, 141, 141)
sidebar-foreground-shadow: transparent
sidebar-muted-foreground: rgba(0, 0, 0, 0.5)
sidebar-muted-foreground-hover: rgb(141, 141, 141)
sidebar-tab-background: rgba(141, 141, 141, 0.2)
sidebar-tab-background-selected: rgb(26, 26, 26)
sidebar-tab-border: rgb(127, 127, 127)
sidebar-tab-border-selected: rgb(127, 127, 127)
sidebar-tab-divider: rgb(127, 127, 127)
sidebar-tab-foreground: rgb(179, 179, 179)
sidebar-tab-foreground-selected: rgb(179, 179, 179)
sidebar-tiddler-link-foreground: rgb(179, 179, 179)
sidebar-tiddler-link-foreground-hover: rgb(115, 115, 115)
site-title-foreground: rgb(255, 201, 102)
static-alert-foreground: rgba(0,0,0,.3)
tab-background: rgba(0,0,0,0.125)
tab-background-selected: rgb(38, 38, 38)
tab-border: rgb(255, 201, 102)
tab-border-selected: rgb(255, 201, 102)
tab-divider: rgb(255, 201, 102)
tab-foreground: rgb(179, 179, 179)
tab-foreground-selected: rgb(179, 179, 179)
table-border: rgba(255,255,255,.3)
table-footer-background: rgba(0,0,0,.4)
table-header-background: rgba(0,0,0,.1)
tag-background: rgb(255, 201, 102)
tag-foreground: rgb(25, 25, 25)
tiddler-background: rgb(38, 38, 38)
tiddler-border: rgba(240, 196, 117, 0.7)
tiddler-controls-foreground: rgb(128, 128, 128)
tiddler-controls-foreground-hover: rgba(255, 255, 255, 0.8)
tiddler-controls-foreground-selected: rgba(255, 255, 255, 0.9)
tiddler-editor-background: rgb(33, 33, 33)
tiddler-editor-border: rgb(63, 63, 63)
tiddler-editor-border-image: rgb(25, 25, 25)
tiddler-editor-fields-even: rgb(33, 33, 33)
tiddler-editor-fields-odd: rgb(28, 28, 28)
tiddler-info-background: rgb(43, 43, 43)
tiddler-info-border: rgb(25, 25, 25)
tiddler-info-tab-background: rgb(43, 43, 43)
tiddler-link-background: rgb(38, 38, 38)
tiddler-link-foreground: rgb(204, 204, 255)
tiddler-subtitle-foreground: rgb(255, 255, 255)
tiddler-title-foreground: rgb(255, 192, 76)
toolbar-cancel-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-done-button:
toolbar-edit-button:
toolbar-info-button:
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
untagged-background: rgb(255, 255, 255)
very-muted-foreground: rgba(240, 196, 117, 0.7)
</pre>
</div>
<div created="20210530011215582" description="Pale and unobtrusive" modified="20210530011232384" name="Vanilla" tags="$:/tags/Palette" title="$:/palettes/Vanilla" type="application/x-tiddler-dictionary">
<pre>alert-background: #ffe476
alert-border: #b99e2f
alert-highlight: #881122
alert-muted-foreground: #b99e2f
background: #ffffffbb
blockquote-bar: &lt;&lt;colour muted-foreground&gt;&gt;
button-background:
button-foreground:
button-border:
code-background: #f7f7f9dd
code-border: #e1e1e8
code-foreground: #dd1144
diff-delete-background: #ffc9c9
diff-delete-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-equal-background:
diff-equal-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-insert-background: #aaefad
diff-insert-foreground: &lt;&lt;colour foreground&gt;&gt;
diff-invisible-background:
diff-invisible-foreground: &lt;&lt;colour muted-foreground&gt;&gt;
dirty-indicator: #ff0000
download-background: #34c734
download-foreground: &lt;&lt;colour background&gt;&gt;
dragger-background: &lt;&lt;colour foreground&gt;&gt;
dragger-foreground: &lt;&lt;colour background&gt;&gt;
dropdown-background: &lt;&lt;colour background&gt;&gt;
dropdown-border: &lt;&lt;colour muted-foreground&gt;&gt;
dropdown-tab-background-selected: #fff
dropdown-tab-background: #ececec
dropzone-background: rgba(0,200,0,0.7)
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #0000aa
external-link-foreground: #0000ee
foreground: #333333
message-background: #ecf2ff
message-border: #cfd6e6
message-foreground: #547599
modal-backdrop: &lt;&lt;colour foreground&gt;&gt;
modal-background: &lt;&lt;colour background&gt;&gt;
modal-border: #999999
modal-footer-background: #f5f5f5
modal-footer-border: #dddddd
modal-header-border: #eeeeee
muted-foreground: #bbb
notification-background: #ffffdd
notification-border: #999999
page-background: #f4f4f4
pre-background: #f5f5f5
pre-border: #cccccc
primary: #5778d8
select-tag-background:
select-tag-foreground:
sidebar-button-foreground: &lt;&lt;colour foreground&gt;&gt;
sidebar-controls-foreground-hover: #000000
sidebar-controls-foreground: #aaaaaa
sidebar-foreground-shadow: rgba(255,255,255, 0.8)
sidebar-foreground: #acacac
sidebar-muted-foreground-hover: #444444
sidebar-muted-foreground: #c0c0c0
sidebar-tab-background-selected: #f4f4f4
sidebar-tab-background: #e0e0e0
sidebar-tab-border-selected: &lt;&lt;colour tab-border-selected&gt;&gt;
sidebar-tab-border: &lt;&lt;colour tab-border&gt;&gt;
sidebar-tab-divider: #e4e4e4
sidebar-tab-foreground-selected:
sidebar-tab-foreground: &lt;&lt;colour tab-foreground&gt;&gt;
sidebar-tiddler-link-foreground-hover: #444444
sidebar-tiddler-link-foreground: #999999
site-title-foreground: &lt;&lt;colour tiddler-title-foreground&gt;&gt;
static-alert-foreground: #aaaaaa
tab-background-selected: #ffffff
tab-background: #d8d8d8
tab-border-selected: #d8d8d8
tab-border: #cccccc
tab-divider: #d8d8d8
tab-foreground-selected: &lt;&lt;colour tab-foreground&gt;&gt;
tab-foreground: #666666
table-border: #dddddd
table-footer-background: #a8a8a8
table-header-background: #f0f0f0
tag-background: #ec6
tag-foreground: #ffffff
tiddler-background: &lt;&lt;colour background&gt;&gt;
tiddler-border: &lt;&lt;colour background&gt;&gt;
tiddler-controls-foreground-hover: #888888
tiddler-controls-foreground-selected: #444444
tiddler-controls-foreground: #cccccc
tiddler-editor-background: #f8f8f8
tiddler-editor-border-image: #ffffff
tiddler-editor-border: #cccccc
tiddler-editor-fields-even: #e0e8e0
tiddler-editor-fields-odd: #f0f4f0
tiddler-info-background: #f8f8f8
tiddler-info-border: #dddddd
tiddler-info-tab-background: #f8f8f8
tiddler-link-background: &lt;&lt;colour background&gt;&gt;
tiddler-link-foreground: &lt;&lt;colour primary&gt;&gt;
tiddler-subtitle-foreground: #c0c0c0
tiddler-title-foreground: #182955
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: #999999
very-muted-foreground: #888888
wikilist-background: #e5e5e5
wikilist-item: #fff
wikilist-info: #000
wikilist-title: #666
wikilist-title-svg: &lt;&lt;colour wikilist-title&gt;&gt;
wikilist-url: #aaa
wikilist-button-open: #4fb82b
wikilist-button-open-hover: green
wikilist-button-reveal: #5778d8
wikilist-button-reveal-hover: blue
wikilist-button-remove: #d85778
wikilist-button-remove-hover: red
wikilist-toolbar-background: #d3d3d3
wikilist-toolbar-foreground: #888
wikilist-droplink-dragover: rgba(255,192,192,0.5)
wikilist-button-background: #acacac
wikilist-button-foreground: #000
</pre>
</div>
<div author="Danielo Rodriguez" bag="default" core-version="&gt;=5.1.0" dependents="" description="double click to edit tiddlers" list="readme" plugin-type="plugin" revision="0" source="https://github.com/danielo515/TW5-2click2edit" title="$:/plugins/danielo515/2click2edit" type="application/json" version="0.1">
<pre>{
&quot;tiddlers&quot;: {
&quot;$:/plugins/danielo515/2click2edit/ClickListener.js&quot;: {
&quot;text&quot;: &quot;/*\\\ntitle: $:/plugins/danielo515/2click2edit/ClickListener.js\ntype: application/javascript\nmodule-type: widget\n\nThis widgets adds an double click event listener to its parent\n\n\\*/\n\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\n\nvar ClickListener = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nClickListener.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nClickListener.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.execute();\n\tvar self = this;\n /*Since the event listener have been added to the parent, the \&quot;this\&quot; property is pointing to the\n wrong object, we should call our edit function with our widget object set as the this property.*/\n parent.addEventListener(\&quot;dblclick\&quot;,function(event){self.editTiddler.call(self,event)});\n};\n\nClickListener.prototype.editTiddler = function(event) {\n this.dispatchEvent({type: \&quot;tm-edit-tiddler\&quot;, param: this.getVariable(\&quot;currentTiddler\&quot;)}); \n};\n\n/*\nCompute the internal state of the widget\n*/\nClickListener.prototype.execute = function() {\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nClickListener.prototype.refresh = function(changedTiddlers) {\n\treturn false;\n};\n\nexports.click = ClickListener;\n\n})();&quot;,
&quot;title&quot;: &quot;$:/plugins/danielo515/2click2edit/ClickListener.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;widget&quot;
},
&quot;$:/plugins/danielo515/2click2edit/readme&quot;: {
&quot;title&quot;: &quot;$:/plugins/danielo515/2click2edit/readme&quot;,
&quot;text&quot;: &quot;This plugin adds the ability to edit tiddlers by double clicking on its body.\nJust try to edit any tiddler shown here by double clicking on it.\n\nThis can be considered a fast solution. It is only to fill the gap until TiddlyWiki adds support \nfor it officially.\n&quot;
},
&quot;$:/plugins/danielo515/2click2edit/ui/ViewTemplate&quot;: {
&quot;tags&quot;: &quot;$:/tags/ViewTemplate&quot;,
&quot;title&quot;: &quot;$:/plugins/danielo515/2click2edit/ui/ViewTemplate&quot;,
&quot;type&quot;: &quot;text/vnd.tiddlywiki&quot;,
&quot;text&quot;: &quot;&lt;$click&gt;&quot;
}
}
}</pre>
</div>
<div module-type="widget" title="$:/plugins/danielo515/2click2edit/ClickListener.js" type="application/javascript">
<pre>/*\
title: $:/plugins/danielo515/2click2edit/ClickListener.js
type: application/javascript
module-type: widget
This widgets adds an double click event listener to its parent
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var Widget = require(&quot;$:/core/modules/widgets/widget.js&quot;).widget;
var ClickListener = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
ClickListener.prototype = new Widget();
/*
Render this widget into the DOM
*/
ClickListener.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.execute();
var self = this;
/*Since the event listener have been added to the parent, the &quot;this&quot; property is pointing to the
wrong object, we should call our edit function with our widget object set as the this property.*/
parent.addEventListener(&quot;dblclick&quot;,function(event){self.editTiddler.call(self,event)});
};
ClickListener.prototype.editTiddler = function(event) {
this.dispatchEvent({type: &quot;tm-edit-tiddler&quot;, param: this.getVariable(&quot;currentTiddler&quot;)});
};
/*
Compute the internal state of the widget
*/
ClickListener.prototype.execute = function() {
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
ClickListener.prototype.refresh = function(changedTiddlers) {
return false;
};
exports.click = ClickListener;
})();</pre>
</div>
<div title="$:/plugins/danielo515/2click2edit/readme">
<pre>This plugin adds the ability to edit tiddlers by double clicking on its body.
Just try to edit any tiddler shown here by double clicking on it.
This can be considered a fast solution. It is only to fill the gap until TiddlyWiki adds support
for it officially.
</pre>
</div>
<div tags="$:/tags/ViewTemplate" title="$:/plugins/danielo515/2click2edit/ui/ViewTemplate" type="text/vnd.tiddlywiki">
<pre>&lt;$click&gt;</pre>
</div>
<div author="Felix Küppers" core-version="&gt;=5.1.5" dependents="" description="Respawn Open default tiddlers when river is empty" list="Configuration License Readme" plugin-type="plugin" released="" source="https://github.com/felixhayashi/TW5-respawn" title="$:/plugins/felixhayashi/respawn" type="application/json" version="0.0.3">
<pre>{
&quot;tiddlers&quot;: {
&quot;$:/plugins/felixhayashi/respawn/respawn.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\ntitle: $:/plugins/felixhayashi/respawn/respawn.js\ntype: application/javascript\nmodule-type: startup\n\n@preserve\n\n\\*/\n\n(function(){\n \n /*jslint node: true, browser: true */\n /*global $tw: false */\n \&quot;use strict\&quot;;\n \n var configTRef = \&quot;$:/plugins/felixhayashi/respawn/config\&quot;;\n \n var changeListener = function(changedTiddlers) {\n \n if(!changedTiddlers[\&quot;$:/StoryList\&quot;]) return;\n \n var tObj = $tw.wiki.getTiddler(\&quot;$:/StoryList\&quot;);\n if(tObj &amp;&amp; !tObj.fields[\&quot;list\&quot;].length) {\n \n var confTObj = $tw.wiki.getTiddler(configTRef);\n var config = confTObj ? confTObj.fields : {};\n \n window.setTimeout(function() {\n $tw.rootWidget.dispatchEvent({\n type: \&quot;tm-home\&quot;\n });\n }, parseInt(config.delay) || 500);\n }\n \n };\n \n exports.name = \&quot;respawn\&quot;;\n exports.platforms = [\&quot;browser\&quot;];\n exports.after = [\&quot;story\&quot;];\n exports.synchronous = true;\n \n exports.startup = function() {\n \n $tw.wiki.addEventListener(\&quot;change\&quot;, changeListener);\n \n };\n\n})();\n&quot;,
&quot;title&quot;: &quot;$:/plugins/felixhayashi/respawn/respawn.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;startup&quot;
},
&quot;$:/plugins/felixhayashi/respawn/Configuration&quot;: {
&quot;title&quot;: &quot;$:/plugins/felixhayashi/respawn/Configuration&quot;,
&quot;text&quot;: &quot;&lt;!-- The config output is not written to this tiddler! --&gt;\n\nPlease see the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information on the options.\n\nYou may have to save and reload the wiki to activate changes.\n\n&lt;table&gt;\n &lt;tr&gt;\n &lt;th align=\&quot;left\&quot;&gt;Delay (seconds):&lt;/th&gt;\n &lt;td&gt;\n &lt;$edit-text\n tiddler=\&quot;$:/plugins/felixhayashi/respawn/config\&quot;\n field=\&quot;delay\&quot;\n tag=\&quot;input\&quot;\n default=\&quot;500\&quot; /&gt;\n &lt;/td&gt;\n &lt;/tr&gt;\n&lt;/table&gt;&quot;
},
&quot;$:/plugins/felixhayashi/respawn/License&quot;: {
&quot;title&quot;: &quot;$:/plugins/felixhayashi/respawn/License&quot;,
&quot;text&quot;: &quot;This code is released under the BSD license. For the exact terms visit:\n\nhttps://github.com/felixhayashi/TW5-Respawn/blob/master/LICENSE&quot;
},
&quot;$:/plugins/felixhayashi/respawn/Readme&quot;: {
&quot;title&quot;: &quot;$:/plugins/felixhayashi/respawn/Readme&quot;,
&quot;text&quot;: &quot;Please visit the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information.&quot;
}
}
}</pre>
</div>
<div title="$:/plugins/felixhayashi/respawn/Configuration">
<pre>&lt;!-- The config output is not written to this tiddler! --&gt;
Please see the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information on the options.
You may have to save and reload the wiki to activate changes.
&lt;table&gt;
&lt;tr&gt;
&lt;th align=&quot;left&quot;&gt;Delay (seconds):&lt;/th&gt;
&lt;td&gt;
&lt;$edit-text
tiddler=&quot;$:/plugins/felixhayashi/respawn/config&quot;
field=&quot;delay&quot;
tag=&quot;input&quot;
default=&quot;500&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</pre>
</div>
<div title="$:/plugins/felixhayashi/respawn/License">
<pre>This code is released under the BSD license. For the exact terms visit:
https://github.com/felixhayashi/TW5-Respawn/blob/master/LICENSE</pre>
</div>
<div title="$:/plugins/felixhayashi/respawn/Readme">
<pre>Please visit the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information.</pre>
</div>
<div module-type="startup" title="$:/plugins/felixhayashi/respawn/respawn.js" type="application/javascript">
<pre>/*\
title: $:/plugins/felixhayashi/respawn/respawn.js
type: application/javascript
module-type: startup
@preserve
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
&quot;use strict&quot;;
var configTRef = &quot;$:/plugins/felixhayashi/respawn/config&quot;;
var changeListener = function(changedTiddlers) {
if(!changedTiddlers[&quot;$:/StoryList&quot;]) return;
var tObj = $tw.wiki.getTiddler(&quot;$:/StoryList&quot;);
if(tObj &amp;&amp; !tObj.fields[&quot;list&quot;].length) {
var confTObj = $tw.wiki.getTiddler(configTRef);
var config = confTObj ? confTObj.fields : {};
window.setTimeout(function() {
$tw.rootWidget.dispatchEvent({
type: &quot;tm-home&quot;
});
}, parseInt(config.delay) || 500);
}
};
exports.name = &quot;respawn&quot;;
exports.platforms = [&quot;browser&quot;];
exports.after = [&quot;story&quot;];
exports.synchronous = true;
exports.startup = function() {
$tw.wiki.addEventListener(&quot;change&quot;, changeListener);
};
})();
</pre>
</div>
<div author="Flibbles" bag="default" core-version="&gt;=5.1.22" created="20210324034859173" demo="http://flibbles.github.io/tw5-relink/" dependents="" description="Flexibility when relinking renamed tiddlers" list="readme configuration license" modified="20210502175045375" name="Relink" plugin-type="plugin" revision="0" source="https://github.com/flibbles/tw5-relink" tags="rr-TW5 rr-plugins" title="$:/plugins/flibbles/relink" type="application/json" version="2.0.0">
<pre>{
&quot;tiddlers&quot;: {
&quot;$:/plugins/flibbles/relink/js/bulkops.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: startup\n\nReplaces the relinkTiddler defined in $:/core/modules/wiki-bulkops.js\n\nThis is a startup instead of a wikimethods module-type because it's the only\nway to ensure this runs after the old relinkTiddler method is applied.\n\n\\*/\n(function(){\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\nvar utils = require(\&quot;$:/plugins/flibbles/relink/js/utils.js\&quot;);\n\nexports.name = \&quot;redefine-relinkTiddler\&quot;;\nexports.synchronous = true;\n// load-modules is when wikimethods are applied in\n// ``$:/core/modules/startup/load-modules.js``\nexports.after = ['load-modules'];\n\nexports.startup = function() {\n\t$tw.Wiki.prototype.relinkTiddler = relinkTiddler;\n};\n\n/** Walks through all relinkable tiddlers and relinks them.\n * This replaces the existing function in core Tiddlywiki.\n */\nfunction relinkTiddler(fromTitle, toTitle, options) {\n\toptions = options || {};\n\tvar failures = [];\n\tvar indexer = utils.getIndexer(this);\n\tvar records = indexer.relinkLookup(fromTitle, toTitle, options);\n\tfor (var title in records) {\n\t\tvar entries = records[title],\n\t\t\tchanges = Object.create(null),\n\t\t\tupdate = false,\n\t\t\tfails = false;\n\t\tfor (var field in entries) {\n\t\t\tvar entry = entries[field];\n\t\t\tfails = fails || entry.impossible;\n\t\t\tif (entry.output) {\n\t\t\t\tchanges[field] = entry.output;\n\t\t\t\tupdate = true;\n\t\t\t}\n\t\t}\n\t\tif (fails) {\n\t\t\tfailures.push(title);\n\t\t}\n\t\t// If any fields changed, update tiddler\n\t\tif (update) {\n\t\t\tconsole.log(\&quot;Renaming '\&quot;+fromTitle+\&quot;' to '\&quot;+toTitle+\&quot;' in '\&quot; + title + \&quot;'\&quot;);\n\n\t\t\tvar tiddler = this.getTiddler(title);\n\t\t\tvar newTiddler = new $tw.Tiddler(tiddler,changes,this.getModificationFields())\n\t\t\tnewTiddler = $tw.hooks.invokeHook(\&quot;th-relinking-tiddler\&quot;,newTiddler,tiddler);\n\t\t\tthis.addTiddler(newTiddler);\n\t\t\t// If the title changed, we need to perform a nested rename\n\t\t\tif (newTiddler.fields.title !== title) {\n\t\t\t\tthis.deleteTiddler(title);\n\t\t\t\tthis.relinkTiddler(title, newTiddler.fields.title,options);\n\t\t\t}\n\t\t}\n\t};\n\tif (failures.length &gt; 0) {\n\t\tvar options = $tw.utils.extend(\n\t\t\t{ variables: {to: toTitle, from: fromTitle},\n\t\t\t wiki: this},\n\t\t\toptions );\n\t\tlanguage.reportFailures(failures, options);\n\t}\n};\n\n})();\n&quot;,
&quot;module-type&quot;: &quot;startup&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/bulkops.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/indexer.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: indexer\n\nIndexes results from tiddler reference reports so we don't have to call them\nso much.\n\n\\*/\n\n\&quot;use strict\&quot;;\n\nvar utils = require(\&quot;./utils.js\&quot;);\nvar TiddlerContext = utils.getContext('tiddler');\n\nfunction Indexer(wiki) {\n\tthis.wiki = wiki;\n};\n\nIndexer.prototype.init = function() {\n\tthis.rebuild();\n};\n\nIndexer.prototype.rebuild = function() {\n\tthis.index = null;\n\tthis.backIndex = null;\n\tthis.contexts = Object.create(null);\n\tthis.changedTiddlers = undefined;\n\tthis.lastRelinkFrom = undefined;\n};\n\nIndexer.prototype.update = function(updateDescriptor) {\n\tif (!this.index) {\n\t\treturn;\n\t}\n\tvar title;\n\tif (!this.changedTiddlers) {\n\t\tthis.changedTiddlers = Object.create(null);\n\t}\n\tif (updateDescriptor.old.exists) {\n\t\ttitle = updateDescriptor.old.tiddler.fields.title;\n\t\tthis.changedTiddlers[title] = {deleted: true};\n\t\tthis._purge(title);\n\t}\n\tif (updateDescriptor['new'].exists) {\n\t\t// If its the same tiddler as old, this overrides the 'deleted' entry\n\t\ttitle = updateDescriptor['new'].tiddler.fields.title;\n\t\tthis.changedTiddlers[title] = {modified: true};\n\t}\n};\n\nIndexer.prototype.lookup = function(title) {\n\tthis._upkeep();\n\treturn this.index[title];\n};\n\nIndexer.prototype.reverseLookup = function(title) {\n\tthis._upkeep();\n\treturn this.backIndex[title] || Object.create(null);\n};\n\nIndexer.prototype.relinkLookup = function(fromTitle, toTitle, options) {\n\tthis._upkeep();\n\tvar shortlist = undefined;\n\tif (this.lastRelinkFrom === fromTitle) {\n\t\tif (this.lastRelinkTo === toTitle) {\n\t\t\t// We need to reintroduce the relink cache, where temporary info\n\t\t\t// was stored.\n\t\t\toptions.cache = this.lastRelinkCache;\n\t\t\treturn this.lastRelinkResult;\n\t\t}\n\t\tshortlist = Object.keys(this.lastRelinkResult);\n\t}\n\tthis.lastRelinkResult = utils.getRelinkResults(this.wiki, fromTitle, toTitle, this.context, shortlist, options);\n\tthis.lastRelinkTo = toTitle;\n\tthis.lastRelinkFrom = fromTitle;\n\tthis.lastRelinkCache = options.cache;\n\treturn this.lastRelinkResult;\n};\n\nIndexer.prototype._upkeep = function() {\n\tvar title;\n\tif (this.changedTiddlers &amp;&amp; (this.context.changed(this.changedTiddlers) || this.context.parent.changed(this.changedTiddlers))) {\n\t\t// If global macro context or whitelist context changed, wipe all\n\t\tthis.rebuild();\n\t}\n\tif (!this.index) {\n\t\tthis.index = Object.create(null);\n\t\tthis.backIndex = Object.create(null);\n\t\tthis.context = utils.getWikiContext(this.wiki);\n\t\tvar titles = this.wiki.getRelinkableTitles();\n\t\tfor (var i = 0; i &lt; titles.length; i++) {\n\t\t\tthis._populate(titles[i]);\n\t\t};\n\t} else if (this.changedTiddlers) {\n\t\t// If there are cached changes, we apply them now.\n\t\tfor (title in this.contexts) {\n\t\t\tvar tiddlerContext = this.contexts[title];\n\t\t\tif (tiddlerContext.changed(this.changedTiddlers)) {\n\t\t\t\tthis._purge(title);\n\t\t\t\tthis._populate(title);\n\t\t\t\tthis._dropResults(title);\n\t\t\t\t// Wipe this change, so we don't risk updating it twice.\n\t\t\t\tthis.changedTiddlers[title] = undefined;\n\t\t\t}\n\t\t}\n\t\tfor (title in this.changedTiddlers) {\n\t\t\tvar change = this.changedTiddlers[title];\n\t\t\tif (change &amp;&amp; change.modified) {\n\t\t\t\tthis._purge(title);\n\t\t\t\tthis._populate(title);\n\t\t\t\tthis._dropResults(title);\n\t\t\t}\n\t\t}\n\t\tthis.changedTiddlers = undefined;\n\t}\n};\n\nIndexer.prototype._purge = function(title) {\n\tfor (var entry in this.index[title]) {\n\t\tdelete this.backIndex[entry][title];\n\t}\n\tdelete this.contexts[title];\n\tdelete this.index[title];\n};\n\n// This drops the cached relink results if unsanctioned tiddlers were changed\nIndexer.prototype._dropResults = function(title) {\n\tvar tiddler = this.wiki.getTiddler(title);\n\tif (title !== this.lastRelinkFrom\n\t&amp;&amp; title !== this.lastRelinkTo\n\t&amp;&amp; (!tiddler\n\t\t|| !$tw.utils.hop(tiddler.fields, 'draft.of') // is a draft\n\t\t|| tiddler.fields['draft.of'] !== this.lastRelinkFrom // draft of target\n\t\t|| references(this.index[title], this.lastRelinkFrom))) { // draft references target\n\t\t// This is not the draft of the last relinked title,\n\t\t// so our cached results should be wiped.\n\t\tthis.lastRelinkFrom = undefined;\n\t}\n};\n\nfunction references(list, item) {\n\treturn list !== undefined &amp;&amp; list[item];\n};\n\nIndexer.prototype._populate = function(title) {\n\t// Fetch the report for a title, and populate the indexes with result\n\tvar tiddlerContext = new TiddlerContext(this.wiki, this.context, title);\n\tvar references = utils.getTiddlerRelinkReferences(this.wiki, title, tiddlerContext);\n\tthis.index[title] = references;\n\tif (tiddlerContext.hasImports()) {\n\t\tthis.contexts[title] = tiddlerContext;\n\t}\n\tfor (var ref in references) {\n\t\tthis.backIndex[ref] = this.backIndex[ref] || Object.create(null);\n\t\tthis.backIndex[ref][title] = references[ref];\n\t}\n};\n\nexports.RelinkIndexer = Indexer;\n&quot;,
&quot;module-type&quot;: &quot;indexer&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/indexer.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/language.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: library\n\nThis handles all logging and alerts Relink emits.\n\n\\*/\n\nexports.getString = function(title, options) {\n\ttitle = \&quot;$:/plugins/flibbles/relink/language/\&quot; + title;\n\treturn options.wiki.renderTiddler(\&quot;text/plain\&quot;, title, options);\n};\n\nvar logger;\n\nexports.reportFailures = function(failureList, options) {\n\tif (!logger) {\n\t\tlogger = new $tw.utils.Logger(\&quot;Relinker\&quot;);\n\t}\n\tvar alertString = this.getString(\&quot;Error/ReportFailedRelinks\&quot;, options)\n\tvar alreadyReported = Object.create(null);\n\tvar reportList = [];\n\t$tw.utils.each(failureList, function(f) {\n\t\tif (!alreadyReported[f]) {\n\t\t\tif ($tw.browser) {\n\t\t\t\t// This might not make the link if the title is complicated.\n\t\t\t\t// Whatever.\n\t\t\t\treportList.push(\&quot;\\n* [[\&quot; + f + \&quot;]]\&quot;);\n\t\t\t} else {\n\t\t\t\treportList.push(\&quot;\\n* \&quot; + f);\n\t\t\t}\n\t\t\talreadyReported[f] = true;\n\t\t}\n\t});\n\tlogger.alert(alertString + \&quot;\\n\&quot; + reportList.join(\&quot;\&quot;));\n};\n&quot;,
&quot;module-type&quot;: &quot;library&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/language.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/mangler.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: widget\n\nCreates a mangler widget for field validation. This isn't meant to be used\nby the user. It's only used in Relink configuration.\n\n\\*/\n\nvar Widget = require(\&quot;$:/core/modules/widgets/widget.js\&quot;).widget;\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nvar RelinkManglerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \&quot;relink-add-field\&quot;, handler: \&quot;handleAddFieldEvent\&quot;},\n\t\t{type: \&quot;relink-add-operator\&quot;, handler: \&quot;handleAddOperatorEvent\&quot;},\n\t\t{type: \&quot;relink-add-parameter\&quot;, handler: \&quot;handleAddParameterEvent\&quot;},\n\t\t{type: \&quot;relink-add-attribute\&quot;, handler: \&quot;handleAddAttributeEvent\&quot;}\n\t]);\n};\n\nexports.relinkmangler = RelinkManglerWidget;\n\nRelinkManglerWidget.prototype = new Widget();\n\n// This wraps alert so it can be monkeypatched during testing.\nRelinkManglerWidget.prototype.alert = function(message) {\n\talert(message);\n};\n\nRelinkManglerWidget.prototype.handleAddFieldEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (typeof param !== \&quot;object\&quot; || !param.field) {\n\t\t// Can't handle it.\n\t\treturn true;\n\t}\n\tvar trimmedName = param.field.toLowerCase().trim();\n\tif (!trimmedName) {\n\t\t// Still can't handle it, but don't warn.\n\t\treturn true;\n\t}\n\tif(!$tw.utils.isValidFieldName(trimmedName)) {\n\t\tthis.alert($tw.language.getString(\n\t\t\t\&quot;InvalidFieldName\&quot;,\n\t\t\t{variables:\n\t\t\t\t{fieldName: trimmedName}\n\t\t\t}\n\t\t));\n\t} else {\n\t\tadd(this.wiki, \&quot;fields\&quot;, trimmedName);\n\t}\n\treturn true;\n};\n\n/**Not much validation, even though there are definitely illegal\n * operator names. If you input on, Relink won't relink it, but it\n * won't choke on it either. Tiddlywiki will...\n */\nRelinkManglerWidget.prototype.handleAddOperatorEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (param) {\n\t\tadd(this.wiki, \&quot;operators\&quot;, param.operator);\n\t}\n\treturn true;\n};\n\nRelinkManglerWidget.prototype.handleAddParameterEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (param &amp;&amp; param.macro &amp;&amp; param.parameter) {\n\t\tif (/\\s/.test(param.macro.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\&quot;Error/InvalidMacroName\&quot;,\n\t\t\t\t{ variables: {macroName: param.macro},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else if (/[ \\/]/.test(param.parameter.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\&quot;Error/InvalidParameterName\&quot;,\n\t\t\t\t{ variables: {parameterName: param.parameter},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else {\n\t\t\tadd(this.wiki, \&quot;macros\&quot;, param.macro, param.parameter);\n\t\t}\n\t}\n\treturn true;\n};\n\nRelinkManglerWidget.prototype.handleAddAttributeEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (param &amp;&amp; param.element &amp;&amp; param.attribute) {\n\t\tif (/[ \\/]/.test(param.element.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\&quot;Error/InvalidElementName\&quot;,\n\t\t\t\t{ variables: {elementName: param.element},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else if (/[ \\/]/.test(param.attribute.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\&quot;Error/InvalidAttributeName\&quot;,\n\t\t\t\t{ variables: {attributeName: param.attribute},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else {\n\t\t\tadd(this.wiki, \&quot;attributes\&quot;, param.element, param.attribute);\n\t\t}\n\t}\n\treturn true;\n};\n\nfunction add(wiki, category/*, path parts*/) {\n\tvar path = \&quot;$:/config/flibbles/relink/\&quot; + category;\n\tfor (var x = 2; x &lt; arguments.length; x++) {\n\t\tvar part = arguments[x];\n\t\t// Abort if it's falsy, or only whitespace. Also, trim spaces\n\t\tif (!part || !(part = part.trim())) {\n\t\t\treturn;\n\t\t}\n\t\tpath = path + \&quot;/\&quot; + part;\n\t}\n\tvar def = utils.getDefaultType(wiki);\n\twiki.addTiddler({title: path, text: def});\n};\n&quot;,
&quot;module-type&quot;: &quot;widget&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/mangler.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/settings.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: library\n\nThis handles the fetching and distribution of relink settings.\n\n\\*/\n\nvar utils = require('./utils');\n\n///// Legacy. You used to be able to access the type from utils.\nexports.getType = utils.getType;\n/////\n&quot;,
&quot;module-type&quot;: &quot;library&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/settings.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/utils.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: library\n\nUtility methods for relink.\n\n// TODO: The lists of plugins should neither be relinked nor reported.\n\\*/\n\nvar macroFilter = \&quot;[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\&quot;;\n\n/**This works nearly identically to $tw.modules.getModulesByTypeAsHashmap\n * except that this also takes care of migrating V1 relink modules.\n */\nexports.getModulesByTypeAsHashmap = function(moduleType, nameField) {\n\tvar results = Object.create(null);\n\t$tw.modules.forEachModuleOfType(moduleType, function(title, module) {\n\t\tvar key = module[nameField];\n\t\tif (key !== undefined) {\n\t\t\tresults[key] = module;\n\t\t} else {\n\t\t\tfor (var entry in module) {\n\t\t\t\tresults[entry] = {\n\t\t\t\t\trelink: module[entry],\n\t\t\t\t\treport: function() {}};\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\nexports.getTiddlerRelinkReferences = function(wiki, title, context) {\n\tvar tiddler = wiki.getTiddler(title),\n\t\treferences = Object.create(null),\n\t\toptions = {settings: context, wiki: wiki};\n\tif (tiddler) {\n\t\ttry {\n\t\t\tfor (var relinker in getRelinkOperators()) {\n\t\t\t\tgetRelinkOperators()[relinker].report(tiddler, function(title, blurb) {\n\t\t\t\t\treferences[title] = references[title] || [];\n\t\t\t\t\treferences[title].push(blurb);\n\t\t\t\t}, options);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tif (e.message) {\n\t\t\t\te.message = e.message + \&quot;\\nWhen reporting '\&quot; + title + \&quot;' Relink references\&quot;;\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t}\n\treturn references;\n};\n\n/** Returns a pair like this,\n * { title: {field: entry, ... }, ... }\n */\nexports.getRelinkResults = function(wiki, fromTitle, toTitle, context, tiddlerList, options) {\n\toptions = options || {};\n\toptions.wiki = options.wiki || wiki;\n\tfromTitle = (fromTitle || \&quot;\&quot;).trim();\n\ttoTitle = (toTitle || \&quot;\&quot;).trim();\n\tvar changeList = Object.create(null);\n\tif(fromTitle &amp;&amp; toTitle) {\n\t\tif (tiddlerList === undefined) {\n\t\t\ttiddlerList = wiki.getRelinkableTitles();\n\t\t}\n\t\tfor (var i = 0; i &lt; tiddlerList.length; i++) {\n\t\t\tvar title = tiddlerList[i];\n\t\t\tvar tiddler = wiki.getTiddler(title);\n\t\t\tif(tiddler &amp;&amp; !tiddler.fields[\&quot;plugin-type\&quot;]) {\n\t\t\t\ttry {\n\t\t\t\t\tvar entries = Object.create(null),\n\t\t\t\t\t\toperators = getRelinkOperators();\n\t\t\t\t\toptions.settings = new Contexts.tiddler(wiki, context, title);\n\t\t\t\t\tfor (var operation in operators) {\n\t\t\t\t\t\toperators[operation].relink(tiddler, fromTitle, toTitle, entries, options);\n\t\t\t\t\t}\n\t\t\t\t\tfor (var field in entries) {\n\t\t\t\t\t\t// So long as there is one key,\n\t\t\t\t\t\t// add it to the change list.\n\t\t\t\t\t\tchangeList[title] = entries;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {\n\t\t\t\t\t// Should we test for instanceof Error instead?: yes\n\t\t\t\t\t// Does that work in the testing environment?: no\n\t\t\t\t\tif (e.message) {\n\t\t\t\t\t\te.message = e.message + \&quot;\\nWhen relinking '\&quot; + title + \&quot;'\&quot;;\n\t\t\t\t\t}\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn changeList;\n};\n\nvar Contexts = $tw.modules.applyMethods('relinkcontext');\n\nexports.getContext = function(name) {\n\treturn Contexts[name];\n};\n\nexports.getWikiContext = function(wiki) {\n\t// This gives a fresh context every time. It is up to the indexer or\n\t// the cache to preserve those contexts for as long as needed.\n\tvar whitelist = new Contexts.whitelist(wiki);\n\treturn new Contexts.import(wiki, whitelist, macroFilter);\n};\n\n/** Returns the Relink indexer, or a dummy object which pretends to be one.\n */\nexports.getIndexer = function(wiki) {\n\tif (!wiki._relink_indexer) {\n\t\twiki._relink_indexer = (wiki.getIndexer &amp;&amp; wiki.getIndexer(\&quot;RelinkIndexer\&quot;)) || new (require('$:/plugins/flibbles/relink/js/utils/backupIndexer.js'))(wiki);\n\t}\n\treturn wiki._relink_indexer;\n};\n\n/**Relinking supports a cache that persists throughout a whole relink op.\n * This is because the Tiddlywiki caches may get wiped multiple times\n * throughout the course of a relink.\n */\nexports.getCacheForRun = function(options, cacheName, initializer) {\n\toptions.cache = options.cache || Object.create(null);\n\tif (!$tw.utils.hop(options.cache, cacheName)) {\n\t\toptions.cache[cacheName] = initializer();\n\t}\n\treturn options.cache[cacheName];\n};\n\n/**Returns a specific relinker.\n * This is useful for wikitext rules which need to parse a filter or a list\n */\nexports.getType = function(name) {\n\tvar Handler = getFieldTypes()[name];\n\treturn Handler ? new Handler() : undefined;\n};\n\nexports.getTypes = function() {\n\t// We don't return fieldTypes, because we don't want it modified,\n\t// and we need to filter out legacy names.\n\tvar rtn = Object.create(null);\n\tfor (var type in getFieldTypes()) {\n\t\tvar typeObject = getFieldTypes()[type];\n\t\trtn[typeObject.typeName] = typeObject;\n\t}\n\treturn rtn;\n};\n\nexports.getDefaultType = function(wiki) {\n\tvar tiddler = wiki.getTiddler(\&quot;$:/config/flibbles/relink/settings/default-type\&quot;);\n\tvar defaultType = tiddler &amp;&amp; tiddler.fields.text;\n\t// make sure the default actually exists, otherwise default\n\treturn fieldTypes[defaultType] ? defaultType : \&quot;title\&quot;;\n};\n\nvar fieldTypes;\n\nfunction getFieldTypes() {\n\tif (!fieldTypes) {\n\t\tfieldTypes = Object.create(null);\n\t\t$tw.modules.forEachModuleOfType(\&quot;relinkfieldtype\&quot;, function(title, exports) {\n\t\t\tfunction NewType() {};\n\t\t\tNewType.prototype = exports;\n\t\t\tNewType.typeName = exports.name;\n\t\t\tfieldTypes[exports.name] = NewType;\n\t\t\t// For legacy, if the NewType doesn't have a report method, we add one\n\t\t\tif (!exports.report) {\n\t\t\t\texports.report = function() {};\n\t\t\t}\n\t\t\t// Also for legacy, some of the field types can go by other names\n\t\t\tif (exports.aliases) {\n\t\t\t\t$tw.utils.each(exports.aliases, function(alias) {\n\t\t\t\t\tfieldTypes[alias] = NewType;\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\treturn fieldTypes;\n}\n\nvar relinkOperators;\n\nfunction getRelinkOperators() {\n\tif (!relinkOperators) {\n\t\trelinkOperators = exports.getModulesByTypeAsHashmap('relinkoperator', 'name');\n\t}\n\treturn relinkOperators;\n};\n&quot;,
&quot;module-type&quot;: &quot;library&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/utils.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/wikimethods.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: wikimethod\n\nIntroduces some utility methods used by Relink.\n\n\\*/\n\nvar utils = require(\&quot;./utils.js\&quot;);\n\nexports.getTiddlerRelinkReferences = function(title) {\n\treturn utils.getIndexer(this).lookup(title);\n};\n\nexports.getTiddlerRelinkBackreferences = function(title) {\n\treturn utils.getIndexer(this).reverseLookup(title);\n};\n\nexports.getRelinkableTitles = function() {\n\tvar toUpdate = \&quot;$:/config/flibbles/relink/to-update\&quot;;\n\tvar wiki = this;\n\treturn this.getCacheForTiddler(toUpdate, \&quot;relink-toUpdate\&quot;, function() {\n\t\tvar tiddler = wiki.getTiddler(toUpdate);\n\t\tif (tiddler) {\n\t\t\treturn wiki.compileFilter(tiddler.fields.text);\n\t\t} else {\n\t\t\treturn wiki.allTitles;\n\t\t}\n\t})();\n};\n&quot;,
&quot;module-type&quot;: &quot;wikimethod&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/wikimethods.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/filteroperators/all_relinkable.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: allfilteroperator\n\nFilter function for [all[relinkable]].\nReturns all tiddlers subject to relinking.\n\n\\*/\n\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.relinkable = function(source,prefix,options) {\n\treturn options.wiki.getRelinkableTitles();\n};\n\n})();\n&quot;,
&quot;module-type&quot;: &quot;allfilteroperator&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/filteroperators/all_relinkable.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/filteroperators/references.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkfilteroperator\n\nGiven a title as an operand, returns all non-shadow tiddlers that have any\nsort of updatable reference to it.\n\n`relink:backreferences[]]`\n`relink:references[]]`\n\nReturns all tiddlers that reference `fromTiddler` somewhere inside them.\n\nInput is ignored. Maybe it shouldn't do this.\n\\*/\n\nvar LinkedList = $tw.utils.LinkedList;\n\nif (!LinkedList) {\n\t/* If the linked list isn't available, make a quick crappy version. */\n\tLinkedList = function() {this.array=[];};\n\n\tLinkedList.prototype.pushTop = function(array) {\n\t\t$tw.utils.pushTop(this.array, array);\n\t};\n\n\tLinkedList.prototype.toArray = function() {\n\t\treturn this.array;\n\t};\n};\n\nexports.backreferences = function(source,operator,options) {\n\tvar results = new LinkedList();\n\tsource(function(tiddler,title) {\n\t\tresults.pushTop(Object.keys(options.wiki.getTiddlerRelinkBackreferences(title,options)));\n\t});\n\treturn results.toArray();\n};\n\nexports.references = function(source,operator,options) {\n\tvar results = new LinkedList();\n\tsource(function(tiddler,title) {\n\t\tvar refs = options.wiki.getTiddlerRelinkReferences(title,options);\n\t\tif (refs) {\n\t\t\tresults.pushTop(Object.keys(refs));\n\t\t}\n\t});\n\treturn results.toArray();\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkfilteroperator&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/filteroperators/references.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/filteroperators/relink.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: filteroperator\n\nThis filter acts as a namespace for several small, simple filters, such as\n\n`[relink:impossible[]]`\n\n\\*/\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\n\nvar relinkFilterOperators;\n\nfunction getRelinkFilterOperators() {\n\tif(!relinkFilterOperators) {\n\t\trelinkFilterOperators = {};\n\t\t$tw.modules.applyMethods(\&quot;relinkfilteroperator\&quot;,\n\t\t relinkFilterOperators);\n\t}\n\treturn relinkFilterOperators;\n}\n\nexports.relink = function(source,operator,options) {\n\tvar suffixPair = parseSuffix(operator.suffix);\n\tvar relinkFilterOperator = getRelinkFilterOperators()[suffixPair[0]];\n\tif (relinkFilterOperator) {\n\t\tvar newOperator = $tw.utils.extend({}, operator);\n\t\tnewOperator.suffix = suffixPair[1];\n\t\treturn relinkFilterOperator(source, newOperator, options);\n\t} else {\n\t\treturn [language.getString(\&quot;Error/RelinkFilterOperator\&quot;, options)];\n\t}\n};\n\nfunction parseSuffix(suffix) {\n\tvar index = suffix? suffix.indexOf(\&quot;:\&quot;): -1;\n\tif (index &gt;= 0) {\n\t\treturn [suffix.substr(0, index), suffix.substr(index+1)];\n\t} else {\n\t\treturn [suffix];\n\t}\n}\n&quot;,
&quot;module-type&quot;: &quot;filteroperator&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/filteroperators/relink.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/filteroperators/report.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkfilteroperator\n\nGiven a title as an operand, returns a string for each occurrence of that title\nwithin each input title.\n\n[[title]] +[relink:report[fromTiddler]]`\n\nReturns string representation of fromTiddler occurrences in title.\n\\*/\n\nexports.report = function(source,operator,options) {\n\tvar fromTitle = operator.operand,\n\t\tresults = [];\n\tif (fromTitle) {\n\t\tvar blurbs = options.wiki.getTiddlerRelinkBackreferences(fromTitle);\n\t\tsource(function(tiddler, title) {\n\t\t\tif (blurbs[title]) {\n\t\t\t\tresults = results.concat(blurbs[title]);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkfilteroperator&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/filteroperators/report.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/filteroperators/signatures.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkfilteroperator\n\nThis filter returns all input tiddlers which are a source of\nrelink configuration.\n\n`[all[tiddlers+system]relink:source[macros]]`\n\n\\*/\n\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nexports.signatures = function(source,operator,options) {\n\tvar plugin = operator.operand || null;\n\tvar set = getSet(options);\n\tif (plugin === \&quot;$:/core\&quot;) {\n\t\t// Core doesn't actually have any settings. We mean Relink\n\t\tplugin = \&quot;$:/plugins/flibbles/relink\&quot;;\n\t}\n\tvar signatures = [];\n\tfor (var signature in set) {\n\t\tvar source = set[signature].source;\n\t\tif (options.wiki.getShadowSource(source) === plugin) {\n\t\t\tsignatures.push(signature);\n\t\t}\n\t}\n\treturn signatures;\n};\n\nexports.type = function(source,operator,options) {\n\tvar results = [];\n\tvar set = getSet(options);\n\tsource(function(tiddler, signature) {\n\t\tif (set[signature]) {\n\t\t\tresults.push(set[signature].name);\n\t\t}\n\t});\n\treturn results;\n};\n\nexports.types = function(source,operator,options) {\n\tvar def = utils.getDefaultType(options.wiki);\n\tvar types = Object.keys(utils.getTypes());\n\ttypes.sort();\n\t// move default to front\n\ttypes.sort(function(x,y) { return x === def ? -1 : y === def ? 1 : 0; });\n\treturn types;\n};\n\nexports.source = function(source,operator,options) {\n\tvar results = [];\n\tvar category = operator.suffix;\n\tvar set = getSet(options);\n\tsource(function(tiddler, signature) {\n\t\tif (set[signature]) {\n\t\t\tresults.push(set[signature].source);\n\t\t}\n\t});\n\treturn results;\n};\n\nfunction getSet(options) {\n\treturn options.wiki.getGlobalCache(\&quot;relink-signatures\&quot;, function() {\n\t\tvar config = utils.getWikiContext(options.wiki);\n\t\tvar set = Object.create(null);\n\t\tvar categories = {\n\t\t\tattributes: config.getAttributes(),\n\t\t\tfields: config.getFields(),\n\t\t\tmacros: config.getMacros(),\n\t\t\toperators: config.getOperators()};\n\t\t$tw.utils.each(categories, function(list, category) {\n\t\t\t$tw.utils.each(list, function(item, key) {\n\t\t\t\tset[category + \&quot;/\&quot; + key] = item;\n\t\t\t});\n\t\t});\n\t\treturn set;\n\t});\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkfilteroperator&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/filteroperators/signatures.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/filteroperators/splitafter.js&quot;: {
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/filters/splitbefore.js\ntype: application/javascript\nmodule-type: relinkfilteroperator\n\nFilter operator that splits each result on the last occurance of the specified separator and returns the last bit.\n\nWhat does this have to do with relink? Nothing. I need this so I can render\nthe configuration menu. I //could// use [splitregexp[]], but then I'd be\nlimited to Tiddlywiki v5.1.20 or later.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\n/*\nExport our filter function\n*/\nexports.splitafter = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar index = title.lastIndexOf(operator.operand);\n\t\tif(index &lt; 0) {\n\t\t\t$tw.utils.pushTop(results,title);\n\t\t} else {\n\t\t\t$tw.utils.pushTop(results,title.substr(index+1));\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n\n&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/filteroperators/splitafter.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;relinkfilteroperator&quot;
},
&quot;$:/plugins/flibbles/relink/js/filteroperators/wouldchange.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkfilteroperator\n\nwouldchange: Generator.\n\nGiven each input title, it returns all the tiddlers that would be changed if the currentTiddler were to be renamed to the operand.\n\nimpossible: filters all source titles for ones that encounter errors on failure.\n\nTHESE ARE INTERNAL FILTER OPERATOR AND ARE NOT INTENDED TO BE USED BY USERS.\n\n\\*/\n\nvar language = require(\&quot;$:/plugins/flibbles/relink/js/language.js\&quot;);\nvar utils = require(\&quot;$:/plugins/flibbles/relink/js/utils.js\&quot;);\n\nexports.wouldchange = function(source,operator,options) {\n\tvar from = options.widget &amp;&amp; options.widget.getVariable(\&quot;currentTiddler\&quot;),\n\t\tto = operator.operand,\n\t\tindexer = utils.getIndexer(options.wiki),\n\t\trecords = indexer.relinkLookup(from, to, options);\n\treturn Object.keys(records);\n};\n\nexports.impossible = function(source,operator,options) {\n\tvar from = options.widget &amp;&amp; options.widget.getVariable(\&quot;currentTiddler\&quot;),\n\t\tto = operator.operand,\n\t\tresults = [],\n\t\tindexer = utils.getIndexer(options.wiki),\n\t\trecords = indexer.relinkLookup(from, to, options);\n\tsource(function(tiddler, title) {\n\t\tvar fields = records[title];\n\t\tif (fields) {\n\t\t\tfor (var field in fields) {\n\t\t\t\tif (fields[field].impossible) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkfilteroperator&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/filteroperators/wouldchange.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/fieldtypes/filter.js&quot;: {
&quot;text&quot;: &quot;/*\\\nThis specifies logic for updating filters to reflect title changes.\n\\*/\n\nvar refHandler = require(\&quot;$:/plugins/flibbles/relink/js/fieldtypes/reference\&quot;);\nvar Rebuilder = require(\&quot;$:/plugins/flibbles/relink/js/utils/rebuilder\&quot;);\n\nexports.name = \&quot;filter\&quot;;\n\nexports.report = function(filter, callback, options) {\n\t// I cheat here for now. Relink handles reporting too in cases where\n\t// fromTitle is undefined. toTitle is the callback in those cases.\n\texports.relink(filter, undefined, callback, options);\n};\n\n/**Returns undefined if no change was made.\n */\nexports.relink = function(filter, fromTitle, toTitle, options) {\n\tvar relinker = new Rebuilder(filter),\n\t\tp = 0, // Current position in the filter string\n\t\tmatch, noPrecedingWordBarrier,\n\t\twordBarrierRequired=false;\n\tvar whitespaceRegExp = /\\s+/mg,\n\t\toperandRegExp = /((?:\\+|\\-|~|=|\\:\\w+)?)(?:(\\[)|(?:\&quot;([^\&quot;]*)\&quot;)|(?:'([^']*)')|([^\\s\\[\\]]+))/mg,\n\t\tblurbs = [];\n\twhile(p &lt; filter.length) {\n\t\t// Skip any whitespace\n\t\twhitespaceRegExp.lastIndex = p;\n\t\tmatch = whitespaceRegExp.exec(filter);\n\t\tnoPrecedingWordBarrier = false;\n\t\tif(match &amp;&amp; match.index === p) {\n\t\t\tp = p + match[0].length;\n\t\t} else if (p != 0) {\n\t\t\tif (wordBarrierRequired) {\n\t\t\t\trelinker.add(' ', p, p);\n\t\t\t\twordBarrierRequired = false;\n\t\t\t} else {\n\t\t\t\tnoPrecedingWordBarrier = true;\n\t\t\t}\n\t\t}\n\t\t// Match the start of the operation\n\t\tif(p &lt; filter.length) {\n\t\t\tvar val;\n\t\t\toperandRegExp.lastIndex = p;\n\t\t\tmatch = operandRegExp.exec(filter);\n\t\t\tif(!match || match.index !== p) {\n\t\t\t\t// It's a bad filter\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tif(match[1]) { // prefix\n\t\t\t\tp += match[1].length;\n\t\t\t}\n\t\t\tif(match[2]) { // Opening square bracket\n\t\t\t\t// We check if this is a standalone title,\n\t\t\t\t// like `[[MyTitle]]`. We treat those like\n\t\t\t\t// `\&quot;MyTitle\&quot;` or `MyTitle`. Not like a run.\n\t\t\t\tvar standaloneTitle = /\\[\\[([^\\]]+)\\]\\]/g;\n\t\t\t\tstandaloneTitle.lastIndex = p;\n\t\t\t\tvar alone = standaloneTitle.exec(filter);\n\t\t\t\tif (!alone || alone.index != p) {\n\t\t\t\t\tif (fromTitle === undefined) {\n\t\t\t\t\t\t// toTitle is a callback method in this case.\n\t\t\t\t\t\tp =reportFilterOperation(filter, function(title, blurb){\n\t\t\t\t\t\t\tif (match[1]) {\n\t\t\t\t\t\t\t\tblurbs.push([title, match[1] + (blurb || '')]);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tblurbs.push([title, blurb]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},p,options.settings,options);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tp =relinkFilterOperation(relinker,fromTitle,toTitle,filter,p,options.settings,options);\n\t\t\t\t\t}\n\t\t\t\t\t// It's a legit run\n\t\t\t\t\tif (p === undefined) {\n\t\t\t\t\t\t// The filter is malformed\n\t\t\t\t\t\t// We do nothing.\n\t\t\t\t\t\treturn undefined;\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbracketTitle = alone[1];\n\t\t\t\toperandRegExp.lastIndex = standaloneTitle.lastIndex;\n\t\t\t\tval = alone[1];\n\t\t\t} else {\n\t\t\t\t// standalone Double quoted string, single\n\t\t\t\t// quoted string, or noquote ahead.\n\t\t\t\tval = match[3] || match[4] || match[5];\n\t\t\t}\n\t\t\t// From here on, we're dealing with a standalone title\n\t\t\t// expression. like `\&quot;MyTitle\&quot;` or `[[MyTitle]]`\n\t\t\t// We're much more flexible about relinking these.\n\t\t\tvar preference = undefined;\n\t\t\tif (match[3]) {\n\t\t\t\tpreference = '\&quot;';\n\t\t\t} else if (match[4]) {\n\t\t\t\tpreference = \&quot;'\&quot;;\n\t\t\t} else if (match[5]) {\n\t\t\t\tpreference = '';\n\t\t\t}\n\t\t\tif (fromTitle === undefined) {\n\t\t\t\t// Report it\n\t\t\t\tblurbs.push([val, match[1]]);\n\t\t\t} else if (val === fromTitle) {\n\t\t\t\t// Relink it\n\t\t\t\tvar entry = {name: \&quot;title\&quot;};\n\t\t\t\tvar newVal = wrapTitle(toTitle, preference);\n\t\t\t\tif (newVal === undefined || (options.inBraces &amp;&amp; newVal.indexOf('}}}') &gt;= 0)) {\n\t\t\t\t\tif (!options.placeholder) {\n\t\t\t\t\t\trelinker.impossible = true;\n\t\t\t\t\t\tp = operandRegExp.lastIndex;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tnewVal = \&quot;[&lt;\&quot;+options.placeholder.getPlaceholderFor(toTitle)+\&quot;&gt;]\&quot;;\n\t\t\t\t}\n\t\t\t\tif (newVal[0] != '[') {\n\t\t\t\t\t// not bracket enclosed\n\t\t\t\t\t// this requires whitespace\n\t\t\t\t\t// arnound it\n\t\t\t\t\tif (noPrecedingWordBarrier &amp;&amp; !match[1]) {\n\t\t\t\t\t\trelinker.add(' ', p, p);\n\t\t\t\t\t}\n\t\t\t\t\twordBarrierRequired = true;\n\t\t\t\t}\n\t\t\t\tentry.output = toTitle;\n\t\t\t\tentry.operator = {operator: \&quot;title\&quot;};\n\t\t\t\tentry.quotation = preference;\n\t\t\t\tif (entry.impossible) {\n\t\t\t\t\trelinker.impossible = true;\n\t\t\t\t}\n\t\t\t\trelinker.add(newVal,p,operandRegExp.lastIndex);\n\t\t\t}\n\t\t\tp = operandRegExp.lastIndex;\n\t\t}\n\t}\n\tif (fromTitle === undefined) {\n\t\t// We delay the blurb calls until now in case it's a malformed\n\t\t// filter string. We don't want to report some, only to find out\n\t\t// it's bad.\n\t\tfor (var i = 0; i &lt; blurbs.length; i++) {\n\t\t\ttoTitle(blurbs[i][0], blurbs[i][1]);\n\t\t}\n\t}\n\tif (relinker.changed() || relinker.impossible) {\n\t\treturn {output: relinker.results(), impossible: relinker.impossible };\n\t}\n\treturn undefined;\n};\n\n/* Same as this.relink, except this has the added constraint that the return\n * value must be able to be wrapped in curly braces. (i.e. '{{{...}}}')\n */\nexports.relinkInBraces = function(filter, fromTitle, toTitle, options) {\n\tvar braceOptions = $tw.utils.extend({inBraces: true}, options);\n\tvar entry = this.relink(filter, fromTitle, toTitle, braceOptions);\n\tif (entry &amp;&amp; entry.output &amp;&amp; !canBeInBraces(entry.output)) {\n\t\t// It was possible, but it won't fit in braces, so we must give up\n\t\tdelete entry.output;\n\t\tentry.impossible = true;\n\t}\n\treturn entry;\n};\n\nfunction wrapTitle(value, preference) {\n\tvar choices = {\n\t\t\&quot;\&quot;: function(v) {return /^[^\\s\\[\\]]*[^\\s\\[\\]\\}]$/.test(v); },\n\t\t\&quot;[\&quot;: canBePrettyOperand,\n\t\t\&quot;'\&quot;: function(v) {return v.indexOf(\&quot;'\&quot;) &lt; 0; },\n\t\t'\&quot;': function(v) {return v.indexOf('\&quot;') &lt; 0; }\n\t};\n\tvar wrappers = {\n\t\t\&quot;\&quot;: function(v) {return v; },\n\t\t\&quot;[\&quot;: function(v) {return \&quot;[[\&quot;+v+\&quot;]]\&quot;; },\n\t\t\&quot;'\&quot;: function(v) {return \&quot;'\&quot;+v+\&quot;'\&quot;; },\n\t\t'\&quot;': function(v) {return '\&quot;'+v+'\&quot;'; }\n\t};\n\tif (choices[preference]) {\n\t\tif (choices[preference](value)) {\n\t\t\treturn wrappers[preference](value);\n\t\t}\n\t}\n\tfor (var quote in choices) {\n\t\tif (choices[quote](value)) {\n\t\t\treturn wrappers[quote](value);\n\t\t}\n\t}\n\t// No quotes will work on this\n\treturn undefined;\n}\n\nfunction relinkFilterOperation(relinker, fromTitle, toTitle, filterString, p, context, options) {\n\tvar nextBracketPos, operator;\n\t// Skip the starting square bracket\n\tif(filterString.charAt(p++) !== \&quot;[\&quot;) {\n\t\t// Missing [ in filter expression\n\t\treturn undefined;\n\t}\n\t// Process each operator in turn\n\toperator = parseOperator(filterString, p);\n\tdo {\n\t\tvar entry = undefined, type;\n\t\tif (operator === undefined) {\n\t\t\treturn undefined;\n\t\t}\n\t\tp = operator.opStart;\n\t\tswitch (operator.bracket) {\n\t\t\tcase \&quot;{\&quot;: // Curly brackets\n\t\t\t\ttype = \&quot;indirect\&quot;;\n\t\t\t\tnextBracketPos = filterString.indexOf(\&quot;}\&quot;,p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// We've got a live reference. relink or report\n\t\t\t\tentry = refHandler.relinkInBraces(operand, fromTitle, toTitle, options);\n\t\t\t\tif (entry &amp;&amp; entry.output) {\n\t\t\t\t\t// We don't check the context.\n\t\t\t\t\t// All indirect operands convert.\n\t\t\t\t\trelinker.add(entry.output,p,nextBracketPos);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \&quot;[\&quot;: // Square brackets\n\t\t\t\ttype = \&quot;string\&quot;;\n\t\t\t\tnextBracketPos = filterString.indexOf(\&quot;]\&quot;,p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// Check if this is a relevant operator\n\t\t\t\tvar handler = fieldType(context, operator);\n\t\t\t\tif (!handler) {\n\t\t\t\t\t// This operator isn't managed. Bye.\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tentry = handler.relink(operand, fromTitle, toTitle, options);\n\t\t\t\tif (!entry || !entry.output) {\n\t\t\t\t\t// The fromTitle wasn't in the operand.\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tvar wrapped;\n\t\t\t\tif (!canBePrettyOperand(entry.output) || (options.inBraces &amp;&amp; entry.output.indexOf('}}}') &gt;= 0)) {\n\t\t\t\t\tif (!options.placeholder) {\n\t\t\t\t\t\tdelete entry.output;\n\t\t\t\t\t\tentry.impossible = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tvar ph = options.placeholder.getPlaceholderFor(entry.output, handler.name);\n\t\t\t\t\twrapped = \&quot;&lt;\&quot;+ph+\&quot;&gt;\&quot;;\n\t\t\t\t} else {\n\t\t\t\t\twrapped = \&quot;[\&quot;+entry.output+\&quot;]\&quot;;\n\t\t\t\t}\n\t\t\t\trelinker.add(wrapped, p-1, nextBracketPos+1);\n\t\t\t\tbreak;\n\t\t\tcase \&quot;&lt;\&quot;: // Angle brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\&quot;&gt;\&quot;,p);\n\t\t\t\tbreak;\n\t\t\tcase \&quot;/\&quot;: // regexp brackets\n\t\t\t\tvar rex = /^((?:[^\\\\\\/]*|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g,\n\t\t\t\t\trexMatch = rex.exec(filterString.substring(p));\n\t\t\t\tif(rexMatch) {\n\t\t\t\t\tnextBracketPos = p + rex.lastIndex - 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Unterminated regular expression\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\tif (entry) {\n\t\t\tif (entry.impossible) {\n\t\t\t\trelinker.impossible = true;\n\t\t\t}\n\t\t}\n\n\t\tif(nextBracketPos === -1) {\n\t\t\t// Missing closing bracket in filter expression\n\t\t\treturn undefined;\n\t\t}\n\t\tp = nextBracketPos + 1;\n\t\t// Check for multiple operands\n\t\tswitch (filterString.charAt(p)) {\n\t\tcase ',':\n\t\t\tp++;\n\t\t\tif(/^[\\[\\{&lt;\\/]/.test(filterString.substring(p))) {\n\t\t\t\toperator.bracket = filterString.charAt(p);\n\t\t\t\toperator.opStart = p + 1;\n\t\t\t\toperator.index++;\n\t\t\t} else {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tcontinue;\n\t\tdefault:\n\t\t\toperator = parseOperator(filterString, p);\n\t\t\tcontinue;\n\t\tcase ']':\n\t\t}\n\t\tbreak;\n\t} while(true);\n\t// Skip the ending square bracket\n\tif(filterString.charAt(p++) !== \&quot;]\&quot;) {\n\t\t// Missing ] in filter expression\n\t\treturn undefined;\n\t}\n\t// Return the parsing position\n\treturn p;\n}\n\nfunction reportFilterOperation(filterString, callback, p, context, options) {\n\tvar nextBracketPos, operator;\n\t// Skip the starting square bracket\n\tif(filterString.charAt(p++) !== \&quot;[\&quot;) {\n\t\t// Missing [ in filter expression\n\t\treturn undefined;\n\t}\n\toperator = parseOperator(filterString, p);\n\t// Process each operator in turn\n\tdo {\n\t\tif (operator === undefined) {\n\t\t\treturn undefined;\n\t\t}\n\t\tp = operator.opStart;\n\t\tswitch (operator.bracket) {\n\t\t\tcase \&quot;{\&quot;: // Curly brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\&quot;}\&quot;,p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// Just report it\n\t\t\t\trefHandler.report(operand, function(title, blurb) {\n\t\t\t\t\tcallback(title, operatorBlurb(operator, '{' + (blurb || '') + '}'));\n\t\t\t\t}, options);\n\t\t\t\tbreak;\n\t\t\tcase \&quot;[\&quot;: // Square brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\&quot;]\&quot;,p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// Check if this is a relevant operator\n\t\t\t\tvar handler = fieldType(context, operator);\n\t\t\t\tif (!handler) {\n\t\t\t\t\t// This operator isn't managed. Bye.\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// We just have to report it. Nothing more.\n\t\t\t\thandler.report(operand, function(title, blurb) {\n\t\t\t\t\tcallback(title, operatorBlurb(operator, '[' + (blurb || '') + ']'));\n\t\t\t\t}, options);\n\t\t\t\tbreak;\n\n\t\t\tcase \&quot;&lt;\&quot;: // Angle brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\&quot;&gt;\&quot;,p);\n\t\t\t\tbreak;\n\t\t\tcase \&quot;/\&quot;: // regexp brackets\n\t\t\t\tvar rex = /^((?:[^\\\\\\/]*|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g,\n\t\t\t\t\trexMatch = rex.exec(filterString.substring(p));\n\t\t\t\tif(rexMatch) {\n\t\t\t\t\tnextBracketPos = p + rex.lastIndex - 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Unterminated regular expression\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif(nextBracketPos === -1) {\n\t\t\t// Missing closing bracket in filter expression\n\t\t\treturn undefined;\n\t\t}\n\t\tp = nextBracketPos + 1;\n\t\t// Check for multiple operands\n\t\tswitch (filterString.charAt(p)) {\n\t\tcase ',':\n\t\t\tp++;\n\t\t\tif(/^[\\[\\{&lt;\\/]/.test(filterString.substring(p))) {\n\t\t\t\toperator.bracket = filterString.charAt(p);\n\t\t\t\toperator.opStart = p + 1;\n\t\t\t\toperator.index++;\n\t\t\t} else {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tcontinue;\n\t\tdefault:\n\t\t\toperator = parseOperator(filterString, p);\n\t\t\tcontinue;\n\t\tcase ']':\n\t\t}\n\t\tbreak;\n\t} while(true);\n\t// Skip the ending square bracket\n\tif(filterString.charAt(p++) !== \&quot;]\&quot;) {\n\t\t// Missing ] in filter expression\n\t\treturn undefined;\n\t}\n\t// Return the parsing position\n\treturn p;\n}\n\nfunction parseOperator(filterString, p) {\n\tvar nextBracketPos, operator = {index: 1};\n\t// Check for an operator prefix\n\tif(filterString.charAt(p) === \&quot;!\&quot;) {\n\t\toperator.prefix = \&quot;!\&quot;;\n\t\tp++;\n\t}\n\t// Get the operator name\n\tnextBracketPos = filterString.substring(p).search(/[\\[\\{&lt;\\/]/);\n\tif(nextBracketPos === -1) {\n\t\t// Missing [ in filter expression\n\t\treturn undefined;\n\t}\n\tnextBracketPos += p;\n\toperator.bracket = filterString.charAt(nextBracketPos);\n\toperator.operator = filterString.substring(p,nextBracketPos);\n\n\t// Any suffix?\n\tvar colon = operator.operator.indexOf(':');\n\tif(colon &gt; -1) {\n\t\toperator.suffix = operator.operator.substring(colon + 1);\n\t\toperator.operator = operator.operator.substring(0,colon) || \&quot;field\&quot;;\n\t}\n\t// Empty operator means: title\n\telse if(operator.operator === \&quot;\&quot;) {\n\t\toperator.operator = \&quot;title\&quot;;\n\t\toperator.default = true;\n\t}\n\toperator.opStart = nextBracketPos + 1;\n\treturn operator;\n};\n\nfunction operatorBlurb(operator, enquotedOperand) {\n\tvar suffix = operator.suffix ? (':' + operator.suffix) : '';\n\t// commas to indicate which number operand\n\tsuffix += (new Array(operator.index)).join(',');\n\tvar op = operator.default ? '' : operator.operator;\n\treturn '[' + (operator.prefix || '') + op + suffix + enquotedOperand + ']';\n};\n\n// Returns the relinker needed for a given operator, or returns undefined.\nfunction fieldType(context, operator) {\n\treturn (operator.suffix &amp;&amp;\n\t context.getOperator(operator.operator + ':' + operator.suffix, operator.index)) ||\n\t context.getOperator(operator.operator, operator.index);\n};\n\nfunction canBePrettyOperand(value) {\n\treturn value.indexOf(']') &lt; 0;\n};\n\nfunction canBeInBraces(value) {\n\treturn value.indexOf(\&quot;}}}\&quot;) &lt; 0 &amp;&amp; value.substr(value.length-2) !== '}}';\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkfieldtype&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/fieldtypes/filter.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/fieldtypes/list.js&quot;: {
&quot;text&quot;: &quot;/*\\\nThis manages replacing titles that occur within stringLists, like,\n\nTiddlerA [[Tiddler with spaces]] [[Another Title]]\n\\*/\n\nexports.name = \&quot;list\&quot;;\n\nexports.report = function(value, callback, options) {\n\tvar list = $tw.utils.parseStringArray(value);\n\tfor (var i = 0; i &lt; list.length; i++) {\n\t\tcallback(list[i]);\n\t}\n};\n\n/**Returns undefined if no change was made.\n * Parameter: value can literally be a list. This can happen for builtin\n * types 'list' and 'tag'. In those cases, we also return list.\n */\nexports.relink = function(value, fromTitle, toTitle, options) {\n\tvar isModified = false,\n\t\tactualList = false,\n\t\tlist;\n\tif (typeof value !== \&quot;string\&quot;) {\n\t\t// Not a string. Must be a list.\n\t\t// clone it, since we may make changes to this possibly\n\t\t// frozen list.\n\t\tlist = (value || []).slice(0);\n\t\tactualList = true;\n\t} else {\n\t\tlist = $tw.utils.parseStringArray(value || \&quot;\&quot;);\n\t}\n\t$tw.utils.each(list,function (title,index) {\n\t\tif(title === fromTitle) {\n\t\t\tlist[index] = toTitle;\n\t\t\tisModified = true;\n\t\t}\n\t});\n\tif (isModified) {\n\t\tvar entry = {name: \&quot;list\&quot;};\n\t\t// It doesn't parse correctly alone, it won't\n\t\t// parse correctly in any list.\n\t\tif (!canBeListItem(toTitle)) {\n\t\t\tentry.impossible = true;\n\t\t} else if (actualList) {\n\t\t\tentry.output = list;\n\t\t} else {\n\t\t\tentry.output = $tw.utils.stringifyList(list);\n\t\t}\n\t\treturn entry;\n\t}\n\treturn undefined;\n};\n\nfunction canBeListItem(value) {\n\tvar regexp = /\\]\\][^\\S\\xA0]/m;\n\treturn !regexp.test(value);\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkfieldtype&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/fieldtypes/list.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/fieldtypes/reference.js&quot;: {
&quot;text&quot;: &quot;/*\\\nThis manages replacing titles that occur inside text references,\n\ntiddlerTitle\ntiddlerTitle!!field\n!!field\ntiddlerTitle##propertyIndex\n\\*/\n\nexports.name = \&quot;reference\&quot;;\n\nexports.report = function(value, callback, options) {\n\tif (value) {\n\t\tvar reference = $tw.utils.parseTextReference(value),\n\t\t\ttitle = reference.title,\n\t\t\tblurb;\n\t\tif (title) {\n\t\t\tif (reference.field) {\n\t\t\t\tblurb = '!!' + reference.field;\n\t\t\t} else if (reference.index) {\n\t\t\t\tblurb = '##' + reference.index;\n\t\t\t}\n\t\t\tcallback(title, blurb);\n\t\t}\n\t}\n};\n\nexports.relink = function(value, fromTitle, toTitle, options) {\n\tvar entry;\n\tif (value) {\n\t\tvar reference = $tw.utils.parseTextReference(value);\n\t\tif (reference.title === fromTitle) {\n\t\t\tif (!exports.canBePretty(toTitle)) {\n\t\t\t\tentry = {impossible: true};\n\t\t\t} else {\n\t\t\t\treference.title = toTitle;\n\t\t\t\tentry = {output: exports.toString(reference)};\n\t\t\t}\n\t\t}\n\t}\n\treturn entry;\n};\n\n/* Same as this.relink, except this has the added constraint that the return\n * value must be able to be wrapped in curly braces.\n */\nexports.relinkInBraces = function(value, fromTitle, toTitle, options) {\n\tvar log = this.relink(value, fromTitle, toTitle, options);\n\tif (log &amp;&amp; log.output &amp;&amp; toTitle.indexOf(\&quot;}\&quot;) &gt;= 0) {\n\t\tdelete log.output;\n\t\tlog.impossible = true;\n\t}\n\treturn log;\n};\n\nexports.toString = function(textReference) {\n\tvar title = textReference.title || '';\n\tif (textReference.field) {\n\t\treturn title + \&quot;!!\&quot; + textReference.field;\n\t} else if (textReference.index) {\n\t\treturn title + \&quot;##\&quot; + textReference.index;\n\t}\n\treturn title;\n};\n\nexports.canBePretty = function(title) {\n\treturn !title || (title.indexOf(\&quot;!!\&quot;) &lt; 0 &amp;&amp; title.indexOf(\&quot;##\&quot;) &lt; 0);\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkfieldtype&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/fieldtypes/reference.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/fieldtypes/title.js&quot;: {
&quot;text&quot;: &quot;/*\\\nThis specifies logic for replacing a single-tiddler field. This is the\nsimplest kind of field type. One title swaps out for the other.\n\\*/\n\n// NOTE TO MODDERS: If you're making your own field types, the name must be\n// alpha characters only.\nexports.name = 'title';\n\nexports.report = function(value, callback, options) {\n\tcallback(value);\n};\n\n/**Returns undefined if no change was made.\n */\nexports.relink = function(value, fromTitle, toTitle, options) {\n\tif (value === fromTitle) {\n\t\treturn {output: toTitle};\n\t}\n\treturn undefined;\n};\n\n// This is legacy support for when 'title' was known as 'field'\nexports.aliases = ['field', 'yes'];\n&quot;,
&quot;module-type&quot;: &quot;relinkfieldtype&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/fieldtypes/title.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/fieldtypes/wikitext.js&quot;: {
&quot;text&quot;: &quot;/*\\\nThis specifies logic for updating filters to reflect title changes.\n\\*/\n\nexports.name = \&quot;wikitext\&quot;;\n\nvar type = 'text/vnd.tiddlywiki';\n\nvar WikiParser = require(\&quot;$:/core/modules/parsers/wikiparser/wikiparser.js\&quot;)[type];\nvar Rebuilder = require(\&quot;$:/plugins/flibbles/relink/js/utils/rebuilder.js\&quot;);\nvar utils = require('$:/plugins/flibbles/relink/js/utils');\nvar WikitextContext = utils.getContext('wikitext');\n\nfunction collectRules() {\n\tvar rules = Object.create(null);\n\t$tw.modules.forEachModuleOfType(\&quot;relinkwikitextrule\&quot;, function(title, exports) {\n\t\tvar names = exports.name;\n\t\tif (typeof names === \&quot;string\&quot;) {\n\t\t\tnames = [names];\n\t\t}\n\t\tif (names !== undefined) {\n\t\t\tfor (var i = 0; i &lt; names.length; i++) {\n\t\t\t\trules[names[i]] = exports;\n\t\t\t}\n\t\t}\n\t});\n\treturn rules;\n}\n\nfunction WikiWalker(type, text, options) {\n\tthis.options = options;\n\tif (!this.relinkMethodsInjected) {\n\t\tvar rules = collectRules();\n\t\t$tw.utils.each([this.pragmaRuleClasses, this.blockRuleClasses, this.inlineRuleClasses], function(classList) {\n\t\t\tfor (var name in classList) {\n\t\t\t\tif (rules[name]) {\n\t\t\t\t\tdelete rules[name].name;\n\t\t\t\t\t$tw.utils.extend(classList[name].prototype, rules[name]);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tWikiWalker.prototype.relinkMethodsInjected = true;\n\t}\n\tthis.context = new WikitextContext(options.settings);\n\tWikiParser.call(this, type, text, options);\n};\n\nWikiWalker.prototype = Object.create(WikiParser.prototype);\n\nWikiWalker.prototype.parsePragmas = function() {\n\tvar entries = this.tree;\n\twhile (true) {\n\t\tthis.skipWhitespace();\n\t\tif (this.pos &gt;= this.sourceLength) {\n\t\t\tbreak;\n\t\t}\n\t\tvar nextMatch = this.findNextMatch(this.pragmaRules, this.pos);\n\t\tif (!nextMatch || nextMatch.matchIndex !== this.pos) {\n\t\t\tbreak;\n\t\t}\n\t\tentries.push.apply(entries, this.handleRule(nextMatch));\n\t}\n\treturn entries;\n};\n\nWikiWalker.prototype.parseInlineRunUnterminated = function(options) {\n\tvar entries = [];\n\tvar nextMatch = this.findNextMatch(this.inlineRules, this.pos);\n\twhile (this.pos &lt; this.sourceLength &amp;&amp; nextMatch) {\n\t\tif (nextMatch.matchIndex &gt; this.pos) {\n\t\t\tthis.pos = nextMatch.matchIndex;\n\t\t}\n\t\tentries.push.apply(entries, this.handleRule(nextMatch));\n\t\tnextMatch = this.findNextMatch(this.inlineRules, this.pos);\n\t}\n\tthis.pos = this.sourceLength;\n\treturn entries;\n};\n\nWikiWalker.prototype.parseInlineRunTerminated = function(terminatorRegExp,options) {\n\tvar entries = [];\n\toptions = options || {};\n\tterminatorRegExp.lastIndex = this.pos;\n\tvar terminatorMatch = terminatorRegExp.exec(this.source);\n\tvar inlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos);\n\twhile(this.pos &lt; this.sourceLength &amp;&amp; (terminatorMatch || inlineRuleMatch)) {\n\t\tif (terminatorMatch) {\n\t\t\tif (!inlineRuleMatch || inlineRuleMatch.matchIndex &gt;= terminatorMatch.index) {\n\t\t\t\tthis.pos = terminatorMatch.index;\n\t\t\t\tif (options.eatTerminator) {\n\t\t\t\t\tthis.pos += terminatorMatch[0].length;\n\t\t\t\t}\n\t\t\t\treturn entries;\n\t\t\t}\n\t\t}\n\t\tif (inlineRuleMatch) {\n\t\t\tif (inlineRuleMatch.matchIndex &gt; this.pos) {\n\t\t\t\tthis.pos = inlineRuleMatch.matchIndex;\n\t\t\t}\n\t\t\tentries.push.apply(entries, this.handleRule(inlineRuleMatch));\n\t\t\tinlineRuleMatch = this.findNextMatch(this.inlineRules, this.pos);\n\t\t\tterminatorRegExp.lastIndex = this.pos;\n\t\t\tterminatorMatch = terminatorRegExp.exec(this.source);\n\t\t}\n\t}\n\tthis.pos = this.sourceLength;\n\treturn entries;\n\n};\n\nWikiWalker.prototype.parseBlock = function(terminatorRegExp) {\n\tvar terminatorRegExp = /(\\r?\\n\\r?\\n)/mg;\n\tthis.skipWhitespace();\n\tif (this.pos &gt;= this.sourceLength) {\n\t\treturn [];\n\t}\n\tvar nextMatch = this.findNextMatch(this.blockRules, this.pos);\n\tif(nextMatch &amp;&amp; nextMatch.matchIndex === this.pos) {\n\t\treturn this.handleRule(nextMatch);\n\t}\n\treturn this.parseInlineRun(terminatorRegExp);\n};\n\nWikiWalker.prototype.amendRules = function(type, names) {\n\tvar only;\n\tWikiParser.prototype.amendRules.call(this, type, names);\n\tif (type === \&quot;only\&quot;) {\n\t\tonly = true;\n\t} else if (type === \&quot;except\&quot;) {\n\t\tonly = false;\n\t} else {\n\t\treturn;\n\t}\n\tif (only !== (names.indexOf(\&quot;macrodef\&quot;) &gt;= 0) &amp;&amp; this.options.macrodefCanBeDisabled) {\n\t\tthis.options.placeholder = undefined\n\t}\n\tif (only !== (names.indexOf(\&quot;html\&quot;) &gt;= 0)) {\n\t\tthis.context.allowWidgets = disabled;\n\t}\n\tif (only !== (names.indexOf(\&quot;prettylink\&quot;) &gt;= 0)) {\n\t\tthis.context.allowPrettylinks = disabled;\n\t}\n};\n\nfunction disabled() { return false; };\n\n/// Reporter\n\nfunction WikiReporter(type, text, callback, options) {\n\tthis.callback = callback;\n\tWikiWalker.call(this, type, text, options);\n};\n\nWikiReporter.prototype = Object.create(WikiWalker.prototype);\n\nWikiReporter.prototype.handleRule = function(ruleInfo) {\n\tif (ruleInfo.rule.report) {\n\t\truleInfo.rule.report(this.source, this.callback, this.options);\n\t} else {\n\t\tif (ruleInfo.rule.matchRegExp !== undefined) {\n\t\t\tthis.pos = ruleInfo.rule.matchRegExp.lastIndex;\n\t\t} else {\n\t\t\t// We can't easily determine the end of this\n\t\t\t// rule match. We'll \&quot;parse\&quot; it so that\n\t\t\t// parser.pos gets updated, but we throw away\n\t\t\t// the results.\n\t\t\truleInfo.rule.parse();\n\t\t}\n\t}\n};\n\nexports.report = function(wikitext, callback, options) {\n\t// Unfortunately it's the side-effect of creating this that reports.\n\tnew WikiReporter(options.type, wikitext, callback, options);\n};\n\n/// Relinker\n\nfunction WikiRelinker(type, text, fromTitle, toTitle, options) {\n\tthis.fromTitle = fromTitle;\n\tthis.toTitle = toTitle;\n\tthis.placeholder = options.placeholder;\n\tif (this.placeholder) {\n\t\tthis.placeholder.parser = this;\n\t}\n\tWikiWalker.call(this, type, text, options);\n};\n\nWikiRelinker.prototype = Object.create(WikiWalker.prototype);\n\nWikiRelinker.prototype.handleRule = function(ruleInfo) {\n\tif (ruleInfo.rule.relink) {\n\t\tvar start = ruleInfo.matchIndex;\n\t\tvar newEntry = ruleInfo.rule.relink(this.source, this.fromTitle, this.toTitle, this.options);\n\t\tif (newEntry !== undefined) {\n\t\t\tif (newEntry.output) {\n\t\t\t\tnewEntry.start = start;\n\t\t\t\tnewEntry.end = this.pos;\n\t\t\t}\n\t\t\treturn [newEntry];\n\t\t}\n\t} else {\n\t\tif (ruleInfo.rule.matchRegExp !== undefined) {\n\t\t\tthis.pos = ruleInfo.rule.matchRegExp.lastIndex;\n\t\t} else {\n\t\t\t// We can't easily determine the end of this\n\t\t\t// rule match. We'll \&quot;parse\&quot; it so that\n\t\t\t// parser.pos gets updated, but we throw away\n\t\t\t// the results.\n\t\t\truleInfo.rule.parse();\n\t\t}\n\t}\n\treturn [];\n};\n\nexports.relink = function(wikitext, fromTitle, toTitle, options) {\n\tvar parser = new WikiRelinker(options.type, wikitext, fromTitle, toTitle, options),\n\t\twikiEntry = undefined;\n\t// Now that we have an array of entries, let's produce the wikiText entry\n\t// containing them all.\n\tif (parser.tree.length &gt; 0) {\n\t\tvar builder = new Rebuilder(wikitext);\n\t\twikiEntry = {};\n\t\tfor (var i = 0; i &lt; parser.tree.length; i++) {\n\t\t\tvar entry = parser.tree[i];\n\t\t\tif (entry.impossible) {\n\t\t\t\twikiEntry.impossible = true;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\tbuilder.add(entry.output, entry.start, entry.end);\n\t\t\t}\n\t\t}\n\t\twikiEntry.output = builder.results();\n\t}\n\treturn wikiEntry;\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkfieldtype&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/fieldtypes/wikitext.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/fields.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nHandles all fields specified in the plugin configuration. Currently, this\nonly supports single-value fields.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = 'fields';\n\nexports.report = function(tiddler, callback, options) {\n\tvar fields = options.settings.getFields();\n\t$tw.utils.each(fields, function(handler, field) {\n\t\tvar input = tiddler.fields[field];\n\t\tif (input) {\n\t\t\thandler.report(input, function(title, blurb) {\n\t\t\t\tif (blurb) {\n\t\t\t\t\tcallback(title, field + ': ' + blurb);\n\t\t\t\t} else {\n\t\t\t\t\tcallback(title, field);\n\t\t\t\t}\n\t\t\t}, options);\n\t\t}\n\t});\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, changes, options) {\n\tvar fields = options.settings.getFields();\n\t$tw.utils.each(fields, function(handler, field) {\n\t\tvar input = tiddler.fields[field];\n\t\tif (input) {\n\t\t\tvar entry = handler.relink(input, fromTitle, toTitle, options);\n\t\t\tif (entry !== undefined) {\n\t\t\t\tchanges[field] = entry;\n\t\t\t}\n\t\t}\n\t});\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkoperator&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/fields.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nDepending on the tiddler type, this will apply textOperators which may\nrelink titles within the body.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar defaultOperator = \&quot;text/vnd.tiddlywiki\&quot;;\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nexports.name = 'text';\n\nvar textOperators = utils.getModulesByTypeAsHashmap('relinktextoperator', 'type');\n\n// $:/DefaultTiddlers is a tiddler which has type \&quot;text/vnd.tiddlywiki\&quot;,\n// but it lies. It doesn't contain wikitext. It contains a filter, so\n// we pretend it has a filter type.\n// If you want to be able to add more exceptions for your plugin, let me know.\nvar exceptions = {\n\t\&quot;$:/DefaultTiddlers\&quot;: \&quot;text/x-tiddler-filter\&quot;\n};\n\nexports.report = function(tiddler, callback, options) {\n\tvar fields = tiddler.fields;\n\tif (fields.text) {\n\t\tvar type = exceptions[fields.title] || fields.type || defaultOperator;\n\t\tif (textOperators[type]) {\n\t\t\tvar entry = textOperators[type].report(tiddler, callback, options);\n\t\t}\n\t}\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, changes, options) {\n\tvar fields = tiddler.fields;\n\tif (fields.text) {\n\t\tvar type = exceptions[fields.title] || fields.type || defaultOperator;\n\t\tif (textOperators[type]) {\n\t\t\tvar entry = textOperators[type].relink(tiddler, fromTitle, toTitle, options);\n\t\t\tif (entry) {\n\t\t\t\tchanges.text = entry;\n\t\t\t}\n\t\t}\n\t}\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkoperator&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/filtertext.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nThis relinks tiddlers which contain filters in their body, as oppose to\nwikitext.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar filterHandler = require(\&quot;$:/plugins/flibbles/relink/js/utils\&quot;).getType('filter');\n\nexports.type = 'text/x-tiddler-filter';\n\nexports.report = function(tiddler, callback, options) {\n\treturn filterHandler.report(tiddler.fields.text, callback, options);\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, options) {\n\treturn filterHandler.relink(tiddler.fields.text, fromTitle, toTitle, options)\n};\n&quot;,
&quot;module-type&quot;: &quot;relinktextoperator&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/filtertext.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nChecks for fromTitle in a tiddler's text. If found, sees if it's relevant,\nand tries to swap it out if it is.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar Placeholder = require(\&quot;$:/plugins/flibbles/relink/js/utils/placeholder.js\&quot;);\nvar wikitextHandler = require('$:/plugins/flibbles/relink/js/utils.js').getType('wikitext');\n\nexports.type = 'text/vnd.tiddlywiki';\n\nexports.report = function(tiddler, callback, options) {\n\twikitextHandler.report(tiddler.fields.text, callback, options);\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, options) {\n\tvar placeholder = new Placeholder();\n\tvar currentOptions = Object.create(options);\n\tcurrentOptions.placeholder = placeholder;\n\tvar entry = wikitextHandler.relink(tiddler.fields.text, fromTitle, toTitle, currentOptions);\n\tif (entry &amp;&amp; entry.output) {\n\t\t// If there's output, we've also got to prepend any macros\n\t\t// that the placeholder defined.\n\t\tvar preamble = placeholder.getPreamble();\n\t\tentry.output = preamble + entry.output;\n\t}\n\treturn entry;\n};\n&quot;,
&quot;module-type&quot;: &quot;relinktextoperator&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/code.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles code blocks. Or rather //doesn't// handle them, since we should\nignore their contents.\n\n\&quot;`` [[Renamed Title]] ``\&quot; will remain unchanged.\n\n\\*/\n\nexports.name = [\&quot;codeinline\&quot;, \&quot;codeblock\&quot;];\n\nexports.relink = function(text) {\n\tvar reEnd;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// I'm lazy. This relink method works for both codeblock and codeinline\n\tif (this.match[0].length &gt; 2) {\n\t\t// Must be a codeblock\n\t\treEnd = /\\r?\\n```$/mg;\n\t} else {\n\t\t// Must be a codeinline\n\t\treEnd = new RegExp(this.match[1], \&quot;mg\&quot;);\n\t}\n\treEnd.lastIndex = this.parser.pos;\n\tvar match = reEnd.exec(text);\n\tif (match) {\n\t\tthis.parser.pos = match.index + match[0].length;\n\t} else {\n\t\tthis.parser.pos = this.parser.sourceLength;\n\t}\n\treturn undefined;\n};\n\n// Same thing. Just skip the pos ahead.\nexports.report = exports.relink;\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/code.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/comment.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles comment blocks. Or rather //doesn't// handle them, since we should\nignore their contents.\n\n\&quot;&lt;!-- [[Renamed Title]] --&gt;\&quot; will remain unchanged.\n\n\\*/\n\nexports.name = [\&quot;commentinline\&quot;, \&quot;commentblock\&quot;];\n\nexports.relink = function(text) {\n\tthis.parser.pos = this.endMatchRegExp.lastIndex;\n\treturn undefined;\n};\n\nexports.report = exports.relink;\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/comment.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/filteredtransclude.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement of filtered transclusions in wiki text like,\n\n{{{ [tag[docs]] }}}\n{{{ [tag[docs]] |tooltip}}}\n{{{ [tag[docs]] ||TemplateTitle}}}\n{{{ [tag[docs]] |tooltip||TemplateTitle}}}\n{{{ [tag[docs]] }}width:40;height:50;}.class.class\n\nThis renames both the list and the template field.\n\n\\*/\n\nexports.name = ['filteredtranscludeinline', 'filteredtranscludeblock'];\n\nvar filterHandler = require(\&quot;$:/plugins/flibbles/relink/js/utils\&quot;).getType('filter');\nvar utils = require(\&quot;./utils.js\&quot;);\n\nexports.report = function(text, callback, options) {\n\tvar m = this.match,\n\t\tfilter = m[1],\n\t\ttemplate = $tw.utils.trim(m[3]),\n\t\tappend = template ? '||' + template + '}}}' : '}}}';\n\tfilterHandler.report(filter, function(title, blurb) {\n\t\tcallback(title, '{{{' + blurb + append);\n\t}, options);\n\tif (template) {\n\t\tcallback(template, '{{{' + $tw.utils.trim(filter).replace(/\\r?\\n/mg, ' ') + '||}}}');\n\t}\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar m = this.match,\n\t\tfilter = m[1],\n\t\ttooltip = m[2],\n\t\ttemplate = m[3],\n\t\tstyle = m[4],\n\t\tclasses = m[5],\n\t\tparser = this.parser,\n\t\tentry = {};\n\tparser.pos = this.matchRegExp.lastIndex;\n\tvar modified = false;\n\n\tvar filterEntry = filterHandler.relink(filter, fromTitle, toTitle, options);\n\tif (filterEntry !== undefined) {\n\t\tif (filterEntry.output) {\n\t\t\tfilter = filterEntry.output;\n\t\t\tmodified = true;\n\t\t}\n\t\tif (filterEntry.impossible) {\n\t\t\tentry.impossible = true;\n\t\t}\n\t}\n\n\tif ($tw.utils.trim(template) === fromTitle) {\n\t\t// preserves user-inputted whitespace\n\t\ttemplate = template.replace(fromTitle, toTitle);\n\t\tmodified = true;\n\t}\n\tif (!modified) {\n\t\tif (!entry.impossible) {\n\t\t\treturn undefined;\n\t\t}\n\t} else {\n\t\tvar output = this.makeFilteredtransclude(this.parser, filter, tooltip, template, style, classes);\n\t\tif (output === undefined) {\n\t\t\tentry.impossible = true;\n\t\t} else {\n\t\t\t// By copying over the ending newline of the original\n\t\t\t// text if present, thisrelink method thus works for\n\t\t\t// both the inline and block rule\n\t\t\tentry.output = output + utils.getEndingNewline(m[0]);\n\t\t}\n\t}\n\treturn entry;\n};\n\nexports.makeFilteredtransclude = function(parser, filter, tooltip, template, style, classes) {\n\tif (canBePretty(filter) &amp;&amp; canBePrettyTemplate(template)) {\n\t\treturn prettyList(filter, tooltip, template, style, classes);\n\t}\n\tif (classes !== undefined) {\n\t\tclasses = classes.split('.').join(' ');\n\t}\n\treturn utils.makeWidget(parser, '$list', {\n\t\tfilter: filter,\n\t\ttooltip: tooltip,\n\t\ttemplate: template,\n\t\tstyle: style || undefined,\n\t\titemClass: classes});\n};\n\nfunction prettyList(filter, tooltip, template, style, classes) {\n\tif (tooltip === undefined) {\n\t\ttooltip = '';\n\t} else {\n\t\ttooltip = \&quot;|\&quot; + tooltip;\n\t}\n\tif (template === undefined) {\n\t\ttemplate = '';\n\t} else {\n\t\ttemplate = \&quot;||\&quot; + template;\n\t}\n\tif (classes === undefined) {\n\t\tclasses = '';\n\t} else {\n\t\tclasses = \&quot;.\&quot; + classes;\n\t}\n\tstyle = style || '';\n\treturn \&quot;{{{\&quot;+filter+tooltip+template+\&quot;}}\&quot;+style+\&quot;}\&quot;+classes;\n};\n\nfunction canBePretty(filter) {\n\treturn filter.indexOf('|') &lt; 0 &amp;&amp; filter.indexOf('}}') &lt; 0;\n};\n\nfunction canBePrettyTemplate(template) {\n\treturn !template || (\n\t\ttemplate.indexOf('|') &lt; 0\n\t\t&amp;&amp; template.indexOf('{') &lt; 0\n\t\t&amp;&amp; template.indexOf('}') &lt; 0);\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/filteredtransclude.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement in attributes of widgets and html elements\nThis is configurable to select exactly which attributes of which elements\nshould be changed.\n\n&lt;$link to=\&quot;TiddlerTitle\&quot; /&gt;\n\n\\*/\n\nvar utils = require(\&quot;./utils.js\&quot;);\nvar Rebuilder = require(\&quot;$:/plugins/flibbles/relink/js/utils/rebuilder\&quot;);\nvar relinkUtils = require('$:/plugins/flibbles/relink/js/utils.js');\nvar refHandler = relinkUtils.getType('reference');\nvar filterHandler = relinkUtils.getType('filter');\nvar ImportContext = relinkUtils.getContext('import');\nvar macrocall = require(\&quot;./macrocall.js\&quot;);\n\nexports.name = \&quot;html\&quot;;\n\nexports.report = function(text, callback, options) {\n\tvar managedElement = this.parser.context.getAttribute(this.nextTag.tag);\n\tvar importFilterAttr;\n\tvar element = this.nextTag.tag;\n\tfor (var attributeName in this.nextTag.attributes) {\n\t\tvar attr = this.nextTag.attributes[attributeName];\n\t\tvar nextEql = text.indexOf('=', attr.start);\n\t\t// This is the rare case of changing tiddler\n\t\t// \&quot;true\&quot; to something else when \&quot;true\&quot; is\n\t\t// implicit, like &lt;$link to /&gt; We ignore those.\n\t\tif (nextEql &lt; 0 || nextEql &gt; attr.end) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \&quot;$importvariables\&quot; &amp;&amp; attributeName === \&quot;filter\&quot;) {\n\t\t\timportFilterAttr = attr;\n\t\t}\n\t\tvar oldLength, quotedValue = undefined, entry;\n\t\tif (attr.type === \&quot;string\&quot;) {\n\t\t\tvar handler = getAttributeHandler(this.parser.context, this.nextTag, attributeName, options);\n\t\t\tif (!handler) {\n\t\t\t\t// We don't manage this attribute. Bye.\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\thandler.report(attr.value, function(title, blurb) {\n\t\t\t\tif (blurb) {\n\t\t\t\t\tcallback(title, '&lt;' + element + ' ' + attributeName + '=\&quot;' + blurb + '\&quot; /&gt;');\n\t\t\t\t} else {\n\t\t\t\t\tcallback(title, '&lt;' + element + ' ' + attributeName + ' /&gt;');\n\t\t\t\t}\n\t\t\t}, options);\n\t\t} else if (attr.type === \&quot;indirect\&quot;) {\n\t\t\tentry = refHandler.report(attr.textReference, function(title, blurb) {\n\t\t\t\tcallback(title, '&lt;' + element + ' ' + attributeName + '={{' + (blurb || '') + '}} /&gt;');\n\t\t\t}, options);\n\t\t} else if (attr.type === \&quot;filtered\&quot;) {\n\t\t\tentry = filterHandler.report(attr.filter, function(title, blurb) {\n\t\t\t\tcallback(title, '&lt;' + element + ' ' + attributeName + '={{{' + blurb + '}}} /&gt;');\n\t\t\t}, options);\n\t\t} else if (attr.type === \&quot;macro\&quot;) {\n\t\t\tvar macro = attr.value;\n\t\t\tentry = macrocall.reportAttribute(this.parser, macro, function(title, blurb) {\n\t\t\t\tcallback(title, '&lt;' + element + ' ' + attributeName + '=' + blurb + ' /&gt;');\n\t\t\t}, options);\n\t\t}\n\t\tif (quotedValue === undefined) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \&quot;$importvariables\&quot; &amp;&amp; attributeName === \&quot;filter\&quot;) {\n\t\t\t// If this is an import variable filter, we gotta\n\t\t\t// remember this new value when we import lower down.\n\t\t\timportFilterAttr = quotedValue;\n\t\t}\n\t}\n\tif (importFilterAttr) {\n\t\tprocessImportFilter(this.parser, importFilterAttr, options);\n\t}\n\tthis.parse();\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar managedElement = this.parser.context.getAttribute(this.nextTag.tag),\n\t\tbuilder = new Rebuilder(text, this.nextTag.start);\n\tvar importFilterAttr;\n\tvar widgetEntry = {};\n\twidgetEntry.attributes = Object.create(null);\n\twidgetEntry.element = this.nextTag.tag;\n\tfor (var attributeName in this.nextTag.attributes) {\n\t\tvar attr = this.nextTag.attributes[attributeName];\n\t\tvar nextEql = text.indexOf('=', attr.start);\n\t\t// This is the rare case of changing tiddler\n\t\t// \&quot;true\&quot; to something else when \&quot;true\&quot; is\n\t\t// implicit, like &lt;$link to /&gt; We ignore those.\n\t\tif (nextEql &lt; 0 || nextEql &gt; attr.end) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \&quot;$importvariables\&quot; &amp;&amp; attributeName === \&quot;filter\&quot;) {\n\t\t\timportFilterAttr = attr;\n\t\t}\n\t\tvar oldLength, quotedValue = undefined, entry;\n\t\tvar nestedOptions = Object.create(options);\n\t\tnestedOptions.settings = this.parser.context;\n\t\tswitch (attr.type) {\n\t\tcase 'string':\n\t\t\tvar handler = getAttributeHandler(this.parser.context, this.nextTag, attributeName, options);\n\t\t\tif (!handler) {\n\t\t\t\t// We don't manage this attribute. Bye.\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tentry = handler.relink(attr.value, fromTitle, toTitle, nestedOptions);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\tvar quote = utils.determineQuote(text, attr);\n\t\t\t\toldLength = attr.value.length + (quote.length * 2);\n\t\t\t\tquotedValue = utils.wrapAttributeValue(entry.output,quote);\n\t\t\t\tif (quotedValue === undefined) {\n\t\t\t\t\t// The value was unquotable. We need to make\n\t\t\t\t\t// a macro in order to replace it.\n\t\t\t\t\tif (!options.placeholder) {\n\t\t\t\t\t\t// but we can't...\n\t\t\t\t\t\tentry.impossible = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar value = options.placeholder.getPlaceholderFor(entry.output,handler.name)\n\t\t\t\t\t\tquotedValue = \&quot;&lt;&lt;\&quot;+value+\&quot;&gt;&gt;\&quot;;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'indirect':\n\t\t\tentry = refHandler.relinkInBraces(attr.textReference, fromTitle, toTitle, options);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\t// +4 for '{{' and '}}'\n\t\t\t\toldLength = attr.textReference.length + 4;\n\t\t\t\tquotedValue = \&quot;{{\&quot;+entry.output+\&quot;}}\&quot;;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'filtered':\n\t\t\tentry = filterHandler.relinkInBraces(attr.filter, fromTitle, toTitle, options);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\t// +6 for '{{{' and '}}}'\n\t\t\t\toldLength = attr.filter.length + 6;\n\t\t\t\tquotedValue = \&quot;{{{\&quot;+ entry.output +\&quot;}}}\&quot;;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'macro':\n\t\t\tvar macro = attr.value;\n\t\t\tentry = macrocall.relinkAttribute(this.parser, macro, text, fromTitle, toTitle, options);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\t// already includes '&lt;&lt;' and '&gt;&gt;'\n\t\t\t\toldLength = macro.end-macro.start;\n\t\t\t\tquotedValue = entry.output;\n\t\t\t}\n\t\t}\n\t\tif (entry.impossible) {\n\t\t\twidgetEntry.impossible = true;\n\t\t}\n\t\tif (quotedValue === undefined) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \&quot;$importvariables\&quot; &amp;&amp; attributeName === \&quot;filter\&quot;) {\n\t\t\t// If this is an import variable filter, we gotta\n\t\t\t// remember this new value when we import lower down.\n\t\t\timportFilterAttr = quotedValue;\n\t\t}\n\t\t// We count backwards from the end to preserve whitespace\n\t\tvar valueStart = attr.end - oldLength;\n\t\tbuilder.add(quotedValue, valueStart, attr.end);\n\t}\n\tif (importFilterAttr) {\n\t\tprocessImportFilter(this.parser, importFilterAttr, options);\n\t}\n\tvar tag = this.parse()[0];\n\tif (tag.children) {\n\t\tfor (var i = 0; i &lt; tag.children.length; i++) {\n\t\t\tvar child = tag.children[i];\n\t\t\tif (child.output) {\n\t\t\t\tbuilder.add(child.output, child.start, child.end);\n\t\t\t}\n\t\t\tif (child.impossible) {\n\t\t\t\twidgetEntry.impossible = true;\n\t\t\t}\n\t\t}\n\t}\n\tif (builder.changed() || widgetEntry.impossible) {\n\t\twidgetEntry.output = builder.results(this.parser.pos);\n\t\treturn widgetEntry;\n\t}\n\treturn undefined;\n};\n\n/** Returns the field handler for the given attribute of the given widget.\n * If this returns undefined, it means we don't handle it. So skip.\n */\nfunction getAttributeHandler(context, widget, attributeName, options) {\n\tif (widget.tag === \&quot;$macrocall\&quot;) {\n\t\tvar nameAttr = widget.attributes[\&quot;$name\&quot;];\n\t\tif (nameAttr) {\n\t\t\tvar macro = context.getMacro(nameAttr.value);\n\t\t\tif (macro) {\n\t\t\t\treturn macro[attributeName];\n\t\t\t}\n\t\t}\n\t} else {\n\t\tvar element = context.getAttribute(widget.tag);\n\t\tif (element) {\n\t\t\treturn element[attributeName];\n\t\t}\n\t}\n\treturn undefined;\n};\n\nfunction computeAttribute(context, attribute, options) {\n\tvar value;\n\tif(attribute.type === \&quot;filtered\&quot;) {\n\t\tvar parentWidget = context.widget;\n\t\tvalue = options.wiki.filterTiddlers(attribute.filter,parentWidget)[0] || \&quot;\&quot;;\n\t} else if(attribute.type === \&quot;indirect\&quot;) {\n\t\tvar parentWidget = context.widget;\n\t\tvalue = options.wiki.getTextReference(attribute.textReference,\&quot;\&quot;,parentWidget.variables.currentTiddler.value);\n\t} else if(attribute.type === \&quot;macro\&quot;) {\n\t\tvar parentWidget = context.widget;\n\t\tvalue = parentWidget.getVariable(attribute.value.name,{params: attribute.value.params});\n\t} else { // String attribute\n\t\tvalue = attribute.value;\n\t}\n\treturn value;\n};\n\n// This processes a &lt;$importvariables&gt; filter attribute and adds any new\n// variables to our parser.\nfunction processImportFilter(parser, importAttribute, options) {\n\tif (typeof importAttribute === \&quot;string\&quot;) {\n\t\t// It was changed. Reparse it. It'll be a quoted\n\t\t// attribute value. Add a dummy attribute name.\n\t\timportAttribute = $tw.utils.parseAttribute(\&quot;p=\&quot;+importAttribute, 0)\n\t}\n\tvar context = parser.context;\n\tvar importFilter = computeAttribute(context, importAttribute, options);\n\tparser.context = new ImportContext(options.wiki, context, importFilter);\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/image.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement in wiki text inline rules, like,\n\n[img[tiddler.jpg]]\n\n[img width=23 height=24 [Description|tiddler.jpg]]\n\n\\*/\n\nvar Rebuilder = require(\&quot;$:/plugins/flibbles/relink/js/utils/rebuilder\&quot;);\nvar refHandler = require(\&quot;$:/plugins/flibbles/relink/js/fieldtypes/reference\&quot;);\nvar filterHandler = require(\&quot;$:/plugins/flibbles/relink/js/utils\&quot;).getType('filter');\nvar macrocall = require(\&quot;./macrocall.js\&quot;);\nvar utils = require(\&quot;./utils.js\&quot;);\n\nexports.name = \&quot;image\&quot;;\n\nexports.report = function(text, callback, options) {\n\tvar ptr = this.nextImage.start + 4; //[img\n\tvar inSource = false;\n\tfor (var attributeName in this.nextImage.attributes) {\n\t\tvar attr = this.nextImage.attributes[attributeName];\n\t\tif (attributeName === \&quot;source\&quot; || attributeName === \&quot;tooltip\&quot;) {\n\t\t\tif (inSource) {\n\t\t\t\tptr = text.indexOf('|', ptr);\n\t\t\t} else {\n\t\t\t\tptr = text.indexOf('[', ptr);\n\t\t\t\tinSource = true;\n\t\t\t}\n\t\t\tptr += 1;\n\t\t}\n\t\tif (attributeName === \&quot;source\&quot;) {\n\t\t\tvar tooltip = this.nextImage.attributes.tooltip;\n\t\t\tvar blurb = '[img[' + (tooltip ? tooltip.value : '') + ']]';\n\t\t\tcallback(attr.value, blurb);\n\t\t\tptr = text.indexOf(attr.value, ptr);\n\t\t\tptr = text.indexOf(']]', ptr) + 2;\n\t\t} else if (attributeName !== \&quot;tooltip\&quot;) {\n\t\t\tptr = reportAttribute(this.parser, attr, callback, options);\n\t\t}\n\t}\n\tthis.parser.pos = ptr;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar ptr = this.nextImage.start,\n\t\tbuilder = new Rebuilder(text, ptr),\n\t\tmakeWidget = false,\n\t\tskipSource = false,\n\t\timageEntry;\n\tif (this.nextImage.attributes.source.value === fromTitle &amp;&amp; !canBePretty(toTitle, this.nextImage.attributes.tooltip)) {\n\t\tif (this.parser.context.allowWidgets() &amp;&amp; (utils.wrapAttributeValue(toTitle) || options.placeholder)) {\n\t\t\tmakeWidget = true;\n\t\t\tbuilder.add(\&quot;&lt;$image\&quot;, ptr, ptr+4);\n\t\t} else {\n\t\t\t// We won't be able to make a placeholder to replace\n\t\t\t// the source attribute. We check now so we don't\n\t\t\t// prematurely convert into a widget.\n\t\t\t// Keep going in case other attributes need replacing.\n\t\t\tskipSource = true;\n\t\t}\n\t}\n\tptr += 4; //[img\n\tvar inSource = false;\n\tfor (var attributeName in this.nextImage.attributes) {\n\t\tvar attr = this.nextImage.attributes[attributeName];\n\t\tif (attributeName === \&quot;source\&quot; || attributeName === \&quot;tooltip\&quot;) {\n\t\t\tif (inSource) {\n\t\t\t\tptr = text.indexOf('|', ptr);\n\t\t\t} else {\n\t\t\t\tptr = text.indexOf('[', ptr);\n\t\t\t\tinSource = true;\n\t\t\t}\n\t\t\tif (makeWidget) {\n\t\t\t\tif (\&quot; \\t\\n\&quot;.indexOf(text[ptr-1]) &gt;= 0) {\n\t\t\t\t\tbuilder.add('', ptr, ptr+1);\n\t\t\t\t} else {\n\t\t\t\t\tbuilder.add(' ', ptr, ptr+1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tptr += 1;\n\t\t}\n\t\tif (attributeName === \&quot;source\&quot;) {\n\t\t\tptr = text.indexOf(attr.value, ptr);\n\t\t\tif (attr.value === fromTitle) {\n\t\t\t\tif (makeWidget) {\n\t\t\t\t\tvar quotedValue = utils.wrapAttributeValue(toTitle);\n\t\t\t\t\tif (quotedValue === undefined) {\n\t\t\t\t\t\tvar key = options.placeholder.getPlaceholderFor(toTitle);\n\t\t\t\t\t\tbuilder.add(\&quot;source=&lt;&lt;\&quot;+key+\&quot;&gt;&gt;\&quot;, ptr, ptr+fromTitle.length);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbuilder.add(\&quot;source=\&quot;+quotedValue, ptr, ptr+fromTitle.length);\n\t\t\t\t\t}\n\t\t\t\t} else if (!skipSource) {\n\t\t\t\t\tbuilder.add(toTitle, ptr, ptr+fromTitle.length);\n\t\t\t\t} else {\n\t\t\t\t\tbuilder.impossible = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tptr = text.indexOf(']]', ptr);\n\t\t\tif (makeWidget) {\n\t\t\t\tbuilder.add(\&quot;/&gt;\&quot;, ptr, ptr+2);\n\t\t\t}\n\t\t\tptr += 2;\n\t\t} else if (attributeName === \&quot;tooltip\&quot;) {\n\t\t\tif (makeWidget) {\n\t\t\t\tptr = text.indexOf(attr.value, ptr);\n\t\t\t\tvar quotedValue = utils.wrapAttributeValue(attr.value);\n\t\t\t\tbuilder.add(\&quot;tooltip=\&quot;+quotedValue, ptr, ptr+attr.value.length);\n\t\t\t}\n\t\t} else {\n\t\t\tptr = relinkAttribute(this.parser, attr, builder, fromTitle, toTitle, options);\n\t\t}\n\t}\n\tthis.parser.pos = ptr;\n\tif (builder.changed() || builder.impossible) {\n\t\timageEntry = {\n\t\t\toutput: builder.results(ptr),\n\t\t\timpossible: builder.impossible };\n\t}\n\treturn imageEntry;\n};\n\nfunction reportAttribute(parser, attribute, callback, options) {\n\tvar text = parser.source;\n\tvar ptr = text.indexOf(attribute.name, attribute.start);\n\tvar end;\n\tptr += attribute.name.length;\n\tptr = text.indexOf('=', ptr);\n\tif (attribute.type === \&quot;string\&quot;) {\n\t\tptr = text.indexOf(attribute.value, ptr)\n\t\tvar quote = utils.determineQuote(text, attribute);\n\t\t// ignore first quote. We already passed it\n\t\tend = ptr + quote.length + attribute.value.length;\n\t} else if (attribute.type === \&quot;indirect\&quot;) {\n\t\tptr = text.indexOf('{{', ptr);\n\t\tvar end = ptr + attribute.textReference.length + 4;\n\t\trefHandler.report(attribute.textReference, function(title, blurb) {\n\t\t\tcallback(title, '[img ' + attribute.name + '={{' + (blurb || '') + '}}]');\n\t\t}, options);\n\t} else if (attribute.type === \&quot;filtered\&quot;) {\n\t\tptr = text.indexOf('{{{', ptr);\n\t\tvar end = ptr + attribute.filter.length + 6;\n\t\tfilterHandler.report(attribute.filter, function(title, blurb) {\n\t\t\tcallback(title, '[img ' + attribute.name + '={{{' + blurb + '}}}]');\n\t\t}, options);\n\t} else if (attribute.type === \&quot;macro\&quot;) {\n\t\tptr = text.indexOf(\&quot;&lt;&lt;\&quot;, ptr);\n\t\tvar end = attribute.value.end;\n\t\tvar macro = attribute.value;\n\t\toldValue = attribute.value;\n\t\tmacrocall.reportAttribute(parser, macro, function(title, blurb) {\n\t\t\tcallback(title, '[img ' + attribute.name + '=' + blurb + ']');\n\t\t}, options);\n\t}\n\treturn end;\n};\n\nfunction relinkAttribute(parser, attribute, builder, fromTitle, toTitle, options) {\n\tvar text = builder.text;\n\tvar ptr = text.indexOf(attribute.name, attribute.start);\n\tvar end;\n\tptr += attribute.name.length;\n\tptr = text.indexOf('=', ptr);\n\tif (attribute.type === \&quot;string\&quot;) {\n\t\tptr = text.indexOf(attribute.value, ptr)\n\t\tvar quote = utils.determineQuote(text, attribute);\n\t\t// ignore first quote. We already passed it\n\t\tend = ptr + quote.length + attribute.value.length;\n\t} else if (attribute.type === \&quot;indirect\&quot;) {\n\t\tptr = text.indexOf('{{', ptr);\n\t\tvar end = ptr + attribute.textReference.length + 4;\n\t\tvar ref = refHandler.relinkInBraces(attribute.textReference, fromTitle, toTitle, options);\n\t\tif (ref) {\n\t\t\tif (ref.impossible) {\n\t\t\t\tbuilder.impossible = true;\n\t\t\t}\n\t\t\tif (ref.output) {\n\t\t\t\tbuilder.add(\&quot;{{\&quot;+ref.output+\&quot;}}\&quot;, ptr, end);\n\t\t\t}\n\t\t}\n\t} else if (attribute.type === \&quot;filtered\&quot;) {\n\t\tptr = text.indexOf('{{{', ptr);\n\t\tvar end = ptr + attribute.filter.length + 6;\n\t\tvar filter = filterHandler.relinkInBraces(attribute.filter, fromTitle, toTitle, options);\n\t\tif (filter !== undefined) {\n\t\t\tif (filter.impossible) {\n\t\t\t\tbuilder.impossible = true;\n\t\t\t}\n\t\t\tif (filter.output) {\n\t\t\t\tvar quoted = \&quot;{{{\&quot;+filter.output+\&quot;}}}\&quot;;\n\t\t\t\tbuilder.add(quoted, ptr, end);\n\t\t\t}\n\t\t}\n\t} else if (attribute.type === \&quot;macro\&quot;) {\n\t\tptr = text.indexOf(\&quot;&lt;&lt;\&quot;, ptr);\n\t\tvar end = attribute.value.end;\n\t\tvar macro = attribute.value;\n\t\toldValue = attribute.value;\n\t\tvar macroEntry = macrocall.relinkAttribute(parser, macro, text, fromTitle, toTitle, options);\n\t\tif (macroEntry !== undefined) {\n\t\t\tif (macroEntry.impossible) {\n\t\t\t\tbuilder.impossible = true;\n\t\t\t}\n\t\t\tif (macroEntry.output) {\n\t\t\t\tbuilder.add(macroEntry.output, ptr, end);\n\t\t\t}\n\t\t}\n\t}\n\treturn end;\n};\n\nfunction canBePretty(title, tooltip) {\n\treturn title.indexOf(']') &lt; 0 &amp;&amp; (tooltip || title.indexOf('|') &lt; 0);\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/image.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/import.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles import pragmas\n\n\\import [tag[MyTiddler]]\n\\*/\n\nvar utils = require(\&quot;$:/plugins/flibbles/relink/js/utils.js\&quot;);\nvar filterRelinker = utils.getType('filter');\nvar ImportContext = utils.getContext('import');\n\nexports.name = \&quot;import\&quot;;\n\nexports.report = function(text, callback, options) {\n\t// This moves the pos for us\n\tvar parseTree = this.parse();\n\tvar filter = parseTree[0].attributes.filter.value || '';\n\tfilterRelinker.report(filter, function(title, blurb) {\n\t\tif (blurb) {\n\t\t\tblurb = '\\\\import ' + blurb;\n\t\t} else {\n\t\t\tblurb = '\\\\import';\n\t\t}\n\t\tcallback(title, blurb);\n\t}, options);\n\t// Before we go, we need to actually import the variables\n\t// it's calling for, and any /relink pragma\n\tthis.parser.context = new ImportContext(options.wiki, this.parser.context, filter);\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\t// In this one case, I'll let the parser parse out the filter and move\n\t// the ptr.\n\tvar start = this.matchRegExp.lastIndex,\n\t\tparseTree = this.parse(),\n\t\tfilter = parseTree[0].attributes.filter.value || '',\n\t\tentry = filterRelinker.relink(filter, fromTitle, toTitle, options);\n\tif (entry !== undefined &amp;&amp; entry.output) {\n\t\tvar newline = text.substring(start+filter.length, this.parser.pos);\n\t\tfilter = entry.output;\n\t\tentry.output = \&quot;\\\\import \&quot; + filter + newline;\n\t}\n\n\t// Before we go, we need to actually import the variables\n\t// it's calling for, and any /relink pragma\n\tthis.parser.context = new ImportContext(options.wiki, this.parser.context, filter);\n\n\treturn entry;\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/import.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrocall.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles macro calls.\n\n&lt;&lt;myMacro '[[MyFilter]]' 'myTitle'&gt;&gt;\n\n\\*/\n\nvar utils = require(\&quot;./utils.js\&quot;);\nvar Rebuilder = require(\&quot;$:/plugins/flibbles/relink/js/utils/rebuilder\&quot;);\nvar EntryNode = require('$:/plugins/flibbles/relink/js/utils/entry');\n\nexports.name = [\&quot;macrocallinline\&quot;, \&quot;macrocallblock\&quot;];\n\n// Error thrown when a macro's definition is needed, but can't be found.\nfunction CannotFindMacroDef() {};\nCannotFindMacroDef.prototype.impossible = true;\nCannotFindMacroDef.prototype.name = \&quot;macroparam\&quot;;\n// Failed relinks due to missing definitions aren't reported for now.\n// I may want to do something special later on.\nCannotFindMacroDef.prototype.report = function() { return []; };\n\nexports.report = function(text, callback, options) {\n\tvar macroInfo = getInfoFromRule(this);\n\tthis.parser.pos = macroInfo.end;\n\tthis.reportAttribute(this.parser, macroInfo, callback, options);\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar macroInfo = getInfoFromRule(this);\n\tvar managedMacro = this.parser.context.getMacro(macroInfo.name);\n\tthis.parser.pos = macroInfo.end;\n\tif (!managedMacro) {\n\t\t// We don't manage this macro. Bye.\n\t\treturn undefined;\n\t}\n\tvar mayBeWidget = this.parser.context.allowWidgets();\n\tvar names = getParamNames(this.parser, macroInfo.name, macroInfo.params, options);\n\tif (names === undefined) {\n\t\t// Needed the definition, and couldn't find it. So if a single\n\t\t// parameter needs to placeholder, just fail.\n\t\tmayBeWidget = false;\n\t}\n\tvar entry = relinkMacroInvocation(this.parser, macroInfo, text, fromTitle, toTitle, mayBeWidget, options);\n\tif (entry &amp;&amp; entry.output) {\n\t\tentry.output = macroToString(entry.output, text, names, options);\n\t}\n\treturn entry;\n};\n\n/** Relinks macros that occur as attributes, like &lt;$element attr=&lt;&lt;...&gt;&gt; /&gt;\n * Processes the same, except it can't downgrade into a widget if the title\n * is complicated.\n */\nexports.relinkAttribute = function(parser, macro, text, fromTitle, toTitle, options) {\n\tvar entry = relinkMacroInvocation(parser, macro, text, fromTitle, toTitle, false, options);\n\tif (entry &amp;&amp; entry.output) {\n\t\tentry.output = macroToStringMacro(entry.output, text, options);\n\t}\n\treturn entry;\n};\n\n/** As in, report a macrocall invocation that is an html attribute. */\nexports.reportAttribute = function(parser, macro, callback, options) {\n\tvar managedMacro = parser.context.getMacro(macro.name);\n\tif (!managedMacro) {\n\t\t// We don't manage this macro. Bye.\n\t\treturn undefined;\n\t}\n\tfor (var managedArg in managedMacro) {\n\t\tvar index;\n\t\ttry {\n\t\t\tindex = getParamIndexWithinMacrocall(parser, macro.name, managedArg, macro.params, options);\n\t\t} catch (e) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (index &lt; 0) {\n\t\t\t// The argument was not supplied. Move on to next.\n\t\t\tcontinue;\n\t\t}\n\t\tvar param = macro.params[index];\n\t\tvar handler = managedMacro[managedArg];\n\t\tvar nestedOptions = Object.create(options);\n\t\tnestedOptions.settings = parser.context;\n\t\tvar entry = handler.report(param.value, function(title, blurb) {\n\t\t\tvar rtn = managedArg;\n\t\t\tif (blurb) {\n\t\t\t\trtn += ': \&quot;' + blurb + '\&quot;';\n\t\t\t}\n\t\t\tcallback(title, '&lt;&lt;' + macro.name + ' ' + rtn + '&gt;&gt;');\n\t\t}, nestedOptions);\n\t}\n};\n\n/**Processes the given macro,\n * macro: {name:, params:, start:, end:}\n * each parameters: {name:, end:, value:}\n * Macro invocation returned is the same, but relinked, and may have new keys:\n * parameters: {type: macro, start:, newValue: (quoted replacement value)}\n * Output of the returned entry isn't a string, but a macro object. It needs\n * to be converted.\n */\nfunction relinkMacroInvocation(parser, macro, text, fromTitle, toTitle, mayBeWidget, options) {\n\tvar managedMacro = parser.context.getMacro(macro.name);\n\tvar modified = false;\n\tif (!managedMacro) {\n\t\t// We don't manage this macro. Bye.\n\t\treturn undefined;\n\t}\n\tvar outMacro = $tw.utils.extend({}, macro);\n\tvar macroEntry = {};\n\toutMacro.params = macro.params.slice();\n\tfor (var managedArg in managedMacro) {\n\t\tvar index;\n\t\ttry {\n\t\t\tindex = getParamIndexWithinMacrocall(parser, macro.name, managedArg, macro.params, options);\n\t\t} catch (e) {\n\t\t\tif (e instanceof CannotFindMacroDef) {\n\t\t\t\tmacroEntry.impossible = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif (index &lt; 0) {\n\t\t\t// this arg either was not supplied, or we can't find\n\t\t\t// the definition, so we can't tie it to an anonymous\n\t\t\t// argument. Either way, move on to the next.\n\t\t\tcontinue;\n\t\t}\n\t\tvar param = macro.params[index];\n\t\tvar handler = managedMacro[managedArg];\n\t\tvar nestedOptions = Object.create(options);\n\t\tnestedOptions.settings = parser.context;\n\t\tvar entry = handler.relink(param.value, fromTitle, toTitle, nestedOptions);\n\t\tif (entry === undefined) {\n\t\t\tcontinue;\n\t\t}\n\t\t// Macro parameters can only be string parameters, not\n\t\t// indirect, or macro, or filtered\n\t\tif (entry.impossible) {\n\t\t\tmacroEntry.impossible = true;\n\t\t}\n\t\tif (!entry.output) {\n\t\t\tcontinue;\n\t\t}\n\t\tvar quote = utils.determineQuote(text, param);\n\t\tvar quoted = utils.wrapParameterValue(entry.output, quote);\n\t\tvar newParam = $tw.utils.extend({}, param);\n\t\tif (quoted === undefined) {\n\t\t\tif (!mayBeWidget || !options.placeholder) {\n\t\t\t\tmacroEntry.impossible = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvar ph = options.placeholder.getPlaceholderFor(entry.output,handler.name);\n\t\t\tnewParam.newValue = \&quot;&lt;&lt;\&quot;+ph+\&quot;&gt;&gt;\&quot;;\n\t\t\tnewParam.type = \&quot;macro\&quot;;\n\t\t} else {\n\t\t\tnewParam.start = newParam.end - (newParam.value.length + (quote.length*2));\n\t\t\tnewParam.value = entry.output;\n\t\t\tnewParam.newValue = quoted;\n\t\t}\n\t\toutMacro.params[index] = newParam;\n\t\tmodified = true;\n\t}\n\tif (modified || macroEntry.impossible) {\n\t\tif (modified) {\n\t\t\tmacroEntry.output = outMacro;\n\t\t}\n\t\treturn macroEntry;\n\t}\n\treturn undefined;\n};\n\nfunction getInfoFromRule(rule) {\n\t// Get all the details of the match\n\tvar macroInfo = rule.nextCall;\n\tif (!macroInfo) {\n\t\t// rule.match is used &lt;v5.1.24\n\t\tvar match = rule.match,\n\t\t\toffset = $tw.utils.skipWhiteSpace(match[0], match[1].length+2);\n\t\tmacroInfo = {\n\t\t\tname: match[1],\n\t\t\tstart: rule.matchRegExp.lastIndex - match[0].length,\n\t\t\tend: rule.matchRegExp.lastIndex,\n\t\t};\n\t\tmacroInfo.params = parseParams(match[2], offset+macroInfo.start);\n\t}\n\treturn macroInfo;\n};\n\nfunction mustBeAWidget(macro) {\n\tfor (var i = 0; i &lt; macro.params.length; i++) {\n\t\tif (macro.params[i].type === \&quot;macro\&quot;) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false\n};\n\n/**Given a macro object ({name:, params:, start: end:}), and the text where\n * it was parsed from, returns a new macro that maintains any syntactic\n * structuring.\n */\nfunction macroToString(macro, text, names, options) {\n\tif (mustBeAWidget(macro)) {\n\t\tvar attrs = [];\n\t\tfor (var i = 0; i &lt; macro.params.length; i++) {\n\t\t\tvar p = macro.params[i];\n\t\t\tvar val;\n\t\t\tif (p.newValue) {\n\t\t\t\tval = p.newValue;\n\t\t\t} else {\n\t\t\t\tval = utils.wrapAttributeValue(p.value);\n\t\t\t}\n\t\t\tattrs.push(\&quot; \&quot;+names[i]+\&quot;=\&quot;+val);\n\t\t}\n\t\treturn \&quot;&lt;$macrocall $name=\&quot;+utils.wrapAttributeValue(macro.name)+attrs.join('')+\&quot;/&gt;\&quot;;\n\t} else {\n\t\treturn macroToStringMacro(macro, text, options);\n\t}\n};\n\nfunction macroToStringMacro(macro, text, options) {\n\tvar builder = new Rebuilder(text, macro.start);\n\tfor (var i = 0; i &lt; macro.params.length; i++) {\n\t\tvar param = macro.params[i];\n\t\tif (param.newValue) {\n\t\t\tbuilder.add(param.newValue, param.start, param.end);\n\t\t}\n\t}\n\treturn builder.results(macro.end);\n};\n\n/** Returns -1 if param definitely isn't in macrocall.\n */\nfunction getParamIndexWithinMacrocall(parser, macroName, param, params, options) {\n\tvar index, i, anonsExist = false;\n\tfor (i = 0; i &lt; params.length; i++) {\n\t\tvar name = params[i].name;\n\t\tif (name === param) {\n\t\t\treturn i;\n\t\t}\n\t\tif (name === undefined) {\n\t\t\tanonsExist = true;\n\t\t}\n\t}\n\tif (!anonsExist) {\n\t\t// If no anonymous parameters are present, and we didn't find\n\t\t// it among the named ones, it must not be there.\n\t\treturn -1;\n\t}\n\tvar expectedIndex = indexOfParameterDef(parser, macroName, param, options);\n\t// We've got to skip over all the named parameter instances.\n\tif (expectedIndex &gt;= 0) {\n\t\tvar anonI = 0;\n\t\tfor (i = 0; i &lt; params.length; i++) {\n\t\t\tif (params[i].name === undefined) {\n\t\t\t\tif (anonI === expectedIndex) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t\tanonI++;\n\t\t\t} else {\n\t\t\t\tvar indexOfOther = indexOfParameterDef(parser, macroName, params[i].name, options);\n\t\t\t\tif (indexOfOther &lt; expectedIndex) {\n\t\t\t\t\tanonI++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn -1;\n};\n\n// Looks up the definition of a macro, and figures out what the expected index\n// is for the given parameter.\nfunction indexOfParameterDef(parser, macroName, paramName, options) {\n\tvar def = parser.context.getMacroDefinition(macroName);\n\tif (def === undefined) {\n\t\tthrow new CannotFindMacroDef();\n\t}\n\tvar params = def.params || [];\n\tfor (var i = 0; i &lt; params.length; i++) {\n\t\tif (params[i].name === paramName) {\n\t\t\treturn i;\n\t\t}\n\t}\n\treturn -1;\n};\n\nfunction getParamNames(parser, macroName, params, options) {\n\tvar used = Object.create(null);\n\tvar rtn = new Array(params.length);\n\tvar anonsExist = false;\n\tvar i;\n\tfor (i = 0; i &lt; params.length; i++) {\n\t\tvar name = params[i].name;\n\t\tif (name) {\n\t\t\trtn[i] = name;\n\t\t\tused[name] = true;\n\t\t} else {\n\t\t\tanonsExist = true;\n\t\t}\n\t}\n\tif (anonsExist) {\n\t\tvar def = parser.context.getMacroDefinition(macroName);\n\t\tif (def === undefined) {\n\t\t\t// If there are anonymous parameters, and we can't\n\t\t\t// find the definition, then we can't hope to create\n\t\t\t// a widget.\n\t\t\treturn undefined;\n\t\t}\n\t\tvar defParams = def.params || [];\n\t\tvar defPtr = 0;\n\t\tfor (i = 0; i &lt; params.length; i++) {\n\t\t\tif (rtn[i] === undefined) {\n\t\t\t\twhile(defPtr &lt; defParams.length &amp;&amp; used[defParams[defPtr].name]) {\n\t\t\t\t\tdefPtr++;\n\t\t\t\t}\n\t\t\t\tif (defPtr &gt;= defParams.length) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\trtn[i] = defParams[defPtr].name;\n\t\t\t\tused[defParams[defPtr].name] = true;\n\t\t\t}\n\t\t}\n\t}\n\treturn rtn;\n};\n\nfunction parseParams(paramString, pos) {\n\tvar params = [],\n\t\treParam = /\\s*(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\&quot;\&quot;\&quot;([\\s\\S]*?)\&quot;\&quot;\&quot;|\&quot;([^\&quot;]*)\&quot;|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\&quot;'\\s]+)))/mg,\n\t\tparamMatch = reParam.exec(paramString);\n\twhile(paramMatch) {\n\t\t// Process this parameter\n\t\tvar paramInfo = { };\n\t\t// We need to find the group match that isn't undefined.\n\t\tfor (var i = 2; i &lt;= 6; i++) {\n\t\t\tif (paramMatch[i] !== undefined) {\n\t\t\t\tparamInfo.value = paramMatch[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(paramMatch[1]) {\n\t\t\tparamInfo.name = paramMatch[1];\n\t\t}\n\t\t//paramInfo.start = pos;\n\t\tparamInfo.end = reParam.lastIndex + pos;\n\t\tparams.push(paramInfo);\n\t\t// Find the next match\n\t\tparamMatch = reParam.exec(paramString);\n\t}\n\treturn params;\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrocall.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrodef.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles pragma macro definitions. Except we only update placeholder macros\nthat we may have previously install.\n\n\\define relink-?() Tough title\n\n\\*/\n\nvar utils = require(\&quot;$:/plugins/flibbles/relink/js/utils\&quot;);\nvar VariableContext = utils.getContext('variable');\n\nexports.name = \&quot;macrodef\&quot;;\n\nexports.report = function(text, callback, options) {\n\tvar setParseTreeNode = this.parse(),\n\t\tm = this.match,\n\t\tname = m[1];\n\tthis.parser.context = new VariableContext(this.parser.context, setParseTreeNode[0]);\n\t// Parse set the pos pointer, but we don't want to skip the macro body.\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar endMatch = getBodyMatch(text, this.parser.pos, m[3]);\n\tif (endMatch) {\n\t\tvar value = endMatch[2],\n\t\t\thandler = utils.getType(getActiveType(name, m[2]) || 'wikitext');\n\t\tif (handler) {\n\t\t\tvar entry = handler.report(value, function(title, blurb) {\n\t\t\t\tvar macroStr = '\\\\define ' + name + '()';\n\t\t\t\tif (blurb) {\n\t\t\t\t\tmacroStr += ' ' + blurb;\n\t\t\t\t}\n\t\t\t\tcallback(title, macroStr);\n\t\t\t}, options);\n\t\t}\n\t\tthis.parser.pos = endMatch.index + endMatch[0].length;\n\t}\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar setParseTreeNode = this.parse(),\n\t\tentry,\n\t\tm = this.match,\n\t\tname = m[1],\n\t\tparams = m[2],\n\t\tmultiline = m[3];\n\tthis.parser.context = new VariableContext(this.parser.context, setParseTreeNode[0]);\n\t// Parse set the pos pointer, but we don't want to skip the macro body.\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar endMatch = getBodyMatch(text, this.parser.pos, multiline);\n\tif (endMatch) {\n\t\tvar value = endMatch[2],\n\t\t\ttype = getActiveType(name, params),\n\t\t\thandler = utils.getType(type || 'wikitext');\n\t\tif (handler) {\n\t\t\t// If this is an active relink placeholder, then let's remember it\n\t\t\tif (type &amp;&amp; options.placeholder) {\n\t\t\t\toptions.placeholder.registerExisting(name, value);\n\t\t\t}\n\t\t\t// Relink the contents\n\t\t\tentry = handler.relink(value, fromTitle, toTitle, options);\n\t\t\tif (entry &amp;&amp; entry.output) {\n\t\t\t\tentry.output = m[0] + endMatch[1] + entry.output + endMatch[0];\n\t\t\t}\n\t\t}\n\t\tthis.parser.pos = endMatch.index + endMatch[0].length;\n\t}\n\treturn entry;\n};\n\n// Return another match for the body, but tooled uniquely\n// m[1] = whitespace before body\n// m[2] = body\n// m.index + m[0].length -&gt; end of match\nfunction getBodyMatch(text, pos, isMultiline) {\n\tvar whitespace,\n\t\tvalueRegExp;\n\tif (isMultiline) {\n\t\tvalueRegExp = /\\r?\\n\\\\end[^\\S\\n\\r]*(?:\\r?\\n|$)/mg;\n\t\twhitespace = '';\n\t} else {\n\t\tvalueRegExp = /(?:\\r?\\n|$)/mg;\n\t\tvar newPos = $tw.utils.skipWhiteSpace(text, pos);\n\t\twhitespace = text.substring(pos, newPos);\n\t\tpos = newPos;\n\t}\n\tvalueRegExp.lastIndex = pos;\n\tvar match = valueRegExp.exec(text);\n\tif (match) {\n\t\tmatch[1] = whitespace;\n\t\tmatch[2] = text.substring(pos, match.index);\n\t}\n\treturn match;\n};\n\nfunction getActiveType(macroName, parameters) {\n\tvar placeholder = /^relink-(?:(\\w+)-)?\\d+$/.exec(macroName);\n\t// normal macro or special placeholder?\n\tif (placeholder &amp;&amp; parameters === '') {\n\t\treturn placeholder[1] || 'title';\n\t}\n\treturn undefined;\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrodef.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/prettylink.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement in wiki text inline rules, like,\n\n[[Introduction]]\n\n[[link description|TiddlerTitle]]\n\n\\*/\n\nvar utils = require(\&quot;./utils.js\&quot;);\n\nexports.name = \&quot;prettylink\&quot;;\n\nexports.report = function(text, callback, options) {\n\tvar text = this.match[1],\n\t\tlink = this.match[2] || text;\n\tif (!$tw.utils.isLinkExternal(link)) {\n\t\tcallback(link, '[[' + text + ']]');\n\t}\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar caption, m = this.match;\n\tif (m[2] === fromTitle) {\n\t\t// format is [[caption|MyTiddler]]\n\t\tcaption = m[1];\n\t} else if (m[2] !== undefined || m[1] !== fromTitle) {\n\t\t// format is [[MyTiddler]], and it doesn't match\n\t\treturn undefined;\n\t}\n\tvar entry = { output: utils.makePrettylink(this.parser, toTitle, caption) };\n\tif (entry.output === undefined) {\n\t\tentry.impossible = true;\n\t}\n\treturn entry;\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/prettylink.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/relink.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: wikirule\n\nThis defines the \\relink inline pragma used to locally declare\nrelink rules for macros.\n\nIt takes care of providing its own relink and report rules.\n\n\\*/\n\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\n\nexports.name = \&quot;relink\&quot;;\nexports.types = {pragma: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\tthis.matchRegExp = /^\\\\relink[^\\S\\n]+([^(\\s]+)([^\\r\\n]*)(\\r?\\n)?/mg;\n};\n\n/**This makes the widget that the macro library will later parse to determine\n * new macro relink state.\n *\n * It's a &lt;$set&gt; widget so it can appear BEFORE \\define pragma and not\n * prevent that pragma from being scooped up by importvariables.\n * (importvariables stops scooping as soon as it sees something besides $set) */\nexports.parse = function() {\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar macroName;\n\tvar macroParams = Object.create(null);\n\tvar error = undefined;\n\tvar rtn = [];\n\tvar self = this;\n\tthis.interpretSettings(function(macro, parameter, type) {\n\t\tmacroName = macro;\n\t\tif (type &amp;&amp; !utils.getType(type)) {\n\t\t\terror = language.getString(\&quot;Error/UnrecognizedType\&quot;,\n\t\t\t\t{variables: {type: type}, wiki: self.parser.wiki});\n\t\t}\n\t\tmacroParams[parameter] = type;\n\t});\n\t// If no macroname. Return nothing, this rule will be ignored by parsers\n\tif (macroName) {\n\t\tvar relink = Object.create(null);\n\t\trelink[macroName] = macroParams;\n\t\trtn.push({\n\t\t\ttype: \&quot;set\&quot;,\n\t\t\tattributes: {\n\t\t\t\tname: {type: \&quot;string\&quot;, value: \&quot;\&quot;}\n\t\t\t},\n\t\t\tchildren: [],\n\t\t\tisMacroDefinition: true,\n\t\t\trelink: relink});\n\t}\n\tif (error) {\n\t\trtn.push({\n\t\t\ttype: \&quot;element\&quot;, tag: \&quot;span\&quot;, attributes: {\n\t\t\t\t\&quot;class\&quot;: {\n\t\t\t\t\ttype: \&quot;string\&quot;,\n\t\t\t\t\tvalue: \&quot;tc-error tc-relink-error\&quot;\n\t\t\t\t}\n\t\t\t}, children: [\n\t\t\t\t{type: \&quot;text\&quot;, text: error}\n\t\t\t]});\n\t}\n\treturn rtn;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar parser = this.parser;\n\tvar currentTiddler = parser.context.widget.variables.currentTiddler.value;\n\tparser.pos = this.matchRegExp.lastIndex;\n\tthis.interpretSettings(function(macro, parameter, type) {\n\t\toptions.settings.addSetting(parser.wiki, macro, parameter, type, currentTiddler);\n\t});\n\t// Return nothing, because this rule is ignored by the parser\n\treturn undefined;\n};\n\nexports.interpretSettings = function(block) {\n\tvar paramString = this.match[2];\n\tif (paramString !== \&quot;\&quot;) {\n\t\tvar macro = this.match[1];\n\t\tvar reParam = /\\s*([A-Za-z0-9\\-_]+)(?:\\s*:\\s*([^\\s]+))?/mg;\n\t\tvar paramMatch = reParam.exec(paramString);\n\t\twhile (paramMatch) {\n\t\t\tvar parameter = paramMatch[1];\n\t\t\tvar type = paramMatch[2];\n\t\t\tblock(macro, parameter, type);\n\t\t\tparamMatch = reParam.exec(paramString);\n\t\t}\n\t}\n};\n&quot;,
&quot;module-type&quot;: &quot;wikirule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/relink.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/rules.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nParses and acknowledges any pragma rules a tiddler has.\n\n\\rules except html wikilink\n\n\\*/\n\nexports.name = \&quot;rules\&quot;;\n\n/**This is all we have to do. The rules rule doesn't parse. It just amends\n * the rules, which is exactly what I want it to do too.\n * It also takes care of moving the pos pointer forward.\n */\nexports.relink = function() {\n\tthis.parse();\n\treturn undefined;\n};\n\n// Same deal\nexports.report = exports.relink;\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/rules.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/syslink.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles sys links\n\n$:/sys/link\n\nbut not:\n\n~$:/sys/link\n\n\\*/\n\nvar utils = require(\&quot;./utils.js\&quot;);\n\nexports.name = \&quot;syslink\&quot;;\n\nexports.report = function(text, callback, options) {\n\tvar title = this.match[0];\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (title[0] !== \&quot;~\&quot;) {\n\t\tcallback(title, '~' + title);\n\t}\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar entry = undefined;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (this.match[0] === fromTitle &amp;&amp; this.match[0][0] !== \&quot;~\&quot;) {\n\t\tentry = {output: this.makeSyslink(toTitle, options)};\n\t\tif (entry.output === undefined) {\n\t\t\tentry.impossible = true;\n\t\t}\n\t}\n\treturn entry;\n};\n\nexports.makeSyslink = function(title, options) {\n\tvar match = title.match(this.matchRegExp);\n\tif (match &amp;&amp; match[0] === title &amp;&amp; title[0] !== \&quot;~\&quot;) {\n\t\treturn title;\n\t} else {\n\t\treturn utils.makePrettylink(this.parser, title);\n\t}\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/syslink.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/transclude.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement of transclusions in wiki text like,\n\n{{RenamedTiddler}}\n{{RenamedTiddler||TemplateTitle}}\n\nThis renames both the tiddler and the template field.\n\n\\*/\n\nvar refHandler = require(\&quot;$:/plugins/flibbles/relink/js/fieldtypes/reference\&quot;);\nvar utils = require(\&quot;./utils.js\&quot;);\n\nexports.name = ['transcludeinline', 'transcludeblock'];\n\nexports.report = function(text, callback, options) {\n\tvar m = this.match,\n\t\trefString = $tw.utils.trim(m[1]),\n\t\tref = parseTextReference(refString);\n\t\ttemplate = $tw.utils.trim(m[2]);\n\tif (ref.title) {\n\t\tvar suffix = '';\n\t\tif (ref.index) {\n\t\t\tsuffix = '##' + ref.index;\n\t\t} else if (ref.field) {\n\t\t\tsuffix = '!!' + ref.field;\n\t\t}\n\t\tif (template) {\n\t\t\tsuffix = suffix + '||' + template;\n\t\t}\n\t\tcallback(ref.title, '{{' + suffix + '}}')\n\t}\n\tif (template) {\n\t\tcallback(template, '{{' + refString + '||}}');\n\t}\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar m = this.match,\n\t\treference = parseTextReference(m[1]),\n\t\ttemplate = m[2],\n\t\tentry = undefined,\n\t\tmodified = false;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif ($tw.utils.trim(reference.title) === fromTitle) {\n\t\t// preserve user's whitespace\n\t\treference.title = reference.title.replace(fromTitle, toTitle);\n\t\tmodified = true;\n\t}\n\tif ($tw.utils.trim(template) === fromTitle) {\n\t\ttemplate = template.replace(fromTitle, toTitle);\n\t\tmodified = true;\n\t}\n\tif (modified) {\n\t\tvar output = this.makeTransclude(this.parser, reference, template);\n\t\tif (output) {\n\t\t\t// Adding any newline that might have existed is\n\t\t\t// what allows this relink method to work for both\n\t\t\t// the block and inline filter wikitext rule.\n\t\t\tentry = {output: output + utils.getEndingNewline(m[0])};\n\t\t} else {\n\t\t\tentry = {impossible: true}\n\t\t}\n\t}\n\treturn entry;\n};\n\n// I have my own because the core one is deficient for my needs.\nfunction parseTextReference(textRef) {\n\t// Separate out the title, field name and/or JSON indices\n\tvar reTextRef = /^([\\w\\W]*?)(?:!!(\\S[\\w\\W]*)|##(\\S[\\w\\W]*))?$/g;\n\t\tmatch = reTextRef.exec(textRef),\n\t\tresult = {};\n\tif(match) {\n\t\t// Return the parts\n\t\tresult.title = match[1];\n\t\tresult.field = match[2];\n\t\tresult.index = match[3];\n\t} else {\n\t\t// If we couldn't parse it\n\t\tresult.title = textRef\n\t}\n\treturn result;\n};\n\n/** This converts a reference and a template into a string representation\n * of a transclude.\n */\nexports.makeTransclude = function(parser, reference, template) {\n\tvar rtn;\n\tif (!canBePrettyTemplate(template)) {\n\t\tvar widget = utils.makeWidget(parser, '$transclude', {\n\t\t\ttiddler: $tw.utils.trim(template),\n\t\t\tfield: reference.field,\n\t\t\tindex: reference.index});\n\t\tif (reference.title &amp;&amp; widget !== undefined) {\n\t\t\trtn = utils.makeWidget(parser, '$tiddler', {tiddler: $tw.utils.trim(reference.title)}, widget);\n\t\t} else {\n\t\t\trtn = widget;\n\t\t}\n\t} else if (!canBePrettyTitle(reference.title)) {\n\t\t// This block and the next account for the 1%...\n\t\tvar reducedRef = {field: reference.field, index: reference.index};\n\t\trtn = utils.makeWidget(parser, '$tiddler', {tiddler: $tw.utils.trim(reference.title)}, prettyTransclude(reducedRef, template));\n\t} else {\n\t\t// This block takes care of 99% of all cases\n\t\trtn = prettyTransclude(reference, template);\n\t}\n\treturn rtn;\n};\n\nfunction canBePrettyTitle(value) {\n\treturn refHandler.canBePretty(value) &amp;&amp; canBePrettyTemplate(value);\n};\n\nfunction canBePrettyTemplate(value) {\n\treturn !value || (value.indexOf('}') &lt; 0 &amp;&amp; value.indexOf('{') &lt; 0 &amp;&amp; value.indexOf('|') &lt; 0);\n};\n\nfunction prettyTransclude(textReference, template) {\n\tif (typeof textReference !== \&quot;string\&quot;) {\n\t\ttextReference = refHandler.toString(textReference);\n\t}\n\tif (!textReference) {\n\t\ttextReference = '';\n\t}\n\tif (template !== undefined) {\n\t\treturn \&quot;{{\&quot;+textReference+\&quot;||\&quot;+template+\&quot;}}\&quot;;\n\t} else {\n\t\treturn \&quot;{{\&quot;+textReference+\&quot;}}\&quot;;\n\t}\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/transclude.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/utils.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: library\n\nUtility methods for the wikitext relink rules.\n\n\\*/\n\nexports.makeWidget = function(parser, tag, attributes, body) {\n\tif (!parser.context.allowWidgets()) {\n\t\treturn undefined;\n\t}\n\tvar string = '&lt;' + tag;\n\tfor (var attr in attributes) {\n\t\tvar value = attributes[attr];\n\t\tif (value !== undefined) {\n\t\t\tvar quoted = exports.wrapAttributeValue(value);\n\t\t\tif (!quoted) {\n\t\t\t\tif (!parser.options.placeholder) {\n\t\t\t\t\t// It's not possible to make this widget\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tvar category = getPlaceholderCategory(parser.context, tag, attr);\n\t\t\t\tquoted = '&lt;&lt;' + parser.placeholder.getPlaceholderFor(value, category) + '&gt;&gt;';\n\t\t\t}\n\t\t\tstring += ' ' + attr + '=' + quoted;\n\t\t}\n\t}\n\tif (body !== undefined) {\n\t\tstring += '&gt;' + body + '&lt;/' + tag + '&gt;';\n\t} else {\n\t\tstring += '/&gt;';\n\t}\n\treturn string;\n};\n\nfunction getPlaceholderCategory(context, tag, attribute) {\n\tvar element = context.getAttribute(tag);\n\tvar rule = element &amp;&amp; element[attribute];\n\t// titles go to relink-\\d\n\t// plaintext goes to relink-plaintext-\\d\n\t// because titles are way more common, also legacy\n\tif (rule === undefined) {\n\t\treturn 'plaintext';\n\t} else {\n\t\trule = rule.fields.text;\n\t\tif (rule === 'title') {\n\t\t\trule = undefined;\n\t\t}\n\t\treturn rule;\n\t}\n};\n\nexports.makePrettylink = function(parser, title, caption) {\n\tvar output;\n\tif (parser.context.allowPrettylinks() &amp;&amp; canBePrettylink(title, caption)) {\n\t\tif (caption !== undefined) {\n\t\t\toutput = \&quot;[[\&quot; + caption + \&quot;|\&quot; + title + \&quot;]]\&quot;;\n\t\t} else {\n\t\t\toutput = \&quot;[[\&quot; + title + \&quot;]]\&quot;;\n\t\t}\n\t} else if (caption !== undefined) {\n\t\tvar safeCaption = sanitizeCaption(parser, caption);\n\t\tif (safeCaption !== undefined) {\n\t\t\toutput = exports.makeWidget(parser, '$link', {to: title}, safeCaption);\n\t\t}\n\t} else if (exports.shorthandPrettylinksSupported(parser.wiki)) {\n\t\toutput = exports.makeWidget(parser, '$link', {to: title});\n\t} else if (parser.context.allowWidgets() &amp;&amp; parser.placeholder) {\n\t\t// If we don't have a caption, we must resort to\n\t\t// placeholders anyway to prevent link/caption desync\n\t\t// from later relinks.\n\t\t// It doesn't matter whether the tiddler is quotable.\n\t\tvar ph = parser.placeholder.getPlaceholderFor(title);\n\t\toutput = \&quot;&lt;$link to=&lt;&lt;\&quot;+ph+\&quot;&gt;&gt;&gt;&lt;$text text=&lt;&lt;\&quot;+ph+\&quot;&gt;&gt;/&gt;&lt;/$link&gt;\&quot;;\n\t}\n\treturn output;\n};\n\n/**In version 5.1.20, Tiddlywiki made it so &lt;$link to\&quot;something\&quot; /&gt; would\n * use \&quot;something\&quot; as a caption. This is preferable. However, Relink works\n * going back to 5.1.14, so we need to have different handling for both\n * cases.\n */\nvar _supported;\nexports.shorthandPrettylinksSupported = function(wiki) {\n\tif (_supported === undefined) {\n\t\tvar test = wiki.renderText(\&quot;text/plain\&quot;, \&quot;text/vnd.tiddlywiki\&quot;, \&quot;&lt;$link to=test/&gt;\&quot;);\n\t\t_supported = (test === \&quot;test\&quot;);\n\t}\n\treturn _supported;\n};\n\n/**Return true if value can be used inside a prettylink.\n */\nfunction canBePrettylink(value, customCaption) {\n\treturn value.indexOf(\&quot;]]\&quot;) &lt; 0 &amp;&amp; value[value.length-1] !== ']' &amp;&amp; (customCaption !== undefined || value.indexOf('|') &lt; 0);\n};\n\nfunction sanitizeCaption(parser, caption) {\n\tvar plaintext = parser.wiki.renderText(\&quot;text/plain\&quot;, \&quot;text/vnd.tiddlywiki\&quot;, caption);\n\tif (plaintext === caption &amp;&amp; caption.indexOf(\&quot;&lt;/$link&gt;\&quot;) &lt;= 0) {\n\t\treturn caption;\n\t} else {\n\t\treturn exports.makeWidget(parser, '$text', {text: caption});\n\t}\n};\n\n/**Finds an appropriate quote mark for a given value.\n *\n *Tiddlywiki doesn't have escape characters for attribute values. Instead,\n * we just have to find the type of quotes that'll work for the given title.\n * There exist titles that simply can't be quoted.\n * If it can stick with the preference, it will.\n *\n * return: Returns the wrapped value, or undefined if it's impossible to wrap\n */\nexports.wrapAttributeValue = function(value, preference) {\n\tvar whitelist = [\&quot;\&quot;, \&quot;'\&quot;, '\&quot;', '\&quot;\&quot;\&quot;'];\n\tvar choices = {\n\t\t\&quot;\&quot;: function(v) {return !/([\\/\\s&lt;&gt;\&quot;'=])/.test(v) &amp;&amp; v.length &gt; 0; },\n\t\t\&quot;'\&quot;: function(v) {return v.indexOf(\&quot;'\&quot;) &lt; 0; },\n\t\t'\&quot;': function(v) {return v.indexOf('\&quot;') &lt; 0; },\n\t\t'\&quot;\&quot;\&quot;': function(v) {return v.indexOf('\&quot;\&quot;\&quot;') &lt; 0 &amp;&amp; v[v.length-1] != '\&quot;';}\n\t};\n\tif (choices[preference] &amp;&amp; choices[preference](value)) {\n\t\treturn wrap(value, preference);\n\t}\n\tfor (var i = 0; i &lt; whitelist.length; i++) {\n\t\tvar quote = whitelist[i];\n\t\tif (choices[quote](value)) {\n\t\t\treturn wrap(value, quote);\n\t\t}\n\t}\n\t// No quotes will work on this\n\treturn undefined;\n};\n\n/**Like wrapAttribute value, except for macro parameters, not attributes.\n *\n * These are more permissive. Allows brackets,\n * and slashes and '&lt;' in unquoted values.\n */\nexports.wrapParameterValue = function(value, preference) {\n\tvar whitelist = [\&quot;\&quot;, \&quot;'\&quot;, '\&quot;', '[[', '\&quot;\&quot;\&quot;'];\n\tvar choices = {\n\t\t\&quot;\&quot;: function(v) {return !/([\\s&gt;\&quot;'=])/.test(v); },\n\t\t\&quot;'\&quot;: function(v) {return v.indexOf(\&quot;'\&quot;) &lt; 0; },\n\t\t'\&quot;': function(v) {return v.indexOf('\&quot;') &lt; 0; },\n\t\t\&quot;[[\&quot;: canBePrettyOperand,\n\t\t'\&quot;\&quot;\&quot;': function(v) {return v.indexOf('\&quot;\&quot;\&quot;') &lt; 0 &amp;&amp; v[v.length-1] != '\&quot;';}\n\t};\n\tif (choices[preference] &amp;&amp; choices[preference](value)) {\n\t\treturn wrap(value, preference);\n\t}\n\tfor (var i = 0; i &lt; whitelist.length; i++) {\n\t\tvar quote = whitelist[i];\n\t\tif (choices[quote](value)) {\n\t\t\treturn wrap(value, quote);\n\t\t}\n\t}\n\t// No quotes will work on this\n\treturn undefined;\n};\n\nfunction wrap(value, wrapper) {\n\tvar wrappers = {\n\t\t\&quot;\&quot;: function(v) {return v; },\n\t\t\&quot;'\&quot;: function(v) {return \&quot;'\&quot;+v+\&quot;'\&quot;; },\n\t\t'\&quot;': function(v) {return '\&quot;'+v+'\&quot;'; },\n\t\t'\&quot;\&quot;\&quot;': function(v) {return '\&quot;\&quot;\&quot;'+v+'\&quot;\&quot;\&quot;'; },\n\t\t\&quot;[[\&quot;: function(v) {return \&quot;[[\&quot;+v+\&quot;]]\&quot;; }\n\t};\n\tvar chosen = wrappers[wrapper];\n\tif (chosen) {\n\t\treturn chosen(value);\n\t} else {\n\t\treturn undefined;\n\t}\n};\n\nfunction canBePrettyOperand(value) {\n\treturn value.indexOf(']') &lt; 0;\n};\n\n/**Given some text, and a param or attribute within that text, this returns\n * what type of quotation that attribute is using.\n *\n * param: An object in the form {end:, ...}\n */\nexports.determineQuote = function(text, param) {\n\tvar pos = param.end-1;\n\tif (text[pos] === \&quot;'\&quot;) {\n\t\treturn \&quot;'\&quot;;\n\t}\n\tif (text[pos] === '\&quot;') {\n\t\tif (text.substr(pos-2, 3) === '\&quot;\&quot;\&quot;') {\n\t\t\treturn '\&quot;\&quot;\&quot;';\n\t\t} else {\n\t\t\treturn '\&quot;';\n\t\t}\n\t}\n\tif (text.substr(pos-1,2) === ']]' &amp;&amp; text.substr((pos-param.value.length)-3, 2) === '[[') {\n\t\treturn \&quot;[[\&quot;;\n\t}\n\treturn '';\n};\n\n// Finds the newline at the end of a string and returns it. Empty string if\n// none exists.\nexports.getEndingNewline = function(string) {\n\tvar l = string.length;\n\tif (string[l-1] === '\\n') {\n\t\treturn (string[l-2] === '\\r') ? \&quot;\\r\\n\&quot; : \&quot;\\n\&quot;;\n\t}\n\treturn \&quot;\&quot;;\n};\n&quot;,
&quot;module-type&quot;: &quot;library&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/utils.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/wikilink.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkwikitextrule\n\nHandles CamelCase links\n\nWikiLink\n\nbut not:\n\n~WikiLink\n\n\\*/\n\nvar utils = require(\&quot;./utils.js\&quot;);\n\nexports.name = \&quot;wikilink\&quot;;\n\nexports.report = function(text, callback, options) {\n\tvar title = this.match[0],\n\t\tunlink = $tw.config.textPrimitives.unWikiLink;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (title[0] !== unlink) {\n\t\tcallback(title, unlink + title);\n\t}\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar entry = undefined,\n\t\ttitle = this.match[0];\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (title === fromTitle &amp;&amp; title[0] !== $tw.config.textPrimitives.unWikiLink) {\n\t\tentry = { output: this.makeWikilink(toTitle, options) };\n\t\tif (entry.output === undefined) {\n\t\t\tentry.impossible = true;\n\t\t}\n\t}\n\treturn entry;\n};\n\nexports.makeWikilink = function(title, options) {\n\tif (title.match(this.matchRegExp) &amp;&amp; title[0] !== $tw.config.textPrimitives.unWikiLink) {\n\t\treturn title;\n\t} else {\n\t\treturn utils.makePrettylink(this.parser, title);\n\t}\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkwikitextrule&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/wikilink.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/contexts/context.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nBase class for relink contexts.\n\n\\*/\n\nfunction Context() {\n};\n\nexports.context = Context;\n\n// This class does no special handling of fields, operators, or attributes.\n// we pass it along to the parent.\nContext.prototype.getFields = function() {\n\treturn this.parent.getFields();\n};\n\nContext.prototype.getOperator = function(name, index) {\n\treturn this.parent.getOperator(name, index);\n};\n\nContext.prototype.getOperators = function() {\n\treturn this.parent.getOperators();\n};\n\nContext.prototype.getAttribute = function(elementName) {\n\treturn this.parent.getAttribute(elementName);\n};\n\nContext.prototype.getAttributes = function() {\n\treturn this.parent.getAttributes();\n};\n\nContext.prototype.getMacro = function(macroName) {\n\treturn this.parent.getMacro(macroName);\n};\n\nContext.prototype.getMacros = function() {\n\treturn this.parent.getMacros();\n};\n\nContext.prototype.allowPrettylinks = function() {\n\treturn this.parent.allowPrettylinks();\n};\n\nContext.prototype.allowWidgets = function() {\n\treturn this.parent.allowWidgets();\n};\n\nContext.prototype.hasImports = function(value) {\n\treturn this.parent.hasImports(value);\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkcontext&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/contexts/context.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/contexts/import.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nThis handles the fetching and distribution of relink settings.\n\n\\*/\n\nvar WidgetContext = require('./widget').widget;\n\nfunction ImportContext(wiki, parent, filter) {\n\tthis.parent = parent;\n\tthis.wiki = wiki;\n\tvar importWidget = createImportWidget(filter, this.wiki, this.parent.widget);\n\tthis._compileList(importWidget.tiddlerList);\n\t// This only works if only one filter is imported\n\tthis.widget = this.getBottom(importWidget);\n\t// Trickle this up, so that any containing tiddlercontext knows that this\n\t// tiddler does some importing, and must be checked regularly.\n\tparent.hasImports(true);\n};\n\nexports.import = ImportContext;\n\nImportContext.prototype = new WidgetContext();\n\nImportContext.prototype.changed = function(changes) {\n\treturn this.widget &amp;&amp; this.widget.refresh(changes)\n};\n\nfunction createImportWidget(filter, wiki, parent) {\n\tvar widget = wiki.makeWidget( { tree: [{\n\t\ttype: \&quot;importvariables\&quot;,\n\t\tattributes: {\n\t\t\t\&quot;filter\&quot;: {\n\t\t\t\ttype: \&quot;string\&quot;,\n\t\t\t\tvalue: filter\n\t\t\t}\n\t\t}\n\t}] }, { parentWidget: parent} );\n\tif (parent) {\n\t\tparent.children.push(widget);\n\t}\n\twidget.execute();\n\twidget.renderChildren();\n\tvar importWidget = widget.children[0];\n\treturn importWidget;\n};\n\nImportContext.prototype._compileList = function(titleList) {\n\tfor (var i = 0; i &lt; titleList.length; i++) {\n\t\tvar parser = this.wiki.parseTiddler(titleList[i]);\n\t\tif (parser) {\n\t\t\tvar parseTreeNode = parser.tree[0];\n\t\t\twhile (parseTreeNode &amp;&amp; parseTreeNode.type === \&quot;set\&quot;) {\n\t\t\t\tif (parseTreeNode.relink) {\n\t\t\t\t\tfor (var macroName in parseTreeNode.relink) {\n\t\t\t\t\t\tvar parameters = parseTreeNode.relink[macroName];\n\t\t\t\t\t\tfor (paramName in parameters) {\n\t\t\t\t\t\t\tthis.addSetting(this.wiki, macroName, paramName, parameters[paramName], titleList[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tparseTreeNode = parseTreeNode.children &amp;&amp; parseTreeNode.children[0];\n\t\t\t}\n\t\t}\n\t}\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkcontext&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/contexts/import.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/contexts/tiddler.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nContext for a tiddler. Defines nothing but makes an entry point to test if\na tiddler must be refreshed.\n\n\\*/\n\nvar WidgetContext = require('./widget.js').widget;\n\nfunction TiddlerContext(wiki, parentContext, title) {\n\tthis.title = title;\n\tthis.parent = parentContext;\n\tvar globalWidget = parentContext &amp;&amp; parentContext.widget;\n\tvar parentWidget = wiki.makeWidget(null, {parentWidget: globalWidget});\n\tparentWidget.setVariable('currentTiddler', title);\n\tthis.widget = wiki.makeWidget(null, {parentWidget: parentWidget});\n};\n\nexports.tiddler = TiddlerContext;\n\nTiddlerContext.prototype = new WidgetContext();\n\nTiddlerContext.prototype.changed = function(changes) {\n\treturn this.widget &amp;&amp; this.widget.refresh(changes);\n};\n\n// By default, a tiddler context does not use imports, unless an import\n// statement is later discovered somewhere in the fields.\nTiddlerContext.prototype.hasImports = function(value) {\n\treturn this._hasImports || (this._hasImports = value);\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkcontext&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/contexts/tiddler.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/contexts/variable.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nThis handles the context for variables. Either from $set, $vars, or \\define\n\n\\*/\n\nvar WidgetContext = require('./widget').widget;\n\nfunction VariableContext(parent, setParseTreeNode) {\n\tthis.parent = parent;\n\t// Now create a new widget and attach it.\n\tvar attachPoint = parent.widget;\n\tvar setWidget = attachPoint.makeChildWidget(setParseTreeNode);\n\tattachPoint.children.push(setWidget);\n\tsetWidget.computeAttributes();\n\tsetWidget.execute();\n\t// point our widget to bottom, where any other contexts would attach to\n\tthis.widget = this.getBottom(setWidget);\n};\n\nexports.variable = VariableContext;\n\nVariableContext.prototype = new WidgetContext();\n&quot;,
&quot;module-type&quot;: &quot;relinkcontext&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/contexts/variable.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/contexts/whitelist.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nThis top-level context manages settings inside the whitelist. It never has\na parent.\n\n\\*/\n\nvar utils = require('../utils');\nvar Context = require('./context').context;\n\nvar prefix = \&quot;$:/config/flibbles/relink/\&quot;;\n\nfunction WhitelistContext(wiki) {\n\tbuild(this, wiki);\n};\n\nexports.whitelist = WhitelistContext;\n\nWhitelistContext.prototype = new Context();\n\n/**Hot directories are directories for which if anything changes inside them,\n * then Relink must completely rebuild its index.\n * By default, this includes the whitelist settings, but relink-titles also\n * includes its rules disabling directory.\n * This is the FIRST solution I came up with to this problem. If you're\n * looking at this, please make a github issue so I have a chance to understand\n * your needs. This is currently a HACK solution.\n */\nWhitelistContext.hotDirectories = [prefix];\n\nWhitelistContext.prototype.getAttribute = function(elementName) {\n\treturn this.attributes[elementName];\n};\n\nWhitelistContext.prototype.getAttributes = function() {\n\treturn flatten(this.attributes);\n};\n\nWhitelistContext.prototype.getFields = function() {\n\treturn this.fields;\n};\n\nWhitelistContext.prototype.getOperator = function(operatorName, operandIndex) {\n\tvar op = this.operators[operatorName];\n\treturn op &amp;&amp; op[operandIndex || 1];\n};\n\nWhitelistContext.prototype.getOperators = function() {\n\tvar signatures = Object.create(null);\n\tfor (var op in this.operators) {\n\t\tvar operandSet = this.operators[op];\n\t\tfor (var index in operandSet) {\n\t\t\tvar entry = operandSet[index];\n\t\t\tsignatures[entry.key] = entry;\n\t\t}\n\t}\n\treturn signatures;\n};\n\nWhitelistContext.prototype.getMacro = function(macroName) {\n\treturn this.macros[macroName];\n};\n\nWhitelistContext.prototype.getMacros = function() {\n\treturn flatten(this.macros);\n};\n\nWhitelistContext.prototype.changed = function(changedTiddlers) {\n\tfor (var i = 0; i &lt; WhitelistContext.hotDirectories.length; i++) {\n\t\tvar dir = WhitelistContext.hotDirectories[i];\n\t\tfor (var title in changedTiddlers) {\n\t\t\tif (title.substr(0, dir.length) === dir) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\nWhitelistContext.prototype.hasImports = function(value) {\n\t// We don't care if imports are used. This is the global level.\n\treturn false;\n};\n\n/**Factories define methods that create settings given config tiddlers.\n * for factory method 'example', it will be called once for each:\n * \&quot;$:/config/flibbles/relink/example/...\&quot; tiddler that exists.\n * the argument \&quot;key\&quot; will be set to the contents of \&quot;...\&quot;\n *\n * The reason I build relink settings in this convoluted way is to minimize\n * the number of times tiddlywiki has to run through EVERY tiddler looking\n * for relink config tiddlers.\n *\n * Also, by exporting \&quot;factories\&quot;, anyone who extends relink can patch in\n * their own factory methods to create settings that are generated exactly\n * once per rename.\n */\nvar factories = {\n\tattributes: function(attributes, data, key) {\n\t\tvar elem = root(key);\n\t\tvar attr = key.substr(elem.length+1);\n\t\tattributes[elem] = attributes[elem] || Object.create(null);\n\t\tattributes[elem][attr] = data;\n\t},\n\tfields: function(fields, data, name) {\n\t\tfields[name] = data;\n\t},\n\tmacros: function(macros, data, key) {\n\t\t// We take the last index, not the first, because macro\n\t\t// parameters can't have slashes, but macroNames can.\n\t\tvar name = dir(key);\n\t\tvar arg = key.substr(name.length+1);\n\t\tmacros[name] = macros[name] || Object.create(null);\n\t\tmacros[name][arg] = data;\n\t},\n\toperators: function(operators, data, key) {\n\t\t// We take the last index, not the first, because the operator\n\t\t// may have a slash to indicate parameter number\n\t\tvar pair = key.split('/');\n\t\tvar name = pair[0];\n\t\tdata.key = key;\n\t\toperators[name] = operators[name] || Object.create(null);\n\t\toperators[name][pair[1] || 1] = data;\n\t}\n};\n\nfunction build(settings, wiki) {\n\tfor (var name in factories) {\n\t\tsettings[name] = Object.create(null);\n\t}\n\twiki.eachShadowPlusTiddlers(function(tiddler, title) {\n\t\tif (title.substr(0, prefix.length) === prefix) {\n\t\t\tvar remainder = title.substr(prefix.length);\n\t\t\tvar category = root(remainder);\n\t\t\tvar factory = factories[category];\n\t\t\tif (factory) {\n\t\t\t\tvar name = remainder.substr(category.length+1);\n\t\t\t\tvar data = utils.getType(tiddler.fields.text.trim());\n\t\t\t\tif (data) {\n\t\t\t\t\tdata.source = title;\n\t\t\t\t\t// Secret feature. You can access a config tiddler's\n\t\t\t\t\t// fields from inside the fieldtype handler. Cool\n\t\t\t\t\t// tricks can be done with this.\n\t\t\t\t\tdata.fields = tiddler.fields;\n\t\t\t\t\tfactory(settings[category], data, name);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n};\n\n/* Returns first bit of a path. path/to/tiddler -&gt; path\n */\nfunction root(string) {\n\tvar index = string.indexOf('/');\n\tif (index &gt;= 0) {\n\t\treturn string.substr(0, index);\n\t}\n};\n\n/* Returns all but the last bit of a path. path/to/tiddler -&gt; path/to\n */\nfunction dir(string) {\n\tvar index = string.lastIndexOf('/');\n\tif (index &gt;= 0) {\n\t\treturn string.substr(0, index);\n\t}\n}\n\n/* Turns {dir: {file1: 'value1', file2: 'value2'}}\n * into {dir/file1: 'value1', dir/file2: 'value2'}\n */\nfunction flatten(set) {\n\tvar signatures = Object.create(null);\n\tfor (var outerName in set) {\n\t\tvar setItem = set[outerName];\n\t\tfor (var innerName in setItem) {\n\t\t\tsignatures[outerName + \&quot;/\&quot; + innerName] = setItem[innerName];\n\t\t}\n\t}\n\treturn signatures;\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkcontext&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/contexts/whitelist.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/contexts/widget.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nThis is a virtual subclass of context for contexts that exist within widgets\nof a specific tiddler.\n\nAll widget contexts must have a widget member.\n\n\\*/\n\nvar Context = require('./context.js').context;\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nfunction WidgetContext() {};\n\nexports.widget = WidgetContext;\n\nWidgetContext.prototype = new Context();\n\nWidgetContext.prototype.getMacroDefinition = function(variableName) {\n\t// widget.variables is prototyped, so it looks up into all its parents too\n\treturn this.widget.variables[variableName] || $tw.macros[variableName];\n};\n\nWidgetContext.prototype.addSetting = function(wiki, macroName, parameter, type, sourceTitle) {\n\tthis.macros = this.macros || Object.create(null);\n\tvar macro = this.macros[macroName];\n\ttype = type || utils.getDefaultType(wiki);\n\tif (macro === undefined) {\n\t\tmacro = this.macros[macroName] = Object.create(null);\n\t}\n\tvar handler = utils.getType(type);\n\tif (handler) {\n\t\thandler.source = sourceTitle;\n\t\t// We attach the fields of the defining tiddler for the benefit\n\t\t// of any 3rd party field types that want access to them.\n\t\tvar tiddler = wiki.getTiddler(sourceTitle);\n\t\thandler.fields = tiddler.fields;\n\t\tmacro[parameter] = handler;\n\t}\n};\n\nWidgetContext.prototype.getMacros = function() {\n\tvar signatures = this.parent.getMacros();\n\tif (this.macros) {\n\t\tfor (var macroName in this.macros) {\n\t\t\tvar macro = this.macros[macroName];\n\t\t\tfor (var param in macro) {\n\t\t\t\tsignatures[macroName + \&quot;/\&quot; + param] = macro[param];\n\t\t\t}\n\t\t}\n\t}\n\treturn signatures;\n};\n\n/**This does strange handling because it's possible for a macro to have\n * its individual parameters whitelisted in separate places.\n * Don't know WHY someone would do this, but it can happen.\n */\nWidgetContext.prototype.getMacro = function(macroName) {\n\tvar theseSettings = this.macros &amp;&amp; this.macros[macroName];\n\tvar parentSettings;\n\tif (this.parent) {\n\t\tparentSettings = this.parent.getMacro(macroName);\n\t}\n\tif (theseSettings &amp;&amp; parentSettings) {\n\t\t// gotta merge them without changing either. This is expensive,\n\t\t// but it'll happen rarely.\n\t\tvar rtnSettings = $tw.utils.extend(Object.create(null), theseSettings, parentSettings);\n\t\treturn rtnSettings;\n\t}\n\treturn theseSettings || parentSettings;\n};\n\n/**Returns the deepest descendant of the given widget.\n */\nWidgetContext.prototype.getBottom = function(widget) {\n\twhile (widget.children.length &gt; 0) {\n\t\twidget = widget.children[0];\n\t}\n\treturn widget;\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkcontext&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/contexts/widget.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/contexts/wikitext.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nContext for wikitext. It can contain rules about what's allowed in this\ncurrent layer of wikitext.\n\n\\*/\n\nvar WidgetContext = require('./widget.js').widget;\n\nfunction WikitextContext(parentContext) {\n\tthis.parent = parentContext;\n\tthis.widget = parentContext.widget;\n};\n\nexports.wikitext = WikitextContext;\n\nWikitextContext.prototype = new WidgetContext();\n\n// Unless this specific context has rules about it, widgets and prettyLInks are allowed.\nWikitextContext.prototype.allowWidgets = enabled;\nWikitextContext.prototype.allowPrettylinks = enabled;\n\nfunction enabled() { return true; };\n&quot;,
&quot;module-type&quot;: &quot;relinkcontext&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/contexts/wikitext.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/utils/backupIndexer.js&quot;: {
&quot;text&quot;: &quot;/*\\\nmodule-type: library\n\nThis is a backup indexer Relink uses if the real one is disabled, or we're\n&lt;V5.1.23. It's not nearly as good, but it caches some.\n\n\\*/\n\n\&quot;use strict\&quot;;\n\nvar utils = require(\&quot;$:/plugins/flibbles/relink/js/utils.js\&quot;);\nvar TiddlerContext = utils.getContext('tiddler');\n\n// This is the indexer we use if the current wiki doesn't support indexers.\nfunction BackupIndexer(wiki) {\n\tthis.wiki = wiki;\n};\n\nmodule.exports = BackupIndexer;\n\nBackupIndexer.prototype.lookup = function(title) {\n\treturn getCache(this.wiki).lookup[title];\n};\n\nBackupIndexer.prototype.reverseLookup = function(title) {\n\tvar index = getCache(this.wiki);\n\tif (!index.reverse[title]) {\n\t\tvar record = Object.create(null);\n\t\tfor (var other in index.lookup) {\n\t\t\tif (index.lookup[other][title]) {\n\t\t\t\trecord[other] = index.lookup[other][title];\n\t\t\t}\n\t\t}\n\t\tindex.reverse[title] = record;\n\t}\n\treturn index.reverse[title];\n};\n\n/* The backup indexer doesn't bother caching relink reports. It would always\n * be called after a draft tiddler had changed, which would defeat the point.\n */\nBackupIndexer.prototype.relinkLookup = function(fromTitle, toTitle, options) {\n\tvar cache = getCache(this.wiki);\n\tif (cache.lastRelinkFrom === fromTitle &amp;&amp; cache.lastRelinkTo === toTitle) {\n\t\toptions.cache = cache.lastRelinkCache;\n\t\treturn cache.lastRelink;\n\t}\n\tcache.lastRelink = utils.getRelinkResults(this.wiki, fromTitle, toTitle, cache.context, undefined, options);\n\tcache.lastRelinkFrom = fromTitle;\n\tcache.lastRelinkTo = toTitle;\n\tcache.lastRelinkCache = options.cache;\n\treturn cache.lastRelink;\n};\n\nfunction getCache(wiki) {\n\treturn wiki.getGlobalCache('relink', function() {\n\t\tvar tiddlerList = wiki.getRelinkableTitles();\n\t\tvar index = Object.create(null);\n\t\tvar wikiContext = utils.getWikiContext(wiki);\n\t\tfor (var i = 0; i &lt; tiddlerList.length; i++) {\n\t\t\tvar title = tiddlerList[i];\n\t\t\tvar tiddler = wiki.getTiddler(title);\n\t\t\tif (tiddler &amp;&amp; !tiddler.fields[\&quot;plugin-type\&quot;]) {\n\t\t\t\tvar context = new TiddlerContext(wiki, wikiContext, title);\n\t\t\t\tindex[title] = utils.getTiddlerRelinkReferences(wiki, title, context);\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tlookup: index,\n\t\t\treverse: Object.create(null),\n\t\t\tcontext: wikiContext};\n\t});\n};\n&quot;,
&quot;module-type&quot;: &quot;library&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/utils/backupIndexer.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/utils/entry.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nEntries are deprecated. Don't use them. These classes are here just so that\nany 3rd party modules built for Relink V1 don't break.\n\nJust return an object like, {output: \&quot;string\&quot;, impossible: true|undefined}\n\n\\*/\n\nfunction EntryNode() {\n\tthis.children = [];\n};\n\nmodule.exports = EntryNode;\n\n/** PURE VIRTUAL\n * EntryNode.prototype.report = function() -&gt; [\&quot;string\&quot;, ...]\n */\n\nEntryNode.newType = function() {\n\treturn EntryNode;\n};\n\nEntryNode.prototype.add = function(entry) {\n\tthis.children.push(entry);\n};\n\nfunction EntryCollection() {\n\tthis.children = Object.create(null);\n\tthis.types = Object.create(null);\n};\n\nEntryNode.newCollection = function(name) {\n\treturn EntryCollection;\n};\n\n// Again. I reiterate. Don't use this. All this is just legacy support.\nObject.defineProperty(EntryCollection, 'impossible', {\n\tget: function() {\n\t\tvar imp = this._impossible;\n\t\tthis.eachChild(function(child) { imp = imp || child.impossible; });\n\t\treturn imp;\n\t},\n\tset: function(impossible) {\n\t\tthis._impossible = true;\n\t}\n});\n\nEntryCollection.prototype.eachChild = function(method) {\n\tfor (var child in this.children) {\n\t\tmethod(this.children[child]);\n\t}\n};\n\nEntryCollection.prototype.addChild = function(child, name, type) {\n\tthis.children[name] = child;\n\tthis.types[name] = type;\n};\n\nEntryCollection.prototype.hasChildren = function() {\n\treturn Object.keys(this.children).length &gt; 0;\n};\n&quot;,
&quot;module-type&quot;: &quot;library&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/utils/entry.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/utils/placeholder.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nA method which doles out placeholders when requested, and constructs\nthe necessary supporting pragma when requested.\n\n\\*/\n\nvar utils = require('../utils');\n\nfunction Placeholder() {\n\tthis.placeholders = Object.create(null);\n\tthis.reverseMap = {};\n\tthis.used = Object.create(null);\n};\n\nmodule.exports = Placeholder;\n\nPlaceholder.prototype.getPlaceholderFor = function(value, category) {\n\tthis.reverseMap[category] = this.reverseMap[category] || Object.create(null);\n\tvar placeholder = this.reverseMap[category][value];\n\tif (placeholder) {\n\t\treturn placeholder;\n\t}\n\tvar config = (this.parser &amp;&amp; this.parser.context) || utils.getWikiContext(this.parser.wiki);\n\tvar number = 0;\n\tvar prefix = \&quot;relink-\&quot;\n\tif (category &amp;&amp; category !== \&quot;title\&quot;) {\n\t\t// I don't like \&quot;relink-title-1\&quot;. \&quot;relink-1\&quot; should be for\n\t\t// titles. lists, and filters can have descriptors though.\n\t\tprefix += category + \&quot;-\&quot;;\n\t}\n\tdo {\n\t\tnumber += 1;\n\t\tplaceholder = prefix + number;\n\t} while (config.getMacroDefinition(placeholder) || this.used[placeholder]);\n\tthis.placeholders[placeholder] = value;\n\tthis.reverseMap[category][value] = placeholder;\n\tthis.used[placeholder] = true;\n\treturn placeholder;\n};\n\n// For registering placeholders that already existed\nPlaceholder.prototype.registerExisting = function(key, value) {\n\tthis.reverseMap[value] = key;\n\tthis.used[key] = true;\n};\n\nPlaceholder.prototype.getPreamble = function() {\n\tvar results = [];\n\tvar keys = Object.keys(this.placeholders);\n\tif (keys.length &gt; 0) {\n\t\tkeys.sort();\n\t\tfor (var i = 0; i &lt; keys.length; i++) {\n\t\t\tvar name = keys[i];\n\t\t\tvar val = this.placeholders[name];\n\t\t\tresults.push(\&quot;\\\\define \&quot;+name+\&quot;() \&quot;+val+\&quot;\\n\&quot;);\n\t\t}\n\t}\n\treturn results.join('');\n};\n\n&quot;,
&quot;module-type&quot;: &quot;library&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/utils/placeholder.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink/js/utils/rebuilder.js&quot;: {
&quot;text&quot;: &quot;/*\\\n\nThis helper class aids in reconstructing an existing string with new parts.\n\n\\*/\n\nfunction Rebuilder(text, start) {\n\tthis.text = text;\n\tthis.index = start || 0;\n\tthis.pieces = [];\n};\n\nmodule.exports = Rebuilder;\n\n/**Pieces must be added consecutively.\n * Start and end are the indices in the old string specifying where to graft\n * in the new piece.\n */\nRebuilder.prototype.add = function(value, start, end) {\n\tthis.pieces.push(this.text.substring(this.index, start), value);\n\tthis.index = end;\n};\n\nRebuilder.prototype.changed = function() {\n\treturn this.pieces.length &gt; 0;\n};\n\nRebuilder.prototype.results = function(end) {\n\tif (this.changed()) {\n\t\tthis.pieces.push(this.text.substring(this.index, end));\n\t\treturn this.pieces.join('');\n\t}\n\treturn undefined;\n};\n&quot;,
&quot;module-type&quot;: &quot;library&quot;,
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/js/utils/rebuilder.js&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/config/flibbles/relink/attributes/$button/set&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$button/set&quot;,
&quot;text&quot;: &quot;reference&quot;
},
&quot;$:/config/flibbles/relink/attributes/$button/setTo&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$button/setTo&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$button/to&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$button/to&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$checkbox/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$checkbox/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$checkbox/tag&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$checkbox/tag&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$count/filter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$count/filter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/attributes/$draggable/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$draggable/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$draggable/filter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$draggable/filter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/attributes/$edit-bitmap/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$edit-bitmap/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$edit-text/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$edit-text/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$edit/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$edit/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$encrypt/filter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$encrypt/filter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/attributes/$fieldmangler/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$fieldmangler/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$fields/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$fields/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$image/source&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$image/source&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$importvariables/filter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$importvariables/filter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/attributes/$linkcatcher/to&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$linkcatcher/to&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$linkcatcher/set&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$linkcatcher/set&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$link/to&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$link/to&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$list/filter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$list/filter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/attributes/$list/template&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$list/template&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$list/editTemplate&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$list/editTemplate&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$list/emptyMessage&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$list/emptyMessage&quot;,
&quot;text&quot;: &quot;wikitext&quot;
},
&quot;$:/config/flibbles/relink/attributes/$list/history&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$list/history&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$navigator/story&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$navigator/story&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$navigator/history&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$navigator/history&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$radio/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$radio/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$range/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$range/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$reveal/stateTitle&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$reveal/stateTitle&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$select/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$select/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$setvariable/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$setvariable/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$setvariable/subtiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$setvariable/subtiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$setvariable/filter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$setvariable/filter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/attributes/$set/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$set/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$set/subtiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$set/subtiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$set/filter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$set/filter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/attributes/$tiddler/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$tiddler/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$transclude/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$transclude/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$transclude/subtiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$transclude/subtiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$view/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$view/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/attributes/$view/subtiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/attributes/$view/subtiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/plugins/flibbles/relink/configuration&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/configuration&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;tc-control-panel\&quot;&gt;\n&lt;&lt;tabs \&quot;[all[shadows+tiddlers]tag[$:/tags/flibbles/relink/Configuration]!has[draft.of]]\&quot; \&quot;$:/plugins/flibbles/relink/ui/configuration/Fields\&quot;&gt;&gt;\n&lt;/div&gt;\n&quot;
},
&quot;$:/config/flibbles/relink/fields/caption&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/fields/caption&quot;,
&quot;text&quot;: &quot;wikitext&quot;
},
&quot;$:/config/flibbles/relink/fields/filter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/fields/filter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/fields/list&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/fields/list&quot;,
&quot;text&quot;: &quot;list&quot;
},
&quot;$:/config/flibbles/relink/fields/list-after&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/fields/list-after&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/fields/list-before&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/fields/list-before&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/fields/tags&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/fields/tags&quot;,
&quot;text&quot;: &quot;list&quot;
},
&quot;$:/plugins/flibbles/relink/language/Buttons/Delete/Hint&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Buttons/Delete/Hint&quot;,
&quot;text&quot;: &quot;delete&quot;
},
&quot;$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint&quot;,
&quot;text&quot;: &quot;go to defining tiddler&quot;
},
&quot;$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Hint&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Hint&quot;,
&quot;text&quot;: &quot;Specify a new widget/element attribute to be updated whenever a tiddler is renamed&quot;
},
&quot;$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Caption&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Caption&quot;,
&quot;text&quot;: &quot;add&quot;
},
&quot;$:/plugins/flibbles/relink/language/Buttons/NewField/Hint&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Buttons/NewField/Hint&quot;,
&quot;text&quot;: &quot;Specify a new field to be updated whenever a tiddler is renamed&quot;
},
&quot;$:/plugins/flibbles/relink/language/Buttons/NewField/Caption&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Buttons/NewField/Caption&quot;,
&quot;text&quot;: &quot;add&quot;
},
&quot;$:/plugins/flibbles/relink/language/Buttons/NewOperator/Hint&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Buttons/NewOperator/Hint&quot;,
&quot;text&quot;: &quot;Specify a new filter operator to be considered whenever a tiddler is renamed&quot;
},
&quot;$:/plugins/flibbles/relink/language/Buttons/NewOperator/Caption&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Buttons/NewOperator/Caption&quot;,
&quot;text&quot;: &quot;add&quot;
},
&quot;$:/plugins/flibbles/relink/language/Buttons/NewParameter/Hint&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Buttons/NewParameter/Hint&quot;,
&quot;text&quot;: &quot;Specify a new macro parameter to be updated whenever a tiddler is renamed&quot;
},
&quot;$:/plugins/flibbles/relink/language/Buttons/NewParameter/Caption&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Buttons/NewParameter/Caption&quot;,
&quot;text&quot;: &quot;add&quot;
},
&quot;$:/plugins/flibbles/relink/language/Error/InvalidAttributeName&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Error/InvalidAttributeName&quot;,
&quot;text&quot;: &quot;Illegal characters in attribute name \&quot;&lt;$text text=&lt;&lt;attributeName&gt;&gt;/&gt;\&quot;. Attributes cannot contain slashes ('/'), closing angle or square brackets ('&gt;' or ']'), quotes or apostrophes ('\&quot;' or \&quot;'\&quot;), equals ('='), or whitespace&quot;
},
&quot;$:/plugins/flibbles/relink/language/Error/InvalidElementName&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Error/InvalidElementName&quot;,
&quot;text&quot;: &quot;Illegal characters in element/widget name \&quot;&lt;$text text=&lt;&lt;elementName&gt;&gt;/&gt;\&quot;. Element tags can only contain letters and the characters hyphen (`-`) and dollar sign (`$`)&quot;
},
&quot;$:/plugins/flibbles/relink/language/Error/InvalidMacroName&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Error/InvalidMacroName&quot;,
&quot;text&quot;: &quot;Illegal characters in macro name \&quot;&lt;$text text=&lt;&lt;macroName&gt;&gt;/&gt;\&quot;. Macros cannot contain whitespace&quot;
},
&quot;$:/plugins/flibbles/relink/language/Error/InvalidParameterName&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Error/InvalidParameterName&quot;,
&quot;text&quot;: &quot;Illegal characters in parameter name \&quot;&lt;$text text=&lt;&lt;parameterName&gt;&gt;/&gt;\&quot;. Parameters can only contain letters, digits, and the characters underscore (`_`) and hyphen (`-`)&quot;
},
&quot;$:/plugins/flibbles/relink/language/Error/RelinkFilterOperator&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Error/RelinkFilterOperator&quot;,
&quot;text&quot;: &quot;Filter Error: Unknown suffix for the 'relink' filter operator&quot;
},
&quot;$:/plugins/flibbles/relink/language/Error/ReportFailedRelinks&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Error/ReportFailedRelinks&quot;,
&quot;text&quot;: &quot;Relink could not update '&lt;&lt;from&gt;&gt;' to '&lt;&lt;to&gt;&gt;' inside the following tiddlers:&quot;
},
&quot;$:/plugins/flibbles/relink/language/Error/UnrecognizedType&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Error/UnrecognizedType&quot;,
&quot;text&quot;: &quot;Relink parse error: Unrecognized field type '&lt;&lt;type&gt;&gt;'&quot;
},
&quot;$:/plugins/flibbles/relink/language/Help/Attributes&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Help/Attributes&quot;,
&quot;text&quot;: &quot;See the &lt;a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Attributes]]}}}&gt;Attributes documentation page&lt;/a&gt; for details.&quot;
},
&quot;$:/plugins/flibbles/relink/language/Help/Fields&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Help/Fields&quot;,
&quot;text&quot;: &quot;See the &lt;a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Fields]]}}}&gt;Fields documentation page&lt;/a&gt; for details.&quot;
},
&quot;$:/plugins/flibbles/relink/language/Help/Macros&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Help/Macros&quot;,
&quot;text&quot;: &quot;See the &lt;a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Macros]]}}}&gt;Macros documentation page&lt;/a&gt; for details.&quot;
},
&quot;$:/plugins/flibbles/relink/language/Help/Operators&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/Help/Operators&quot;,
&quot;text&quot;: &quot;See the &lt;a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Operators]]}}}&gt;Operators documentation page&lt;/a&gt; for details.&quot;
},
&quot;$:/plugins/flibbles/relink/language/TiddlerInfo/References/Empty&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/TiddlerInfo/References/Empty&quot;,
&quot;text&quot;: &quot;No tiddlers contain any fields, links, macros, transclusions, or widgets referencing this one&quot;
},
&quot;$:/plugins/flibbles/relink/language/TiddlerInfo/References/Description&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/TiddlerInfo/References/Description&quot;,
&quot;text&quot;: &quot;The following tiddlers contain fields, links, macros, transclusions, or widgets referencing this one:&quot;
},
&quot;$:/plugins/flibbles/relink/language/TiddlerInfo/References/Caption&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/TiddlerInfo/References/Caption&quot;,
&quot;text&quot;: &quot;//Relink// References&quot;
},
&quot;$:/plugins/flibbles/relink/language/ui/Attributes/Caption&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/ui/Attributes/Caption&quot;,
&quot;text&quot;: &quot;Attributes&quot;
},
&quot;$:/plugins/flibbles/relink/language/ui/Fields/Caption&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/ui/Fields/Caption&quot;,
&quot;text&quot;: &quot;Fields&quot;
},
&quot;$:/plugins/flibbles/relink/language/ui/Macros/Caption&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/ui/Macros/Caption&quot;,
&quot;text&quot;: &quot;Macros&quot;
},
&quot;$:/plugins/flibbles/relink/language/ui/Operators/Caption&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/language/ui/Operators/Caption&quot;,
&quot;text&quot;: &quot;Operators&quot;
},
&quot;$:/plugins/flibbles/relink/license&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/license&quot;,
&quot;type&quot;: &quot;text/vnd.tiddlywiki&quot;,
&quot;text&quot;: &quot;&lt;a href={{$:/plugins/flibbles/relink!!demo}}&gt;Relink Plugin&lt;/a&gt; Copyright (c) 2019-&lt;&lt;now YYYY&gt;&gt; Cameron Fischer\n\n[[BSD 3-Clause License|https://raw.githubusercontent.com/flibbles/tw5-relink/master/LICENSE]]\n&quot;
},
&quot;$:/config/flibbles/relink/macros/csvtiddlers/filter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/csvtiddlers/filter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/macros/datauri/title&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/datauri/title&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/jsontiddler/title&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/jsontiddler/title&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/jsontiddlers/filter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/jsontiddlers/filter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/macros/list-links/filter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/list-links/filter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/macros/list-links-draggable/tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/list-links-draggable/tiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/list-links-draggable/itemTemplate&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/list-links-draggable/itemTemplate&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/list-tagged-draggable/tag&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/list-tagged-draggable/tag&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/list-tagged-draggable/itemTemplate&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/list-tagged-draggable/itemTemplate&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/tabs/buttonTemplate&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/tabs/buttonTemplate&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/tabs/default&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/tabs/default&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/tabs/tabsList&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/tabs/tabsList&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/macros/tabs/template&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/tabs/template&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/tag/tag&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/tag/tag&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/tag-pill/tag&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/tag-pill/tag&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/timeline/subfilter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/timeline/subfilter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/macros/toc/tag&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc/tag&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/toc/itemClassFilter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc/itemClassFilter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-expandable/tag&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-expandable/tag&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-expandable/itemClassFilter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-expandable/itemClassFilter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-expandable/exclude&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-expandable/exclude&quot;,
&quot;text&quot;: &quot;list&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-selective-expandable/tag&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-selective-expandable/tag&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-selective-expandable/itemClassFilter&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-selective-expandable/itemClassFilter&quot;,
&quot;text&quot;: &quot;filter&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-selective-expandable/exclude&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-selective-expandable/exclude&quot;,
&quot;text&quot;: &quot;list&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-tabbed-external-nav/tag&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-tabbed-external-nav/tag&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-tabbed-external-nav/selectedTiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-tabbed-external-nav/selectedTiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-tabbed-external-nav/unselectedText&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-tabbed-external-nav/unselectedText&quot;,
&quot;text&quot;: &quot;wikitext&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-tabbed-external-nav/missingText&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-tabbed-external-nav/missingText&quot;,
&quot;text&quot;: &quot;wikitext&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-tabbed-external-nav/template&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-tabbed-external-nav/template&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/tag&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/tag&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/selectedTiddler&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/selectedTiddler&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/unselectedText&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/unselectedText&quot;,
&quot;text&quot;: &quot;wikitext&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/missingText&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/missingText&quot;,
&quot;text&quot;: &quot;wikitext&quot;
},
&quot;$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/template&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/template&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/operators/list&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/operators/list&quot;,
&quot;text&quot;: &quot;reference&quot;
},
&quot;$:/config/flibbles/relink/operators/tag&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/operators/tag&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/operators/title&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/operators/title&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/config/flibbles/relink/operators/field:title&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/operators/field:title&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/language/EditTemplate/Title/Impossibles/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Title/Impossibles/Prompt&quot;,
&quot;text&quot;: &quot;''Warning:'' Not all references in the following tiddlers can be updated by //Relink// due to the complexity of the new title:&quot;
},
&quot;$:/language/EditTemplate/Title/References/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Title/References/Prompt&quot;,
&quot;text&quot;: &quot;The following tiddlers will be updated if relinking:&quot;
},
&quot;$:/language/EditTemplate/Title/Relink/Prompt&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Title/Relink/Prompt&quot;,
&quot;text&quot;: &quot;Use //Relink// to update ''&lt;$text text=&lt;&lt;fromTitle&gt;&gt;/&gt;'' to ''&lt;$text text=&lt;&lt;toTitle&gt;&gt;/&gt;'' across all other tiddlers&quot;
},
&quot;$:/core/ui/EditTemplate/title&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate/title&quot;,
&quot;tags&quot;: &quot;$:/tags/EditTemplate&quot;,
&quot;text&quot;: &quot;&lt;$edit-text field=\&quot;draft.title\&quot; class=\&quot;tc-titlebar tc-edit-texteditor\&quot; focus=\&quot;true\&quot; tabindex={{$:/config/EditTabIndex}}/&gt;\n\n&lt;$reveal state=\&quot;!!draft.title\&quot; type=\&quot;nomatch\&quot; text={{!!draft.of}} tag=\&quot;div\&quot;&gt;\n\n&lt;$vars pattern=\&quot;\&quot;\&quot;[\\|\\[\\]{}]\&quot;\&quot;\&quot; bad-chars=\&quot;\&quot;\&quot;`| [ ] { }`\&quot;\&quot;\&quot;&gt;\n\n&lt;$list filter=\&quot;[all[current]regexp:draft.title&lt;pattern&gt;]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;div class=\&quot;tc-message-box\&quot;&gt;\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}\n\n&lt;/div&gt;\n\n&lt;/$list&gt;\n\n&lt;/$vars&gt;\n\n&lt;$list filter=\&quot;[{!!draft.title}!is[missing]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;div class=\&quot;tc-message-box\&quot;&gt;\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}\n\n&lt;/div&gt;\n\n&lt;/$list&gt;\n\n&lt;$list filter=\&quot;[{!!draft.of}!is[missing]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}&gt;\n\n&lt;$checkbox tiddler=\&quot;$:/config/RelinkOnRename\&quot; field=\&quot;text\&quot; checked=\&quot;yes\&quot; unchecked=\&quot;no\&quot; default=\&quot;no\&quot;&gt; {{$:/language/EditTemplate/Title/Relink/Prompt}}&lt;/$checkbox&gt;\n\n&lt;$tiddler tiddler=&lt;&lt;fromTitle&gt;&gt; &gt;\n\n&lt;$list filter=\&quot;[relink:wouldchange&lt;toTitle&gt;limit[1]]\&quot; variable=\&quot;listItem\&quot;&gt;\n\n&lt;$vars stateTiddler=&lt;&lt;qualify \&quot;$:/state/edit/references\&quot;&gt;&gt; &gt;\n\n&lt;$set\n\tname=\&quot;prompt\&quot;\n\tfilter=\&quot;[relink:wouldchange&lt;toTitle&gt;relink:impossible&lt;toTitle&gt;]\&quot;\n\tvalue=\&quot;EditTemplate/Title/Impossibles/Prompt\&quot;\n\temptyValue=\&quot;EditTemplate/Title/References/Prompt\&quot; &gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;stateTiddler&gt;&gt; text=\&quot;show\&quot;&gt;\n&lt;$button set=&lt;&lt;stateTiddler&gt;&gt; setTo=\&quot;show\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;{{$:/core/images/right-arrow}}\n&lt;$macrocall $name=lingo title=&lt;&lt;prompt&gt;&gt; /&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;stateTiddler&gt;&gt; text=\&quot;show\&quot;&gt;\n&lt;$button set=&lt;&lt;stateTiddler&gt;&gt; setTo=\&quot;hide\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;{{$:/core/images/down-arrow}}\n&lt;$macrocall $name=lingo title=&lt;&lt;prompt&gt;&gt; /&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/$set&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;stateTiddler&gt;&gt; text=\&quot;show\&quot;&gt;\n&lt;$list variable=\&quot;listItem\&quot; filter=\&quot;[relink:wouldchange&lt;toTitle&gt;!title[$:/StoryList]sort[title]]\&quot; template=\&quot;$:/plugins/flibbles/relink/ui/ListItemTemplate\&quot;&gt;\n&lt;/$list&gt;\n&lt;/$reveal&gt;\n\n&lt;/$vars&gt;\n\n&lt;/$list&gt;\n\n&lt;/$tiddler&gt;\n\n&lt;/$vars&gt;\n\n&lt;/$list&gt;\n\n&lt;/$reveal&gt;\n&quot;
},
&quot;$:/config/flibbles/relink/PluginLibrary&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/PluginLibrary&quot;,
&quot;caption&quot;: &quot;//Relink// Library&quot;,
&quot;url&quot;: &quot;https://flibbles.github.io/tw5-relink/library/index.html&quot;,
&quot;tags&quot;: &quot;$:/tags/PluginLibrary&quot;,
&quot;text&quot;: &quot;The //Relink// library contains //Relink// as well as its supplemental plugins. It is maintained by Flibbles. See the [[github page|https://github.com/flibbles/tw5-relink]] for more information.\n&quot;
},
&quot;$:/plugins/flibbles/relink/readme&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/readme&quot;,
&quot;type&quot;: &quot;text/vnd.tiddlywiki&quot;,
&quot;text&quot;: &quot;When renaming a tiddler, Relink can update the fields, filters, and widgets\nof all other tiddlers. However, it works through whitelisting.\n\nIt's already configured to update tiddler titles for all core widgets, filters,\nand fields, but the whitelists can be customized for each of this in the\nconfiguration panel.\n\nSee &lt;a href={{$:/plugins/flibbles/relink!!source}}&gt;the tw5-relink website&lt;/a&gt; for more details and examples.\n&quot;
},
&quot;$:/config/flibbles/relink/settings/default-type&quot;: {
&quot;title&quot;: &quot;$:/config/flibbles/relink/settings/default-type&quot;,
&quot;text&quot;: &quot;title&quot;
},
&quot;$:/plugins/flibbles/relink/ui/ListItemTemplate&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/ui/ListItemTemplate&quot;,
&quot;text&quot;: &quot;&lt;$set\n\tname=\&quot;classes\&quot;\n\tfilter=\&quot;[&lt;listItem&gt;relink:impossible&lt;toTitle&gt;]\&quot;\n\tvalue=\&quot;tc-menu-list-item tc-relink-impossible\&quot;\n\temptyValue=\&quot;tc-menu-list-item\&quot;&gt;\n&lt;div class=&lt;&lt;classes&gt;&gt;&gt;\n&lt;$link to=&lt;&lt;listItem&gt;&gt;&gt;&lt;$text text=&lt;&lt;listItem&gt;&gt; /&gt;&lt;/$link&gt;\n&lt;/div&gt;\n&lt;/$set&gt;\n&quot;
},
&quot;$:/plugins/flibbles/relink/ui/TiddlerInfo/References&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/ui/TiddlerInfo/References&quot;,
&quot;caption&quot;: &quot;{{$:/plugins/flibbles/relink/language/TiddlerInfo/References/Caption}}&quot;,
&quot;tags&quot;: &quot;$:/tags/TiddlerInfo&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/plugins/flibbles/relink/language/TiddlerInfo/\n\\define filter() [all[current]relink:backreferences[]!title[$:/StoryList]!prefix[$:/temp/]sort[title]]\n&lt;$list filter=\&quot;[subfilter&lt;filter&gt;first[]]\&quot;&gt;\n\n&lt;&lt;lingo References/Description&gt;&gt;\n&lt;/$list&gt;\n\n&lt;table class=\&quot;tc-relink-references-table\&quot;&gt;\n&lt;tbody&gt;\n&lt;$list filter=&lt;&lt;filter&gt;&gt; emptyMessage=&lt;&lt;lingo References/Empty&gt;&gt; variable=\&quot;listItem\&quot; template=\&quot;$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate\&quot; /&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&quot;
},
&quot;$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate&quot;,
&quot;text&quot;: &quot;&lt;tr class=\&quot;tc-relink-references\&quot;&gt;\n&lt;td class=\&quot;tc-relink-references-title\&quot;&gt;\n&lt;$link to=&lt;&lt;listItem&gt;&gt;/&gt;\n&lt;/td&gt;\n&lt;td class=\&quot;tc-relink-references-report\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;listItem&gt;relink:report&lt;currentTiddler&gt;]\&quot;&gt;\n\n&lt;$text text=&lt;&lt;currentTiddler&gt;&gt; /&gt;\n&lt;/$list&gt;\n\n&lt;/td&gt;\n&lt;/tr&gt;\n&quot;
},
&quot;$:/plugins/flibbles/relink/ui/components/button-delete&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/ui/components/button-delete&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define prefix() $:/config/flibbles/relink/\n\n&lt;$list filter=\&quot;[all[current]prefix&lt;prefix&gt;]\&quot; &gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; tooltip={{$:/plugins/flibbles/relink/language/Buttons/Delete/Hint}}&gt;&lt;$list filter=\&quot;[all[current]is[tiddler]]\&quot;&gt;\n&lt;$action-deletetiddler $tiddler=&lt;&lt;currentTiddler&gt;&gt; /&gt;\n&lt;/$list&gt;&lt;$list filter=\&quot;[all[current]is[shadow]]\&quot;&gt;\n&lt;$action-setfield $tiddler=&lt;&lt;tiddlerName&gt;&gt; text=\&quot;\&quot; /&gt;\n&lt;/$list&gt;\n{{$:/core/images/delete-button}}\n&lt;/$button&gt;\n&lt;/$list&gt;&lt;$list filter=\&quot;[all[current]!prefix&lt;prefix&gt;]\&quot;&gt;\n&lt;$link&gt;&lt;$button class=\&quot;tc-btn-invisible\&quot; tooltip={{$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint}}&gt;{{$:/core/images/link}}&lt;/$button&gt;&lt;/$link&gt;\n&lt;/$list&gt;\n&quot;
},
&quot;$:/plugins/flibbles/relink/ui/components/select-fieldtype&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/ui/components/select-fieldtype&quot;,
&quot;text&quot;: &quot;\\define prefix() $:/config/flibbles/relink/\n\n&lt;$vars type={{{ [&lt;signature&gt;relink:type[]] }}} &gt;\n&lt;$list filter=\&quot;[all[current]prefix&lt;prefix&gt;]\&quot; &gt;\n&lt;$select tiddler=&lt;&lt;currentTiddler&gt;&gt; &gt;\n&lt;$list variable=\&quot;option\&quot; filter=\&quot;[relink:types[]]\&quot;&gt;\n&lt;option&gt;&lt;$text text=&lt;&lt;option&gt;&gt; /&gt;&lt;/option&gt;\n&lt;/$list&gt;\n&lt;/$select&gt;\n&lt;/$list&gt;&lt;$list filter=\&quot;[all[current]!prefix&lt;prefix&gt;]\&quot;&gt;\n&lt;$text text=&lt;&lt;type&gt;&gt; /&gt;\n&lt;/$list&gt;\n&lt;/$vars&gt;\n&quot;
},
&quot;$:/plugins/flibbles/relink/ui/components/tables&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/ui/components/tables&quot;,
&quot;text&quot;: &quot;\\define .make-table(title, plugin, default-table-state:yes)\n\n&lt;$list variable=\&quot;render\&quot; filter=\&quot;[relink:signatures&lt;__plugin__&gt;prefix&lt;__category__&gt;first[]]\&quot;&gt;\n&lt;$set name=\&quot;table-state\&quot; value=&lt;&lt;qualify \&quot;\&quot;\&quot;$:/state/flibbles/relink/tables/$title$\&quot;\&quot;\&quot;&gt;&gt;&gt;\n&lt;tr&gt;&lt;th class=\&quot;tc-relink-header-plugin\&quot; colspan=&lt;&lt;column-count&gt;&gt; &gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;table-state&gt;&gt; text=\&quot;yes\&quot; default=\&quot;\&quot;\&quot;$default-table-state$\&quot;\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot; set=&lt;&lt;table-state&gt;&gt; setTo=\&quot;yes\&quot;&gt;\n{{$:/core/images/right-arrow}} ''$title$''\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=&lt;&lt;table-state&gt;&gt; text=\&quot;yes\&quot; default=\&quot;\&quot;\&quot;$default-table-state$\&quot;\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot; set=&lt;&lt;table-state&gt;&gt; setTo=\&quot;no\&quot;&gt;\n{{$:/core/images/down-arrow}} ''$title$''\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/th&gt;&lt;/tr&gt;\n&lt;$list\n\tvariable=\&quot;signature\&quot;\n\tfilter=\&quot;[relink:signatures&lt;__plugin__&gt;prefix&lt;__category__&gt;sort[]]\&quot;&gt;\n&lt;$vars key={{{ [&lt;signature&gt;removeprefix&lt;__category__&gt;removeprefix[/]] }}} &gt;\n&lt;$tiddler tiddler={{{[&lt;signature&gt;relink:source[]]}}} &gt;\n&lt;$reveal tag=\&quot;tr\&quot; type=\&quot;match\&quot; state=&lt;&lt;table-state&gt;&gt; text=\&quot;yes\&quot; default=\&quot;\&quot;\&quot;$default-table-state$\&quot;\&quot;\&quot;&gt;\n&lt;$macrocall $name=&lt;&lt;__list-row-macro__&gt;&gt; signature=&lt;&lt;signature&gt;&gt; /&gt;\n&lt;td class=\&quot;tc-relink-column-type\&quot;&gt;{{||$:/plugins/flibbles/relink/ui/components/select-fieldtype}}&lt;/td&gt;\n&lt;td class=\&quot;tc-relink-column-delete\&quot;&gt;{{||$:/plugins/flibbles/relink/ui/components/button-delete}}&lt;/td&gt;\n&lt;/$reveal&gt;\n&lt;/$tiddler&gt;\n&lt;/$vars&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n\\end\n\n\\define tables(category, list-row-macro, header-list)\n&lt;$vars\n\tcolumn-count={{{[enlist&lt;__header-list__&gt;] [[DeleteColumn]] +[count[]]}}}&gt;\n\n&lt;table class=\&quot;tc-relink-whitelist\&quot;&gt;&lt;tbody&gt;\n&lt;tr&gt;\n&lt;$list variable=\&quot;header\&quot; filter=\&quot;[enlist&lt;__header-list__&gt;butlast[]]\&quot;&gt;&lt;th&gt;&lt;&lt;header&gt;&gt;&lt;/th&gt;&lt;/$list&gt;\n&lt;!-- We have the last column extend into the delete/link column, which is unlabeled. --&gt;\n&lt;th colspan=2&gt;&lt;$text text={{{ [enlist&lt;__header-list__&gt;last[]] }}} /&gt;&lt;/th&gt;\n&lt;/tr&gt;\n\n&lt;&lt;.make-table Custom \&quot;\&quot; yes&gt;&gt;\n\n&lt;$list\n\tfilter=\&quot;[plugin-type[plugin]![$:/core]![$:/plugins/flibbles/relink]]\&quot;&gt;\n&lt;$set name=\&quot;subtitle\&quot; value={{!!description}} emptyValue={{!!title}} &gt;\n&lt;$macrocall $name=\&quot;.make-table\&quot; title=&lt;&lt;subtitle&gt;&gt; plugin=&lt;&lt;currentTiddler&gt;&gt; /&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n\n&lt;&lt;.make-table Core \&quot;$:/plugins/flibbles/relink\&quot;&gt;&gt;\n\n&lt;/tbody&gt;&lt;/table&gt;\n&lt;/$vars&gt;\n\\end\n&quot;
},
&quot;$:/plugins/flibbles/relink/ui/configuration/Attributes&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/ui/configuration/Attributes&quot;,
&quot;caption&quot;: &quot;{{$:/plugins/flibbles/relink/language/ui/Attributes/Caption}}&quot;,
&quot;tags&quot;: &quot;$:/tags/flibbles/relink/Configuration&quot;,
&quot;text&quot;: &quot;\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define prefix-attr() $:/config/flibbles/relink/attributes/\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define element-name-tiddler() $:/state/flibbles/relink/element-name\n\\define attribute-name-tiddler() $:/state/flibbles/relink/attribute-name\n\n\\define row()\n&lt;$set name=\&quot;element\&quot;\n filter=\&quot;[&lt;key&gt;splitbefore[/]removesuffix[/]]\&quot;&gt;\n&lt;$set name=\&quot;attribute\&quot;\n filter=\&quot;[&lt;key&gt;removeprefix&lt;element&gt;removeprefix[/]]\&quot;&gt;\n&lt;td&gt;&lt;$text text=&lt;&lt;element&gt;&gt; /&gt;&lt;/td&gt;\n&lt;td&gt;&lt;$text text=&lt;&lt;attribute&gt;&gt; /&gt;&lt;/td&gt;\n&lt;/$set&gt;&lt;/$set&gt;\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Attributes}}\n\n&lt;em class=\&quot;tc-edit\&quot;&gt;Add a new attribute:&lt;/em&gt;\n&lt;$edit-text\n\ttiddler=&lt;&lt;element-name-tiddler&gt;&gt;\n\ttag=\&quot;input\&quot;\n\tdefault=\&quot;\&quot;\n\tplaceholder=\&quot;widget/element\&quot; /&gt;\n&lt;$edit-text\n\ttiddler=&lt;&lt;attribute-name-tiddler&gt;&gt;\n\ttag=\&quot;input\&quot;\n\tdefault=\&quot;\&quot;\n\tplaceholder=\&quot;attribute\&quot; /&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; text=\&quot;\&quot; state=&lt;&lt;element-name-tiddler&gt;&gt; &gt;\n&lt;$reveal type=\&quot;nomatch\&quot; text=\&quot;\&quot; state=&lt;&lt;attribute-name-tiddler&gt;&gt; &gt;\n&lt;$relinkmangler&gt;\n&lt;$button\n\ttooltip={{$(lingo-base)$NewAttribute/Hint}}\n\taria-label={{$(lingo-base)$NewAttribute/Caption}}&gt;\n&lt;$action-sendmessage\n\t$message=\&quot;relink-add-attribute\&quot;\n\telement={{$(element-name-tiddler)$}}\n\tattribute={{$(attribute-name-tiddler)$}} /&gt;\n&lt;$action-deletetiddler $tiddler=&lt;&lt;attribute-name-tiddler&gt;&gt; /&gt;\n&lt;$action-deletetiddler $tiddler=&lt;&lt;element-name-tiddler&gt;&gt; /&gt;\n&lt;$text text={{$(lingo-base)$NewAttribute/Caption}}/&gt;\n&lt;/$button&gt;\n&lt;/$relinkmangler&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; text=\&quot;\&quot; state=&lt;&lt;attribute-name-tiddler&gt;&gt; &gt;\n&lt;$button&gt;\n&lt;$text text={{$(lingo-base)$NewAttribute/Caption}}/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; text=\&quot;\&quot; state=&lt;&lt;element-name-tiddler&gt;&gt; &gt;\n&lt;$button&gt;\n&lt;$text text={{$(lingo-base)$NewAttribute/Caption}}/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n\n&lt;$macrocall\n\t$name=tables\n\tcategory=\&quot;attributes\&quot;\n\theader-list=\&quot;[[Widget/HTML Element]] Attribute Type\&quot;\n\tlist-row-macro=\&quot;row\&quot; /&gt;\n\\end\n\n&lt;&lt;body&gt;&gt;\n&quot;
},
&quot;$:/plugins/flibbles/relink/ui/configuration/Fields&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/ui/configuration/Fields&quot;,
&quot;caption&quot;: &quot;{{$:/plugins/flibbles/relink/language/ui/Fields/Caption}}&quot;,
&quot;tags&quot;: &quot;$:/tags/flibbles/relink/Configuration&quot;,
&quot;text&quot;: &quot;\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define field-name-tiddler() $:/state/flibbles/relink/field-name\n\n\\define row()\n&lt;td&gt;&lt;$text text=&lt;&lt;key&gt;&gt; /&gt;&lt;/td&gt;\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Fields}}\n\n&lt;em class=\&quot;tc-edit\&quot;&gt;Add a new field:&lt;/em&gt;\n&lt;$edit-text\n\ttiddler=&lt;&lt;field-name-tiddler&gt;&gt;\n\ttag=\&quot;input\&quot;\n\tdefault=\&quot;\&quot;\n\tplaceholder=\&quot;field name\&quot; /&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; text=\&quot;\&quot; state=&lt;&lt;field-name-tiddler&gt;&gt; &gt;\n&lt;$relinkmangler&gt;\n&lt;$button\n\ttooltip={{$(lingo-base)$NewField/Hint}}\n\taria-label={{$(lingo-base)$NewField/Caption}}&gt;\n&lt;$action-sendmessage\n\t$message=\&quot;relink-add-field\&quot;\n\tfield={{$(field-name-tiddler)$}} /&gt;\n&lt;$action-deletetiddler $tiddler=&lt;&lt;field-name-tiddler&gt;&gt; /&gt;\n&lt;$text text={{$(lingo-base)$NewField/Caption}}/&gt;\n&lt;/$button&gt;\n&lt;/$relinkmangler&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; text=\&quot;\&quot; state=&lt;&lt;field-name-tiddler&gt;&gt; &gt;\n&lt;$button&gt;\n&lt;$text text={{$(lingo-base)$NewField/Caption}}/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n\n\n&lt;$macrocall\n\t$name=tables\n\tcategory=\&quot;fields\&quot;\n\theader-list=\&quot;[[Field Name]] [[Field Type]]\&quot;\n\tlist-row-macro=\&quot;row\&quot; /&gt;\n\\end\n\n&lt;&lt;body&gt;&gt;\n&quot;
},
&quot;$:/plugins/flibbles/relink/ui/configuration/Macros&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/ui/configuration/Macros&quot;,
&quot;caption&quot;: &quot;{{$:/plugins/flibbles/relink/language/ui/Macros/Caption}}&quot;,
&quot;tags&quot;: &quot;$:/tags/flibbles/relink/Configuration&quot;,
&quot;text&quot;: &quot;\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define prefix-macro() $:/config/flibbles/relink/macros/\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define macro-name-tiddler() $:/state/flibbles/relink/macro-name\n\\define parameter-name-tiddler() $:/state/flibbles/relink/parameter-name\n\n\\define row()\n&lt;$set name=\&quot;parameter\&quot;\n filter=\&quot;[&lt;key&gt;relink:splitafter[/]]\&quot;&gt;\n&lt;$set name=\&quot;macro\&quot;\n filter=\&quot;[&lt;key&gt;removesuffix&lt;parameter&gt;removesuffix[/]]\&quot;&gt;\n&lt;td&gt;&lt;$text text=&lt;&lt;macro&gt;&gt; /&gt;&lt;/td&gt;\n&lt;td&gt;&lt;$text text=&lt;&lt;parameter&gt;&gt; /&gt;&lt;/td&gt;\n&lt;/$set&gt;&lt;/$set&gt;\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Macros}}\n\n&lt;em class=\&quot;tc-edit\&quot;&gt;Add a new macro parameter:&lt;/em&gt;\n&lt;$edit-text\n\ttiddler=&lt;&lt;macro-name-tiddler&gt;&gt;\n\ttag=\&quot;input\&quot;\n\tdefault=\&quot;\&quot;\n\tplaceholder=\&quot;macro\&quot; /&gt;\n&lt;$edit-text\n\ttiddler=&lt;&lt;parameter-name-tiddler&gt;&gt;\n\ttag=\&quot;input\&quot;\n\tdefault=\&quot;\&quot;\n\tplaceholder=\&quot;parameter\&quot; /&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; text=\&quot;\&quot; state=&lt;&lt;macro-name-tiddler&gt;&gt; &gt;\n&lt;$reveal type=\&quot;nomatch\&quot; text=\&quot;\&quot; state=&lt;&lt;parameter-name-tiddler&gt;&gt; &gt;\n&lt;$relinkmangler&gt;\n&lt;$button\n\ttooltip={{$(lingo-base)$NewParameter/Hint}}\n\taria-label={{$(lingo-base)$NewParameter/Caption}}&gt;\n&lt;$action-sendmessage\n\t$message=\&quot;relink-add-parameter\&quot;\n\tmacro={{$(macro-name-tiddler)$}}\n\tparameter={{$(parameter-name-tiddler)$}} /&gt;\n&lt;$action-deletetiddler $tiddler=&lt;&lt;parameter-name-tiddler&gt;&gt; /&gt;\n&lt;$action-deletetiddler $tiddler=&lt;&lt;macro-name-tiddler&gt;&gt; /&gt;\n&lt;$text text={{$(lingo-base)$NewParameter/Caption}}/&gt;\n&lt;/$button&gt;\n&lt;/$relinkmangler&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; text=\&quot;\&quot; state=&lt;&lt;parameter-name-tiddler&gt;&gt; &gt;\n&lt;$button&gt;\n&lt;$text text={{$(lingo-base)$NewParameter/Caption}}/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; text=\&quot;\&quot; state=&lt;&lt;macro-name-tiddler&gt;&gt; &gt;\n&lt;$button&gt;\n&lt;$text text={{$(lingo-base)$NewParameter/Caption}}/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n\n\n&lt;$macrocall\n\t$name=tables\n\tcategory=\&quot;macros\&quot;\n\theader-list=\&quot;Macro Parameter Type\&quot;\n\tlist-row-macro=\&quot;row\&quot; /&gt;\n\\end\n\n&lt;&lt;body&gt;&gt;\n&quot;
},
&quot;$:/plugins/flibbles/relink/ui/configuration/Operators&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/ui/configuration/Operators&quot;,
&quot;caption&quot;: &quot;{{$:/plugins/flibbles/relink/language/ui/Operators/Caption}}&quot;,
&quot;tags&quot;: &quot;$:/tags/flibbles/relink/Configuration&quot;,
&quot;text&quot;: &quot;\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define operator-name-tiddler() $:/state/flibbles/relink/operator-name\n\n\\define row()\n&lt;td&gt;&lt;$text text=&lt;&lt;key&gt;&gt; /&gt;&lt;/td&gt;\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Operators}}\n\n&lt;em class=\&quot;tc-edit\&quot;&gt;Add a new filter operator:&lt;/em&gt;\n&lt;$edit-text\n\ttiddler=&lt;&lt;operator-name-tiddler&gt;&gt;\n\ttag=\&quot;input\&quot;\n\tdefault=\&quot;\&quot;\n\tplaceholder=\&quot;operator name\&quot; /&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; text=\&quot;\&quot; state=&lt;&lt;operator-name-tiddler&gt;&gt;&gt;\n&lt;$relinkmangler&gt;\n&lt;$button\n\ttooltip={{$(lingo-base)$NewOperator/Hint}}\n\taria-label={{$(lingo-base)$NewOperator/Caption}}&gt;\n&lt;$action-sendmessage\n\t$message=\&quot;relink-add-operator\&quot;\n\toperator={{$(operator-name-tiddler)$}} /&gt;\n&lt;$action-deletetiddler $tiddler=&lt;&lt;operator-name-tiddler&gt;&gt; /&gt;\n&lt;$text text={{$(lingo-base)$NewOperator/Caption}}/&gt;\n&lt;/$button&gt;\n&lt;/$relinkmangler&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; text=\&quot;\&quot; state=&lt;&lt;operator-name-tiddler&gt;&gt;&gt;\n&lt;$button&gt;\n&lt;$text text={{$(lingo-base)$NewOperator/Caption}}/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n\n&lt;$macrocall\n\t$name=tables\n\tcategory=\&quot;operators\&quot;\n\theader-list=\&quot;[[Filter Operator]] [[Operand Type]]\&quot;\n\tlist-row-macro=\&quot;row\&quot; /&gt;\n\\end\n\n&lt;&lt;body&gt;&gt;\n&quot;
},
&quot;$:/plugins/flibbles/relink/ui/stylesheet.css&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink/ui/stylesheet.css&quot;,
&quot;text&quot;: &quot;.tc-relink-references {\n}\n\n.tc-relink-references-table {\n\twidth: 100%;\n\tborder: none;\n}\n\n.tc-relink-references-table td {\n\tborder-left: none;\n}\n\n.tc-relink-references-table tr:first-child td {\n\tborder-top: none;\n}\n\n.tc-relink-references-title {\n\ttext-align: left;\n\tvertical-align: top;\n}\n\n.tc-relink-references-occurrence {\n\tfont-style: italic;\n\ttext-align: left;\n\tfont-weight: 200;\n\tpadding-left: 25px;\n\tvertical-align: top;\n}\n\n.tc-relink-header-plugin {\n\ttext-align: left;\n}\n\n.tc-relink-header-plugin button {\n\twidth: 100%\n}\n\n.tc-relink-column-type {\n\twidth: 8em;\n}\n\n.tc-relink-column-type select {\n\twidth: 100%;\n}\n\n.tc-relink-column-delete {\n\tborder-left: none;\n\ttext-align: left;\n}\n\n.tc-relink-column-delete button {\n\tpadding-left: 1em;\n}\n\n.tc-relink-impossible a.tc-tiddlylink {\n\tcolor: red;\n}\n&quot;,
&quot;tags&quot;: &quot;$:/tags/Stylesheet&quot;,
&quot;type&quot;: &quot;text/css&quot;
}
}
}</pre>
</div>
<div author="Flibbles" bag="default" core-version="&gt;=5.1.22" created="20210429194134404" demo="http://flibbles.github.io/tw5-relink/" dependents="" description="Renames tiddlers with titles derived from Relinked tiddler" list="readme configuration" modified="20210502175135070" name="Relink Titles" parent-plugin="$:/plugins/flibbles/relink" plugin-type="plugin" revision="0" source="https://github.com/flibbles/tw5-relink" tags="rr-TW5 rr-plugins" title="$:/plugins/flibbles/relink-titles" type="application/json" version="2.0.0">
<pre>{
&quot;tiddlers&quot;: {
&quot;$:/plugins/flibbles/relink-titles/configuration&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink-titles/configuration&quot;,
&quot;caption&quot;: &quot;{{$:/plugins/flibbles/relink-titles/language/Caption}}&quot;,
&quot;tags&quot;: &quot;$:/tags/flibbles/relink/Configuration&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/plugins/flibbles/relink-titles/language/\n\\define prefix() $:/config/flibbles/relink-titles/relink/\n\n&lt;&lt;lingo Help&gt;&gt;\n\n&lt;table&gt;\n&lt;tbody&gt;\n&lt;$list filter=\&quot;[[relinktitlesrule]modules[]]\&quot;&gt;\n&lt;tr&gt;\n&lt;td&gt;\n&lt;$checkbox\n\ttiddler={{{ [all[current]addprefix&lt;prefix&gt;] }}}\n\tfield=\&quot;text\&quot;\n\tchecked=\&quot;enabled\&quot;\n\tunchecked=\&quot;disabled\&quot;\n\tdefault=\&quot;enabled\&quot;\n&gt; ''{{!!caption}}''&lt;/$checkbox&gt;&lt;/td&gt;&lt;td&gt;\n\n&lt;$transclude field='description' /&gt;\n\n&lt;/td&gt;&lt;/tr&gt;&lt;/$list&gt;\n&lt;/tbody&gt;&lt;/table&gt;\n&quot;
},
&quot;$:/plugins/flibbles/relink-titles/language/Caption&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink-titles/language/Caption&quot;,
&quot;text&quot;: &quot;Titles&quot;
},
&quot;$:/plugins/flibbles/relink-titles/language/Directory/Caption&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink-titles/language/Directory/Caption&quot;,
&quot;text&quot;: &quot;Rename subdirectories&quot;
},
&quot;$:/plugins/flibbles/relink-titles/language/Directory/Description&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink-titles/language/Directory/Description&quot;,
&quot;text&quot;: &quot;For wikis set up hierarchically using `/`, like a filesystem. This option will update all tiddlers nested inside the target tiddler. i.e. `fromTiddler/path/file` becomes `toTiddler/path/file`.&quot;
},
&quot;$:/plugins/flibbles/relink-titles/language/Help&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink-titles/language/Help&quot;,
&quot;text&quot;: &quot;See the &lt;a href={{{ [{$:/plugins/flibbles/relink-titles!!demo}addsuffix[#Plugins/Titles]] }}}&gt;//Relink-titles// documentation page&lt;/a&gt; for details.&quot;
},
&quot;$:/plugins/flibbles/relink-titles/readme&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink-titles/readme&quot;,
&quot;text&quot;: &quot;Highly customizable relinking of tiddler titles //related// to the renamed tiddler.\n\n* Rename a hierarchy of subtiddlers when renaming a root tiddler.\n* Make custom filter rules to rename other tiddlers the way you want when Relinking.\n* Integrates with other plugins for plugin-specific rules.\n\nSee &lt;a href={{$:/plugins/flibbles/relink-titles!!source}}&gt;the tw5-relink website&lt;/a&gt; for more details and examples.\n\n{{$:/core/images/warning}} ''Warning:'' You must use //Relink// v1.10.2 or greater with this, or this plugin may delete some tiddler bodies while trying to relink titles.\n&quot;
},
&quot;$:/plugins/flibbles/relink-titles/relinkoperations/title.js&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink-titles/relinkoperations/title.js&quot;,
&quot;text&quot;: &quot;/*\\\nmodule-type: relinkoperator\ntitle: $:/plugins/flibbles/relink-titles/relinkoperations/title.js\ntype: application/javascript\n\nRenames tiddlers which have titles derived from fromTitle. Then it makes\nsure that those tiddlers are properly relinked too.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nvar configPrefix = \&quot;$:/config/flibbles/relink-titles/relink/\&quot;;\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\nutils.getContext('whitelist').hotDirectories.push(configPrefix);\n\nvar titleRules = Object.create(null);\n$tw.modules.forEachModuleOfType('relinktitlesrule', function(title, module) {\n\ttitleRules[title] = module;\n});\n\nexports.name = 'title';\n\nexports.report = function(tiddler, callback, options) {\n\tvar cache = getCache(options),\n\t\trules = cache.rules;\n\tfor (var i = 0; i &lt; rules.length; i++) {\n\t\trules[i].report(tiddler.fields.title, function(title, blurb) {\n\t\t\tcallback(title, blurb ? ('title: ' + blurb) : 'title');\n\t\t}, options);\n\t}\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, changes, options) {\n\tvar cache = getCache(options),\n\t\ttitle = tiddler.fields.title;\n\tif (!cache.touched[title]) {\n\t\tvar rules = cache.rules;\n\t\tfor (var i = 0; i &lt; rules.length; i++) {\n\t\t\tvar rule = rules[i];\n\t\t\tvar entry = rule.relink(title, fromTitle, toTitle, options);\n\t\t\tif (entry) {\n\t\t\t\tvar result = entry.output;\n\t\t\t\tif (result &amp;&amp; (result !== title)) {\n\t\t\t\t\tif (options.wiki.getTiddler(result) || cache.touched[result]) {\n\t\t\t\t\t\t// There's already a tiddler there. We won't clobber it.\n\t\t\t\t\t\tentry.impossible = true;\n\t\t\t\t\t\tentry.output = undefined;\n\t\t\t\t\t}\n\t\t\t\t\tcache.touched[result] = true;\n\t\t\t\t}\n\t\t\t\t// Record that we've touched this one, so we only touch it once.\n\t\t\t\t// Both its prior and latter. Neither should be touched again.\n\t\t\t\tcache.touched[title] = true;\n\t\t\t\tchanges.title = entry;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n};\n\nfunction getCache(options) {\n\treturn utils.getCacheForRun(options, 'titles', function() {\n\t\treturn {\n\t\t\trules: getRules(options.wiki),\n\t\t\ttouched: Object.create(null)\n\t\t};\n\t});\n};\n\nfunction getRules(wiki) {\n\tvar activeRules = [];\n\tfor (var rule in titleRules) {\n\t\tvar configTiddler = wiki.getTiddler(configPrefix + rule);\n\t\tif (!configTiddler || configTiddler.fields.text !== \&quot;disabled\&quot;) {\n\t\t\tactiveRules.push(titleRules[rule]);\n\t\t}\n\t}\n\treturn activeRules;\n};\n&quot;,
&quot;module-type&quot;: &quot;relinkoperator&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
},
&quot;$:/plugins/flibbles/relink-titles/rules/directory&quot;: {
&quot;title&quot;: &quot;$:/plugins/flibbles/relink-titles/rules/directory&quot;,
&quot;text&quot;: &quot;/*\\\ncaption: {{$:/plugins/flibbles/relink-titles/language/Directory/Caption}}\ndescription: {{$:/plugins/flibbles/relink-titles/language/Directory/Description}}\nmodule-type: relinktitlesrule\ntitle: $:/plugins/flibbles/relink-titles/rules/directory\ntype: application/javascript\n\nHandles subdirectory renaming.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\&quot;use strict\&quot;;\n\nexports.name = 'directory';\n\n/**The report returns all parent directories of a given title which exist.\n */\nexports.report = function(title, callback, options) {\n\tvar index = -1;\n\twhile ((index = title.indexOf('/', index+1)) &gt;= 0) {\n\t\tvar dir = title.substr(0, index);\n\t\tcallback(dir, '.' + title.substr(index));\n\t}\n};\n\n/**The relink returns the new title (if any) derived from title for a given\n * rename of fromTitle to toTitle.\n */\nexports.relink = function(title, fromTitle, toTitle, options) {\n\tvar length = fromTitle.length;\n\tif (title.charAt(length) === '/' &amp;&amp; title.substr(0, length) === fromTitle) {\n\t\treturn {output: toTitle + title.substr(length)};\n\t}\n\treturn undefined;\n};\n&quot;,
&quot;caption&quot;: &quot;{{$:/plugins/flibbles/relink-titles/language/Directory/Caption}}&quot;,
&quot;description&quot;: &quot;{{$:/plugins/flibbles/relink-titles/language/Directory/Description}}&quot;,
&quot;module-type&quot;: &quot;relinktitlesrule&quot;,
&quot;type&quot;: &quot;application/javascript&quot;
}
}
}</pre>
</div>
<div author="JD" bag="default" core-version="&gt;=5.1.14" created="20171030163446089" creator="JD" description="JD Mobile Layout" list="readme config" modified="20210220101000658" modifier="JD" plugin-type="plugin" revision="0" tags="rr-plugins rr-TW5" title="$:/plugins/jd/mob" type="application/json" version="1.0.4">
<pre>{
&quot;tiddlers&quot;: {
&quot;$:/plugins/jd/mob/config&quot;: {
&quot;created&quot;: &quot;20171029115120346&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;&lt;style&gt;\n.tc-btn-invisible { text-align: left; }\n&lt;/style&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##freshinstall\&quot; text=\&quot;yes\&quot;&gt;\n&lt;div class=\&quot;jd-bq\&quot;&gt;\n&lt;p&gt;\nThanks for installing this plugin! You can always find the latest updates &lt;a target=\&quot;blank\&quot; href=\&quot;http://j.d.simplemobile.tiddlyspot.com\&quot;&gt;here&lt;/a&gt;\n&lt;/p&gt;\n&lt;p&gt;\nThis plugin options tiddler is also available at ''Control panel'' &gt;&gt; ''Appearance'' &gt;&gt; ''JD Mob''\n&lt;/p&gt;\n&lt;p&gt;\n&lt;$button&gt;\n&lt;&lt;jdconfig freshinstall no&gt;&gt;\nClose message\n&lt;/$button&gt;\n&lt;/p&gt;\n&lt;/div&gt;\n&lt;br&gt;\n&lt;hr&gt;\n&lt;br&gt;\n&lt;/$reveal&gt;\nShow as:\n&lt;$select tiddler=\&quot;$:/plugins/jd/mob/config/config\&quot; index=\&quot;configtype\&quot;&gt;\n&lt;option value=\&quot;list\&quot;&gt;List&lt;/option&gt;\n&lt;option value=\&quot;htabs\&quot;&gt;Horizontal tabs&lt;/option&gt;\n&lt;option value=\&quot;vtabs\&quot;&gt;Vertical tabs&lt;/option&gt;\n&lt;/$select&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##configtype\&quot; text=\&quot;list\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/jd/config]]\&quot;&gt;&lt;$transclude/&gt;&lt;hr&gt;&lt;/$list&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##configtype\&quot; text=\&quot;htabs\&quot;&gt;\n&lt;&lt;tabs \&quot;[all[shadows+tiddlers]tag[$:/tags/jd/config]!has[draft.of]]\&quot; \&quot;$:/plugins/jd/mob/config/barpresets\&quot;&gt;&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##configtype\&quot; text=\&quot;vtabs\&quot;&gt;\n&lt;&lt;tabs \&quot;[all[shadows+tiddlers]tag[$:/tags/jd/config]!has[draft.of]]\&quot; \&quot;$:/plugins/jd/mob/config/barpresets\&quot; \&quot;$:/state/tab/JDconfig\&quot; \&quot;tc-vertical\&quot;&gt;&gt;\n&lt;/$reveal&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/config&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Appearance&quot;,
&quot;subtitle&quot;: &quot;Configure JD mobile layout&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122151014084&quot;,
&quot;caption&quot;: &quot;JD Mob&quot;
},
&quot;$:/plugins/jd/mob/config/fonts&quot;: {
&quot;created&quot;: &quot;20171031124255884&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;&lt;style&gt; .texte { width: calc(100% - 60px); } &lt;/style&gt;\n\n&lt;h2&gt;Fonts and heights presets&lt;/h2&gt;\n\n\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdfont 38px 30px 38px 28px 20px&gt;&gt;\n&lt;&lt;jdconfig fontsize largest&gt;&gt;\n&lt;&lt;jdradbut fontsize largest&gt;&gt;\n&lt;/$button&gt; Largest\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdfont 34px 26px 34px 24px 20px&gt;&gt;\n&lt;&lt;jdconfig fontsize larger&gt;&gt;\n&lt;&lt;jdradbut fontsize larger&gt;&gt;\n&lt;/$button&gt; Larger\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdfont 30px 22px 30px 20px 20px&gt;&gt;\n&lt;&lt;jdconfig fontsize large&gt;&gt;\n&lt;&lt;jdradbut fontsize large&gt;&gt;\n&lt;/$button&gt; Large\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdfont 26px 18px 26px 16px 20px&gt;&gt;\n&lt;&lt;jdconfig fontsize medium&gt;&gt;\n&lt;&lt;jdradbut fontsize medium&gt;&gt;\n&lt;/$button&gt; Medium\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdfont 22px 14px 20px 12px 20px&gt;&gt;\n&lt;&lt;jdconfig fontsize small&gt;&gt;\n&lt;&lt;jdradbut fontsize small&gt;&gt;\n&lt;/$button&gt; Small\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdfont 18px 10px 16px 8px 20px&gt;&gt;\n&lt;&lt;jdconfig fontsize smaller&gt;&gt;\n&lt;&lt;jdradbut fontsize smaller&gt;&gt;\n&lt;/$button&gt; Smaller\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdfont&gt;&gt;\n&lt;&lt;jdconfig fontsize default&gt;&gt;\n&lt;&lt;jdradbut fontsize default&gt;&gt;\n&lt;/$button&gt; TW5 default\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/jd/mob/font/font-title\&quot; caption=\&quot;Title\&quot; list-before=\&quot;$:/temp/jd/mob/font/font-body\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/jd/mob/font/font-body\&quot; caption=\&quot;Body, text buttons\&quot; list-after=\&quot;$:/temp/jd/mob/font/font-title\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/jd/mob/font/lineheight\&quot; caption=\&quot;Lineheight\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/jd/mob/font/font-tab-button\&quot; caption=\&quot;Tab buttons\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/jd/mob/font/font-button\&quot; caption=\&quot;Image buttons\&quot;/&gt;\n&lt;&lt;jdconfig fontsize custom&gt;&gt;\n&lt;&lt;jdradbut fontsize custom&gt;&gt;\n&lt;/$button&gt; Custom\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##fontsize\&quot; text=\&quot;custom\&quot;&gt;\n\nInclude unit (''px'' or ''em'') when entering custom values\n\n&lt;table style=\&quot;width:100%\&quot;&gt;\n&lt;tr&gt;\n&lt;th style=\&quot;width:40%\&quot;&gt;Element&lt;/th&gt;\n&lt;th style=\&quot;width:60%\&quot;&gt;Adjust&lt;/th&gt;\n&lt;/tr&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]prefix[$:/temp/jd/mob/font/]!suffix[sitetitle]]\&quot;&gt;\n&lt;tr&gt;\n&lt;td&gt;&lt;$view field=\&quot;caption\&quot;/&gt;&lt;/td&gt;\n&lt;td&gt;&lt;$edit-text tiddler={{!!title}} field=\&quot;temp\&quot; placeholder={{!!text}} class=\&quot;texte\&quot;/&gt;\n&lt;$reveal type=\&quot;match\&quot; state=!!temp text=\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; style=\&quot;color:grey; cursor:not-allowed;\&quot;&gt;✓&lt;/$button&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; style=\&quot;color:grey; cursor:not-allowed;\&quot;&gt;✕&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=!!temp text=\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$action-setfield $tiddler={{!!title}} text={{!!temp}}/&gt;\n&lt;$action-setfield $tiddler={{!!title}} temp=\&quot;\&quot;/&gt;✓&lt;/$button&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$action-setfield $tiddler={{!!title}} temp=\&quot;\&quot;/&gt;✕&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;/$list&gt;\n&lt;/table&gt;\n&lt;/$reveal&gt;\n&lt;br&gt;&lt;br&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/config/fonts&quot;,
&quot;tags&quot;: &quot;$:/tags/jd/config&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171120143104637&quot;,
&quot;caption&quot;: &quot;Fonts and heights&quot;
},
&quot;$:/plugins/jd/mob/readme&quot;: {
&quot;created&quot;: &quot;20171030143047925&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;This is a mobile layout that applies to narrow screens. It introduces the following:\n\n# A Topbar that can be any of the following:\n#* Hidden\n#* Titlebar (search, title, subtitle, menu)\n#* Mobbuttons bar\n#** Buttons tagged ''~$:/tags/jd/mobbutton''\n#* Searchbar\n#** Simple searchbar lists standard search results only\n#** Combined searchbar lists all search results (possibly slow on some devices)\n#* Control area containing ''Top Left Bar'', ''Page Control'', ''Mob-only'', and ''Top Right Bar'' buttons (in that order)\n#** ''Top Left Bar'' &gt;&gt; buttons tagged ''~$:/tags/TopLeftBar''\n#** ''Page control'' &gt;&gt; buttons tagged ''~$:/tags/PageControls''\n#** ''Mob-only'' &gt;&gt; other buttons tagged ''~$:/tags/jd/mobbutton''\n#** ''Top Right Bar'' &gt;&gt; buttons tagged ''~$:/tags/TopRightBar''\n#** Buttons you don't want to appear here should be tagged ''~$:/tags/jd/mobno'' \n\n# A Bottombar that can be any of the following:\n#* Hidden\n#* Mobbuttons bar\n#** Buttons tagged ''~$:/tags/jd/mobbutton''\n#* Control area containing ''Top Left Bar'', ''Page Control'', ''Mob-only'', and ''Top Right Bar'' buttons (in that order)\n#** ''Top Left Bar'' &gt;&gt; buttons tagged ''~$:/tags/TopLeftBar''\n#** ''Page control'' &gt;&gt; buttons tagged ''~$:/tags/PageControls''\n#** ''Mob-only'' &gt;&gt; other buttons tagged ''~$:/tags/jd/mobbutton''\n#** ''Top Right Bar'' &gt;&gt; buttons tagged ''~$:/tags/TopRightBar''\n#** Buttons you don't want to appear here should be tagged ''~$:/tags/jd/mobno'' \n\n//Note:// \n\nThis layout is tied to the ''Sidebar Breakpoint'' set at ''Control Panel'' &gt;&gt; ''Appearance'' &gt;&gt; ''Theme Tweaks''.\n\nThis layout is compatible with any core theme as of release date.\n\n&lt;a target=\&quot;blank\&quot; href=\&quot;http://j.d.simplemobile.tiddlyspot.com\&quot;&gt;Project Homepage on Tiddlyspot&lt;/a&gt;\n\n!! Version History\n\n!!! 2018-09-03 Release of version 1.0.4\n\n* Added ability to create tiddler out of search term via \&quot;+\&quot; button, or keyboard shortcut: \&quot;ctrl+space\&quot;\n\n[[Detailed changelog|http://j.d.simplemobile.tiddlyspot.com/#Changelog]]&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/readme&quot;,
&quot;tags&quot;: &quot;&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20180903122259331&quot;
},
&quot;$:/plugins/jd/mob/config/config&quot;: {
&quot;created&quot;: &quot;20171109145547252&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;freshinstall: yes\ndefaultconfirm: cancel\nconfigtype: list\nfontsize: default\nscrollbars: show\nbarpreset: 4\nstoryfix: no\ntitlebaradjust: no\ntopbar: fixedsearch\ntopbarchoice: hide\nsearchbar: yes\nradbuttop: fixedsearch\nsearchbarchoice: simple\nbottombar: controls\nradbuttopfixedsearchops: hide\nradbuttopcontrolsops: hide\nradbuttopmobbuttonsops: hide\nradbuttoptitleops: hide\nbottombarcontrolsops: hide\nbottombarmobbuttonsops: hide\nbarpreset1ops: hide\nbarpreset2ops: hide\nbarpreset3ops: hide\nbarpreset4ops: hide\nsearchbutton: simple\nfocus: show&quot;,
&quot;type&quot;: &quot;application/x-tiddler-dictionary&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/config/config&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122154523597&quot;
},
&quot;$:/plugins/jd/mob/config/topbar&quot;: {
&quot;created&quot;: &quot;20171028024424838&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;&lt;h2&gt;Topbar&lt;/h2&gt;\n&lt;$button class=tc-btn-invisible&gt;\n&lt;&lt;setTopsearchbar&gt;&gt;\n&lt;&lt;tglSearch&gt;&gt;\n&lt;&lt;jdconfig searchbutton simple&gt;&gt;\n&lt;&lt;jdradbut radbuttop fixedsearch&gt;&gt;\n&lt;/$button&gt; Fixed searchbar\n&lt;&lt;moreOps radbuttop fixedsearch searchbar&gt;&gt;\n&lt;$button class=tc-btn-invisible&gt;\n&lt;&lt;setTopcontrols&gt;&gt;\n&lt;&lt;tglSearch&gt;&gt;\n&lt;&lt;jdconfig searchbutton simple&gt;&gt;\n&lt;&lt;jdradbut radbuttop controls&gt;&gt;\n&lt;/$button&gt; Controls\n&lt;&lt;moreOps radbuttop controls searchbutton&gt;&gt;\n&lt;$button class=tc-btn-invisible&gt;\n&lt;&lt;setTopmobbuttons&gt;&gt;\n&lt;&lt;tglSearch&gt;&gt;\n&lt;&lt;jdconfig searchbutton simple&gt;&gt;\n&lt;&lt;jdradbut radbuttop mobbuttons&gt;&gt;\n&lt;/$button&gt; Mob buttons only\n&lt;&lt;moreOps radbuttop mobbuttons searchbutton&gt;&gt;\n&lt;$button class=tc-btn-invisible&gt;\n&lt;&lt;setToptitlebar&gt;&gt;\n&lt;&lt;tglSearch&gt;&gt;\n&lt;&lt;jdconfig searchbutton simple&gt;&gt;\n&lt;&lt;jdradbut radbuttop title&gt;&gt;\n&lt;/$button&gt; Titlebar\n&lt;&lt;moreOps radbuttop title titlebar&gt;&gt;\n&lt;$button class=tc-btn-invisible&gt;\n&lt;&lt;setTophide&gt;&gt;\n&lt;&lt;jdradbut radbuttop hide&gt;&gt;\n&lt;/$button&gt; Hidden\n&lt;br&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/config/topbar&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122131221362&quot;,
&quot;list-before&quot;: &quot;$:/plugins/jd/mob/config/bottombar&quot;,
&quot;caption&quot;: &quot;Topbar style&quot;
},
&quot;$:/plugins/jd/mob/config/bottombar&quot;: {
&quot;created&quot;: &quot;20171110164302862&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;&lt;h2&gt;Bottombar&lt;/h2&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;setBottomcontrols&gt;&gt;\n&lt;&lt;jdradbut bottombar controls&gt;&gt;\n&lt;/$button&gt; Controls\n&lt;&lt;moreOps bottombar controls searchbutton&gt;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig bottombar mobbuttons&gt;&gt;\n&lt;&lt;jdradbut bottombar mobbuttons&gt;&gt;\n&lt;/$button&gt; Mob buttons only\n&lt;&lt;moreOps bottombar mobbuttons searchbutton&gt;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;noBottom&gt;&gt;\n&lt;&lt;jdradbut bottombar hide&gt;&gt;\n&lt;/$button&gt; Hidden\n&lt;br&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/config/bottombar&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122131210851&quot;,
&quot;list-after&quot;: &quot;$:/plugins/jd/mob/config/topbar&quot;,
&quot;caption&quot;: &quot;Bottombar style&quot;
},
&quot;$:/plugins/jd/mob/config/barpresets&quot;: {
&quot;created&quot;: &quot;20171113033257223&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;&lt;h2&gt;Topbar and bottombar presets&lt;/h2&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig barpreset 1&gt;&gt;\n&lt;&lt;setToptitlebar&gt;&gt;\n&lt;&lt;noBottom&gt;&gt;\n&lt;&lt;jdradbut barpreset 1&gt;&gt;\n&lt;/$button&gt; ''Titlebar'' on top, hidden bottom\n&lt;&lt;moreOps barpreset 1 titlebar&gt;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig barpreset 2&gt;&gt;\n&lt;&lt;setTopcontrols&gt;&gt;\n&lt;&lt;noBottom&gt;&gt;\n&lt;&lt;jdradbut barpreset 2&gt;&gt;\n&lt;/$button&gt; ''Controls'' on top, hidden bottom\n&lt;&lt;moreOps barpreset 2 searchbutton&gt;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig barpreset 3&gt;&gt;\n&lt;&lt;setTophide&gt;&gt;\n&lt;&lt;setBottomcontrols&gt;&gt;\n&lt;&lt;jdradbut barpreset 3&gt;&gt;\n&lt;/$button&gt; Hidden top, ''Controls'' on bottom\n&lt;&lt;moreOps barpreset 3 searchbutton&gt;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig barpreset 4&gt;&gt;\n&lt;&lt;setTopsearchbar&gt;&gt;\n&lt;&lt;setBottomcontrols&gt;&gt;\n&lt;&lt;jdradbut barpreset 4&gt;&gt;\n&lt;/$button&gt; ''Searchbar'' on top, ''Controls'' on bottom\n&lt;&lt;moreOps barpreset 4 searchbar&gt;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig barpreset 5&gt;&gt;\n&lt;&lt;jdradbut barpreset 5&gt;&gt;\n&lt;/$button&gt; Custom topbar and bottombar\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##barpreset\&quot; text=\&quot;5\&quot;&gt;\n{{$:/plugins/jd/mob/config/topbar}}\n{{$:/plugins/jd/mob/config/bottombar}}\n&lt;/$reveal&gt;\n&lt;br&gt;&lt;br&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/config/barpresets&quot;,
&quot;tags&quot;: &quot;$:/tags/jd/config&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122154450000&quot;,
&quot;caption&quot;: &quot;Top and bottom bars&quot;
},
&quot;$:/plugins/jd/mob/template/topbar&quot;: {
&quot;text&quot;: &quot;&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##topbar\&quot; text=\&quot;fixedsearch\&quot;&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##fixedsearch\&quot; text=\&quot;combined\&quot;&gt;\n{{$:/plugins/jd/mob/template/combinedsearch}}\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##fixedsearch\&quot; text=\&quot;simple\&quot;&gt;\n{{$:/plugins/jd/mob/template/simplesearch}}\n&lt;/$reveal&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##topbar\&quot; text=\&quot;controls\&quot;&gt;\n&lt;span class=\&quot;jd-topbar\&quot;&gt;\n{{$:/plugins/jd/mob/template/controls}}\n&lt;/span&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##topbar\&quot; text=\&quot;mobbuttons\&quot;&gt;\n&lt;span class=\&quot;jd-topbar\&quot;&gt;\n&lt;div class=\&quot;tc-page-controls\&quot;&gt;\n{{$:/plugins/jd/mob/template/mobbuttons}}\n&lt;/div&gt;\n&lt;/span&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##topbar\&quot; text=\&quot;title\&quot;&gt;\n&lt;span class=\&quot;jd-topbar\&quot;&gt;\n{{$:/plugins/jd/mob/template/titlebar}}\n&lt;/span&gt;\n&lt;/$reveal&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/template/topbar&quot;,
&quot;tags&quot;: &quot;$:/tags/PageTemplate&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171118170723817&quot;,
&quot;fixedsearch&quot;: &quot;{{$:/plugins/jd/mob/template/combinedsearch}}&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;created&quot;: &quot;20171018115714311&quot;
},
&quot;$:/plugins/jd/mob/template/titlebar&quot;: {
&quot;created&quot;: &quot;20171112032454483&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;&lt;div class=\&quot;jd-title-wrapper\&quot;&gt;\n&lt;span class=\&quot;tc-site-title\&quot;&gt;&lt;$transclude tiddler=\&quot;$:/SiteTitle\&quot;/&gt;&lt;/span&gt;\n&lt;span class=\&quot;tc-site-subtitle\&quot;&gt;&lt;$transclude tiddler=\&quot;$:/SiteSubtitle\&quot;/&gt;&lt;/span&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;jd-title-controls\&quot;&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##searchbutton\&quot; text=\&quot;simple\&quot;&gt;\n{{$:/plugins/jd/mob/button/search}}\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##searchbutton\&quot; text=\&quot;combined\&quot;&gt;\n{{$:/plugins/jd/mob/button/search}}\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##searchbutton\&quot; text=\&quot;core\&quot;&gt;\n{{$:/core/ui/Buttons/advanced-search}}\n&lt;/$reveal&gt;\n{{$:/core/ui/TopBar/menu}}\n&lt;/div&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/template/titlebar&quot;,
&quot;tags&quot;: &quot;&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122134204001&quot;
},
&quot;$:/plugins/jd/mob/template/controls&quot;: {
&quot;created&quot;: &quot;20171111135718973&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n&lt;div class=\&quot;tc-page-controls\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]!tag[$:/tags/jd/mobno]]\&quot;&gt;\n&lt;$transclude/&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]!tag[$:/tags/jd/mobno]]\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;config-title&gt;&gt; text=\&quot;hide\&quot;&gt;\n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;\n&lt;/$reveal&gt;\n&lt;/$list&gt;\n{{$:/plugins/jd/mob/template/mobbuttons}}\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]!tag[$:/tags/jd/mobno]]\&quot;&gt;\n&lt;$transclude/&gt;\n&lt;/$list&gt;\n&lt;/div&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/template/controls&quot;,
&quot;tags&quot;: &quot;&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171119140040863&quot;
},
&quot;$:/plugins/jd/mob/template/bottombar&quot;: {
&quot;text&quot;: &quot;&lt;div class=\&quot;jd-bottombar\&quot;&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;controls\&quot;&gt;\n{{$:/plugins/jd/mob/template/controls}}\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;mobbuttons\&quot;&gt;\n&lt;div class=\&quot;tc-page-controls\&quot;&gt;\n{{$:/plugins/jd/mob/template/mobbuttons}}\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/template/bottombar&quot;,
&quot;tags&quot;: &quot;$:/tags/PageTemplate&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171118170729880&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;created&quot;: &quot;20171115114644869&quot;
},
&quot;$:/plugins/jd/mob/template/mobbuttons&quot;: {
&quot;text&quot;: &quot;\\define config-mobtitle()\n$:/config/jd/mobbutton/visibility/$(listItem)$\n\\end\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/jd/mobbutton]!has[draft.of]]\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;config-mobtitle&gt;&gt; text=\&quot;hide\&quot;&gt;\n&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;\n&lt;/$reveal&gt;\n&lt;/$list&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/template/mobbuttons&quot;,
&quot;tags&quot;: &quot;&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171118161831963&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;created&quot;: &quot;20171118055005587&quot;
},
&quot;$:/plugins/jd/mob/config/mobbuttons&quot;: {
&quot;created&quot;: &quot;20171118051624478&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;\\define config-base() $:/config/jd/mobbutton/visibility/\n&lt;h2&gt;Mob buttons&lt;/h2&gt;\n&lt;p&gt;Here are buttons tagged &lt;b&gt;~$:/tags/jd/mobbutton&lt;/b&gt;&lt;/p&gt;\n&lt;p&gt;Choose which ones are displayed. Drag and drop to change the ordering&lt;/p&gt;\n&lt;$set name=\&quot;tv-config-toolbar-icons\&quot; value=\&quot;yes\&quot;&gt;\n&lt;$set name=\&quot;tv-config-toolbar-text\&quot; value=\&quot;yes\&quot;&gt;\n&lt;$macrocall $name=\&quot;list-tagged-draggable\&quot; tag=\&quot;$:/tags/jd/mobbutton\&quot; itemTemplate=\&quot;$:/core/ui/ControlPanel/Toolbars/ItemTemplate\&quot;/&gt;\n&lt;/$set&gt;\n&lt;/$set&gt;\n&lt;br&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/config/mobbuttons&quot;,
&quot;tags&quot;: &quot;$:/tags/jd/config&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122150902808&quot;,
&quot;caption&quot;: &quot;Mob buttons&quot;
},
&quot;$:/plugins/jd/mob/button/config&quot;: {
&quot;text&quot;: &quot;&lt;$button tooltip=\&quot;Configure JD mobile layout\&quot; class=\&quot;tc-btn-invisible\&quot;&gt;{{$:/core/images/theme-button}}&lt;$action-sendmessage $message=\&quot;tm-modal\&quot; $param=\&quot;$:/plugins/jd/mob/config\&quot;/&gt;&lt;/$button&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/button/config&quot;,
&quot;tags&quot;: &quot;$:/tags/jd/mobbutton&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122114923959&quot;,
&quot;description&quot;: &quot;Configure JD mobile layout&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;created&quot;: &quot;20171117090228867&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/theme-button}} configure JDmob&quot;
},
&quot;$:/plugins/jd/mob/stylesheet&quot;: {
&quot;created&quot;: &quot;20171016123229521&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;@media print\n{\n.tc-sidebar-scrollable,\n.jd-search,\n.jd-topbar,\n.jd-bottombar { display: none !important; }\n}\n\n/** CONFIG RADIO BUTTONS **/\n\n.radbutton, .radbuttoff { \n display: inline-block; \n height: 12px; \n width: 12px; \n border: 2px solid &lt;&lt;colour muted-foreground&gt;&gt;; \n -webkit-transition-duration: {{$:/config/AnimationDuration}}ms;\n -moz-transition-duration: {{$:/config/AnimationDuration}}ms;\n -ms-transition-duration: {{$:/config/AnimationDuration}}ms;\n -o-transition-duration: {{$:/config/AnimationDuration}}ms;\n transition-duration: {{$:/config/AnimationDuration}}ms;\n}\n\n.radbutton { background: &lt;&lt;colour primary&gt;&gt;; }\n.radbuttoff { background: &lt;&lt;colour muted-foreground&gt;&gt;; }\n.radbutton:hover, .radbuttoff:hover { \n border: 2px solid &lt;&lt;colour primary&gt;&gt;;\n background: &lt;&lt;colour primary&gt;&gt;; \n}\n\n.jd-bq {\n margin: 5px;\n padding: 5px;\n border: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n}\n\n.jd-bq, .radbutton, .radbuttoff {\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n -ms-border-radius: 6px;\n -o-border-radius: 6px;\n border-radius: 6px;\n}\n\n.jd-btn-txt {\n border: none;\n background: none;\n font-size: inherit;\n text-decoration: underline;\n padding: 0;\n margin: 0;\n}\n\n.jd-btn-txt:hover {\n text-decoration: none;\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { \n.jd-topbar, \n.jd-bottombar,\n.jd-search { display: none; }\n} \n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { \n\n.tc-topbar { display: none !important; } \n\n.tc-tags-wrapper { margin: 5px 0 !important; }\n\n\n/** NOTIFICATIONS **/\n\n.tc-notification {\n position: fixed; \n top: 60px !important;\n right: 10px !important;\n z-index: {{!!z-bar}} !important;\n}\n\n.tc-modal {\n top: 50px !important;\n left: 50px !important;\n right: 50px !important;\n}\n\n.tc-modal-body { max-height: calc(100vh - 200px) !important; }\n\n.tc-modal-wrapper,\n.tc-plugin-reload-warning { z-index: {{!!z-notif}} !important; }\n\n\n/** STORY RIVER **/\n\n.tc-story-river { \n margin: 0 !important;\n padding-top: 0 !important;\n}\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##storyfix\&quot; text=\&quot;no\&quot;&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##topbar\&quot; text=\&quot;hide\&quot;&gt;\n\n@media print\n{\n.tc-story-river { margin-top: 0 !important; }\n}\n\n@media screen\n{\n.tc-story-river { margin-top: 50px !important; }\n}\n\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;hide\&quot;&gt;\n\n.tc-story-river { margin-bottom: 50px !important; }\n\n&lt;/$reveal&gt;\n\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##storyfix\&quot; text=\&quot;yes\&quot;&gt;\n\n.tc-story-river { \n width: 100% !important;\n position: fixed !important;\n left: 0 !important;\n overflow-y: auto !important;\n}\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##topbar\&quot; text=\&quot;hide\&quot;&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;hide\&quot;&gt;\n.tc-story-river { \n top: 50px !important;\n height: calc(100% - 50px) !important;\n}\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;hide\&quot;&gt;\n.tc-story-river { \n top: 50px !important; \n height: calc(100% - 100px) !important;\n}\n&lt;/$reveal&gt;\n\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##topbar\&quot; text=\&quot;hide\&quot;&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;hide\&quot;&gt;\n.tc-story-river { \n top: 0 !important; \n height: 100% !important;\n}\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;hide\&quot;&gt;\n.tc-story-river { \n top: 0 !important; \n height: calc(100% - 50px) !important;\n}\n&lt;/$reveal&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$reveal&gt;\n\n.tc-tiddler-frame {\n margin-bottom: 2px !important;\n padding: 15px 10px;\n overflow: auto;\n}\n\n\n/** POPUPS AND DROPDOWNS INSIDE VIEW AREA **/\n\n.tc-drop-down,\n.tc-block-dropdown {\n position: fixed !important;\n top: 50% !important;\n left: 50% !important;\n text-align: left;\n white-space: normal !important;\n max-height: calc(100% - 160px) !important;\n min-width: calc(100% - 90px) !important;\n max-width: calc(100% - 60px) !important;\n -webkit-transform: translate(-50%, -50%) !important;\n -moz-transform: translate(-50%, -50%) !important;\n -ms-transform: translate(-50%, -50%) !important;\n -o-transform: translate(-50%, -50%) !important;\n transform: translate(-50%, -50%) !important;\n -webkit-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n -moz-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n -ms-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n -o-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n overflow: auto !important;\n z-index: {{!!z-dropdown}} !important;\n}\n\n.tc-menu-list-item {\n padding-left: 5px;\n text-indent: -5px;\n white-space: normal !important;\n word-wrap: break-word !important;\n -webkit-word-break: break-all !important;\n -moz-word-break: break-all !important;\n -ms-word-break: break-all !important;\n -o-word-break: break-all !important;\n word-break: break-all !important;\n}\n\n.tc-edit-type-dropdown { overflow: auto; }\n\n\n/** SCROLLBARS **/\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##scrollbars\&quot; text=\&quot;hide\&quot;&gt;\n\nbody { \n -ms-overflow-style: -ms-autohiding-scrollbar;\n}\n\ndiv::-webkit-scrollbar,\n.tc-edit-type-dropdown::-webkit-scrollbar,\n.tc-block-dropdown::-webkit-scrollbar,\n.tc-drop-down::-webkit-scrollbar,\n.jd-search-results::-webkit-scrollbar,\n.tc-story-river::-webkit-scrollbar,\n.tc-sidebar-scrollable::-webkit-scrollbar {\n background: transparent;\n width: 0;\n}\n\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##scrollbars\&quot; text=\&quot;show\&quot;&gt;\n\nbody { \n scrollbar-face-color: &lt;&lt;colour background&gt;&gt;;\n scrollbar-arrow-color: &lt;&lt;colour page-background&gt;&gt;;\n scrollbar-track-color: &lt;&lt;colour page-background&gt;&gt;;\n scrollbar-shadow-color: &lt;&lt;colour page-background&gt;&gt;;\n}\n\ndiv::-webkit-scrollbar,\n.tc-edit-type-dropdown::-webkit-scrollbar,\n.tc-block-dropdown::-webkit-scrollbar,\n.tc-drop-down::-webkit-scrollbar,\n.tc-story-river::-webkit-scrollbar,\n.tc-sidebar-scrollable::-webkit-scrollbar {\n background: &lt;&lt;colour background&gt;&gt;;\n width: 6px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n}\n\ndiv::-webkit-scrollbar-thumb,\n.tc-edit-type-dropdown::-webkit-scrollbar-thumb,\n.tc-block-dropdown::-webkit-scrollbar-thumb,\n.tc-drop-down::-webkit-scrollbar-thumb,\n.jd-search-results::-webkit-scrollbar,\n.tc-story-river::-webkit-scrollbar-thumb,\n.tc-sidebar-scrollable::-webkit-scrollbar-thumb {\n background: &lt;&lt;colour page-background&gt;&gt;; \n width: 6px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n}\n\n.jd-search-results::-webkit-scrollbar-thumb {\n background: &lt;&lt;colour primary&gt;&gt;;\n width: 6px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n}\n\n&lt;/$reveal&gt;\n\n\n/** FOCUS **/\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##focus\&quot; text=\&quot;hide\&quot;&gt;\ntextarea:focus, select:focus, button:focus, input:focus { outline: none; }\n&lt;/$reveal&gt;\n\n\n/** TOPBAR &amp; BOTTOMBAR **/\n\n.jd-topbar,\n.jd-bottombar {\n width: 100%;\n position: fixed;\n left: 0;\n background: &lt;&lt;colour page-background&gt;&gt;;\n overflow: hidden;\n z-index: {{!!z-bar}};\n}\n\n.jd-topbar { top: 0; height: 50px; }\n.jd-bottombar { bottom: 0; }\n\n\n/** SEARCH **/\n\n.jd-search { z-index: {{!!z-search}}; }\n\n.jd-search-results {\n background: &lt;&lt;colour page-background&gt;&gt;;\n width: 100%;\n position: fixed;\n top: 50px;\n left: 0;\n margin: 0;\n padding: 0 10px;\n overflow-y: auto;\n z-index: {{!!z-searchwrapper}};\n}\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;hide\&quot;&gt;\n.jd-search-results { max-height: calc(100% - 100px); }\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;hide\&quot;&gt;\n.jd-search-results { max-height: calc(100% - 50px); }\n&lt;/$reveal&gt;\n\n.jd-searchwrapper {\n background: &lt;&lt;colour page-background&gt;&gt;;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 50px;\n z-index: {{!!z-searchwrapper}};\n}\n\n.jd-searchbar {\n width: calc(100% - 20px);\n height: 30px; \n position: fixed;\n top: 0;\n left: 0;\n font-size: 16px !important;\n background: transparent !important;\n border: none;\n border-bottom: 2px solid&lt;&lt;colour primary&gt;&gt;;\n&lt;$reveal state=\&quot;$:/plugins/jd/mob/config/config##searchbarchoice\&quot; type=\&quot;match\&quot; text=\&quot;combined\&quot;&gt;\n padding: 0 160px 0 10px;\n&lt;/$reveal&gt;\n&lt;$reveal state=\&quot;$:/plugins/jd/mob/config/config##searchbarchoice\&quot; type=\&quot;match\&quot; text=\&quot;simple\&quot;&gt;\n padding: 0 100px 0 10px;\n&lt;/$reveal&gt;\n margin: 10px;\n}\n\n.jd-search-buttons {\n&lt;$reveal state=\&quot;$:/plugins/jd/mob/config/config##searchbarchoice\&quot; type=\&quot;match\&quot; text=\&quot;combined\&quot;&gt;\n width: 160px; \n&lt;/$reveal&gt;\n&lt;$reveal state=\&quot;$:/plugins/jd/mob/config/config##searchbarchoice\&quot; type=\&quot;match\&quot; text=\&quot;simple\&quot;&gt;\n width: 100px; \n&lt;/$reveal&gt;\n position: fixed; \n top: 12px;\n right: 0; \n background: &lt;&lt;colour page-background&gt;&gt;;\n border: transparent;\n margin-right: 20px; \n text-align: right;\n vertical-align: middle;\n}\n\n.jd-search-buttons {\n z-index: {{!!z-searchbuttons}};\n}\n\n.jd-search-buttons .tc-popup-keep,\n.jd-search-buttons .tc-btn-invisible {\n font-size: 18px;\n background: transparent;\n border: transparent;\n cursor: pointer;\n}\n\n.jd-search-buttons .tc-btn-invisible { margin-left: 8px; }\n\n\n/** CONTROLS **/\n\n.jd-title-controls {\n display: flex;\n justify-content: space-between;\n margin: 10px;\n}\n\n.jd-search-buttons button,\n.jd-title-controls button {\n fill: &lt;&lt;colour sidebar-controls-foreground&gt;&gt;;\n font-size: 1.6em;\n -webkit-transition-duration: {{$:/config/AnimationDuration}}ms;\n -moz-transition-duration: {{$:/config/AnimationDuration}}ms;\n -ms-transition-duration: {{$:/config/AnimationDuration}}ms;\n -o-transition-duration: {{$:/config/AnimationDuration}}ms;\n transition-duration: {{$:/config/AnimationDuration}}ms;\n}\n\n.jd-search-buttons button:hover,\n.jd-title-controls button:hover {\n fill: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;;\n}\n\n.jd-topbar .tc-page-controls,\n.jd-bottombar .tc-page-controls {\n display: flex;\n justify-content: space-between;\n height: 30px;\n margin: 10px;\n}\n\n.tc-page-controls button { margin: 0 !important;}\n\n\n/** TITLEBAR **/\n\n.jd-title-wrapper .tc-site-title,\n.jd-title-wrapper .tc-site-subtitle {\n position: absolute;\n left: 50%;\n text-align: center;\n -webkit-transform: translate(-50%, 50%);\n -moz-transform: translate(-50%, 50%);\n -ms-transform: translate(-50%, 50%);\n -o-transform: translate(-50%, 50%);\n transform: translate(-50%, 50%);\n}\n\n.jd-title-wrapper .tc-site-subtitle {\n width: calc(100% - 100px);\n}\n\n\n/** SIDEBAR LISTS **/\n\n.tc-sidebar-scrollable .tc-site-title,\n.tc-sidebar-scrollable .tc-site-subtitle,\n.tc-sidebar-scrollable .tc-page-controls,\n.tc-sidebar-scrollable .tc-search\n { display: none; }\n\n.tc-sidebar-header { padding: 0 !important; }\n\n&lt;$reveal state=\&quot;$:/state/sidebar\&quot; type=\&quot;nomatch\&quot; text=\&quot;no\&quot;&gt;\n.tc-sidebar-scrollable {\n background: &lt;&lt;colour background&gt;&gt;;\n width: 100%;\n position: fixed;\n left: 0; \n z-index: {{!!z-sidebar}};\n overflow: auto !important;\n}\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/state/sidebar\&quot; text=\&quot;no\&quot;&gt;\n\n.tc-sidebar-scrollable { display:none; }\n\n.tc-tab-set { overflow-y: auto !important; }\n\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##topbar\&quot; text=\&quot;hide\&quot;&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;hide\&quot;&gt;\n.tc-sidebar-scrollable { \n top: 50px !important;\n height: calc(100% - 50px) !important;\n}\n\n.tc-sidebar-scrollable .tc-tab-buttons { top: 50px; }\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;hide\&quot;&gt;\n.tc-sidebar-scrollable { \n top: 50px !important;\n height: calc(100% - 100px) !important;\n}\n\n.tc-sidebar-scrollable .tc-tab-buttons { top: 50px; }\n&lt;/$reveal&gt;\n\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##topbar\&quot; text=\&quot;hide\&quot;&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;hide\&quot;&gt;\n.tc-sidebar-scrollable { \n top: 0 !important;\n height: 100% !important;\n}\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##bottombar\&quot; text=\&quot;hide\&quot;&gt;\n.tc-sidebar-scrollable { \n top: 0 !important;\n height: calc(100% - 50px) !important;\n}\n&lt;/$reveal&gt;\n\n&lt;/$reveal&gt;\n\n\n/** SIDEBAR LISTS BUTTONS **/\n\n.tc-sidebar-scrollable .tc-tab-buttons { margin: 10px; }\n\n.tc-sidebar-scrollable .tc-tab-content { \n margin: 10px !important; \n border: 0 !important;\n}\n\n\n/** ADJUSTABLE FONTS AND HEIGHTS **/\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##titlebaradjust\&quot; text=\&quot;no\&quot;&gt;\n.jd-title-wrapper .tc-site-title { top: -3px; font-size: 18px; }\n.jd-title-wrapper .tc-site-subtitle { top: 15px; font-size: 12px; }\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##titlebaradjust\&quot; text=\&quot;yes\&quot;&gt;\n.jd-title-wrapper .tc-site-title { top: {{!!height-sitetitle}}; font-size: {{!!font-sitetitle}}; }\n.jd-title-wrapper .tc-site-subtitle { top: {{!!height-subsitetitle}}; font-size: {{!!font-subsitetitle}}; }\n&lt;/$reveal&gt;\n\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##fontsize\&quot; text=\&quot;default\&quot;&gt;\n\n.tc-tiddler-view-frame h2.tc-title,\ninput.tc-titlebar.tc-edit-texteditor { \n font-size: {{!!font-title}} !important; \n}\n\n.tc-tiddler-view-frame .tc-subtitle { \n font-size: calc({{!!font-body}} - 4px) !important; \n}\n\nh1, h1 a { \n font-size: calc({{!!font-body}} + 6px) !important; \n}\n\nh2, h2 a { \n font-size: calc({{!!font-body}} + 4px) !important; \n}\n\nh3, h3 a { \n font-size: calc({{!!font-body}} + 2px) !important; \n}\n\nh4, a, li, table,\ninput, textarea, select,\n.tc-tiddler-preview-preview p,\n.tc-tiddler-view-frame p,\n.tc-modal p,\n.tc-btn-text,\n.jd-search-results,\n.tc-tab-content,\n.tc-modal-header h3 { \n font-size: {{!!font-body}} !important; \n line-height: {{!!lineheight}} !important;\n}\n\nbutton.tc-btn-invisible.tc-remove-tag-button,\n.tc-tag-label.tc-btn-invisible { \n font-size: calc({{!!font-body}} - 4px) !important; \n}\n\n.tc-tab-buttons button,\n.tc-tab-buttons.tc-vertical button,\n.tc-sidebar-scrollable .tc-tab-buttons button,\n.tc-sidebar-scrollable .tc-tab-buttons.tc-vertical button {\n font-size: {{!!font-tab-button}} !important;\n}\n\n.tc-btn-invisible,\n.tc-tiddler-controls button, \n.tc-tiddler-controls button svg, \n.tc-tiddler-controls button img,\n.tc-image-buttons,\n.tc-page-controls { \n font-size: {{!!font-button}} !important; \n}\n\n.tc-tiddler-controls button svg, \n.tc-tiddler-controls button img,\n.tc-image-buttons { \n height: {{!!font-button}} !important; \n width: {{!!font-button}} !important; \n}\n\n&lt;/$reveal&gt;\n\n}&quot;,
&quot;z-sidebar&quot;: &quot;1500&quot;,
&quot;z-searchwrapper&quot;: &quot;2500&quot;,
&quot;z-searchbuttons&quot;: &quot;4100&quot;,
&quot;z-search&quot;: &quot;4000&quot;,
&quot;z-notif&quot;: &quot;9000&quot;,
&quot;z-dropdown&quot;: &quot;4000&quot;,
&quot;z-bar&quot;: &quot;2000&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/stylesheet&quot;,
&quot;tags&quot;: &quot;$:/tags/Stylesheet&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20180903124046078&quot;,
&quot;lineheight&quot;: &quot;{{$:/temp/jd/mob/font/lineheight}}&quot;,
&quot;height-subsitetitle&quot;: &quot;{{$:/temp/jd/mob/font/height-subsitetitle}}&quot;,
&quot;height-sitetitle&quot;: &quot;{{$:/temp/jd/mob/font/height-sitetitle}}&quot;,
&quot;font-title&quot;: &quot;{{$:/temp/jd/mob/font/font-title}}&quot;,
&quot;font-tab-button&quot;: &quot;{{$:/temp/jd/mob/font/font-tab-button}}&quot;,
&quot;font-subsitetitle&quot;: &quot;{{$:/temp/jd/mob/font/font-subsitetitle}}&quot;,
&quot;font-sitetitle&quot;: &quot;{{$:/temp/jd/mob/font/font-sitetitle}}&quot;,
&quot;font-button&quot;: &quot;{{$:/temp/jd/mob/font/font-button}}&quot;,
&quot;font-body&quot;: &quot;{{$:/temp/jd/mob/font/font-body}}&quot;,
&quot;list-after&quot;: &quot;$:/themes/tiddlywiki/vanilla/base&quot;
},
&quot;$:/plugins/jd/mob/config/searchbutton&quot;: {
&quot;created&quot;: &quot;20171118142818660&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;&lt;h3&gt;Choose search button&lt;/h3&gt;\n\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;tglSearch show&gt;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\&quot; text=\&quot;hide\&quot;/&gt;\n&lt;&lt;jdconfig searchbarchoice simple&gt;&gt;\n&lt;&lt;jdconfig searchbutton simple&gt;&gt;\n&lt;&lt;jdradbut searchbutton simple&gt;&gt;\n&lt;/$button&gt; Toggle for simple searchbar\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;tglSearch show&gt;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\&quot; text=\&quot;hide\&quot;/&gt;\n&lt;&lt;jdconfig searchbarchoice combined&gt;&gt;\n&lt;&lt;jdconfig searchbutton combined&gt;&gt;\n&lt;&lt;jdradbut searchbutton combined&gt;&gt;\n&lt;/$button&gt; Toggle for combined searchbar\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;tglSearch hide&gt;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\&quot; text=\&quot;show\&quot;/&gt;\n&lt;&lt;jdconfig searchbutton core&gt;&gt;\n&lt;&lt;jdradbut searchbutton core&gt;&gt;\n&lt;/$button&gt; Button to core search\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;tglSearch hide&gt;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\&quot; text=\&quot;hide\&quot;/&gt;\n&lt;&lt;jdconfig searchbutton hide&gt;&gt;\n&lt;&lt;jdradbut searchbutton hide&gt;&gt;\n&lt;/$button&gt; Hidden\n&lt;br&gt;&lt;br&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/config/searchbutton&quot;,
&quot;tags&quot;: &quot;&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122125953528&quot;,
&quot;caption&quot;: &quot;Choose search button&quot;
},
&quot;$:/plugins/jd/mob/config/titlebar&quot;: {
&quot;created&quot;: &quot;20171118171842911&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;&lt;h3&gt;Vertical position&lt;/h3&gt;\n\n&lt;$button class=tc-btn-invisible&gt;\n&lt;&lt;jdconfig titlebaradjust no&gt;&gt;\n&lt;&lt;jdradbut titlebaradjust no&gt;&gt;\n&lt;/$button&gt; Default\n&lt;br&gt;\n&lt;$button class=tc-btn-invisible&gt;\n&lt;&lt;jdconfig titlebaradjust yes&gt;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/jd/mob/font/height-sitetitle\&quot; caption=\&quot;Site title vertical position\&quot; text=\&quot;-3px\&quot; list-after=\&quot;$:/temp/jd/mob/font/font-sitetitle\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/jd/mob/font/font-sitetitle\&quot; caption=\&quot;Site title font size\&quot; text=\&quot;18px\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/jd/mob/font/height-subsitetitle\&quot; caption=\&quot;Site subtitle vertical position\&quot; text=\&quot;15px\&quot; list-after=\&quot;$:/temp/jd/mob/font/font-subsitetitle\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/jd/mob/font/font-subsitetitle\&quot; caption=\&quot;Site subtitle font size\&quot; text=\&quot;12px\&quot;/&gt;\n&lt;&lt;jdradbut titlebaradjust yes&gt;&gt;\n&lt;/$button&gt; Custom\n\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##titlebaradjust\&quot; text=\&quot;yes\&quot;&gt;\n\nInclude unit (''px'' or ''em'') when entering custom values\n\n&lt;table style=\&quot;width:100%\&quot;&gt;\n&lt;tr&gt;\n&lt;th style=\&quot;width:40%\&quot;&gt;Element&lt;/th&gt;\n&lt;th style=\&quot;width:60%\&quot;&gt;Adjust&lt;/th&gt;\n&lt;/tr&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]prefix[$:/temp/jd/mob/font/]suffix[sitetitle]]\&quot;&gt;\n&lt;tr&gt;\n&lt;td&gt;&lt;$view field=\&quot;caption\&quot;/&gt;&lt;/td&gt;\n&lt;td&gt;&lt;$edit-text tiddler={{!!title}} field=\&quot;temp\&quot; placeholder={{!!text}} class=\&quot;texte\&quot;/&gt;\n&lt;$reveal type=\&quot;match\&quot; state=!!temp text=\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; style=\&quot;color:grey; cursor:not-allowed;\&quot;&gt;✓&lt;/$button&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; style=\&quot;color:grey; cursor:not-allowed;\&quot;&gt;✕&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=!!temp text=\&quot;\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$action-setfield $tiddler={{!!title}} text={{!!temp}}/&gt;\n&lt;$action-setfield $tiddler={{!!title}} temp=\&quot;\&quot;/&gt;✓&lt;/$button&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$action-setfield $tiddler={{!!title}} temp=\&quot;\&quot;/&gt;✕&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;/$list&gt;\n&lt;/table&gt;\n&lt;/$reveal&gt;\n{{$:/plugins/jd/mob/config/searchbutton}}&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/config/titlebar&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171119072342630&quot;,
&quot;caption&quot;: &quot;Fonts and heights&quot;,
&quot;tags&quot;: &quot;&quot;
},
&quot;$:/plugins/jd/mob/config/searchbar&quot;: {
&quot;created&quot;: &quot;20171118171759396&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;&lt;h3&gt;Choose searchbar style&lt;/h3&gt;\n\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;tglSearch show&gt;&gt;\n&lt;&lt;jdconfig searchbarchoice combined&gt;&gt;\n&lt;&lt;jdconfig searchbutton combined&gt;&gt;\n&lt;&lt;jdradbut searchbutton combined&gt;&gt;\n&lt;/$button&gt; Combined search\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;tglSearch show&gt;&gt;\n&lt;&lt;jdconfig searchbarchoice simple&gt;&gt;\n&lt;&lt;jdconfig searchbutton simple&gt;&gt;\n&lt;&lt;jdradbut searchbutton simple&gt;&gt;\n&lt;/$button&gt; Simple search\n&lt;p&gt;\n&lt;$checkbox tiddler=\&quot;$:/config/jd/mobbutton/visibility/$:/plugins/jd/mob/button/search\&quot; field=\&quot;text\&quot; checked=\&quot;show\&quot; unchecked=\&quot;hide\&quot; default=\&quot;show\&quot;/&gt; Show search button at controls\n&lt;/p&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/config/searchbar&quot;,
&quot;tags&quot;: &quot;&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122123127279&quot;,
&quot;caption&quot;: &quot;Choose searchbar style&quot;
},
&quot;$:/plugins/jd/mob/macros&quot;: {
&quot;created&quot;: &quot;20171119044207910&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;\\define jdconf() $:/plugins/jd/mob/config/config\n\\define jdconfont() $:/temp/jd/mob/font/\n\\define jdconfig(config:\&quot;\&quot; choice:\&quot;\&quot;)\n&lt;$action-setfield $tiddler=&lt;&lt;jdconf&gt;&gt; $index=\&quot;$config$\&quot; $value=$choice$/&gt;\n\\end\n\\define moreOps(config:\&quot;\&quot; choice:\&quot;\&quot; option:\&quot;\&quot;)\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$(jdconf)$##$config$\&quot; text=\&quot;$choice$\&quot;&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$(jdconf)$##$config$$choice$ops\&quot; text=\&quot;show\&quot;&gt;\n&lt;$button class =\&quot;jd-btn-txt\&quot; set=\&quot;$(jdconf)$##$config$$choice$ops\&quot; setTo=\&quot;show\&quot;&gt; Show options&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$(jdconf)$##$config$$choice$ops\&quot; text=\&quot;show\&quot;&gt;\n&lt;$button class =\&quot;jd-btn-txt\&quot; set=\&quot;$(jdconf)$##$config$$choice$ops\&quot; setTo=\&quot;hide\&quot;&gt; Hide options&lt;/$button&gt;\n&lt;div class=\&quot;jd-bq\&quot;&gt;{{$:/plugins/jd/mob/config/$option$}}&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/$reveal&gt;\n&lt;br&gt;\n\\end\n\\define jdfont(font-title:\&quot;\&quot; font-body:\&quot;\&quot; lineheight:\&quot;\&quot; font-tab:\&quot;\&quot; font-button:\&quot;\&quot;)\n&lt;$action-setfield $tiddler=\&quot;$(jdconfont)$font-title\&quot; text=\&quot;$font-title$\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$(jdconfont)$font-body\&quot; text=\&quot;$font-body$\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$(jdconfont)$lineheight\&quot; text=\&quot;$lineheight$\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$(jdconfont)$font-tab-button\&quot; text=\&quot;$font-tab$\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$(jdconfont)$font-button\&quot; text=\&quot;$font-button$\&quot;/&gt;\n\\end\n\\define jdradbut(config:\&quot;\&quot; choice:\&quot;\&quot;)\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$(jdconf)$##$config$\&quot; text=\&quot;$choice$\&quot;&gt;&lt;div class=\&quot;radbutton\&quot;&gt;&lt;/div&gt;&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$(jdconf)$##$config$\&quot; text=\&quot;$choice$\&quot;&gt;&lt;div class=\&quot;radbuttoff\&quot;&gt;&lt;/div&gt;&lt;/$reveal&gt;\n\\end\n\\define tglSearch(choice:\&quot;show\&quot;)\n&lt;$action-setfield $tiddler=\&quot;$:/config/jd/mobbutton/visibility/$:/plugins/jd/mob/button/search\&quot; text=$choice$/&gt;\n\\end\n\\define notPreset()\n&lt;&lt;jdconfig barpreset 0&gt;&gt;\n\\end\n\\define setTopsearchbar()\n&lt;&lt;jdconfig topbar fixedsearch&gt;&gt;\n&lt;&lt;jdconfig topbarchoice hide&gt;&gt;\n&lt;&lt;jdconfig searchbar yes&gt;&gt;\n&lt;&lt;jdconfig radbuttop fixedsearch&gt;&gt;\n\\end\n\\define setToptitlebar()\n&lt;&lt;jdconfig searchbar no&gt;&gt;\n&lt;&lt;jdconfig topbar title&gt;&gt;\n&lt;&lt;jdconfig topbarchoice title&gt;&gt;\n&lt;&lt;jdconfig radbuttop title&gt;&gt;\n\\end\n\\define setTopcontrols()\n&lt;&lt;jdconfig searchbar no&gt;&gt;\n&lt;&lt;jdconfig topbar controls&gt;&gt;\n&lt;&lt;jdconfig topbarchoice controls&gt;&gt;\n&lt;&lt;jdconfig radbuttop controls&gt;&gt;\n\\end\n\\define setTopmobbuttons()\n&lt;&lt;jdconfig searchbar no&gt;&gt;\n&lt;&lt;jdconfig topbar mobbuttons&gt;&gt;\n&lt;&lt;jdconfig topbarchoice mobbuttons&gt;&gt;\n&lt;&lt;jdconfig radbuttop mobbuttons&gt;&gt;\n\\end\n\\define setTophide()\n&lt;&lt;jdconfig searchbar no&gt;&gt;\n&lt;&lt;jdconfig topbar hide&gt;&gt;\n&lt;&lt;jdconfig topbarchoice hide&gt;&gt;\n&lt;&lt;jdconfig radbuttop hide&gt;&gt;\n\\end\n\\define noBottom()\n&lt;&lt;jdconfig bottombar hide&gt;&gt;\n\\end\n\\define setBottomcontrols()\n&lt;&lt;jdconfig bottombar controls&gt;&gt;\n\\end\n\\define setJDmobdefaults()\n&lt;&lt;tglSearch&gt;&gt;\n&lt;&lt;jdconfig freshinstall yes&gt;&gt;\n&lt;&lt;jdconfig configtype list&gt;&gt;\n&lt;&lt;jdfont&gt;&gt;\n&lt;&lt;jdconfig fontsize default&gt;&gt;\n&lt;&lt;jdconfig scrollbars show&gt;&gt;\n&lt;&lt;jdconfig focus show&gt;&gt;\n&lt;&lt;jdconfig storyfix no&gt;&gt;\n&lt;&lt;jdconfig titlebaradjust no&gt;&gt;\n&lt;&lt;jdconfig topbarchoice hide&gt;&gt;\n&lt;&lt;jdconfig searchbarchoice simple&gt;&gt;\n&lt;&lt;jdconfig searchbutton simple&gt;&gt;\n&lt;&lt;jdconfig barpreset 4&gt;&gt;\n&lt;&lt;setTopsearchbar&gt;&gt;\n&lt;&lt;setBottomcontrols&gt;&gt;\n&lt;&lt;jdconfig radbuttopfixedsearchops hide&gt;&gt;\n&lt;&lt;jdconfig radbuttopcontrolsops hide&gt;&gt;\n&lt;&lt;jdconfig radbuttopmobbuttonsops hide&gt;&gt;\n&lt;&lt;jdconfig radbuttoptitleops hide&gt;&gt;\n&lt;&lt;jdconfig bottombarcontrolsops hide&gt;&gt;\n&lt;&lt;jdconfig bottombarmobbuttonsops hide&gt;&gt;\n&lt;&lt;jdconfig barpreset1ops hide&gt;&gt;\n&lt;&lt;jdconfig barpreset2ops hide&gt;&gt;\n&lt;&lt;jdconfig barpreset3ops hide&gt;&gt;\n&lt;&lt;jdconfig barpreset4ops hide&gt;&gt;\n&lt;$fieldmangler tiddler=\&quot;$:/plugins/jd/mob/button/search\&quot;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-add-tag\&quot; $param=\&quot;$:/tags/jd/mobbutton\&quot;/&gt;\n&lt;/$fieldmangler&gt;\n\\end&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/macros&quot;,
&quot;tags&quot;: &quot;$:/tags/Macro&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122150921869&quot;
},
&quot;$:/plugins/jd/mob/button/search&quot;: {
&quot;created&quot;: &quot;20171122115403541&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##searchbar\&quot; text=\&quot;yes\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; tooltip=\&quot;Show searchbar\&quot; set=\&quot;$:/plugins/jd/mob/config/config##searchbar\&quot; setTo=\&quot;yes\&quot;&gt;\n&lt;&lt;jdconfig topbar search&gt;&gt;\n{{$:/core/images/advanced-search-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##searchbar\&quot; text=\&quot;yes\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; tooltip=\&quot;Hide searchbar\&quot; set=\&quot;$:/plugins/jd/mob/config/config##searchbar\&quot; setTo=\&quot;no\&quot;&gt;\n&lt;&lt;jdconfig topbar hide&gt;&gt;\n{{$:/core/images/advanced-search-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/button/search&quot;,
&quot;tags&quot;: &quot;$:/tags/jd/mobbutton&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20171122154523596&quot;,
&quot;description&quot;: &quot;Toggle searchbar visibility&quot;,
&quot;caption&quot;: &quot;{{$:/core/images/advanced-search-button}} search&quot;
},
&quot;$:/plugins/jd/mob/template/search&quot;: {
&quot;created&quot;: &quot;20171018115714311&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;\\define NewTidActions(searcharea)\n&lt;$action-createtiddler $basetitle={{$searcharea$}} $savetitle=\&quot;$:/temp/NewTidTitle\&quot;/&gt;\n&lt;$action-sendmessage $message=\&quot;tm-edit-tiddler\&quot; $param={{$:/temp/NewTidTitle}}/&gt;\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/NewTidTitle\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$searcharea$\&quot; text=\&quot;\&quot;/&gt;\n\\end\n\n\\define NewTidBtn(searcharea)\n&lt;$button tooltip=\&quot;Create new tiddler with this title\&quot; class=\&quot;tc-btn-invisible\&quot; actions=&lt;&lt;NewTidActions \&quot;$searcharea$\&quot;&gt;&gt;&gt;\n{{$:/core/images/new-button}}\n&lt;/$button&gt;\n\\end\n\n\\define lingo-base() $:/language/Search/\n&lt;$reveal state=\&quot;$:/plugins/jd/mob/config/config##searchbar\&quot; type=\&quot;match\&quot; text=\&quot;yes\&quot; default=\&quot;yes\&quot; retain=\&quot;yes\&quot; animate=\&quot;yes\&quot;&gt;\n\n&lt;$reveal state=\&quot;$:/plugins/jd/mob/config/config##searchbarchoice\&quot; type=\&quot;match\&quot; text=\&quot;simple\&quot;&gt;\n&lt;div class=\&quot;jd-search\&quot;&gt;\n&lt;$keyboard class=\&quot;jd-searchwrapper\&quot; tag=\&quot;div\&quot; key=\&quot;ctrl+space\&quot; actions=&lt;&lt;NewTidActions \&quot;$:/temp/search\&quot;&gt;&gt;&gt;\n&lt;$edit-text tiddler=\&quot;$:/temp/search\&quot; type=\&quot;search\&quot; tag=\&quot;input\&quot; placeholder={{$:/language/Search/Search}} class=\&quot;jd-searchbar\&quot;/&gt;\n&lt;/$keyboard&gt;\n&lt;div class=\&quot;jd-search-buttons\&quot;&gt;\n&lt;$list filter=\&quot;[[$:/temp/search]!text[]]\&quot; variable=\&quot;statecheck\&quot;&gt;\n&lt;&lt;NewTidBtn \&quot;$:/temp/search\&quot;&gt;&gt;\n&lt;/$list&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##radbuttop\&quot; text=\&quot;fixedsearch\&quot;&gt;\n&lt;$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&quot; text={{$:/temp/search}}/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/search\&quot; text=\&quot;\&quot;/&gt;\n&lt;$action-navigate $to=\&quot;$:/AdvancedSearch\&quot;/&gt;\n{{$:/core/images/advanced-search-button}}\n&lt;/$button&gt;\n&lt;$list filter=\&quot;[[$:/temp/search]!text[]]\&quot; variable=\&quot;statecheck\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; tooltip=\&quot;Clear searchbar\&quot;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&quot; text=\&quot;\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/search\&quot; text=\&quot;\&quot;/&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;/$list&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##radbuttop\&quot; text=\&quot;fixedsearch\&quot;&gt;\n&lt;$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig searchbar no&gt;&gt;\n&lt;&lt;jdconfig topbar {{$:/plugins/jd/mob/config/config##topbarchoice}}&gt;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&quot; text={{$:/temp/search}}/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/search\&quot; text=\&quot;\&quot;/&gt;\n&lt;$action-navigate $to=\&quot;$:/AdvancedSearch\&quot;/&gt;\n{{$:/core/images/advanced-search-button}}\n&lt;/$button&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; tooltip=\&quot;Clear and hide searchbar\&quot;&gt;\n&lt;&lt;jdconfig searchbar no&gt;&gt;\n&lt;&lt;jdconfig topbar {{$:/plugins/jd/mob/config/config##topbarchoice}}&gt;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&quot; text=\&quot;\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/search\&quot; text=\&quot;\&quot;/&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;jd-search-results\&quot;&gt;\n&lt;$list filter=\&quot;[[$:/temp/search]!text[]]\&quot; variable=\&quot;statecheck\&quot;&gt;\n&lt;$scrollable fallthrough=\&quot;no\&quot; class=\&quot;results\&quot;&gt;\n&lt;$set name=\&quot;searchTiddler\&quot; value=\&quot;$:/temp/search\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\&quot;&gt;\n&lt;$transclude/&gt;\n&lt;/$list&gt;\n\&quot;\&quot;\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\&quot; default={{$:/config/SearchResults/Default}}/&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$scrollable&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n\n&lt;$reveal state=\&quot;$:/plugins/jd/mob/config/config##searchbarchoice\&quot; type=\&quot;match\&quot; text=\&quot;combined\&quot;&gt;\n&lt;div class=\&quot;jd-search\&quot;&gt;\n&lt;$keyboard class=\&quot;jd-searchwrapper\&quot; tag=\&quot;div\&quot; key=\&quot;ctrl+space\&quot; actions=&lt;&lt;NewTidActions \&quot;$:/temp/advancedsearch\&quot;&gt;&gt;&gt;\n&lt;$linkcatcher to=\&quot;$:/temp/advancedsearch\&quot;&gt;\n&lt;$edit-text tiddler=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;search\&quot; tag=\&quot;input\&quot; placeholder={{$:/language/Search/Search}} class=\&quot;jd-searchbar\&quot;/&gt;\n&lt;/$linkcatcher&gt;\n&lt;/$keyboard&gt;\n&lt;div class=\&quot;jd-search-buttons\&quot;&gt;\n&lt;$list filter=\&quot;[[$:/temp/advancedsearch]!text[]]\&quot; variable=\&quot;statecheck\&quot;&gt;\n&lt;&lt;NewTidBtn \&quot;$:/temp/advancedsearch\&quot;&gt;&gt;\n&lt;/$list&gt;\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete}}\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown}}\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/export}}\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##radbuttop\&quot; text=\&quot;fixedsearch\&quot;&gt;\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear}} \n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##radbuttop\&quot; text=\&quot;fixedsearch\&quot;&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot; tooltip=\&quot;Clear and hide searchbar\&quot;&gt;\n&lt;&lt;jdconfig searchbar no&gt;&gt;\n&lt;&lt;jdconfig topbar {{$:/plugins/jd/mob/config/config##topbarchoice}}&gt;&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&quot; text=\&quot;\&quot;/&gt;\n&lt;$action-setfield $tiddler=\&quot;$:/temp/search\&quot; text=\&quot;\&quot;/&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;jd-search-results\&quot;&gt;\n&lt;!--STANDARD--&gt;\n&lt;$list filter=\&quot;[[$:/temp/advancedsearch]!text[]]\&quot; variable=\&quot;statecheck\&quot;&gt;\n&lt;br&gt;\n&lt;$list filter=\&quot;[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;{{$:/language/Search/Search/TooShort}}\&quot;\&quot;\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$set name=\&quot;searchTiddler\&quot; value=\&quot;$:/temp/advancedsearch\&quot;&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\&quot; emptyMessage=\&quot;\&quot;\&quot;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\&quot;&gt;\n&lt;$transclude/&gt;\n&lt;/$list&gt;\n\&quot;\&quot;\&quot;&gt;\n&lt;$macrocall $name=\&quot;tabs\&quot; tabsList=\&quot;[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\&quot; default={{$:/config/SearchResults/Default}}/&gt;\n&lt;/$list&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;!--STANDARD--&gt;\n&lt;!--FILTER--&gt;\n&lt;$list filter=\&quot;[[$:/temp/advancedsearch]!text[]]\&quot; variable=\&quot;statecheck\&quot;&gt;\n&lt;br&gt;&lt;br&gt;\n&lt;$set name=\&quot;resultCount\&quot; value=\&quot;\&quot;\&quot;&lt;$count filter={{$:/temp/advancedsearch}}/&gt;\&quot;\&quot;\&quot;&gt;\nFilter search: &lt;&lt;lingo Filter/Matches&gt;&gt;\n&lt;$list filter={{$:/temp/advancedsearch}} template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;!--FILTER--&gt;\n&lt;!--SYSTEM--&gt;\n&lt;$list filter=\&quot;[[$:/temp/advancedsearch]!text[]]\&quot; variable=\&quot;statecheck\&quot;&gt;\n&lt;br&gt;\n&lt;$list filter=\&quot;[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$set name=\&quot;resultCount\&quot; value=\&quot;\&quot;\&quot;&lt;$count filter=\&quot;[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]\&quot;/&gt;\&quot;\&quot;\&quot;&gt;\nSystem search: &lt;&lt;lingo System/Matches&gt;&gt;\n&lt;$list filter=\&quot;[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]\&quot; template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;!--SYSTEM--&gt;\n&lt;!--SHADOWS--&gt;\n&lt;$list filter=\&quot;[[$:/temp/advancedsearch]!text[]]\&quot; variable=\&quot;statecheck\&quot;&gt;\n&lt;br&gt;\n&lt;$list filter=\&quot;[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$set name=\&quot;resultCount\&quot; value=\&quot;\&quot;\&quot;&lt;$count filter=\&quot;[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]\&quot;/&gt;\&quot;\&quot;\&quot;&gt;\nShadows search: &lt;&lt;lingo Shadows/Matches&gt;&gt;\n&lt;$list filter=\&quot;[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]\&quot; template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$list&gt;\n&lt;!--SHADOWS--&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/$reveal&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/template/search&quot;,
&quot;tags&quot;: &quot;$:/tags/PageTemplate&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;modified&quot;: &quot;20180903123722931&quot;
},
&quot;$:/plugins/jd/mob/config/misc&quot;: {
&quot;created&quot;: &quot;20171122140327337&quot;,
&quot;creator&quot;: &quot;JD&quot;,
&quot;text&quot;: &quot;&lt;h2&gt;Miscellaneous&lt;/h2&gt;\n&lt;h3&gt;Config button&lt;/h3&gt;\n&lt;$checkbox tiddler=\&quot;$:/config/jd/mobbutton/visibility/$:/plugins/jd/mob/button/config\&quot; field=\&quot;text\&quot; checked=\&quot;show\&quot; unchecked=\&quot;hide\&quot; default=\&quot;show\&quot;/&gt; Show {{$:/core/images/theme-button}} button at ''Controls'' / ''Mobbuttons''\n&lt;br&gt;&lt;br&gt;\n&lt;hr&gt;\n&lt;h3&gt;Scrollbars&lt;/h3&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig scrollbars hide&gt;&gt;\n&lt;&lt;jdradbut scrollbars hide&gt;&gt;\n&lt;/$button&gt; Invisible scrollbars\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig scrollbars show&gt;&gt;\n&lt;&lt;jdradbut scrollbars show&gt;&gt;\n&lt;/$button&gt; Visible scrollbars\n&lt;br&gt;&lt;br&gt;\n&lt;hr&gt;\n&lt;h3&gt;Focus&lt;/h3&gt;\n&lt;p&gt;Here we can hide the hightlight / outline on focused text inputs and buttons&lt;/p&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig focus show&gt;&gt;\n&lt;&lt;jdradbut focus show&gt;&gt;\n&lt;/$button&gt; Default\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig focus hide&gt;&gt;\n&lt;&lt;jdradbut focus hide&gt;&gt;\n&lt;/$button&gt; Hide focus\n&lt;br&gt;&lt;br&gt;\n&lt;hr&gt;\n&lt;h3&gt;Story river&lt;/h3&gt;\nHere we can try to stop the fist tiddler in the story river from scrolling past the topbar\n&lt;br&gt;\n''Side effects:''\n&lt;br&gt;\n&lt;li&gt;For ''classic'' and ''pop'' story view: tiddlers won't automatically scroll into view on link click&lt;/li&gt;\n&lt;li&gt;Browser search bar won't automatically hide on scroll up (tested on Chrome for Android)&lt;/li&gt;\n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig storyfix yes&gt;&gt;\n&lt;&lt;jdradbut storyfix yes&gt;&gt;\n&lt;/$button&gt; Apply \n&lt;br&gt;\n&lt;$button class=\&quot;tc-btn-invisible\&quot;&gt;\n&lt;&lt;jdconfig storyfix no&gt;&gt;\n&lt;&lt;jdradbut storyfix no&gt;&gt;\n&lt;/$button&gt; Don't apply\n&lt;br&gt;&lt;br&gt;\n&lt;hr&gt;\n&lt;h3&gt;Restore defaults&lt;/h3&gt;\n&lt;div class=\&quot;jd-bq\&quot;&gt;\n&lt;p&gt;\nTo reset to...\n&lt;/p&gt;\n&lt;p&gt;\nDefault font size, Visible scrollbars, ''Simple searchbar'' on top, ''Controls'' on bottom, ''Simple searchbar button'' on controls, Story river hack not applied...\n&lt;/p&gt;\n&lt;p&gt;\nClick:\n&lt;/p&gt;\n&lt;p&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; state=\&quot;$:/plugins/jd/mob/config/config##defaultconfirm\&quot; text=\&quot;confirm\&quot;&gt;\n&lt;$button class=\&quot;jd-btn-txt\&quot;&gt;\n&lt;&lt;jdconfig defaultconfirm confirm&gt;&gt;\nRestore defaults\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; state=\&quot;$:/plugins/jd/mob/config/config##defaultconfirm\&quot; text=\&quot;confirm\&quot;&gt;\n&lt;$button class=\&quot;jd-btn-txt\&quot;&gt;\n&lt;&lt;setJDmobdefaults&gt;&gt;\n&lt;&lt;jdconfig defaultconfirm cancel&gt;&gt;\nConfirm\n&lt;/$button&gt;\n&lt;$button class=\&quot;jd-btn-txt\&quot;&gt;\n&lt;&lt;jdconfig defaultconfirm cancel&gt;&gt;\nCancel\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/p&gt;\n&lt;/div&gt;\n&lt;br&gt;&quot;,
&quot;title&quot;: &quot;$:/plugins/jd/mob/config/misc&quot;,
&quot;tags&quot;: &quot;$:/tags/jd/config&quot;,
&quot;modified&quot;: &quot;20171122141012375&quot;,
&quot;modifier&quot;: &quot;JD&quot;,
&quot;caption&quot;: &quot;Miscellaneous&quot;
}
}
}</pre>
</div>
<div title="$:/SiteSubtitle">
<pre>a non-linear personal web notebook</pre>
</div>
<div created="20210923231457384" modified="20210923231458724" title="$:/SiteTitle">
<pre>Copincha</pre>
</div>
<div title="$:/snippets/allfields">
<pre>\define renderfield(title)
&lt;tr class=&quot;tc-view-field&quot;&gt;&lt;td class=&quot;tc-view-field-name&quot;&gt;''$title$'':&lt;/td&gt;&lt;td class=&quot;tc-view-field-value&quot;&gt;//{{$:/language/Docs/Fields/$title$}}//&lt;/td&gt;&lt;/tr&gt;
\end
&lt;table class=&quot;tc-view-field-table&quot;&gt;&lt;tbody&gt;&lt;$list filter=&quot;[fields[]sort[title]]&quot; variable=&quot;listItem&quot;&gt;&lt;$macrocall $name=&quot;renderfield&quot; title=&lt;&lt;listItem&gt;&gt;/&gt;&lt;/$list&gt;
&lt;/tbody&gt;&lt;/table&gt;
</pre>
</div>
<div title="$:/snippets/currpalettepreview">
<pre>\define swatchStyle()
background-color: $(swatchColour)$;
\end
\define swatch()
&lt;$set name=&quot;swatchColour&quot; value={{##$(colour)$}}
&gt;&lt;div class=&quot;tc-swatch&quot; style=&lt;&lt;swatchStyle&gt;&gt; title=&lt;&lt;colour&gt;&gt;/&gt;&lt;/$set&gt;
\end
&lt;div class=&quot;tc-swatches-horiz&quot;&gt;&lt;$list filter=&quot;
foreground
background
muted-foreground
primary
page-background
tab-background
tiddler-info-background
&quot; variable=&quot;colour&quot;&gt;&lt;&lt;swatch&gt;&gt;&lt;/$list&gt;&lt;/div&gt;</pre>
</div>
<div title="$:/snippets/download-wiki-button">
<pre>\define lingo-base() $:/language/ControlPanel/Tools/Download/
&lt;$button class=&quot;tc-btn-big-green&quot;&gt;
&lt;$action-sendmessage $message=&quot;tm-download-file&quot; $param=&quot;$:/core/save/all&quot; filename=&quot;index.html&quot;/&gt;
&lt;&lt;lingo Full/Caption&gt;&gt; {{$:/core/images/save-button}}
&lt;/$button&gt;</pre>
</div>
<div title="$:/snippets/languageswitcher">
<pre>\define flag-title()
$(languagePluginTitle)$/icon
\end
&lt;$linkcatcher to=&quot;$:/language&quot;&gt;
&lt;div class=&quot;tc-chooser tc-language-chooser&quot;&gt;
&lt;$list filter=&quot;[[$:/languages/en-GB]] [plugin-type[language]sort[description]]&quot;&gt;
&lt;$set name=&quot;cls&quot; filter=&quot;[all[current]field:title{$:/language}]&quot; value=&quot;tc-chooser-item tc-chosen&quot; emptyValue=&quot;tc-chooser-item&quot;&gt;&lt;div class=&lt;&lt;cls&gt;&gt;&gt;
&lt;$link&gt;
&lt;span class=&quot;tc-image-button&quot;&gt;
&lt;$set name=&quot;languagePluginTitle&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;
&lt;$transclude subtiddler=&lt;&lt;flag-title&gt;&gt;&gt;
&lt;$list filter=&quot;[all[current]field:title[$:/languages/en-GB]]&quot;&gt;
&lt;$transclude tiddler=&quot;$:/languages/en-GB/icon&quot;/&gt;
&lt;/$list&gt;
&lt;/$transclude&gt;
&lt;/$set&gt;
&lt;/span&gt;
&lt;$view field=&quot;description&quot;&gt;
&lt;$view field=&quot;name&quot;&gt;
&lt;$view field=&quot;title&quot;/&gt;
&lt;/$view&gt;
&lt;/$view&gt;
&lt;/$link&gt;
&lt;/div&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$linkcatcher&gt;</pre>
</div>
<div title="$:/snippets/minifocusswitcher">
<pre>&lt;$select tiddler=&quot;$:/config/AutoFocus&quot;&gt;
&lt;$list filter=&quot;title tags text type fields&quot;&gt;
&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;&lt;currentTiddler&gt;&gt;&lt;/option&gt;
&lt;/$list&gt;
&lt;/$select&gt;
</pre>
</div>
<div title="$:/snippets/minilanguageswitcher">
<pre>&lt;$select tiddler=&quot;$:/language&quot;&gt;
&lt;$list filter=&quot;[[$:/languages/en-GB]] [plugin-type[language]sort[title]]&quot;&gt;
&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;$view field=&quot;description&quot;&gt;&lt;$view field=&quot;name&quot;&gt;&lt;$view field=&quot;title&quot;/&gt;&lt;/$view&gt;&lt;/$view&gt;&lt;/option&gt;
&lt;/$list&gt;
&lt;/$select&gt;</pre>
</div>
<div title="$:/snippets/minithemeswitcher">
<pre>\define lingo-base() $:/language/ControlPanel/Theme/
&lt;&lt;lingo Prompt&gt;&gt; &lt;$select tiddler=&quot;$:/theme&quot;&gt;
&lt;$list filter=&quot;[plugin-type[theme]sort[title]]&quot;&gt;
&lt;option value=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;$view field=&quot;name&quot;&gt;&lt;$view field=&quot;title&quot;/&gt;&lt;/$view&gt;&lt;/option&gt;
&lt;/$list&gt;
&lt;/$select&gt;</pre>
</div>
<div title="$:/snippets/modules">
<pre>\define describeModuleType(type)
{{$:/language/Docs/ModuleTypes/$type$}}
\end
&lt;$list filter=&quot;[moduletypes[]]&quot;&gt;
!! &lt;$macrocall $name=&quot;currentTiddler&quot; $type=&quot;text/plain&quot; $output=&quot;text/plain&quot;/&gt;
&lt;$macrocall $name=&quot;describeModuleType&quot; type=&lt;&lt;currentTiddler&gt;&gt;/&gt;
&lt;ul&gt;&lt;$list filter=&quot;[all[current]modules[]]&quot;&gt;&lt;li&gt;&lt;$link&gt;&lt;&lt;currentTiddler&gt;&gt;&lt;/$link&gt;
&lt;/li&gt;
&lt;/$list&gt;
&lt;/ul&gt;
&lt;/$list&gt;
</pre>
</div>
<div title="$:/snippets/paletteeditor">
<pre>&lt;$transclude tiddler=&quot;$:/PaletteManager&quot;/&gt;
</pre>
</div>
<div title="$:/snippets/palettepreview">
<pre>&lt;$set name=&quot;currentTiddler&quot; value={{$:/palette}}&gt;
{{||$:/snippets/currpalettepreview}}
&lt;/$set&gt;
</pre>
</div>
<div title="$:/snippets/paletteswitcher">
<pre>&lt;$linkcatcher to=&quot;$:/palette&quot;&gt;
&lt;div class=&quot;tc-chooser&quot;&gt;&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]&quot;&gt;&lt;$set name=&quot;cls&quot; filter=&quot;[all[current]prefix{$:/palette}]&quot; value=&quot;tc-chooser-item tc-chosen&quot; emptyValue=&quot;tc-chooser-item&quot;&gt;&lt;div class=&lt;&lt;cls&gt;&gt;&gt;&lt;$link to={{!!title}}&gt;''&lt;$view field=&quot;name&quot; format=&quot;text&quot;/&gt;'' - &lt;$view field=&quot;description&quot; format=&quot;text&quot;/&gt;{{||$:/snippets/currpalettepreview}}&lt;/$link&gt;
&lt;/div&gt;&lt;/$set&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$linkcatcher&gt;
</pre>
</div>
<div title="$:/snippets/peek-stylesheets">
<pre>\define expandable-stylesheets-list()
&lt;ol&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]&quot;&gt;
&lt;$vars state=&lt;&lt;qualify &quot;$:/state/peek-stylesheets/open/&quot;&gt;&gt;&gt;
&lt;$set name=&quot;state&quot; value={{{ [&lt;state&gt;addsuffix&lt;currentTiddler&gt;] }}}&gt;
&lt;li&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;state&gt;&gt; text=&quot;yes&quot; tag=&quot;span&quot;&gt;
&lt;$button set=&lt;&lt;state&gt;&gt; setTo=&quot;no&quot; class=&quot;tc-btn-invisible&quot;&gt;
{{$:/core/images/down-arrow}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;state&gt;&gt; text=&quot;yes&quot; tag=&quot;span&quot;&gt;
&lt;$button set=&lt;&lt;state&gt;&gt; setTo=&quot;yes&quot; class=&quot;tc-btn-invisible&quot;&gt;
{{$:/core/images/right-arrow}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$link&gt;
&lt;$view field=&quot;title&quot;/&gt;
&lt;/$link&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;state&gt;&gt; text=&quot;yes&quot; tag=&quot;div&quot;&gt;
&lt;$set name=&quot;source&quot; tiddler=&lt;&lt;currentTiddler&gt;&gt;&gt;
&lt;$wikify name=&quot;styles&quot; text=&lt;&lt;source&gt;&gt;&gt;
&lt;pre&gt;
&lt;code&gt;
&lt;$text text=&lt;&lt;styles&gt;&gt;/&gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/$wikify&gt;
&lt;/$set&gt;
&lt;/$reveal&gt;
&lt;/li&gt;
&lt;/$set&gt;
&lt;/$vars&gt;
&lt;/$list&gt;
&lt;/ol&gt;
\end
\define stylesheets-list()
&lt;ol&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]&quot;&gt;
&lt;li&gt;
&lt;$link&gt;
&lt;$view field=&quot;title&quot;/&gt;
&lt;/$link&gt;
&lt;$set name=&quot;source&quot; tiddler=&lt;&lt;currentTiddler&gt;&gt;&gt;
&lt;$wikify name=&quot;styles&quot; text=&lt;&lt;source&gt;&gt;&gt;
&lt;pre&gt;
&lt;code&gt;
&lt;$text text=&lt;&lt;styles&gt;&gt;/&gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/$wikify&gt;
&lt;/$set&gt;
&lt;/li&gt;
&lt;/$list&gt;
&lt;/ol&gt;
\end
&lt;$vars modeState=&lt;&lt;qualify &quot;$:/state/peek-stylesheets/mode/&quot;&gt;&gt;&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;modeState&gt;&gt; text=&quot;expanded&quot; tag=&quot;div&quot;&gt;
&lt;$button set=&lt;&lt;modeState&gt;&gt; setTo=&quot;expanded&quot; class=&quot;tc-btn-invisible&quot;&gt;{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}}&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;modeState&gt;&gt; text=&quot;expanded&quot; tag=&quot;div&quot;&gt;
&lt;$button set=&lt;&lt;modeState&gt;&gt; setTo=&quot;restored&quot; class=&quot;tc-btn-invisible&quot;&gt;{{$:/core/images/chevron-down}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}}&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;nomatch&quot; state=&lt;&lt;modeState&gt;&gt; text=&quot;expanded&quot; tag=&quot;div&quot;&gt;
&lt;&lt;expandable-stylesheets-list&gt;&gt;
&lt;/$reveal&gt;
&lt;$reveal type=&quot;match&quot; state=&lt;&lt;modeState&gt;&gt; text=&quot;expanded&quot; tag=&quot;div&quot;&gt;
&lt;&lt;stylesheets-list&gt;&gt;
&lt;/$reveal&gt;
&lt;/$vars&gt;
</pre>
</div>
<div title="$:/snippets/themeswitcher">
<pre>&lt;$linkcatcher to=&quot;$:/theme&quot;&gt;
&lt;div class=&quot;tc-chooser&quot;&gt;&lt;$list filter=&quot;[plugin-type[theme]sort[title]]&quot;&gt;&lt;$set name=&quot;cls&quot; filter=&quot;[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title&lt;currentTiddler&gt;] +[limit[1]]&quot; value=&quot;tc-chooser-item tc-chosen&quot; emptyValue=&quot;tc-chooser-item&quot;&gt;&lt;div class=&lt;&lt;cls&gt;&gt;&gt;&lt;$link to={{!!title}}&gt;''&lt;$view field=&quot;name&quot; format=&quot;text&quot;/&gt;'' &lt;$view field=&quot;description&quot; format=&quot;text&quot;/&gt;&lt;/$link&gt;&lt;/div&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$linkcatcher&gt;</pre>
</div>
<div title="$:/snippets/viewswitcher">
<pre>\define icon()
$:/core/images/storyview-$(storyview)$
\end
&lt;$linkcatcher to=&quot;$:/view&quot;&gt;
&lt;div class=&quot;tc-chooser tc-viewswitcher&quot;&gt;
&lt;$list filter=&quot;[storyviews[]]&quot; variable=&quot;storyview&quot;&gt;
&lt;$set name=&quot;cls&quot; filter=&quot;[&lt;storyview&gt;prefix{$:/view}]&quot; value=&quot;tc-chooser-item tc-chosen&quot; emptyValue=&quot;tc-chooser-item&quot;&gt;&lt;div class=&lt;&lt;cls&gt;&gt;&gt;
&lt;$link to=&lt;&lt;storyview&gt;&gt;&gt;&lt;$transclude tiddler=&lt;&lt;icon&gt;&gt;/&gt;&lt;$text text=&lt;&lt;storyview&gt;&gt;/&gt;&lt;/$link&gt;
&lt;/div&gt;
&lt;/$set&gt;
&lt;/$list&gt;
&lt;/div&gt;
&lt;/$linkcatcher&gt;</pre>
</div>
<div created="20210530003308484" modified="20210923231204848" title="$:/state/showeditpreview">
<pre>yes</pre>
</div>
<div created="20210924005616587" modified="20210924005616587" title="$:/state/ShowPaletteEditor">
<pre>yes</pre>
</div>
<div created="20210530003307213" modified="20210925203135864" title="$:/state/sidebar">
<pre>yes</pre>
</div>
<div created="20210530003148087" modified="20210925140810516" title="$:/state/tab--1498284803">
<pre>$:/core/ui/AdvancedSearch/System</pre>
</div>
<div created="20210530002423098" modified="20210925202759837" title="$:/state/tab--1963855381">
<pre>$:/core/ui/ControlPanel/StoryView</pre>
</div>
<div created="20210530002419213" modified="20210925010625151" title="$:/state/tab--2112689675">
<pre>$:/core/ui/ControlPanel/Basics</pre>
</div>
<div created="20210924032357216" modified="20210924032358584" title="$:/state/tab--86143343">
<pre>$:/core/ui/ControlPanel/Plugins/Installed/Languages</pre>
</div>
<div created="20210924032431513" modified="20210924032438392" title="$:/state/tab--959111941">
<pre>$:/core/ui/ControlPanel/EditorTypes</pre>
</div>
<div created="20210530002421896" modified="20210925202757085" title="$:/state/tab-1749438307">
<pre>$:/core/ui/ControlPanel/Appearance</pre>
</div>
<div created="20210530013225986" modified="20210530013225986" title="$:/state/tab/moresidebar-1850697562">
<pre>$:/core/ui/MoreSideBar/System</pre>
</div>
<div created="20210530002530759" modified="20210924032618349" title="$:/state/tab/sidebar--595412856">
<pre>$:/core/ui/SideBar/Tools</pre>
</div>
<div title="$:/status/RequireReloadDueToPluginChange">
<pre>no</pre>
</div>
<div created="20210925203138265" list="$:/ControlPanel copincha" modified="20210925203138265" title="$:/StoryList">
<pre></pre>
</div>
<div color="#bbb" icon="$:/core/images/tag-button" title="$:/TagManager">
<pre>\define lingo-base() $:/language/TagManager/
\define iconEditorTab(type)
\whitespace trim
&lt;$link to=&quot;&quot;&gt;&lt;&lt;lingo Icons/None&gt;&gt;&lt;/$link&gt;
&lt;$list filter=&quot;[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]&quot;&gt;
&lt;$link to={{!!title}}&gt;
&lt;$transclude/&gt; &lt;$view field=&quot;title&quot;/&gt;
&lt;/$link&gt;
&lt;/$list&gt;
\end
\define iconEditor(title)
\whitespace trim
&lt;div class=&quot;tc-drop-down-wrapper&quot;&gt;
&lt;$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix&lt;__title__&gt;] }}} class=&quot;tc-btn-invisible tc-btn-dropdown&quot;&gt;{{$:/core/images/down-arrow}}&lt;/$button&gt;
&lt;$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix&lt;__title__&gt;] }}} type=&quot;popup&quot; position=&quot;belowleft&quot; text=&quot;&quot; default=&quot;&quot;&gt;
&lt;div class=&quot;tc-drop-down&quot;&gt;
&lt;$linkcatcher actions=&quot;&quot;&quot;&lt;$action-setfield $tiddler=&lt;&lt;__title__&gt;&gt; icon=&lt;&lt;navigateTo&gt;&gt;/&gt;&quot;&quot;&quot;&gt;
&lt;&lt;iconEditorTab type:&quot;!&quot;&gt;&gt;
&lt;hr/&gt;
&lt;&lt;iconEditorTab type:&quot;&quot;&gt;&gt;
&lt;/$linkcatcher&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
\end
\define toggleButton(state)
\whitespace trim
&lt;$reveal stateTitle=&lt;&lt;__state__&gt;&gt; type=&quot;match&quot; text=&quot;closed&quot; default=&quot;closed&quot;&gt;
&lt;$button setTitle=&lt;&lt;__state__&gt;&gt; setTo=&quot;open&quot; class=&quot;tc-btn-invisible tc-btn-dropdown&quot; selectedClass=&quot;tc-selected&quot;&gt;
{{$:/core/images/info-button}}
&lt;/$button&gt;
&lt;/$reveal&gt;
&lt;$reveal stateTitle=&lt;&lt;__state__&gt;&gt; type=&quot;match&quot; text=&quot;open&quot; default=&quot;closed&quot;&gt;
&lt;$button setTitle=&lt;&lt;__state__&gt;&gt; setTo=&quot;closed&quot; class=&quot;tc-btn-invisible tc-btn-dropdown&quot; selectedClass=&quot;tc-selected&quot;&gt;
{{$:/core/images/info-button}}
&lt;/$button&gt;
&lt;/$reveal&gt;
\end
\whitespace trim
&lt;table class=&quot;tc-tag-manager-table&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;&lt;&lt;lingo Colour/Heading&gt;&gt;&lt;/th&gt;
&lt;th class=&quot;tc-tag-manager-tag&quot;&gt;&lt;&lt;lingo Tag/Heading&gt;&gt;&lt;/th&gt;
&lt;th&gt;&lt;&lt;lingo Count/Heading&gt;&gt;&lt;/th&gt;
&lt;th&gt;&lt;&lt;lingo Icon/Heading&gt;&gt;&lt;/th&gt;
&lt;th&gt;&lt;&lt;lingo Info/Heading&gt;&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;$list filter=&quot;[tags[]!is[system]sort[title]]&quot;&gt;
&lt;tr&gt;
&lt;td&gt;&lt;$edit-text field=&quot;color&quot; tag=&quot;input&quot; type=&quot;color&quot;/&gt;&lt;/td&gt;
&lt;td&gt;{{||$:/core/ui/TagTemplate}}&lt;/td&gt;
&lt;td&gt;&lt;$count filter=&quot;[all[current]tagging[]]&quot;/&gt;&lt;/td&gt;
&lt;td&gt;
&lt;$macrocall $name=&quot;iconEditor&quot; title={{!!title}}/&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;$macrocall $name=&quot;toggleButton&quot; state={{{ [[$:/state/tag-manager/]addsuffix&lt;currentTiddler&gt;] }}} /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td colspan=&quot;4&quot;&gt;
&lt;$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix&lt;currentTiddler&gt;] }}} type=&quot;match&quot; text=&quot;open&quot; default=&quot;&quot;&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;&lt;lingo Colour/Heading&gt;&gt;&lt;/td&gt;&lt;td&gt;&lt;$edit-text field=&quot;color&quot; tag=&quot;input&quot; type=&quot;text&quot; size=&quot;9&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;&lt;lingo Icon/Heading&gt;&gt;&lt;/td&gt;&lt;td&gt;&lt;$edit-text field=&quot;icon&quot; tag=&quot;input&quot; size=&quot;45&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/$reveal&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/$list&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td style=&quot;position:relative;&quot;&gt;
{{$:/core/ui/UntaggedTemplate}}
&lt;/td&gt;
&lt;td&gt;
&lt;small class=&quot;tc-menu-list-count&quot;&gt;&lt;$count filter=&quot;[untagged[]!is[system]] -[tags[]]&quot;/&gt;&lt;/small&gt;
&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</pre>
</div>
<div list="$:/core/ui/AdvancedSearch/Standard $:/core/ui/AdvancedSearch/System $:/core/ui/AdvancedSearch/Shadows $:/core/ui/AdvancedSearch/Filter" title="$:/tags/AdvancedSearch">
<pre></pre>
</div>
<div list="$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown $:/core/ui/AdvancedSearch/Filter/FilterButtons/clear $:/core/ui/AdvancedSearch/Filter/FilterButtons/export $:/core/ui/AdvancedSearch/Filter/FilterButtons/delete" title="$:/tags/AdvancedSearch/FilterButton">
<pre></pre>
</div>
<div list="$:/core/ui/ControlPanel/Info $:/core/ui/ControlPanel/Appearance $:/core/ui/ControlPanel/Settings $:/core/ui/ControlPanel/Saving $:/core/ui/ControlPanel/Plugins $:/core/ui/ControlPanel/Tools $:/core/ui/ControlPanel/Internals" title="$:/tags/ControlPanel">
<pre></pre>
</div>
<div list="$:/core/ui/ControlPanel/Basics $:/core/ui/ControlPanel/Advanced" title="$:/tags/ControlPanel/Info">
<pre></pre>
</div>
<div list="$:/core/ui/ControlPanel/Plugins/Installed $:/core/ui/ControlPanel/Plugins/Add" title="$:/tags/ControlPanel/Plugins">
<pre></pre>
</div>
<div list="$:/core/ui/EditorToolbar/paint $:/core/ui/EditorToolbar/opacity $:/core/ui/EditorToolbar/line-width $:/core/ui/EditorToolbar/rotate-left $:/core/ui/EditorToolbar/clear $:/core/ui/EditorToolbar/bold $:/core/ui/EditorToolbar/italic $:/core/ui/EditorToolbar/strikethrough $:/core/ui/EditorToolbar/underline $:/core/ui/EditorToolbar/superscript $:/core/ui/EditorToolbar/subscript $:/core/ui/EditorToolbar/mono-line $:/core/ui/EditorToolbar/mono-block $:/core/ui/EditorToolbar/quote $:/core/ui/EditorToolbar/list-bullet $:/core/ui/EditorToolbar/list-number $:/core/ui/EditorToolbar/heading-1 $:/core/ui/EditorToolbar/heading-2 $:/core/ui/EditorToolbar/heading-3 $:/core/ui/EditorToolbar/heading-4 $:/core/ui/EditorToolbar/heading-5 $:/core/ui/EditorToolbar/heading-6 $:/core/ui/EditorToolbar/link $:/core/ui/EditorToolbar/excise $:/core/ui/EditorToolbar/picture $:/core/ui/EditorToolbar/stamp $:/core/ui/EditorToolbar/size $:/core/ui/EditorToolbar/editor-height $:/core/ui/EditorToolbar/more $:/core/ui/EditorToolbar/preview $:/core/ui/EditorToolbar/preview-type" title="$:/tags/EditorToolbar">
<pre></pre>
</div>
<div list="$:/core/ui/EditTemplate/controls $:/core/ui/EditTemplate/title $:/core/ui/EditTemplate/tags $:/core/ui/EditTemplate/shadow $:/core/ui/ViewTemplate/classic $:/core/ui/EditTemplate/body $:/core/ui/EditTemplate/type $:/core/ui/EditTemplate/fields" title="$:/tags/EditTemplate">
<pre></pre>
</div>
<div list="$:/core/ui/Buttons/delete $:/core/ui/Buttons/cancel $:/core/ui/Buttons/save" title="$:/tags/EditToolbar">
<pre></pre>
</div>
<div list="$:/Manager/ItemMain/WikifiedText $:/Manager/ItemMain/RawText $:/Manager/ItemMain/Fields" title="$:/tags/Manager/ItemMain">
<pre></pre>
</div>
<div list="$:/Manager/ItemSidebar/Tags $:/Manager/ItemSidebar/Colour $:/Manager/ItemSidebar/Icon $:/Manager/ItemSidebar/Tools" title="$:/tags/Manager/ItemSidebar">
<pre></pre>
</div>
<div list="$:/core/ui/MoreSideBar/All $:/core/ui/MoreSideBar/Recent $:/core/ui/MoreSideBar/Tags $:/core/ui/MoreSideBar/Missing $:/core/ui/MoreSideBar/Drafts $:/core/ui/MoreSideBar/Orphans $:/core/ui/MoreSideBar/Types $:/core/ui/MoreSideBar/System $:/core/ui/MoreSideBar/Shadows $:/core/ui/MoreSideBar/Explorer $:/core/ui/MoreSideBar/Plugins" title="$:/tags/MoreSideBar">
<pre></pre>
</div>
<div list="$:/core/ui/Buttons/home $:/core/ui/Buttons/close-all $:/core/ui/Buttons/fold-all $:/core/ui/Buttons/unfold-all $:/core/ui/Buttons/permaview $:/core/ui/Buttons/new-tiddler $:/core/ui/Buttons/new-journal $:/core/ui/Buttons/new-image $:/core/ui/Buttons/import $:/core/ui/Buttons/export-page $:/core/ui/Buttons/control-panel $:/core/ui/Buttons/advanced-search $:/core/ui/Buttons/manager $:/core/ui/Buttons/tag-manager $:/core/ui/Buttons/language $:/core/ui/Buttons/palette $:/core/ui/Buttons/theme $:/core/ui/Buttons/storyview $:/core/ui/Buttons/encryption $:/core/ui/Buttons/timestamp $:/core/ui/Buttons/full-screen $:/core/ui/Buttons/print $:/core/ui/Buttons/save-wiki $:/core/ui/Buttons/refresh $:/core/ui/Buttons/more-page-actions" title="$:/tags/PageControls">
<pre></pre>
</div>
<div list="$:/core/ui/PageTemplate/topleftbar $:/core/ui/PageTemplate/toprightbar $:/core/ui/PageTemplate/sidebar $:/core/ui/PageTemplate/story $:/core/ui/PageTemplate/alerts" title="$:/tags/PageTemplate">
<pre></pre>
</div>
<div list="$:/config/OfficialPluginLibrary" title="$:/tags/PluginLibrary">
<pre></pre>
</div>
<div list="$:/core/ui/SideBar/Open $:/core/ui/SideBar/Recent $:/core/ui/SideBar/Tools $:/core/ui/SideBar/More" title="$:/tags/SideBar">
<pre></pre>
</div>
<div list="$:/core/ui/SideBarSegments/site-title $:/core/ui/SideBarSegments/site-subtitle $:/core/ui/SideBarSegments/page-controls $:/core/ui/SideBarSegments/search $:/core/ui/SideBarSegments/tabs" title="$:/tags/SideBarSegment">
<pre></pre>
</div>
<div list="$:/core/ui/TiddlerInfo/Tools $:/core/ui/TiddlerInfo/References $:/core/ui/TiddlerInfo/Tagging $:/core/ui/TiddlerInfo/List $:/core/ui/TiddlerInfo/Listed $:/core/ui/TiddlerInfo/Fields" title="$:/tags/TiddlerInfo">
<pre></pre>
</div>
<div list="$:/core/ui/TiddlerInfo/Advanced/ShadowInfo $:/core/ui/TiddlerInfo/Advanced/PluginInfo" title="$:/tags/TiddlerInfo/Advanced">
<pre></pre>
</div>
<div list="$:/core/ui/ViewTemplate/title $:/core/ui/ViewTemplate/unfold $:/core/ui/ViewTemplate/subtitle $:/core/ui/ViewTemplate/tags $:/core/ui/ViewTemplate/classic $:/core/ui/ViewTemplate/body" title="$:/tags/ViewTemplate">
<pre></pre>
</div>
<div list="$:/core/ui/Buttons/more-tiddler-actions $:/core/ui/Buttons/info $:/core/ui/Buttons/new-here $:/core/ui/Buttons/new-journal-here $:/core/ui/Buttons/clone $:/core/ui/Buttons/export-tiddler $:/core/ui/Buttons/edit $:/core/ui/Buttons/delete $:/core/ui/Buttons/permalink $:/core/ui/Buttons/permaview $:/core/ui/Buttons/open-window $:/core/ui/Buttons/close-others $:/core/ui/Buttons/close $:/core/ui/Buttons/fold-others $:/core/ui/Buttons/fold" title="$:/tags/ViewToolbar">
<pre></pre>
</div>
<div created="20210530003149089" modified="20210925140832188" title="$:/temp/advancedsearch">
<pre>image twitter</pre>
</div>
<div plugin-type="info" title="$:/temp/info-plugin" type="application/json">
<pre>{
&quot;tiddlers&quot;: {
&quot;$:/info/browser&quot;: {
&quot;title&quot;: &quot;$:/info/browser&quot;,
&quot;text&quot;: &quot;yes&quot;
},
&quot;$:/info/node&quot;: {
&quot;title&quot;: &quot;$:/info/node&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/info/url/full&quot;: {
&quot;title&quot;: &quot;$:/info/url/full&quot;,
&quot;text&quot;: &quot;file:///media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha-desarrollo.html&quot;
},
&quot;$:/info/url/host&quot;: {
&quot;title&quot;: &quot;$:/info/url/host&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/info/url/hostname&quot;: {
&quot;title&quot;: &quot;$:/info/url/hostname&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/info/url/protocol&quot;: {
&quot;title&quot;: &quot;$:/info/url/protocol&quot;,
&quot;text&quot;: &quot;file:&quot;
},
&quot;$:/info/url/port&quot;: {
&quot;title&quot;: &quot;$:/info/url/port&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/info/url/pathname&quot;: {
&quot;title&quot;: &quot;$:/info/url/pathname&quot;,
&quot;text&quot;: &quot;/media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha-desarrollo.html&quot;
},
&quot;$:/info/url/search&quot;: {
&quot;title&quot;: &quot;$:/info/url/search&quot;,
&quot;text&quot;: &quot;&quot;
},
&quot;$:/info/url/origin&quot;: {
&quot;title&quot;: &quot;$:/info/url/origin&quot;,
&quot;text&quot;: &quot;null&quot;
},
&quot;$:/info/browser/screen/width&quot;: {
&quot;title&quot;: &quot;$:/info/browser/screen/width&quot;,
&quot;text&quot;: &quot;1366&quot;
},
&quot;$:/info/browser/screen/height&quot;: {
&quot;title&quot;: &quot;$:/info/browser/screen/height&quot;,
&quot;text&quot;: &quot;768&quot;
},
&quot;$:/info/browser/language&quot;: {
&quot;title&quot;: &quot;$:/info/browser/language&quot;,
&quot;text&quot;: &quot;es-ES&quot;
}
}
}</pre>
</div>
<div created="20210530002859223" modified="20210530005109511" title="$:/temp/NewTagName">
<pre></pre>
</div>
<div created="20210924033447009" modified="20210925140705681" title="$:/temp/search">
<pre></pre>
</div>
<div created="20210530010424109" modified="20210924033101024" title="$:/theme">
<pre>$:/themes/tiddlywiki/seamless</pre>
</div>
<div author="JeremyRuston" bag="default" core-version="&gt;=5.0.0" created="20201227095110795" dependents="$:/themes/tiddlywiki/vanilla" description="Removes borders from tiddlers" modified="20210301164504315" name="Seamless" plugin-type="theme" revision="0" tags="rr-TW5 rr-plugins" title="$:/themes/tiddlywiki/seamless" type="application/json" version="5.1.23">
<pre>{
&quot;tiddlers&quot;: {
&quot;$:/themes/tiddlywiki/seamless/base&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/seamless/base&quot;,
&quot;tags&quot;: &quot;[[$:/tags/Stylesheet]]&quot;,
&quot;list-after&quot;: &quot;$:/themes/tiddlywiki/vanilla/base&quot;,
&quot;text&quot;: &quot;\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline\n\n/*\nRules copied from Snow White\n*/\n\n.tc-page-controls button svg, .tc-tiddler-controls button svg, .tc-topbar button svg {\n\t&lt;&lt;transition \&quot;fill 150ms ease-in-out\&quot;&gt;&gt;\n}\n\n.tc-tiddler-controls button.tc-selected svg {\n\t&lt;&lt;filter \&quot;drop-shadow(0px -1px 2px rgba(0,0,0,0.25))\&quot;&gt;&gt;\n}\n\n.tc-drop-down {\n\tborder-radius: 4px;\n\t&lt;&lt;box-shadow \&quot;2px 2px 10px rgba(0, 0, 0, 0.5)\&quot;&gt;&gt;\n}\n\n.tc-block-dropdown {\n\tborder-radius: 4px;\n\t&lt;&lt;box-shadow \&quot;2px 2px 10px rgba(0, 0, 0, 0.5)\&quot;&gt;&gt;\n}\n\n.tc-modal-displayed {\n\t&lt;&lt;filter \&quot;blur(4px)\&quot;&gt;&gt;\n}\n\n.tc-modal {\n\tborder-radius: 6px;\n\t&lt;&lt;box-shadow \&quot;0 3px 7px rgba(0,0,0,0.3)\&quot;&gt;&gt;\n}\n\n.tc-modal-footer {\n\tborder-radius: 0 0 6px 6px;\n\t&lt;&lt;box-shadow \&quot;inset 0 1px 0 #fff\&quot;&gt;&gt;;\n}\n\n.tc-alert {\n\tborder-radius: 6px;\n\t&lt;&lt;box-shadow \&quot;0 3px 7px rgba(0,0,0,0.6)\&quot;&gt;&gt;\n}\n\n.tc-notification {\n\tborder-radius: 6px;\n\t&lt;&lt;box-shadow \&quot;0 3px 7px rgba(0,0,0,0.3)\&quot;&gt;&gt;\n\ttext-shadow: 0 1px 0 rgba(255,255,255, 0.8);\n}\n\n.tc-message-box img {\n\t&lt;&lt;box-shadow \&quot;1px 1px 3px rgba(0,0,0,0.5)\&quot;&gt;&gt;\n}\n\n/*\nSeamless modifications\n*/\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t/* Drop the tiddler frame padding */\n\tbody.tc-body .tc-tiddler-frame {\n\t\tpadding: 0;\n\t}\n\n\t/* Move the sidebar up so that the title lines up */\n\tbody.tc-body .tc-sidebar-scrollable {\n\t\tpadding: 43px 0 28px 42px;\n\t}\n\n\t/* Stop the tiddler info panel from bleeding into the tiddler frame padding */\n\tbody.tc-body .tc-tiddler-info {\n\t\tmargin: 0;\n\t}\n\n\t/* Stop message boxes from bleeding into the tiddler frame padding */\n\tbody.tc-body .tc-message-box {\n\t\tmargin: 21px 0 21px 0;\n\t}\n\n}\n\n/* Use the tiddler background colour for the page background */\nhtml body.tc-body {\n\tbackground-color: &lt;&lt;colour background&gt;&gt;;\n}\n\nhtml:-webkit-full-screen {\n\tbackground-color: &lt;&lt;colour background&gt;&gt;;\n}\n\n/* Adjust the colour of the page controls */\nbody.tc-body .tc-page-controls svg {\n\tfill: &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n/* Adjust the colour of the sidebar selected tabs */\nbody.tc-body .tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: &lt;&lt;colour background&gt;&gt;;\n}\n&quot;
}
}
}</pre>
</div>
<div author="JeremyRuston" core-version="&gt;=5.0.0" dependents="$:/themes/tiddlywiki/vanilla" description="Emphasises individual tiddlers" name="Snow White" plugin-priority="0" plugin-type="theme" title="$:/themes/tiddlywiki/snowwhite" type="application/json" version="5.1.22">
<pre>{
&quot;tiddlers&quot;: {
&quot;$:/themes/tiddlywiki/snowwhite/base&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/snowwhite/base&quot;,
&quot;tags&quot;: &quot;[[$:/tags/Stylesheet]]&quot;,
&quot;text&quot;: &quot;\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline\n\n.tc-sidebar-header {\n\ttext-shadow: 0 1px 0 &lt;&lt;colour sidebar-foreground-shadow&gt;&gt;;\n}\n\n.tc-tiddler-info {\n\t&lt;&lt;box-shadow \&quot;inset 1px 2px 3px rgba(0,0,0,0.1)\&quot;&gt;&gt;\n}\n\n@media screen {\n\t.tc-tiddler-frame {\n\t\t&lt;&lt;box-shadow \&quot;1px 1px 5px rgba(0, 0, 0, 0.3)\&quot;&gt;&gt;\n\t}\n}\n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\t.tc-tiddler-frame {\n\t\t&lt;&lt;box-shadow none&gt;&gt;\n\t}\n}\n\n.tc-page-controls button svg, .tc-tiddler-controls button svg, .tc-topbar button svg {\n\t&lt;&lt;transition \&quot;fill 150ms ease-in-out\&quot;&gt;&gt;\n}\n\n.tc-tiddler-controls button.tc-selected,\n.tc-page-controls button.tc-selected {\n\t&lt;&lt;filter \&quot;drop-shadow(0px -1px 2px rgba(0,0,0,0.25))\&quot;&gt;&gt;\n}\n\n.tc-tiddler-frame input.tc-edit-texteditor {\n\t&lt;&lt;box-shadow \&quot;inset 0 1px 8px rgba(0, 0, 0, 0.15)\&quot;&gt;&gt;\n}\n\n.tc-edit-tags {\n\t&lt;&lt;box-shadow \&quot;inset 0 1px 8px rgba(0, 0, 0, 0.15)\&quot;&gt;&gt;\n}\n\n.tc-tiddler-frame .tc-edit-tags input.tc-edit-texteditor {\n\t&lt;&lt;box-shadow \&quot;none\&quot;&gt;&gt;\n\tborder: none;\n\toutline: none;\n}\n\ntextarea.tc-edit-texteditor {\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};\n}\n\ncanvas.tc-edit-bitmapeditor {\n\t&lt;&lt;box-shadow \&quot;2px 2px 5px rgba(0, 0, 0, 0.5)\&quot;&gt;&gt;\n}\n\n.tc-drop-down {\n\tborder-radius: 4px;\n\t&lt;&lt;box-shadow \&quot;2px 2px 10px rgba(0, 0, 0, 0.5)\&quot;&gt;&gt;\n}\n\n.tc-block-dropdown {\n\tborder-radius: 4px;\n\t&lt;&lt;box-shadow \&quot;2px 2px 10px rgba(0, 0, 0, 0.5)\&quot;&gt;&gt;\n}\n\n.tc-modal {\n\tborder-radius: 6px;\n\t&lt;&lt;box-shadow \&quot;0 3px 7px rgba(0,0,0,0.3)\&quot;&gt;&gt;\n}\n\n.tc-modal-footer {\n\tborder-radius: 0 0 6px 6px;\n\t&lt;&lt;box-shadow \&quot;inset 0 1px 0 #fff\&quot;&gt;&gt;;\n}\n\n\n.tc-alert {\n\tborder-radius: 6px;\n\t&lt;&lt;box-shadow \&quot;0 3px 7px rgba(0,0,0,0.6)\&quot;&gt;&gt;\n}\n\n.tc-notification {\n\tborder-radius: 6px;\n\t&lt;&lt;box-shadow \&quot;0 3px 7px rgba(0,0,0,0.3)\&quot;&gt;&gt;\n\ttext-shadow: 0 1px 0 rgba(255,255,255, 0.8);\n}\n\n.tc-sidebar-lists .tc-tab-set .tc-tab-divider {\n\tborder-top: none;\n\theight: 1px;\n\t&lt;&lt;background-linear-gradient \&quot;left, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 100%\&quot;&gt;&gt;\n}\n\n.tc-more-sidebar &gt; .tc-tab-set &gt; .tc-tab-buttons &gt; button {\n\t&lt;&lt;background-linear-gradient \&quot;left, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0.1) 100%\&quot;&gt;&gt;\n}\n\n.tc-more-sidebar &gt; .tc-tab-set &gt; .tc-tab-buttons &gt; button.tc-tab-selected {\n\t&lt;&lt;background-linear-gradient \&quot;left, rgba(0,0,0,0.05) 0%, rgba(255,255,255,0.05) 100%\&quot;&gt;&gt;\n}\n\n.tc-message-box img {\n\t&lt;&lt;box-shadow \&quot;1px 1px 3px rgba(0,0,0,0.5)\&quot;&gt;&gt;\n}\n\n.tc-plugin-info {\n\t&lt;&lt;box-shadow \&quot;1px 1px 3px rgba(0,0,0,0.5)\&quot;&gt;&gt;\n}\n&quot;
}
}
}</pre>
</div>
<div author="JeremyRuston" core-version="&gt;=5.0.0" dependents="" description="Basic theme" name="Vanilla" plugin-priority="0" plugin-type="theme" title="$:/themes/tiddlywiki/vanilla" type="application/json" version="5.1.22">
<pre>{
&quot;tiddlers&quot;: {
&quot;$:/themes/tiddlywiki/vanilla/themetweaks&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/themetweaks&quot;,
&quot;tags&quot;: &quot;$:/tags/ControlPanel/Appearance&quot;,
&quot;caption&quot;: &quot;{{$:/language/ThemeTweaks/ThemeTweaks}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/ThemeTweaks/\n\n\\define replacement-text()\n[img[$(imageTitle)$]]\n\\end\n\n\\define backgroundimage-dropdown()\n&lt;div class=\&quot;tc-drop-down-wrapper\&quot;&gt;\n&lt;$button popup=&lt;&lt;qualify \&quot;$:/state/popup/themetweaks/backgroundimage\&quot;&gt;&gt; class=\&quot;tc-btn-invisible tc-btn-dropdown\&quot;&gt;{{$:/core/images/down-arrow}}&lt;/$button&gt;\n&lt;$reveal state=&lt;&lt;qualify \&quot;$:/state/popup/themetweaks/backgroundimage\&quot;&gt;&gt; type=\&quot;popup\&quot; position=\&quot;belowleft\&quot; text=\&quot;\&quot; default=\&quot;\&quot;&gt;\n&lt;div class=\&quot;tc-drop-down\&quot;&gt;\n&lt;$macrocall $name=\&quot;image-picker\&quot; actions=\&quot;\&quot;\&quot;\n\n&lt;$action-setfield\n\t$tiddler=\&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimage\&quot;\n\t$value=&lt;&lt;imageTitle&gt;&gt;\n/&gt;\n\n\&quot;\&quot;\&quot;/&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n\\end\n\n\\define backgroundimageattachment-dropdown()\n&lt;$select tiddler=\&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment\&quot; default=\&quot;scroll\&quot;&gt;\n&lt;option value=\&quot;scroll\&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageAttachment/Scroll&gt;&gt;&lt;/option&gt;\n&lt;option value=\&quot;fixed\&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageAttachment/Fixed&gt;&gt;&lt;/option&gt;\n&lt;/$select&gt;\n\\end\n\n\\define backgroundimagesize-dropdown()\n&lt;$select tiddler=\&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize\&quot; default=\&quot;scroll\&quot;&gt;\n&lt;option value=\&quot;auto\&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageSize/Auto&gt;&gt;&lt;/option&gt;\n&lt;option value=\&quot;cover\&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageSize/Cover&gt;&gt;&lt;/option&gt;\n&lt;option value=\&quot;contain\&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageSize/Contain&gt;&gt;&lt;/option&gt;\n&lt;/$select&gt;\n\\end\n\n&lt;&lt;lingo ThemeTweaks/Hint&gt;&gt;\n\n! &lt;&lt;lingo Options&gt;&gt;\n\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/options/sidebarlayout\&quot;&gt;&lt;&lt;lingo Options/SidebarLayout&gt;&gt;&lt;/$link&gt; |&lt;$select tiddler=\&quot;$:/themes/tiddlywiki/vanilla/options/sidebarlayout\&quot;&gt;&lt;option value=\&quot;fixed-fluid\&quot;&gt;&lt;&lt;lingo Options/SidebarLayout/Fixed-Fluid&gt;&gt;&lt;/option&gt;&lt;option value=\&quot;fluid-fixed\&quot;&gt;&lt;&lt;lingo Options/SidebarLayout/Fluid-Fixed&gt;&gt;&lt;/option&gt;&lt;/$select&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/options/stickytitles\&quot;&gt;&lt;&lt;lingo Options/StickyTitles&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Options/StickyTitles/Hint&gt;&gt;// |&lt;$select tiddler=\&quot;$:/themes/tiddlywiki/vanilla/options/stickytitles\&quot;&gt;&lt;option value=\&quot;no\&quot;&gt;{{$:/language/No}}&lt;/option&gt;&lt;option value=\&quot;yes\&quot;&gt;{{$:/language/Yes}}&lt;/option&gt;&lt;/$select&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/options/codewrapping\&quot;&gt;&lt;&lt;lingo Options/CodeWrapping&gt;&gt;&lt;/$link&gt; |&lt;$select tiddler=\&quot;$:/themes/tiddlywiki/vanilla/options/codewrapping\&quot;&gt;&lt;option value=\&quot;pre\&quot;&gt;{{$:/language/No}}&lt;/option&gt;&lt;option value=\&quot;pre-wrap\&quot;&gt;{{$:/language/Yes}}&lt;/option&gt;&lt;/$select&gt; |\n\n! &lt;&lt;lingo Settings&gt;&gt;\n\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/settings/fontfamily\&quot;&gt;&lt;&lt;lingo Settings/FontFamily&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/settings/fontfamily\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; | |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/settings/codefontfamily\&quot;&gt;&lt;&lt;lingo Settings/CodeFontFamily&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/settings/codefontfamily\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; | |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\&quot;&gt;&lt;&lt;lingo Settings/EditorFontFamily&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; | |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimage\&quot;&gt;&lt;&lt;lingo Settings/BackgroundImage&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimage\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |&lt;&lt;backgroundimage-dropdown&gt;&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment\&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageAttachment&gt;&gt;&lt;/$link&gt; |&lt;&lt;backgroundimageattachment-dropdown&gt;&gt; | |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize\&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageSize&gt;&gt;&lt;/$link&gt; |&lt;&lt;backgroundimagesize-dropdown&gt;&gt; | |\n\n! &lt;&lt;lingo Metrics&gt;&gt;\n\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/metrics/fontsize\&quot;&gt;&lt;&lt;lingo Metrics/FontSize&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/metrics/fontsize\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/metrics/lineheight\&quot;&gt;&lt;&lt;lingo Metrics/LineHeight&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/metrics/lineheight\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize\&quot;&gt;&lt;&lt;lingo Metrics/BodyFontSize&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/metrics/bodylineheight\&quot;&gt;&lt;&lt;lingo Metrics/BodyLineHeight&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/metrics/bodylineheight\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/metrics/storyleft\&quot;&gt;&lt;&lt;lingo Metrics/StoryLeft&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/StoryLeft/Hint&gt;&gt;// |^&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/metrics/storyleft\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/metrics/storytop\&quot;&gt;&lt;&lt;lingo Metrics/StoryTop&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/StoryTop/Hint&gt;&gt;// |^&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/metrics/storytop\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/metrics/storyright\&quot;&gt;&lt;&lt;lingo Metrics/StoryRight&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/StoryRight/Hint&gt;&gt;// |^&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/metrics/storyright\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/metrics/storywidth\&quot;&gt;&lt;&lt;lingo Metrics/StoryWidth&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/StoryWidth/Hint&gt;&gt;// |^&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/metrics/storywidth\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\&quot;&gt;&lt;&lt;lingo Metrics/TiddlerWidth&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/TiddlerWidth/Hint&gt;&gt;//&lt;br&gt; |^&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\&quot;&gt;&lt;&lt;lingo Metrics/SidebarBreakpoint&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/SidebarBreakpoint/Hint&gt;&gt;// |^&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n|&lt;$link to=\&quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\&quot;&gt;&lt;&lt;lingo Metrics/SidebarWidth&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/SidebarWidth/Hint&gt;&gt;// |^&lt;$edit-text tiddler=\&quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\n&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/base&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/base&quot;,
&quot;tags&quot;: &quot;[[$:/tags/Stylesheet]]&quot;,
&quot;text&quot;: &quot;\\define custom-background-datauri()\n&lt;$set name=\&quot;background\&quot; value={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}}&gt;\n&lt;$list filter=\&quot;[&lt;background&gt;is[image]]\&quot;&gt;\n`background: url(`\n&lt;$list filter=\&quot;[&lt;background&gt;!has[_canonical_uri]]\&quot;&gt;\n`\&quot;`&lt;$macrocall $name=\&quot;datauri\&quot; title={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}}/&gt;`\&quot;`\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;background&gt;has[_canonical_uri]]\&quot;&gt;\n`\&quot;`&lt;$view tiddler={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}} field=\&quot;_canonical_uri\&quot;/&gt;`\&quot;`\n&lt;/$list&gt;\n`) center center;`\n`background-attachment: `{{$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment}}`;\n-webkit-background-size:` {{$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize}}`;\n-moz-background-size:` {{$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize}}`;\n-o-background-size:` {{$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize}}`;\nbackground-size:` {{$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize}}`;`\n&lt;/$list&gt;\n&lt;/$set&gt;\n\\end\n\n\\define if-fluid-fixed(text,hiddenSidebarText)\n&lt;$reveal state=\&quot;$:/themes/tiddlywiki/vanilla/options/sidebarlayout\&quot; type=\&quot;match\&quot; text=\&quot;fluid-fixed\&quot;&gt;\n$text$\n&lt;$reveal state=\&quot;$:/state/sidebar\&quot; type=\&quot;nomatch\&quot; text=\&quot;yes\&quot; default=\&quot;yes\&quot;&gt;\n$hiddenSidebarText$\n&lt;/$reveal&gt;\n&lt;/$reveal&gt;\n\\end\n\n\\define if-editor-height-fixed(then,else)\n&lt;$reveal state=\&quot;$:/config/TextEditor/EditorHeight/Mode\&quot; type=\&quot;match\&quot; text=\&quot;fixed\&quot;&gt;\n$then$\n&lt;/$reveal&gt;\n&lt;$reveal state=\&quot;$:/config/TextEditor/EditorHeight/Mode\&quot; type=\&quot;match\&quot; text=\&quot;auto\&quot;&gt;\n$else$\n&lt;/$reveal&gt;\n\\end\n\n\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock\n\n/*\n** Start with the normalize CSS reset, and then belay some of its effects\n*/\n\n{{$:/themes/tiddlywiki/vanilla/reset}}\n\n*, input[type=\&quot;search\&quot;] {\n\tbox-sizing: border-box;\n\t-moz-box-sizing: border-box;\n\t-webkit-box-sizing: border-box;\n}\n\nhtml button {\n\tline-height: 1.2;\n\tcolor: &lt;&lt;colour button-foreground&gt;&gt;;\n\tbackground: &lt;&lt;colour button-background&gt;&gt;;\n\tborder-color: &lt;&lt;colour button-border&gt;&gt;;\n}\n\n/*\n** Basic element styles\n*/\n\nhtml {\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/fontfamily}};\n\ttext-rendering: optimizeLegibility; /* Enables kerning and ligatures etc. */\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\nhtml:-webkit-full-screen {\n\tbackground-color: &lt;&lt;colour page-background&gt;&gt;;\n}\n\nbody.tc-body {\n\tfont-size: {{$:/themes/tiddlywiki/vanilla/metrics/fontsize}};\n\tline-height: {{$:/themes/tiddlywiki/vanilla/metrics/lineheight}};\n\tword-wrap: break-word;\n\t&lt;&lt;custom-background-datauri&gt;&gt;\n\tcolor: &lt;&lt;colour foreground&gt;&gt;;\n\tbackground-color: &lt;&lt;colour page-background&gt;&gt;;\n\tfill: &lt;&lt;colour foreground&gt;&gt;;\n}\n\n&lt;&lt;if-background-attachment \&quot;\&quot;\&quot;\n\nbody.tc-body {\n background-color: transparent;\n}\n\n\&quot;\&quot;\&quot;&gt;&gt;\n\nh1, h2, h3, h4, h5, h6 {\n\tline-height: 1.2;\n\tfont-weight: 300;\n}\n\npre {\n\tdisplay: block;\n\tpadding: 14px;\n\tmargin-top: 1em;\n\tmargin-bottom: 1em;\n\tword-break: normal;\n\tword-wrap: break-word;\n\twhite-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};\n\tbackground-color: &lt;&lt;colour pre-background&gt;&gt;;\n\tborder: 1px solid &lt;&lt;colour pre-border&gt;&gt;;\n\tpadding: 0 3px 2px;\n\tborder-radius: 3px;\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};\n}\n\ncode {\n\tcolor: &lt;&lt;colour code-foreground&gt;&gt;;\n\tbackground-color: &lt;&lt;colour code-background&gt;&gt;;\n\tborder: 1px solid &lt;&lt;colour code-border&gt;&gt;;\n\twhite-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};\n\tpadding: 0 3px 2px;\n\tborder-radius: 3px;\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};\n}\n\nblockquote {\n\tborder-left: 5px solid &lt;&lt;colour blockquote-bar&gt;&gt;;\n\tmargin-left: 25px;\n\tpadding-left: 10px;\n\tquotes: \&quot;\\201C\&quot;\&quot;\\201D\&quot;\&quot;\\2018\&quot;\&quot;\\2019\&quot;;\n}\n\nblockquote &gt; div {\n\tmargin-top: 1em;\n\tmargin-bottom: 1em;\n}\n\nblockquote.tc-big-quote {\n\tfont-family: Georgia, serif;\n\tposition: relative;\n\tbackground: &lt;&lt;colour pre-background&gt;&gt;;\n\tborder-left: none;\n\tmargin-left: 50px;\n\tmargin-right: 50px;\n\tpadding: 10px;\n border-radius: 8px;\n}\n\nblockquote.tc-big-quote cite:before {\n\tcontent: \&quot;\\2014 \\2009\&quot;;\n}\n\nblockquote.tc-big-quote:before {\n\tfont-family: Georgia, serif;\n\tcolor: &lt;&lt;colour blockquote-bar&gt;&gt;;\n\tcontent: open-quote;\n\tfont-size: 8em;\n\tline-height: 0.1em;\n\tmargin-right: 0.25em;\n\tvertical-align: -0.4em;\n\tposition: absolute;\n left: -50px;\n top: 42px;\n}\n\nblockquote.tc-big-quote:after {\n\tfont-family: Georgia, serif;\n\tcolor: &lt;&lt;colour blockquote-bar&gt;&gt;;\n\tcontent: close-quote;\n\tfont-size: 8em;\n\tline-height: 0.1em;\n\tmargin-right: 0.25em;\n\tvertical-align: -0.4em;\n\tposition: absolute;\n right: -80px;\n bottom: -20px;\n}\n\ndl dt {\n\tfont-weight: bold;\n\tmargin-top: 6px;\n}\n\nbutton, textarea, input, select {\n\toutline-color: &lt;&lt;colour primary&gt;&gt;;\n}\n\ntextarea,\ninput[type=text],\ninput[type=search],\ninput[type=\&quot;\&quot;],\ninput:not([type]) {\n\tcolor: &lt;&lt;colour foreground&gt;&gt;;\n\tbackground: &lt;&lt;colour background&gt;&gt;;\n}\n\ninput[type=\&quot;checkbox\&quot;] {\n vertical-align: middle;\n}\n\n.tc-muted {\n\tcolor: &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\nsvg.tc-image-button {\n\tpadding: 0px 1px 1px 0px;\n}\n\n.tc-icon-wrapper &gt; svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\nkbd {\n\tdisplay: inline-block;\n\tpadding: 3px 5px;\n\tfont-size: 0.8em;\n\tline-height: 1.2;\n\tcolor: &lt;&lt;colour foreground&gt;&gt;;\n\tvertical-align: middle;\n\tbackground-color: &lt;&lt;colour background&gt;&gt;;\n\tborder: solid 1px &lt;&lt;colour muted-foreground&gt;&gt;;\n\tborder-bottom-color: &lt;&lt;colour muted-foreground&gt;&gt;;\n\tborder-radius: 3px;\n\tbox-shadow: inset 0 -1px 0 &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n/*\nMarkdown likes putting code elements inside pre elements\n*/\npre &gt; code {\n\tpadding: 0;\n\tborder: none;\n\tbackground-color: inherit;\n\tcolor: inherit;\n}\n\ntable {\n\tborder: 1px solid &lt;&lt;colour table-border&gt;&gt;;\n\twidth: auto;\n\tmax-width: 100%;\n\tcaption-side: bottom;\n\tmargin-top: 1em;\n\tmargin-bottom: 1em;\n\t/* next 2 elements needed, since normalize 8.0.1 */\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}\n\ntable th, table td {\n\tpadding: 0 7px 0 7px;\n\tborder-top: 1px solid &lt;&lt;colour table-border&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour table-border&gt;&gt;;\n}\n\ntable thead tr td, table th {\n\tbackground-color: &lt;&lt;colour table-header-background&gt;&gt;;\n\tfont-weight: bold;\n}\n\ntable tfoot tr td {\n\tbackground-color: &lt;&lt;colour table-footer-background&gt;&gt;;\n}\n\n.tc-csv-table {\n\twhite-space: nowrap;\n}\n\n.tc-tiddler-frame img,\n.tc-tiddler-frame svg,\n.tc-tiddler-frame canvas,\n.tc-tiddler-frame embed,\n.tc-tiddler-frame iframe {\n\tmax-width: 100%;\n}\n\n.tc-tiddler-body &gt; embed,\n.tc-tiddler-body &gt; iframe {\n\twidth: 100%;\n\theight: 600px;\n}\n\n/*\n** Links\n*/\n\nbutton.tc-tiddlylink,\na.tc-tiddlylink {\n\ttext-decoration: none;\n\tfont-weight: 500;\n\tcolor: &lt;&lt;colour tiddler-link-foreground&gt;&gt;;\n\t-webkit-user-select: inherit; /* Otherwise the draggable attribute makes links impossible to select */\n}\n\n.tc-sidebar-lists a.tc-tiddlylink {\n\tcolor: &lt;&lt;colour sidebar-tiddler-link-foreground&gt;&gt;;\n}\n\n.tc-sidebar-lists a.tc-tiddlylink:hover {\n\tcolor: &lt;&lt;colour sidebar-tiddler-link-foreground-hover&gt;&gt;;\n}\n\nbutton.tc-tiddlylink:hover,\na.tc-tiddlylink:hover {\n\ttext-decoration: underline;\n}\n\na.tc-tiddlylink-resolves {\n}\n\na.tc-tiddlylink-shadow {\n\tfont-weight: bold;\n}\n\na.tc-tiddlylink-shadow.tc-tiddlylink-resolves {\n\tfont-weight: normal;\n}\n\na.tc-tiddlylink-missing {\n\tfont-style: italic;\n}\n\na.tc-tiddlylink-external {\n\ttext-decoration: underline;\n\tcolor: &lt;&lt;colour external-link-foreground&gt;&gt;;\n\tbackground-color: &lt;&lt;colour external-link-background&gt;&gt;;\n}\n\na.tc-tiddlylink-external:visited {\n\tcolor: &lt;&lt;colour external-link-foreground-visited&gt;&gt;;\n\tbackground-color: &lt;&lt;colour external-link-background-visited&gt;&gt;;\n}\n\na.tc-tiddlylink-external:hover {\n\tcolor: &lt;&lt;colour external-link-foreground-hover&gt;&gt;;\n\tbackground-color: &lt;&lt;colour external-link-background-hover&gt;&gt;;\n}\n\n/*\n** Drag and drop styles\n*/\n\n.tc-tiddler-dragger {\n\tposition: relative;\n\tz-index: -10000;\n}\n\n.tc-tiddler-dragger-inner {\n\tposition: absolute;\n\ttop: -1000px;\n\tleft: -1000px;\n\tdisplay: inline-block;\n\tpadding: 8px 20px;\n\tfont-size: 16.9px;\n\tfont-weight: bold;\n\tline-height: 20px;\n\tcolor: &lt;&lt;colour dragger-foreground&gt;&gt;;\n\ttext-shadow: 0 1px 0 rgba(0, 0, 0, 1);\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n\tbackground-color: &lt;&lt;colour dragger-background&gt;&gt;;\n\tborder-radius: 20px;\n}\n\n.tc-tiddler-dragger-cover {\n\tposition: absolute;\n\tbackground-color: &lt;&lt;colour page-background&gt;&gt;;\n}\n\n.tc-dropzone {\n\tposition: relative;\n}\n\n.tc-dropzone.tc-dragover:before {\n\tz-index: 10000;\n\tdisplay: block;\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbackground: &lt;&lt;colour dropzone-background&gt;&gt;;\n\ttext-align: center;\n\tcontent: \&quot;&lt;&lt;lingo DropMessage&gt;&gt;\&quot;;\n}\n\n.tc-droppable &gt; .tc-droppable-placeholder {\n\tdisplay: none;\n}\n\n.tc-droppable.tc-dragover &gt; .tc-droppable-placeholder {\n\tdisplay: block;\n\tborder: 2px dashed &lt;&lt;colour dropzone-background&gt;&gt;;\n}\n\n.tc-draggable {\n\tcursor: move;\n}\n\n.tc-sidebar-tab-open .tc-droppable-placeholder, .tc-tagged-draggable-list .tc-droppable-placeholder,\n.tc-links-draggable-list .tc-droppable-placeholder {\n\tline-height: 2em;\n\theight: 2em;\n}\n\n.tc-sidebar-tab-open-item {\n\tposition: relative;\n}\n\n.tc-sidebar-tab-open .tc-btn-invisible.tc-btn-mini svg {\n\tfont-size: 0.7em;\n\tfill: &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n/*\n** Plugin reload warning\n*/\n\n.tc-plugin-reload-warning {\n\tz-index: 1000;\n\tdisplay: block;\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbackground: &lt;&lt;colour alert-background&gt;&gt;;\n\ttext-align: center;\n}\n\n/*\n** Buttons\n*/\n\nbutton svg, button img, label svg, label img {\n\tvertical-align: middle;\n}\n\n.tc-btn-invisible {\n\tpadding: 0;\n\tmargin: 0;\n\tbackground: none;\n\tborder: none;\n \tcursor: pointer;\n\tcolor: &lt;&lt;colour foreground&gt;&gt;;\n}\n\n.tc-btn-boxed {\n\tfont-size: 0.6em;\n\tpadding: 0.2em;\n\tmargin: 1px;\n\tbackground: none;\n\tborder: 1px solid &lt;&lt;colour tiddler-controls-foreground&gt;&gt;;\n\tborder-radius: 0.25em;\n}\n\nhtml body.tc-body .tc-btn-boxed svg {\n\tfont-size: 1.6666em;\n}\n\n.tc-btn-boxed:hover {\n\tbackground: &lt;&lt;colour muted-foreground&gt;&gt;;\n\tcolor: &lt;&lt;colour background&gt;&gt;;\n}\n\nhtml body.tc-body .tc-btn-boxed:hover svg {\n\tfill: &lt;&lt;colour background&gt;&gt;;\n}\n\n.tc-btn-rounded {\n\tfont-size: 0.5em;\n\tline-height: 2;\n\tpadding: 0em 0.3em 0.2em 0.4em;\n\tmargin: 1px;\n\tborder: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;\n\tbackground: &lt;&lt;colour muted-foreground&gt;&gt;;\n\tcolor: &lt;&lt;colour background&gt;&gt;;\n\tborder-radius: 2em;\n}\n\nhtml body.tc-body .tc-btn-rounded svg {\n\tfont-size: 1.6666em;\n\tfill: &lt;&lt;colour background&gt;&gt;;\n}\n\n.tc-btn-rounded:hover {\n\tborder: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;\n\tbackground: &lt;&lt;colour background&gt;&gt;;\n\tcolor: &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\nhtml body.tc-body .tc-btn-rounded:hover svg {\n\tfill: &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n.tc-btn-icon svg {\n\theight: 1em;\n\twidth: 1em;\n\tfill: &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n.tc-btn-text {\n\tpadding: 0;\n\tmargin: 0;\n}\n\n/* used for documentation \&quot;fake\&quot; buttons */\n.tc-btn-standard {\n\tline-height: 1.8;\n\tcolor: #667;\n\tbackground-color: #e0e0e0;\n\tborder: 1px solid #888;\n\tpadding: 2px 1px 2px 1px;\n\tmargin: 1px 4px 1px 4px;\n}\n\n.tc-btn-big-green {\n\tdisplay: inline-block;\n\tpadding: 8px;\n\tmargin: 4px 8px 4px 8px;\n\tbackground: &lt;&lt;colour download-background&gt;&gt;;\n\tcolor: &lt;&lt;colour download-foreground&gt;&gt;;\n\tfill: &lt;&lt;colour download-foreground&gt;&gt;;\n\tborder: none;\n\tborder-radius: 2px;\n\tfont-size: 1.2em;\n\tline-height: 1.4em;\n\ttext-decoration: none;\n}\n\n.tc-btn-big-green svg,\n.tc-btn-big-green img {\n\theight: 2em;\n\twidth: 2em;\n\tvertical-align: middle;\n\tfill: &lt;&lt;colour download-foreground&gt;&gt;;\n}\n\n.tc-primary-btn {\n \tbackground: &lt;&lt;colour primary&gt;&gt;;\n}\n\n.tc-sidebar-lists input {\n\tcolor: &lt;&lt;colour foreground&gt;&gt;;\n}\n\n.tc-sidebar-lists button {\n\tcolor: &lt;&lt;colour sidebar-button-foreground&gt;&gt;;\n\tfill: &lt;&lt;colour sidebar-button-foreground&gt;&gt;;\n}\n\n.tc-sidebar-lists button.tc-btn-mini {\n\tcolor: &lt;&lt;colour sidebar-muted-foreground&gt;&gt;;\n}\n\n.tc-sidebar-lists button.tc-btn-mini:hover {\n\tcolor: &lt;&lt;colour sidebar-muted-foreground-hover&gt;&gt;;\n}\n\nbutton svg.tc-image-button, button .tc-image-button img {\n\theight: 1em;\n\twidth: 1em;\n}\n\n.tc-unfold-banner {\n\tposition: absolute;\n\tpadding: 0;\n\tmargin: 0;\n\tbackground: none;\n\tborder: none;\n\twidth: 100%;\n\twidth: calc(100% + 2px);\n\tmargin-left: -43px;\n\ttext-align: center;\n\tborder-top: 2px solid &lt;&lt;colour tiddler-info-background&gt;&gt;;\n\tmargin-top: 4px;\n}\n\n.tc-unfold-banner:hover {\n\tbackground: &lt;&lt;colour tiddler-info-background&gt;&gt;;\n\tborder-top: 2px solid &lt;&lt;colour tiddler-info-border&gt;&gt;;\n}\n\n.tc-unfold-banner svg, .tc-fold-banner svg {\n\theight: 0.75em;\n\tfill: &lt;&lt;colour tiddler-controls-foreground&gt;&gt;;\n}\n\n.tc-unfold-banner:hover svg, .tc-fold-banner:hover svg {\n\tfill: &lt;&lt;colour tiddler-controls-foreground-hover&gt;&gt;;\n}\n\n.tc-fold-banner {\n\tposition: absolute;\n\tpadding: 0;\n\tmargin: 0;\n\tbackground: none;\n\tborder: none;\n\twidth: 23px;\n\ttext-align: center;\n\tmargin-left: -35px;\n\ttop: 6px;\n\tbottom: 6px;\n}\n\n.tc-fold-banner:hover {\n\tbackground: &lt;&lt;colour tiddler-info-background&gt;&gt;;\n}\n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-unfold-banner {\n\t\tposition: static;\n\t\twidth: calc(100% + 59px);\n\t}\n\n\t.tc-fold-banner {\n\t\twidth: 16px;\n\t\tmargin-left: -16px;\n\t\tfont-size: 0.75em;\n\t}\n\n}\n\n/*\n** Tags and missing tiddlers\n*/\n\n.tc-tag-list-item {\n\tposition: relative;\n\tdisplay: inline-block;\n\tmargin-right: 7px;\n}\n\n.tc-tags-wrapper {\n\tmargin: 4px 0 14px 0;\n}\n\n.tc-missing-tiddler-label {\n\tfont-style: italic;\n\tfont-weight: normal;\n\tdisplay: inline-block;\n\tfont-size: 11.844px;\n\tline-height: 14px;\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n}\n\nbutton.tc-tag-label, span.tc-tag-label {\n\tdisplay: inline-block;\n\tpadding: 0.16em 0.7em;\n\tfont-size: 0.9em;\n\tfont-weight: 400;\n\tline-height: 1.2em;\n\tcolor: &lt;&lt;colour tag-foreground&gt;&gt;;\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n\tbackground-color: &lt;&lt;colour tag-background&gt;&gt;;\n\tborder-radius: 1em;\n}\n\n.tc-sidebar-scrollable .tc-tag-label {\n\ttext-shadow: none;\n}\n\n.tc-untagged-separator {\n\twidth: 10em;\n\tleft: 0;\n\tmargin-left: 0;\n\tborder: 0;\n\theight: 1px;\n\tbackground: &lt;&lt;colour tab-divider&gt;&gt;;\n}\n\nbutton.tc-untagged-label {\n\tbackground-color: &lt;&lt;colour untagged-background&gt;&gt;;\n}\n\n.tc-tag-label svg, .tc-tag-label img {\n\theight: 1em;\n\twidth: 1em;\n\tmargin-right: 3px; \n\tmargin-bottom: 1px;\n\tvertical-align: text-bottom;\n}\n\n.tc-edit-tags button.tc-remove-tag-button svg {\n\tfont-size: 0.7em;\n\tvertical-align: middle;\n}\n\n.tc-tag-manager-table .tc-tag-label {\n\twhite-space: normal;\n}\n\n.tc-tag-manager-tag {\n\twidth: 100%;\n}\n\nbutton.tc-btn-invisible.tc-remove-tag-button {\n\toutline: none;\n}\n\n/*\n** Page layout\n*/\n\n.tc-topbar {\n\tposition: fixed;\n\tz-index: 1200;\n}\n\n.tc-topbar-left {\n\tleft: 29px;\n\ttop: 5px;\n}\n\n.tc-topbar-right {\n\ttop: 5px;\n\tright: 29px;\n}\n\n.tc-topbar button {\n\tpadding: 8px;\n}\n\n.tc-topbar svg {\n\tfill: &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n.tc-topbar button:hover svg {\n\tfill: &lt;&lt;colour foreground&gt;&gt;;\n}\n\n.tc-sidebar-header {\n\tcolor: &lt;&lt;colour sidebar-foreground&gt;&gt;;\n\tfill: &lt;&lt;colour sidebar-foreground&gt;&gt;;\n}\n\n.tc-sidebar-header .tc-title a.tc-tiddlylink-resolves {\n\tfont-weight: 300;\n}\n\n.tc-sidebar-header .tc-sidebar-lists p {\n\tmargin-top: 3px;\n\tmargin-bottom: 3px;\n}\n\n.tc-sidebar-header .tc-missing-tiddler-label {\n\tcolor: &lt;&lt;colour sidebar-foreground&gt;&gt;;\n}\n\n.tc-advanced-search input {\n\twidth: 60%;\n}\n\n.tc-search a svg {\n\twidth: 1.2em;\n\theight: 1.2em;\n\tvertical-align: middle;\n}\n\n.tc-page-controls {\n\tmargin-top: 14px;\n\tfont-size: 1.5em;\n}\n\n.tc-page-controls .tc-drop-down {\n font-size: 1rem;\n}\n\n.tc-page-controls button {\n\tmargin-right: 0.5em;\n}\n\n.tc-page-controls a.tc-tiddlylink:hover {\n\ttext-decoration: none;\n}\n\n.tc-page-controls img {\n\twidth: 1em;\n}\n\n.tc-page-controls svg {\n\tfill: &lt;&lt;colour sidebar-controls-foreground&gt;&gt;;\n}\n\n.tc-page-controls button:hover svg, .tc-page-controls a:hover svg {\n\tfill: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;;\n}\n\n.tc-menu-list-item {\n\twhite-space: nowrap;\n}\n\n.tc-menu-list-count {\n\tfont-weight: bold;\n}\n\n.tc-menu-list-subitem {\n\tpadding-left: 7px;\n}\n\n.tc-story-river {\n\tposition: relative;\n}\n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-sidebar-header {\n\t\tpadding: 14px;\n\t\tmin-height: 32px;\n\t\tmargin-top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};\n\t}\n\n\t.tc-story-river {\n\t\tposition: relative;\n\t\tpadding: 0;\n\t}\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-message-box {\n\t\tmargin: 21px -21px 21px -21px;\n\t}\n\n\t.tc-sidebar-scrollable {\n\t\tposition: fixed;\n\t\ttop: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};\n\t\tleft: {{$:/themes/tiddlywiki/vanilla/metrics/storyright}};\n\t\tbottom: 0;\n\t\tright: 0;\n\t\toverflow-y: auto;\n\t\toverflow-x: auto;\n\t\t-webkit-overflow-scrolling: touch;\n\t\tmargin: 0 0 0 -42px;\n\t\tpadding: 71px 0 28px 42px;\n\t}\n\n\thtml[dir=\&quot;rtl\&quot;] .tc-sidebar-scrollable {\n\t\tleft: auto;\n\t\tright: {{$:/themes/tiddlywiki/vanilla/metrics/storyright}};\n\t}\n\n\t.tc-story-river {\n\t\tposition: relative;\n\t\tleft: {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}};\n\t\ttop: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};\n\t\twidth: {{$:/themes/tiddlywiki/vanilla/metrics/storywidth}};\n\t\tpadding: 42px 42px 42px 42px;\n\t}\n\n&lt;&lt;if-no-sidebar \&quot;\n\n\t.tc-story-river {\n\t\twidth: calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}});\n\t}\n\n\&quot;&gt;&gt;\n\n}\n\n@media print {\n\n\tbody.tc-body {\n\t\tbackground-color: transparent;\n\t}\n\n\t.tc-sidebar-header, .tc-topbar {\n\t\tdisplay: none;\n\t}\n\n\t.tc-story-river {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.tc-story-river .tc-tiddler-frame {\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tpadding: 0;\n\t}\n}\n\n/*\n** Tiddler styles\n*/\n\n.tc-tiddler-frame {\n\tposition: relative;\n\tmargin-bottom: 28px;\n\tbackground-color: &lt;&lt;colour tiddler-background&gt;&gt;;\n\tborder: 1px solid &lt;&lt;colour tiddler-border&gt;&gt;;\n}\n\n{{$:/themes/tiddlywiki/vanilla/sticky}}\n\n.tc-tiddler-info {\n\tpadding: 14px 42px 14px 42px;\n\tbackground-color: &lt;&lt;colour tiddler-info-background&gt;&gt;;\n\tborder-top: 1px solid &lt;&lt;colour tiddler-info-border&gt;&gt;;\n\tborder-bottom: 1px solid &lt;&lt;colour tiddler-info-border&gt;&gt;;\n}\n\n.tc-tiddler-info p {\n\tmargin-top: 3px;\n\tmargin-bottom: 3px;\n}\n\n.tc-tiddler-info .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: &lt;&lt;colour tiddler-info-tab-background&gt;&gt;;\n\tborder-bottom: 1px solid &lt;&lt;colour tiddler-info-tab-background&gt;&gt;;\n}\n\n.tc-view-field-table {\n\twidth: 100%;\n}\n\n.tc-view-field-name {\n\twidth: 1%; /* Makes this column be as narrow as possible */\n\ttext-align: right;\n\tfont-style: italic;\n\tfont-weight: 200;\n}\n\n.tc-view-field-value {\n}\n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\t.tc-tiddler-frame {\n\t\tpadding: 14px 14px 14px 14px;\n\t}\n\n\t.tc-tiddler-info {\n\t\tmargin: 0 -14px 0 -14px;\n\t}\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\t.tc-tiddler-frame {\n\t\tpadding: 28px 42px 42px 42px;\n\t\twidth: {{$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth}};\n\t\tborder-radius: 2px;\n\t}\n\n&lt;&lt;if-no-sidebar \&quot;\n\n\t.tc-tiddler-frame {\n\t\twidth: 100%;\n\t}\n\n\&quot;&gt;&gt;\n\n\t.tc-tiddler-info {\n\t\tmargin: 0 -42px 0 -42px;\n\t}\n}\n\n.tc-site-title,\n.tc-titlebar {\n\tfont-weight: 300;\n\tfont-size: 2.35em;\n\tline-height: 1.2em;\n\tcolor: &lt;&lt;colour tiddler-title-foreground&gt;&gt;;\n\tmargin: 0;\n}\n\n.tc-site-title {\n\tcolor: &lt;&lt;colour site-title-foreground&gt;&gt;;\n}\n\n.tc-tiddler-title-icon {\n\tvertical-align: middle;\n\tmargin-right: .1em;\n}\n\n.tc-system-title-prefix {\n\tcolor: &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n.tc-titlebar h2 {\n\tfont-size: 1em;\n\tdisplay: inline;\n}\n\n.tc-titlebar img {\n\theight: 1em;\n}\n\n.tc-subtitle {\n\tfont-size: 0.9em;\n\tcolor: &lt;&lt;colour tiddler-subtitle-foreground&gt;&gt;;\n\tfont-weight: 300;\n}\n\n.tc-subtitle .tc-tiddlylink {\n\tmargin-right: .3em;\n}\n\n.tc-tiddler-missing .tc-title {\n font-style: italic;\n font-weight: normal;\n}\n\n.tc-tiddler-frame .tc-tiddler-controls {\n\tfloat: right;\n}\n\n.tc-tiddler-controls .tc-drop-down {\n\tfont-size: 0.6em;\n}\n\n.tc-tiddler-controls .tc-drop-down .tc-drop-down {\n\tfont-size: 1em;\n}\n\n.tc-tiddler-controls &gt; span &gt; button,\n.tc-tiddler-controls &gt; span &gt; span &gt; button,\n.tc-tiddler-controls &gt; span &gt; span &gt; span &gt; button {\n\tvertical-align: baseline;\n\tmargin-left:5px;\n}\n\n.tc-tiddler-controls button svg, .tc-tiddler-controls button img,\n.tc-search button svg, .tc-search a svg {\n\tfill: &lt;&lt;colour tiddler-controls-foreground&gt;&gt;;\n}\n\n.tc-tiddler-controls button svg, .tc-tiddler-controls button img {\n\theight: 0.75em;\n}\n\n.tc-search button svg, .tc-search a svg {\n height: 1.2em;\n width: 1.2em;\n margin: 0 0.25em;\n}\n\n.tc-tiddler-controls button.tc-selected svg,\n.tc-page-controls button.tc-selected svg {\n\tfill: &lt;&lt;colour tiddler-controls-foreground-selected&gt;&gt;;\n}\n\n.tc-tiddler-controls button.tc-btn-invisible:hover svg,\n.tc-search button:hover svg, .tc-search a:hover svg {\n\tfill: &lt;&lt;colour tiddler-controls-foreground-hover&gt;&gt;;\n}\n\n@media print {\n\t.tc-tiddler-controls {\n\t\tdisplay: none;\n\t}\n}\n\n.tc-tiddler-help { /* Help prompts within tiddler template */\n\tcolor: &lt;&lt;colour muted-foreground&gt;&gt;;\n\tmargin-top: 14px;\n}\n\n.tc-tiddler-help a.tc-tiddlylink {\n\tcolor: &lt;&lt;colour very-muted-foreground&gt;&gt;;\n}\n\n.tc-tiddler-frame .tc-edit-texteditor {\n\twidth: 100%;\n\tmargin: 4px 0 4px 0;\n}\n\n.tc-tiddler-frame input.tc-edit-texteditor,\n.tc-tiddler-frame textarea.tc-edit-texteditor,\n.tc-tiddler-frame iframe.tc-edit-texteditor {\n\tpadding: 3px 3px 3px 3px;\n\tborder: 1px solid &lt;&lt;colour tiddler-editor-border&gt;&gt;;\n\tbackground-color: &lt;&lt;colour tiddler-editor-background&gt;&gt;;\n\tline-height: 1.3em;\n\t-webkit-appearance: none;\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};\n}\n\n.tc-tiddler-frame .tc-binary-warning {\n\twidth: 100%;\n\theight: 5em;\n\ttext-align: center;\n\tpadding: 3em 3em 6em 3em;\n\tbackground: &lt;&lt;colour alert-background&gt;&gt;;\n\tborder: 1px solid &lt;&lt;colour alert-border&gt;&gt;;\n}\n\ncanvas.tc-edit-bitmapeditor {\n\tborder: 6px solid &lt;&lt;colour tiddler-editor-border-image&gt;&gt;;\n\tcursor: crosshair;\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tmargin-top: 6px;\n\tmargin-bottom: 6px;\n}\n\n.tc-edit-bitmapeditor-width {\n\tdisplay: block;\n}\n\n.tc-edit-bitmapeditor-height {\n\tdisplay: block;\n}\n\n.tc-tiddler-body {\n\tclear: both;\n}\n\n.tc-tiddler-frame .tc-tiddler-body {\n\tfont-size: {{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}};\n\tline-height: {{$:/themes/tiddlywiki/vanilla/metrics/bodylineheight}};\n}\n\n.tc-titlebar, .tc-tiddler-edit-title {\n\toverflow: hidden; /* https://github.com/Jermolene/TiddlyWiki5/issues/282 */\n}\n\nhtml body.tc-body.tc-single-tiddler-window {\n\tmargin: 1em;\n\tbackground: &lt;&lt;colour tiddler-background&gt;&gt;;\n}\n\n.tc-single-tiddler-window img,\n.tc-single-tiddler-window svg,\n.tc-single-tiddler-window canvas,\n.tc-single-tiddler-window embed,\n.tc-single-tiddler-window iframe {\n\tmax-width: 100%;\n}\n\n/*\n** Editor\n*/\n\n.tc-editor-toolbar {\n\tmargin-top: 8px;\n}\n\n.tc-editor-toolbar button {\n\tvertical-align: middle;\n\tbackground-color: &lt;&lt;colour tiddler-controls-foreground&gt;&gt;;\n\tcolor: &lt;&lt;colour tiddler-controls-foreground-selected&gt;&gt;;\n\tfill: &lt;&lt;colour tiddler-controls-foreground-selected&gt;&gt;;\n\tborder-radius: 4px;\n\tpadding: 3px;\n\tmargin: 2px 0 2px 4px;\n}\n\n.tc-editor-toolbar button.tc-text-editor-toolbar-item-adjunct {\n\tmargin-left: 1px;\n\twidth: 1em;\n\tborder-radius: 8px;\n}\n\n.tc-editor-toolbar button.tc-text-editor-toolbar-item-start-group {\n\tmargin-left: 11px;\n}\n\n.tc-editor-toolbar button.tc-selected {\n\tbackground-color: &lt;&lt;colour primary&gt;&gt;;\n}\n\n.tc-editor-toolbar button svg {\n\twidth: 1.6em;\n\theight: 1.2em;\n}\n\n.tc-editor-toolbar button:hover {\n\tbackground-color: &lt;&lt;colour tiddler-controls-foreground-selected&gt;&gt;;\n\tfill: &lt;&lt;colour background&gt;&gt;;\n\tcolor: &lt;&lt;colour background&gt;&gt;;\n}\n\n.tc-editor-toolbar .tc-text-editor-toolbar-more {\n\twhite-space: normal;\n}\n\n.tc-editor-toolbar .tc-text-editor-toolbar-more button {\n\tdisplay: inline-block;\n\tpadding: 3px;\n\twidth: auto;\n}\n\n.tc-editor-toolbar .tc-search-results {\n\tpadding: 0;\n}\n\n/*\n** Adjustments for fluid-fixed mode\n*/\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n&lt;&lt;if-fluid-fixed text:\&quot;\&quot;\&quot;\n\n\t.tc-story-river {\n\t\tpadding-right: 0;\n\t\tposition: relative;\n\t\twidth: auto;\n\t\tleft: 0;\n\t\tmargin-left: {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}};\n\t\tmargin-right: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}};\n\t}\n\n\t.tc-tiddler-frame {\n\t\twidth: 100%;\n\t}\n\n\t.tc-sidebar-scrollable {\n\t\tleft: auto;\n\t\tbottom: 0;\n\t\tright: 0;\n\t\twidth: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}};\n\t}\n\n\tbody.tc-body .tc-storyview-zoomin-tiddler {\n\t\twidth: 100%;\n\t\twidth: calc(100% - 42px);\n\t}\n\n\&quot;\&quot;\&quot; hiddenSidebarText:\&quot;\&quot;\&quot;\n\n\t.tc-story-river {\n\t\tpadding-right: 3em;\n\t\tmargin-right: 0;\n\t}\n\n\tbody.tc-body .tc-storyview-zoomin-tiddler {\n\t\twidth: 100%;\n\t\twidth: calc(100% - 84px);\n\t}\n\n\&quot;\&quot;\&quot;&gt;&gt;\n\n}\n\n/*\n** Toolbar buttons\n*/\n\n.tc-page-controls svg.tc-image-new-button {\n fill: &lt;&lt;colour toolbar-new-button&gt;&gt;;\n}\n\n.tc-page-controls svg.tc-image-options-button {\n fill: &lt;&lt;colour toolbar-options-button&gt;&gt;;\n}\n\n.tc-page-controls svg.tc-image-save-button {\n fill: &lt;&lt;colour toolbar-save-button&gt;&gt;;\n}\n\n.tc-tiddler-controls button svg.tc-image-info-button {\n fill: &lt;&lt;colour toolbar-info-button&gt;&gt;;\n}\n\n.tc-tiddler-controls button svg.tc-image-edit-button {\n fill: &lt;&lt;colour toolbar-edit-button&gt;&gt;;\n}\n\n.tc-tiddler-controls button svg.tc-image-close-button {\n fill: &lt;&lt;colour toolbar-close-button&gt;&gt;;\n}\n\n.tc-tiddler-controls button svg.tc-image-delete-button {\n fill: &lt;&lt;colour toolbar-delete-button&gt;&gt;;\n}\n\n.tc-tiddler-controls button svg.tc-image-cancel-button {\n fill: &lt;&lt;colour toolbar-cancel-button&gt;&gt;;\n}\n\n.tc-tiddler-controls button svg.tc-image-done-button {\n fill: &lt;&lt;colour toolbar-done-button&gt;&gt;;\n}\n\n/*\n** Tiddler edit mode\n*/\n\n.tc-tiddler-edit-frame em.tc-edit {\n\tcolor: &lt;&lt;colour muted-foreground&gt;&gt;;\n\tfont-style: normal;\n}\n\n.tc-edit-type-dropdown a.tc-tiddlylink-missing {\n\tfont-style: normal;\n}\n\n.tc-type-selector .tc-edit-typeeditor {\n\twidth: 20%;\n}\n\n.tc-edit-tags {\n\tborder: 1px solid &lt;&lt;colour tiddler-editor-border&gt;&gt;;\n\tpadding: 4px 8px 4px 8px;\n}\n\n.tc-edit-add-tag {\n\tdisplay: inline-block;\n}\n\n.tc-edit-add-tag .tc-add-tag-name input {\n\twidth: 50%;\n}\n\n.tc-edit-add-tag .tc-keyboard {\n\tdisplay:inline;\n}\n\n.tc-edit-tags .tc-tag-label {\n\tdisplay: inline-block;\n}\n\n.tc-edit-tags-list {\n\tmargin: 14px 0 14px 0;\n}\n\n.tc-remove-tag-button {\n\tpadding-left: 4px;\n}\n\n.tc-tiddler-preview {\n\toverflow: auto;\n}\n\n.tc-tiddler-preview-preview {\n\tfloat: right;\n\twidth: 49%;\n\tborder: 1px solid &lt;&lt;colour tiddler-editor-border&gt;&gt;;\n\tmargin: 4px 0 3px 3px;\n\tpadding: 3px 3px 3px 3px;\n}\n\n&lt;&lt;if-editor-height-fixed then:\&quot;\&quot;\&quot;\n\n.tc-tiddler-preview-preview {\n\toverflow-y: scroll;\n\theight: {{$:/config/TextEditor/EditorHeight/Height}};\n}\n\n\&quot;\&quot;\&quot;&gt;&gt;\n\n.tc-tiddler-frame .tc-tiddler-preview .tc-edit-texteditor {\n\twidth: 49%;\n}\n\n.tc-tiddler-frame .tc-tiddler-preview canvas.tc-edit-bitmapeditor {\n\tmax-width: 49%;\n}\n\n.tc-edit-fields {\n\twidth: 100%;\n}\n\n\n.tc-edit-fields table, .tc-edit-fields tr, .tc-edit-fields td {\n\tborder: none;\n\tpadding: 4px;\n}\n\n.tc-edit-fields &gt; tbody &gt; .tc-edit-field:nth-child(odd) {\n\tbackground-color: &lt;&lt;colour tiddler-editor-fields-odd&gt;&gt;;\n}\n\n.tc-edit-fields &gt; tbody &gt; .tc-edit-field:nth-child(even) {\n\tbackground-color: &lt;&lt;colour tiddler-editor-fields-even&gt;&gt;;\n}\n\n.tc-edit-field-name {\n\ttext-align: right;\n}\n\n.tc-edit-field-value input {\n\twidth: 100%;\n}\n\n.tc-edit-field-remove {\n}\n\n.tc-edit-field-remove svg {\n\theight: 1em;\n\twidth: 1em;\n\tfill: &lt;&lt;colour muted-foreground&gt;&gt;;\n\tvertical-align: middle;\n}\n\n.tc-edit-field-add-name {\n\tdisplay: inline-block;\n\twidth: 15%;\n}\n\n.tc-edit-field-add-value {\n\tdisplay: inline-block;\n\twidth: 40%;\n}\n\n.tc-edit-field-add-button {\n\tdisplay: inline-block;\n\twidth: 10%;\n}\n\n/*\n** Storyview Classes\n*/\n\n.tc-viewswitcher .tc-image-button {\n\tmargin-right: .3em;\n}\n\n.tc-storyview-zoomin-tiddler {\n\tposition: absolute;\n\tdisplay: block;\n\twidth: 100%;\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-storyview-zoomin-tiddler {\n\t\twidth: calc(100% - 84px);\n\t}\n\n}\n\n/*\n** Dropdowns\n*/\n\n.tc-btn-dropdown {\n\ttext-align: left;\n}\n\n.tc-btn-dropdown svg, .tc-btn-dropdown img {\n\theight: 1em;\n\twidth: 1em;\n\tfill: &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n.tc-drop-down-wrapper {\n\tposition: relative;\n}\n\n.tc-drop-down {\n\tmin-width: 380px;\n\tborder: 1px solid &lt;&lt;colour dropdown-border&gt;&gt;;\n\tbackground-color: &lt;&lt;colour dropdown-background&gt;&gt;;\n\tpadding: 7px 0 7px 0;\n\tmargin: 4px 0 0 0;\n\twhite-space: nowrap;\n\ttext-shadow: none;\n\tline-height: 1.4;\n}\n\n.tc-drop-down .tc-drop-down {\n\tmargin-left: 14px;\n}\n\n.tc-drop-down button svg, .tc-drop-down a svg {\n\tfill: &lt;&lt;colour foreground&gt;&gt;;\n}\n\n.tc-drop-down button.tc-btn-invisible:hover svg {\n\tfill: &lt;&lt;colour foreground&gt;&gt;;\n}\n\n.tc-drop-down .tc-drop-down-info {\n\tpadding-left: 14px;\n}\n\n.tc-drop-down p {\n\tpadding: 0 14px 0 14px;\n}\n\n.tc-drop-down svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-drop-down img {\n\twidth: 1em;\n}\n\n.tc-drop-down a, .tc-drop-down button {\n\tdisplay: block;\n\tpadding: 0 14px 0 14px;\n\twidth: 100%;\n\ttext-align: left;\n\tcolor: &lt;&lt;colour foreground&gt;&gt;;\n\tline-height: 1.4;\n}\n\n.tc-drop-down .tc-tab-set .tc-tab-buttons button {\n\tdisplay: inline-block;\n width: auto;\n margin-bottom: 0px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.tc-drop-down .tc-prompt {\n\tpadding: 0 14px;\n}\n\n.tc-drop-down .tc-chooser {\n\tborder: none;\n}\n\n.tc-drop-down .tc-chooser .tc-swatches-horiz {\n\tfont-size: 0.4em;\n\tpadding-left: 1.2em;\n}\n\n.tc-drop-down .tc-file-input-wrapper {\n\twidth: 100%;\n}\n\n.tc-drop-down .tc-file-input-wrapper button {\n\tcolor: &lt;&lt;colour foreground&gt;&gt;;\n}\n\n.tc-drop-down a:hover, .tc-drop-down button:hover, .tc-drop-down .tc-file-input-wrapper:hover button {\n\tcolor: &lt;&lt;colour tiddler-link-background&gt;&gt;;\n\tbackground-color: &lt;&lt;colour tiddler-link-foreground&gt;&gt;;\n\ttext-decoration: none;\n}\n\n.tc-drop-down .tc-tab-buttons button {\n\tbackground-color: &lt;&lt;colour dropdown-tab-background&gt;&gt;;\n}\n\n.tc-drop-down .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: &lt;&lt;colour dropdown-tab-background-selected&gt;&gt;;\n\tborder-bottom: 1px solid &lt;&lt;colour dropdown-tab-background-selected&gt;&gt;;\n}\n\n.tc-drop-down-bullet {\n\tdisplay: inline-block;\n\twidth: 0.5em;\n}\n\n.tc-drop-down .tc-tab-contents a {\n\tpadding: 0 0.5em 0 0.5em;\n}\n\n.tc-block-dropdown-wrapper {\n\tposition: relative;\n}\n\n.tc-block-dropdown {\n\tposition: absolute;\n\tmin-width: 220px;\n\tborder: 1px solid &lt;&lt;colour dropdown-border&gt;&gt;;\n\tbackground-color: &lt;&lt;colour dropdown-background&gt;&gt;;\n\tpadding: 7px 0;\n\tmargin: 4px 0 0 0;\n\twhite-space: nowrap;\n\tz-index: 1000;\n\ttext-shadow: none;\n}\n\n.tc-block-dropdown.tc-search-drop-down {\n\tmargin-left: -12px;\n}\n\n.tc-block-dropdown a {\n\tdisplay: block;\n\tpadding: 4px 14px 4px 14px;\n}\n\n.tc-block-dropdown.tc-search-drop-down a {\n\tdisplay: block;\n\tpadding: 0px 10px 0px 10px;\n}\n\n.tc-drop-down .tc-dropdown-item-plain,\n.tc-block-dropdown .tc-dropdown-item-plain {\n\tpadding: 4px 14px 4px 7px;\n}\n\n.tc-drop-down .tc-dropdown-item,\n.tc-block-dropdown .tc-dropdown-item {\n\tpadding: 4px 14px 4px 7px;\n\tcolor: &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n.tc-block-dropdown a:hover {\n\tcolor: &lt;&lt;colour tiddler-link-background&gt;&gt;;\n\tbackground-color: &lt;&lt;colour tiddler-link-foreground&gt;&gt;;\n\ttext-decoration: none;\n}\n\n.tc-search-results {\n\tpadding: 0 7px 0 7px;\n}\n\n.tc-image-chooser, .tc-colour-chooser {\n\twhite-space: normal;\n}\n\n.tc-image-chooser a,\n.tc-colour-chooser a {\n\tdisplay: inline-block;\n\tvertical-align: top;\n\ttext-align: center;\n\tposition: relative;\n}\n\n.tc-image-chooser a {\n\tborder: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;\n\tpadding: 2px;\n\tmargin: 2px;\n\twidth: 4em;\n\theight: 4em;\n}\n\n.tc-colour-chooser a {\n\tpadding: 3px;\n\twidth: 2em;\n\theight: 2em;\n\tvertical-align: middle;\n}\n\n.tc-image-chooser a:hover,\n.tc-colour-chooser a:hover {\n\tbackground: &lt;&lt;colour primary&gt;&gt;;\n\tpadding: 0px;\n\tborder: 3px solid &lt;&lt;colour primary&gt;&gt;;\n}\n\n.tc-image-chooser a svg,\n.tc-image-chooser a img {\n\tdisplay: inline-block;\n\twidth: auto;\n\theight: auto;\n\tmax-width: 3.5em;\n\tmax-height: 3.5em;\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tmargin: auto;\n}\n\n/*\n** Modals\n*/\n\n.tc-modal-wrapper {\n\tposition: fixed;\n\toverflow: auto;\n\toverflow-y: scroll;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\tz-index: 900;\n}\n\n.tc-modal-backdrop {\n\tposition: fixed;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\tz-index: 1000;\n\tbackground-color: &lt;&lt;colour modal-backdrop&gt;&gt;;\n}\n\n.tc-modal {\n\tz-index: 1100;\n\tbackground-color: &lt;&lt;colour modal-background&gt;&gt;;\n\tborder: 1px solid &lt;&lt;colour modal-border&gt;&gt;;\n}\n\n@media (max-width: 55em) {\n\t.tc-modal {\n\t\tposition: fixed;\n\t\ttop: 1em;\n\t\tleft: 1em;\n\t\tright: 1em;\n\t}\n\n\t.tc-modal-body {\n\t\toverflow-y: auto;\n\t\tmax-height: 400px;\n\t\tmax-height: 60vh;\n\t}\n}\n\n@media (min-width: 55em) {\n\t.tc-modal {\n\t\tposition: fixed;\n\t\ttop: 2em;\n\t\tleft: 25%;\n\t\twidth: 50%;\n\t}\n\n\t.tc-modal-body {\n\t\toverflow-y: auto;\n\t\tmax-height: 400px;\n\t\tmax-height: 60vh;\n\t}\n}\n\n.tc-modal-header {\n\tpadding: 9px 15px;\n\tborder-bottom: 1px solid &lt;&lt;colour modal-header-border&gt;&gt;;\n}\n\n.tc-modal-header h3 {\n\tmargin: 0;\n\tline-height: 30px;\n}\n\n.tc-modal-header img, .tc-modal-header svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-modal-body {\n\tpadding: 15px;\n}\n\n.tc-modal-footer {\n\tpadding: 14px 15px 15px;\n\tmargin-bottom: 0;\n\ttext-align: right;\n\tbackground-color: &lt;&lt;colour modal-footer-background&gt;&gt;;\n\tborder-top: 1px solid &lt;&lt;colour modal-footer-border&gt;&gt;;\n}\n\n/*\n** Notifications\n*/\n\n.tc-notification {\n\tposition: fixed;\n\ttop: 14px;\n\tright: 42px;\n\tz-index: 1300;\n\tmax-width: 280px;\n\tpadding: 0 14px 0 14px;\n\tbackground-color: &lt;&lt;colour notification-background&gt;&gt;;\n\tborder: 1px solid &lt;&lt;colour notification-border&gt;&gt;;\n}\n\n/*\n** Tabs\n*/\n\n.tc-tab-set.tc-vertical {\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n}\n\n.tc-tab-buttons {\n\tfont-size: 0.85em;\n\tpadding-top: 1em;\n\tmargin-bottom: -2px;\n}\n\n.tc-tab-buttons.tc-vertical {\n\tz-index: 100;\n\tdisplay: block;\n\tpadding-top: 14px;\n\tvertical-align: top;\n\ttext-align: right;\n\tmargin-bottom: inherit;\n\tmargin-right: -1px;\n\tmax-width: 33%;\n\t-webkit-flex: 0 0 auto;\n\tflex: 0 0 auto;\n}\n\n.tc-tab-buttons button.tc-tab-selected {\n\tcolor: &lt;&lt;colour tab-foreground-selected&gt;&gt;;\n\tbackground-color: &lt;&lt;colour tab-background-selected&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour tab-border-selected&gt;&gt;;\n\tborder-top: 1px solid &lt;&lt;colour tab-border-selected&gt;&gt;;\n\tborder-right: 1px solid &lt;&lt;colour tab-border-selected&gt;&gt;;\n}\n\n.tc-tab-buttons button {\n\tcolor: &lt;&lt;colour tab-foreground&gt;&gt;;\n\tpadding: 3px 5px 3px 5px;\n\tmargin-right: 0.3em;\n\tfont-weight: 300;\n\tborder: none;\n\tbackground: inherit;\n\tbackground-color: &lt;&lt;colour tab-background&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tborder-top: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tborder-right: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tborder-top-left-radius: 2px;\n\tborder-top-right-radius: 2px;\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n}\n\n.tc-tab-buttons.tc-vertical button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin-top: 3px;\n\tmargin-right: 0;\n\ttext-align: right;\n\tbackground-color: &lt;&lt;colour tab-background&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tborder-bottom: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tborder-right: none;\n\tborder-top-left-radius: 2px;\n\tborder-bottom-left-radius: 2px;\n\tborder-top-right-radius: 0;\n\tborder-bottom-right-radius: 0;\n}\n\n.tc-tab-buttons.tc-vertical button.tc-tab-selected {\n\tbackground-color: &lt;&lt;colour tab-background-selected&gt;&gt;;\n\tborder-right: 1px solid &lt;&lt;colour tab-background-selected&gt;&gt;;\n}\n\n.tc-tab-divider {\n\tborder-top: 1px solid &lt;&lt;colour tab-divider&gt;&gt;;\n}\n\n.tc-tab-divider.tc-vertical {\n\tdisplay: none;\n}\n\n.tc-tab-content {\n\tmargin-top: 14px;\n}\n\n.tc-tab-content.tc-vertical {\n\tdisplay: inline-block;\n\tvertical-align: top;\n\tpadding-top: 0;\n\tpadding-left: 14px;\n\tborder-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\t-webkit-flex: 1 0 70%;\n\tflex: 1 0 70%;\n\toverflow: auto;\n}\n\n.tc-sidebar-lists .tc-tab-buttons {\n\tmargin-bottom: -1px;\n}\n\n.tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: &lt;&lt;colour sidebar-tab-background-selected&gt;&gt;;\n\tcolor: &lt;&lt;colour sidebar-tab-foreground-selected&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour sidebar-tab-border-selected&gt;&gt;;\n\tborder-top: 1px solid &lt;&lt;colour sidebar-tab-border-selected&gt;&gt;;\n\tborder-right: 1px solid &lt;&lt;colour sidebar-tab-border-selected&gt;&gt;;\n}\n\n.tc-sidebar-lists .tc-tab-buttons button {\n\tbackground-color: &lt;&lt;colour sidebar-tab-background&gt;&gt;;\n\tcolor: &lt;&lt;colour sidebar-tab-foreground&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour sidebar-tab-border&gt;&gt;;\n\tborder-top: 1px solid &lt;&lt;colour sidebar-tab-border&gt;&gt;;\n\tborder-right: 1px solid &lt;&lt;colour sidebar-tab-border&gt;&gt;;\n}\n\n.tc-sidebar-lists .tc-tab-divider {\n\tborder-top: 1px solid &lt;&lt;colour sidebar-tab-divider&gt;&gt;;\n}\n\n.tc-more-sidebar &gt; .tc-tab-set &gt; .tc-tab-buttons &gt; button {\n\tdisplay: block;\n\twidth: 100%;\n\tbackground-color: &lt;&lt;colour sidebar-tab-background&gt;&gt;;\n\tborder-top: none;\n\tborder-left: none;\n\tborder-bottom: none;\n\tborder-right: 1px solid #ccc;\n\tmargin-bottom: inherit;\n}\n\n.tc-more-sidebar &gt; .tc-tab-set &gt; .tc-tab-buttons &gt; button.tc-tab-selected {\n\tbackground-color: &lt;&lt;colour sidebar-tab-background-selected&gt;&gt;;\n\tborder: none;\n}\n\n/*\n** Manager\n*/\n\n.tc-manager-wrapper {\n\t\n}\n\n.tc-manager-controls {\n\t\n}\n\n.tc-manager-control {\n\tmargin: 0.5em 0;\n}\n\n.tc-manager-list {\n\twidth: 100%;\n\tborder-top: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;\n\tborder-right: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n.tc-manager-list-item {\n\n}\n\n.tc-manager-list-item-heading {\n display: block;\n width: 100%;\n text-align: left;\t\n\tborder-bottom: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;\n\tpadding: 3px;\n}\n\n.tc-manager-list-item-heading-selected {\n\tfont-weight: bold;\n\tcolor: &lt;&lt;colour background&gt;&gt;;\n\tfill: &lt;&lt;colour background&gt;&gt;;\n\tbackground-color: &lt;&lt;colour foreground&gt;&gt;;\n}\n\n.tc-manager-list-item-heading:hover {\n\tbackground: &lt;&lt;colour primary&gt;&gt;;\n\tcolor: &lt;&lt;colour background&gt;&gt;;\n}\n\n.tc-manager-list-item-content {\n\tdisplay: flex;\n}\n\n.tc-manager-list-item-content-sidebar {\n flex: 1 0;\n background: &lt;&lt;colour tiddler-editor-background&gt;&gt;;\n border-right: 0.5em solid &lt;&lt;colour muted-foreground&gt;&gt;;\n border-bottom: 0.5em solid &lt;&lt;colour muted-foreground&gt;&gt;;\n white-space: nowrap;\n}\n\n.tc-manager-list-item-content-item-heading {\n\tdisplay: block;\n\twidth: 100%;\n\ttext-align: left;\n background: &lt;&lt;colour muted-foreground&gt;&gt;;\n\ttext-transform: uppercase;\n\tfont-size: 0.6em;\n\tfont-weight: bold;\n padding: 0.5em 0 0.5em 0;\n}\n\n.tc-manager-list-item-content-item-body {\n\tpadding: 0 0.5em 0 0.5em;\n}\n\n.tc-manager-list-item-content-item-body &gt; pre {\n\tmargin: 0.5em 0 0.5em 0;\n\tborder: none;\n\tbackground: inherit;\n}\n\n.tc-manager-list-item-content-tiddler {\n flex: 3 1;\n border-left: 0.5em solid &lt;&lt;colour muted-foreground&gt;&gt;;\n border-right: 0.5em solid &lt;&lt;colour muted-foreground&gt;&gt;;\n border-bottom: 0.5em solid &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n.tc-manager-list-item-content-item-body &gt; table {\n\tborder: none;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.tc-manager-list-item-content-item-body &gt; table td {\n\tborder: none;\n}\n\n.tc-manager-icon-editor &gt; button {\n\twidth: 100%;\n}\n\n.tc-manager-icon-editor &gt; button &gt; svg,\n.tc-manager-icon-editor &gt; button &gt; button {\n\twidth: 100%;\n\theight: auto;\n}\n\n/*\n** Alerts\n*/\n\n.tc-alerts {\n\tposition: fixed;\n\ttop: 28px;\n\tleft: 0;\n\tright: 0;\n\tmax-width: 50%;\n\tz-index: 20000;\n}\n\n.tc-alert {\n\tposition: relative;\n\tmargin: 14px;\n\tpadding: 7px;\n\tborder: 1px solid &lt;&lt;colour alert-border&gt;&gt;;\n\tbackground-color: &lt;&lt;colour alert-background&gt;&gt;;\n}\n\n.tc-alert-toolbar {\n\tposition: absolute;\n\ttop: 7px;\n\tright: 7px;\n line-height: 0;\n}\n\n.tc-alert-toolbar svg {\n\tfill: &lt;&lt;colour alert-muted-foreground&gt;&gt;;\n}\n\n.tc-alert-subtitle {\n\tcolor: &lt;&lt;colour alert-muted-foreground&gt;&gt;;\n\tfont-weight: bold;\n font-size: 0.8em;\n margin-bottom: 0.5em;\n}\n\n.tc-alert-body &gt; p {\n\tmargin: 0;\n}\n\n.tc-alert-highlight {\n\tcolor: &lt;&lt;colour alert-highlight&gt;&gt;;\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-static-alert {\n\t\tposition: relative;\n\t}\n\n\t.tc-static-alert-inner {\n\t\tposition: absolute;\n\t\tz-index: 100;\n\t}\n\n}\n\n.tc-static-alert-inner {\n\tpadding: 0 2px 2px 42px;\n\tcolor: &lt;&lt;colour static-alert-foreground&gt;&gt;;\n}\n\n/*\n** Floating drafts list\n*/\n\n.tc-drafts-list {\n\tz-index: 2000;\n\tposition: fixed;\n\tfont-size: 0.8em;\n\tleft: 0;\n\tbottom: 0;\n}\n\n.tc-drafts-list a {\n\tmargin: 0 0.5em;\n\tpadding: 4px 4px;\n\tborder-top-left-radius: 4px;\n\tborder-top-right-radius: 4px;\n\tborder: 1px solid &lt;&lt;colour background&gt;&gt;;\n\tborder-bottom-none;\n\tbackground: &lt;&lt;colour dirty-indicator&gt;&gt;;\n\tcolor: &lt;&lt;colour background&gt;&gt;;\n\tfill: &lt;&lt;colour background&gt;&gt;;\n}\n\n.tc-drafts-list a:hover {\n\ttext-decoration: none;\n\tbackground: &lt;&lt;colour foreground&gt;&gt;;\n\tcolor: &lt;&lt;colour background&gt;&gt;;\n\tfill: &lt;&lt;colour background&gt;&gt;;\n}\n\n.tc-drafts-list a svg {\n\twidth: 1em;\n\theight: 1em;\n\tvertical-align: text-bottom;\n}\n\n/*\n** Control panel\n*/\n\n.tc-control-panel td {\n\tpadding: 4px;\n}\n\n.tc-control-panel table, .tc-control-panel table input, .tc-control-panel table textarea {\n\twidth: 100%;\n}\n\n.tc-plugin-info {\n\tdisplay: flex;\n\tborder: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;\n\tfill: &lt;&lt;colour muted-foreground&gt;&gt;;\n\tbackground-color: &lt;&lt;colour background&gt;&gt;;\n\tmargin: 0.5em 0 0.5em 0;\n\tpadding: 4px;\n align-items: center;\n}\n\n.tc-plugin-info-sub-plugins .tc-plugin-info {\n margin: 0.5em;\n\tbackground: &lt;&lt;colour background&gt;&gt;;\n}\n\n.tc-plugin-info-sub-plugin-indicator {\n\tmargin: -16px 1em 0 2em;\n}\n\n.tc-plugin-info-sub-plugin-indicator button {\n\tcolor: &lt;&lt;colour background&gt;&gt;;\n\tbackground: &lt;&lt;colour foreground&gt;&gt;;\n\tborder-radius: 8px;\n padding: 2px 7px;\n font-size: 0.75em;\n}\n\n.tc-plugin-info-sub-plugins .tc-plugin-info-dropdown {\n\tmargin-left: 1em;\n\tmargin-right: 1em;\n}\n\n.tc-plugin-info-disabled {\n\tbackground: -webkit-repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);\n\tbackground: repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);\n}\n\n.tc-plugin-info-disabled:hover {\n\tbackground: -webkit-repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);\n\tbackground: repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);\n}\n\na.tc-tiddlylink.tc-plugin-info:hover {\n\ttext-decoration: none;\n\tbackground-color: &lt;&lt;colour primary&gt;&gt;;\n\tcolor: &lt;&lt;colour background&gt;&gt;;\n\tfill: &lt;&lt;colour foreground&gt;&gt;;\n}\n\na.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info &gt; .tc-plugin-info-chunk &gt; svg {\n\tfill: &lt;&lt;colour foreground&gt;&gt;;\n}\n\n.tc-plugin-info-chunk {\n margin: 2px;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-toggle {\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\tline-height: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-icon {\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\tline-height: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description {\n\tflex-grow: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-buttons {\n\tfont-size: 0.8em;\n\tline-height: 1.2;\n\tflex-grow: 0;\n\tflex-shrink: 0;\n text-align: right;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description h1 {\n\tfont-size: 1em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description h2 {\n\tfont-size: 0.8em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description div {\n\tfont-size: 0.7em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-toggle img, .tc-plugin-info-chunk.tc-plugin-info-toggle svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-icon img, .tc-plugin-info-chunk.tc-plugin-info-icon svg {\n\twidth: 2em;\n\theight: 2em;\n}\n\n.tc-plugin-info-dropdown {\n\tborder: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;\n\tbackground: &lt;&lt;colour background&gt;&gt;;\n\tmargin-top: -8px;\n}\n\n.tc-plugin-info-dropdown-message {\n\tbackground: &lt;&lt;colour message-background&gt;&gt;;\n\tpadding: 0.5em 1em 0.5em 1em;\n\tfont-weight: bold;\n\tfont-size: 0.8em;\n}\n\n.tc-plugin-info-dropdown-body {\n\tpadding: 1em 1em 0 1em;\n\tbackground: &lt;&lt;colour background&gt;&gt;;\n}\n\n.tc-plugin-info-sub-plugins {\n\tpadding: 0.5em;\n margin: 0 1em 1em 1em;\n\tbackground: &lt;&lt;colour notification-background&gt;&gt;;\n}\n\n.tc-install-plugin {\n\tfont-weight: bold;\n\tbackground: green;\n\tcolor: white;\n\tfill: white;\n\tborder-radius: 4px;\n\tpadding: 3px;\n}\n\n.tc-install-plugin.tc-reinstall-downgrade {\n\tbackground: red;\n}\n\n.tc-install-plugin.tc-reinstall {\n\tbackground: blue;\n}\n\n.tc-install-plugin.tc-reinstall-upgrade {\n\tbackground: orange;\n}\n\n.tc-check-list {\n\tline-height: 2em;\n}\n\n.tc-check-list .tc-image-button {\n\theight: 1.5em;\n}\n\n/*\n** Message boxes\n*/\n\n.tc-message-box {\n\tborder: 1px solid &lt;&lt;colour message-border&gt;&gt;;\n\tbackground: &lt;&lt;colour message-background&gt;&gt;;\n\tpadding: 0px 21px 0px 21px;\n\tfont-size: 12px;\n\tline-height: 18px;\n\tcolor: &lt;&lt;colour message-foreground&gt;&gt;;\n}\n\n.tc-message-box svg {\n\twidth: 1em;\n\theight: 1em;\n vertical-align: text-bottom;\n}\n\n/*\n** Pictures\n*/\n\n.tc-bordered-image {\n\tborder: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;\n\tpadding: 5px;\n\tmargin: 5px;\n}\n\n/*\n** Floats\n*/\n\n.tc-float-right {\n\tfloat: right;\n}\n\n/*\n** Chooser\n*/\n\n.tc-chooser {\n\tborder-right: 1px solid &lt;&lt;colour table-header-background&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour table-header-background&gt;&gt;;\n}\n\n\n.tc-chooser-item {\n\tborder-bottom: 1px solid &lt;&lt;colour table-header-background&gt;&gt;;\n\tborder-top: 1px solid &lt;&lt;colour table-header-background&gt;&gt;;\n\tpadding: 2px 4px 2px 14px;\n}\n\n.tc-drop-down .tc-chooser-item {\n\tpadding: 2px;\n}\n\n.tc-chosen,\n.tc-chooser-item:hover {\n\tbackground-color: &lt;&lt;colour table-header-background&gt;&gt;;\n\tborder-color: &lt;&lt;colour table-footer-background&gt;&gt;;\n}\n\n.tc-chosen .tc-tiddlylink {\n\tcursor:default;\n}\n\n.tc-chooser-item .tc-tiddlylink {\n\tdisplay: block;\n\ttext-decoration: none;\n\tbackground-color: transparent;\n}\n\n.tc-chooser-item:hover .tc-tiddlylink:hover {\n\ttext-decoration: none;\n}\n\n.tc-drop-down .tc-chosen .tc-tiddlylink,\n.tc-drop-down .tc-chooser-item .tc-tiddlylink:hover {\n\tcolor: &lt;&lt;colour foreground&gt;&gt;;\n}\n\n.tc-chosen &gt; .tc-tiddlylink:before {\n\tmargin-left: -10px;\n\tposition: relative;\n\tcontent: \&quot;» \&quot;;\n}\n\n.tc-chooser-item svg,\n.tc-chooser-item img{\n\twidth: 1em;\n\theight: 1em;\n\tvertical-align: middle;\n}\n\n.tc-language-chooser .tc-image-button img {\n\twidth: 2em;\n\tvertical-align: -0.15em;\n}\n\n/*\n** Palette swatches\n*/\n\n.tc-swatches-horiz {\n}\n\n.tc-swatches-horiz .tc-swatch {\n\tdisplay: inline-block;\n}\n\n.tc-swatch {\n\twidth: 2em;\n\theight: 2em;\n\tmargin: 0.4em;\n\tborder: 1px solid #888;\n}\n\ninput.tc-palette-manager-colour-input {\n\twidth: 100%;\n\tpadding: 0;\n}\n\n/*\n** Table of contents\n*/\n\n.tc-sidebar-lists .tc-table-of-contents {\n\twhite-space: nowrap;\n}\n\n.tc-table-of-contents button {\n\tcolor: &lt;&lt;colour sidebar-foreground&gt;&gt;;\n}\n\n.tc-table-of-contents svg {\n\twidth: 0.7em;\n\theight: 0.7em;\n\tvertical-align: middle;\n\tfill: &lt;&lt;colour sidebar-foreground&gt;&gt;;\n}\n\n.tc-table-of-contents ol {\n\tlist-style-type: none;\n\tpadding-left: 0;\n}\n\n.tc-table-of-contents ol ol {\n\tpadding-left: 1em;\n}\n\n.tc-table-of-contents li {\n\tfont-size: 1.0em;\n\tfont-weight: bold;\n}\n\n.tc-table-of-contents li a {\n\tfont-weight: bold;\n}\n\n.tc-table-of-contents li li {\n\tfont-size: 0.95em;\n\tfont-weight: normal;\n\tline-height: 1.4;\n}\n\n.tc-table-of-contents li li a {\n\tfont-weight: normal;\n}\n\n.tc-table-of-contents li li li {\n\tfont-size: 0.95em;\n\tfont-weight: 200;\n\tline-height: 1.5;\n}\n\n.tc-table-of-contents li li li li {\n\tfont-size: 0.95em;\n\tfont-weight: 200;\n}\n\n.tc-tabbed-table-of-contents {\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents {\n\tz-index: 100;\n\tdisplay: inline-block;\n\tpadding-left: 1em;\n\tmax-width: 50%;\n\t-webkit-flex: 0 0 auto;\n\tflex: 0 0 auto;\n\tbackground: &lt;&lt;colour tab-background&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tborder-top: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tborder-bottom: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item &gt; a,\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected &gt; a {\n\tdisplay: block;\n\tpadding: 0.12em 1em 0.12em 0.25em;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item &gt; a {\n\tborder-top: 1px solid &lt;&lt;colour tab-background&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour tab-background&gt;&gt;;\n\tborder-bottom: 1px solid &lt;&lt;colour tab-background&gt;&gt;;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item &gt; a:hover {\n\ttext-decoration: none;\n\tborder-top: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tborder-bottom: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tbackground: &lt;&lt;colour tab-border&gt;&gt;;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected &gt; a {\n\tborder-top: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tborder-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tborder-bottom: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\tbackground: &lt;&lt;colour background&gt;&gt;;\n\tmargin-right: -1px;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected &gt; a:hover {\n\ttext-decoration: none;\n}\n\n.tc-tabbed-table-of-contents .tc-tabbed-table-of-contents-content {\n\tdisplay: inline-block;\n\tvertical-align: top;\n\tpadding-left: 1.5em;\n\tpadding-right: 1.5em;\n\tborder: 1px solid &lt;&lt;colour tab-border&gt;&gt;;\n\t-webkit-flex: 1 0 50%;\n\tflex: 1 0 50%;\n}\n\n/*\n** Dirty indicator\n*/\n\nbody.tc-dirty span.tc-dirty-indicator, body.tc-dirty span.tc-dirty-indicator svg {\n\tfill: &lt;&lt;colour dirty-indicator&gt;&gt;;\n\tcolor: &lt;&lt;colour dirty-indicator&gt;&gt;;\n}\n\n/*\n** File inputs\n*/\n\n.tc-file-input-wrapper {\n\tposition: relative;\n\toverflow: hidden;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n}\n\n.tc-file-input-wrapper input[type=file] {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tfont-size: 999px;\n\tmax-width: 100%;\n\tmax-height: 100%;\n\tfilter: alpha(opacity=0);\n\topacity: 0;\n\toutline: none;\n\tbackground: white;\n\tcursor: pointer;\n\tdisplay: inline-block;\n}\n\n/*\n** Thumbnail macros\n*/\n\n.tc-thumbnail-wrapper {\n\tposition: relative;\n\tdisplay: inline-block;\n\tmargin: 6px;\n\tvertical-align: top;\n}\n\n.tc-thumbnail-right-wrapper {\n\tfloat:right;\n\tmargin: 0.5em 0 0.5em 0.5em;\n}\n\n.tc-thumbnail-image {\n\ttext-align: center;\n\toverflow: hidden;\n\tborder-radius: 3px;\n}\n\n.tc-thumbnail-image svg,\n.tc-thumbnail-image img {\n\tfilter: alpha(opacity=1);\n\topacity: 1;\n\tmin-width: 100%;\n\tmin-height: 100%;\n\tmax-width: 100%;\n}\n\n.tc-thumbnail-wrapper:hover .tc-thumbnail-image svg,\n.tc-thumbnail-wrapper:hover .tc-thumbnail-image img {\n\tfilter: alpha(opacity=0.8);\n\topacity: 0.8;\n}\n\n.tc-thumbnail-background {\n\tposition: absolute;\n\tborder-radius: 3px;\n}\n\n.tc-thumbnail-icon svg,\n.tc-thumbnail-icon img {\n\twidth: 3em;\n\theight: 3em;\n\t&lt;&lt;filter \&quot;drop-shadow(2px 2px 4px rgba(0,0,0,0.3))\&quot;&gt;&gt;\n}\n\n.tc-thumbnail-wrapper:hover .tc-thumbnail-icon svg,\n.tc-thumbnail-wrapper:hover .tc-thumbnail-icon img {\n\tfill: #fff;\n\t&lt;&lt;filter \&quot;drop-shadow(3px 3px 4px rgba(0,0,0,0.6))\&quot;&gt;&gt;\n}\n\n.tc-thumbnail-icon {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tdisplay: -webkit-flex;\n\t-webkit-align-items: center;\n\t-webkit-justify-content: center;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.tc-thumbnail-caption {\n\tposition: absolute;\n\tbackground-color: #777;\n\tcolor: #fff;\n\ttext-align: center;\n\tbottom: 0;\n\twidth: 100%;\n\tfilter: alpha(opacity=0.9);\n\topacity: 0.9;\n\tline-height: 1.4;\n\tborder-bottom-left-radius: 3px;\n\tborder-bottom-right-radius: 3px;\n}\n\n.tc-thumbnail-wrapper:hover .tc-thumbnail-caption {\n\tfilter: alpha(opacity=1);\n\topacity: 1;\n}\n\n/*\n** Diffs\n*/\n\n.tc-diff-equal {\n\tbackground-color: &lt;&lt;colour diff-equal-background&gt;&gt;;\n\tcolor: &lt;&lt;colour diff-equal-foreground&gt;&gt;;\n}\n\n.tc-diff-insert {\n\tbackground-color: &lt;&lt;colour diff-insert-background&gt;&gt;;\n\tcolor: &lt;&lt;colour diff-insert-foreground&gt;&gt;;\n}\n\n.tc-diff-delete {\n\tbackground-color: &lt;&lt;colour diff-delete-background&gt;&gt;;\n\tcolor: &lt;&lt;colour diff-delete-foreground&gt;&gt;;\n}\n\n.tc-diff-invisible {\n\tbackground-color: &lt;&lt;colour diff-invisible-background&gt;&gt;;\n\tcolor: &lt;&lt;colour diff-invisible-foreground&gt;&gt;;\n}\n\n.tc-diff-tiddlers th {\n\ttext-align: right;\n\tbackground: &lt;&lt;colour background&gt;&gt;;\n\tfont-weight: normal;\n\tfont-style: italic;\n}\n\n.tc-diff-tiddlers pre {\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n}\n\n/*\n** Errors\n*/\n\n.tc-error {\n\tbackground: #f00;\n\tcolor: #fff;\n}\n\n/*\n** Tree macro\n*/\n\n.tc-tree div {\n \tpadding-left: 14px;\n}\n\n.tc-tree ol {\n \tlist-style-type: none;\n \tpadding-left: 0;\n \tmargin-top: 0;\n}\n\n.tc-tree ol ol {\n \tpadding-left: 1em; \n}\n\n.tc-tree button { \n \tcolor: #acacac;\n}\n\n.tc-tree svg {\n \tfill: #acacac;\n}\n\n.tc-tree span svg {\n \twidth: 1em;\n \theight: 1em;\n \tvertical-align: baseline;\n}\n\n.tc-tree li span {\n \tcolor: lightgray;\n}\n\nselect {\n color: &lt;&lt;colour select-tag-foreground&gt;&gt;;\n background: &lt;&lt;colour select-tag-background&gt;&gt;;\n}\n\n/*\n** Utility classes for SVG icons\n*/\n\n.tc-fill-background {\n\tfill: &lt;&lt;colour background&gt;&gt;;\n}&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize&quot;,
&quot;text&quot;: &quot;15px&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/metrics/bodylineheight&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/bodylineheight&quot;,
&quot;text&quot;: &quot;22px&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/metrics/fontsize&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/fontsize&quot;,
&quot;text&quot;: &quot;14px&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/metrics/lineheight&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/lineheight&quot;,
&quot;text&quot;: &quot;20px&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/metrics/storyleft&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/storyleft&quot;,
&quot;text&quot;: &quot;0px&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/metrics/storytop&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/storytop&quot;,
&quot;text&quot;: &quot;0px&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/metrics/storyright&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/storyright&quot;,
&quot;text&quot;: &quot;770px&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/metrics/storywidth&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/storywidth&quot;,
&quot;text&quot;: &quot;770px&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth&quot;,
&quot;text&quot;: &quot;686px&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint&quot;,
&quot;text&quot;: &quot;960px&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth&quot;,
&quot;text&quot;: &quot;350px&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/options/stickytitles&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/options/stickytitles&quot;,
&quot;text&quot;: &quot;no&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/options/sidebarlayout&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/options/sidebarlayout&quot;,
&quot;text&quot;: &quot;fixed-fluid&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/options/codewrapping&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/options/codewrapping&quot;,
&quot;text&quot;: &quot;pre-wrap&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/reset&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/reset&quot;,
&quot;type&quot;: &quot;text/plain&quot;,
&quot;text&quot;: &quot;/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\&quot;button\&quot;],\n[type=\&quot;reset\&quot;],\n[type=\&quot;submit\&quot;] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\&quot;button\&quot;]::-moz-focus-inner,\n[type=\&quot;reset\&quot;]::-moz-focus-inner,\n[type=\&quot;submit\&quot;]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\&quot;button\&quot;]:-moz-focusring,\n[type=\&quot;reset\&quot;]:-moz-focusring,\n[type=\&quot;submit\&quot;]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\&quot;checkbox\&quot;],\n[type=\&quot;radio\&quot;] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\&quot;number\&quot;]::-webkit-inner-spin-button,\n[type=\&quot;number\&quot;]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\&quot;search\&quot;] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\&quot;search\&quot;]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/settings/fontfamily&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/settings/fontfamily&quot;,
&quot;text&quot;: &quot;-apple-system, BlinkMacSystemFont, \&quot;Segoe UI\&quot;, Helvetica, Arial, sans-serif, \&quot;Apple Color Emoji\&quot;, \&quot;Segoe UI Emoji\&quot;, \&quot;Segoe UI Symbol\&quot;&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/settings/codefontfamily&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/settings/codefontfamily&quot;,
&quot;text&quot;: &quot;\&quot;SFMono-Regular\&quot;,Consolas,\&quot;Liberation Mono\&quot;,Menlo,Courier,monospace&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment&quot;,
&quot;text&quot;: &quot;fixed&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize&quot;,
&quot;text&quot;: &quot;auto&quot;
},
&quot;$:/themes/tiddlywiki/vanilla/sticky&quot;: {
&quot;title&quot;: &quot;$:/themes/tiddlywiki/vanilla/sticky&quot;,
&quot;text&quot;: &quot;&lt;$reveal state=\&quot;$:/themes/tiddlywiki/vanilla/options/stickytitles\&quot; type=\&quot;match\&quot; text=\&quot;yes\&quot;&gt;\n``\n.tc-tiddler-title {\n\tposition: -webkit-sticky;\n\tposition: -moz-sticky;\n\tposition: -o-sticky;\n\tposition: -ms-sticky;\n\tposition: sticky;\n\ttop: 0px;\n\tbackground: ``&lt;&lt;colour tiddler-background&gt;&gt;``;\n\tz-index: 500;\n}\n\n``\n&lt;$list filter=\&quot;[range[100]]\&quot;&gt;\n`.tc-story-river .tc-tiddler-frame:nth-child(100n+`&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;`) {\nz-index: `&lt;$text text={{{ [[200]subtract&lt;currentTiddler&gt;] }}}/&gt;`;\n}\n`\n&lt;/$list&gt;\n&lt;/$reveal&gt;\n&quot;
}
}
}</pre>
</div>
<div created="20210530003159556" modified="20210530013008665" tags="$:/tags/Stylesheet" title="$:/themes/tiddlywiki/vanilla/base">
<pre>\define if-fluid-fixed(text,hiddenSidebarText)
&lt;$reveal state=&quot;$:/themes/tiddlywiki/vanilla/options/sidebarlayout&quot; type=&quot;match&quot; text=&quot;fluid-fixed&quot;&gt;
$text$
&lt;$reveal state=&quot;$:/state/sidebar&quot; type=&quot;nomatch&quot; text=&quot;yes&quot; default=&quot;yes&quot;&gt;
$hiddenSidebarText$
&lt;/$reveal&gt;
&lt;/$reveal&gt;
\end
\define if-editor-height-fixed(then,else)
&lt;$reveal state=&quot;$:/config/TextEditor/EditorHeight/Mode&quot; type=&quot;match&quot; text=&quot;fixed&quot;&gt;
$then$
&lt;/$reveal&gt;
&lt;$reveal state=&quot;$:/config/TextEditor/EditorHeight/Mode&quot; type=&quot;match&quot; text=&quot;auto&quot;&gt;
$else$
&lt;/$reveal&gt;
\end
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock
/*
** Start with the normalize CSS reset, and then belay some of its effects
*/
{{$:/themes/tiddlywiki/vanilla/reset}}
*, input[type=&quot;search&quot;] {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
html button {
line-height: 1.2;
color: &lt;&lt;colour button-foreground&gt;&gt;;
background: &lt;&lt;colour button-background&gt;&gt;;
border-color: &lt;&lt;colour button-border&gt;&gt;;
}
/*
** Basic element styles
*/
html {
font-family: {{$:/themes/tiddlywiki/vanilla/settings/fontfamily}};
text-rendering: optimizeLegibility; /* Enables kerning and ligatures etc. */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html:-webkit-full-screen {
background-color: &lt;&lt;colour page-background&gt;&gt;;
}
body.tc-body {
font-size: {{$:/themes/tiddlywiki/vanilla/metrics/fontsize}};
line-height: {{$:/themes/tiddlywiki/vanilla/metrics/lineheight}};
word-wrap: break-word;
color: &lt;&lt;colour foreground&gt;&gt;;
background-color: &lt;&lt;colour page-background&gt;&gt;;
fill: &lt;&lt;colour foreground&gt;&gt;;
}
&lt;&lt;if-background-attachment &quot;&quot;&quot;
body.tc-body {
background-color: transparent;
}
&quot;&quot;&quot;&gt;&gt;
h1, h2, h3, h4, h5, h6 {
line-height: 1.2;
font-weight: 300;
}
pre {
display: block;
padding: 14px;
margin-top: 1em;
margin-bottom: 1em;
word-break: normal;
word-wrap: break-word;
white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};
background-color: &lt;&lt;colour pre-background&gt;&gt;;
border: 1px solid &lt;&lt;colour pre-border&gt;&gt;;
padding: 0 3px 2px;
border-radius: 3px;
font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
}
code {
color: &lt;&lt;colour code-foreground&gt;&gt;;
background-color: &lt;&lt;colour code-background&gt;&gt;;
border: 1px solid &lt;&lt;colour code-border&gt;&gt;;
white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};
padding: 0 3px 2px;
border-radius: 3px;
font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
}
blockquote {
border-left: 5px solid &lt;&lt;colour blockquote-bar&gt;&gt;;
margin-left: 25px;
padding-left: 10px;
quotes: &quot;\201C&quot;&quot;\201D&quot;&quot;\2018&quot;&quot;\2019&quot;;
}
blockquote &gt; div {
margin-top: 1em;
margin-bottom: 1em;
}
blockquote.tc-big-quote {
font-family: Georgia, serif;
position: relative;
background: &lt;&lt;colour pre-background&gt;&gt;;
border-left: none;
margin-left: 50px;
margin-right: 50px;
padding: 10px;
border-radius: 8px;
}
blockquote.tc-big-quote cite:before {
content: &quot;\2014 \2009&quot;;
}
blockquote.tc-big-quote:before {
font-family: Georgia, serif;
color: &lt;&lt;colour blockquote-bar&gt;&gt;;
content: open-quote;
font-size: 8em;
line-height: 0.1em;
margin-right: 0.25em;
vertical-align: -0.4em;
position: absolute;
left: -50px;
top: 42px;
}
blockquote.tc-big-quote:after {
font-family: Georgia, serif;
color: &lt;&lt;colour blockquote-bar&gt;&gt;;
content: close-quote;
font-size: 8em;
line-height: 0.1em;
margin-right: 0.25em;
vertical-align: -0.4em;
position: absolute;
right: -80px;
bottom: -20px;
}
dl dt {
font-weight: bold;
margin-top: 6px;
}
button, textarea, input, select {
outline-color: &lt;&lt;colour primary&gt;&gt;;
}
textarea,
input[type=text],
input[type=search],
input[type=&quot;&quot;],
input:not([type]) {
color: &lt;&lt;colour foreground&gt;&gt;;
background: &lt;&lt;colour background&gt;&gt;;
}
input[type=&quot;checkbox&quot;] {
vertical-align: middle;
}
.tc-muted {
color: &lt;&lt;colour muted-foreground&gt;&gt;;
}
svg.tc-image-button {
padding: 0px 1px 1px 0px;
}
.tc-icon-wrapper &gt; svg {
width: 1em;
height: 1em;
}
kbd {
display: inline-block;
padding: 3px 5px;
font-size: 0.8em;
line-height: 1.2;
color: &lt;&lt;colour foreground&gt;&gt;;
vertical-align: middle;
background-color: &lt;&lt;colour background&gt;&gt;;
border: solid 1px &lt;&lt;colour muted-foreground&gt;&gt;;
border-bottom-color: &lt;&lt;colour muted-foreground&gt;&gt;;
border-radius: 3px;
box-shadow: inset 0 -1px 0 &lt;&lt;colour muted-foreground&gt;&gt;;
}
/*
Markdown likes putting code elements inside pre elements
*/
pre &gt; code {
padding: 0;
border: none;
background-color: inherit;
color: inherit;
}
table {
border: 1px solid &lt;&lt;colour table-border&gt;&gt;;
width: auto;
max-width: 100%;
caption-side: bottom;
margin-top: 1em;
margin-bottom: 1em;
/* next 2 elements needed, since normalize 8.0.1 */
border-collapse: collapse;
border-spacing: 0;
}
table th, table td {
padding: 0 7px 0 7px;
border-top: 1px solid &lt;&lt;colour table-border&gt;&gt;;
border-left: 1px solid &lt;&lt;colour table-border&gt;&gt;;
}
table thead tr td, table th {
background-color: &lt;&lt;colour table-header-background&gt;&gt;;
font-weight: bold;
}
table tfoot tr td {
background-color: &lt;&lt;colour table-footer-background&gt;&gt;;
}
.tc-csv-table {
white-space: nowrap;
}
.tc-tiddler-frame img,
.tc-tiddler-frame svg,
.tc-tiddler-frame canvas,
.tc-tiddler-frame embed,
.tc-tiddler-frame iframe {
max-width: 100%;
}
.tc-tiddler-body &gt; embed,
.tc-tiddler-body &gt; iframe {
width: 100%;
height: 600px;
}
/*
** Links
*/
button.tc-tiddlylink,
a.tc-tiddlylink {
text-decoration: none;
font-weight: 500;
color: &lt;&lt;colour tiddler-link-foreground&gt;&gt;;
-webkit-user-select: inherit; /* Otherwise the draggable attribute makes links impossible to select */
}
.tc-sidebar-lists a.tc-tiddlylink {
color: &lt;&lt;colour sidebar-tiddler-link-foreground&gt;&gt;;
}
.tc-sidebar-lists a.tc-tiddlylink:hover {
color: &lt;&lt;colour sidebar-tiddler-link-foreground-hover&gt;&gt;;
}
button.tc-tiddlylink:hover,
a.tc-tiddlylink:hover {
text-decoration: underline;
}
a.tc-tiddlylink-resolves {
}
a.tc-tiddlylink-shadow {
font-weight: bold;
}
a.tc-tiddlylink-shadow.tc-tiddlylink-resolves {
font-weight: normal;
}
a.tc-tiddlylink-missing {
font-style: italic;
}
a.tc-tiddlylink-external {
text-decoration: underline;
color: &lt;&lt;colour external-link-foreground&gt;&gt;;
background-color: &lt;&lt;colour external-link-background&gt;&gt;;
}
a.tc-tiddlylink-external:visited {
color: &lt;&lt;colour external-link-foreground-visited&gt;&gt;;
background-color: &lt;&lt;colour external-link-background-visited&gt;&gt;;
}
a.tc-tiddlylink-external:hover {
color: &lt;&lt;colour external-link-foreground-hover&gt;&gt;;
background-color: &lt;&lt;colour external-link-background-hover&gt;&gt;;
}
/*
** Drag and drop styles
*/
.tc-tiddler-dragger {
position: relative;
z-index: -10000;
}
.tc-tiddler-dragger-inner {
position: absolute;
top: -1000px;
left: -1000px;
display: inline-block;
padding: 8px 20px;
font-size: 16.9px;
font-weight: bold;
line-height: 20px;
color: &lt;&lt;colour dragger-foreground&gt;&gt;;
text-shadow: 0 1px 0 rgba(0, 0, 0, 1);
white-space: nowrap;
vertical-align: baseline;
background-color: &lt;&lt;colour dragger-background&gt;&gt;;
border-radius: 20px;
}
.tc-tiddler-dragger-cover {
position: absolute;
background-color: &lt;&lt;colour page-background&gt;&gt;;
}
.tc-dropzone {
position: relative;
}
.tc-dropzone.tc-dragover:before {
z-index: 10000;
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
background: &lt;&lt;colour dropzone-background&gt;&gt;;
text-align: center;
content: &quot;&lt;&lt;lingo DropMessage&gt;&gt;&quot;;
}
.tc-droppable &gt; .tc-droppable-placeholder {
display: none;
}
.tc-droppable.tc-dragover &gt; .tc-droppable-placeholder {
display: block;
border: 2px dashed &lt;&lt;colour dropzone-background&gt;&gt;;
}
.tc-draggable {
cursor: move;
}
.tc-sidebar-tab-open .tc-droppable-placeholder, .tc-tagged-draggable-list .tc-droppable-placeholder,
.tc-links-draggable-list .tc-droppable-placeholder {
line-height: 2em;
height: 2em;
}
.tc-sidebar-tab-open-item {
position: relative;
}
.tc-sidebar-tab-open .tc-btn-invisible.tc-btn-mini svg {
font-size: 0.7em;
fill: &lt;&lt;colour muted-foreground&gt;&gt;;
}
/*
** Plugin reload warning
*/
.tc-plugin-reload-warning {
z-index: 1000;
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
background: &lt;&lt;colour alert-background&gt;&gt;;
text-align: center;
}
/*
** Buttons
*/
button svg, button img, label svg, label img {
vertical-align: middle;
}
.tc-btn-invisible {
padding: 0;
margin: 0;
background: none;
border: none;
cursor: pointer;
color: &lt;&lt;colour foreground&gt;&gt;;
}
.tc-btn-boxed {
font-size: 0.6em;
padding: 0.2em;
margin: 1px;
background: none;
border: 1px solid &lt;&lt;colour tiddler-controls-foreground&gt;&gt;;
border-radius: 0.25em;
}
html body.tc-body .tc-btn-boxed svg {
font-size: 1.6666em;
}
.tc-btn-boxed:hover {
background: &lt;&lt;colour muted-foreground&gt;&gt;;
color: &lt;&lt;colour background&gt;&gt;;
}
html body.tc-body .tc-btn-boxed:hover svg {
fill: &lt;&lt;colour background&gt;&gt;;
}
.tc-btn-rounded {
font-size: 0.5em;
line-height: 2;
padding: 0em 0.3em 0.2em 0.4em;
margin: 1px;
border: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;
background: &lt;&lt;colour muted-foreground&gt;&gt;;
color: &lt;&lt;colour background&gt;&gt;;
border-radius: 2em;
}
html body.tc-body .tc-btn-rounded svg {
font-size: 1.6666em;
fill: &lt;&lt;colour background&gt;&gt;;
}
.tc-btn-rounded:hover {
border: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;
background: &lt;&lt;colour background&gt;&gt;;
color: &lt;&lt;colour muted-foreground&gt;&gt;;
}
html body.tc-body .tc-btn-rounded:hover svg {
fill: &lt;&lt;colour muted-foreground&gt;&gt;;
}
.tc-btn-icon svg {
height: 1em;
width: 1em;
fill: &lt;&lt;colour muted-foreground&gt;&gt;;
}
.tc-btn-text {
padding: 0;
margin: 0;
}
/* used for documentation &quot;fake&quot; buttons */
.tc-btn-standard {
line-height: 1.8;
color: #667;
background-color: #e0e0e0;
border: 1px solid #888;
padding: 2px 1px 2px 1px;
margin: 1px 4px 1px 4px;
}
.tc-btn-big-green {
display: inline-block;
padding: 8px;
margin: 4px 8px 4px 8px;
background: &lt;&lt;colour download-background&gt;&gt;;
color: &lt;&lt;colour download-foreground&gt;&gt;;
fill: &lt;&lt;colour download-foreground&gt;&gt;;
border: none;
border-radius: 2px;
font-size: 1.2em;
line-height: 1.4em;
text-decoration: none;
}
.tc-btn-big-green svg,
.tc-btn-big-green img {
height: 2em;
width: 2em;
vertical-align: middle;
fill: &lt;&lt;colour download-foreground&gt;&gt;;
}
.tc-primary-btn {
background: &lt;&lt;colour primary&gt;&gt;;
}
.tc-sidebar-lists input {
color: &lt;&lt;colour foreground&gt;&gt;;
}
.tc-sidebar-lists button {
color: &lt;&lt;colour sidebar-button-foreground&gt;&gt;;
fill: &lt;&lt;colour sidebar-button-foreground&gt;&gt;;
}
.tc-sidebar-lists button.tc-btn-mini {
color: &lt;&lt;colour sidebar-muted-foreground&gt;&gt;;
}
.tc-sidebar-lists button.tc-btn-mini:hover {
color: &lt;&lt;colour sidebar-muted-foreground-hover&gt;&gt;;
}
button svg.tc-image-button, button .tc-image-button img {
height: 1em;
width: 1em;
}
.tc-unfold-banner {
position: absolute;
padding: 0;
margin: 0;
background: none;
border: none;
width: 100%;
width: calc(100% + 2px);
margin-left: -43px;
text-align: center;
border-top: 2px solid &lt;&lt;colour tiddler-info-background&gt;&gt;;
margin-top: 4px;
}
.tc-unfold-banner:hover {
background: &lt;&lt;colour tiddler-info-background&gt;&gt;;
border-top: 2px solid &lt;&lt;colour tiddler-info-border&gt;&gt;;
}
.tc-unfold-banner svg, .tc-fold-banner svg {
height: 0.75em;
fill: &lt;&lt;colour tiddler-controls-foreground&gt;&gt;;
}
.tc-unfold-banner:hover svg, .tc-fold-banner:hover svg {
fill: &lt;&lt;colour tiddler-controls-foreground-hover&gt;&gt;;
}
.tc-fold-banner {
position: absolute;
padding: 0;
margin: 0;
background: none;
border: none;
width: 23px;
text-align: center;
margin-left: -35px;
top: 6px;
bottom: 6px;
}
.tc-fold-banner:hover {
background: &lt;&lt;colour tiddler-info-background&gt;&gt;;
}
@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tc-unfold-banner {
position: static;
width: calc(100% + 59px);
}
.tc-fold-banner {
width: 16px;
margin-left: -16px;
font-size: 0.75em;
}
}
/*
** Tags and missing tiddlers
*/
.tc-tag-list-item {
position: relative;
display: inline-block;
margin-right: 7px;
}
.tc-tags-wrapper {
margin: 4px 0 14px 0;
}
.tc-missing-tiddler-label {
font-style: italic;
font-weight: normal;
display: inline-block;
font-size: 11.844px;
line-height: 14px;
white-space: nowrap;
vertical-align: baseline;
}
button.tc-tag-label, span.tc-tag-label {
display: inline-block;
padding: 0.16em 0.7em;
font-size: 0.9em;
font-weight: 400;
line-height: 1.2em;
color: &lt;&lt;colour tag-foreground&gt;&gt;;
white-space: nowrap;
vertical-align: baseline;
background-color: &lt;&lt;colour tag-background&gt;&gt;;
border-radius: 1em;
}
.tc-sidebar-scrollable .tc-tag-label {
text-shadow: none;
}
.tc-untagged-separator {
width: 10em;
left: 0;
margin-left: 0;
border: 0;
height: 1px;
background: &lt;&lt;colour tab-divider&gt;&gt;;
}
button.tc-untagged-label {
background-color: &lt;&lt;colour untagged-background&gt;&gt;;
}
.tc-tag-label svg, .tc-tag-label img {
height: 1em;
width: 1em;
margin-right: 3px;
margin-bottom: 1px;
vertical-align: text-bottom;
}
.tc-edit-tags button.tc-remove-tag-button svg {
font-size: 0.7em;
vertical-align: middle;
}
.tc-tag-manager-table .tc-tag-label {
white-space: normal;
}
.tc-tag-manager-tag {
width: 100%;
}
button.tc-btn-invisible.tc-remove-tag-button {
outline: none;
}
/*
** Page layout
*/
.tc-topbar {
position: fixed;
z-index: 1200;
}
.tc-topbar-left {
left: 29px;
top: 5px;
}
.tc-topbar-right {
top: 5px;
right: 29px;
}
.tc-topbar button {
padding: 8px;
}
.tc-topbar svg {
fill: &lt;&lt;colour muted-foreground&gt;&gt;;
}
.tc-topbar button:hover svg {
fill: &lt;&lt;colour foreground&gt;&gt;;
}
.tc-sidebar-header {
color: &lt;&lt;colour sidebar-foreground&gt;&gt;;
fill: &lt;&lt;colour sidebar-foreground&gt;&gt;;
}
.tc-sidebar-header .tc-title a.tc-tiddlylink-resolves {
font-weight: 300;
}
.tc-sidebar-header .tc-sidebar-lists p {
margin-top: 3px;
margin-bottom: 3px;
}
.tc-sidebar-header .tc-missing-tiddler-label {
color: &lt;&lt;colour sidebar-foreground&gt;&gt;;
}
.tc-advanced-search input {
width: 60%;
}
.tc-search a svg {
width: 1.2em;
height: 1.2em;
vertical-align: middle;
}
.tc-page-controls {
margin-top: 14px;
font-size: 1.5em;
}
.tc-page-controls .tc-drop-down {
font-size: 1rem;
}
.tc-page-controls button {
margin-right: 0.5em;
}
.tc-page-controls a.tc-tiddlylink:hover {
text-decoration: none;
}
.tc-page-controls img {
width: 1em;
}
.tc-page-controls svg {
fill: &lt;&lt;colour sidebar-controls-foreground&gt;&gt;;
}
.tc-page-controls button:hover svg, .tc-page-controls a:hover svg {
fill: &lt;&lt;colour sidebar-controls-foreground-hover&gt;&gt;;
}
.tc-menu-list-item {
white-space: nowrap;
}
.tc-menu-list-count {
font-weight: bold;
}
.tc-menu-list-subitem {
padding-left: 7px;
}
.tc-story-river {
position: relative;
}
@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tc-sidebar-header {
padding: 14px;
min-height: 32px;
margin-top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};
}
.tc-story-river {
position: relative;
padding: 0;
}
}
@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tc-message-box {
margin: 21px -21px 21px -21px;
}
.tc-sidebar-scrollable {
position: fixed;
top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};
left: {{$:/themes/tiddlywiki/vanilla/metrics/storyright}};
bottom: 0;
right: 0;
overflow-y: auto;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin: 0 0 0 -42px;
padding: 71px 0 28px 42px;
}
html[dir=&quot;rtl&quot;] .tc-sidebar-scrollable {
left: auto;
right: {{$:/themes/tiddlywiki/vanilla/metrics/storyright}};
}
.tc-story-river {
position: relative;
left: {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}};
top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};
width: 60%;
padding: 42px 42px 42px 42px;
}
&lt;&lt;if-no-sidebar &quot;
.tc-story-river {
width: 60%;
}
&quot;&gt;&gt;
}
@media print {
body.tc-body {
background-color: transparent;
}
.tc-sidebar-header, .tc-topbar {
display: none;
}
.tc-story-river {
margin: 0;
padding: 0;
}
.tc-story-river .tc-tiddler-frame {
margin: 0;
border: none;
padding: 0;
}
}
/*
** Tiddler styles
*/
.tc-tiddler-frame {
position: relative;
margin-bottom: 28px;
background-color: &lt;&lt;colour tiddler-background&gt;&gt;;
border: 1px solid &lt;&lt;colour tiddler-border&gt;&gt;;
}
{{$:/themes/tiddlywiki/vanilla/sticky}}
.tc-tiddler-info {
padding: 14px 42px 14px 42px;
background-color: &lt;&lt;colour tiddler-info-background&gt;&gt;;
border-top: 1px solid &lt;&lt;colour tiddler-info-border&gt;&gt;;
border-bottom: 1px solid &lt;&lt;colour tiddler-info-border&gt;&gt;;
}
.tc-tiddler-info p {
margin-top: 3px;
margin-bottom: 3px;
}
.tc-tiddler-info .tc-tab-buttons button.tc-tab-selected {
background-color: &lt;&lt;colour tiddler-info-tab-background&gt;&gt;;
border-bottom: 1px solid &lt;&lt;colour tiddler-info-tab-background&gt;&gt;;
}
.tc-view-field-table {
width: 100%;
}
.tc-view-field-name {
width: 1%; /* Makes this column be as narrow as possible */
text-align: right;
font-style: italic;
font-weight: 200;
}
.tc-view-field-value {
}
@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tc-tiddler-frame {
padding: 14px 14px 14px 14px;
}
.tc-tiddler-info {
margin: 0 -14px 0 -14px;
}
}
@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tc-tiddler-frame {
padding: 28px 42px 42px 42px;
width: {{$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth}};
border-radius: 2px;
}
&lt;&lt;if-no-sidebar &quot;
.tc-tiddler-frame {
width: 100%;
}
&quot;&gt;&gt;
.tc-tiddler-info {
margin: 0 -42px 0 -42px;
}
}
.tc-site-title,
.tc-titlebar {
font-weight: 300;
font-size: 2.35em;
line-height: 1.2em;
color: &lt;&lt;colour tiddler-title-foreground&gt;&gt;;
margin: 0;
}
.tc-site-title {
color: &lt;&lt;colour site-title-foreground&gt;&gt;;
}
.tc-tiddler-title-icon {
vertical-align: middle;
margin-right: .1em;
}
.tc-system-title-prefix {
color: &lt;&lt;colour muted-foreground&gt;&gt;;
}
.tc-titlebar h2 {
font-size: 1em;
display: inline;
}
.tc-titlebar img {
height: 1em;
}
.tc-subtitle {
font-size: 0.9em;
color: &lt;&lt;colour tiddler-subtitle-foreground&gt;&gt;;
font-weight: 300;
}
.tc-subtitle .tc-tiddlylink {
margin-right: .3em;
}
.tc-tiddler-missing .tc-title {
font-style: italic;
font-weight: normal;
}
.tc-tiddler-frame .tc-tiddler-controls {
float: right;
}
.tc-tiddler-controls .tc-drop-down {
font-size: 0.6em;
}
.tc-tiddler-controls .tc-drop-down .tc-drop-down {
font-size: 1em;
}
.tc-tiddler-controls &gt; span &gt; button,
.tc-tiddler-controls &gt; span &gt; span &gt; button,
.tc-tiddler-controls &gt; span &gt; span &gt; span &gt; button {
vertical-align: baseline;
margin-left:5px;
}
.tc-tiddler-controls button svg, .tc-tiddler-controls button img,
.tc-search button svg, .tc-search a svg {
fill: &lt;&lt;colour tiddler-controls-foreground&gt;&gt;;
}
.tc-tiddler-controls button svg, .tc-tiddler-controls button img {
height: 0.75em;
}
.tc-search button svg, .tc-search a svg {
height: 1.2em;
width: 1.2em;
margin: 0 0.25em;
}
.tc-tiddler-controls button.tc-selected svg,
.tc-page-controls button.tc-selected svg {
fill: &lt;&lt;colour tiddler-controls-foreground-selected&gt;&gt;;
}
.tc-tiddler-controls button.tc-btn-invisible:hover svg,
.tc-search button:hover svg, .tc-search a:hover svg {
fill: &lt;&lt;colour tiddler-controls-foreground-hover&gt;&gt;;
}
@media print {
.tc-tiddler-controls {
display: none;
}
}
.tc-tiddler-help { /* Help prompts within tiddler template */
color: &lt;&lt;colour muted-foreground&gt;&gt;;
margin-top: 14px;
}
.tc-tiddler-help a.tc-tiddlylink {
color: &lt;&lt;colour very-muted-foreground&gt;&gt;;
}
.tc-tiddler-frame .tc-edit-texteditor {
width: 100%;
margin: 4px 0 4px 0;
}
.tc-tiddler-frame input.tc-edit-texteditor,
.tc-tiddler-frame textarea.tc-edit-texteditor,
.tc-tiddler-frame iframe.tc-edit-texteditor {
padding: 3px 3px 3px 3px;
border: 1px solid &lt;&lt;colour tiddler-editor-border&gt;&gt;;
background-color: &lt;&lt;colour tiddler-editor-background&gt;&gt;;
line-height: 1.3em;
-webkit-appearance: none;
font-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};
}
.tc-tiddler-frame .tc-binary-warning {
width: 100%;
height: 5em;
text-align: center;
padding: 3em 3em 6em 3em;
background: &lt;&lt;colour alert-background&gt;&gt;;
border: 1px solid &lt;&lt;colour alert-border&gt;&gt;;
}
canvas.tc-edit-bitmapeditor {
border: 6px solid &lt;&lt;colour tiddler-editor-border-image&gt;&gt;;
cursor: crosshair;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
margin-top: 6px;
margin-bottom: 6px;
}
.tc-edit-bitmapeditor-width {
display: block;
}
.tc-edit-bitmapeditor-height {
display: block;
}
.tc-tiddler-body {
clear: both;
}
.tc-tiddler-frame .tc-tiddler-body {
font-size: {{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}};
line-height: {{$:/themes/tiddlywiki/vanilla/metrics/bodylineheight}};
}
.tc-titlebar, .tc-tiddler-edit-title {
overflow: hidden; /* https://github.com/Jermolene/TiddlyWiki5/issues/282 */
}
html body.tc-body.tc-single-tiddler-window {
margin: 1em;
background: &lt;&lt;colour tiddler-background&gt;&gt;;
}
.tc-single-tiddler-window img,
.tc-single-tiddler-window svg,
.tc-single-tiddler-window canvas,
.tc-single-tiddler-window embed,
.tc-single-tiddler-window iframe {
max-width: 100%;
}
/*
** Editor
*/
.tc-editor-toolbar {
margin-top: 8px;
}
.tc-editor-toolbar button {
vertical-align: middle;
background-color: &lt;&lt;colour tiddler-controls-foreground&gt;&gt;;
color: &lt;&lt;colour tiddler-controls-foreground-selected&gt;&gt;;
fill: &lt;&lt;colour tiddler-controls-foreground-selected&gt;&gt;;
border-radius: 4px;
padding: 3px;
margin: 2px 0 2px 4px;
}
.tc-editor-toolbar button.tc-text-editor-toolbar-item-adjunct {
margin-left: 1px;
width: 1em;
border-radius: 8px;
}
.tc-editor-toolbar button.tc-text-editor-toolbar-item-start-group {
margin-left: 11px;
}
.tc-editor-toolbar button.tc-selected {
background-color: &lt;&lt;colour primary&gt;&gt;;
}
.tc-editor-toolbar button svg {
width: 1.6em;
height: 1.2em;
}
.tc-editor-toolbar button:hover {
background-color: &lt;&lt;colour tiddler-controls-foreground-selected&gt;&gt;;
fill: &lt;&lt;colour background&gt;&gt;;
color: &lt;&lt;colour background&gt;&gt;;
}
.tc-editor-toolbar .tc-text-editor-toolbar-more {
white-space: normal;
}
.tc-editor-toolbar .tc-text-editor-toolbar-more button {
display: inline-block;
padding: 3px;
width: auto;
}
.tc-editor-toolbar .tc-search-results {
padding: 0;
}
/*
** Adjustments for fluid-fixed mode
*/
@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
&lt;&lt;if-fluid-fixed text:&quot;&quot;&quot;
.tc-story-river {
padding-right: 0;
position: relative;
width: 60%;
left: 0;
margin-left: {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}};
margin-right: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}};
}
.tc-tiddler-frame {
width: 100%;
}
.tc-sidebar-scrollable {
left: auto;
bottom: 0;
right: 0;
width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}};
}
body.tc-body .tc-storyview-zoomin-tiddler {
width: 100%;
width: calc(100% - 42px);
}
&quot;&quot;&quot; hiddenSidebarText:&quot;&quot;&quot;
.tc-story-river {
padding-right: 3em;
margin-right: 0;
}
body.tc-body .tc-storyview-zoomin-tiddler {
width: 100%;
width: calc(100% - 84px);
}
&quot;&quot;&quot;&gt;&gt;
}
/*
** Toolbar buttons
*/
.tc-page-controls svg.tc-image-new-button {
fill: &lt;&lt;colour toolbar-new-button&gt;&gt;;
}
.tc-page-controls svg.tc-image-options-button {
fill: &lt;&lt;colour toolbar-options-button&gt;&gt;;
}
.tc-page-controls svg.tc-image-save-button {
fill: &lt;&lt;colour toolbar-save-button&gt;&gt;;
}
.tc-tiddler-controls button svg.tc-image-info-button {
fill: &lt;&lt;colour toolbar-info-button&gt;&gt;;
}
.tc-tiddler-controls button svg.tc-image-edit-button {
fill: &lt;&lt;colour toolbar-edit-button&gt;&gt;;
}
.tc-tiddler-controls button svg.tc-image-close-button {
fill: &lt;&lt;colour toolbar-close-button&gt;&gt;;
}
.tc-tiddler-controls button svg.tc-image-delete-button {
fill: &lt;&lt;colour toolbar-delete-button&gt;&gt;;
}
.tc-tiddler-controls button svg.tc-image-cancel-button {
fill: &lt;&lt;colour toolbar-cancel-button&gt;&gt;;
}
.tc-tiddler-controls button svg.tc-image-done-button {
fill: &lt;&lt;colour toolbar-done-button&gt;&gt;;
}
/*
** Tiddler edit mode
*/
.tc-tiddler-edit-frame em.tc-edit {
color: &lt;&lt;colour muted-foreground&gt;&gt;;
font-style: normal;
}
.tc-edit-type-dropdown a.tc-tiddlylink-missing {
font-style: normal;
}
.tc-type-selector .tc-edit-typeeditor {
width: 20%;
}
.tc-edit-tags {
border: 1px solid &lt;&lt;colour tiddler-editor-border&gt;&gt;;
padding: 4px 8px 4px 8px;
}
.tc-edit-add-tag {
display: inline-block;
}
.tc-edit-add-tag .tc-add-tag-name input {
width: 50%;
}
.tc-edit-add-tag .tc-keyboard {
display:inline;
}
.tc-edit-tags .tc-tag-label {
display: inline-block;
}
.tc-edit-tags-list {
margin: 14px 0 14px 0;
}
.tc-remove-tag-button {
padding-left: 4px;
}
.tc-tiddler-preview {
overflow: auto;
}
.tc-tiddler-preview-preview {
float: right;
width: 49%;
border: 1px solid &lt;&lt;colour tiddler-editor-border&gt;&gt;;
margin: 4px 0 3px 3px;
padding: 3px 3px 3px 3px;
}
&lt;&lt;if-editor-height-fixed then:&quot;&quot;&quot;
.tc-tiddler-preview-preview {
overflow-y: scroll;
height: {{$:/config/TextEditor/EditorHeight/Height}};
}
&quot;&quot;&quot;&gt;&gt;
.tc-tiddler-frame .tc-tiddler-preview .tc-edit-texteditor {
width: 49%;
}
.tc-tiddler-frame .tc-tiddler-preview canvas.tc-edit-bitmapeditor {
max-width: 49%;
}
.tc-edit-fields {
width: 100%;
}
.tc-edit-fields table, .tc-edit-fields tr, .tc-edit-fields td {
border: none;
padding: 4px;
}
.tc-edit-fields &gt; tbody &gt; .tc-edit-field:nth-child(odd) {
background-color: &lt;&lt;colour tiddler-editor-fields-odd&gt;&gt;;
}
.tc-edit-fields &gt; tbody &gt; .tc-edit-field:nth-child(even) {
background-color: &lt;&lt;colour tiddler-editor-fields-even&gt;&gt;;
}
.tc-edit-field-name {
text-align: right;
}
.tc-edit-field-value input {
width: 100%;
}
.tc-edit-field-remove {
}
.tc-edit-field-remove svg {
height: 1em;
width: 1em;
fill: &lt;&lt;colour muted-foreground&gt;&gt;;
vertical-align: middle;
}
.tc-edit-field-add-name {
display: inline-block;
width: 15%;
}
.tc-edit-field-add-value {
display: inline-block;
width: 40%;
}
.tc-edit-field-add-button {
display: inline-block;
width: 10%;
}
/*
** Storyview Classes
*/
.tc-viewswitcher .tc-image-button {
margin-right: .3em;
}
.tc-storyview-zoomin-tiddler {
position: absolute;
display: block;
width: 100%;
}
@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tc-storyview-zoomin-tiddler {
width: calc(100% - 84px);
}
}
/*
** Dropdowns
*/
.tc-btn-dropdown {
text-align: left;
}
.tc-btn-dropdown svg, .tc-btn-dropdown img {
height: 1em;
width: 1em;
fill: &lt;&lt;colour muted-foreground&gt;&gt;;
}
.tc-drop-down-wrapper {
position: relative;
}
.tc-drop-down {
min-width: 380px;
border: 1px solid &lt;&lt;colour dropdown-border&gt;&gt;;
background-color: &lt;&lt;colour dropdown-background&gt;&gt;;
padding: 7px 0 7px 0;
margin: 4px 0 0 0;
white-space: nowrap;
text-shadow: none;
line-height: 1.4;
}
.tc-drop-down .tc-drop-down {
margin-left: 14px;
}
.tc-drop-down button svg, .tc-drop-down a svg {
fill: &lt;&lt;colour foreground&gt;&gt;;
}
.tc-drop-down button.tc-btn-invisible:hover svg {
fill: &lt;&lt;colour foreground&gt;&gt;;
}
.tc-drop-down .tc-drop-down-info {
padding-left: 14px;
}
.tc-drop-down p {
padding: 0 14px 0 14px;
}
.tc-drop-down svg {
width: 1em;
height: 1em;
}
.tc-drop-down img {
width: 1em;
}
.tc-drop-down a, .tc-drop-down button {
display: block;
padding: 0 14px 0 14px;
width: 100%;
text-align: left;
color: &lt;&lt;colour foreground&gt;&gt;;
line-height: 1.4;
}
.tc-drop-down .tc-tab-set .tc-tab-buttons button {
display: inline-block;
width: auto;
margin-bottom: 0px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.tc-drop-down .tc-prompt {
padding: 0 14px;
}
.tc-drop-down .tc-chooser {
border: none;
}
.tc-drop-down .tc-chooser .tc-swatches-horiz {
font-size: 0.4em;
padding-left: 1.2em;
}
.tc-drop-down .tc-file-input-wrapper {
width: 100%;
}
.tc-drop-down .tc-file-input-wrapper button {
color: &lt;&lt;colour foreground&gt;&gt;;
}
.tc-drop-down a:hover, .tc-drop-down button:hover, .tc-drop-down .tc-file-input-wrapper:hover button {
color: &lt;&lt;colour tiddler-link-background&gt;&gt;;
background-color: &lt;&lt;colour tiddler-link-foreground&gt;&gt;;
text-decoration: none;
}
.tc-drop-down .tc-tab-buttons button {
background-color: &lt;&lt;colour dropdown-tab-background&gt;&gt;;
}
.tc-drop-down .tc-tab-buttons button.tc-tab-selected {
background-color: &lt;&lt;colour dropdown-tab-background-selected&gt;&gt;;
border-bottom: 1px solid &lt;&lt;colour dropdown-tab-background-selected&gt;&gt;;
}
.tc-drop-down-bullet {
display: inline-block;
width: 0.5em;
}
.tc-drop-down .tc-tab-contents a {
padding: 0 0.5em 0 0.5em;
}
.tc-block-dropdown-wrapper {
position: relative;
}
.tc-block-dropdown {
position: absolute;
min-width: 220px;
border: 1px solid &lt;&lt;colour dropdown-border&gt;&gt;;
background-color: &lt;&lt;colour dropdown-background&gt;&gt;;
padding: 7px 0;
margin: 4px 0 0 0;
white-space: nowrap;
z-index: 1000;
text-shadow: none;
}
.tc-block-dropdown.tc-search-drop-down {
margin-left: -12px;
}
.tc-block-dropdown a {
display: block;
padding: 4px 14px 4px 14px;
}
.tc-block-dropdown.tc-search-drop-down a {
display: block;
padding: 0px 10px 0px 10px;
}
.tc-drop-down .tc-dropdown-item-plain,
.tc-block-dropdown .tc-dropdown-item-plain {
padding: 4px 14px 4px 7px;
}
.tc-drop-down .tc-dropdown-item,
.tc-block-dropdown .tc-dropdown-item {
padding: 4px 14px 4px 7px;
color: &lt;&lt;colour muted-foreground&gt;&gt;;
}
.tc-block-dropdown a:hover {
color: &lt;&lt;colour tiddler-link-background&gt;&gt;;
background-color: &lt;&lt;colour tiddler-link-foreground&gt;&gt;;
text-decoration: none;
}
.tc-search-results {
padding: 0 7px 0 7px;
}
.tc-image-chooser, .tc-colour-chooser {
white-space: normal;
}
.tc-image-chooser a,
.tc-colour-chooser a {
display: inline-block;
vertical-align: top;
text-align: center;
position: relative;
}
.tc-image-chooser a {
border: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;
padding: 2px;
margin: 2px;
width: 4em;
height: 4em;
}
.tc-colour-chooser a {
padding: 3px;
width: 2em;
height: 2em;
vertical-align: middle;
}
.tc-image-chooser a:hover,
.tc-colour-chooser a:hover {
background: &lt;&lt;colour primary&gt;&gt;;
padding: 0px;
border: 3px solid &lt;&lt;colour primary&gt;&gt;;
}
.tc-image-chooser a svg,
.tc-image-chooser a img {
display: inline-block;
width: auto;
height: auto;
max-width: 3.5em;
max-height: 3.5em;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
/*
** Modals
*/
.tc-modal-wrapper {
position: fixed;
overflow: auto;
overflow-y: scroll;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 900;
}
.tc-modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
background-color: &lt;&lt;colour modal-backdrop&gt;&gt;;
}
.tc-modal {
z-index: 1100;
background-color: &lt;&lt;colour modal-background&gt;&gt;;
border: 1px solid &lt;&lt;colour modal-border&gt;&gt;;
}
@media (max-width: 55em) {
.tc-modal {
position: fixed;
top: 1em;
left: 1em;
right: 1em;
}
.tc-modal-body {
overflow-y: auto;
max-height: 400px;
max-height: 60vh;
}
}
@media (min-width: 55em) {
.tc-modal {
position: fixed;
top: 2em;
left: 25%;
width: 50%;
}
.tc-modal-body {
overflow-y: auto;
max-height: 400px;
max-height: 60vh;
}
}
.tc-modal-header {
padding: 9px 15px;
border-bottom: 1px solid &lt;&lt;colour modal-header-border&gt;&gt;;
}
.tc-modal-header h3 {
margin: 0;
line-height: 30px;
}
.tc-modal-header img, .tc-modal-header svg {
width: 1em;
height: 1em;
}
.tc-modal-body {
padding: 15px;
}
.tc-modal-footer {
padding: 14px 15px 15px;
margin-bottom: 0;
text-align: right;
background-color: &lt;&lt;colour modal-footer-background&gt;&gt;;
border-top: 1px solid &lt;&lt;colour modal-footer-border&gt;&gt;;
}
/*
** Notifications
*/
.tc-notification {
position: fixed;
top: 14px;
right: 42px;
z-index: 1300;
max-width: 280px;
padding: 0 14px 0 14px;
background-color: &lt;&lt;colour notification-background&gt;&gt;;
border: 1px solid &lt;&lt;colour notification-border&gt;&gt;;
}
/*
** Tabs
*/
.tc-tab-set.tc-vertical {
display: -webkit-flex;
display: flex;
}
.tc-tab-buttons {
font-size: 0.85em;
padding-top: 1em;
margin-bottom: -2px;
}
.tc-tab-buttons.tc-vertical {
z-index: 100;
display: block;
padding-top: 14px;
vertical-align: top;
text-align: right;
margin-bottom: inherit;
margin-right: -1px;
max-width: 33%;
-webkit-flex: 0 0 auto;
flex: 0 0 auto;
}
.tc-tab-buttons button.tc-tab-selected {
color: &lt;&lt;colour tab-foreground-selected&gt;&gt;;
background-color: &lt;&lt;colour tab-background-selected&gt;&gt;;
border-left: 1px solid &lt;&lt;colour tab-border-selected&gt;&gt;;
border-top: 1px solid &lt;&lt;colour tab-border-selected&gt;&gt;;
border-right: 1px solid &lt;&lt;colour tab-border-selected&gt;&gt;;
}
.tc-tab-buttons button {
color: &lt;&lt;colour tab-foreground&gt;&gt;;
padding: 3px 5px 3px 5px;
margin-right: 0.3em;
font-weight: 300;
border: none;
background: inherit;
background-color: &lt;&lt;colour tab-background&gt;&gt;;
border-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
border-top: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
border-right: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.tc-tab-buttons.tc-vertical button {
display: block;
width: 100%;
margin-top: 3px;
margin-right: 0;
text-align: right;
background-color: &lt;&lt;colour tab-background&gt;&gt;;
border-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
border-bottom: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
border-right: none;
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.tc-tab-buttons.tc-vertical button.tc-tab-selected {
background-color: &lt;&lt;colour tab-background-selected&gt;&gt;;
border-right: 1px solid &lt;&lt;colour tab-background-selected&gt;&gt;;
}
.tc-tab-divider {
border-top: 1px solid &lt;&lt;colour tab-divider&gt;&gt;;
}
.tc-tab-divider.tc-vertical {
display: none;
}
.tc-tab-content {
margin-top: 14px;
}
.tc-tab-content.tc-vertical {
display: inline-block;
vertical-align: top;
padding-top: 0;
padding-left: 14px;
border-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
-webkit-flex: 1 0 70%;
flex: 1 0 70%;
overflow: auto;
}
.tc-sidebar-lists .tc-tab-buttons {
margin-bottom: -1px;
}
.tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {
background-color: &lt;&lt;colour sidebar-tab-background-selected&gt;&gt;;
color: &lt;&lt;colour sidebar-tab-foreground-selected&gt;&gt;;
border-left: 1px solid &lt;&lt;colour sidebar-tab-border-selected&gt;&gt;;
border-top: 1px solid &lt;&lt;colour sidebar-tab-border-selected&gt;&gt;;
border-right: 1px solid &lt;&lt;colour sidebar-tab-border-selected&gt;&gt;;
}
.tc-sidebar-lists .tc-tab-buttons button {
background-color: &lt;&lt;colour sidebar-tab-background&gt;&gt;;
color: &lt;&lt;colour sidebar-tab-foreground&gt;&gt;;
border-left: 1px solid &lt;&lt;colour sidebar-tab-border&gt;&gt;;
border-top: 1px solid &lt;&lt;colour sidebar-tab-border&gt;&gt;;
border-right: 1px solid &lt;&lt;colour sidebar-tab-border&gt;&gt;;
}
.tc-sidebar-lists .tc-tab-divider {
border-top: 1px solid &lt;&lt;colour sidebar-tab-divider&gt;&gt;;
}
.tc-more-sidebar &gt; .tc-tab-set &gt; .tc-tab-buttons &gt; button {
display: block;
width: 100%;
background-color: &lt;&lt;colour sidebar-tab-background&gt;&gt;;
border-top: none;
border-left: none;
border-bottom: none;
border-right: 1px solid #ccc;
margin-bottom: inherit;
}
.tc-more-sidebar &gt; .tc-tab-set &gt; .tc-tab-buttons &gt; button.tc-tab-selected {
background-color: &lt;&lt;colour sidebar-tab-background-selected&gt;&gt;;
border: none;
}
/*
** Manager
*/
.tc-manager-wrapper {
}
.tc-manager-controls {
}
.tc-manager-control {
margin: 0.5em 0;
}
.tc-manager-list {
width: 100%;
border-top: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;
border-left: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;
border-right: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;
}
.tc-manager-list-item {
}
.tc-manager-list-item-heading {
display: block;
width: 100%;
text-align: left;
border-bottom: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;
padding: 3px;
}
.tc-manager-list-item-heading-selected {
font-weight: bold;
color: &lt;&lt;colour background&gt;&gt;;
fill: &lt;&lt;colour background&gt;&gt;;
background-color: &lt;&lt;colour foreground&gt;&gt;;
}
.tc-manager-list-item-heading:hover {
background: &lt;&lt;colour primary&gt;&gt;;
color: &lt;&lt;colour background&gt;&gt;;
}
.tc-manager-list-item-content {
display: flex;
}
.tc-manager-list-item-content-sidebar {
flex: 1 0;
background: &lt;&lt;colour tiddler-editor-background&gt;&gt;;
border-right: 0.5em solid &lt;&lt;colour muted-foreground&gt;&gt;;
border-bottom: 0.5em solid &lt;&lt;colour muted-foreground&gt;&gt;;
white-space: nowrap;
}
.tc-manager-list-item-content-item-heading {
display: block;
width: 100%;
text-align: left;
background: &lt;&lt;colour muted-foreground&gt;&gt;;
text-transform: uppercase;
font-size: 0.6em;
font-weight: bold;
padding: 0.5em 0 0.5em 0;
}
.tc-manager-list-item-content-item-body {
padding: 0 0.5em 0 0.5em;
}
.tc-manager-list-item-content-item-body &gt; pre {
margin: 0.5em 0 0.5em 0;
border: none;
background: inherit;
}
.tc-manager-list-item-content-tiddler {
flex: 3 1;
border-left: 0.5em solid &lt;&lt;colour muted-foreground&gt;&gt;;
border-right: 0.5em solid &lt;&lt;colour muted-foreground&gt;&gt;;
border-bottom: 0.5em solid &lt;&lt;colour muted-foreground&gt;&gt;;
}
.tc-manager-list-item-content-item-body &gt; table {
border: none;
padding: 0;
margin: 0;
}
.tc-manager-list-item-content-item-body &gt; table td {
border: none;
}
.tc-manager-icon-editor &gt; button {
width: 100%;
}
.tc-manager-icon-editor &gt; button &gt; svg,
.tc-manager-icon-editor &gt; button &gt; button {
width: 100%;
height: auto;
}
/*
** Alerts
*/
.tc-alerts {
position: fixed;
top: 28px;
left: 0;
right: 0;
max-width: 50%;
z-index: 20000;
}
.tc-alert {
position: relative;
margin: 14px;
padding: 7px;
border: 1px solid &lt;&lt;colour alert-border&gt;&gt;;
background-color: &lt;&lt;colour alert-background&gt;&gt;;
}
.tc-alert-toolbar {
position: absolute;
top: 7px;
right: 7px;
line-height: 0;
}
.tc-alert-toolbar svg {
fill: &lt;&lt;colour alert-muted-foreground&gt;&gt;;
}
.tc-alert-subtitle {
color: &lt;&lt;colour alert-muted-foreground&gt;&gt;;
font-weight: bold;
font-size: 0.8em;
margin-bottom: 0.5em;
}
.tc-alert-body &gt; p {
margin: 0;
}
.tc-alert-highlight {
color: &lt;&lt;colour alert-highlight&gt;&gt;;
}
@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tc-static-alert {
position: relative;
}
.tc-static-alert-inner {
position: absolute;
z-index: 100;
}
}
.tc-static-alert-inner {
padding: 0 2px 2px 42px;
color: &lt;&lt;colour static-alert-foreground&gt;&gt;;
}
/*
** Floating drafts list
*/
.tc-drafts-list {
z-index: 2000;
position: fixed;
font-size: 0.8em;
left: 0;
bottom: 0;
}
.tc-drafts-list a {
margin: 0 0.5em;
padding: 4px 4px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border: 1px solid &lt;&lt;colour background&gt;&gt;;
border-bottom-none;
background: &lt;&lt;colour dirty-indicator&gt;&gt;;
color: &lt;&lt;colour background&gt;&gt;;
fill: &lt;&lt;colour background&gt;&gt;;
}
.tc-drafts-list a:hover {
text-decoration: none;
background: &lt;&lt;colour foreground&gt;&gt;;
color: &lt;&lt;colour background&gt;&gt;;
fill: &lt;&lt;colour background&gt;&gt;;
}
.tc-drafts-list a svg {
width: 1em;
height: 1em;
vertical-align: text-bottom;
}
/*
** Control panel
*/
.tc-control-panel td {
padding: 4px;
}
.tc-control-panel table, .tc-control-panel table input, .tc-control-panel table textarea {
width: 100%;
}
.tc-plugin-info {
display: flex;
border: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;
fill: &lt;&lt;colour muted-foreground&gt;&gt;;
background-color: &lt;&lt;colour background&gt;&gt;;
margin: 0.5em 0 0.5em 0;
padding: 4px;
align-items: center;
}
.tc-plugin-info-sub-plugins .tc-plugin-info {
margin: 0.5em;
background: &lt;&lt;colour background&gt;&gt;;
}
.tc-plugin-info-sub-plugin-indicator {
margin: -16px 1em 0 2em;
}
.tc-plugin-info-sub-plugin-indicator button {
color: &lt;&lt;colour background&gt;&gt;;
background: &lt;&lt;colour foreground&gt;&gt;;
border-radius: 8px;
padding: 2px 7px;
font-size: 0.75em;
}
.tc-plugin-info-sub-plugins .tc-plugin-info-dropdown {
margin-left: 1em;
margin-right: 1em;
}
.tc-plugin-info-disabled {
background: -webkit-repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);
background: repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);
}
.tc-plugin-info-disabled:hover {
background: -webkit-repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);
background: repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);
}
a.tc-tiddlylink.tc-plugin-info:hover {
text-decoration: none;
background-color: &lt;&lt;colour primary&gt;&gt;;
color: &lt;&lt;colour background&gt;&gt;;
fill: &lt;&lt;colour foreground&gt;&gt;;
}
a.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info &gt; .tc-plugin-info-chunk &gt; svg {
fill: &lt;&lt;colour foreground&gt;&gt;;
}
.tc-plugin-info-chunk {
margin: 2px;
}
.tc-plugin-info-chunk.tc-plugin-info-toggle {
flex-grow: 0;
flex-shrink: 0;
line-height: 1;
}
.tc-plugin-info-chunk.tc-plugin-info-icon {
flex-grow: 0;
flex-shrink: 0;
line-height: 1;
}
.tc-plugin-info-chunk.tc-plugin-info-description {
flex-grow: 1;
}
.tc-plugin-info-chunk.tc-plugin-info-buttons {
font-size: 0.8em;
line-height: 1.2;
flex-grow: 0;
flex-shrink: 0;
text-align: right;
}
.tc-plugin-info-chunk.tc-plugin-info-description h1 {
font-size: 1em;
line-height: 1.2;
margin: 2px 0 2px 0;
}
.tc-plugin-info-chunk.tc-plugin-info-description h2 {
font-size: 0.8em;
line-height: 1.2;
margin: 2px 0 2px 0;
}
.tc-plugin-info-chunk.tc-plugin-info-description div {
font-size: 0.7em;
line-height: 1.2;
margin: 2px 0 2px 0;
}
.tc-plugin-info-chunk.tc-plugin-info-toggle img, .tc-plugin-info-chunk.tc-plugin-info-toggle svg {
width: 1em;
height: 1em;
}
.tc-plugin-info-chunk.tc-plugin-info-icon img, .tc-plugin-info-chunk.tc-plugin-info-icon svg {
width: 2em;
height: 2em;
}
.tc-plugin-info-dropdown {
border: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;
background: &lt;&lt;colour background&gt;&gt;;
margin-top: -8px;
}
.tc-plugin-info-dropdown-message {
background: &lt;&lt;colour message-background&gt;&gt;;
padding: 0.5em 1em 0.5em 1em;
font-weight: bold;
font-size: 0.8em;
}
.tc-plugin-info-dropdown-body {
padding: 1em 1em 0 1em;
background: &lt;&lt;colour background&gt;&gt;;
}
.tc-plugin-info-sub-plugins {
padding: 0.5em;
margin: 0 1em 1em 1em;
background: &lt;&lt;colour notification-background&gt;&gt;;
}
.tc-install-plugin {
font-weight: bold;
background: green;
color: white;
fill: white;
border-radius: 4px;
padding: 3px;
}
.tc-install-plugin.tc-reinstall-downgrade {
background: red;
}
.tc-install-plugin.tc-reinstall {
background: blue;
}
.tc-install-plugin.tc-reinstall-upgrade {
background: orange;
}
.tc-check-list {
line-height: 2em;
}
.tc-check-list .tc-image-button {
height: 1.5em;
}
/*
** Message boxes
*/
.tc-message-box {
border: 1px solid &lt;&lt;colour message-border&gt;&gt;;
background: &lt;&lt;colour message-background&gt;&gt;;
padding: 0px 21px 0px 21px;
font-size: 12px;
line-height: 18px;
color: &lt;&lt;colour message-foreground&gt;&gt;;
}
.tc-message-box svg {
width: 1em;
height: 1em;
vertical-align: text-bottom;
}
/*
** Pictures
*/
.tc-bordered-image {
border: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;
padding: 5px;
margin: 5px;
}
/*
** Floats
*/
.tc-float-right {
float: right;
}
/*
** Chooser
*/
.tc-chooser {
border-right: 1px solid &lt;&lt;colour table-header-background&gt;&gt;;
border-left: 1px solid &lt;&lt;colour table-header-background&gt;&gt;;
}
.tc-chooser-item {
border-bottom: 1px solid &lt;&lt;colour table-header-background&gt;&gt;;
border-top: 1px solid &lt;&lt;colour table-header-background&gt;&gt;;
padding: 2px 4px 2px 14px;
}
.tc-drop-down .tc-chooser-item {
padding: 2px;
}
.tc-chosen,
.tc-chooser-item:hover {
background-color: &lt;&lt;colour table-header-background&gt;&gt;;
border-color: &lt;&lt;colour table-footer-background&gt;&gt;;
}
.tc-chosen .tc-tiddlylink {
cursor:default;
}
.tc-chooser-item .tc-tiddlylink {
display: block;
text-decoration: none;
background-color: transparent;
}
.tc-chooser-item:hover .tc-tiddlylink:hover {
text-decoration: none;
}
.tc-drop-down .tc-chosen .tc-tiddlylink,
.tc-drop-down .tc-chooser-item .tc-tiddlylink:hover {
color: &lt;&lt;colour foreground&gt;&gt;;
}
.tc-chosen &gt; .tc-tiddlylink:before {
margin-left: -10px;
position: relative;
content: &quot;» &quot;;
}
.tc-chooser-item svg,
.tc-chooser-item img{
width: 1em;
height: 1em;
vertical-align: middle;
}
.tc-language-chooser .tc-image-button img {
width: 2em;
vertical-align: -0.15em;
}
/*
** Palette swatches
*/
.tc-swatches-horiz {
}
.tc-swatches-horiz .tc-swatch {
display: inline-block;
}
.tc-swatch {
width: 2em;
height: 2em;
margin: 0.4em;
border: 1px solid #888;
}
input.tc-palette-manager-colour-input {
width: 100%;
padding: 0;
}
/*
** Table of contents
*/
.tc-sidebar-lists .tc-table-of-contents {
white-space: nowrap;
}
.tc-table-of-contents button {
color: &lt;&lt;colour sidebar-foreground&gt;&gt;;
}
.tc-table-of-contents svg {
width: 0.7em;
height: 0.7em;
vertical-align: middle;
fill: &lt;&lt;colour sidebar-foreground&gt;&gt;;
}
.tc-table-of-contents ol {
list-style-type: none;
padding-left: 0;
}
.tc-table-of-contents ol ol {
padding-left: 1em;
}
.tc-table-of-contents li {
font-size: 1.0em;
font-weight: bold;
}
.tc-table-of-contents li a {
font-weight: bold;
}
.tc-table-of-contents li li {
font-size: 0.95em;
font-weight: normal;
line-height: 1.4;
}
.tc-table-of-contents li li a {
font-weight: normal;
}
.tc-table-of-contents li li li {
font-size: 0.95em;
font-weight: 200;
line-height: 1.5;
}
.tc-table-of-contents li li li li {
font-size: 0.95em;
font-weight: 200;
}
.tc-tabbed-table-of-contents {
display: -webkit-flex;
display: flex;
}
.tc-tabbed-table-of-contents .tc-table-of-contents {
z-index: 100;
display: inline-block;
padding-left: 1em;
max-width: 50%;
-webkit-flex: 0 0 auto;
flex: 0 0 auto;
background: &lt;&lt;colour tab-background&gt;&gt;;
border-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
border-top: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
border-bottom: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
}
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item &gt; a,
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected &gt; a {
display: block;
padding: 0.12em 1em 0.12em 0.25em;
}
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item &gt; a {
border-top: 1px solid &lt;&lt;colour tab-background&gt;&gt;;
border-left: 1px solid &lt;&lt;colour tab-background&gt;&gt;;
border-bottom: 1px solid &lt;&lt;colour tab-background&gt;&gt;;
}
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item &gt; a:hover {
text-decoration: none;
border-top: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
border-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
border-bottom: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
background: &lt;&lt;colour tab-border&gt;&gt;;
}
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected &gt; a {
border-top: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
border-left: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
border-bottom: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
background: &lt;&lt;colour background&gt;&gt;;
margin-right: -1px;
}
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected &gt; a:hover {
text-decoration: none;
}
.tc-tabbed-table-of-contents .tc-tabbed-table-of-contents-content {
display: inline-block;
vertical-align: top;
padding-left: 1.5em;
padding-right: 1.5em;
border: 1px solid &lt;&lt;colour tab-border&gt;&gt;;
-webkit-flex: 1 0 50%;
flex: 1 0 50%;
}
/*
** Dirty indicator
*/
body.tc-dirty span.tc-dirty-indicator, body.tc-dirty span.tc-dirty-indicator svg {
fill: &lt;&lt;colour dirty-indicator&gt;&gt;;
color: &lt;&lt;colour dirty-indicator&gt;&gt;;
}
/*
** File inputs
*/
.tc-file-input-wrapper {
position: relative;
overflow: hidden;
display: inline-block;
vertical-align: middle;
}
.tc-file-input-wrapper input[type=file] {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
font-size: 999px;
max-width: 100%;
max-height: 100%;
filter: alpha(opacity=0);
opacity: 0;
outline: none;
background: white;
cursor: pointer;
display: inline-block;
}
/*
** Thumbnail macros
*/
.tc-thumbnail-wrapper {
position: relative;
display: inline-block;
margin: 6px;
vertical-align: top;
}
.tc-thumbnail-right-wrapper {
float:right;
margin: 0.5em 0 0.5em 0.5em;
}
.tc-thumbnail-image {
text-align: center;
overflow: hidden;
border-radius: 3px;
}
.tc-thumbnail-image svg,
.tc-thumbnail-image img {
filter: alpha(opacity=1);
opacity: 1;
min-width: 100%;
min-height: 100%;
max-width: 100%;
}
.tc-thumbnail-wrapper:hover .tc-thumbnail-image svg,
.tc-thumbnail-wrapper:hover .tc-thumbnail-image img {
filter: alpha(opacity=0.8);
opacity: 0.8;
}
.tc-thumbnail-background {
position: absolute;
border-radius: 3px;
}
.tc-thumbnail-icon svg,
.tc-thumbnail-icon img {
width: 3em;
height: 3em;
&lt;&lt;filter &quot;drop-shadow(2px 2px 4px rgba(0,0,0,0.3))&quot;&gt;&gt;
}
.tc-thumbnail-wrapper:hover .tc-thumbnail-icon svg,
.tc-thumbnail-wrapper:hover .tc-thumbnail-icon img {
fill: #fff;
&lt;&lt;filter &quot;drop-shadow(3px 3px 4px rgba(0,0,0,0.6))&quot;&gt;&gt;
}
.tc-thumbnail-icon {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: -webkit-flex;
-webkit-align-items: center;
-webkit-justify-content: center;
display: flex;
align-items: center;
justify-content: center;
}
.tc-thumbnail-caption {
position: absolute;
background-color: #777;
color: #fff;
text-align: center;
bottom: 0;
width: 100%;
filter: alpha(opacity=0.9);
opacity: 0.9;
line-height: 1.4;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
}
.tc-thumbnail-wrapper:hover .tc-thumbnail-caption {
filter: alpha(opacity=1);
opacity: 1;
}
/*
** Diffs
*/
.tc-diff-equal {
background-color: &lt;&lt;colour diff-equal-background&gt;&gt;;
color: &lt;&lt;colour diff-equal-foreground&gt;&gt;;
}
.tc-diff-insert {
background-color: &lt;&lt;colour diff-insert-background&gt;&gt;;
color: &lt;&lt;colour diff-insert-foreground&gt;&gt;;
}
.tc-diff-delete {
background-color: &lt;&lt;colour diff-delete-background&gt;&gt;;
color: &lt;&lt;colour diff-delete-foreground&gt;&gt;;
}
.tc-diff-invisible {
background-color: &lt;&lt;colour diff-invisible-background&gt;&gt;;
color: &lt;&lt;colour diff-invisible-foreground&gt;&gt;;
}
.tc-diff-tiddlers th {
text-align: right;
background: &lt;&lt;colour background&gt;&gt;;
font-weight: normal;
font-style: italic;
}
.tc-diff-tiddlers pre {
margin: 0;
padding: 0;
border: none;
background: none;
}
/*
** Errors
*/
.tc-error {
background: #f00;
color: #fff;
}
/*
** Tree macro
*/
.tc-tree div {
padding-left: 14px;
}
.tc-tree ol {
list-style-type: none;
padding-left: 0;
margin-top: 0;
}
.tc-tree ol ol {
padding-left: 1em;
}
.tc-tree button {
color: #acacac;
}
.tc-tree svg {
fill: #acacac;
}
.tc-tree span svg {
width: 1em;
height: 1em;
vertical-align: baseline;
}
.tc-tree li span {
color: lightgray;
}
select {
color: &lt;&lt;colour select-tag-foreground&gt;&gt;;
background: &lt;&lt;colour select-tag-background&gt;&gt;;
}
/*
** Utility classes for SVG icons
*/
.tc-fill-background {
fill: &lt;&lt;colour background&gt;&gt;;
}</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize">
<pre>15px</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/metrics/bodylineheight">
<pre>22px</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/metrics/fontsize">
<pre>14px</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/metrics/lineheight">
<pre>20px</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint">
<pre>960px</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth">
<pre>350px</pre>
</div>
<div created="20210530010748633" modified="20210530011413218" title="$:/themes/tiddlywiki/vanilla/metrics/storyleft">
<pre>20%</pre>
</div>
<div created="20210530011351451" modified="20210530011539044" title="$:/themes/tiddlywiki/vanilla/metrics/storyright">
<pre>350px</pre>
</div>
<div created="20210530010333218" modified="20210530011516308" title="$:/themes/tiddlywiki/vanilla/metrics/storytop">
<pre>200px</pre>
</div>
<div created="20210530010617838" modified="20210530012316496" title="$:/themes/tiddlywiki/vanilla/metrics/storywidth">
<pre>60%</pre>
</div>
<div created="20210530010318546" modified="20210530012322665" title="$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth">
<pre>100%</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/options/codewrapping">
<pre>pre-wrap</pre>
</div>
<div created="20210530010407821" modified="20210530011608638" title="$:/themes/tiddlywiki/vanilla/options/sidebarlayout">
<pre>fluid-fixed</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/options/stickytitles">
<pre>no</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/reset" type="text/plain">
<pre>/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type=&quot;button&quot;],
[type=&quot;reset&quot;],
[type=&quot;submit&quot;] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type=&quot;button&quot;]::-moz-focus-inner,
[type=&quot;reset&quot;]::-moz-focus-inner,
[type=&quot;submit&quot;]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type=&quot;button&quot;]:-moz-focusring,
[type=&quot;reset&quot;]:-moz-focusring,
[type=&quot;submit&quot;]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type=&quot;checkbox&quot;],
[type=&quot;radio&quot;] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type=&quot;number&quot;]::-webkit-inner-spin-button,
[type=&quot;number&quot;]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type=&quot;search&quot;] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type=&quot;search&quot;]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}
</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment">
<pre>fixed</pre>
</div>
<div created="20210530004729725" modified="20210530004729725" title="$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize">
<pre>cover</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/settings/codefontfamily">
<pre>&quot;SFMono-Regular&quot;,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/settings/fontfamily">
<pre>-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;</pre>
</div>
<div title="$:/themes/tiddlywiki/vanilla/sticky">
<pre>&lt;$reveal state=&quot;$:/themes/tiddlywiki/vanilla/options/stickytitles&quot; type=&quot;match&quot; text=&quot;yes&quot;&gt;
``
.tc-tiddler-title {
position: -webkit-sticky;
position: -moz-sticky;
position: -o-sticky;
position: -ms-sticky;
position: sticky;
top: 0px;
background: ``&lt;&lt;colour tiddler-background&gt;&gt;``;
z-index: 500;
}
``
&lt;$list filter=&quot;[range[100]]&quot;&gt;
`.tc-story-river .tc-tiddler-frame:nth-child(100n+`&lt;$text text=&lt;&lt;currentTiddler&gt;&gt;/&gt;`) {
z-index: `&lt;$text text={{{ [[200]subtract&lt;currentTiddler&gt;] }}}/&gt;`;
}
`
&lt;/$list&gt;
&lt;/$reveal&gt;
</pre>
</div>
<div caption="{{$:/language/ThemeTweaks/ThemeTweaks}}" tags="$:/tags/ControlPanel/Appearance" title="$:/themes/tiddlywiki/vanilla/themetweaks">
<pre>\define lingo-base() $:/language/ThemeTweaks/
\define replacement-text()
[img[$(imageTitle)$]]
\end
\define backgroundimage-dropdown()
&lt;div class=&quot;tc-drop-down-wrapper&quot;&gt;
&lt;$button popup=&lt;&lt;qualify &quot;$:/state/popup/themetweaks/backgroundimage&quot;&gt;&gt; class=&quot;tc-btn-invisible tc-btn-dropdown&quot;&gt;{{$:/core/images/down-arrow}}&lt;/$button&gt;
&lt;$reveal state=&lt;&lt;qualify &quot;$:/state/popup/themetweaks/backgroundimage&quot;&gt;&gt; type=&quot;popup&quot; position=&quot;belowleft&quot; text=&quot;&quot; default=&quot;&quot;&gt;
&lt;div class=&quot;tc-drop-down&quot;&gt;
&lt;$macrocall $name=&quot;image-picker&quot; actions=&quot;&quot;&quot;
&lt;$action-setfield
$tiddler=&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimage&quot;
$value=&lt;&lt;imageTitle&gt;&gt;
/&gt;
&quot;&quot;&quot;/&gt;
&lt;/div&gt;
&lt;/$reveal&gt;
&lt;/div&gt;
\end
\define backgroundimageattachment-dropdown()
&lt;$select tiddler=&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment&quot; default=&quot;scroll&quot;&gt;
&lt;option value=&quot;scroll&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageAttachment/Scroll&gt;&gt;&lt;/option&gt;
&lt;option value=&quot;fixed&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageAttachment/Fixed&gt;&gt;&lt;/option&gt;
&lt;/$select&gt;
\end
\define backgroundimagesize-dropdown()
&lt;$select tiddler=&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize&quot; default=&quot;scroll&quot;&gt;
&lt;option value=&quot;auto&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageSize/Auto&gt;&gt;&lt;/option&gt;
&lt;option value=&quot;cover&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageSize/Cover&gt;&gt;&lt;/option&gt;
&lt;option value=&quot;contain&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageSize/Contain&gt;&gt;&lt;/option&gt;
&lt;/$select&gt;
\end
&lt;&lt;lingo ThemeTweaks/Hint&gt;&gt;
! &lt;&lt;lingo Options&gt;&gt;
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/options/sidebarlayout&quot;&gt;&lt;&lt;lingo Options/SidebarLayout&gt;&gt;&lt;/$link&gt; |&lt;$select tiddler=&quot;$:/themes/tiddlywiki/vanilla/options/sidebarlayout&quot;&gt;&lt;option value=&quot;fixed-fluid&quot;&gt;&lt;&lt;lingo Options/SidebarLayout/Fixed-Fluid&gt;&gt;&lt;/option&gt;&lt;option value=&quot;fluid-fixed&quot;&gt;&lt;&lt;lingo Options/SidebarLayout/Fluid-Fixed&gt;&gt;&lt;/option&gt;&lt;/$select&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/options/stickytitles&quot;&gt;&lt;&lt;lingo Options/StickyTitles&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Options/StickyTitles/Hint&gt;&gt;// |&lt;$select tiddler=&quot;$:/themes/tiddlywiki/vanilla/options/stickytitles&quot;&gt;&lt;option value=&quot;no&quot;&gt;{{$:/language/No}}&lt;/option&gt;&lt;option value=&quot;yes&quot;&gt;{{$:/language/Yes}}&lt;/option&gt;&lt;/$select&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/options/codewrapping&quot;&gt;&lt;&lt;lingo Options/CodeWrapping&gt;&gt;&lt;/$link&gt; |&lt;$select tiddler=&quot;$:/themes/tiddlywiki/vanilla/options/codewrapping&quot;&gt;&lt;option value=&quot;pre&quot;&gt;{{$:/language/No}}&lt;/option&gt;&lt;option value=&quot;pre-wrap&quot;&gt;{{$:/language/Yes}}&lt;/option&gt;&lt;/$select&gt; |
! &lt;&lt;lingo Settings&gt;&gt;
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/settings/fontfamily&quot;&gt;&lt;&lt;lingo Settings/FontFamily&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/settings/fontfamily&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; | |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/settings/codefontfamily&quot;&gt;&lt;&lt;lingo Settings/CodeFontFamily&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/settings/codefontfamily&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; | |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/settings/editorfontfamily&quot;&gt;&lt;&lt;lingo Settings/EditorFontFamily&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/settings/editorfontfamily&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; | |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimage&quot;&gt;&lt;&lt;lingo Settings/BackgroundImage&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimage&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |&lt;&lt;backgroundimage-dropdown&gt;&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageAttachment&gt;&gt;&lt;/$link&gt; |&lt;&lt;backgroundimageattachment-dropdown&gt;&gt; | |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize&quot;&gt;&lt;&lt;lingo Settings/BackgroundImageSize&gt;&gt;&lt;/$link&gt; |&lt;&lt;backgroundimagesize-dropdown&gt;&gt; | |
! &lt;&lt;lingo Metrics&gt;&gt;
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/metrics/fontsize&quot;&gt;&lt;&lt;lingo Metrics/FontSize&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/metrics/fontsize&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/metrics/lineheight&quot;&gt;&lt;&lt;lingo Metrics/LineHeight&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/metrics/lineheight&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize&quot;&gt;&lt;&lt;lingo Metrics/BodyFontSize&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/metrics/bodylineheight&quot;&gt;&lt;&lt;lingo Metrics/BodyLineHeight&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/metrics/bodylineheight&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/metrics/storyleft&quot;&gt;&lt;&lt;lingo Metrics/StoryLeft&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/StoryLeft/Hint&gt;&gt;// |^&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/metrics/storyleft&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/metrics/storytop&quot;&gt;&lt;&lt;lingo Metrics/StoryTop&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/StoryTop/Hint&gt;&gt;// |^&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/metrics/storytop&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/metrics/storyright&quot;&gt;&lt;&lt;lingo Metrics/StoryRight&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/StoryRight/Hint&gt;&gt;// |^&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/metrics/storyright&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/metrics/storywidth&quot;&gt;&lt;&lt;lingo Metrics/StoryWidth&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/StoryWidth/Hint&gt;&gt;// |^&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/metrics/storywidth&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth&quot;&gt;&lt;&lt;lingo Metrics/TiddlerWidth&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/TiddlerWidth/Hint&gt;&gt;//&lt;br&gt; |^&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint&quot;&gt;&lt;&lt;lingo Metrics/SidebarBreakpoint&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/SidebarBreakpoint/Hint&gt;&gt;// |^&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth&quot;&gt;&lt;&lt;lingo Metrics/SidebarWidth&gt;&gt;&lt;/$link&gt;&lt;br&gt;//&lt;&lt;lingo Metrics/SidebarWidth/Hint&gt;&gt;// |^&lt;$edit-text tiddler=&quot;$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
</pre>
</div>
<div created="20210530002433192" modified="20210925203140182" title="$:/view">
<pre>zoomin</pre>
</div>
<div background-image="$:/background/lighthouse 2" created="20210530013342962" modified="20210530013412589" title="A test">
<pre>&lt;&lt;link &quot;Home&quot;&gt;&gt;</pre>
</div>
<div background-image="$:/background/lighthouse 1" created="20210530002307799" modified="20210925202605485" tags="" title="copincha">
<pre>&lt;center&gt;[img height=150px [copincha-logo.png]]&lt;/center&gt;
''Copincha'' es un [[hackerspace|Hackerspace]] situado en La Habana. Es un laboratorio para el desarrollo de collectividades alrededor de las technologías digitales, la filosofía de hazlo tu mismo (DIY) y la colaboración abierta.
&lt;&lt;&lt;
En la jerga local cubana, &quot;pincha&quot; significa trabajo. Copincha así se traduce como trabajo colaborativo.
&lt;&lt;&lt;
Facilitamos un programa de charlas y talleres, desde los que se generan preguntas, opiniones, ayuda y soluciones colectivas.
Aprendemos juntos cosas nuevas con cada proyecto y empleamos herramientas digitales que nos dan autonomía y en la medida de lo posible soberanía sobre nuestros datos.
&lt;center&gt;
| &lt;a href=&quot;https://git.copincha.org&quot; class=&quot;tc-btn-big&quot; &gt; {{image/repo}}&lt;/a&gt; | &lt;h2&gt; Repositorio&lt;/h2&gt; Nuestro repositorio de codigo abierto, donde compartimos nuestros proyectos. |
| &lt;a href=&quot;https://copinchapedia.copincha.org&quot; class=&quot;tc-btn-big&quot; &gt; {{image/repo}}&lt;/a&gt; | &lt;h2&gt; Copinchapedia&lt;/h2&gt; Nuestra wiki de bolsillo, donde documentamos nuestras experiencias. |
&lt;br&gt;
&lt;br&gt;
{{copincha/redes}}</pre>
</div>
<div title="copincha-logo.png" type="image/png">
<pre>iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAC7XpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHja7ZddsuMoDIXfWUUvAUkIieVgfqp6B7P8PmDHN7l9Z7q7Zp6mYspABBby+QRJwvjr+wzfcFHJHJKa55JzxJVKKlzR8XheZdcU06731R5j9GoP9wDDJGjl/Gj1ml9h148Hbj/Hqz34NcJ+OboGHg5lrczo9OcgYefTTulyVMbZycXtOdSDr1e5Ju5Qrns23v70OIfW5/BsSAaVumIhYR5CEnedzghk3SQVbUaNPuYR2ioqOezGrkggyMvrPdoYnwV6EfnRC5/Vv3ufxOd62eWTlvnSCJ0vB0i/Fn9L/LSw3BHx64DJw9UXIs/uc47z7WrKUDRfGRXDQ52t/uyQPcl+LKMYbkXfdikoHmtsQN5jiwdKo0IMKjNQok6VJo3dNmoIMfFgQ8vcAGfZXIwLN1mc0io02aRIFwe3xiOIwMx3LLTXLXu9Ro6VO2EqE5wt1H9bwj8N/kkJc7YlEUW/tUJcvPIaYSxyq8YsAKF5cdMt8KNc+ONT/iBVQVC3zI4XrPE4XRxKH7klm7NgnqI9txAF65cDSIS1FcGQgEDMJEqZojEbEXR0AKqInCXxAQKkyh1BchLBeWTsvNbGM0Z7LitnXmacTQCBfSQGNkUqYKWkyB9LjhyqKppUNaupBy1as+SUNedseR1y1cSSqWUzcytWXTy5enZz9+K1cBGcgVpyseKllFo5VCxU4atifoXl4EOOdOiRDzv8KEdtSJ+WmrbcrHkrrXbu0nFM9Nytey+9DgoDJ8VIQ0ceNnyUUSdybcpMU2eeNn2WWW9qF9Wfyh9Qo4sab1Jrnt3UYA1mDxe0jhNdzECME4G4LQJIaF7MolNKvMgtZrEwNoUygtTFJnRaxIAwDWKddLP7IPdb3IL6b3HjX5ELC91/QS4A3c/cvqDW1/dc28TOXbg0jYLdh/HhNbDX9aVW/237dvR29Hb0dvR29Hb0dvQ/cDTx4wF/OsMPunqfJTIw+qAAAAGFaUNDUElDQyBwcm9maWxlAAAokX2RPUjDQBzFX1O1IhUFK4g4ZKhOFsSP4qhVKEKFUiu06mBy6YfQpCFJcXEUXAsOfixWHVycdXVwFQTBDxA3NydFFynxf0mhRYwHx/14d+9x9w4QaiWmmm1jgKpZRioeEzPZFTHwig70oxdTiErM1GeTyQQ8x9c9fHy9i/As73N/jm4lZzLAJxLPMN2wiNeJo5uWznmfOMSKkkJ8Tjxq0AWJH7kuu/zGueCwwDNDRjo1RxwiFgstLLcwKxoq8SRxWFE1yhcyLiuctzirpQpr3JO/MJjTlpe4TnMIcSxgEUmIkFHBBkqwEKFVI8VEivZjHv5Bx58kl0yuDTByzKMMFZLjB/+D392a+YlxNykYA9pfbPtjGAjsAvWqbX8f23b9BPA/A1da01+uAdOfpFebWvgI6NkGLq6bmrwHXO4AA0+6ZEiO5Kcp5PPA+xl9UxbouwW6Vt3eGvs4fQDS1FXiBjg4BEYKlL3m8e7O1t7+PdPo7wfjPHLU7vrb7AAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+UGFRA4OTZm5R8AABG2SURBVHja7Z17kNbVecc/u7C4y0XKJQQxSpAoiVTUeKEhGRpr2uhkaiIZZTTDTDGhWhsdJdE6GGwxkkrA6DSZmpgai1MzQ7wkRpNMjDLimJGio0GroFSkgC4SUXZZQG67/eOct2xfl/d9f+d3fpdz3u9n5vzD8v5+5znnec7vXJ7zPCCEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBl5iPAlAjlOhE4Vt0rXOkAFgI9wO+Blsjke8rKttDKKkTDXARsAvr6lUsjku/iKtk2WZmFqMnpwKoq5amULcDQSL6Mm44g45PAaVIDUc044C7g4BEUp1JujkDWm+rIeNC2xTiphWgD5gM76yhNpewBJga+4dDToKw7bdu0SU2ak1bghQaVpX9ZEbDM9znI+4JtK9GELHJQmF5gZoCyzrB1TyrvIqlJ8zIU2OygNM8HNqq2As86yLk5ko0JkYJLHBSnD5gXkIxzHWW8ROohAJ52UJ63gZFVzxle8PTrM8Cwqn8bAXQ6yPe01EJUOBM45KBEy+zvW4A5wFagGxhfgAzjMDtPW21dKif/SxzkOmTbRIj/4ycOirTPTkNWV/37PQXU/8dVdXgGmA287yDX3VKHuGgBpqZ8xnigy3GuPtAIfFaO8p9O/UPORkuXhy/gVOLzXQuW6Xa03AVMSPms6z0pWR/5Ojg+5bHe16esywTbF8/YvhEFMQFYXrV2uDflM48CNnhUtq/k0A6zPdZ3AzAkZX3urfqSLvcwcIkEtAML7Cg10NQm7aj1RY8Kt2WAXSWf1HI8dCkXePiaD7TZ0W37rF3qmy2zgI11Onm1h6nN7zwqXZYOjjd5rOdjHtaBq+u8Y6PtQ+GZacDKBJ09J+X7TsPNLSNPB8fjaNzxsBH3mbRu7nMSvG+l7VPhgWuBAwk7fCvm0M6FzwOveByZs3Jw/KnnOq4DznOsy3DgzYTvO4DxFhYZzWvrlcUJ33MS8IhnpcvKwfHTHr9w1eVR2xZJWOzYJjOk3n5Y7tABe4FJDTx7JOZEfF9GCufbwdHV8TDpAegyPuhKMxCTbFsnfcd9Umt/TDjCrlW98kAdRfsasC1jZfPt4Dg3x/q+betcy7AfcHhuD+bylvDIAsfP+DkDPGumHdH7ci5vNzgqHwlXx0MfX7+BpojnOE71Fkqd/dPewBbvQOUPwCD7jIl2wdxbgJJVym0p2mBJgfXutW1X2ZEbBKx1eM4mFGYoM2Y5du58zHnE7gIVrP/8/iQH2Sfj5njou+y2bTnf8fcXS42zZWUJlCRtechB7vsjkHuV1Dd7ppH8XKRspRfjgZtE5t7AZT6YUGaRgjsjGE3/I4G8/x6BvHdJbfNjLPBu4AqzFxjVgKwjMe4qIcu6kwAD0YUc6+gdwg9H0w5c2MD/+1IEuz7fBrZrXM+XwcD6Jlish74434CiM+bOGOAHESzW32lA1u2By3jA9tUYqW0+X42vAzsiWLRWygk15J0YkZw7bN8Nlhpnx3ciUphK+UINec+LUN5btUjPju9jnBZj4jjHv4VID/AvMpDs6LRfkZgYXWetFRO3Am/JQLLlduD1iJSm3fFvofEG6Rw1ZSANsg/4ZkSKc8jxb6FxHcbZUgaSA78AnohEcWqtqbojkfFJ4MHQKh161qBrMA5wodNZ42/bIvlCXhNixUM3kP8CfhSBAtVaT/13BPL9G+ZilSiAMYR9aHiA2hmcOgjbW+BdjGNpkMSQmHEH8E8B138txlP3SOzFJNEMlZtpzJ1GZMhgO90KcYT95wbkuyVQ2dYhJ8XS8FeEeeOukRwiZwRqIOdLLcvFw4Ep0MsJNyRCku1RqWP5+BjliPrRaLkygWxXBCTXPmCK1LGcfDcQJXqLZLcEO0geHDrEuF8iY46mmMiDScvlDrLNC0CutJEjRQ5cWnIlWsPhSI9JaKV+gpqiyxypXxg8VFIF2kO6bLwnU47okAOVh6V24TAK48JRNiW6zINsc0u4pf0Gte+1iBJyMuWKnbXMo2xLSyTXe8ApUrcw+TNM0LIyRBX0mTO9BeOoWbRc3ZhsVyJgziDfJDnVMXiXejaO/kaytMDp1tvA2VKvODje7h7lvSC/LAfZ5pJ/aNLngI9KreKiDeP4tz8HBXo25W6Vy3orjwHgACbwwhCpU7xMBX6T0dSkE+MWUsRVglb77qwOSh9Duc2bik9h4t76+KKsB66i9uWnvBhq6/KqB7n2Y+6SayHexHwI4/rxSIIdr0OYy05LraGVlRmY7eUXaTzXfBfwK4wz5YebWTFaCuowH5H1Kl6j72Gc+F7DZGJdQ+0beo1MU04EPm4X9qMxjoIHMdFHOjEHkC8RXsSRkXaKNBk4BpMxdxDGA3oHsAVzyek1O/10pR1zz+WTmFyMx2IObo/ypHPXAM/EapTnZ7yI3Av8FviqVQCRD8OAvwF+ncOOWtQXsbI2kOpDrDuACdLfzBiPcW/vyrFfZSD4P4+4mbjCeBbNUcA/YoJRR3uVN02ehiG4XcgvQkk7gIXAbIw79hrpdyrOwCQg/XhB72+zBpqUg+QYyvU2wrkCWn0d9O+k4878LWFda05107G1CTt4CPCvmO1ZkYxbgR86jt5B0sypsL5pO/rqgutxKjATs/06kcPXVbuA/8GcXzxF8aE7byfQ+LpFEeoUq7rcWEDbjbVroo0J6rnR/qaIMJ43RNLXt8lAkpdDwF/nuPPzLcz2c5qt62/lOM35Ao2fwMtAIjSQSirmYzJur0/Y6ZKvOr9on5kl44E/RtTPWqQ7Usm5nhWfw0Qj8Xkt9RT7zM9lWO/vE3Bkdh/IQA5zIXBuRsbxCCZel2+Ots/Owkj+AvhysyuFDOQwLcDiDKZVD5Lt4Wi7fYfv6dZiinFmlYGUmOnAZz09awiwIqMvx0BfkhX4u+U3ExPsAhmIqOYKT8/5B/INhXOKfacP5GlgSXNQuAOzN5+UDrLfMUrDBRg3+V0pnjEWk/I4b64D7iRdRqfhtg3KTCfmWkNS3g3BKIvw5k1aZqWUcWGBdV/oYbNCiXk0xaq7g5OGuQXWPe27z1X3y0AaWay7ciowqcC6T7J1KEJ2GUiTcDLuW5x/XoL6u9ahxcouZCA1GQqMc/xtGeJGudZhHOUIWyQDCYAPOf7u+BLU/ficZZaBNCHDHH9XhvRjI3OWWQYihAxE9Ge34++6SlD3rpxlloE0IX90/N3mEtR9c84yy0CajD3AdsffvliC+rvWYTvpwrbKQJqElzEuDS6sKkH9XevQB7yi7peB1CNNYLm1mIyvRfEG6SKgKKieDKQuT6T8/T0F1v2egmWPijQ3xm7ELf9e2d3d92ByYvSkeMZYzFWAvKPL7wJOIJ27+whMcs6OEveRq7v73cB3kvwgzX2Q0bYzYuOXKY0Dq6BLMQGz82RpSuOoGNkvMXGMy4rrADtGU6z03OnpOUswSXby4iX7Th/8UGogAxmI1Zgwnz7Yb0fhPLJQddt37ff0vCeB/5Q6yED6k0UY0nWY0DnvZ1jv9+071nl+7o24b3XLQCLkQWBlBs99HBPaNIsvSbd99uMZPPsJ4OcyEFFZVF+V4fMfx4TR8bkmeck+8/EM6/11THAOGUgT04tJPrkt4/esw2R+XUi6iCm77DPOymBaVU0n5o57r9QkObEEr76hgLYLLf3BjTRp8OrBTW7kd2CyJhUxpfu2LSEk0FmMOTy9CtEUX5DeggwjdJai9AfRsw8TXvQG6XtirgOuxN95S9QMxkQWT1ouKHAEWYdJYSzScTbwaoH9eCHm/nzSMiSExi0i9GgPJun9UdJtb7RjfM32EHHo0dgNpAtYhkklJrJhgt3s6JaBhGEge4BfY842FMYmP0YAXwV+i3FFj8JAitjm3YmfW2t9dsH9HvAm8BrwPPAs6XyfWoGTMBmbjsO4SLdjMr3uwhyevY7Zfu0KTImPxuQRmYxxGR9hdWAv5sR8C7Ae2EDyw8FdmPsWd2OiM54NfNK25bHAKDvF9ZG1qkvjUb582O7O/Mo2fqPpo1+0U7gZJZbtU5jt2bU0ns55Jyb34eUo2mJT82mMk+J+D5/9VzEHaWWIbTvU1mW9B7n2A/dbQxNNwjTgsYzmx52Yc5Yizpha7bs7yeZw9TfAVKlPvAzBnKAfyGGnZQ35phKYatdfWcu1H7gFaJM6xcVHgefId79+D/lkm7qM/M8j1lCOSPbCA2djInUU5fe1lGxyjrfYZ/cWJNs25JkQxUK8m+Id5X7k2UhagLtKINdOlFM9WE7BnJOUxZv0ux5lW1Yiud5FqduCYzQmDGfZ3Ox9rEkuo3yu5K9jDgNFIDxMOe8k7E452k6lGAfBRsqDUrswmEO5L+6sxu2cZJDdPSqzbJdK/crNyAJ3rJKUeQ6yXR6AXJ0Yny9RUkK5CvwmxgmyUTqAtwKRbYnUsJxMwXj4hnJH+ooEsl0ZkFzvAx+TOpaPRwNSoj6SBZJ7OTDZHpY6lovzA1OgSmnkJPqsAOXqBf4ydKWKJapJG/C9QOt+YQP/Z1aAcrUAt6PYa6XgmkC/HhWnv3o8F7B8CjZXMGMplztJ0nKA2unOhpKPe35WZQcOmZ00xfLHLcCfBFz/wdQ+Wf/TwKcpo4FFMpBiOBX4WgRGXmtLdHIE8l1uDV0GkjN3YNwvQqdW3K5jIpBvsO0rGUiOfBn4bCTrqFquGSMikfFc4EsykHxox9yki4VBjn8LjWUEFv41VAP5BjApIsWpFehuX0RyTgaulYFkywTiS12ww/FvIbKAgGIlh2ggVwPDI1OaLY5/C5ERtg9FRgzmcPbVvkjKxBrynhCRnDts38n9JAfGAD8g7FPmPmB7A7K+E7iMB2xfjZHa5ksbJhJ5yMpzfwNyPhS4jOtD/WqEflB4NeFfzHnU0/8pM1OAv9d4ni/jMEHLQh5Z93A47XMtRpF9Upo8YmeNDU3JQv6C3NKgcpWZn9FYMpj3CD+kzihMXniRA6cDBwMfUXsxaRiSyNxL+Iv1aVLf7FkVwZbn/Q5yPxSB3CulvtlysWPHzMekLd5NOaJ+uLixn0Q5orbstm053/H3s6TG2dABbHLokLUcdvqbCKwoeLqSJm5UkXG/em3bVQ42BwF/cHjORpLFBBMNstCxU88Z4FkzMVlxi4g8mMaFvajIkc/bNqvmHMfBZoHU2S8fAXocOuKBOrt483JWOB/R3eflWN9tmFubtXY8H3B47i6M46nwxH0OnbCXxtziR9qpS9bz+2c9ba235vD124e5v9HIVvok3M5plkut/TDD8TO+2GERnFV0xl5MtitfzMxwHfWIbYskLHZ4zyFgutQ7Pd8guVPim7i7xZ8HrPOsdD/NoF1WeK7jK8DnHesyHNhK8nORa6Xefphm99Abbfw5Kd93mscRugc4LoM2mYi/ZDq9VuY0JMnLshIdGmbCLLtNWC9BTdqEmY95HJlvyrA9bvZYz9+lrEuLbft6W7w6B8mYdrtN2J3RvPYCj0q3idqRE9MyDHPr0Fd9v5iyPtNtHwy0a7UAnX/kygS7E9K/Q+5N+cwh+L1jMjuHdviKx/puIH3kkXurBqzlaEu3UKYDz+Bnb/16j8r2VE7ytwC/91jv6z0MXLtsn2iXqiS0YDLApmE8xv3ch5IdxHjg5sVZR5jauJQu0kcemephHShKxt24OR7OtqNl/3//cQH1v2eAzYpLcDsA/YnUQfTnTMcReEm/L9gczFnATsyNx7wZbzcuttq6VEbwZbgd4p0ptRAVnsaP4+Ew4DMFyjGTDx6Qujo4Pi21ENhpSFGOh3nh6uB4idSjuRkKbMbN8TCkRairg+Nm20aiSVmEm1vGjABldXVwXCQ1aU5agRccFOa+gGV2cXB8gXgyIouEtGHuVjcaY6sHc3krVJI4OO60bdMmNRHjgLuoH07opghkrefgeNC2xTiphajmNOBJinE8zHNj4kgOjqvI1wNABMpFfDCCysURyXfpAMZ/kbpdJKEDE0mlh/wcD/Oi4uDYY2XsUHcLV44FToxQrimBbzgIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEII8f/4X35x5Dc8Bu6cAAAAAElFTkSuQmCC</pre>
</div>
<div created="20210321123311564" modified="20210925140847357" title="copincha/redes" tmap.id="540189f2-d99d-4322-80fd-82b6ad86b066">
<pre>&lt;div style=&quot;font-size:0.7em;text-align:center;margin:3em auto;&quot;&gt;
&lt;a href=&quot;https://t.me/copincha&quot; class=&quot;tc-btn-big&quot; &gt;
{{$:/core/images/telegram}}&lt;/a&gt;
&lt;a href=&quot;https://chat.whatsapp.com/DcpEPTEFLs1L6Gel8MAtW0&quot; class=&quot;tc-btn-big&quot;&gt;
{{$:/core/images/whatsapp}}&lt;/a&gt;
&lt;a href=&quot;https://facebook.com/copincha&quot; class=&quot;tc-btn-big-&quot;&gt;
{{$:/core/images/facebook}}&lt;/a&gt;
&lt;a href=&quot;https://www.instagram.com/c_o_p_i_n_c_h_a/&quot; class=&quot;tc-btn-big&quot;&gt;{{$:/core/images/instagram}}&lt;/a&gt;
&lt;a href=&quot;https://twitter.com/copincha1&quot; class=&quot;tc-btn-big&quot;&gt;
{{$:/core/images/twitter}}&lt;/a&gt;
&lt;/div&gt;</pre>
</div>
<div title="GettingStarted">
<pre>\define lingo-base() $:/language/ControlPanel/Basics/
Welcome to ~TiddlyWiki and the ~TiddlyWiki community
Before you start storing important information in ~TiddlyWiki it is vital to make sure that you can reliably save changes. See https://tiddlywiki.com/#GettingStarted for details
!! Set up this ~TiddlyWiki
&lt;div class=&quot;tc-control-panel&quot;&gt;
|&lt;$link to=&quot;$:/SiteTitle&quot;&gt;&lt;&lt;lingo Title/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/SiteTitle&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/SiteSubtitle&quot;&gt;&lt;&lt;lingo Subtitle/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=&quot;$:/SiteSubtitle&quot; default=&quot;&quot; tag=&quot;input&quot;/&gt; |
|&lt;$link to=&quot;$:/DefaultTiddlers&quot;&gt;&lt;&lt;lingo DefaultTiddlers/Prompt&gt;&gt;&lt;/$link&gt; |&lt;&lt;lingo DefaultTiddlers/TopHint&gt;&gt;&lt;br&gt; &lt;$edit tag=&quot;textarea&quot; tiddler=&quot;$:/DefaultTiddlers&quot;/&gt;&lt;br&gt;//&lt;&lt;lingo DefaultTiddlers/BottomHint&gt;&gt;// |
&lt;/div&gt;
See the [[control panel|$:/ControlPanel]] for more options.
</pre>
</div>
<div created="20210304163741217" creator="M0" modified="20210923173014534" modifier="M0" tags="glosario" title="Hackerspace" tmap.id="45ae7ea8-487e-4aae-973e-2ee87dd23a67" type="text/vnd.tiddlywiki">
<pre>Los hackerspaces son lugares físicos gestionados de forma comunitaria, donde las personas se reunen y comparten su interés por la tecnología, trabajan en sus proyectos y aprenden de los demás.</pre>
</div>
<div background-image="$:/background/lighthouse" created="20210530002611974" modified="20210530013537167" title="Hei">
<pre>Lorem ipsum dolor sit amet, consectetur &lt;&lt;link &quot;Home&quot;&gt;&gt; adipiscing elit. &lt;&lt;link &quot;A test&quot;&gt;&gt; nullam tristique iaculis convallis. Aliquam euismod libero id massa luctus, sed accumsan odio blandit. Duis faucibus condimentum placerat. Ut sed tellus id ex lobortis lacinia. Aenean accumsan dui nec bibendum convallis. Aliquam erat volutpat. Integer vitae nibh ac nibh ullamcorper ultricies at nec justo. Pellentesque arcu nisl, malesuada vel gravida ut, viverra ac mauris. Ut libero eros, convallis quis ultricies sit amet, vestibulum ut ex. Phasellus eget tempus diam, ac placerat eros. Maecenas at euismod erat. Phasellus a ex faucibus massa semper dignissim.
</pre>
</div>
<div created="20210925132331168" library="svg-icon" modified="20210925133323239" tags="$:/tags/Image Icons Images SVG" title="image/repo">
<pre>&lt;svg width=&quot;22pt&quot; height=&quot;22pt&quot; class=&quot;tc-image-repo tc-image-button&quot; viewBox=&quot;0 0 12 16&quot;&gt;&lt;path style=&quot;fill:#000000;&quot; d=&quot;M4 9H3V8h1v1zm0-3H3v1h1V6zm0-2H3v1h1V4zm0-2H3v1h1V2zm8-1v12c0 .55-.45 1-1 1H6v2l-1.5-1.5L3 16v-2H1c-.55 0-1-.45-1-1V1c0-.55.45-1 1-1h10c.55 0 1 .45 1 1zm-1 10H1v2h2v-1h3v1h5v-2zm0-10H2v9h9V1z&quot;/&gt;&lt;/svg&gt;</pre>
</div>
<div background-image="$:/background/lighthouse" created="20210530002840754" modified="20210530005909637" tags="$:/tags/ViewTemplate" title="New Tiddler">
<pre>&lt;style&gt;
body.tc-body {
&lt;$list filter=&quot;[title{!!background-image}is[image]]&quot;&gt;
background: url(
&lt;$list filter=&quot;[all[current]!has[_canonical_uri]]&quot;&gt;
&quot;&lt;$macrocall $name=&quot;datauri&quot; title={{!!background-image}} /&gt;&quot;
&lt;/$list&gt;
&lt;$list filter=&quot;[all[current]has[_canonical_uri]]&quot;&gt;
&quot;&lt;$view tiddler=&lt;&lt;currentTiddler&gt;&gt; field=&quot;_canonical_uri&quot; /&gt;&quot;
&lt;/$list&gt;
) no-repeat center center fixed;
background-attachment: {{!!background-image}};
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
&lt;/$list&gt;
}
&lt;/style&gt;</pre>
</div>
<div created="20210923230004822" modified="20210923230010742" tags="" title="New Tiddler 1">
<pre>iuhlihliu</pre>
</div>
<div title="Untitled">
<pre>1</pre>
</div>
<div title="Untitled 1" type="text/plain">
<pre>$:/core/ui/TopBar/menu</pre>
</div>
</div>
<!--~~ Library modules ~~-->
<div id="libraryModules" style="display:none;">
<script data-tiddler-library="yes" data-tiddler-title="$:/library/sjcl.js" data-tiddler-type="application/javascript" type="text/javascript">"use strict";var sjcl={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(a){this.toString=function(){return"CORRUPT: "+this.message};this.message=a},invalid:function(a){this.toString=function(){return"INVALID: "+this.message};this.message=a},bug:function(a){this.toString=function(){return"BUG: "+this.message};this.message=a},notReady:function(a){this.toString=function(){return"NOT READY: "+this.message};this.message=a}}};
sjcl.cipher.aes=function(a){this.s[0][0][0]||this.O();var b,c,d,e,f=this.s[0][4],g=this.s[1];b=a.length;var h=1;if(4!==b&&6!==b&&8!==b)throw new sjcl.exception.invalid("invalid aes key size");this.b=[d=a.slice(0),e=[]];for(a=b;a<4*b+28;a++){c=d[a-1];if(0===a%b||8===b&&4===a%b)c=f[c>>>24]<<24^f[c>>16&255]<<16^f[c>>8&255]<<8^f[c&255],0===a%b&&(c=c<<8^c>>>24^h<<24,h=h<<1^283*(h>>7));d[a]=d[a-b]^c}for(b=0;a;b++,a--)c=d[b&3?a:a-4],e[b]=4>=a||4>b?c:g[0][f[c>>>24]]^g[1][f[c>>16&255]]^g[2][f[c>>8&255]]^g[3][f[c&
255]]};
sjcl.cipher.aes.prototype={encrypt:function(a){return t(this,a,0)},decrypt:function(a){return t(this,a,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var a=this.s[0],b=this.s[1],c=a[4],d=b[4],e,f,g,h=[],k=[],l,n,m,p;for(e=0;0x100>e;e++)k[(h[e]=e<<1^283*(e>>7))^e]=e;for(f=g=0;!c[f];f^=l||1,g=k[g]||1)for(m=g^g<<1^g<<2^g<<3^g<<4,m=m>>8^m&255^99,c[f]=m,d[m]=f,n=h[e=h[l=h[f]]],p=0x1010101*n^0x10001*e^0x101*l^0x1010100*f,n=0x101*h[m]^0x1010100*m,e=0;4>e;e++)a[e][f]=n=n<<24^n>>>8,b[e][m]=p=p<<24^p>>>8;for(e=
0;5>e;e++)a[e]=a[e].slice(0),b[e]=b[e].slice(0)}};
function t(a,b,c){if(4!==b.length)throw new sjcl.exception.invalid("invalid aes block size");var d=a.b[c],e=b[0]^d[0],f=b[c?3:1]^d[1],g=b[2]^d[2];b=b[c?1:3]^d[3];var h,k,l,n=d.length/4-2,m,p=4,r=[0,0,0,0];h=a.s[c];a=h[0];var q=h[1],v=h[2],w=h[3],x=h[4];for(m=0;m<n;m++)h=a[e>>>24]^q[f>>16&255]^v[g>>8&255]^w[b&255]^d[p],k=a[f>>>24]^q[g>>16&255]^v[b>>8&255]^w[e&255]^d[p+1],l=a[g>>>24]^q[b>>16&255]^v[e>>8&255]^w[f&255]^d[p+2],b=a[b>>>24]^q[e>>16&255]^v[f>>8&255]^w[g&255]^d[p+3],p+=4,e=h,f=k,g=l;for(m=
0;4>m;m++)r[c?3&-m:m]=x[e>>>24]<<24^x[f>>16&255]<<16^x[g>>8&255]<<8^x[b&255]^d[p++],h=e,e=f,f=g,g=b,b=h;return r}
sjcl.bitArray={bitSlice:function(a,b,c){a=sjcl.bitArray.$(a.slice(b/32),32-(b&31)).slice(1);return void 0===c?a:sjcl.bitArray.clamp(a,c-b)},extract:function(a,b,c){var d=Math.floor(-b-c&31);return((b+c-1^b)&-32?a[b/32|0]<<32-d^a[b/32+1|0]>>>d:a[b/32|0]>>>d)&(1<<c)-1},concat:function(a,b){if(0===a.length||0===b.length)return a.concat(b);var c=a[a.length-1],d=sjcl.bitArray.getPartial(c);return 32===d?a.concat(b):sjcl.bitArray.$(b,d,c|0,a.slice(0,a.length-1))},bitLength:function(a){var b=a.length;return 0===
b?0:32*(b-1)+sjcl.bitArray.getPartial(a[b-1])},clamp:function(a,b){if(32*a.length<b)return a;a=a.slice(0,Math.ceil(b/32));var c=a.length;b=b&31;0<c&&b&&(a[c-1]=sjcl.bitArray.partial(b,a[c-1]&2147483648>>b-1,1));return a},partial:function(a,b,c){return 32===a?b:(c?b|0:b<<32-a)+0x10000000000*a},getPartial:function(a){return Math.round(a/0x10000000000)||32},equal:function(a,b){if(sjcl.bitArray.bitLength(a)!==sjcl.bitArray.bitLength(b))return!1;var c=0,d;for(d=0;d<a.length;d++)c|=a[d]^b[d];return 0===
c},$:function(a,b,c,d){var e;e=0;for(void 0===d&&(d=[]);32<=b;b-=32)d.push(c),c=0;if(0===b)return d.concat(a);for(e=0;e<a.length;e++)d.push(c|a[e]>>>b),c=a[e]<<32-b;e=a.length?a[a.length-1]:0;a=sjcl.bitArray.getPartial(e);d.push(sjcl.bitArray.partial(b+a&31,32<b+a?c:d.pop(),1));return d},i:function(a,b){return[a[0]^b[0],a[1]^b[1],a[2]^b[2],a[3]^b[3]]},byteswapM:function(a){var b,c;for(b=0;b<a.length;++b)c=a[b],a[b]=c>>>24|c>>>8&0xff00|(c&0xff00)<<8|c<<24;return a}};
sjcl.codec.utf8String={fromBits:function(a){var b="",c=sjcl.bitArray.bitLength(a),d,e;for(d=0;d<c/8;d++)0===(d&3)&&(e=a[d/4]),b+=String.fromCharCode(e>>>8>>>8>>>8),e<<=8;return decodeURIComponent(escape(b))},toBits:function(a){a=unescape(encodeURIComponent(a));var b=[],c,d=0;for(c=0;c<a.length;c++)d=d<<8|a.charCodeAt(c),3===(c&3)&&(b.push(d),d=0);c&3&&b.push(sjcl.bitArray.partial(8*(c&3),d));return b}};
sjcl.codec.hex={fromBits:function(a){var b="",c;for(c=0;c<a.length;c++)b+=((a[c]|0)+0xf00000000000).toString(16).substr(4);return b.substr(0,sjcl.bitArray.bitLength(a)/4)},toBits:function(a){var b,c=[],d;a=a.replace(/\s|0x/g,"");d=a.length;a=a+"00000000";for(b=0;b<a.length;b+=8)c.push(parseInt(a.substr(b,8),16)^0);return sjcl.bitArray.clamp(c,4*d)}};
sjcl.codec.base32={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",X:"0123456789ABCDEFGHIJKLMNOPQRSTUV",BITS:32,BASE:5,REMAINING:27,fromBits:function(a,b,c){var d=sjcl.codec.base32.BASE,e=sjcl.codec.base32.REMAINING,f="",g=0,h=sjcl.codec.base32.B,k=0,l=sjcl.bitArray.bitLength(a);c&&(h=sjcl.codec.base32.X);for(c=0;f.length*d<l;)f+=h.charAt((k^a[c]>>>g)>>>e),g<d?(k=a[c]<<d-g,g+=e,c++):(k<<=d,g-=d);for(;f.length&7&&!b;)f+="=";return f},toBits:function(a,b){a=a.replace(/\s|=/g,"").toUpperCase();var c=sjcl.codec.base32.BITS,
d=sjcl.codec.base32.BASE,e=sjcl.codec.base32.REMAINING,f=[],g,h=0,k=sjcl.codec.base32.B,l=0,n,m="base32";b&&(k=sjcl.codec.base32.X,m="base32hex");for(g=0;g<a.length;g++){n=k.indexOf(a.charAt(g));if(0>n){if(!b)try{return sjcl.codec.base32hex.toBits(a)}catch(p){}throw new sjcl.exception.invalid("this isn't "+m+"!");}h>e?(h-=e,f.push(l^n>>>h),l=n<<c-h):(h+=d,l^=n<<c-h)}h&56&&f.push(sjcl.bitArray.partial(h&56,l,1));return f}};
sjcl.codec.base32hex={fromBits:function(a,b){return sjcl.codec.base32.fromBits(a,b,1)},toBits:function(a){return sjcl.codec.base32.toBits(a,1)}};
sjcl.codec.base64={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(a,b,c){var d="",e=0,f=sjcl.codec.base64.B,g=0,h=sjcl.bitArray.bitLength(a);c&&(f=f.substr(0,62)+"-_");for(c=0;6*d.length<h;)d+=f.charAt((g^a[c]>>>e)>>>26),6>e?(g=a[c]<<6-e,e+=26,c++):(g<<=6,e-=6);for(;d.length&3&&!b;)d+="=";return d},toBits:function(a,b){a=a.replace(/\s|=/g,"");var c=[],d,e=0,f=sjcl.codec.base64.B,g=0,h;b&&(f=f.substr(0,62)+"-_");for(d=0;d<a.length;d++){h=f.indexOf(a.charAt(d));
if(0>h)throw new sjcl.exception.invalid("this isn't base64!");26<e?(e-=26,c.push(g^h>>>e),g=h<<32-e):(e+=6,g^=h<<32-e)}e&56&&c.push(sjcl.bitArray.partial(e&56,g,1));return c}};sjcl.codec.base64url={fromBits:function(a){return sjcl.codec.base64.fromBits(a,1,1)},toBits:function(a){return sjcl.codec.base64.toBits(a,1)}};sjcl.hash.sha256=function(a){this.b[0]||this.O();a?(this.F=a.F.slice(0),this.A=a.A.slice(0),this.l=a.l):this.reset()};sjcl.hash.sha256.hash=function(a){return(new sjcl.hash.sha256).update(a).finalize()};
sjcl.hash.sha256.prototype={blockSize:512,reset:function(){this.F=this.Y.slice(0);this.A=[];this.l=0;return this},update:function(a){"string"===typeof a&&(a=sjcl.codec.utf8String.toBits(a));var b,c=this.A=sjcl.bitArray.concat(this.A,a);b=this.l;a=this.l=b+sjcl.bitArray.bitLength(a);if(0x1fffffffffffff<a)throw new sjcl.exception.invalid("Cannot hash more than 2^53 - 1 bits");if("undefined"!==typeof Uint32Array){var d=new Uint32Array(c),e=0;for(b=512+b-(512+b&0x1ff);b<=a;b+=512)u(this,d.subarray(16*e,
16*(e+1))),e+=1;c.splice(0,16*e)}else for(b=512+b-(512+b&0x1ff);b<=a;b+=512)u(this,c.splice(0,16));return this},finalize:function(){var a,b=this.A,c=this.F,b=sjcl.bitArray.concat(b,[sjcl.bitArray.partial(1,1)]);for(a=b.length+2;a&15;a++)b.push(0);b.push(Math.floor(this.l/0x100000000));for(b.push(this.l|0);b.length;)u(this,b.splice(0,16));this.reset();return c},Y:[],b:[],O:function(){function a(a){return 0x100000000*(a-Math.floor(a))|0}for(var b=0,c=2,d,e;64>b;c++){e=!0;for(d=2;d*d<=c;d++)if(0===c%d){e=
!1;break}e&&(8>b&&(this.Y[b]=a(Math.pow(c,.5))),this.b[b]=a(Math.pow(c,1/3)),b++)}}};
function u(a,b){var c,d,e,f=a.F,g=a.b,h=f[0],k=f[1],l=f[2],n=f[3],m=f[4],p=f[5],r=f[6],q=f[7];for(c=0;64>c;c++)16>c?d=b[c]:(d=b[c+1&15],e=b[c+14&15],d=b[c&15]=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+b[c&15]+b[c+9&15]|0),d=d+q+(m>>>6^m>>>11^m>>>25^m<<26^m<<21^m<<7)+(r^m&(p^r))+g[c],q=r,r=p,p=m,m=n+d|0,n=l,l=k,k=h,h=d+(k&l^n&(k^l))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;f[0]=f[0]+h|0;f[1]=f[1]+k|0;f[2]=f[2]+l|0;f[3]=f[3]+n|0;f[4]=f[4]+m|0;f[5]=f[5]+p|0;f[6]=f[6]+r|0;f[7]=
f[7]+q|0}
sjcl.mode.ccm={name:"ccm",G:[],listenProgress:function(a){sjcl.mode.ccm.G.push(a)},unListenProgress:function(a){a=sjcl.mode.ccm.G.indexOf(a);-1<a&&sjcl.mode.ccm.G.splice(a,1)},fa:function(a){var b=sjcl.mode.ccm.G.slice(),c;for(c=0;c<b.length;c+=1)b[c](a)},encrypt:function(a,b,c,d,e){var f,g=b.slice(0),h=sjcl.bitArray,k=h.bitLength(c)/8,l=h.bitLength(g)/8;e=e||64;d=d||[];if(7>k)throw new sjcl.exception.invalid("ccm: iv must be at least 7 bytes");for(f=2;4>f&&l>>>8*f;f++);f<15-k&&(f=15-k);c=h.clamp(c,
8*(15-f));b=sjcl.mode.ccm.V(a,b,c,d,e,f);g=sjcl.mode.ccm.C(a,g,c,b,e,f);return h.concat(g.data,g.tag)},decrypt:function(a,b,c,d,e){e=e||64;d=d||[];var f=sjcl.bitArray,g=f.bitLength(c)/8,h=f.bitLength(b),k=f.clamp(b,h-e),l=f.bitSlice(b,h-e),h=(h-e)/8;if(7>g)throw new sjcl.exception.invalid("ccm: iv must be at least 7 bytes");for(b=2;4>b&&h>>>8*b;b++);b<15-g&&(b=15-g);c=f.clamp(c,8*(15-b));k=sjcl.mode.ccm.C(a,k,c,l,e,b);a=sjcl.mode.ccm.V(a,k.data,c,d,e,b);if(!f.equal(k.tag,a))throw new sjcl.exception.corrupt("ccm: tag doesn't match");
return k.data},na:function(a,b,c,d,e,f){var g=[],h=sjcl.bitArray,k=h.i;d=[h.partial(8,(b.length?64:0)|d-2<<2|f-1)];d=h.concat(d,c);d[3]|=e;d=a.encrypt(d);if(b.length)for(c=h.bitLength(b)/8,65279>=c?g=[h.partial(16,c)]:0xffffffff>=c&&(g=h.concat([h.partial(16,65534)],[c])),g=h.concat(g,b),b=0;b<g.length;b+=4)d=a.encrypt(k(d,g.slice(b,b+4).concat([0,0,0])));return d},V:function(a,b,c,d,e,f){var g=sjcl.bitArray,h=g.i;e/=8;if(e%2||4>e||16<e)throw new sjcl.exception.invalid("ccm: invalid tag length");
if(0xffffffff<d.length||0xffffffff<b.length)throw new sjcl.exception.bug("ccm: can't deal with 4GiB or more data");c=sjcl.mode.ccm.na(a,d,c,e,g.bitLength(b)/8,f);for(d=0;d<b.length;d+=4)c=a.encrypt(h(c,b.slice(d,d+4).concat([0,0,0])));return g.clamp(c,8*e)},C:function(a,b,c,d,e,f){var g,h=sjcl.bitArray;g=h.i;var k=b.length,l=h.bitLength(b),n=k/50,m=n;c=h.concat([h.partial(8,f-1)],c).concat([0,0,0]).slice(0,4);d=h.bitSlice(g(d,a.encrypt(c)),0,e);if(!k)return{tag:d,data:[]};for(g=0;g<k;g+=4)g>n&&(sjcl.mode.ccm.fa(g/
k),n+=m),c[3]++,e=a.encrypt(c),b[g]^=e[0],b[g+1]^=e[1],b[g+2]^=e[2],b[g+3]^=e[3];return{tag:d,data:h.clamp(b,l)}}};
sjcl.mode.ocb2={name:"ocb2",encrypt:function(a,b,c,d,e,f){if(128!==sjcl.bitArray.bitLength(c))throw new sjcl.exception.invalid("ocb iv must be 128 bits");var g,h=sjcl.mode.ocb2.S,k=sjcl.bitArray,l=k.i,n=[0,0,0,0];c=h(a.encrypt(c));var m,p=[];d=d||[];e=e||64;for(g=0;g+4<b.length;g+=4)m=b.slice(g,g+4),n=l(n,m),p=p.concat(l(c,a.encrypt(l(c,m)))),c=h(c);m=b.slice(g);b=k.bitLength(m);g=a.encrypt(l(c,[0,0,0,b]));m=k.clamp(l(m.concat([0,0,0]),g),b);n=l(n,l(m.concat([0,0,0]),g));n=a.encrypt(l(n,l(c,h(c))));
d.length&&(n=l(n,f?d:sjcl.mode.ocb2.pmac(a,d)));return p.concat(k.concat(m,k.clamp(n,e)))},decrypt:function(a,b,c,d,e,f){if(128!==sjcl.bitArray.bitLength(c))throw new sjcl.exception.invalid("ocb iv must be 128 bits");e=e||64;var g=sjcl.mode.ocb2.S,h=sjcl.bitArray,k=h.i,l=[0,0,0,0],n=g(a.encrypt(c)),m,p,r=sjcl.bitArray.bitLength(b)-e,q=[];d=d||[];for(c=0;c+4<r/32;c+=4)m=k(n,a.decrypt(k(n,b.slice(c,c+4)))),l=k(l,m),q=q.concat(m),n=g(n);p=r-32*c;m=a.encrypt(k(n,[0,0,0,p]));m=k(m,h.clamp(b.slice(c),p).concat([0,
0,0]));l=k(l,m);l=a.encrypt(k(l,k(n,g(n))));d.length&&(l=k(l,f?d:sjcl.mode.ocb2.pmac(a,d)));if(!h.equal(h.clamp(l,e),h.bitSlice(b,r)))throw new sjcl.exception.corrupt("ocb: tag doesn't match");return q.concat(h.clamp(m,p))},pmac:function(a,b){var c,d=sjcl.mode.ocb2.S,e=sjcl.bitArray,f=e.i,g=[0,0,0,0],h=a.encrypt([0,0,0,0]),h=f(h,d(d(h)));for(c=0;c+4<b.length;c+=4)h=d(h),g=f(g,a.encrypt(f(h,b.slice(c,c+4))));c=b.slice(c);128>e.bitLength(c)&&(h=f(h,d(h)),c=e.concat(c,[-2147483648,0,0,0]));g=f(g,c);
return a.encrypt(f(d(f(h,d(h))),g))},S:function(a){return[a[0]<<1^a[1]>>>31,a[1]<<1^a[2]>>>31,a[2]<<1^a[3]>>>31,a[3]<<1^135*(a[0]>>>31)]}};
sjcl.mode.gcm={name:"gcm",encrypt:function(a,b,c,d,e){var f=b.slice(0);b=sjcl.bitArray;d=d||[];a=sjcl.mode.gcm.C(!0,a,f,d,c,e||128);return b.concat(a.data,a.tag)},decrypt:function(a,b,c,d,e){var f=b.slice(0),g=sjcl.bitArray,h=g.bitLength(f);e=e||128;d=d||[];e<=h?(b=g.bitSlice(f,h-e),f=g.bitSlice(f,0,h-e)):(b=f,f=[]);a=sjcl.mode.gcm.C(!1,a,f,d,c,e);if(!g.equal(a.tag,b))throw new sjcl.exception.corrupt("gcm: tag doesn't match");return a.data},ka:function(a,b){var c,d,e,f,g,h=sjcl.bitArray.i;e=[0,0,
0,0];f=b.slice(0);for(c=0;128>c;c++){(d=0!==(a[Math.floor(c/32)]&1<<31-c%32))&&(e=h(e,f));g=0!==(f[3]&1);for(d=3;0<d;d--)f[d]=f[d]>>>1|(f[d-1]&1)<<31;f[0]>>>=1;g&&(f[0]^=-0x1f000000)}return e},j:function(a,b,c){var d,e=c.length;b=b.slice(0);for(d=0;d<e;d+=4)b[0]^=0xffffffff&c[d],b[1]^=0xffffffff&c[d+1],b[2]^=0xffffffff&c[d+2],b[3]^=0xffffffff&c[d+3],b=sjcl.mode.gcm.ka(b,a);return b},C:function(a,b,c,d,e,f){var g,h,k,l,n,m,p,r,q=sjcl.bitArray;m=c.length;p=q.bitLength(c);r=q.bitLength(d);h=q.bitLength(e);
g=b.encrypt([0,0,0,0]);96===h?(e=e.slice(0),e=q.concat(e,[1])):(e=sjcl.mode.gcm.j(g,[0,0,0,0],e),e=sjcl.mode.gcm.j(g,e,[0,0,Math.floor(h/0x100000000),h&0xffffffff]));h=sjcl.mode.gcm.j(g,[0,0,0,0],d);n=e.slice(0);d=h.slice(0);a||(d=sjcl.mode.gcm.j(g,h,c));for(l=0;l<m;l+=4)n[3]++,k=b.encrypt(n),c[l]^=k[0],c[l+1]^=k[1],c[l+2]^=k[2],c[l+3]^=k[3];c=q.clamp(c,p);a&&(d=sjcl.mode.gcm.j(g,h,c));a=[Math.floor(r/0x100000000),r&0xffffffff,Math.floor(p/0x100000000),p&0xffffffff];d=sjcl.mode.gcm.j(g,d,a);k=b.encrypt(e);
d[0]^=k[0];d[1]^=k[1];d[2]^=k[2];d[3]^=k[3];return{tag:q.bitSlice(d,0,f),data:c}}};sjcl.misc.hmac=function(a,b){this.W=b=b||sjcl.hash.sha256;var c=[[],[]],d,e=b.prototype.blockSize/32;this.w=[new b,new b];a.length>e&&(a=b.hash(a));for(d=0;d<e;d++)c[0][d]=a[d]^909522486,c[1][d]=a[d]^1549556828;this.w[0].update(c[0]);this.w[1].update(c[1]);this.R=new b(this.w[0])};
sjcl.misc.hmac.prototype.encrypt=sjcl.misc.hmac.prototype.mac=function(a){if(this.aa)throw new sjcl.exception.invalid("encrypt on already updated hmac called!");this.update(a);return this.digest(a)};sjcl.misc.hmac.prototype.reset=function(){this.R=new this.W(this.w[0]);this.aa=!1};sjcl.misc.hmac.prototype.update=function(a){this.aa=!0;this.R.update(a)};sjcl.misc.hmac.prototype.digest=function(){var a=this.R.finalize(),a=(new this.W(this.w[1])).update(a).finalize();this.reset();return a};
sjcl.misc.pbkdf2=function(a,b,c,d,e){c=c||1E4;if(0>d||0>c)throw new sjcl.exception.invalid("invalid params to pbkdf2");"string"===typeof a&&(a=sjcl.codec.utf8String.toBits(a));"string"===typeof b&&(b=sjcl.codec.utf8String.toBits(b));e=e||sjcl.misc.hmac;a=new e(a);var f,g,h,k,l=[],n=sjcl.bitArray;for(k=1;32*l.length<(d||1);k++){e=f=a.encrypt(n.concat(b,[k]));for(g=1;g<c;g++)for(f=a.encrypt(f),h=0;h<f.length;h++)e[h]^=f[h];l=l.concat(e)}d&&(l=n.clamp(l,d));return l};
sjcl.prng=function(a){this.c=[new sjcl.hash.sha256];this.m=[0];this.P=0;this.H={};this.N=0;this.U={};this.Z=this.f=this.o=this.ha=0;this.b=[0,0,0,0,0,0,0,0];this.h=[0,0,0,0];this.L=void 0;this.M=a;this.D=!1;this.K={progress:{},seeded:{}};this.u=this.ga=0;this.I=1;this.J=2;this.ca=0x10000;this.T=[0,48,64,96,128,192,0x100,384,512,768,1024];this.da=3E4;this.ba=80};
sjcl.prng.prototype={randomWords:function(a,b){var c=[],d;d=this.isReady(b);var e;if(d===this.u)throw new sjcl.exception.notReady("generator isn't seeded");if(d&this.J){d=!(d&this.I);e=[];var f=0,g;this.Z=e[0]=(new Date).valueOf()+this.da;for(g=0;16>g;g++)e.push(0x100000000*Math.random()|0);for(g=0;g<this.c.length&&(e=e.concat(this.c[g].finalize()),f+=this.m[g],this.m[g]=0,d||!(this.P&1<<g));g++);this.P>=1<<this.c.length&&(this.c.push(new sjcl.hash.sha256),this.m.push(0));this.f-=f;f>this.o&&(this.o=
f);this.P++;this.b=sjcl.hash.sha256.hash(this.b.concat(e));this.L=new sjcl.cipher.aes(this.b);for(d=0;4>d&&(this.h[d]=this.h[d]+1|0,!this.h[d]);d++);}for(d=0;d<a;d+=4)0===(d+1)%this.ca&&y(this),e=z(this),c.push(e[0],e[1],e[2],e[3]);y(this);return c.slice(0,a)},setDefaultParanoia:function(a,b){if(0===a&&"Setting paranoia=0 will ruin your security; use it only for testing"!==b)throw new sjcl.exception.invalid("Setting paranoia=0 will ruin your security; use it only for testing");this.M=a},addEntropy:function(a,
b,c){c=c||"user";var d,e,f=(new Date).valueOf(),g=this.H[c],h=this.isReady(),k=0;d=this.U[c];void 0===d&&(d=this.U[c]=this.ha++);void 0===g&&(g=this.H[c]=0);this.H[c]=(this.H[c]+1)%this.c.length;switch(typeof a){case "number":void 0===b&&(b=1);this.c[g].update([d,this.N++,1,b,f,1,a|0]);break;case "object":c=Object.prototype.toString.call(a);if("[object Uint32Array]"===c){e=[];for(c=0;c<a.length;c++)e.push(a[c]);a=e}else for("[object Array]"!==c&&(k=1),c=0;c<a.length&&!k;c++)"number"!==typeof a[c]&&
(k=1);if(!k){if(void 0===b)for(c=b=0;c<a.length;c++)for(e=a[c];0<e;)b++,e=e>>>1;this.c[g].update([d,this.N++,2,b,f,a.length].concat(a))}break;case "string":void 0===b&&(b=a.length);this.c[g].update([d,this.N++,3,b,f,a.length]);this.c[g].update(a);break;default:k=1}if(k)throw new sjcl.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[g]+=b;this.f+=b;h===this.u&&(this.isReady()!==this.u&&A("seeded",Math.max(this.o,this.f)),A("progress",this.getProgress()))},
isReady:function(a){a=this.T[void 0!==a?a:this.M];return this.o&&this.o>=a?this.m[0]>this.ba&&(new Date).valueOf()>this.Z?this.J|this.I:this.I:this.f>=a?this.J|this.u:this.u},getProgress:function(a){a=this.T[a?a:this.M];return this.o>=a?1:this.f>a?1:this.f/a},startCollectors:function(){if(!this.D){this.a={loadTimeCollector:B(this,this.ma),mouseCollector:B(this,this.oa),keyboardCollector:B(this,this.la),accelerometerCollector:B(this,this.ea),touchCollector:B(this,this.qa)};if(window.addEventListener)window.addEventListener("load",
this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new sjcl.exception.bug("can't attach event");
this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",
this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(a,b){this.K[a][this.ga++]=b},removeEventListener:function(a,b){var c,d,e=this.K[a],f=[];for(d in e)e.hasOwnProperty(d)&&e[d]===b&&f.push(d);for(c=0;c<f.length;c++)d=f[c],delete e[d]},la:function(){C(this,1)},oa:function(a){var b,c;try{b=a.x||a.clientX||a.offsetX||0,c=a.y||a.clientY||a.offsetY||0}catch(d){c=b=0}0!=b&&0!=c&&this.addEntropy([b,c],2,"mouse");C(this,0)},qa:function(a){a=
a.touches[0]||a.changedTouches[0];this.addEntropy([a.pageX||a.clientX,a.pageY||a.clientY],1,"touch");C(this,0)},ma:function(){C(this,2)},ea:function(a){a=a.accelerationIncludingGravity.x||a.accelerationIncludingGravity.y||a.accelerationIncludingGravity.z;if(window.orientation){var b=window.orientation;"number"===typeof b&&this.addEntropy(b,1,"accelerometer")}a&&this.addEntropy(a,2,"accelerometer");C(this,0)}};
function A(a,b){var c,d=sjcl.random.K[a],e=[];for(c in d)d.hasOwnProperty(c)&&e.push(d[c]);for(c=0;c<e.length;c++)e[c](b)}function C(a,b){"undefined"!==typeof window&&window.performance&&"function"===typeof window.performance.now?a.addEntropy(window.performance.now(),b,"loadtime"):a.addEntropy((new Date).valueOf(),b,"loadtime")}function y(a){a.b=z(a).concat(z(a));a.L=new sjcl.cipher.aes(a.b)}function z(a){for(var b=0;4>b&&(a.h[b]=a.h[b]+1|0,!a.h[b]);b++);return a.L.encrypt(a.h)}
function B(a,b){return function(){b.apply(a,arguments)}}sjcl.random=new sjcl.prng(6);
a:try{var D,E,F,G;if(G="undefined"!==typeof module&&module.exports){var H;try{H=require("crypto")}catch(a){H=null}G=E=H}if(G&&E.randomBytes)D=E.randomBytes(128),D=new Uint32Array((new Uint8Array(D)).buffer),sjcl.random.addEntropy(D,1024,"crypto['randomBytes']");else if("undefined"!==typeof window&&"undefined"!==typeof Uint32Array){F=new Uint32Array(32);if(window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(F);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(F);
else break a;sjcl.random.addEntropy(F,1024,"crypto['getRandomValues']")}}catch(a){"undefined"!==typeof window&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(a))}
sjcl.json={defaults:{v:1,iter:1E4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(a,b,c,d){c=c||{};d=d||{};var e=sjcl.json,f=e.g({iv:sjcl.random.randomWords(4,0)},e.defaults),g;e.g(f,c);c=f.adata;"string"===typeof f.salt&&(f.salt=sjcl.codec.base64.toBits(f.salt));"string"===typeof f.iv&&(f.iv=sjcl.codec.base64.toBits(f.iv));if(!sjcl.mode[f.mode]||!sjcl.cipher[f.cipher]||"string"===typeof a&&100>=f.iter||64!==f.ts&&96!==f.ts&&128!==f.ts||128!==f.ks&&192!==f.ks&&0x100!==f.ks||2>f.iv.length||
4<f.iv.length)throw new sjcl.exception.invalid("json encrypt: invalid parameters");"string"===typeof a?(g=sjcl.misc.cachedPbkdf2(a,f),a=g.key.slice(0,f.ks/32),f.salt=g.salt):sjcl.ecc&&a instanceof sjcl.ecc.elGamal.publicKey&&(g=a.kem(),f.kemtag=g.tag,a=g.key.slice(0,f.ks/32));"string"===typeof b&&(b=sjcl.codec.utf8String.toBits(b));"string"===typeof c&&(f.adata=c=sjcl.codec.utf8String.toBits(c));g=new sjcl.cipher[f.cipher](a);e.g(d,f);d.key=a;f.ct="ccm"===f.mode&&sjcl.arrayBuffer&&sjcl.arrayBuffer.ccm&&
b instanceof ArrayBuffer?sjcl.arrayBuffer.ccm.encrypt(g,b,f.iv,c,f.ts):sjcl.mode[f.mode].encrypt(g,b,f.iv,c,f.ts);return f},encrypt:function(a,b,c,d){var e=sjcl.json,f=e.ja.apply(e,arguments);return e.encode(f)},ia:function(a,b,c,d){c=c||{};d=d||{};var e=sjcl.json;b=e.g(e.g(e.g({},e.defaults),b),c,!0);var f,g;f=b.adata;"string"===typeof b.salt&&(b.salt=sjcl.codec.base64.toBits(b.salt));"string"===typeof b.iv&&(b.iv=sjcl.codec.base64.toBits(b.iv));if(!sjcl.mode[b.mode]||!sjcl.cipher[b.cipher]||"string"===
typeof a&&100>=b.iter||64!==b.ts&&96!==b.ts&&128!==b.ts||128!==b.ks&&192!==b.ks&&0x100!==b.ks||!b.iv||2>b.iv.length||4<b.iv.length)throw new sjcl.exception.invalid("json decrypt: invalid parameters");"string"===typeof a?(g=sjcl.misc.cachedPbkdf2(a,b),a=g.key.slice(0,b.ks/32),b.salt=g.salt):sjcl.ecc&&a instanceof sjcl.ecc.elGamal.secretKey&&(a=a.unkem(sjcl.codec.base64.toBits(b.kemtag)).slice(0,b.ks/32));"string"===typeof f&&(f=sjcl.codec.utf8String.toBits(f));g=new sjcl.cipher[b.cipher](a);f="ccm"===
b.mode&&sjcl.arrayBuffer&&sjcl.arrayBuffer.ccm&&b.ct instanceof ArrayBuffer?sjcl.arrayBuffer.ccm.decrypt(g,b.ct,b.iv,b.tag,f,b.ts):sjcl.mode[b.mode].decrypt(g,b.ct,b.iv,f,b.ts);e.g(d,b);d.key=a;return 1===c.raw?f:sjcl.codec.utf8String.fromBits(f)},decrypt:function(a,b,c,d){var e=sjcl.json;return e.ia(a,e.decode(b),c,d)},encode:function(a){var b,c="{",d="";for(b in a)if(a.hasOwnProperty(b)){if(!b.match(/^[a-z0-9]+$/i))throw new sjcl.exception.invalid("json encode: invalid property name");c+=d+'"'+
b+'":';d=",";switch(typeof a[b]){case "number":case "boolean":c+=a[b];break;case "string":c+='"'+escape(a[b])+'"';break;case "object":c+='"'+sjcl.codec.base64.fromBits(a[b],0)+'"';break;default:throw new sjcl.exception.bug("json encode: unsupported type");}}return c+"}"},decode:function(a){a=a.replace(/\s/g,"");if(!a.match(/^\{.*\}$/))throw new sjcl.exception.invalid("json decode: this isn't json!");a=a.replace(/^\{|\}$/g,"").split(/,/);var b={},c,d;for(c=0;c<a.length;c++){if(!(d=a[c].match(/^\s*(?:(["']?)([a-z][a-z0-9]*)\1)\s*:\s*(?:(-?\d+)|"([a-z0-9+\/%*_.@=\-]*)"|(true|false))$/i)))throw new sjcl.exception.invalid("json decode: this isn't json!");
null!=d[3]?b[d[2]]=parseInt(d[3],10):null!=d[4]?b[d[2]]=d[2].match(/^(ct|adata|salt|iv)$/)?sjcl.codec.base64.toBits(d[4]):unescape(d[4]):null!=d[5]&&(b[d[2]]="true"===d[5])}return b},g:function(a,b,c){void 0===a&&(a={});if(void 0===b)return a;for(var d in b)if(b.hasOwnProperty(d)){if(c&&void 0!==a[d]&&a[d]!==b[d])throw new sjcl.exception.invalid("required parameter overridden");a[d]=b[d]}return a},sa:function(a,b){var c={},d;for(d in a)a.hasOwnProperty(d)&&a[d]!==b[d]&&(c[d]=a[d]);return c},ra:function(a,
b){var c={},d;for(d=0;d<b.length;d++)void 0!==a[b[d]]&&(c[b[d]]=a[b[d]]);return c}};sjcl.encrypt=sjcl.json.encrypt;sjcl.decrypt=sjcl.json.decrypt;sjcl.misc.pa={};sjcl.misc.cachedPbkdf2=function(a,b){var c=sjcl.misc.pa,d;b=b||{};d=b.iter||1E3;c=c[a]=c[a]||{};d=c[d]=c[d]||{firstSalt:b.salt&&b.salt.length?b.salt.slice(0):sjcl.random.randomWords(2,0)};c=void 0===b.salt?d.firstSalt:b.salt;d[c]=d[c]||sjcl.misc.pbkdf2(a,c,b.iter);return{key:d[c].slice(0),salt:c.slice(0)}};
"undefined"!==typeof module&&module.exports&&(module.exports=sjcl);"function"===typeof define&&define([],function(){return sjcl});
</script>
</div>
<!--~~ Boot kernel prologue ~~-->
<div id="bootKernelPrefix" style="display:none;">
<script data-tiddler-title="$:/boot/bootprefix.js" data-tiddler-type="application/javascript" type="text/javascript">/*\
title: $:/boot/bootprefix.js
type: application/javascript
This file sets up the globals that need to be available when JavaScript modules are executed in the browser. The overall sequence is:
# BootPrefix.js
# <module definitions>
# Boot.js
See Boot.js for further details of the boot process.
\*/
var _bootprefix = (function($tw) {
"use strict";
$tw = $tw || Object.create(null);
$tw.boot = $tw.boot || Object.create(null);
// Detect platforms
if(!("browser" in $tw)) {
$tw.browser = typeof(window) !== "undefined" ? {} : null;
}
if(!("node" in $tw)) {
$tw.node = typeof(process) === "object" ? {} : null;
}
if(!("nodeWebKit" in $tw)) {
$tw.nodeWebKit = $tw.node && global.window && global.window.nwDispatcher ? {} : null;
}
// Set default boot tasks
$tw.boot.tasks = {
trapErrors: !!($tw.browser && !$tw.node),
readBrowserTiddlers: !!($tw.browser && !$tw.node)
};
/*
Information about each module is kept in an object with these members:
moduleType: type of module
definition: object, function or string defining the module; see below
exports: exports of the module, filled in after execution
The `definition` can be of several types:
* An object can be used to directly specify the exports of the module
* A function with the arguments `module,require,exports` that returns `exports`
* A string function body with the same arguments
Each moduleInfo object is stored in two hashmaps: $tw.modules.titles and $tw.modules.types. The first is indexed by title and the second is indexed by type and then title
*/
$tw.modules = {
titles: {}, // hashmap by module name of moduleInfo
types: {} // hashmap by module type and then name of moduleInfo
};
/*
Define a JavaScript tiddler module for later execution
moduleName: name of module being defined
moduleType: type of module
definition: module definition; see discussion above
*/
$tw.modules.define = function(moduleName,moduleType,definition) {
// Create the moduleInfo
var moduleInfo = {
moduleType: moduleType,
definition: definition,
exports: undefined
};
// If the definition is already an object we can use it as the exports
if(typeof moduleInfo.definition === "object") {
moduleInfo.exports = definition;
}
// Store the module in the titles hashmap
if(Object.prototype.hasOwnProperty.call($tw.modules.titles,moduleName)) {
console.log("Warning: Redefined module - " + moduleName);
}
$tw.modules.titles[moduleName] = moduleInfo;
// Store the module in the types hashmap
if(!Object.prototype.hasOwnProperty.call($tw.modules.types,moduleType)) {
$tw.modules.types[moduleType] = {};
}
if(Object.prototype.hasOwnProperty.call($tw.modules.types[moduleType],moduleName)) {
console.log("Warning: Redefined module - " + moduleName);
}
$tw.modules.types[moduleType][moduleName] = moduleInfo;
};
/*
External JavaScript can populate this array before calling boot.js in order to preload tiddlers
*/
$tw.preloadTiddlers = $tw.preloadTiddlers || [];
/*
Convenience function for pushing a tiddler onto the preloading array
*/
$tw.preloadTiddler = function(fields) {
$tw.preloadTiddlers.push(fields);
};
/*
Convenience function for pushing an array of tiddlers onto the preloading array
*/
$tw.preloadTiddlerArray = function(fieldsArray) {
$tw.preloadTiddlers.push.apply($tw.preloadTiddlers,fieldsArray);
};
return $tw;
});
if(typeof(exports) === "undefined") {
// Set up $tw global for the browser
window.$tw = _bootprefix(window.$tw);
} else {
// Export functionality as a module
exports.bootprefix = _bootprefix;
}
</script>
</div>
<!--~~ Boot kernel ~~-->
<div id="bootKernel" style="display:none;">
<script data-tiddler-title="$:/boot/boot.js" data-tiddler-type="application/javascript" type="text/javascript">/*\
title: $:/boot/boot.js
type: application/javascript
The main boot kernel for TiddlyWiki. This single file creates a barebones TW environment that is just sufficient to bootstrap the modules containing the main logic of the application.
On the server this file is executed directly to boot TiddlyWiki. In the browser, this file is packed into a single HTML file.
\*/
var _boot = (function($tw) {
/*jslint node: true, browser: true */
/*global modules: false, $tw: false */
"use strict";
// Include bootprefix if we're not given module data
if(!$tw) {
$tw = require("./bootprefix.js").bootprefix();
}
$tw.utils = $tw.utils || Object.create(null);
/////////////////////////// Standard node.js libraries
var fs, path, vm;
if($tw.node) {
fs = require("fs");
path = require("path");
vm = require("vm");
}
/////////////////////////// Utility functions
$tw.boot.log = function(str) {
$tw.boot.logMessages = $tw.boot.logMessages || [];
$tw.boot.logMessages.push(str);
}
/*
Check if an object has a property
*/
$tw.utils.hop = function(object,property) {
return object ? Object.prototype.hasOwnProperty.call(object,property) : false;
};
/*
Determine if a value is an array
*/
$tw.utils.isArray = function(value) {
return Object.prototype.toString.call(value) == "[object Array]";
};
/*
Check if an array is equal by value and by reference.
*/
$tw.utils.isArrayEqual = function(array1,array2) {
if(array1 === array2) {
return true;
}
array1 = array1 || [];
array2 = array2 || [];
if(array1.length !== array2.length) {
return false;
}
return array1.every(function(value,index) {
return value === array2[index];
});
};
/*
Push entries onto an array, removing them first if they already exist in the array
array: array to modify (assumed to be free of duplicates)
value: a single value to push or an array of values to push
*/
$tw.utils.pushTop = function(array,value) {
var t,p;
if($tw.utils.isArray(value)) {
// Remove any array entries that are duplicated in the new values
if(value.length !== 0) {
if(array.length !== 0) {
if(value.length < array.length) {
for(t=0; t<value.length; t++) {
p = array.indexOf(value[t]);
if(p !== -1) {
array.splice(p,1);
}
}
} else {
for(t=array.length-1; t>=0; t--) {
p = value.indexOf(array[t]);
if(p !== -1) {
array.splice(t,1);
}
}
}
}
// Push the values on top of the main array
array.push.apply(array,value);
}
} else {
p = array.indexOf(value);
if(p !== -1) {
array.splice(p,1);
}
array.push(value);
}
return array;
};
/*
Determine if a value is a date
*/
$tw.utils.isDate = function(value) {
return Object.prototype.toString.call(value) === "[object Date]";
};
/*
Iterate through all the own properties of an object or array. Callback is invoked with (element,title,object)
*/
$tw.utils.each = function(object,callback) {
var next,f,length;
if(object) {
if(Object.prototype.toString.call(object) == "[object Array]") {
for (f=0, length=object.length; f<length; f++) {
next = callback(object[f],f,object);
if(next === false) {
break;
}
}
} else {
var keys = Object.keys(object);
for (f=0, length=keys.length; f<length; f++) {
var key = keys[f];
next = callback(object[key],key,object);
if(next === false) {
break;
}
}
}
}
};
/*
Helper for making DOM elements
tag: tag name
options: see below
Options include:
namespace: defaults to http://www.w3.org/1999/xhtml
attributes: hashmap of attribute values
style: hashmap of styles
text: text to add as a child node
children: array of further child nodes
innerHTML: optional HTML for element
class: class name(s)
document: defaults to current document
eventListeners: array of event listeners (this option won't work until $tw.utils.addEventListeners() has been loaded)
*/
$tw.utils.domMaker = function(tag,options) {
var doc = options.document || document;
var element = doc.createElementNS(options.namespace || "http://www.w3.org/1999/xhtml",tag);
if(options["class"]) {
element.className = options["class"];
}
if(options.text) {
element.appendChild(doc.createTextNode(options.text));
}
$tw.utils.each(options.children,function(child) {
element.appendChild(child);
});
if(options.innerHTML) {
element.innerHTML = options.innerHTML;
}
$tw.utils.each(options.attributes,function(attribute,name) {
element.setAttribute(name,attribute);
});
$tw.utils.each(options.style,function(value,name) {
element.style[name] = value;
});
if(options.eventListeners) {
$tw.utils.addEventListeners(element,options.eventListeners);
}
return element;
};
/*
Display an error and exit
*/
$tw.utils.error = function(err) {
// Prepare the error message
var errHeading = ( $tw.language == undefined ? "Internal JavaScript Error" : $tw.language.getString("InternalJavaScriptError/Title") ),
promptMsg = ( $tw.language == undefined ? "Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser" : $tw.language.getString("InternalJavaScriptError/Hint") );
// Log the error to the console
console.error($tw.node ? "\x1b[1;31m" + err + "\x1b[0m" : err);
if($tw.browser && !$tw.node) {
// Display an error message to the user
var dm = $tw.utils.domMaker,
heading = dm("h1",{text: errHeading}),
prompt = dm("div",{text: promptMsg, "class": "tc-error-prompt"}),
message = dm("div",{text: err, "class":"tc-error-message"}),
button = dm("div",{children: [dm("button",{text: ( $tw.language == undefined ? "close" : $tw.language.getString("Buttons/Close/Caption") )})], "class": "tc-error-prompt"}),
form = dm("form",{children: [heading,prompt,message,button], "class": "tc-error-form"});
document.body.insertBefore(form,document.body.firstChild);
form.addEventListener("submit",function(event) {
document.body.removeChild(form);
event.preventDefault();
return false;
},true);
return null;
} else if(!$tw.browser) {
// Exit if we're under node.js
process.exit(1);
}
};
/*
Use our custom error handler if we're in the browser
*/
if($tw.boot.tasks.trapErrors) {
window.onerror = function(errorMsg,url,lineNumber) {
$tw.utils.error(errorMsg);
return false;
};
}
/*
Extend an object with the properties from a list of source objects
*/
$tw.utils.extend = function(object /*, sourceObjectList */) {
$tw.utils.each(Array.prototype.slice.call(arguments,1),function(source) {
if(source) {
for (var p in source) {
object[p] = source[p];
}
}
});
return object;
};
/*
Fill in any null or undefined properties of an object with the properties from a list of source objects. Each property that is an object is called recursively
*/
$tw.utils.deepDefaults = function(object /*, sourceObjectList */) {
$tw.utils.each(Array.prototype.slice.call(arguments,1),function(source) {
if(source) {
for (var p in source) {
if(object[p] === null || object[p] === undefined) {
object[p] = source[p];
}
if(typeof object[p] === "object" && typeof source[p] === "object") {
$tw.utils.deepDefaults(object[p],source[p]);
}
}
}
});
return object;
};
/*
Convert "&amp;" to &, "&nbsp;" to nbsp, "&lt;" to <, "&gt;" to > and "&quot;" to "
*/
$tw.utils.htmlDecode = function(s) {
return s.toString().replace(/&lt;/mg,"<").replace(/&nbsp;/mg,"\xA0").replace(/&gt;/mg,">").replace(/&quot;/mg,"\"").replace(/&amp;/mg,"&");
};
/*
Get the browser location.hash. We don't use location.hash because of the way that Firefox auto-urldecodes it (see http://stackoverflow.com/questions/1703552/encoding-of-window-location-hash)
*/
$tw.utils.getLocationHash = function() {
var parts = window.location.href.split('#');
return "#" + (parts.length > 1 ? parts[1] : "");
};
/*
Pad a string to a given length with "0"s. Length defaults to 2
*/
$tw.utils.pad = function(value,length) {
length = length || 2;
var s = value.toString();
if(s.length < length) {
s = "000000000000000000000000000".substr(0,length - s.length) + s;
}
return s;
};
// Convert a date into UTC YYYYMMDDHHMMSSmmm format
$tw.utils.stringifyDate = function(value) {
return value.getUTCFullYear() +
$tw.utils.pad(value.getUTCMonth() + 1) +
$tw.utils.pad(value.getUTCDate()) +
$tw.utils.pad(value.getUTCHours()) +
$tw.utils.pad(value.getUTCMinutes()) +
$tw.utils.pad(value.getUTCSeconds()) +
$tw.utils.pad(value.getUTCMilliseconds(),3);
};
// Parse a date from a UTC YYYYMMDDHHMMSSmmm format string
$tw.utils.parseDate = function(value) {
if(typeof value === "string") {
return new Date(Date.UTC(parseInt(value.substr(0,4),10),
parseInt(value.substr(4,2),10)-1,
parseInt(value.substr(6,2),10),
parseInt(value.substr(8,2)||"00",10),
parseInt(value.substr(10,2)||"00",10),
parseInt(value.substr(12,2)||"00",10),
parseInt(value.substr(14,3)||"000",10)));
} else if($tw.utils.isDate(value)) {
return value;
} else {
return null;
}
};
// Stringify an array of tiddler titles into a list string
$tw.utils.stringifyList = function(value) {
if($tw.utils.isArray(value)) {
var result = new Array(value.length);
for(var t=0, l=value.length; t<l; t++) {
var entry = value[t] || "";
if(entry.indexOf(" ") !== -1) {
result[t] = "[[" + entry + "]]";
} else {
result[t] = entry;
}
}
return result.join(" ");
} else {
return value || "";
}
};
// Parse a string array from a bracketted list. For example "OneTiddler [[Another Tiddler]] LastOne"
$tw.utils.parseStringArray = function(value, allowDuplicate) {
if(typeof value === "string") {
var memberRegExp = /(?:^|[^\S\xA0])(?:\[\[(.*?)\]\])(?=[^\S\xA0]|$)|([\S\xA0]+)/mg,
results = [], names = {},
match;
do {
match = memberRegExp.exec(value);
if(match) {
var item = match[1] || match[2];
if(item !== undefined && (!$tw.utils.hop(names,item) || allowDuplicate)) {
results.push(item);
names[item] = true;
}
}
} while(match);
return results;
} else if($tw.utils.isArray(value)) {
return value;
} else {
return null;
}
};
// Parse a block of name:value fields. The `fields` object is used as the basis for the return value
$tw.utils.parseFields = function(text,fields) {
fields = fields || Object.create(null);
text.split(/\r?\n/mg).forEach(function(line) {
if(line.charAt(0) !== "#") {
var p = line.indexOf(":");
if(p !== -1) {
var field = line.substr(0, p).trim(),
value = line.substr(p+1).trim();
if(field) {
fields[field] = value;
}
}
}
});
return fields;
};
/*
Resolves a source filepath delimited with `/` relative to a specified absolute root filepath.
In relative paths, the special folder name `..` refers to immediate parent directory, and the
name `.` refers to the current directory
*/
$tw.utils.resolvePath = function(sourcepath,rootpath) {
// If the source path starts with ./ or ../ then it is relative to the root
if(sourcepath.substr(0,2) === "./" || sourcepath.substr(0,3) === "../" ) {
var src = sourcepath.split("/"),
root = rootpath.split("/");
// Remove the filename part of the root
root.splice(root.length-1,1);
// Process the source path bit by bit onto the end of the root path
while(src.length > 0) {
var c = src.shift();
if(c === "..") { // Slice off the last root entry for a double dot
if(root.length > 0) {
root.splice(root.length-1,1);
}
} else if(c !== ".") { // Ignore dots
root.push(c); // Copy other elements across
}
}
return root.join("/");
} else {
// If it isn't relative, just return the path
if(rootpath) {
var root = rootpath.split("/");
// Remove the filename part of the root
root.splice(root.length - 1, 1);
return root.join("/") + "/" + sourcepath;
} else {
return sourcepath;
}
}
};
/*
Parse a semantic version string into its constituent parts -- see https://semver.org
*/
$tw.utils.parseVersion = function(version) {
var match = /^v?((\d+)\.(\d+)\.(\d+))(?:-([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?(?:\+([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?$/.exec(version);
if(match) {
return {
version: match[1],
major: parseInt(match[2],10),
minor: parseInt(match[3],10),
patch: parseInt(match[4],10),
prerelease: match[5],
build: match[6]
};
} else {
return null;
}
};
/*
Returns +1 if the version string A is greater than the version string B, 0 if they are the same, and +1 if B is greater than A.
Missing or malformed version strings are parsed as 0.0.0
*/
$tw.utils.compareVersions = function(versionStringA,versionStringB) {
var defaultVersion = {
major: 0,
minor: 0,
patch: 0
},
versionA = $tw.utils.parseVersion(versionStringA) || defaultVersion,
versionB = $tw.utils.parseVersion(versionStringB) || defaultVersion,
diff = [
versionA.major - versionB.major,
versionA.minor - versionB.minor,
versionA.patch - versionB.patch
];
if((diff[0] > 0) || (diff[0] === 0 && diff[1] > 0) || (diff[0] === 0 & diff[1] === 0 & diff[2] > 0)) {
return +1;
} else if((diff[0] < 0) || (diff[0] === 0 && diff[1] < 0) || (diff[0] === 0 & diff[1] === 0 & diff[2] < 0)) {
return -1;
} else {
return 0;
}
};
/*
Returns true if the version string A is greater than the version string B. Returns true if the versions are the same
*/
$tw.utils.checkVersions = function(versionStringA,versionStringB) {
return $tw.utils.compareVersions(versionStringA,versionStringB) !== -1;
};
/*
Register file type information
options: {flags: flags,deserializerType: deserializerType}
flags:"image" for image types
deserializerType: defaults to type if not specified
*/
$tw.utils.registerFileType = function(type,encoding,extension,options) {
options = options || {};
if($tw.utils.isArray(extension)) {
$tw.utils.each(extension,function(extension) {
$tw.config.fileExtensionInfo[extension] = {type: type};
});
extension = extension[0];
} else {
$tw.config.fileExtensionInfo[extension] = {type: type};
}
$tw.config.contentTypeInfo[type] = {encoding: encoding, extension: extension, flags: options.flags || [], deserializerType: options.deserializerType || type};
};
/*
Given an extension, always access the $tw.config.fileExtensionInfo
using a lowercase extension only.
*/
$tw.utils.getFileExtensionInfo = function(ext) {
return ext ? $tw.config.fileExtensionInfo[ext.toLowerCase()] : null;
}
/*
Given an extension, get the correct encoding for that file.
defaults to utf8
*/
$tw.utils.getTypeEncoding = function(ext) {
var extensionInfo = $tw.utils.getFileExtensionInfo(ext),
type = extensionInfo ? extensionInfo.type : null,
typeInfo = type ? $tw.config.contentTypeInfo[type] : null;
return typeInfo ? typeInfo.encoding : "utf8";
};
/*
Run code globally with specified context variables in scope
*/
$tw.utils.evalGlobal = function(code,context,filename) {
var contextCopy = $tw.utils.extend(Object.create(null),context);
// Get the context variables as a pair of arrays of names and values
var contextNames = [], contextValues = [];
$tw.utils.each(contextCopy,function(value,name) {
contextNames.push(name);
contextValues.push(value);
});
// Add the code prologue and epilogue
code = "(function(" + contextNames.join(",") + ") {(function(){\n" + code + "\n;})();\nreturn exports;\n})\n";
// Compile the code into a function
var fn;
if($tw.browser) {
fn = window["eval"](code + "\n\n//# sourceURL=" + filename);
} else {
fn = vm.runInThisContext(code,filename);
}
// Call the function and return the exports
return fn.apply(null,contextValues);
};
/*
Run code in a sandbox with only the specified context variables in scope
*/
$tw.utils.evalSandboxed = $tw.browser ? $tw.utils.evalGlobal : function(code,context,filename) {
var sandbox = $tw.utils.extend(Object.create(null),context);
vm.runInNewContext(code,sandbox,filename);
return sandbox.exports;
};
/*
Creates a PasswordPrompt object
*/
$tw.utils.PasswordPrompt = function() {
// Store of pending password prompts
this.passwordPrompts = [];
// Create the wrapper
this.promptWrapper = $tw.utils.domMaker("div",{"class":"tc-password-wrapper"});
document.body.appendChild(this.promptWrapper);
// Hide the empty wrapper
this.setWrapperDisplay();
};
/*
Hides or shows the wrapper depending on whether there are any outstanding prompts
*/
$tw.utils.PasswordPrompt.prototype.setWrapperDisplay = function() {
if(this.passwordPrompts.length) {
this.promptWrapper.style.display = "block";
} else {
this.promptWrapper.style.display = "none";
}
};
/*
Adds a new password prompt. Options are:
submitText: text to use for submit button (defaults to "Login")
serviceName: text of the human readable service name
noUserName: set true to disable username prompt
canCancel: set true to enable a cancel button (callback called with null)
repeatPassword: set true to prompt for the password twice
callback: function to be called on submission with parameter of object {username:,password:}. Callback must return `true` to remove the password prompt
*/
$tw.utils.PasswordPrompt.prototype.createPrompt = function(options) {
// Create and add the prompt to the DOM
var self = this,
submitText = options.submitText || "Login",
dm = $tw.utils.domMaker,
children = [dm("h1",{text: options.serviceName})];
if(!options.noUserName) {
children.push(dm("input",{
attributes: {type: "text", name: "username", placeholder: $tw.language.getString("Encryption/Username")}
}));
}
children.push(dm("input",{
attributes: {
type: "password",
name: "password",
placeholder: ( $tw.language == undefined ? "Password" : $tw.language.getString("Encryption/Password") )
}
}));
if(options.repeatPassword) {
children.push(dm("input",{
attributes: {
type: "password",
name: "password2",
placeholder: $tw.language.getString("Encryption/RepeatPassword")
}
}));
}
if(options.canCancel) {
children.push(dm("button",{
text: $tw.language.getString("Encryption/Cancel"),
attributes: {
type: "button"
},
eventListeners: [{
name: "click",
handlerFunction: function(event) {
self.removePrompt(promptInfo);
options.callback(null);
}
}]
}));
}
children.push(dm("button",{
attributes: {type: "submit"},
text: submitText
}));
var form = dm("form",{
attributes: {autocomplete: "off"},
children: children
});
this.promptWrapper.appendChild(form);
window.setTimeout(function() {
form.elements[0].focus();
},10);
// Add a submit event handler
var self = this;
form.addEventListener("submit",function(event) {
// Collect the form data
var data = {},t;
$tw.utils.each(form.elements,function(element) {
if(element.name && element.value) {
data[element.name] = element.value;
}
});
// Check that the passwords match
if(options.repeatPassword && data.password !== data.password2) {
alert($tw.language.getString("Encryption/PasswordNoMatch"));
} else {
// Call the callback
if(options.callback(data)) {
// Remove the prompt if the callback returned true
self.removePrompt(promptInfo);
} else {
// Clear the password if the callback returned false
$tw.utils.each(form.elements,function(element) {
if(element.name === "password" || element.name === "password2") {
element.value = "";
}
});
}
}
event.preventDefault();
return false;
},true);
// Add the prompt to the list
var promptInfo = {
serviceName: options.serviceName,
callback: options.callback,
form: form
};
this.passwordPrompts.push(promptInfo);
// Make sure the wrapper is displayed
this.setWrapperDisplay();
};
$tw.utils.PasswordPrompt.prototype.removePrompt = function(promptInfo) {
var i = this.passwordPrompts.indexOf(promptInfo);
if(i !== -1) {
this.passwordPrompts.splice(i,1);
promptInfo.form.parentNode.removeChild(promptInfo.form);
this.setWrapperDisplay();
}
}
/*
Crypto helper object for encrypted content. It maintains the password text in a closure, and provides methods to change
the password, and to encrypt/decrypt a block of text
*/
$tw.utils.Crypto = function() {
var sjcl = $tw.node ? (global.sjcl || require("./sjcl.js")) : window.sjcl,
currentPassword = null,
callSjcl = function(method,inputText,password) {
password = password || currentPassword;
var outputText;
try {
if(password) {
outputText = sjcl[method](password,inputText);
}
} catch(ex) {
console.log("Crypto error:" + ex);
outputText = null;
}
return outputText;
};
this.setPassword = function(newPassword) {
currentPassword = newPassword;
this.updateCryptoStateTiddler();
};
this.updateCryptoStateTiddler = function() {
if($tw.wiki) {
var state = currentPassword ? "yes" : "no",
tiddler = $tw.wiki.getTiddler("$:/isEncrypted");
if(!tiddler || tiddler.fields.text !== state) {
$tw.wiki.addTiddler(new $tw.Tiddler({title: "$:/isEncrypted", text: state}));
}
}
};
this.hasPassword = function() {
return !!currentPassword;
}
this.encrypt = function(text,password) {
return callSjcl("encrypt",text,password);
};
this.decrypt = function(text,password) {
return callSjcl("decrypt",text,password);
};
};
/////////////////////////// Module mechanism
/*
Execute the module named 'moduleName'. The name can optionally be relative to the module named 'moduleRoot'
*/
$tw.modules.execute = function(moduleName,moduleRoot) {
var name = moduleName;
if(moduleName.charAt(0) === ".") {
name = $tw.utils.resolvePath(moduleName,moduleRoot)
}
if(!$tw.modules.titles[name]) {
if($tw.modules.titles[name + ".js"]) {
name = name + ".js";
} else if($tw.modules.titles[name + "/index.js"]) {
name = name + "/index.js";
} else if($tw.modules.titles[moduleName]) {
name = moduleName;
} else if($tw.modules.titles[moduleName + ".js"]) {
name = moduleName + ".js";
} else if($tw.modules.titles[moduleName + "/index.js"]) {
name = moduleName + "/index.js";
}
}
var moduleInfo = $tw.modules.titles[name],
tiddler = $tw.wiki.getTiddler(name),
_exports = {},
sandbox = {
module: {exports: _exports},
//moduleInfo: moduleInfo,
exports: _exports,
console: console,
setInterval: setInterval,
clearInterval: clearInterval,
setTimeout: setTimeout,
clearTimeout: clearTimeout,
Buffer: $tw.browser ? undefined : Buffer,
$tw: $tw,
require: function(title) {
return $tw.modules.execute(title, name);
}
};
Object.defineProperty(sandbox.module, "id", {
value: name,
writable: false,
enumerable: true,
configurable: false
});
if(!$tw.browser) {
$tw.utils.extend(sandbox,{
process: process
});
} else {
/*
CommonJS optional require.main property:
In a browser we offer a fake main module which points back to the boot function
(Theoretically, this may allow TW to eventually load itself as a module in the browser)
*/
Object.defineProperty(sandbox.require, "main", {
value: (typeof(require) !== "undefined") ? require.main : {TiddlyWiki: _boot},
writable: false,
enumerable: true,
configurable: false
});
}
if(!moduleInfo) {
// We could not find the module on this path
// Try to defer to browserify etc, or node
var deferredModule;
if($tw.browser) {
if(window.require) {
try {
return window.require(moduleName);
} catch(e) {}
}
throw "Cannot find module named '" + moduleName + "' required by module '" + moduleRoot + "', resolved to " + name;
} else {
// If we don't have a module with that name, let node.js try to find it
return require(moduleName);
}
}
// Execute the module if we haven't already done so
if(!moduleInfo.exports) {
try {
// Check the type of the definition
if(typeof moduleInfo.definition === "function") { // Function
moduleInfo.exports = _exports;
moduleInfo.definition(moduleInfo,moduleInfo.exports,sandbox.require);
} else if(typeof moduleInfo.definition === "string") { // String
moduleInfo.exports = _exports;
$tw.utils.evalSandboxed(moduleInfo.definition,sandbox,tiddler.fields.title);
if(sandbox.module.exports) {
moduleInfo.exports = sandbox.module.exports; //more codemirror workaround
}
} else { // Object
moduleInfo.exports = moduleInfo.definition;
}
} catch(e) {
if (e instanceof SyntaxError) {
var line = e.lineNumber || e.line; // Firefox || Safari
if (typeof(line) != "undefined" && line !== null) {
$tw.utils.error("Syntax error in boot module " + name + ":" + line + ":\n" + e.stack);
} else if(!$tw.browser) {
// this is the only way to get node.js to display the line at which the syntax error appeared,
// and $tw.utils.error would exit anyway
// cf. https://bugs.chromium.org/p/v8/issues/detail?id=2589
throw e;
} else {
// Opera: line number is included in e.message
// Chrome/IE: there's currently no way to get the line number
$tw.utils.error("Syntax error in boot module " + name + ": " + e.message + "\n" + e.stack);
}
} else {
// line number should be included in e.stack for runtime errors
$tw.utils.error("Error executing boot module " + name + ": " + JSON.stringify(e) + "\n\n" + e.stack);
}
}
}
// Return the exports of the module
return moduleInfo.exports;
};
/*
Apply a callback to each module of a particular type
moduleType: type of modules to enumerate
callback: function called as callback(title,moduleExports) for each module
*/
$tw.modules.forEachModuleOfType = function(moduleType,callback) {
var modules = $tw.modules.types[moduleType];
$tw.utils.each(modules,function(element,title) {
callback(title,$tw.modules.execute(title));
});
};
/*
Get all the modules of a particular type in a hashmap by their `name` field
*/
$tw.modules.getModulesByTypeAsHashmap = function(moduleType,nameField) {
nameField = nameField || "name";
var results = Object.create(null);
$tw.modules.forEachModuleOfType(moduleType,function(title,module) {
results[module[nameField]] = module;
});
return results;
};
/*
Apply the exports of the modules of a particular type to a target object
*/
$tw.modules.applyMethods = function(moduleType,targetObject) {
if(!targetObject) {
targetObject = Object.create(null);
}
$tw.modules.forEachModuleOfType(moduleType,function(title,module) {
$tw.utils.each(module,function(element,title,object) {
targetObject[title] = module[title];
});
});
return targetObject;
};
/*
Return an array of classes created from the modules of a specified type. Each module should export the properties to be added to those of the optional base class
*/
$tw.modules.createClassesFromModules = function(moduleType,subType,baseClass) {
var classes = Object.create(null);
$tw.modules.forEachModuleOfType(moduleType,function(title,moduleExports) {
if(!subType || moduleExports.types[subType]) {
var newClass = function() {};
if(baseClass) {
newClass.prototype = new baseClass();
newClass.prototype.constructor = baseClass;
}
$tw.utils.extend(newClass.prototype,moduleExports);
classes[moduleExports.name] = newClass;
}
});
return classes;
};
/////////////////////////// Barebones tiddler object
/*
Construct a tiddler object from a hashmap of tiddler fields. If multiple hasmaps are provided they are merged,
taking precedence to the right
*/
$tw.Tiddler = function(/* [fields,] fields */) {
this.fields = Object.create(null);
this.cache = Object.create(null);
for(var c=0; c<arguments.length; c++) {
var arg = arguments[c],
src = (arg instanceof $tw.Tiddler) ? arg.fields : arg;
for(var t in src) {
if(src[t] === undefined || src[t] === null) {
if(t in this.fields) {
delete this.fields[t]; // If we get a field that's undefined, delete any previous field value
}
} else {
// Parse the field with the associated field module (if any)
var fieldModule = $tw.Tiddler.fieldModules[t],
value;
if(fieldModule && fieldModule.parse) {
value = fieldModule.parse.call(this,src[t]);
} else {
value = src[t];
}
// Freeze the field to keep it immutable
if(value != null && typeof value === "object") {
Object.freeze(value);
}
this.fields[t] = value;
}
}
}
// Freeze the tiddler against modification
Object.freeze(this.fields);
Object.freeze(this);
};
$tw.Tiddler.prototype.hasField = function(field) {
return $tw.utils.hop(this.fields,field);
};
/*
Compare two tiddlers for equality
tiddler: the tiddler to compare
excludeFields: array of field names to exclude from the comparison
*/
$tw.Tiddler.prototype.isEqual = function(tiddler,excludeFields) {
if(!(tiddler instanceof $tw.Tiddler)) {
return false;
}
excludeFields = excludeFields || [];
var self = this,
differences = []; // Fields that have differences
// Add to the differences array
function addDifference(fieldName) {
// Check for this field being excluded
if(excludeFields.indexOf(fieldName) === -1) {
// Save the field as a difference
$tw.utils.pushTop(differences,fieldName);
}
}
// Returns true if the two values of this field are equal
function isFieldValueEqual(fieldName) {
var valueA = self.fields[fieldName],
valueB = tiddler.fields[fieldName];
// Check for identical string values
if(typeof(valueA) === "string" && typeof(valueB) === "string" && valueA === valueB) {
return true;
}
// Check for identical array values
if($tw.utils.isArray(valueA) && $tw.utils.isArray(valueB) && $tw.utils.isArrayEqual(valueA,valueB)) {
return true;
}
// Check for identical date values
if($tw.utils.isDate(valueA) && $tw.utils.isDate(valueB) && valueA.getTime() === valueB.getTime()) {
return true;
}
// Otherwise the fields must be different
return false;
}
// Compare our fields
for(var fieldName in this.fields) {
if(!isFieldValueEqual(fieldName)) {
addDifference(fieldName);
}
}
// There's a difference for every field in the other tiddler that we don't have
for(fieldName in tiddler.fields) {
if(!(fieldName in this.fields)) {
addDifference(fieldName);
}
}
// Return whether there were any differences
return differences.length === 0;
};
/*
Register and install the built in tiddler field modules
*/
$tw.modules.define("$:/boot/tiddlerfields/modified","tiddlerfield",{
name: "modified",
parse: $tw.utils.parseDate,
stringify: $tw.utils.stringifyDate
});
$tw.modules.define("$:/boot/tiddlerfields/created","tiddlerfield",{
name: "created",
parse: $tw.utils.parseDate,
stringify: $tw.utils.stringifyDate
});
$tw.modules.define("$:/boot/tiddlerfields/color","tiddlerfield",{
name: "color",
editTag: "input",
editType: "color"
});
$tw.modules.define("$:/boot/tiddlerfields/tags","tiddlerfield",{
name: "tags",
parse: $tw.utils.parseStringArray,
stringify: $tw.utils.stringifyList
});
$tw.modules.define("$:/boot/tiddlerfields/list","tiddlerfield",{
name: "list",
parse: $tw.utils.parseStringArray,
stringify: $tw.utils.stringifyList
});
/////////////////////////// Barebones wiki store
/*
Wiki constructor. State is stored in private members that only a small number of privileged accessor methods have direct access. Methods added via the prototype have to use these accessors and cannot access the state data directly.
options include:
enableIndexers - Array of indexer names to enable, or null to use all available indexers
*/
$tw.Wiki = function(options) {
options = options || {};
var self = this,
tiddlers = Object.create(null), // Hashmap of tiddlers
tiddlerTitles = null, // Array of tiddler titles
getTiddlerTitles = function() {
if(!tiddlerTitles) {
tiddlerTitles = Object.keys(tiddlers);
}
return tiddlerTitles;
},
pluginTiddlers = [], // Array of tiddlers containing registered plugins, ordered by priority
pluginInfo = Object.create(null), // Hashmap of parsed plugin content
shadowTiddlers = Object.create(null), // Hashmap by title of {source:, tiddler:}
shadowTiddlerTitles = null,
getShadowTiddlerTitles = function() {
if(!shadowTiddlerTitles) {
shadowTiddlerTitles = Object.keys(shadowTiddlers);
}
return shadowTiddlerTitles;
},
enableIndexers = options.enableIndexers || null,
indexers = [],
indexersByName = Object.create(null);
this.addIndexer = function(indexer,name) {
// Bail if this indexer is not enabled
if(enableIndexers && enableIndexers.indexOf(name) === -1) {
return;
}
indexers.push(indexer);
indexersByName[name] = indexer;
indexer.init();
};
this.getIndexer = function(name) {
return indexersByName[name] || null;
};
// Add a tiddler to the store
this.addTiddler = function(tiddler) {
if(!(tiddler instanceof $tw.Tiddler)) {
tiddler = new $tw.Tiddler(tiddler);
}
// Save the tiddler
if(tiddler) {
var title = tiddler.fields.title;
if(title) {
// Uncomment the following line for detailed logs of all tiddler writes
// console.log("Adding",title,tiddler)
// Record the old tiddler state
var updateDescriptor = {
old: {
tiddler: this.getTiddler(title),
shadow: this.isShadowTiddler(title),
exists: this.tiddlerExists(title)
}
}
// Save the new tiddler
tiddlers[title] = tiddler;
// Check we've got it's title
if(tiddlerTitles && tiddlerTitles.indexOf(title) === -1) {
tiddlerTitles.push(title);
}
// Record the new tiddler state
updateDescriptor["new"] = {
tiddler: tiddler,
shadow: this.isShadowTiddler(title),
exists: this.tiddlerExists(title)
}
// Update indexes
this.clearCache(title);
this.clearGlobalCache();
$tw.utils.each(indexers,function(indexer) {
indexer.update(updateDescriptor);
});
// Queue a change event
this.enqueueTiddlerEvent(title);
}
}
};
// Delete a tiddler
this.deleteTiddler = function(title) {
// Uncomment the following line for detailed logs of all tiddler deletions
// console.log("Deleting",title)
if($tw.utils.hop(tiddlers,title)) {
// Record the old tiddler state
var updateDescriptor = {
old: {
tiddler: this.getTiddler(title),
shadow: this.isShadowTiddler(title),
exists: this.tiddlerExists(title)
}
}
// Delete the tiddler
delete tiddlers[title];
// Delete it from the list of titles
if(tiddlerTitles) {
var index = tiddlerTitles.indexOf(title);
if(index !== -1) {
tiddlerTitles.splice(index,1);
}
}
// Record the new tiddler state
updateDescriptor["new"] = {
tiddler: this.getTiddler(title),
shadow: this.isShadowTiddler(title),
exists: this.tiddlerExists(title)
}
// Update indexes
this.clearCache(title);
this.clearGlobalCache();
$tw.utils.each(indexers,function(indexer) {
indexer.update(updateDescriptor);
});
// Queue a change event
this.enqueueTiddlerEvent(title,true);
}
};
// Get a tiddler from the store
this.getTiddler = function(title) {
if(title) {
var t = tiddlers[title];
if(t instanceof $tw.Tiddler) {
return t;
} else if(title !== undefined && shadowTiddlers[title]) {
return shadowTiddlers[title].tiddler;
}
return undefined;
}
};
// Get an array of all tiddler titles
this.allTitles = function() {
return getTiddlerTitles().slice(0);
};
// Iterate through all tiddler titles
this.each = function(callback) {
var titles = getTiddlerTitles(),
index,titlesLength,title;
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
title = titles[index];
callback(tiddlers[title],title);
}
};
// Get an array of all shadow tiddler titles
this.allShadowTitles = function() {
return getShadowTiddlerTitles().slice(0);
};
// Iterate through all shadow tiddler titles
this.eachShadow = function(callback) {
var titles = getShadowTiddlerTitles(),
index,titlesLength,title;
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
title = titles[index];
var shadowInfo = shadowTiddlers[title];
callback(shadowInfo.tiddler,title);
}
};
// Iterate through all tiddlers and then the shadows
this.eachTiddlerPlusShadows = function(callback) {
var index,titlesLength,title,
titles = getTiddlerTitles();
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
title = titles[index];
callback(tiddlers[title],title);
}
titles = getShadowTiddlerTitles();
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
title = titles[index];
if(!tiddlers[title]) {
var shadowInfo = shadowTiddlers[title];
callback(shadowInfo.tiddler,title);
}
}
};
// Iterate through all the shadows and then the tiddlers
this.eachShadowPlusTiddlers = function(callback) {
var index,titlesLength,title,
titles = getShadowTiddlerTitles();
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
title = titles[index];
if(tiddlers[title]) {
callback(tiddlers[title],title);
} else {
var shadowInfo = shadowTiddlers[title];
callback(shadowInfo.tiddler,title);
}
}
titles = getTiddlerTitles();
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
title = titles[index];
if(!shadowTiddlers[title]) {
callback(tiddlers[title],title);
}
}
};
// Test for the existence of a tiddler (excludes shadow tiddlers)
this.tiddlerExists = function(title) {
return !!$tw.utils.hop(tiddlers,title);
};
// Determines if a tiddler is a shadow tiddler, regardless of whether it has been overridden by a real tiddler
this.isShadowTiddler = function(title) {
return $tw.utils.hop(shadowTiddlers,title);
};
this.getShadowSource = function(title) {
if($tw.utils.hop(shadowTiddlers,title)) {
return shadowTiddlers[title].source;
}
return null;
};
// Get an array of all the currently recognised plugin types
this.getPluginTypes = function() {
var types = [];
$tw.utils.each(pluginTiddlers,function(pluginTiddler) {
var pluginType = pluginTiddler.fields["plugin-type"];
if(pluginType && types.indexOf(pluginType) === -1) {
types.push(pluginType);
}
});
return types;
};
// Read plugin info for all plugins, or just an array of titles. Returns the number of plugins updated or deleted
this.readPluginInfo = function(titles) {
var results = {
modifiedPlugins: [],
deletedPlugins: []
};
$tw.utils.each(titles || getTiddlerTitles(),function(title) {
var tiddler = tiddlers[title];
if(tiddler) {
if(tiddler.fields.type === "application/json" && tiddler.hasField("plugin-type")) {
pluginInfo[tiddler.fields.title] = JSON.parse(tiddler.fields.text);
results.modifiedPlugins.push(tiddler.fields.title);
}
} else {
if(pluginInfo[title]) {
delete pluginInfo[title];
results.deletedPlugins.push(title);
}
}
});
return results;
};
// Get plugin info for a plugin
this.getPluginInfo = function(title) {
return pluginInfo[title];
};
// Register the plugin tiddlers of a particular type, or null/undefined for any type, optionally restricting registration to an array of tiddler titles. Return the array of titles affected
this.registerPluginTiddlers = function(pluginType,titles) {
var self = this,
registeredTitles = [],
checkTiddler = function(tiddler,title) {
if(tiddler && tiddler.fields.type === "application/json" && tiddler.fields["plugin-type"] && (!pluginType || tiddler.fields["plugin-type"] === pluginType)) {
var disablingTiddler = self.getTiddler("$:/config/Plugins/Disabled/" + title);
if(title === "$:/core" || !disablingTiddler || (disablingTiddler.fields.text || "").trim() !== "yes") {
self.unregisterPluginTiddlers(null,[title]); // Unregister the plugin if it's already registered
pluginTiddlers.push(tiddler);
registeredTitles.push(tiddler.fields.title);
}
}
};
if(titles) {
$tw.utils.each(titles,function(title) {
checkTiddler(self.getTiddler(title),title);
});
} else {
this.each(function(tiddler,title) {
checkTiddler(tiddler,title);
});
}
return registeredTitles;
};
// Unregister the plugin tiddlers of a particular type, or null/undefined for any type, optionally restricting unregistering to an array of tiddler titles. Returns an array of the titles affected
this.unregisterPluginTiddlers = function(pluginType,titles) {
var self = this,
unregisteredTitles = [];
// Remove any previous registered plugins of this type
for(var t=pluginTiddlers.length-1; t>=0; t--) {
var tiddler = pluginTiddlers[t];
if(tiddler.fields["plugin-type"] && (!pluginType || tiddler.fields["plugin-type"] === pluginType) && (!titles || titles.indexOf(tiddler.fields.title) !== -1)) {
unregisteredTitles.push(tiddler.fields.title);
pluginTiddlers.splice(t,1);
}
}
return unregisteredTitles;
};
// Unpack the currently registered plugins, creating shadow tiddlers for their constituent tiddlers
this.unpackPluginTiddlers = function() {
var self = this;
// Sort the plugin titles by the `plugin-priority` field
pluginTiddlers.sort(function(a,b) {
if("plugin-priority" in a.fields && "plugin-priority" in b.fields) {
return a.fields["plugin-priority"] - b.fields["plugin-priority"];
} else if("plugin-priority" in a.fields) {
return -1;
} else if("plugin-priority" in b.fields) {
return +1;
} else if(a.fields.title < b.fields.title) {
return -1;
} else if(a.fields.title === b.fields.title) {
return 0;
} else {
return +1;
}
});
// Now go through the plugins in ascending order and assign the shadows
shadowTiddlers = Object.create(null);
$tw.utils.each(pluginTiddlers,function(tiddler) {
// Extract the constituent tiddlers
if($tw.utils.hop(pluginInfo,tiddler.fields.title)) {
$tw.utils.each(pluginInfo[tiddler.fields.title].tiddlers,function(constituentTiddler,constituentTitle) {
// Save the tiddler object
if(constituentTitle) {
shadowTiddlers[constituentTitle] = {
source: tiddler.fields.title,
tiddler: new $tw.Tiddler(constituentTiddler,{title: constituentTitle})
};
}
});
}
});
shadowTiddlerTitles = null;
this.clearCache(null);
this.clearGlobalCache();
$tw.utils.each(indexers,function(indexer) {
indexer.rebuild();
});
};
if(this.addIndexersToWiki) {
this.addIndexersToWiki();
}
};
// Dummy methods that will be filled in after boot
$tw.Wiki.prototype.clearCache =
$tw.Wiki.prototype.clearGlobalCache =
$tw.Wiki.prototype.enqueueTiddlerEvent = function() {};
// Add an array of tiddlers
$tw.Wiki.prototype.addTiddlers = function(tiddlers) {
for(var t=0; t<tiddlers.length; t++) {
this.addTiddler(tiddlers[t]);
}
};
/*
Define all modules stored in ordinary tiddlers
*/
$tw.Wiki.prototype.defineTiddlerModules = function() {
this.each(function(tiddler,title) {
if(tiddler.hasField("module-type")) {
switch (tiddler.fields.type) {
case "application/javascript":
// We only define modules that haven't already been defined, because in the browser modules in system tiddlers are defined in inline script
if(!$tw.utils.hop($tw.modules.titles,tiddler.fields.title)) {
$tw.modules.define(tiddler.fields.title,tiddler.fields["module-type"],tiddler.fields.text);
}
break;
case "application/json":
$tw.modules.define(tiddler.fields.title,tiddler.fields["module-type"],JSON.parse(tiddler.fields.text));
break;
case "application/x-tiddler-dictionary":
$tw.modules.define(tiddler.fields.title,tiddler.fields["module-type"],$tw.utils.parseFields(tiddler.fields.text));
break;
}
}
});
};
/*
Register all the module tiddlers that have a module type
*/
$tw.Wiki.prototype.defineShadowModules = function() {
var self = this;
this.eachShadow(function(tiddler,title) {
// Don't define the module if it is overidden by an ordinary tiddler
if(!self.tiddlerExists(title) && tiddler.hasField("module-type")) {
// Define the module
$tw.modules.define(tiddler.fields.title,tiddler.fields["module-type"],tiddler.fields.text);
}
});
};
/*
Enable safe mode by deleting any tiddlers that override a shadow tiddler
*/
$tw.Wiki.prototype.processSafeMode = function() {
var self = this,
overrides = [];
// Find the overriding tiddlers
this.each(function(tiddler,title) {
if(self.isShadowTiddler(title)) {
console.log(title);
overrides.push(title);
}
});
// Assemble a report tiddler
var titleReportTiddler = "TiddlyWiki Safe Mode",
report = [];
report.push("TiddlyWiki has been started in [[safe mode|https://tiddlywiki.com/static/SafeMode.html]]. All plugins are temporarily disabled. Most customisations have been disabled by renaming the following tiddlers:")
// Delete the overrides
overrides.forEach(function(title) {
var tiddler = self.getTiddler(title),
newTitle = "SAFE: " + title;
self.deleteTiddler(title);
self.addTiddler(new $tw.Tiddler(tiddler, {title: newTitle}));
report.push("* [[" + title + "|" + newTitle + "]]");
});
report.push()
this.addTiddler(new $tw.Tiddler({title: titleReportTiddler, text: report.join("\n\n")}));
// Set $:/DefaultTiddlers to point to our report
this.addTiddler(new $tw.Tiddler({title: "$:/DefaultTiddlers", text: "[[" + titleReportTiddler + "]]"}));
};
/*
Extracts tiddlers from a typed block of text, specifying default field values
*/
$tw.Wiki.prototype.deserializeTiddlers = function(type,text,srcFields,options) {
srcFields = srcFields || Object.create(null);
options = options || {};
var deserializer = $tw.Wiki.tiddlerDeserializerModules[options.deserializer],
fields = Object.create(null);
if(!deserializer) {
deserializer = $tw.Wiki.tiddlerDeserializerModules[type];
}
if(!deserializer && $tw.utils.getFileExtensionInfo(type)) {
// If we didn't find the serializer, try converting it from an extension to a content type
type = $tw.utils.getFileExtensionInfo(type).type;
deserializer = $tw.Wiki.tiddlerDeserializerModules[type];
}
if(!deserializer && $tw.config.contentTypeInfo[type]) {
// see if this type has a different deserializer registered with it
type = $tw.config.contentTypeInfo[type].deserializerType;
deserializer = $tw.Wiki.tiddlerDeserializerModules[type];
}
if(!deserializer) {
// If we still don't have a deserializer, treat it as plain text
deserializer = $tw.Wiki.tiddlerDeserializerModules["text/plain"];
}
for(var f in srcFields) {
fields[f] = srcFields[f];
}
if(deserializer) {
return deserializer.call(this,text,fields,type);
} else {
// Return a raw tiddler for unknown types
fields.text = text;
return [fields];
}
};
/*
Register the built in tiddler deserializer modules
*/
var deserializeHeaderComment = function(text,fields) {
var headerCommentRegExp = new RegExp($tw.config.jsModuleHeaderRegExpString,"mg"),
match = headerCommentRegExp.exec(text);
fields.text = text;
if(match) {
fields = $tw.utils.parseFields(match[1].split(/\r?\n\r?\n/mg)[0],fields);
}
return [fields];
};
$tw.modules.define("$:/boot/tiddlerdeserializer/js","tiddlerdeserializer",{
"application/javascript": deserializeHeaderComment
});
$tw.modules.define("$:/boot/tiddlerdeserializer/css","tiddlerdeserializer",{
"text/css": deserializeHeaderComment
});
$tw.modules.define("$:/boot/tiddlerdeserializer/tid","tiddlerdeserializer",{
"application/x-tiddler": function(text,fields) {
var split = text.split(/\r?\n\r?\n/mg);
if(split.length >= 1) {
fields = $tw.utils.parseFields(split[0],fields);
}
if(split.length >= 2) {
fields.text = split.slice(1).join("\n\n");
}
return [fields];
}
});
$tw.modules.define("$:/boot/tiddlerdeserializer/tids","tiddlerdeserializer",{
"application/x-tiddlers": function(text,fields) {
var titles = [],
tiddlers = [],
match = /\r?\n\r?\n/mg.exec(text);
if(match) {
fields = $tw.utils.parseFields(text.substr(0,match.index),fields);
var lines = text.substr(match.index + match[0].length).split(/\r?\n/mg);
for(var t=0; t<lines.length; t++) {
var line = lines[t];
if(line.charAt(0) !== "#") {
var colonPos= line.indexOf(":");
if(colonPos !== -1) {
var tiddler = $tw.utils.extend(Object.create(null),fields);
tiddler.title = (tiddler.title || "") + line.substr(0,colonPos).trim();
if(titles.indexOf(tiddler.title) !== -1) {
console.log("Warning: .multids file contains multiple definitions for " + tiddler.title);
}
titles.push(tiddler.title);
tiddler.text = line.substr(colonPos + 2).trim();
tiddlers.push(tiddler);
}
}
}
}
return tiddlers;
}
});
$tw.modules.define("$:/boot/tiddlerdeserializer/txt","tiddlerdeserializer",{
"text/plain": function(text,fields,type) {
fields.text = text;
fields.type = type || "text/plain";
return [fields];
}
});
$tw.modules.define("$:/boot/tiddlerdeserializer/html","tiddlerdeserializer",{
"text/html": function(text,fields) {
fields.text = text;
fields.type = "text/html";
return [fields];
}
});
$tw.modules.define("$:/boot/tiddlerdeserializer/json","tiddlerdeserializer",{
"application/json": function(text,fields) {
var isTiddlerValid = function(data) {
// Not valid if it's not an object with a title property
if(typeof(data) !== "object" || !$tw.utils.hop(data,"title")) {
return false;
}
for(var f in data) {
if($tw.utils.hop(data,f)) {
// Check field name doesn't contain whitespace or control characters
if(typeof(data[f]) !== "string" || /[\x00-\x1F\s]/.test(f)) {
return false;
}
}
}
return true;
},
isTiddlerArrayValid = function(data) {
for(var t=0; t<data.length; t++) {
if(!isTiddlerValid(data[t])) {
return false;
}
}
return true;
},
data = JSON.parse(text);
if($tw.utils.isArray(data) && isTiddlerArrayValid(data)) {
return data;
} else if(isTiddlerValid(data)) {
return [data];
} else {
// Plain JSON file
fields.text = text;
fields.type = "application/json";
return [fields];
}
}
});
/////////////////////////// Browser definitions
if($tw.browser && !$tw.node) {
/*
Decrypt any tiddlers stored within the element with the ID "encryptedArea". The function is asynchronous to allow the user to be prompted for a password
callback: function to be called the decryption is complete
*/
$tw.boot.decryptEncryptedTiddlers = function(callback) {
var encryptedArea = document.getElementById("encryptedStoreArea");
if(encryptedArea) {
var encryptedText = encryptedArea.innerHTML,
prompt = "Enter a password to decrypt this TiddlyWiki";
// Prompt for the password
if($tw.utils.hop($tw.boot,"encryptionPrompts")) {
prompt = $tw.boot.encryptionPrompts.decrypt;
}
$tw.passwordPrompt.createPrompt({
serviceName: prompt,
noUserName: true,
submitText: "Decrypt",
callback: function(data) {
// Attempt to decrypt the tiddlers
$tw.crypto.setPassword(data.password);
var decryptedText = $tw.crypto.decrypt(encryptedText);
if(decryptedText) {
var json = JSON.parse(decryptedText);
for(var title in json) {
$tw.preloadTiddler(json[title]);
}
// Call the callback
callback();
// Exit and remove the password prompt
return true;
} else {
// We didn't decrypt everything, so continue to prompt for password
return false;
}
}
});
} else {
// Just invoke the callback straight away if there weren't any encrypted tiddlers
callback();
}
};
/*
Register a deserializer that can extract tiddlers from the DOM
*/
$tw.modules.define("$:/boot/tiddlerdeserializer/dom","tiddlerdeserializer",{
"(DOM)": function(node) {
var extractTextTiddlers = function(node) {
var e = node.firstChild;
while(e && e.nodeName.toLowerCase() !== "pre") {
e = e.nextSibling;
}
var title = node.getAttribute ? node.getAttribute("title") : null;
if(e && title) {
var attrs = node.attributes,
tiddler = {
text: $tw.utils.htmlDecode(e.innerHTML)
};
for(var i=attrs.length-1; i >= 0; i--) {
tiddler[attrs[i].name] = attrs[i].value;
}
return [tiddler];
} else {
return null;
}
},
extractModuleTiddlers = function(node) {
if(node.hasAttribute && node.hasAttribute("data-tiddler-title")) {
var text = node.innerHTML,
s = text.indexOf("{"),
e = text.lastIndexOf("}");
if(node.hasAttribute("data-module") && s !== -1 && e !== -1) {
text = text.substring(s+1,e);
}
var fields = {text: text},
attributes = node.attributes;
for(var a=0; a<attributes.length; a++) {
if(attributes[a].nodeName.substr(0,13) === "data-tiddler-") {
fields[attributes[a].nodeName.substr(13)] = attributes[a].value;
}
}
return [fields];
} else {
return null;
}
},
t,result = [];
if(node) {
for(t = 0; t < node.childNodes.length; t++) {
var childNode = node.childNodes[t],
tiddlers = extractTextTiddlers(childNode);
tiddlers = tiddlers || extractModuleTiddlers(childNode);
if(tiddlers) {
result.push.apply(result,tiddlers);
}
}
}
return result;
}
});
$tw.loadTiddlersBrowser = function() {
// In the browser, we load tiddlers from certain elements
var containerIds = [
"libraryModules",
"modules",
"bootKernelPrefix",
"bootKernel",
"styleArea",
"storeArea",
"systemArea"
];
for(var t=0; t<containerIds.length; t++) {
$tw.wiki.addTiddlers($tw.wiki.deserializeTiddlers("(DOM)",document.getElementById(containerIds[t])));
}
};
} else {
/////////////////////////// Server definitions
/*
Get any encrypted tiddlers
*/
$tw.boot.decryptEncryptedTiddlers = function(callback) {
// Storing encrypted tiddlers on the server isn't supported yet
callback();
};
} // End of if($tw.browser && !$tw.node)
/////////////////////////// Node definitions
if($tw.node) {
/*
Load the tiddlers contained in a particular file (and optionally extract fields from the accompanying .meta file) returned as {filepath:,type:,tiddlers:[],hasMetaFile:}
*/
$tw.loadTiddlersFromFile = function(filepath,fields) {
var ext = path.extname(filepath),
extensionInfo = $tw.utils.getFileExtensionInfo(ext),
type = extensionInfo ? extensionInfo.type : null,
typeInfo = type ? $tw.config.contentTypeInfo[type] : null,
data = fs.readFileSync(filepath,typeInfo ? typeInfo.encoding : "utf8"),
tiddlers = $tw.wiki.deserializeTiddlers(ext,data,fields),
metadata = $tw.loadMetadataForFile(filepath);
if(metadata) {
if(type === "application/json") {
tiddlers = [{text: data, type: "application/json"}];
}
tiddlers = [$tw.utils.extend({},tiddlers[0],metadata)];
}
return {filepath: filepath, type: type, tiddlers: tiddlers, hasMetaFile: !!metadata};
};
/*
Load the metadata fields in the .meta file corresponding to a particular file
*/
$tw.loadMetadataForFile = function(filepath) {
var metafilename = filepath + ".meta";
if(fs.existsSync(metafilename)) {
return $tw.utils.parseFields(fs.readFileSync(metafilename,"utf8") || "");
} else {
return null;
}
};
/*
A default set of files for TiddlyWiki to ignore during load.
This matches what NPM ignores, and adds "*.meta" to ignore tiddler
metadata files.
*/
$tw.boot.excludeRegExp = /^\.DS_Store$|^.*\.meta$|^\..*\.swp$|^\._.*$|^\.git$|^\.hg$|^\.lock-wscript$|^\.svn$|^\.wafpickle-.*$|^CVS$|^npm-debug\.log$/;
/*
Load all the tiddlers recursively from a directory, including honouring `tiddlywiki.files` files for drawing in external files. Returns an array of {filepath:,type:,tiddlers: [{..fields...}],hasMetaFile:}. Note that no file information is returned for externally loaded tiddlers, just the `tiddlers` property.
*/
$tw.loadTiddlersFromPath = function(filepath,excludeRegExp) {
excludeRegExp = excludeRegExp || $tw.boot.excludeRegExp;
var tiddlers = [];
if(fs.existsSync(filepath)) {
var stat = fs.statSync(filepath);
if(stat.isDirectory()) {
var files = fs.readdirSync(filepath);
// Look for a tiddlywiki.files file
if(files.indexOf("tiddlywiki.files") !== -1) {
Array.prototype.push.apply(tiddlers,$tw.loadTiddlersFromSpecification(filepath,excludeRegExp));
} else {
// If not, read all the files in the directory
$tw.utils.each(files,function(file) {
if(!excludeRegExp.test(file) && file !== "plugin.info") {
tiddlers.push.apply(tiddlers,$tw.loadTiddlersFromPath(filepath + path.sep + file,excludeRegExp));
}
});
}
} else if(stat.isFile()) {
tiddlers.push($tw.loadTiddlersFromFile(filepath,{title: filepath}));
}
}
return tiddlers;
};
/*
Load all the tiddlers defined by a `tiddlywiki.files` specification file
filepath: pathname of the directory containing the specification file
*/
$tw.loadTiddlersFromSpecification = function(filepath,excludeRegExp) {
var tiddlers = [];
// Read the specification
var filesInfo = JSON.parse(fs.readFileSync(filepath + path.sep + "tiddlywiki.files","utf8"));
// Helper to process a file
var processFile = function(filename,isTiddlerFile,fields) {
var extInfo = $tw.config.fileExtensionInfo[path.extname(filename)],
type = (extInfo || {}).type || fields.type || "text/plain",
typeInfo = $tw.config.contentTypeInfo[type] || {},
pathname = path.resolve(filepath,filename),
text = fs.readFileSync(pathname,typeInfo.encoding || "utf8"),
metadata = $tw.loadMetadataForFile(pathname) || {},
fileTiddlers;
if(isTiddlerFile) {
fileTiddlers = $tw.wiki.deserializeTiddlers(path.extname(pathname),text,metadata) || [];
} else {
fileTiddlers = [$tw.utils.extend({text: text},metadata)];
}
var combinedFields = $tw.utils.extend({},fields,metadata);
$tw.utils.each(fileTiddlers,function(tiddler) {
$tw.utils.each(combinedFields,function(fieldInfo,name) {
if(typeof fieldInfo === "string" || $tw.utils.isArray(fieldInfo)) {
tiddler[name] = fieldInfo;
} else {
var value = tiddler[name];
switch(fieldInfo.source) {
case "filename":
value = path.basename(filename);
break;
case "filename-uri-decoded":
value = decodeURIComponent(path.basename(filename));
break;
case "basename":
value = path.basename(filename,path.extname(filename));
break;
case "basename-uri-decoded":
value = decodeURIComponent(path.basename(filename,path.extname(filename)));
break;
case "extname":
value = path.extname(filename);
break;
case "created":
value = new Date(fs.statSync(pathname).birthtime);
break;
case "modified":
value = new Date(fs.statSync(pathname).mtime);
break;
}
if(fieldInfo.prefix) {
value = fieldInfo.prefix + value;
}
if(fieldInfo.suffix) {
value = value + fieldInfo.suffix;
}
tiddler[name] = value;
}
});
});
tiddlers.push({tiddlers: fileTiddlers});
};
// Process the listed tiddlers
$tw.utils.each(filesInfo.tiddlers,function(tidInfo) {
if(tidInfo.prefix && tidInfo.suffix) {
tidInfo.fields.text = {prefix: tidInfo.prefix,suffix: tidInfo.suffix};
} else if(tidInfo.prefix) {
tidInfo.fields.text = {prefix: tidInfo.prefix};
} else if(tidInfo.suffix) {
tidInfo.fields.text = {suffix: tidInfo.suffix};
}
processFile(tidInfo.file,tidInfo.isTiddlerFile,tidInfo.fields);
});
// Process any listed directories
$tw.utils.each(filesInfo.directories,function(dirSpec) {
// Read literal directories directly
if(typeof dirSpec === "string") {
var pathname = path.resolve(filepath,dirSpec);
if(fs.existsSync(pathname) && fs.statSync(pathname).isDirectory()) {
tiddlers.push.apply(tiddlers,$tw.loadTiddlersFromPath(pathname,excludeRegExp));
}
} else {
// Process directory specifier
var dirPath = path.resolve(filepath,dirSpec.path),
files = fs.readdirSync(dirPath),
fileRegExp = new RegExp(dirSpec.filesRegExp || "^.*$"),
metaRegExp = /^.*\.meta$/;
for(var t=0; t<files.length; t++) {
var filename = files[t];
if(filename !== "tiddlywiki.files" && !metaRegExp.test(filename) && fileRegExp.test(filename)) {
processFile(dirPath + path.sep + filename,dirSpec.isTiddlerFile,dirSpec.fields);
}
}
}
});
return tiddlers;
};
/*
Load the tiddlers from a plugin folder, and package them up into a proper JSON plugin tiddler
*/
$tw.loadPluginFolder = function(filepath,excludeRegExp) {
excludeRegExp = excludeRegExp || $tw.boot.excludeRegExp;
var infoPath = filepath + path.sep + "plugin.info";
if(fs.existsSync(filepath) && fs.statSync(filepath).isDirectory()) {
// Read the plugin information
if(!fs.existsSync(infoPath) || !fs.statSync(infoPath).isFile()) {
console.log("Warning: missing plugin.info file in " + filepath);
return null;
}
var pluginInfo = JSON.parse(fs.readFileSync(infoPath,"utf8"));
// Read the plugin files
var pluginFiles = $tw.loadTiddlersFromPath(filepath,excludeRegExp);
// Save the plugin tiddlers into the plugin info
pluginInfo.tiddlers = pluginInfo.tiddlers || Object.create(null);
for(var f=0; f<pluginFiles.length; f++) {
var tiddlers = pluginFiles[f].tiddlers;
for(var t=0; t<tiddlers.length; t++) {
var tiddler= tiddlers[t];
if(tiddler.title) {
pluginInfo.tiddlers[tiddler.title] = tiddler;
}
}
}
// Give the plugin the same version number as the core if it doesn't have one
if(!("version" in pluginInfo)) {
pluginInfo.version = $tw.packageInfo.version;
}
// Use "plugin" as the plugin-type if we don't have one
if(!("plugin-type" in pluginInfo)) {
pluginInfo["plugin-type"] = "plugin";
}
pluginInfo.dependents = pluginInfo.dependents || [];
pluginInfo.type = "application/json";
// Set plugin text
pluginInfo.text = JSON.stringify({tiddlers: pluginInfo.tiddlers},null,4);
delete pluginInfo.tiddlers;
// Deserialise array fields (currently required for the dependents field)
for(var field in pluginInfo) {
if($tw.utils.isArray(pluginInfo[field])) {
pluginInfo[field] = $tw.utils.stringifyList(pluginInfo[field]);
}
}
return pluginInfo;
} else {
return null;
}
};
/*
name: Name of the plugin to find
paths: array of file paths to search for it
Returns the path of the plugin folder
*/
$tw.findLibraryItem = function(name,paths) {
var pathIndex = 0;
do {
var pluginPath = path.resolve(paths[pathIndex],"./" + name)
if(fs.existsSync(pluginPath) && fs.statSync(pluginPath).isDirectory()) {
return pluginPath;
}
} while(++pathIndex < paths.length);
return null;
};
/*
name: Name of the plugin to load
paths: array of file paths to search for it
*/
$tw.loadPlugin = function(name,paths) {
var pluginPath = $tw.findLibraryItem(name,paths);
if(pluginPath) {
var pluginFields = $tw.loadPluginFolder(pluginPath);
if(pluginFields) {
$tw.wiki.addTiddler(pluginFields);
return;
}
}
console.log("Warning: Cannot find plugin '" + name + "'");
};
/*
libraryPath: Path of library folder for these plugins (relative to core path)
envVar: Environment variable name for these plugins
Returns an array of search paths
*/
$tw.getLibraryItemSearchPaths = function(libraryPath,envVar) {
var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)],
env = process.env[envVar];
if(env) {
env.split(path.delimiter).map(function(item) {
if(item) {
pluginPaths.push(item);
}
});
}
return pluginPaths;
};
/*
plugins: Array of names of plugins (eg, "tiddlywiki/filesystemadaptor")
libraryPath: Path of library folder for these plugins (relative to core path)
envVar: Environment variable name for these plugins
*/
$tw.loadPlugins = function(plugins,libraryPath,envVar) {
if(plugins) {
var pluginPaths = $tw.getLibraryItemSearchPaths(libraryPath,envVar);
for(var t=0; t<plugins.length; t++) {
$tw.loadPlugin(plugins[t],pluginPaths);
}
}
};
/*
path: path of wiki directory
options:
parentPaths: array of parent paths that we mustn't recurse into
readOnly: true if the tiddler file paths should not be retained
*/
$tw.loadWikiTiddlers = function(wikiPath,options) {
options = options || {};
var parentPaths = options.parentPaths || [],
wikiInfoPath = path.resolve(wikiPath,$tw.config.wikiInfo),
wikiInfo,
pluginFields;
// Bail if we don't have a wiki info file
if(fs.existsSync(wikiInfoPath)) {
wikiInfo = JSON.parse(fs.readFileSync(wikiInfoPath,"utf8"));
} else {
return null;
}
// Load any parent wikis
if(wikiInfo.includeWikis) {
parentPaths = parentPaths.slice(0);
parentPaths.push(wikiPath);
$tw.utils.each(wikiInfo.includeWikis,function(info) {
if(typeof info === "string") {
info = {path: info};
}
var resolvedIncludedWikiPath = path.resolve(wikiPath,info.path);
if(parentPaths.indexOf(resolvedIncludedWikiPath) === -1) {
var subWikiInfo = $tw.loadWikiTiddlers(resolvedIncludedWikiPath,{
parentPaths: parentPaths,
readOnly: info["read-only"]
});
// Merge the build targets
wikiInfo.build = $tw.utils.extend([],subWikiInfo.build,wikiInfo.build);
} else {
$tw.utils.error("Cannot recursively include wiki " + resolvedIncludedWikiPath);
}
});
}
// Load any plugins, themes and languages listed in the wiki info file
$tw.loadPlugins(wikiInfo.plugins,$tw.config.pluginsPath,$tw.config.pluginsEnvVar);
$tw.loadPlugins(wikiInfo.themes,$tw.config.themesPath,$tw.config.themesEnvVar);
$tw.loadPlugins(wikiInfo.languages,$tw.config.languagesPath,$tw.config.languagesEnvVar);
// Load the wiki files, registering them as writable
var resolvedWikiPath = path.resolve(wikiPath,$tw.config.wikiTiddlersSubDir);
$tw.utils.each($tw.loadTiddlersFromPath(resolvedWikiPath),function(tiddlerFile) {
if(!options.readOnly && tiddlerFile.filepath) {
$tw.utils.each(tiddlerFile.tiddlers,function(tiddler) {
$tw.boot.files[tiddler.title] = {
filepath: tiddlerFile.filepath,
type: tiddlerFile.type,
hasMetaFile: tiddlerFile.hasMetaFile
};
});
}
$tw.wiki.addTiddlers(tiddlerFile.tiddlers);
});
// Save the original tiddler file locations if requested
var config = wikiInfo.config || {};
if(config["retain-original-tiddler-path"]) {
var output = {}, relativePath;
for(var title in $tw.boot.files) {
relativePath = path.relative(resolvedWikiPath,$tw.boot.files[title].filepath);
output[title] =
path.sep === "/" ?
relativePath :
relativePath.split(path.sep).join("/");
}
$tw.wiki.addTiddler({title: "$:/config/OriginalTiddlerPaths", type: "application/json", text: JSON.stringify(output)});
}
// Save the path to the tiddlers folder for the filesystemadaptor
$tw.boot.wikiTiddlersPath = path.resolve($tw.boot.wikiPath,config["default-tiddler-location"] || $tw.config.wikiTiddlersSubDir);
// Load any plugins within the wiki folder
var wikiPluginsPath = path.resolve(wikiPath,$tw.config.wikiPluginsSubDir);
if(fs.existsSync(wikiPluginsPath)) {
var pluginFolders = fs.readdirSync(wikiPluginsPath);
for(var t=0; t<pluginFolders.length; t++) {
pluginFields = $tw.loadPluginFolder(path.resolve(wikiPluginsPath,"./" + pluginFolders[t]));
if(pluginFields) {
$tw.wiki.addTiddler(pluginFields);
}
}
}
// Load any themes within the wiki folder
var wikiThemesPath = path.resolve(wikiPath,$tw.config.wikiThemesSubDir);
if(fs.existsSync(wikiThemesPath)) {
var themeFolders = fs.readdirSync(wikiThemesPath);
for(var t=0; t<themeFolders.length; t++) {
pluginFields = $tw.loadPluginFolder(path.resolve(wikiThemesPath,"./" + themeFolders[t]));
if(pluginFields) {
$tw.wiki.addTiddler(pluginFields);
}
}
}
// Load any languages within the wiki folder
var wikiLanguagesPath = path.resolve(wikiPath,$tw.config.wikiLanguagesSubDir);
if(fs.existsSync(wikiLanguagesPath)) {
var languageFolders = fs.readdirSync(wikiLanguagesPath);
for(var t=0; t<languageFolders.length; t++) {
pluginFields = $tw.loadPluginFolder(path.resolve(wikiLanguagesPath,"./" + languageFolders[t]));
if(pluginFields) {
$tw.wiki.addTiddler(pluginFields);
}
}
}
return wikiInfo;
};
$tw.loadTiddlersNode = function() {
// Load the boot tiddlers
$tw.utils.each($tw.loadTiddlersFromPath($tw.boot.bootPath),function(tiddlerFile) {
$tw.wiki.addTiddlers(tiddlerFile.tiddlers);
});
// Load the core tiddlers
$tw.wiki.addTiddler($tw.loadPluginFolder($tw.boot.corePath));
// Load any extra plugins
$tw.utils.each($tw.boot.extraPlugins,function(name) {
if(name.charAt(0) === "+") { // Relative path to plugin
var pluginFields = $tw.loadPluginFolder(name.substring(1));;
if(pluginFields) {
$tw.wiki.addTiddler(pluginFields);
}
} else {
var parts = name.split("/"),
type = parts[0];
if(parts.length === 3 && ["plugins","themes","languages"].indexOf(type) !== -1) {
$tw.loadPlugins([parts[1] + "/" + parts[2]],$tw.config[type + "Path"],$tw.config[type + "EnvVar"]);
}
}
});
// Load the tiddlers from the wiki directory
if($tw.boot.wikiPath) {
$tw.boot.wikiInfo = $tw.loadWikiTiddlers($tw.boot.wikiPath);
}
};
// End of if($tw.node)
}
/////////////////////////// Main startup function called once tiddlers have been decrypted
/*
Startup TiddlyWiki
*/
$tw.boot.startup = function(options) {
options = options || {};
// Get the URL hash and check for safe mode
$tw.locationHash = "#";
if($tw.browser && !$tw.node) {
if(location.hash === "#:safe") {
$tw.safeMode = true;
} else {
$tw.locationHash = $tw.utils.getLocationHash();
}
}
// Initialise some more $tw properties
$tw.utils.deepDefaults($tw,{
modules: { // Information about each module
titles: Object.create(null), // hashmap by module title of {fn:, exports:, moduleType:}
types: {} // hashmap by module type of hashmap of exports
},
config: { // Configuration overridables
pluginsPath: "../plugins/",
themesPath: "../themes/",
languagesPath: "../languages/",
editionsPath: "../editions/",
wikiInfo: "./tiddlywiki.info",
wikiPluginsSubDir: "./plugins",
wikiThemesSubDir: "./themes",
wikiLanguagesSubDir: "./languages",
wikiTiddlersSubDir: "./tiddlers",
wikiOutputSubDir: "./output",
jsModuleHeaderRegExpString: "^\\/\\*\\\\(?:\\r?\\n)((?:^[^\\r\\n]*(?:\\r?\\n))+?)(^\\\\\\*\\/$(?:\\r?\\n)?)",
fileExtensionInfo: Object.create(null), // Map file extension to {type:}
contentTypeInfo: Object.create(null), // Map type to {encoding:,extension:}
pluginsEnvVar: "TIDDLYWIKI_PLUGIN_PATH",
themesEnvVar: "TIDDLYWIKI_THEME_PATH",
languagesEnvVar: "TIDDLYWIKI_LANGUAGE_PATH",
editionsEnvVar: "TIDDLYWIKI_EDITION_PATH"
},
log: {}, // Log flags
unloadTasks: []
});
if(!$tw.boot.tasks.readBrowserTiddlers) {
// For writable tiddler files, a hashmap of title to {filepath:,type:,hasMetaFile:}
$tw.boot.files = Object.create(null);
// System paths and filenames
$tw.boot.bootPath = options.bootPath || path.dirname(module.filename);
$tw.boot.corePath = path.resolve($tw.boot.bootPath,"../core");
// If there's no arguments then default to `--help`
if($tw.boot.argv.length === 0) {
$tw.boot.argv = ["--help"];
}
// Parse any extra plugin references
$tw.boot.extraPlugins = $tw.boot.extraPlugins || [];
while($tw.boot.argv[0] && $tw.boot.argv[0].indexOf("+") === 0) {
$tw.boot.extraPlugins.push($tw.boot.argv[0].substring(1));
$tw.boot.argv.splice(0,1);
}
// If the first command line argument doesn't start with `--` then we
// interpret it as the path to the wiki folder, which will otherwise default
// to the current folder
if($tw.boot.argv[0] && $tw.boot.argv[0].indexOf("--") !== 0) {
$tw.boot.wikiPath = $tw.boot.argv[0];
$tw.boot.argv = $tw.boot.argv.slice(1);
} else {
$tw.boot.wikiPath = process.cwd();
}
// Read package info
$tw.packageInfo = $tw.packageInfo || require("../package.json");
// Check node version number
if(!$tw.utils.checkVersions(process.version.substr(1),$tw.packageInfo.engines.node.substr(2))) {
$tw.utils.error("TiddlyWiki5 requires node.js version " + $tw.packageInfo.engines.node);
}
}
// Add file extension information
$tw.utils.registerFileType("text/vnd.tiddlywiki","utf8",".tid");
$tw.utils.registerFileType("application/x-tiddler","utf8",".tid");
$tw.utils.registerFileType("application/x-tiddlers","utf8",".multids");
$tw.utils.registerFileType("application/x-tiddler-html-div","utf8",".tiddler");
$tw.utils.registerFileType("text/vnd.tiddlywiki2-recipe","utf8",".recipe");
$tw.utils.registerFileType("text/plain","utf8",".txt");
$tw.utils.registerFileType("text/css","utf8",".css");
$tw.utils.registerFileType("text/html","utf8",[".html",".htm"]);
$tw.utils.registerFileType("application/hta","utf16le",".hta",{deserializerType:"text/html"});
$tw.utils.registerFileType("application/javascript","utf8",".js");
$tw.utils.registerFileType("application/json","utf8",".json");
$tw.utils.registerFileType("application/pdf","base64",".pdf",{flags:["image"]});
$tw.utils.registerFileType("application/zip","base64",".zip");
$tw.utils.registerFileType("application/x-zip-compressed","base64",".zip");
$tw.utils.registerFileType("image/jpeg","base64",[".jpg",".jpeg"],{flags:["image"]});
$tw.utils.registerFileType("image/png","base64",".png",{flags:["image"]});
$tw.utils.registerFileType("image/gif","base64",".gif",{flags:["image"]});
$tw.utils.registerFileType("image/webp","base64",".webp",{flags:["image"]});
$tw.utils.registerFileType("image/heic","base64",".heic",{flags:["image"]});
$tw.utils.registerFileType("image/heif","base64",".heif",{flags:["image"]});
$tw.utils.registerFileType("image/svg+xml","utf8",".svg",{flags:["image"]});
$tw.utils.registerFileType("image/x-icon","base64",".ico",{flags:["image"]});
$tw.utils.registerFileType("application/font-woff","base64",".woff");
$tw.utils.registerFileType("application/x-font-ttf","base64",".woff");
$tw.utils.registerFileType("application/font-woff2","base64",".woff2");
$tw.utils.registerFileType("audio/ogg","base64",".ogg");
$tw.utils.registerFileType("video/ogg","base64",[".ogm",".ogv",".ogg"]);
$tw.utils.registerFileType("video/webm","base64",".webm");
$tw.utils.registerFileType("video/mp4","base64",".mp4");
$tw.utils.registerFileType("audio/mp3","base64",".mp3");
$tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]);
$tw.utils.registerFileType("text/markdown","utf8",[".md",".markdown"],{deserializerType:"text/x-markdown"});
$tw.utils.registerFileType("text/x-markdown","utf8",[".md",".markdown"]);
$tw.utils.registerFileType("application/enex+xml","utf8",".enex");
$tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.wordprocessingml.document","base64",".docx");
$tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","base64",".xlsx");
$tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.presentationml.presentation","base64",".pptx");
$tw.utils.registerFileType("text/x-bibtex","utf8",".bib",{deserializerType:"application/x-bibtex"});
$tw.utils.registerFileType("application/x-bibtex","utf8",".bib");
$tw.utils.registerFileType("application/epub+zip","base64",".epub");
$tw.utils.registerFileType("application/octet-stream","base64",".octet-stream");
// Create the wiki store for the app
$tw.wiki = new $tw.Wiki();
// Install built in tiddler fields modules
$tw.Tiddler.fieldModules = $tw.modules.getModulesByTypeAsHashmap("tiddlerfield");
// Install the tiddler deserializer modules
$tw.Wiki.tiddlerDeserializerModules = Object.create(null);
$tw.modules.applyMethods("tiddlerdeserializer",$tw.Wiki.tiddlerDeserializerModules);
// Call unload handlers in the browser
if($tw.browser) {
window.onbeforeunload = function(event) {
event = event || {};
var result;
$tw.utils.each($tw.unloadTasks,function(task) {
var r = task(event);
if(r) {
result = r;
}
});
return result;
}
}
// Load tiddlers
if($tw.boot.tasks.readBrowserTiddlers) {
$tw.loadTiddlersBrowser();
} else {
$tw.loadTiddlersNode();
}
// Load any preloaded tiddlers
if($tw.preloadTiddlers) {
$tw.wiki.addTiddlers($tw.preloadTiddlers);
}
// Give hooks a chance to modify the store
$tw.hooks.invokeHook("th-boot-tiddlers-loaded");
// Unpack plugin tiddlers
$tw.wiki.readPluginInfo();
$tw.wiki.registerPluginTiddlers("plugin",$tw.safeMode ? ["$:/core"] : undefined);
$tw.wiki.unpackPluginTiddlers();
// Process "safe mode"
if($tw.safeMode) {
$tw.wiki.processSafeMode();
}
// Register typed modules from the tiddlers we've just loaded
$tw.wiki.defineTiddlerModules();
// And any modules within plugins
$tw.wiki.defineShadowModules();
// Make sure the crypto state tiddler is up to date
if($tw.crypto) {
$tw.crypto.updateCryptoStateTiddler();
}
// Gather up any startup modules
$tw.boot.remainingStartupModules = []; // Array of startup modules
$tw.modules.forEachModuleOfType("startup",function(title,module) {
if(module.startup) {
$tw.boot.remainingStartupModules.push(module);
}
});
// Keep track of the startup tasks that have been executed
$tw.boot.executedStartupModules = Object.create(null);
$tw.boot.disabledStartupModules = $tw.boot.disabledStartupModules || [];
// Repeatedly execute the next eligible task
$tw.boot.executeNextStartupTask(options.callback);
};
/*
Add another unload task
*/
$tw.addUnloadTask = function(task) {
if($tw.unloadTasks.indexOf(task) === -1) {
$tw.unloadTasks.push(task);
}
}
/*
Execute the remaining eligible startup tasks
*/
$tw.boot.executeNextStartupTask = function(callback) {
// Find the next eligible task
var taskIndex = 0, task,
asyncTaskCallback = function() {
if(task.name) {
$tw.boot.executedStartupModules[task.name] = true;
}
return $tw.boot.executeNextStartupTask(callback);
};
while(taskIndex < $tw.boot.remainingStartupModules.length) {
task = $tw.boot.remainingStartupModules[taskIndex];
if($tw.boot.isStartupTaskEligible(task)) {
// Remove this task from the list
$tw.boot.remainingStartupModules.splice(taskIndex,1);
// Assemble log message
var s = ["Startup task:",task.name];
if(task.platforms) {
s.push("platforms:",task.platforms.join(","));
}
if(task.after) {
s.push("after:",task.after.join(","));
}
if(task.before) {
s.push("before:",task.before.join(","));
}
$tw.boot.log(s.join(" "));
// Execute task
if(!$tw.utils.hop(task,"synchronous") || task.synchronous) {
task.startup();
if(task.name) {
$tw.boot.executedStartupModules[task.name] = true;
}
return $tw.boot.executeNextStartupTask(callback);
} else {
task.startup(asyncTaskCallback);
return true;
}
}
taskIndex++;
}
if(typeof callback === 'function') {
callback();
}
return false;
};
/*
Returns true if we are running on one platforms specified in a task modules `platforms` array
*/
$tw.boot.doesTaskMatchPlatform = function(taskModule) {
var platforms = taskModule.platforms;
if(platforms) {
for(var t=0; t<platforms.length; t++) {
if((platforms[t] === "browser" && !$tw.browser) || (platforms[t] === "node" && !$tw.node)) {
return false;
}
}
}
return true;
};
$tw.boot.isStartupTaskEligible = function(taskModule) {
var t;
// Check that the platform is correct
if(!$tw.boot.doesTaskMatchPlatform(taskModule)) {
return false;
}
var name = taskModule.name,
remaining = $tw.boot.remainingStartupModules;
if(name) {
// Fail if this module is disabled
if($tw.boot.disabledStartupModules.indexOf(name) !== -1) {
return false;
}
// Check that no other outstanding tasks must be executed before this one
for(t=0; t<remaining.length; t++) {
var task = remaining[t];
if(task.before && task.before.indexOf(name) !== -1) {
if($tw.boot.doesTaskMatchPlatform(task) || (task.name && $tw.boot.disabledStartupModules.indexOf(name) !== -1)) {
return false;
}
}
}
}
// Check that all of the tasks that we must be performed after has been done
var after = taskModule.after;
if(after) {
for(t=0; t<after.length; t++) {
if(!$tw.boot.executedStartupModules[after[t]]) {
return false;
}
}
}
return true;
};
/*
Global Hooks mechanism which allows plugins to modify default functionality
*/
$tw.hooks = $tw.hooks || { names: {}};
/*
Add hooks to the hashmap
*/
$tw.hooks.addHook = function(hookName,definition) {
if($tw.utils.hop($tw.hooks.names,hookName)) {
$tw.hooks.names[hookName].push(definition);
}
else {
$tw.hooks.names[hookName] = [definition];
}
};
/*
Invoke the hook by key
*/
$tw.hooks.invokeHook = function(hookName /*, value,... */) {
var args = Array.prototype.slice.call(arguments,1);
if($tw.utils.hop($tw.hooks.names,hookName)) {
for (var i = 0; i < $tw.hooks.names[hookName].length; i++) {
args[0] = $tw.hooks.names[hookName][i].apply(null,args);
}
}
return args[0];
};
/////////////////////////// Main boot function to decrypt tiddlers and then startup
$tw.boot.boot = function(callback) {
// Initialise crypto object
$tw.crypto = new $tw.utils.Crypto();
// Initialise password prompter
if($tw.browser && !$tw.node) {
$tw.passwordPrompt = new $tw.utils.PasswordPrompt();
}
// Preload any encrypted tiddlers
$tw.boot.decryptEncryptedTiddlers(function() {
// Startup
$tw.boot.startup({callback: callback});
});
};
/////////////////////////// Autoboot in the browser
if($tw.browser && !$tw.boot.suppressBoot) {
$tw.boot.boot();
}
return $tw;
});
if(typeof(exports) !== "undefined") {
exports.TiddlyWiki = _boot;
} else {
_boot(window.$tw);
}
</script>
</div>
<!--~~ Raw markup for the bottom of the body section ~~-->
</body>
</html>