syndicate-2017/wiki.html

11859 lines
2.1 MiB
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>
<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.19" />
<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-2018, 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>Syndicate — a language for interactive programs</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>$:/config/WikiParserRules/Inline/wikilink</li>
<li>$:/core</li>
<li>$:/DefaultTiddlers</li>
<li>$:/isEncrypted</li>
<li>$:/palette</li>
<li>$:/palettes/Syndicate</li>
<li>$:/SiteSubtitle</li>
<li>$:/SiteTitle</li>
<li>$:/state/ShowPaletteEditor</li>
<li>$:/state/tab--1963855381</li>
<li>$:/state/tab--2112689675</li>
<li>$:/state/tab-1749438307</li>
<li>$:/state/tab-2065006209</li>
<li>$:/state/tab/moresidebar-1850697562</li>
<li>$:/state/tab/sidebar--595412856</li>
<li>$:/status/UserName</li>
<li>$:/StoryList</li>
<li>$:/temp/info-plugin</li>
<li>$:/themes/tiddlywiki/snowwhite</li>
<li>$:/themes/tiddlywiki/vanilla</li>
<li>Model of concurrency</li>
<li>Welcome</li>
</ul>
</p>
</div>
</noscript>
<!--~~ Ordinary tiddlers ~~-->
<div id="storeArea" style="display:none;">
<div created="20190806212632375" creator="TonyGarnockJones" modified="20190806212632375" modifier="TonyGarnockJones" title="$:/config/WikiParserRules/Inline/wikilink">
<pre>disable</pre>
</div>
<div author="JeremyRuston" core-version="&gt;=5.0.0" dependents="" description="TiddlyWiki5 core" list="readme" plugin-priority="0" plugin-type="plugin" title="$:/core" type="application/json" version="5.1.19">
<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-2018, 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 class=\&quot;tc-image-add-comment tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;path d=\&quot;M56 56H36a8 8 0 1 0 0 16h20v20a8 8 0 1 0 16 0V72h20a8 8 0 1 0 0-16H72V36a8 8 0 1 0-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; fill-rule=\&quot;evenodd\&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 class=\&quot;tc-image-advanced-search-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M74.5651535,87.9848361 C66.9581537,93.0488876 57.8237115,96 48,96 C21.490332,96 0,74.509668 0,48 C0,21.490332 21.490332,0 48,0 C74.509668,0 96,21.490332 96,48 C96,57.8541369 93.0305793,67.0147285 87.9377231,74.6357895 L122.284919,108.982985 C125.978897,112.676963 125.973757,118.65366 122.284271,122.343146 C118.593975,126.033442 112.613238,126.032921 108.92411,122.343793 L74.5651535,87.9848361 Z M48,80 C65.673112,80 80,65.673112 80,48 C80,30.326888 65.673112,16 48,16 C30.326888,16 16,30.326888 16,48 C16,65.673112 30.326888,80 48,80 Z\&quot;&gt;&lt;/path&gt;\n &lt;circle cx=\&quot;48\&quot; cy=\&quot;48\&quot; r=\&quot;8\&quot;&gt;&lt;/circle&gt;\n &lt;circle cx=\&quot;28\&quot; cy=\&quot;48\&quot; r=\&quot;8\&quot;&gt;&lt;/circle&gt;\n &lt;circle cx=\&quot;68\&quot; cy=\&quot;48\&quot; r=\&quot;8\&quot;&gt;&lt;/circle&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-auto-height tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;path d=\&quot;M67.9867828,114.356363 L67.9579626,99.8785426 C67.9550688,98.4248183 67.1636987,97.087107 65.8909901,96.3845863 L49.9251455,87.5716209 L47.992126,95.0735397 L79.8995411,95.0735397 C84.1215894,95.0735397 85.4638131,89.3810359 81.686497,87.4948823 L49.7971476,71.5713518 L48.0101917,79.1500092 L79.992126,79.1500092 C84.2093753,79.1500092 85.5558421,73.4676733 81.7869993,71.5753162 L49.805065,55.517008 L48.0101916,63.0917009 L79.9921259,63.0917015 C84.2035118,63.0917016 85.5551434,57.4217887 81.7966702,55.5218807 L65.7625147,47.4166161 L67.9579705,50.9864368 L67.9579705,35.6148245 L77.1715737,44.8284272 C78.7336709,46.3905243 81.2663308,46.3905243 82.8284279,44.8284271 C84.390525,43.2663299 84.390525,40.7336699 82.8284278,39.1715728 L66.8284271,23.1715728 C65.2663299,21.6094757 62.73367,21.6094757 61.1715729,23.1715729 L45.1715729,39.1715729 C43.6094757,40.73367 43.6094757,43.26633 45.1715729,44.8284271 C46.73367,46.3905243 49.26633,46.3905243 50.8284271,44.8284271 L59.9579705,35.6988837 L59.9579705,50.9864368 C59.9579705,52.495201 60.806922,53.8755997 62.1534263,54.5562576 L78.1875818,62.6615223 L79.9921261,55.0917015 L48.0101917,55.0917009 C43.7929424,55.0917008 42.4464755,60.7740368 46.2153183,62.6663939 L78.1972526,78.7247021 L79.992126,71.1500092 L48.0101917,71.1500092 C43.7881433,71.1500092 42.4459197,76.842513 46.2232358,78.7286665 L78.1125852,94.6521971 L79.8995411,87.0735397 L47.992126,87.0735397 C43.8588276,87.0735397 42.4404876,92.5780219 46.0591064,94.5754586 L62.024951,103.388424 L59.9579785,99.8944677 L59.9867142,114.32986 L50.8284271,105.171573 C49.26633,103.609476 46.73367,103.609476 45.1715729,105.171573 C43.6094757,106.73367 43.6094757,109.26633 45.1715729,110.828427 L61.1715729,126.828427 C62.73367,128.390524 65.2663299,128.390524 66.8284271,126.828427 L82.8284278,110.828427 C84.390525,109.26633 84.390525,106.73367 82.8284279,105.171573 C81.2663308,103.609476 78.7336709,103.609476 77.1715737,105.171573 L67.9867828,114.356363 L67.9867828,114.356363 Z M16,20 L112,20 C114.209139,20 116,18.209139 116,16 C116,13.790861 114.209139,12 112,12 L16,12 C13.790861,12 12,13.790861 12,16 C12,18.209139 13.790861,20 16,20 L16,20 Z\&quot;&gt;&lt;/path&gt;\n&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 class=\&quot;tc-image-blank tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;&lt;/svg&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 class=\&quot;tc-image-bold tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M41.1456583,51.8095238 L41.1456583,21.8711485 L67.4985994,21.8711485 C70.0084159,21.8711485 72.4285598,22.0802967 74.7591036,22.4985994 C77.0896475,22.9169022 79.1512515,23.6638602 80.9439776,24.7394958 C82.7367036,25.8151314 84.170863,27.3090474 85.2464986,29.2212885 C86.3221342,31.1335296 86.859944,33.5835518 86.859944,36.5714286 C86.859944,41.9496067 85.2465147,45.8337882 82.0196078,48.2240896 C78.792701,50.614391 74.6694929,51.8095238 69.6498599,51.8095238 L41.1456583,51.8095238 Z M13,0 L13,128 L75.0280112,128 C80.7647346,128 86.3519803,127.28292 91.789916,125.848739 C97.2278517,124.414559 102.068139,122.203563 106.310924,119.215686 C110.553709,116.22781 113.929959,112.373506 116.439776,107.652661 C118.949592,102.931816 120.204482,97.3445701 120.204482,90.8907563 C120.204482,82.8832466 118.262391,76.0411115 114.378151,70.3641457 C110.493911,64.6871798 104.607883,60.7133634 96.719888,58.442577 C102.456611,55.6937304 106.788968,52.1680887 109.717087,47.8655462 C112.645206,43.5630037 114.109244,38.1849062 114.109244,31.7310924 C114.109244,25.7553389 113.123259,20.7357813 111.151261,16.6722689 C109.179262,12.6087565 106.400578,9.35201972 102.815126,6.90196078 C99.2296739,4.45190185 94.927196,2.68908101 89.907563,1.61344538 C84.8879301,0.537809748 79.3305627,0 73.2352941,0 L13,0 Z M41.1456583,106.128852 L41.1456583,70.9915966 L71.8011204,70.9915966 C77.896389,70.9915966 82.7964334,72.3958776 86.5014006,75.2044818 C90.2063677,78.0130859 92.0588235,82.7039821 92.0588235,89.2773109 C92.0588235,92.6237329 91.4911355,95.3725383 90.3557423,97.5238095 C89.2203491,99.6750808 87.6965548,101.378145 85.7843137,102.633053 C83.8720726,103.887961 81.661077,104.784311 79.1512605,105.322129 C76.641444,105.859947 74.0121519,106.128852 71.2633053,106.128852 L41.1456583,106.128852 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-cancel-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n\t&lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n\t &lt;path d=\&quot;M64,76.3137085 L47.0294734,93.2842351 C43.9038742,96.4098343 38.8399231,96.4084656 35.7157288,93.2842712 C32.5978915,90.166434 32.5915506,85.0947409 35.7157649,81.9705266 L52.6862915,65 L35.7157649,48.0294734 C32.5901657,44.9038742 32.5915344,39.8399231 35.7157288,36.7157288 C38.833566,33.5978915 43.9052591,33.5915506 47.0294734,36.7157649 L64,53.6862915 L80.9705266,36.7157649 C84.0961258,33.5901657 89.1600769,33.5915344 92.2842712,36.7157288 C95.4021085,39.833566 95.4084494,44.9052591 92.2842351,48.0294734 L75.3137085,65 L92.2842351,81.9705266 C95.4098343,85.0961258 95.4084656,90.1600769 92.2842712,93.2842712 C89.166434,96.4021085 84.0947409,96.4084494 80.9705266,93.2842351 L64,76.3137085 Z M64,129 C99.346224,129 128,100.346224 128,65 C128,29.653776 99.346224,1 64,1 C28.653776,1 1.13686838e-13,29.653776 1.13686838e-13,65 C1.13686838e-13,100.346224 28.653776,129 64,129 Z M64,113 C90.509668,113 112,91.509668 112,65 C112,38.490332 90.509668,17 64,17 C37.490332,17 16,38.490332 16,65 C16,91.509668 37.490332,113 64,113 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-chevron-down tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n\t&lt;g fill-rule=\&quot;evenodd\&quot; transform=\&quot;translate(64.000000, 40.500000) rotate(-270.000000) translate(-64.000000, -40.500000) translate(-22.500000, -26.500000)\&quot;&gt;\n &lt;path d=\&quot;M112.743107,112.12741 C111.310627,113.561013 109.331747,114.449239 107.145951,114.449239 L27.9777917,114.449239 C23.6126002,114.449239 20.0618714,110.904826 20.0618714,106.532572 C20.0618714,102.169214 23.6059497,98.6159054 27.9777917,98.6159054 L99.2285381,98.6159054 L99.2285381,27.365159 C99.2285381,22.9999675 102.77295,19.4492387 107.145205,19.4492387 C111.508562,19.4492387 115.061871,22.993317 115.061871,27.365159 L115.061871,106.533318 C115.061871,108.71579 114.175869,110.694669 112.743378,112.127981 Z\&quot; transform=\&quot;translate(67.561871, 66.949239) rotate(-45.000000) translate(-67.561871, -66.949239) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M151.35638,112.12741 C149.923899,113.561013 147.94502,114.449239 145.759224,114.449239 L66.5910645,114.449239 C62.225873,114.449239 58.6751442,110.904826 58.6751442,106.532572 C58.6751442,102.169214 62.2192225,98.6159054 66.5910645,98.6159054 L137.841811,98.6159054 L137.841811,27.365159 C137.841811,22.9999675 141.386223,19.4492387 145.758478,19.4492387 C150.121835,19.4492387 153.675144,22.993317 153.675144,27.365159 L153.675144,106.533318 C153.675144,108.71579 152.789142,110.694669 151.356651,112.127981 Z\&quot; transform=\&quot;translate(106.175144, 66.949239) rotate(-45.000000) translate(-106.175144, -66.949239) \&quot;&gt;&lt;/path&gt;\n\t&lt;/g&gt;\n&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 class=\&quot;tc-image-chevron-left tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot; version=\&quot;1.1\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot; transform=\&quot;translate(92.500000, 64.000000) rotate(-180.000000) translate(-92.500000, -64.000000) translate(6.000000, -3.000000)\&quot;&gt;\n &lt;path d=\&quot;M112.743107,112.12741 C111.310627,113.561013 109.331747,114.449239 107.145951,114.449239 L27.9777917,114.449239 C23.6126002,114.449239 20.0618714,110.904826 20.0618714,106.532572 C20.0618714,102.169214 23.6059497,98.6159054 27.9777917,98.6159054 L99.2285381,98.6159054 L99.2285381,27.365159 C99.2285381,22.9999675 102.77295,19.4492387 107.145205,19.4492387 C111.508562,19.4492387 115.061871,22.993317 115.061871,27.365159 L115.061871,106.533318 C115.061871,108.71579 114.175869,110.694669 112.743378,112.127981 Z\&quot; transform=\&quot;translate(67.561871, 66.949239) rotate(-45.000000) translate(-67.561871, -66.949239) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M151.35638,112.12741 C149.923899,113.561013 147.94502,114.449239 145.759224,114.449239 L66.5910645,114.449239 C62.225873,114.449239 58.6751442,110.904826 58.6751442,106.532572 C58.6751442,102.169214 62.2192225,98.6159054 66.5910645,98.6159054 L137.841811,98.6159054 L137.841811,27.365159 C137.841811,22.9999675 141.386223,19.4492387 145.758478,19.4492387 C150.121835,19.4492387 153.675144,22.993317 153.675144,27.365159 L153.675144,106.533318 C153.675144,108.71579 152.789142,110.694669 151.356651,112.127981 Z\&quot; transform=\&quot;translate(106.175144, 66.949239) rotate(-45.000000) translate(-106.175144, -66.949239) \&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-chevron-right tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot; transform=\&quot;translate(-48.000000, -3.000000)\&quot;&gt;\n &lt;path d=\&quot;M112.743107,112.12741 C111.310627,113.561013 109.331747,114.449239 107.145951,114.449239 L27.9777917,114.449239 C23.6126002,114.449239 20.0618714,110.904826 20.0618714,106.532572 C20.0618714,102.169214 23.6059497,98.6159054 27.9777917,98.6159054 L99.2285381,98.6159054 L99.2285381,27.365159 C99.2285381,22.9999675 102.77295,19.4492387 107.145205,19.4492387 C111.508562,19.4492387 115.061871,22.993317 115.061871,27.365159 L115.061871,106.533318 C115.061871,108.71579 114.175869,110.694669 112.743378,112.127981 Z\&quot; transform=\&quot;translate(67.561871, 66.949239) rotate(-45.000000) translate(-67.561871, -66.949239) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M151.35638,112.12741 C149.923899,113.561013 147.94502,114.449239 145.759224,114.449239 L66.5910645,114.449239 C62.225873,114.449239 58.6751442,110.904826 58.6751442,106.532572 C58.6751442,102.169214 62.2192225,98.6159054 66.5910645,98.6159054 L137.841811,98.6159054 L137.841811,27.365159 C137.841811,22.9999675 141.386223,19.4492387 145.758478,19.4492387 C150.121835,19.4492387 153.675144,22.993317 153.675144,27.365159 L153.675144,106.533318 C153.675144,108.71579 152.789142,110.694669 151.356651,112.127981 Z\&quot; transform=\&quot;translate(106.175144, 66.949239) rotate(-45.000000) translate(-106.175144, -66.949239) \&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-chevron-up tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n\t&lt;g fill-rule=\&quot;evenodd\&quot; transform=\&quot;translate(64.000000, 89.500000) rotate(-90.000000) translate(-64.000000, -89.500000) translate(-22.500000, 22.500000)\&quot;&gt;\n &lt;path d=\&quot;M112.743107,112.12741 C111.310627,113.561013 109.331747,114.449239 107.145951,114.449239 L27.9777917,114.449239 C23.6126002,114.449239 20.0618714,110.904826 20.0618714,106.532572 C20.0618714,102.169214 23.6059497,98.6159054 27.9777917,98.6159054 L99.2285381,98.6159054 L99.2285381,27.365159 C99.2285381,22.9999675 102.77295,19.4492387 107.145205,19.4492387 C111.508562,19.4492387 115.061871,22.993317 115.061871,27.365159 L115.061871,106.533318 C115.061871,108.71579 114.175869,110.694669 112.743378,112.127981 Z\&quot; transform=\&quot;translate(67.561871, 66.949239) rotate(-45.000000) translate(-67.561871, -66.949239) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M151.35638,112.12741 C149.923899,113.561013 147.94502,114.449239 145.759224,114.449239 L66.5910645,114.449239 C62.225873,114.449239 58.6751442,110.904826 58.6751442,106.532572 C58.6751442,102.169214 62.2192225,98.6159054 66.5910645,98.6159054 L137.841811,98.6159054 L137.841811,27.365159 C137.841811,22.9999675 141.386223,19.4492387 145.758478,19.4492387 C150.121835,19.4492387 153.675144,22.993317 153.675144,27.365159 L153.675144,106.533318 C153.675144,108.71579 152.789142,110.694669 151.356651,112.127981 Z\&quot; transform=\&quot;translate(106.175144, 66.949239) rotate(-45.000000) translate(-106.175144, -66.949239) \&quot;&gt;&lt;/path&gt;\n\t&lt;/g&gt;\n&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 class=\&quot;tc-clone-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M32.2650915,96 L32.2650915,120.002359 C32.2650915,124.419334 35.8432884,128 40.2627323,128 L120.002359,128 C124.419334,128 128,124.421803 128,120.002359 L128,40.2627323 C128,35.8457573 124.421803,32.2650915 120.002359,32.2650915 L96,32.2650915 L96,48 L108.858899,48 C110.519357,48 111.853018,49.3405131 111.853018,50.9941198 L111.853018,108.858899 C111.853018,110.519357 110.512505,111.853018 108.858899,111.853018 L50.9941198,111.853018 C49.333661,111.853018 48,110.512505 48,108.858899 L48,96 L32.2650915,96 Z\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M40,56 L32.0070969,56 C27.5881712,56 24,52.418278 24,48 C24,43.5907123 27.5848994,40 32.0070969,40 L40,40 L40,32.0070969 C40,27.5881712 43.581722,24 48,24 C52.4092877,24 56,27.5848994 56,32.0070969 L56,40 L63.9929031,40 C68.4118288,40 72,43.581722 72,48 C72,52.4092877 68.4151006,56 63.9929031,56 L56,56 L56,63.9929031 C56,68.4118288 52.418278,72 48,72 C43.5907123,72 40,68.4151006 40,63.9929031 L40,56 Z M7.9992458,0 C3.58138434,0 0,3.5881049 0,7.9992458 L0,88.0007542 C0,92.4186157 3.5881049,96 7.9992458,96 L88.0007542,96 C92.4186157,96 96,92.4118951 96,88.0007542 L96,7.9992458 C96,3.58138434 92.4118951,0 88.0007542,0 L7.9992458,0 Z M19.0010118,16 C17.3435988,16 16,17.336731 16,19.0010118 L16,76.9989882 C16,78.6564012 17.336731,80 19.0010118,80 L76.9989882,80 C78.6564012,80 80,78.663269 80,76.9989882 L80,19.0010118 C80,17.3435988 78.663269,16 76.9989882,16 L19.0010118,16 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-close-all-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot; transform=\&quot;translate(-23.000000, -23.000000)\&quot;&gt;\n &lt;path d=\&quot;M43,131 L22.9976794,131 C18.5827987,131 15,127.418278 15,123 C15,118.590712 18.5806831,115 22.9976794,115 L43,115 L43,94.9976794 C43,90.5827987 46.581722,87 51,87 C55.4092877,87 59,90.5806831 59,94.9976794 L59,115 L79.0023206,115 C83.4172013,115 87,118.581722 87,123 C87,127.409288 83.4193169,131 79.0023206,131 L59,131 L59,151.002321 C59,155.417201 55.418278,159 51,159 C46.5907123,159 43,155.419317 43,151.002321 L43,131 Z\&quot; transform=\&quot;translate(51.000000, 123.000000) rotate(-45.000000) translate(-51.000000, -123.000000) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M43,59 L22.9976794,59 C18.5827987,59 15,55.418278 15,51 C15,46.5907123 18.5806831,43 22.9976794,43 L43,43 L43,22.9976794 C43,18.5827987 46.581722,15 51,15 C55.4092877,15 59,18.5806831 59,22.9976794 L59,43 L79.0023206,43 C83.4172013,43 87,46.581722 87,51 C87,55.4092877 83.4193169,59 79.0023206,59 L59,59 L59,79.0023206 C59,83.4172013 55.418278,87 51,87 C46.5907123,87 43,83.4193169 43,79.0023206 L43,59 Z\&quot; transform=\&quot;translate(51.000000, 51.000000) rotate(-45.000000) translate(-51.000000, -51.000000) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M115,59 L94.9976794,59 C90.5827987,59 87,55.418278 87,51 C87,46.5907123 90.5806831,43 94.9976794,43 L115,43 L115,22.9976794 C115,18.5827987 118.581722,15 123,15 C127.409288,15 131,18.5806831 131,22.9976794 L131,43 L151.002321,43 C155.417201,43 159,46.581722 159,51 C159,55.4092877 155.419317,59 151.002321,59 L131,59 L131,79.0023206 C131,83.4172013 127.418278,87 123,87 C118.590712,87 115,83.4193169 115,79.0023206 L115,59 Z\&quot; transform=\&quot;translate(123.000000, 51.000000) rotate(-45.000000) translate(-123.000000, -51.000000) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M115,131 L94.9976794,131 C90.5827987,131 87,127.418278 87,123 C87,118.590712 90.5806831,115 94.9976794,115 L115,115 L115,94.9976794 C115,90.5827987 118.581722,87 123,87 C127.409288,87 131,90.5806831 131,94.9976794 L131,115 L151.002321,115 C155.417201,115 159,118.581722 159,123 C159,127.409288 155.419317,131 151.002321,131 L131,131 L131,151.002321 C131,155.417201 127.418278,159 123,159 C118.590712,159 115,155.419317 115,151.002321 L115,131 Z\&quot; transform=\&quot;translate(123.000000, 123.000000) rotate(-45.000000) translate(-123.000000, -123.000000) \&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-close-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M65.0864256,75.4091629 L14.9727349,125.522854 C11.8515951,128.643993 6.78104858,128.64922 3.65685425,125.525026 C0.539017023,122.407189 0.5336324,117.334539 3.65902635,114.209145 L53.7727171,64.0954544 L3.65902635,13.9817637 C0.537886594,10.8606239 0.532659916,5.79007744 3.65685425,2.6658831 C6.77469148,-0.451954124 11.8473409,-0.457338747 14.9727349,2.66805521 L65.0864256,52.7817459 L115.200116,2.66805521 C118.321256,-0.453084553 123.391803,-0.458311231 126.515997,2.6658831 C129.633834,5.78372033 129.639219,10.8563698 126.513825,13.9817637 L76.4001341,64.0954544 L126.513825,114.209145 C129.634965,117.330285 129.640191,122.400831 126.515997,125.525026 C123.39816,128.642863 118.32551,128.648248 115.200116,125.522854 L65.0864256,75.4091629 L65.0864256,75.4091629 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&lt;/svg&gt;\n&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 class=\&quot;tc-image-close-others-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M64,128 C99.346224,128 128,99.346224 128,64 C128,28.653776 99.346224,0 64,0 C28.653776,0 0,28.653776 0,64 C0,99.346224 28.653776,128 64,128 Z M64,112 C90.509668,112 112,90.509668 112,64 C112,37.490332 90.509668,16 64,16 C37.490332,16 16,37.490332 16,64 C16,90.509668 37.490332,112 64,112 Z M64,96 C81.673112,96 96,81.673112 96,64 C96,46.326888 81.673112,32 64,32 C46.326888,32 32,46.326888 32,64 C32,81.673112 46.326888,96 64,96 Z M64,80 C72.836556,80 80,72.836556 80,64 C80,55.163444 72.836556,48 64,48 C55.163444,48 48,55.163444 48,64 C48,72.836556 55.163444,80 64,80 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-copy-clipboard tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n\t&lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n\t\t&lt;rect x=\&quot;40\&quot; y=\&quot;40\&quot; width=\&quot;33\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n\t\t&lt;rect x=\&quot;40\&quot; y=\&quot;82\&quot; width=\&quot;17\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n\t\t&lt;rect x=\&quot;40\&quot; y=\&quot;54\&quot; width=\&quot;17\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n\t\t&lt;rect x=\&quot;40\&quot; y=\&quot;96\&quot; width=\&quot;33\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n\t\t&lt;rect x=\&quot;40\&quot; y=\&quot;68\&quot; width=\&quot;12\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n\t\t&lt;path d=\&quot;M40,16 L23.9992458,16 C19.5813843,16 16,19.5907123 16,24 C16,24.0016363 16.0000005,24.0032725 16.0000015,24.0049086 C16.0000005,24.0065441 16,24.0081803 16,24.0098166 L16,119.990183 C16,119.99182 16.0000005,119.993456 16.0000015,119.995092 C16.0000005,119.996727 16,119.998364 16,120 C16,124.409288 19.5813843,128 23.9992458,128 L104.000754,128 C106.205061,128 108.203844,127.105595 109.652065,125.659342 C111.102424,124.21251 112,122.214511 112,120.007595 L112,103.992405 C112,99.5776607 108.418278,96 104,96 C99.5907123,96 96,99.5783218 96,103.992405 L96,112 L32,112 L32,32 L96,32 L96,40.0075946 C96,44.4223393 99.581722,48 104,48 C108.409288,48 112,44.4216782 112,40.0075946 L112,23.9924054 C112,21.7851587 111.104671,19.7871591 109.657101,18.3409203 C108.203844,16.8944047 106.205061,16 104.000754,16 L88,16 C88,11.5907123 84.4151006,8 79.9929031,8 L48.0070969,8 C43.5881712,8 40,11.581722 40,16 Z M44,14.9958262 C44,12.7889923 45.7964248,11 48.0000255,11 L79.9999745,11 C82.2091276,11 84,12.7965212 84,14.9958262 L84,19.0041738 C84,21.2110077 82.2035752,23 79.9999745,23 L48.0000255,23 C45.7908724,23 44,21.2034788 44,19.0041738 L44,14.9958262 Z\&quot;&gt;&lt;/path&gt;\n\t\t&lt;rect x=\&quot;62\&quot; y=\&quot;64\&quot; width=\&quot;66\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n\t\t&lt;path d=\&quot;M60.6568542,85.6568542 L76.6568542,69.6568543 L65.3431458,69.6568542 L81.3431458,85.6568542 C84.4673401,88.7810486 89.5326599,88.7810486 92.6568542,85.6568542 C95.7810486,82.5326599 95.7810486,77.4673401 92.6568542,74.3431458 L76.6568542,58.3431458 C73.5326599,55.2189514 68.4673401,55.2189514 65.3431458,58.3431457 L49.3431458,74.3431457 C46.2189514,77.4673401 46.2189514,82.5326599 49.3431457,85.6568542 C52.4673401,88.7810486 57.5326599,88.7810486 60.6568542,85.6568542 L60.6568542,85.6568542 Z\&quot; transform=\&quot;translate(71.000000, 72.000000) rotate(-90.000000) translate(-71.000000, -72.000000) \&quot;&gt;&lt;/path&gt;\n\t&lt;/g&gt;\n&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 class=\&quot;tc-image-delete-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot; transform=\&quot;translate(12.000000, 0.000000)\&quot;&gt;\n &lt;rect x=\&quot;0\&quot; y=\&quot;11\&quot; width=\&quot;105\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;28\&quot; y=\&quot;0\&quot; width=\&quot;48\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;8\&quot; y=\&quot;16\&quot; width=\&quot;16\&quot; height=\&quot;112\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;8\&quot; y=\&quot;112\&quot; width=\&quot;88\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;80\&quot; y=\&quot;16\&quot; width=\&quot;16\&quot; height=\&quot;112\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;56\&quot; y=\&quot;16\&quot; width=\&quot;16\&quot; height=\&quot;112\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;32\&quot; y=\&quot;16\&quot; width=\&quot;16\&quot; height=\&quot;112\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-done-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M3.52445141,76.8322939 C2.07397484,75.3828178 1.17514421,73.3795385 1.17514421,71.1666288 L1.17514421,23.1836596 C1.17514421,18.7531992 4.75686621,15.1751442 9.17514421,15.1751442 C13.5844319,15.1751442 17.1751442,18.7606787 17.1751442,23.1836596 L17.1751442,63.1751442 L119.173716,63.1751442 C123.590457,63.1751442 127.175144,66.7568662 127.175144,71.1751442 C127.175144,75.5844319 123.592783,79.1751442 119.173716,79.1751442 L9.17657227,79.1751442 C6.96796403,79.1751442 4.9674142,78.279521 3.51911285,76.8315312 Z\&quot; id=\&quot;Rectangle-285\&quot; transform=\&quot;translate(64.175144, 47.175144) rotate(-45.000000) translate(-64.175144, -47.175144) \&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-down-arrow tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;path d=\&quot;M109.35638,81.3533152 C107.923899,82.7869182 105.94502,83.6751442 103.759224,83.6751442 L24.5910645,83.6751442 C20.225873,83.6751442 16.6751442,80.1307318 16.6751442,75.7584775 C16.6751442,71.3951199 20.2192225,67.8418109 24.5910645,67.8418109 L95.8418109,67.8418109 L95.8418109,-3.40893546 C95.8418109,-7.77412698 99.3862233,-11.3248558 103.758478,-11.3248558 C108.121835,-11.3248558 111.675144,-7.78077754 111.675144,-3.40893546 L111.675144,75.7592239 C111.675144,77.9416955 110.789142,79.9205745 109.356651,81.3538862 Z\&quot; transform=\&quot;translate(64.175144, 36.175144) rotate(45.000000) translate(-64.175144, -36.175144) \&quot;&gt;&lt;/path&gt;\n&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 class=\&quot;tc-image-download-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;&lt;g fill-rule=\&quot;evenodd\&quot;&gt;&lt;path class=\&quot;tc-image-download-button-ring\&quot; d=\&quot;M64,128 C99.346224,128 128,99.346224 128,64 C128,28.653776 99.346224,0 64,0 C28.653776,0 0,28.653776 0,64 C0,99.346224 28.653776,128 64,128 Z M64,112 C90.509668,112 112,90.509668 112,64 C112,37.490332 90.509668,16 64,16 C37.490332,16 16,37.490332 16,64 C16,90.509668 37.490332,112 64,112 Z\&quot;/&gt;&lt;path d=\&quot;M34.3496823,66.4308767 L61.2415823,93.634668 C63.0411536,95.4551107 65.9588502,95.4551107 67.7584215,93.634668 L94.6503215,66.4308767 C96.4498928,64.610434 96.4498928,61.6588981 94.6503215,59.8384554 C93.7861334,58.9642445 92.6140473,58.4731195 91.3919019,58.4731195 L82.9324098,58.4731195 C80.3874318,58.4731195 78.3243078,56.3860674 78.3243078,53.8115729 L78.3243078,38.6615466 C78.3243078,36.0870521 76.2611837,34 73.7162058,34 L55.283798,34 C52.7388201,34 50.675696,36.0870521 50.675696,38.6615466 L50.675696,38.6615466 L50.675696,53.8115729 C50.675696,56.3860674 48.612572,58.4731195 46.0675941,58.4731195 L37.608102,58.4731195 C35.063124,58.4731195 33,60.5601716 33,63.134666 C33,64.3709859 33.4854943,65.5566658 34.3496823,66.4308767 L34.3496823,66.4308767 Z\&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 class=\&quot;tc-image-edit-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M116.870058,45.3431458 L108.870058,45.3431458 L108.870058,45.3431458 L108.870058,61.3431458 L116.870058,61.3431458 L116.870058,45.3431458 Z M124.870058,45.3431458 L127.649881,45.3431458 C132.066101,45.3431458 135.656854,48.9248678 135.656854,53.3431458 C135.656854,57.7524334 132.07201,61.3431458 127.649881,61.3431458 L124.870058,61.3431458 L124.870058,45.3431458 Z M100.870058,45.3431458 L15.6638275,45.3431458 C15.5064377,45.3431458 15.3501085,45.3476943 15.1949638,45.3566664 L15.1949638,45.3566664 C15.0628002,45.3477039 14.928279,45.3431458 14.7913977,45.3431458 C6.68160973,45.3431458 -8.34314575,53.3431458 -8.34314575,53.3431458 C-8.34314575,53.3431458 6.85614548,61.3431458 14.7913977,61.3431458 C14.9266533,61.3431458 15.0596543,61.3384973 15.190398,61.3293588 C15.3470529,61.3385075 15.5049057,61.3431458 15.6638275,61.3431458 L100.870058,61.3431458 L100.870058,45.3431458 L100.870058,45.3431458 Z\&quot; transform=\&quot;translate(63.656854, 53.343146) rotate(-45.000000) translate(-63.656854, -53.343146) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M35.1714596,124.189544 C41.9594858,123.613403 49.068777,121.917633 58.85987,118.842282 C60.6854386,118.268877 62.4306907,117.705515 65.1957709,116.802278 C81.1962861,111.575575 87.0734839,109.994907 93.9414474,109.655721 C102.29855,109.242993 107.795169,111.785371 111.520478,118.355045 C112.610163,120.276732 115.051363,120.951203 116.97305,119.861518 C118.894737,118.771832 119.569207,116.330633 118.479522,114.408946 C113.146151,105.003414 104.734907,101.112919 93.5468356,101.66546 C85.6716631,102.054388 79.4899908,103.716944 62.7116783,109.197722 C59.9734132,110.092199 58.2519873,110.64787 56.4625698,111.20992 C37.002649,117.322218 25.6914684,118.282267 16.8654804,112.957098 C14.9739614,111.815848 12.5154166,112.424061 11.3741667,114.31558 C10.2329168,116.207099 10.84113,118.665644 12.7326489,119.806894 C19.0655164,123.627836 26.4866335,124.926678 35.1714596,124.189544 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-erase tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M60.0870401,127.996166 L123.102318,64.980888 C129.636723,58.4464827 129.629513,47.8655877 123.098967,41.3350425 L99.4657866,17.7018617 C92.927448,11.1635231 82.3486358,11.1698163 75.8199411,17.698511 L4.89768189,88.6207702 C-1.63672343,95.1551755 -1.6295126,105.736071 4.90103262,112.266616 L20.6305829,127.996166 L60.0870401,127.996166 Z M25.1375576,120.682546 L10.812569,106.357558 C7.5455063,103.090495 7.54523836,97.793808 10.8048093,94.5342371 L46.2691086,59.0699377 L81.7308914,94.5317205 L55.5800654,120.682546 L25.1375576,120.682546 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-excise tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M56,107.313709 L53.6568542,109.656854 C50.5326599,112.781049 45.4673401,112.781049 42.3431457,109.656854 C39.2189514,106.53266 39.2189514,101.46734 42.3431458,98.3431457 L58.3431458,82.3431457 C61.4673401,79.2189514 66.5326599,79.2189514 69.6568542,82.3431458 L85.6568542,98.3431458 C88.7810486,101.46734 88.7810486,106.53266 85.6568542,109.656854 C82.5326599,112.781049 77.4673401,112.781049 74.3431458,109.656854 L72,107.313708 L72,121.597798 C72,125.133636 68.418278,128 64,128 C59.581722,128 56,125.133636 56,121.597798 L56,107.313709 Z M0,40.0070969 C0,35.5848994 3.59071231,32 8,32 C12.418278,32 16,35.5881712 16,40.0070969 L16,71.9929031 C16,76.4151006 12.4092877,80 8,80 C3.581722,80 0,76.4118288 0,71.9929031 L0,40.0070969 Z M32,40.0070969 C32,35.5848994 35.5907123,32 40,32 C44.418278,32 48,35.5881712 48,40.0070969 L48,71.9929031 C48,76.4151006 44.4092877,80 40,80 C35.581722,80 32,76.4118288 32,71.9929031 L32,40.0070969 Z M80,40.0070969 C80,35.5848994 83.5907123,32 88,32 C92.418278,32 96,35.5881712 96,40.0070969 L96,71.9929031 C96,76.4151006 92.4092877,80 88,80 C83.581722,80 80,76.4118288 80,71.9929031 L80,40.0070969 Z M56,8.00709688 C56,3.58489938 59.5907123,0 64,0 C68.418278,0 72,3.58817117 72,8.00709688 L72,39.9929031 C72,44.4151006 68.4092877,48 64,48 C59.581722,48 56,44.4118288 56,39.9929031 L56,8.00709688 Z M112,40.0070969 C112,35.5848994 115.590712,32 120,32 C124.418278,32 128,35.5881712 128,40.0070969 L128,71.9929031 C128,76.4151006 124.409288,80 120,80 C115.581722,80 112,76.4118288 112,71.9929031 L112,40.0070969 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-export-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M8.00348646,127.999999 C8.00464867,128 8.00581094,128 8.00697327,128 L119.993027,128 C122.205254,128 124.207939,127.101378 125.657096,125.651198 L125.656838,125.65759 C127.104563,124.210109 128,122.21009 128,119.999949 L128,56.0000511 C128,51.5817449 124.409288,48 120,48 C115.581722,48 112,51.5797863 112,56.0000511 L112,112 L16,112 L16,56.0000511 C16,51.5817449 12.4092877,48 8,48 C3.581722,48 7.10542736e-15,51.5797863 7.10542736e-15,56.0000511 L7.10542736e-15,119.999949 C7.10542736e-15,124.418255 3.59071231,128 8,128 C8.00116233,128 8.0023246,128 8.00348681,127.999999 Z M56.6235633,27.3113724 L47.6580188,36.2769169 C44.5333664,39.4015692 39.4634864,39.4061295 36.339292,36.2819351 C33.2214548,33.1640979 33.2173444,28.0901742 36.3443103,24.9632084 L58.9616908,2.34582788 C60.5248533,0.782665335 62.5748436,0.000361191261 64.624516,2.38225238e-14 L64.6193616,0.00151809229 C66.6695374,0.000796251595 68.7211167,0.781508799 70.2854358,2.34582788 L92.9028163,24.9632084 C96.0274686,28.0878607 96.0320289,33.1577408 92.9078345,36.2819351 C89.7899973,39.3997724 84.7160736,39.4038827 81.5891078,36.2769169 L72.6235633,27.3113724 L72.6235633,88.5669606 C72.6235633,92.9781015 69.0418413,96.5662064 64.6235633,96.5662064 C60.2142756,96.5662064 56.6235633,92.984822 56.6235633,88.5669606 L56.6235633,27.3113724 L56.6235633,27.3113724 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-file tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;nonzero\&quot;&gt;\n &lt;path d=\&quot;M111.96811,30.5 L112,30.5 L112,119.999079 C112,124.417866 108.419113,128 104.000754,128 L23.9992458,128 C19.5813843,128 16,124.417687 16,119.999079 L16,8.00092105 C16,3.58213437 19.5808867,0 23.9992458,0 L81,0 L81,0.0201838424 C83.1589869,-0.071534047 85.3482153,0.707077645 86.9982489,2.35711116 L109.625176,24.9840387 C111.151676,26.510538 111.932942,28.4998414 111.96811,30.5 L111.96811,30.5 Z M81,8 L24,8 L24,120 L104,120 L104,30.5 L89.0003461,30.5 C84.5818769,30.5 81,26.9216269 81,22.4996539 L81,8 Z\&quot;&gt;&lt;/path&gt;\n &lt;rect x=\&quot;32\&quot; y=\&quot;36\&quot; width=\&quot;64\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;32\&quot; y=\&quot;52\&quot; width=\&quot;64\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;32\&quot; y=\&quot;68\&quot; width=\&quot;64\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;32\&quot; y=\&quot;84\&quot; width=\&quot;64\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;32\&quot; y=\&quot;100\&quot; width=\&quot;64\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;32\&quot; y=\&quot;20\&quot; width=\&quot;40\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-fixed-height tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M60,35.6568542 L50.8284271,44.8284271 C49.26633,46.3905243 46.73367,46.3905243 45.1715729,44.8284271 C43.6094757,43.26633 43.6094757,40.73367 45.1715729,39.1715729 L61.1715729,23.1715729 C62.73367,21.6094757 65.2663299,21.6094757 66.8284271,23.1715728 L82.8284278,39.1715728 C84.390525,40.7336699 84.390525,43.2663299 82.8284279,44.8284271 C81.2663308,46.3905243 78.7336709,46.3905243 77.1715737,44.8284272 L68,35.6568539 L68,93.3431461 L77.1715737,84.1715728 C78.7336709,82.6094757 81.2663308,82.6094757 82.8284279,84.1715729 C84.390525,85.7336701 84.390525,88.2663301 82.8284278,89.8284272 L66.8284271,105.828427 C65.2663299,107.390524 62.73367,107.390524 61.1715729,105.828427 L45.1715729,89.8284271 C43.6094757,88.26633 43.6094757,85.73367 45.1715729,84.1715729 C46.73367,82.6094757 49.26633,82.6094757 50.8284271,84.1715729 L60,93.3431458 L60,35.6568542 L60,35.6568542 Z M16,116 L112,116 C114.209139,116 116,114.209139 116,112 C116,109.790861 114.209139,108 112,108 L16,108 C13.790861,108 12,109.790861 12,112 C12,114.209139 13.790861,116 16,116 L16,116 Z M16,20 L112,20 C114.209139,20 116,18.209139 116,16 C116,13.790861 114.209139,12 112,12 L16,12 C13.790861,12 12,13.790861 12,16 C12,18.209139 13.790861,20 16,20 L16,20 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-fold-all tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;rect x=\&quot;0\&quot; y=\&quot;0\&quot; width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;0\&quot; y=\&quot;64\&quot; width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;path d=\&quot;M64.0292774,58.6235628 C61.9791013,58.6242848 59.9275217,57.8435723 58.3632024,56.279253 L35.7458219,33.6618725 C32.6211696,30.5372202 32.6166093,25.4673401 35.7408036,22.3431458 C38.8586409,19.2253085 43.9325646,19.2211982 47.0595304,22.348164 L64.0250749,39.3137085 L80.9906194,22.348164 C84.1152717,19.2235117 89.1851518,19.2189514 92.3093461,22.3431458 C95.4271834,25.460983 95.4312937,30.5349067 92.3043279,33.6618725 L69.6869474,56.279253 C68.1237851,57.8424153 66.0737951,58.6247195 64.0241231,58.6250809 Z\&quot; transform=\&quot;translate(64.024316, 39.313708) scale(1, -1) translate(-64.024316, -39.313708) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M64.0292774,123.621227 C61.9791013,123.621949 59.9275217,122.841236 58.3632024,121.276917 L35.7458219,98.6595365 C32.6211696,95.5348842 32.6166093,90.4650041 35.7408036,87.3408098 C38.8586409,84.2229725 43.9325646,84.2188622 47.0595304,87.345828 L64.0250749,104.311373 L80.9906194,87.345828 C84.1152717,84.2211757 89.1851518,84.2166154 92.3093461,87.3408098 C95.4271834,90.458647 95.4312937,95.5325707 92.3043279,98.6595365 L69.6869474,121.276917 C68.1237851,122.840079 66.0737951,123.622383 64.0241231,123.622745 Z\&quot; transform=\&quot;translate(64.024316, 104.311372) scale(1, -1) translate(-64.024316, -104.311372) \&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-fold tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;rect x=\&quot;0\&quot; y=\&quot;0\&quot; width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;path d=\&quot;M64.0292774,63.6235628 C61.9791013,63.6242848 59.9275217,62.8435723 58.3632024,61.279253 L35.7458219,38.6618725 C32.6211696,35.5372202 32.6166093,30.4673401 35.7408036,27.3431458 C38.8586409,24.2253085 43.9325646,24.2211982 47.0595304,27.348164 L64.0250749,44.3137085 L80.9906194,27.348164 C84.1152717,24.2235117 89.1851518,24.2189514 92.3093461,27.3431458 C95.4271834,30.460983 95.4312937,35.5349067 92.3043279,38.6618725 L69.6869474,61.279253 C68.1237851,62.8424153 66.0737951,63.6247195 64.0241231,63.6250809 Z\&quot; transform=\&quot;translate(64.024316, 44.313708) scale(1, -1) translate(-64.024316, -44.313708) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M64.0049614,105.998482 C61.9547853,105.999204 59.9032057,105.218491 58.3388864,103.654172 L35.7215059,81.0367916 C32.5968535,77.9121393 32.5922933,72.8422592 35.7164876,69.7180649 C38.8343248,66.6002276 43.9082485,66.5961173 47.0352144,69.7230831 L64.0007589,86.6886276 L80.9663034,69.7230831 C84.0909557,66.5984308 89.1608358,66.5938705 92.2850301,69.7180649 C95.4028673,72.8359021 95.4069777,77.9098258 92.2800119,81.0367916 L69.6626314,103.654172 C68.099469,105.217334 66.0494791,105.999639 63.999807,106 Z\&quot; transform=\&quot;translate(64.000000, 86.688628) scale(1, -1) translate(-64.000000, -86.688628) \&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-fold-others tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;rect x=\&quot;0\&quot; y=\&quot;56.0314331\&quot; width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;path d=\&quot;M101.657101,104.948818 C100.207918,103.498614 98.2051847,102.599976 95.9929031,102.599976 L72,102.599976 L72,78.6070725 C72,76.3964271 71.1036108,74.3936927 69.6545293,72.9441002 L69.6571005,72.9488183 C68.2079177,71.4986143 66.2051847,70.5999756 63.9929031,70.5999756 L32.0070969,70.5999756 C27.5881712,70.5999756 24,74.1816976 24,78.5999756 C24,83.0092633 27.5848994,86.5999756 32.0070969,86.5999756 L56,86.5999756 L56,110.592879 C56,112.803524 56.8963895,114.806259 58.3454713,116.255852 L58.3429,116.251133 C59.7920828,117.701337 61.7948156,118.599976 64.0070969,118.599976 L88,118.599976 L88,142.592879 C88,147.011804 91.581722,150.599976 96,150.599976 C100.409288,150.599976 104,147.015076 104,142.592879 L104,110.607072 C104,108.396427 103.103611,106.393693 101.654529,104.9441 Z\&quot; transform=\&quot;translate(64.000000, 110.599976) rotate(-45.000000) translate(-64.000000, -110.599976) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M101.725643,11.7488671 C100.27646,10.2986632 98.2737272,9.40002441 96.0614456,9.40002441 L72.0685425,9.40002441 L72.0685425,-14.5928787 C72.0685425,-16.8035241 71.1721533,-18.8062584 69.7230718,-20.255851 L69.725643,-20.2511329 C68.2764602,-21.7013368 66.2737272,-22.5999756 64.0614456,-22.5999756 L32.0756394,-22.5999756 C27.6567137,-22.5999756 24.0685425,-19.0182536 24.0685425,-14.5999756 C24.0685425,-10.1906879 27.6534419,-6.59997559 32.0756394,-6.59997559 L56.0685425,-6.59997559 L56.0685425,17.3929275 C56.0685425,19.6035732 56.964932,21.6063078 58.4140138,23.0559004 L58.4114425,23.0511823 C59.8606253,24.5013859 61.8633581,25.4000244 64.0756394,25.4000244 L88.0685425,25.4000244 L88.0685425,49.3929275 C88.0685425,53.8118532 91.6502645,57.4000244 96.0685425,57.4000244 C100.47783,57.4000244 104.068542,53.815125 104.068542,49.3929275 L104.068542,17.4071213 C104.068542,15.1964759 103.172153,13.1937416 101.723072,11.744149 Z\&quot; transform=\&quot;translate(64.068542, 17.400024) scale(1, -1) rotate(-45.000000) translate(-64.068542, -17.400024) \&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-folder tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M55.6943257,128.000004 L7.99859666,128.000004 C3.5810937,128.000004 0,124.413822 0,119.996384 L0,48.0036243 C0,43.5833471 3.58387508,40.0000044 7.99859666,40.0000044 L16,40.0000044 L16,31.9999914 C16,27.5817181 19.5783731,24 24.0003461,24 L55.9996539,24 C60.4181231,24 64,27.5800761 64,31.9999914 L64,40.0000044 L104.001403,40.0000044 C108.418906,40.0000044 112,43.5861868 112,48.0036243 L112,59.8298353 L104,59.7475921 L104,51.9994189 C104,49.7887607 102.207895,48.0000044 99.9972215,48.0000044 L56,48.0000044 L56,36.0000255 C56,33.7898932 54.2072328,32 51.9957423,32 L28.0042577,32 C25.7890275,32 24,33.7908724 24,36.0000255 L24,48.0000044 L12.0027785,48.0000044 C9.78987688,48.0000044 8,49.7906032 8,51.9994189 L8,116.00059 C8,118.211248 9.79210499,120.000004 12.0027785,120.000004 L58.7630167,120.000004 L55.6943257,128.000004 L55.6943257,128.000004 Z\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M23.8728955,55.5 L119.875702,55.5 C124.293205,55.5 126.87957,59.5532655 125.650111,64.5630007 L112.305967,118.936999 C111.077582,123.942356 106.497904,128 102.083183,128 L6.08037597,128 C1.66287302,128 -0.923492342,123.946735 0.305967145,118.936999 L13.650111,64.5630007 C14.878496,59.5576436 19.4581739,55.5 23.8728955,55.5 L23.8728955,55.5 L23.8728955,55.5 Z M25.6530124,64 L113.647455,64 C115.858129,64 117.151473,66.0930612 116.538306,68.6662267 L105.417772,115.333773 C104.803671,117.910859 102.515967,120 100.303066,120 L12.3086228,120 C10.0979492,120 8.8046054,117.906939 9.41777189,115.333773 L20.5383062,68.6662267 C21.1524069,66.0891409 23.4401107,64 25.6530124,64 L25.6530124,64 L25.6530124,64 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-full-screen-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g&gt;\n &lt;g&gt;\n &lt;path d=\&quot;M5.29777586e-31,8 C1.59060409e-15,3.581722 3.581722,0 8,0 L40,0 C44.418278,0 48,3.581722 48,8 C48,12.418278 44.418278,16 40,16 L16,16 L16,40 C16,44.418278 12.418278,48 8,48 C3.581722,48 -3.55271368e-15,44.418278 0,40 L3.55271368e-15,8 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n &lt;g transform=\&quot;translate(104.000000, 104.000000) rotate(-180.000000) translate(-104.000000, -104.000000) translate(80.000000, 80.000000)\&quot;&gt;\n &lt;path d=\&quot;M5.29777586e-31,8 C1.59060409e-15,3.581722 3.581722,0 8,0 L40,0 C44.418278,0 48,3.581722 48,8 C48,12.418278 44.418278,16 40,16 L16,16 L16,40 C16,44.418278 12.418278,48 8,48 C3.581722,48 -3.55271368e-15,44.418278 0,40 L3.55271368e-15,8 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n &lt;g transform=\&quot;translate(24.000000, 104.000000) rotate(-90.000000) translate(-24.000000, -104.000000) translate(0.000000, 80.000000)\&quot;&gt;\n &lt;path d=\&quot;M5.29777586e-31,8 C1.59060409e-15,3.581722 3.581722,0 8,0 L40,0 C44.418278,0 48,3.581722 48,8 C48,12.418278 44.418278,16 40,16 L16,16 L16,40 C16,44.418278 12.418278,48 8,48 C3.581722,48 -3.55271368e-15,44.418278 0,40 L3.55271368e-15,8 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n &lt;g transform=\&quot;translate(104.000000, 24.000000) rotate(90.000000) translate(-104.000000, -24.000000) translate(80.000000, 0.000000)\&quot;&gt;\n &lt;path d=\&quot;M5.29777586e-31,8 C1.59060409e-15,3.581722 3.581722,0 8,0 L40,0 C44.418278,0 48,3.581722 48,8 C48,12.418278 44.418278,16 40,16 L16,16 L16,40 C16,44.418278 12.418278,48 8,48 C3.581722,48 -3.55271368e-15,44.418278 0,40 L3.55271368e-15,8 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-github tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M63.9383506,1.60695328 C28.6017227,1.60695328 -0.055756057,30.2970814 -0.055756057,65.6906208 C-0.055756057,94.003092 18.2804728,118.019715 43.7123154,126.493393 C46.9143781,127.083482 48.0812647,125.104717 48.0812647,123.405261 C48.0812647,121.886765 48.02626,117.85449 47.9948287,112.508284 C30.1929317,116.379268 26.4368926,103.916587 26.4368926,103.916587 C23.5255693,96.5129372 19.3294921,94.5420399 19.3294921,94.5420399 C13.5186324,90.5687739 19.7695302,90.6474524 19.7695302,90.6474524 C26.1933001,91.099854 29.5721638,97.2525155 29.5721638,97.2525155 C35.2808718,107.044059 44.5531024,104.215566 48.1991321,102.575118 C48.7806109,98.4366275 50.4346826,95.612068 52.2616263,94.0109598 C38.0507543,92.3941159 23.1091047,86.8944862 23.1091047,62.3389152 C23.1091047,55.3443933 25.6039634,49.6205298 29.6978889,45.1437211 C29.0378318,43.5229433 26.8415704,37.0044266 30.3265147,28.1845627 C30.3265147,28.1845627 35.6973364,26.4615028 47.9241083,34.7542205 C53.027764,33.330139 58.5046663,32.6220321 63.9462084,32.5944947 C69.3838216,32.6220321 74.856795,33.330139 79.9683085,34.7542205 C92.1872225,26.4615028 97.5501864,28.1845627 97.5501864,28.1845627 C101.042989,37.0044266 98.8467271,43.5229433 98.190599,45.1437211 C102.292382,49.6205298 104.767596,55.3443933 104.767596,62.3389152 C104.767596,86.9574291 89.8023734,92.3744463 75.5482834,93.9598188 C77.8427675,95.9385839 79.8897303,99.8489072 79.8897303,105.828476 C79.8897303,114.392635 79.8111521,121.304544 79.8111521,123.405261 C79.8111521,125.120453 80.966252,127.114954 84.2115327,126.489459 C109.623731,117.996111 127.944244,93.9952241 127.944244,65.6906208 C127.944244,30.2970814 99.2867652,1.60695328 63.9383506,1.60695328\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n &lt;/svg&gt;\n&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 class=\&quot;tc-image-gitter tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 18 25\&quot;&gt;\n &lt;rect x=\&quot;15\&quot; y=\&quot;5\&quot; width=\&quot;2\&quot; height=\&quot;10\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;10\&quot; y=\&quot;5\&quot; width=\&quot;2\&quot; height=\&quot;20\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;5\&quot; y=\&quot;5\&quot; width=\&quot;2\&quot; height=\&quot;20\&quot;&gt;&lt;/rect&gt;\n &lt;rect width=\&quot;2\&quot; height=\&quot;15\&quot;&gt;&lt;/rect&gt;\n&lt;/svg&gt;\n&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 class=\&quot;tc-image-globe tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M72.8111354,37.1275855 C72.8111354,37.9789875 72.8111354,38.8303894 72.8111354,39.6817913 C72.8111354,41.8784743 73.7885604,46.5631866 72.8111354,48.5143758 C71.3445471,51.4420595 68.1617327,52.0543531 66.4170946,54.3812641 C65.2352215,55.9575873 61.7987417,64.9821523 62.7262858,67.3005778 C66.6959269,77.2228204 74.26087,70.4881886 80.6887657,76.594328 C81.5527211,77.415037 83.5758191,78.8666631 83.985137,79.8899578 C87.2742852,88.1128283 76.4086873,94.8989524 87.7419325,106.189751 C88.9872885,107.430443 91.555495,102.372895 91.8205061,101.575869 C92.6726866,99.0129203 98.5458765,96.1267309 100.908882,94.5234439 C102.928056,93.1534443 105.782168,91.8557166 107.236936,89.7775886 C109.507391,86.5342557 108.717505,82.2640435 110.334606,79.0328716 C112.473794,74.7585014 114.163418,69.3979002 116.332726,65.0674086 C120.230862,57.2857361 121.054075,67.1596684 121.400359,67.5059523 C121.757734,67.8633269 122.411167,67.5059523 122.916571,67.5059523 C123.011132,67.5059523 124.364019,67.6048489 124.432783,67.5059523 C125.0832,66.5705216 123.390209,49.5852316 123.114531,48.2089091 C121.710578,41.1996597 116.17083,32.4278331 111.249523,27.7092761 C104.975994,21.6942076 104.160516,11.5121686 92.9912146,12.7547535 C92.7872931,12.7774397 87.906794,22.9027026 85.2136766,26.2672064 C81.486311,30.9237934 82.7434931,22.1144904 78.6876623,22.1144904 C78.6065806,22.1144904 77.5045497,22.0107615 77.4353971,22.1144904 C76.8488637,22.9942905 75.9952305,26.0101404 75.1288269,26.5311533 C74.8635477,26.6906793 73.4071369,26.2924966 73.2826811,26.5311533 C71.0401728,30.8313939 81.5394677,28.7427264 79.075427,34.482926 C76.7225098,39.9642538 72.747373,32.4860199 72.747373,43.0434079\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M44.4668556,7.01044608 C54.151517,13.1403033 45.1489715,19.2084878 47.1611905,23.2253896 C48.8157833,26.5283781 51.4021933,28.6198851 48.8753629,33.038878 C46.8123257,36.6467763 42.0052989,37.0050492 39.251679,39.7621111 C36.2115749,42.8060154 33.7884281,48.7028116 32.4624592,52.6732691 C30.8452419,57.5158356 47.0088721,59.5388126 44.5246867,63.6811917 C43.1386839,65.9923513 37.7785192,65.1466282 36.0880227,63.8791519 C34.9234453,63.0059918 32.4946425,63.3331166 31.6713597,62.0997342 C29.0575851,58.1839669 29.4107339,54.0758543 28.0457962,49.9707786 C27.1076833,47.1493864 21.732611,47.8501656 20.2022714,49.3776393 C19.6790362,49.8998948 19.8723378,51.1703278 19.8723378,51.8829111 C19.8723378,57.1682405 26.9914913,55.1986414 26.9914913,58.3421973 C26.9914913,72.9792302 30.9191897,64.8771867 38.1313873,69.6793121 C48.1678018,76.3618966 45.9763926,76.981595 53.0777543,84.0829567 C56.7511941,87.7563965 60.8192437,87.7689005 62.503478,93.3767069 C64.1046972,98.7081071 53.1759798,98.7157031 50.786754,100.825053 C49.663965,101.816317 47.9736094,104.970571 46.5680513,105.439676 C44.7757187,106.037867 43.334221,105.93607 41.6242359,107.219093 C39.1967302,109.040481 37.7241465,112.151588 37.6034934,112.030935 C35.4555278,109.88297 34.0848666,96.5511248 33.7147244,93.7726273 C33.1258872,89.3524817 28.1241923,88.2337027 26.7275443,84.7420826 C25.1572737,80.8164061 28.2518481,75.223612 25.599097,70.9819941 C19.0797019,60.557804 13.7775712,56.4811506 10.2493953,44.6896152 C9.3074899,41.5416683 13.5912267,38.1609942 15.1264825,35.8570308 C17.0029359,33.0410312 17.7876232,30.0028946 19.8723378,27.2224065 C22.146793,24.1888519 40.8551166,9.46076832 43.8574051,8.63490613 L44.4668556,7.01044608 Z\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M64,126 C98.2416545,126 126,98.2416545 126,64 C126,29.7583455 98.2416545,2 64,2 C29.7583455,2 2,29.7583455 2,64 C2,98.2416545 29.7583455,126 64,126 Z M64,120 C94.927946,120 120,94.927946 120,64 C120,33.072054 94.927946,8 64,8 C33.072054,8 8,33.072054 8,64 C8,94.927946 33.072054,120 64,120 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-heading-1 tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M14,30 L27.25,30 L27.25,60.104 L61.7,60.104 L61.7,30 L74.95,30 L74.95,105.684 L61.7,105.684 L61.7,71.552 L27.25,71.552 L27.25,105.684 L14,105.684 L14,30 Z M84.3350766,43.78 C86.8790893,43.78 89.3523979,43.5680021 91.7550766,43.144 C94.1577553,42.7199979 96.3307336,42.0133383 98.2740766,41.024 C100.21742,40.0346617 101.87807,38.7626744 103.256077,37.208 C104.634084,35.6533256 105.535075,33.7453446 105.959077,31.484 L115.817077,31.484 L115.817077,105.684 L102.567077,105.684 L102.567077,53.32 L84.3350766,53.32 L84.3350766,43.78 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-heading-2 tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M6,30 L19.25,30 L19.25,60.104 L53.7,60.104 L53.7,30 L66.95,30 L66.95,105.684 L53.7,105.684 L53.7,71.552 L19.25,71.552 L19.25,105.684 L6,105.684 L6,30 Z M125.519077,105.684 L74.8510766,105.684 C74.9217436,99.5359693 76.4057288,94.1653563 79.3030766,89.572 C82.2004244,84.9786437 86.1577182,80.986017 91.1750766,77.594 C93.5777553,75.8273245 96.0863969,74.113675 98.7010766,72.453 C101.315756,70.792325 103.718399,69.0080095 105.909077,67.1 C108.099754,65.1919905 109.901736,63.1250111 111.315077,60.899 C112.728417,58.6729889 113.47041,56.1113478 113.541077,53.214 C113.541077,51.8713266 113.382078,50.4403409 113.064077,48.921 C112.746075,47.4016591 112.127748,45.9883399 111.209077,44.681 C110.290405,43.3736601 109.018418,42.2783377 107.393077,41.395 C105.767735,40.5116622 103.647756,40.07 101.033077,40.07 C98.6303979,40.07 96.6340846,40.5469952 95.0440766,41.501 C93.4540687,42.4550048 92.1820814,43.762325 91.2280766,45.423 C90.2740719,47.083675 89.5674123,49.0446554 89.1080766,51.306 C88.648741,53.5673446 88.3837436,56.0053203 88.3130766,58.62 L76.2290766,58.62 C76.2290766,54.5213128 76.7767378,50.7230175 77.8720766,47.225 C78.9674154,43.7269825 80.610399,40.7060127 82.8010766,38.162 C84.9917542,35.6179873 87.6593942,33.6216739 90.8040766,32.173 C93.948759,30.7243261 97.6057224,30 101.775077,30 C106.297766,30 110.078395,30.7419926 113.117077,32.226 C116.155758,33.7100074 118.611401,35.5826554 120.484077,37.844 C122.356753,40.1053446 123.681739,42.5609868 124.459077,45.211 C125.236414,47.8610133 125.625077,50.3873213 125.625077,52.79 C125.625077,55.7580148 125.165748,58.4433213 124.247077,60.846 C123.328405,63.2486787 122.091751,65.4569899 120.537077,67.471 C118.982402,69.4850101 117.215753,71.3399915 115.237077,73.036 C113.2584,74.7320085 111.209087,76.3219926 109.089077,77.806 C106.969066,79.2900074 104.849087,80.7033266 102.729077,82.046 C100.609066,83.3886734 98.6480856,84.7313266 96.8460766,86.074 C95.0440676,87.4166734 93.47175,88.8123261 92.1290766,90.261 C90.7864032,91.7096739 89.8677458,93.2466585 89.3730766,94.872 L125.519077,94.872 L125.519077,105.684 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-heading-3 tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M6,30 L19.25,30 L19.25,60.104 L53.7,60.104 L53.7,30 L66.95,30 L66.95,105.684 L53.7,105.684 L53.7,71.552 L19.25,71.552 L19.25,105.684 L6,105.684 L6,30 Z M94.8850766,62.224 C96.8637532,62.294667 98.8424001,62.1533351 100.821077,61.8 C102.799753,61.4466649 104.566402,60.8283378 106.121077,59.945 C107.675751,59.0616623 108.930072,57.8426744 109.884077,56.288 C110.838081,54.7333256 111.315077,52.8253446 111.315077,50.564 C111.315077,47.3839841 110.237421,44.8400095 108.082077,42.932 C105.926733,41.0239905 103.153094,40.07 99.7610766,40.07 C97.641066,40.07 95.8037511,40.4939958 94.2490766,41.342 C92.6944022,42.1900042 91.4047484,43.3383261 90.3800766,44.787 C89.3554048,46.2356739 88.5957458,47.860991 88.1010766,49.663 C87.6064075,51.465009 87.3944096,53.3199905 87.4650766,55.228 L75.3810766,55.228 C75.5224107,51.623982 76.1937373,48.2850154 77.3950766,45.211 C78.596416,42.1369846 80.2393995,39.4693446 82.3240766,37.208 C84.4087537,34.9466554 86.9350618,33.1800064 89.9030766,31.908 C92.8710915,30.6359936 96.2277246,30 99.9730766,30 C102.870424,30 105.714729,30.4239958 108.506077,31.272 C111.297424,32.1200042 113.806065,33.3566585 116.032077,34.982 C118.258088,36.6073415 120.042403,38.6743208 121.385077,41.183 C122.72775,43.6916792 123.399077,46.5713171 123.399077,49.822 C123.399077,53.5673521 122.551085,56.8356527 120.855077,59.627 C119.159068,62.4183473 116.509095,64.4499936 112.905077,65.722 L112.905077,65.934 C117.145098,66.7820042 120.448731,68.8843166 122.816077,72.241 C125.183422,75.5976835 126.367077,79.6786426 126.367077,84.484 C126.367077,88.017351 125.660417,91.1796527 124.247077,93.971 C122.833736,96.7623473 120.925755,99.129657 118.523077,101.073 C116.120398,103.016343 113.329093,104.517995 110.149077,105.578 C106.969061,106.638005 103.612428,107.168 100.079077,107.168 C95.7683884,107.168 92.005426,106.549673 88.7900766,105.313 C85.5747272,104.076327 82.8894207,102.327345 80.7340766,100.066 C78.5787325,97.8046554 76.9357489,95.0840159 75.8050766,91.904 C74.6744043,88.7239841 74.0737436,85.1906861 74.0030766,81.304 L86.0870766,81.304 C85.9457426,85.8266893 87.0587315,89.5896517 89.4260766,92.593 C91.7934218,95.5963483 95.3443863,97.098 100.079077,97.098 C104.107097,97.098 107.481396,95.9496782 110.202077,93.653 C112.922757,91.3563219 114.283077,88.0880212 114.283077,83.848 C114.283077,80.9506522 113.717749,78.6540085 112.587077,76.958 C111.456404,75.2619915 109.972419,73.9723378 108.135077,73.089 C106.297734,72.2056623 104.230755,71.6580011 101.934077,71.446 C99.6373985,71.2339989 97.2877553,71.163333 94.8850766,71.234 L94.8850766,62.224 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-heading-4 tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M8,30 L21.25,30 L21.25,60.104 L55.7,60.104 L55.7,30 L68.95,30 L68.95,105.684 L55.7,105.684 L55.7,71.552 L21.25,71.552 L21.25,105.684 L8,105.684 L8,30 Z M84.5890766,78.548 L107.061077,78.548 L107.061077,45.9 L106.849077,45.9 L84.5890766,78.548 Z M128.049077,88.088 L118.509077,88.088 L118.509077,105.684 L107.061077,105.684 L107.061077,88.088 L75.2610766,88.088 L75.2610766,76.11 L107.061077,31.484 L118.509077,31.484 L118.509077,78.548 L128.049077,78.548 L128.049077,88.088 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-heading-5 tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M6,30 L19.25,30 L19.25,60.104 L53.7,60.104 L53.7,30 L66.95,30 L66.95,105.684 L53.7,105.684 L53.7,71.552 L19.25,71.552 L19.25,105.684 L6,105.684 L6,30 Z M83.7550766,31.484 L122.127077,31.484 L122.127077,42.296 L92.7650766,42.296 L88.9490766,61.164 L89.1610766,61.376 C90.7864181,59.5386575 92.8533974,58.1430048 95.3620766,57.189 C97.8707558,56.2349952 100.361731,55.758 102.835077,55.758 C106.509762,55.758 109.795729,56.3763272 112.693077,57.613 C115.590424,58.8496729 118.0284,60.5809889 120.007077,62.807 C121.985753,65.0330111 123.487405,67.6653181 124.512077,70.704 C125.536748,73.7426819 126.049077,77.028649 126.049077,80.562 C126.049077,83.5300148 125.572081,86.5863176 124.618077,89.731 C123.664072,92.8756824 122.144754,95.7376538 120.060077,98.317 C117.9754,100.896346 115.30776,103.016325 112.057077,104.677 C108.806394,106.337675 104.919766,107.168 100.397077,107.168 C96.7930586,107.168 93.454092,106.691005 90.3800766,105.737 C87.3060613,104.782995 84.6030883,103.35201 82.2710766,101.444 C79.939065,99.5359905 78.0840835,97.1863473 76.7060766,94.395 C75.3280697,91.6036527 74.5684107,88.3353521 74.4270766,84.59 L86.5110766,84.59 C86.8644117,88.6180201 88.2423979,91.7096559 90.6450766,93.865 C93.0477553,96.0203441 96.2277235,97.098 100.185077,97.098 C102.729089,97.098 104.884401,96.6740042 106.651077,95.826 C108.417752,94.9779958 109.848738,93.8120074 110.944077,92.328 C112.039415,90.8439926 112.816741,89.1126766 113.276077,87.134 C113.735412,85.1553234 113.965077,83.0353446 113.965077,80.774 C113.965077,78.7246564 113.682413,76.763676 113.117077,74.891 C112.55174,73.018324 111.703749,71.3753404 110.573077,69.962 C109.442404,68.5486596 107.976086,67.4180042 106.174077,66.57 C104.372068,65.7219958 102.269755,65.298 99.8670766,65.298 C97.3230639,65.298 94.9380878,65.7749952 92.7120766,66.729 C90.4860655,67.6830048 88.8784149,69.4673203 87.8890766,72.082 L75.8050766,72.082 L83.7550766,31.484 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-heading-6 tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M6,30 L19.25,30 L19.25,60.104 L53.7,60.104 L53.7,30 L66.95,30 L66.95,105.684 L53.7,105.684 L53.7,71.552 L19.25,71.552 L19.25,105.684 L6,105.684 L6,30 Z M112.587077,50.246 C112.304409,47.2073181 111.226753,44.751676 109.354077,42.879 C107.481401,41.006324 104.955093,40.07 101.775077,40.07 C99.584399,40.07 97.6940846,40.4763293 96.1040766,41.289 C94.5140687,42.1016707 93.1714154,43.1793266 92.0760766,44.522 C90.9807378,45.8646734 90.0974133,47.401658 89.4260766,49.133 C88.7547399,50.864342 88.2070787,52.6839905 87.7830766,54.592 C87.3590745,56.5000095 87.0587442,58.390324 86.8820766,60.263 C86.7054091,62.135676 86.5464107,63.8846585 86.4050766,65.51 L86.6170766,65.722 C88.2424181,62.7539852 90.4860623,60.5456739 93.3480766,59.097 C96.2100909,57.6483261 99.3017267,56.924 102.623077,56.924 C106.297762,56.924 109.583729,57.5599936 112.481077,58.832 C115.378424,60.1040064 117.834067,61.8529889 119.848077,64.079 C121.862087,66.3050111 123.399071,68.9373181 124.459077,71.976 C125.519082,75.0146819 126.049077,78.300649 126.049077,81.834 C126.049077,85.438018 125.466082,88.7769846 124.300077,91.851 C123.134071,94.9250154 121.455754,97.6103219 119.265077,99.907 C117.074399,102.203678 114.459758,103.987994 111.421077,105.26 C108.382395,106.532006 105.025762,107.168 101.351077,107.168 C95.9097161,107.168 91.4400941,106.16101 87.9420766,104.147 C84.4440591,102.13299 81.6880867,99.3770175 79.6740766,95.879 C77.6600666,92.3809825 76.2644138,88.2823568 75.4870766,83.583 C74.7097394,78.8836432 74.3210766,73.8133605 74.3210766,68.372 C74.3210766,63.9199777 74.7980719,59.4326893 75.7520766,54.91 C76.7060814,50.3873107 78.278399,46.2710186 80.4690766,42.561 C82.6597542,38.8509815 85.5393921,35.8300117 89.1080766,33.498 C92.6767611,31.1659883 97.0757171,30 102.305077,30 C105.273091,30 108.064397,30.4946617 110.679077,31.484 C113.293756,32.4733383 115.608067,33.8513245 117.622077,35.618 C119.636087,37.3846755 121.27907,39.5046543 122.551077,41.978 C123.823083,44.4513457 124.529743,47.2073181 124.671077,50.246 L112.587077,50.246 Z M100.927077,97.098 C103.117754,97.098 105.025735,96.6563378 106.651077,95.773 C108.276418,94.8896623 109.636738,93.7413404 110.732077,92.328 C111.827415,90.9146596 112.640074,89.271676 113.170077,87.399 C113.700079,85.526324 113.965077,83.6006766 113.965077,81.622 C113.965077,79.6433234 113.700079,77.7353425 113.170077,75.898 C112.640074,74.0606575 111.827415,72.4530069 110.732077,71.075 C109.636738,69.6969931 108.276418,68.5840042 106.651077,67.736 C105.025735,66.8879958 103.117754,66.464 100.927077,66.464 C98.736399,66.464 96.8107516,66.8703293 95.1500766,67.683 C93.4894017,68.4956707 92.0937489,69.5909931 90.9630766,70.969 C89.8324043,72.3470069 88.9844128,73.9546575 88.4190766,75.792 C87.8537405,77.6293425 87.5710766,79.5726564 87.5710766,81.622 C87.5710766,83.6713436 87.8537405,85.6146575 88.4190766,87.452 C88.9844128,89.2893425 89.8324043,90.9323261 90.9630766,92.381 C92.0937489,93.8296739 93.4894017,94.9779958 95.1500766,95.826 C96.8107516,96.6740042 98.736399,97.098 100.927077,97.098 L100.927077,97.098 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-help tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M36.0548906,111.44117 C30.8157418,115.837088 20.8865444,118.803477 9.5,118.803477 C7.86465619,118.803477 6.25937294,118.742289 4.69372699,118.624467 C12.612543,115.984876 18.7559465,110.02454 21.0611049,102.609942 C8.74739781,92.845129 1.04940554,78.9359851 1.04940554,63.5 C1.04940554,33.9527659 29.2554663,10 64.0494055,10 C98.8433448,10 127.049406,33.9527659 127.049406,63.5 C127.049406,93.0472341 98.8433448,117 64.0494055,117 C53.9936953,117 44.48824,114.999337 36.0548906,111.44117 L36.0548906,111.44117 Z M71.4042554,77.5980086 C71.406883,77.2865764 71.4095079,76.9382011 71.4119569,76.5610548 C71.4199751,75.3262169 71.4242825,74.0811293 71.422912,72.9158546 C71.4215244,71.736154 71.4143321,70.709635 71.4001396,69.8743525 C71.4078362,68.5173028 71.9951951,67.7870427 75.1273009,65.6385471 C75.2388969,65.5619968 76.2124091,64.8981068 76.5126553,64.6910879 C79.6062455,62.5580654 81.5345849,60.9050204 83.2750652,58.5038955 C85.6146327,55.2762841 86.8327108,51.426982 86.8327108,46.8554323 C86.8327108,33.5625756 76.972994,24.9029551 65.3778484,24.9029551 C54.2752771,24.9029551 42.8794554,34.5115163 41.3121702,47.1975534 C40.9043016,50.4989536 43.2499725,53.50591 46.5513726,53.9137786 C49.8527728,54.3216471 52.8597292,51.9759763 53.2675978,48.6745761 C54.0739246,42.1479456 60.2395837,36.9492759 65.3778484,36.9492759 C70.6427674,36.9492759 74.78639,40.5885487 74.78639,46.8554323 C74.78639,50.4892974 73.6853224,52.008304 69.6746221,54.7736715 C69.4052605,54.9593956 68.448509,55.6118556 68.3131127,55.7047319 C65.6309785,57.5445655 64.0858213,58.803255 62.6123358,60.6352315 C60.5044618,63.2559399 59.3714208,66.3518252 59.3547527,69.9487679 C59.3684999,70.8407274 59.3752803,71.8084521 59.3765995,72.9300232 C59.3779294,74.0607297 59.3737237,75.2764258 59.36589,76.482835 C59.3634936,76.8518793 59.3609272,77.1924914 59.3583633,77.4963784 C59.3568319,77.6778944 59.3556368,77.8074256 59.3549845,77.8730928 C59.3219814,81.1994287 61.9917551,83.9227111 65.318091,83.9557142 C68.644427,83.9887173 71.3677093,81.3189435 71.4007124,77.9926076 C71.4014444,77.9187458 71.402672,77.7856841 71.4042554,77.5980086 Z M65.3778489,102.097045 C69.5359735,102.097045 72.9067994,98.7262189 72.9067994,94.5680944 C72.9067994,90.4099698 69.5359735,87.0391439 65.3778489,87.0391439 C61.2197243,87.0391439 57.8488984,90.4099698 57.8488984,94.5680944 C57.8488984,98.7262189 61.2197243,102.097045 65.3778489,102.097045 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-home-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M112.9847,119.501583 C112.99485,119.336814 113,119.170705 113,119.003406 L113,67.56802 C116.137461,70.5156358 121.076014,70.4518569 124.133985,67.3938855 C127.25818,64.2696912 127.260618,59.2068102 124.131541,56.0777326 L70.3963143,2.34250601 C68.8331348,0.779326498 66.7828947,-0.000743167069 64.7337457,1.61675364e-05 C62.691312,-0.00409949529 60.6426632,0.777559815 59.077717,2.34250601 L33,28.420223 L33,28.420223 L33,8.00697327 C33,3.58484404 29.4092877,0 25,0 C20.581722,0 17,3.59075293 17,8.00697327 L17,44.420223 L5.3424904,56.0777326 C2.21694607,59.2032769 2.22220878,64.2760483 5.34004601,67.3938855 C8.46424034,70.5180798 13.5271213,70.5205187 16.6561989,67.3914411 L17,67.04764 L17,119.993027 C17,119.994189 17.0000002,119.995351 17.0000007,119.996514 C17.0000002,119.997675 17,119.998838 17,120 C17,124.418278 20.5881049,128 24.9992458,128 L105.000754,128 C109.418616,128 113,124.409288 113,120 C113,119.832611 112.99485,119.666422 112.9847,119.501583 Z M97,112 L97,51.5736087 L97,51.5736087 L64.7370156,19.3106244 L33,51.04764 L33,112 L97,112 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-import-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M105.449437,94.2138951 C105.449437,94.2138951 110.049457,94.1897106 110.049457,99.4026111 C110.049457,104.615512 105.163246,104.615511 105.163246,104.615511 L45.0075072,105.157833 C45.0075072,105.157833 0.367531803,106.289842 0.367532368,66.6449212 C0.367532934,27.0000003 45.0428249,27.0000003 45.0428249,27.0000003 L105.532495,27.0000003 C105.532495,27.0000003 138.996741,25.6734987 138.996741,55.1771866 C138.996741,84.6808745 105.727102,82.8457535 105.727102,82.8457535 L56.1735087,82.8457535 C56.1735087,82.8457535 22.6899229,85.1500223 22.6899229,66.0913753 C22.6899229,47.0327282 56.1735087,49.3383013 56.1735087,49.3383013 L105.727102,49.3383013 C105.727102,49.3383013 111.245209,49.3383024 111.245209,54.8231115 C111.245209,60.3079206 105.727102,60.5074524 105.727102,60.5074524 L56.1735087,60.5074524 C56.1735087,60.5074524 37.48913,60.5074528 37.48913,66.6449195 C37.48913,72.7823862 56.1735087,71.6766023 56.1735087,71.6766023 L105.727102,71.6766029 C105.727102,71.6766029 127.835546,73.1411469 127.835546,55.1771866 C127.835546,35.5304025 105.727102,38.3035317 105.727102,38.3035317 L45.0428249,38.3035317 C45.0428249,38.3035317 11.5287276,38.3035313 11.5287276,66.6449208 C11.5287276,94.9863103 45.0428244,93.9579678 45.0428244,93.9579678 L105.449437,94.2138951 Z\&quot; transform=\&quot;translate(69.367532, 66.000000) rotate(-45.000000) translate(-69.367532, -66.000000) \&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-info-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;g transform=\&quot;translate(0.049406, 0.000000)\&quot;&gt;\n &lt;path d=\&quot;M64,128 C99.346224,128 128,99.346224 128,64 C128,28.653776 99.346224,0 64,0 C28.653776,0 0,28.653776 0,64 C0,99.346224 28.653776,128 64,128 Z M64,112 C90.509668,112 112,90.509668 112,64 C112,37.490332 90.509668,16 64,16 C37.490332,16 16,37.490332 16,64 C16,90.509668 37.490332,112 64,112 Z\&quot;&gt;&lt;/path&gt;\n &lt;circle cx=\&quot;64\&quot; cy=\&quot;32\&quot; r=\&quot;8\&quot;&gt;&lt;/circle&gt;\n &lt;rect x=\&quot;56\&quot; y=\&quot;48\&quot; width=\&quot;16\&quot; height=\&quot;56\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;/g&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-italic tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;polygon points=\&quot;66.7114846 0 89.1204482 0 62.4089636 128 40 128\&quot;&gt;&lt;/polygon&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-left-arrow tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;path transform=\&quot;rotate(135, 63.8945, 64.1752)\&quot; d=\&quot;m109.07576,109.35336c-1.43248,1.43361 -3.41136,2.32182 -5.59717,2.32182l-79.16816,0c-4.36519,0 -7.91592,-3.5444 -7.91592,-7.91666c0,-4.36337 3.54408,-7.91667 7.91592,-7.91667l71.25075,0l0,-71.25075c0,-4.3652 3.54442,-7.91592 7.91667,-7.91592c4.36336,0 7.91667,3.54408 7.91667,7.91592l0,79.16815c0,2.1825 -0.88602,4.16136 -2.3185,5.59467l-0.00027,-0.00056z\&quot;/&gt;\n&lt;/svg&gt;\n&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 class=\&quot;tc-image-line-width tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M128,-97 L112.992786,-97 C112.452362,-97 112,-96.5522847 112,-96 C112,-95.4438648 112.444486,-95 112.992786,-95 L128,-95 L128,-97 Z M128,-78.6794919 L111.216185,-88.3696322 C110.748163,-88.6398444 110.132549,-88.4782926 109.856406,-88 C109.578339,-87.5183728 109.741342,-86.9117318 110.216185,-86.6375814 L128,-76.3700908 L128,-78.6794919 Z M78.6794919,-128 L88.3696322,-111.216185 C88.6437826,-110.741342 88.4816272,-110.134474 88,-109.856406 C87.5217074,-109.580264 86.9077936,-109.748163 86.6375814,-110.216185 L76.3700908,-128 L78.6794919,-128 Z M97,-128 L97,-112.992786 C97,-112.444486 96.5561352,-112 96,-112 C95.4477153,-112 95,-112.452362 95,-112.992786 L95,-128 L97,-128 Z M115.629909,-128 L105.362419,-110.216185 C105.088268,-109.741342 104.481627,-109.578339 104,-109.856406 C103.521707,-110.132549 103.360156,-110.748163 103.630368,-111.216185 L113.320508,-128 L115.629909,-128 Z M128,-113.320508 L111.216185,-103.630368 C110.741342,-103.356217 110.134474,-103.518373 109.856406,-104 C109.580264,-104.478293 109.748163,-105.092206 110.216185,-105.362419 L128,-115.629909 L128,-113.320508 Z M48,-96 C48,-96.5522847 48.4523621,-97 48.9927864,-97 L79.0072136,-97 C79.5555144,-97 80,-96.5561352 80,-96 C80,-95.4477153 79.5476379,-95 79.0072136,-95 L48.9927864,-95 C48.4444856,-95 48,-95.4438648 48,-96 Z M54.4307806,-120 C54.706923,-120.478293 55.3225377,-120.639844 55.7905589,-120.369632 L81.7838153,-105.362419 C82.2586577,-105.088268 82.4216611,-104.481627 82.1435935,-104 C81.8674512,-103.521707 81.2518365,-103.360156 80.7838153,-103.630368 L54.7905589,-118.637581 C54.3157165,-118.911732 54.152713,-119.518373 54.4307806,-120 Z M104,-82.1435935 C104.478293,-82.4197359 105.092206,-82.2518365 105.362419,-81.7838153 L120.369632,-55.7905589 C120.643783,-55.3157165 120.481627,-54.7088482 120,-54.4307806 C119.521707,-54.1546382 118.907794,-54.3225377 118.637581,-54.7905589 L103.630368,-80.7838153 C103.356217,-81.2586577 103.518373,-81.865526 104,-82.1435935 Z M96,-80 C96.5522847,-80 97,-79.5476379 97,-79.0072136 L97,-48.9927864 C97,-48.4444856 96.5561352,-48 96,-48 C95.4477153,-48 95,-48.4523621 95,-48.9927864 L95,-79.0072136 C95,-79.5555144 95.4438648,-80 96,-80 Z M88,-82.1435935 C88.4782926,-81.8674512 88.6398444,-81.2518365 88.3696322,-80.7838153 L73.3624186,-54.7905589 C73.0882682,-54.3157165 72.4816272,-54.152713 72,-54.4307806 C71.5217074,-54.706923 71.3601556,-55.3225377 71.6303678,-55.7905589 L86.6375814,-81.7838153 C86.9117318,-82.2586577 87.5183728,-82.4216611 88,-82.1435935 Z M82.1435935,-88 C82.4197359,-87.5217074 82.2518365,-86.9077936 81.7838153,-86.6375814 L55.7905589,-71.6303678 C55.3157165,-71.3562174 54.7088482,-71.5183728 54.4307806,-72 C54.1546382,-72.4782926 54.3225377,-73.0922064 54.7905589,-73.3624186 L80.7838153,-88.3696322 C81.2586577,-88.6437826 81.865526,-88.4816272 82.1435935,-88 Z M1.30626177e-08,-41.9868843 L15.0170091,-57.9923909 L20.7983821,-52.9749272 L44.7207091,-81.2095939 L73.4260467,-42.1002685 L85.984793,-56.6159488 L104.48741,-34.0310661 L127.969109,-47.4978019 L127.969109,7.99473128e-07 L1.30626177e-08,7.99473128e-07 L1.30626177e-08,-41.9868843 Z M96,-84 C102.627417,-84 108,-89.372583 108,-96 C108,-102.627417 102.627417,-108 96,-108 C89.372583,-108 84,-102.627417 84,-96 C84,-89.372583 89.372583,-84 96,-84 Z\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M16,18 L112,18 C113.104569,18 114,17.1045695 114,16 C114,14.8954305 113.104569,14 112,14 L16,14 C14.8954305,14 14,14.8954305 14,16 C14,17.1045695 14.8954305,18 16,18 L16,18 Z M16,35 L112,35 C114.209139,35 116,33.209139 116,31 C116,28.790861 114.209139,27 112,27 L16,27 C13.790861,27 12,28.790861 12,31 C12,33.209139 13.790861,35 16,35 L16,35 Z M16,56 L112,56 C115.313708,56 118,53.3137085 118,50 C118,46.6862915 115.313708,44 112,44 L16,44 C12.6862915,44 10,46.6862915 10,50 C10,53.3137085 12.6862915,56 16,56 L16,56 Z M16,85 L112,85 C117.522847,85 122,80.5228475 122,75 C122,69.4771525 117.522847,65 112,65 L16,65 C10.4771525,65 6,69.4771525 6,75 C6,80.5228475 10.4771525,85 16,85 L16,85 Z M16,128 L112,128 C120.836556,128 128,120.836556 128,112 C128,103.163444 120.836556,96 112,96 L16,96 C7.163444,96 0,103.163444 0,112 C0,120.836556 7.163444,128 16,128 L16,128 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-link tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M128.719999,57.568543 C130.219553,53.8628171 131.045202,49.8121445 131.045202,45.5685425 C131.045202,27.8915447 116.718329,13.5685425 99.0452364,13.5685425 L67.0451674,13.5685425 C49.3655063,13.5685425 35.0452019,27.8954305 35.0452019,45.5685425 C35.0452019,63.2455403 49.3720745,77.5685425 67.0451674,77.5685425 L99.0452364,77.5685425 C100.406772,77.5685425 101.748384,77.4835732 103.065066,77.3186499 C96.4792444,73.7895096 91.1190212,68.272192 87.7873041,61.5685425 L67.0506214,61.5685425 C58.2110723,61.5685425 51.0452019,54.4070414 51.0452019,45.5685425 C51.0452019,36.7319865 58.2005234,29.5685425 67.0506214,29.5685425 L99.0397824,29.5685425 C107.879331,29.5685425 115.045202,36.7300436 115.045202,45.5685425 C115.045202,48.9465282 113.99957,52.0800164 112.21335,54.6623005 C114.314383,56.4735917 117.050039,57.5685425 120.041423,57.5685425 L128.720003,57.5685425 Z\&quot; transform=\&quot;translate(83.045202, 45.568542) rotate(-225.000000) translate(-83.045202, -45.568542)\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M-0.106255113,71.0452019 C-1.60580855,74.7509276 -2.43145751,78.8016001 -2.43145751,83.0452019 C-2.43145751,100.7222 11.8954151,115.045202 29.568508,115.045202 L61.568577,115.045202 C79.2482381,115.045202 93.5685425,100.718314 93.5685425,83.0452019 C93.5685425,65.3682041 79.2416699,51.0452019 61.568577,51.0452019 L29.568508,51.0452019 C28.206973,51.0452019 26.8653616,51.1301711 25.5486799,51.2950943 C32.1345,54.8242347 37.4947231,60.3415524 40.8264403,67.0452019 L61.563123,67.0452019 C70.4026721,67.0452019 77.5685425,74.206703 77.5685425,83.0452019 C77.5685425,91.8817579 70.413221,99.0452019 61.563123,99.0452019 L29.573962,99.0452019 C20.7344129,99.0452019 13.5685425,91.8837008 13.5685425,83.0452019 C13.5685425,79.6672162 14.6141741,76.533728 16.4003949,73.9514439 C14.2993609,72.1401527 11.5637054,71.0452019 8.5723215,71.0452019 L-0.106255113,71.0452019 Z\&quot; transform=\&quot;translate(45.568542, 83.045202) rotate(-225.000000) translate(-45.568542, -83.045202)\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-linkify-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;&lt;path 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; fill-rule=\&quot;evenodd\&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 class=\&quot;tc-image-list-bullet tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M11.6363636,40.2727273 C18.0629498,40.2727273 23.2727273,35.0629498 23.2727273,28.6363636 C23.2727273,22.2097775 18.0629498,17 11.6363636,17 C5.20977746,17 0,22.2097775 0,28.6363636 C0,35.0629498 5.20977746,40.2727273 11.6363636,40.2727273 Z M11.6363636,75.1818182 C18.0629498,75.1818182 23.2727273,69.9720407 23.2727273,63.5454545 C23.2727273,57.1188684 18.0629498,51.9090909 11.6363636,51.9090909 C5.20977746,51.9090909 0,57.1188684 0,63.5454545 C0,69.9720407 5.20977746,75.1818182 11.6363636,75.1818182 Z M11.6363636,110.090909 C18.0629498,110.090909 23.2727273,104.881132 23.2727273,98.4545455 C23.2727273,92.0279593 18.0629498,86.8181818 11.6363636,86.8181818 C5.20977746,86.8181818 0,92.0279593 0,98.4545455 C0,104.881132 5.20977746,110.090909 11.6363636,110.090909 Z M34.9090909,22.8181818 L128,22.8181818 L128,34.4545455 L34.9090909,34.4545455 L34.9090909,22.8181818 Z M34.9090909,57.7272727 L128,57.7272727 L128,69.3636364 L34.9090909,69.3636364 L34.9090909,57.7272727 Z M34.9090909,92.6363636 L128,92.6363636 L128,104.272727 L34.9090909,104.272727 L34.9090909,92.6363636 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-list-number tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M33.8390805,22.3563218 L128,22.3563218 L128,34.1264368 L33.8390805,34.1264368 L33.8390805,22.3563218 Z M33.8390805,57.6666667 L128,57.6666667 L128,69.4367816 L33.8390805,69.4367816 L33.8390805,57.6666667 Z M33.8390805,92.9770115 L128,92.9770115 L128,104.747126 L33.8390805,104.747126 L33.8390805,92.9770115 Z M0.379509711,42.6307008 L0.379509711,40.4082314 L1.37821948,40.4082314 C2.20382368,40.4082314 2.82301754,40.268077 3.23581964,39.9877642 C3.64862174,39.7074513 3.85501969,39.0400498 3.85501969,37.9855395 L3.85501969,22.7686318 C3.85501969,21.3270228 3.66193774,20.4327047 3.27576803,20.0856507 C2.88959832,19.7385967 1.79768657,19.5650723 0,19.5650723 L0,17.4226919 C3.50215975,17.2758613 6.25191314,16.4683055 8.24934266,15 L10.3666074,15 L10.3666074,37.865406 C10.3666074,38.786434 10.5164123,39.4404875 10.8160268,39.8275862 C11.1156412,40.2146849 11.764796,40.4082314 12.7635108,40.4082314 L13.7622206,40.4082314 L13.7622206,42.6307008 L0.379509711,42.6307008 Z M0.0798967812,77.9873934 L0.0798967812,76.0852799 C7.27064304,69.5312983 10.8659622,63.5046623 10.8659622,58.005191 C10.8659622,56.4434479 10.5397203,55.195407 9.88722667,54.2610308 C9.23473303,53.3266546 8.36253522,52.8594735 7.27060709,52.8594735 C6.3784219,52.8594735 5.61608107,53.1764892 4.98356173,53.8105302 C4.35104238,54.4445712 4.03478745,55.1753759 4.03478745,56.0029663 C4.03478745,56.9773871 4.28113339,57.8316611 4.77383268,58.5658139 C4.88036225,58.7259926 4.93362624,58.8461249 4.93362624,58.9262143 C4.93362624,59.0730449 4.77383427,59.2065252 4.45424555,59.3266593 C4.2411864,59.4067486 3.70188852,59.6336652 2.83633573,60.0074156 C1.99741533,60.3811661 1.47809145,60.5680386 1.2783485,60.5680386 C1.03865696,60.5680386 0.765679018,60.1976307 0.459406492,59.4568039 C0.153133966,58.715977 0,57.9184322 0,57.0641453 C0,55.1153036 0.848894811,53.5202138 2.5467099,52.2788283 C4.24452499,51.0374428 6.34512352,50.4167594 8.84856852,50.4167594 C11.3120649,50.4167594 13.3793735,51.0874979 15.0505562,52.4289952 C16.7217389,53.7704924 17.5573177,55.5224215 17.5573177,57.684835 C17.5573177,58.9662652 17.2743527,60.2076321 16.7084144,61.4089729 C16.142476,62.6103138 14.7875733,64.4623531 12.6436656,66.9651465 C10.4997579,69.4679398 8.40914641,71.7804862 6.3717683,73.902855 L17.8169822,73.902855 L16.7982982,79.6292176 L14.6810335,79.6292176 C14.7609307,79.3489048 14.8008787,79.0952922 14.8008787,78.8683723 C14.8008787,78.4812736 14.7010087,78.237672 14.5012658,78.1375603 C14.3015228,78.0374485 13.9020429,77.9873934 13.3028141,77.9873934 L0.0798967812,77.9873934 Z M12.2042333,97.1935484 C13.9486551,97.2335931 15.4400468,97.8309175 16.6784531,98.9855395 C17.9168594,100.140162 18.5360532,101.75861 18.5360532,103.840934 C18.5360532,106.830938 17.4041935,109.233584 15.14044,111.048943 C12.8766866,112.864303 10.1402492,113.771969 6.93104577,113.771969 C4.92030005,113.771969 3.26245842,113.388213 1.95747114,112.62069 C0.652483855,111.853166 0,110.848727 0,109.607341 C0,108.833144 0.26964894,108.209124 0.808954909,107.735261 C1.34826088,107.261399 1.93749375,107.024472 2.57667119,107.024472 C3.21584864,107.024472 3.73850152,107.224692 4.14464552,107.625139 C4.55078953,108.025586 4.92696644,108.67964 5.27318756,109.587319 C5.73925445,110.855401 6.51158227,111.489433 7.59019421,111.489433 C8.85523291,111.489433 9.87723568,111.012241 10.6562332,110.057842 C11.4352307,109.103444 11.8247236,107.371536 11.8247236,104.862069 C11.8247236,103.153495 11.7048796,101.838714 11.4651881,100.917686 C11.2254966,99.9966584 10.6728827,99.5361513 9.80732989,99.5361513 C9.22141723,99.5361513 8.62219737,99.843156 8.00965231,100.457175 C7.51695303,100.951059 7.07752513,101.197998 6.69135542,101.197998 C6.3584505,101.197998 6.08880156,101.051169 5.88240051,100.757508 C5.67599946,100.463847 5.57280049,100.183539 5.57280049,99.916574 C5.57280049,99.5962164 5.67599946,99.3225818 5.88240051,99.0956618 C6.08880156,98.8687419 6.57150646,98.5016711 7.33052967,97.9944383 C10.2068282,96.0722929 11.6449559,93.9766521 11.6449559,91.7074527 C11.6449559,90.5194601 11.3386879,89.615131 10.7261429,88.9944383 C10.1135978,88.3737455 9.37455999,88.0634038 8.5090072,88.0634038 C7.71003539,88.0634038 6.98431355,88.3270274 6.33181991,88.8542825 C5.67932627,89.3815377 5.35308434,90.0122321 5.35308434,90.7463849 C5.35308434,91.3871 5.60608828,91.9810874 6.11210376,92.5283648 C6.28521432,92.7285883 6.3717683,92.8954387 6.3717683,93.028921 C6.3717683,93.1490551 5.80250943,93.4560598 4.6639746,93.9499444 C3.52543978,94.4438289 2.80970494,94.6907675 2.51674861,94.6907675 C2.10394651,94.6907675 1.76771758,94.3570667 1.50805174,93.6896552 C1.24838591,93.0222436 1.11855494,92.4082342 1.11855494,91.8476085 C1.11855494,90.0989901 2.04734573,88.6240327 3.90495518,87.4226919 C5.76256463,86.2213511 7.86982116,85.6206897 10.226788,85.6206897 C12.2907985,85.6206897 14.0784711,86.0678487 15.5898594,86.9621802 C17.1012478,87.8565117 17.8569306,89.0778566 17.8569306,90.6262514 C17.8569306,91.987771 17.2876717,93.2491599 16.1491369,94.4104561 C15.0106021,95.5717522 13.6956474,96.4994404 12.2042333,97.1935484 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-list tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M0.719999312,185.568543 C2.21955287,181.862817 3.0452019,177.812144 3.0452019,173.568542 C3.0452019,155.891545 -11.2816707,141.568542 -28.9547636,141.568542 L-60.9548326,141.568542 C-78.6344937,141.568542 -92.9547981,155.895431 -92.9547981,173.568542 C-92.9547981,191.24554 -78.6279255,205.568542 -60.9548326,205.568542 L-28.9547636,205.568542 C-27.593228,205.568542 -26.2516158,205.483573 -24.9349335,205.31865 C-31.5207556,201.78951 -36.8809788,196.272192 -40.2126959,189.568542 L-60.9493786,189.568542 C-69.7889277,189.568542 -76.9547981,182.407041 -76.9547981,173.568542 C-76.9547981,164.731986 -69.7994766,157.568542 -60.9493786,157.568542 L-28.9602176,157.568542 C-20.1206685,157.568542 -12.9547981,164.730044 -12.9547981,173.568542 C-12.9547981,176.946528 -14.0004297,180.080016 -15.7866505,182.6623 C-13.6856165,184.473592 -10.949961,185.568542 -7.9585771,185.568542 L0.720002586,185.568542 Z\&quot; transform=\&quot;translate(-44.954798, 173.568542) rotate(-225.000000) translate(44.954798, -173.568542) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M87.7480315,128 L23.9992458,128 C19.5813843,128 16,124.409247 16,119.993027 L16,8.00697327 C16,3.58484404 19.5881049,0 23.9992458,0 L104.000754,0 C108.418616,0 112,3.59075293 112,8.00697327 L112,104 L91.2492027,104 C90.2848199,104 89.410573,104.391703 88.7768998,105.025201 C88.1373658,105.661376 87.7480315,106.53563 87.7480315,107.501171 L87.7480315,128 Z M95.7480315,127.879386 L111.627417,112 L95.7480315,112 L95.7480315,127.879386 Z M40,15.5089165 C40,13.5709954 41.5636015,12 43.4998101,12 L98.5001899,12 C100.433082,12 102,13.5614718 102,15.5089165 L102,16.4910835 C102,18.4290046 100.436399,20 98.5001899,20 L43.4998101,20 C41.5669183,20 40,18.4385282 40,16.4910835 L40,15.5089165 Z M32,22 C35.3137085,22 38,19.3137085 38,16 C38,12.6862915 35.3137085,10 32,10 C28.6862915,10 26,12.6862915 26,16 C26,19.3137085 28.6862915,22 32,22 Z M40,31.5089165 C40,29.5709954 41.5636015,28 43.4998101,28 L98.5001899,28 C100.433082,28 102,29.5614718 102,31.5089165 L102,32.4910835 C102,34.4290046 100.436399,36 98.5001899,36 L43.4998101,36 C41.5669183,36 40,34.4385282 40,32.4910835 L40,31.5089165 Z M40,47.5089165 C40,45.5709954 41.5636015,44 43.4998101,44 L98.5001899,44 C100.433082,44 102,45.5614718 102,47.5089165 L102,48.4910835 C102,50.4290046 100.436399,52 98.5001899,52 L43.4998101,52 C41.5669183,52 40,50.4385282 40,48.4910835 L40,47.5089165 Z M40,63.5089165 C40,61.5709954 41.5636015,60 43.4998101,60 L98.5001899,60 C100.433082,60 102,61.5614718 102,63.5089165 L102,64.4910835 C102,66.4290046 100.436399,68 98.5001899,68 L43.4998101,68 C41.5669183,68 40,66.4385282 40,64.4910835 L40,63.5089165 Z M40,79.5089165 C40,77.5709954 41.5636015,76 43.4998101,76 L98.5001899,76 C100.433082,76 102,77.5614718 102,79.5089165 L102,80.4910835 C102,82.4290046 100.436399,84 98.5001899,84 L43.4998101,84 C41.5669183,84 40,82.4385282 40,80.4910835 L40,79.5089165 Z M40,95.5089165 C40,93.5709954 41.5636015,92 43.4998101,92 L98.5001899,92 C100.433082,92 102,93.5614718 102,95.5089165 L102,96.4910835 C102,98.4290046 100.436399,100 98.5001899,100 L43.4998101,100 C41.5669183,100 40,98.4385282 40,96.4910835 L40,95.5089165 Z M40,111.508916 C40,109.570995 41.5680474,108 43.4972017,108 L76.5027983,108 C78.4342495,108 80,109.561472 80,111.508916 L80,112.491084 C80,114.429005 78.4319526,116 76.5027983,116 L43.4972017,116 C41.5657505,116 40,114.438528 40,112.491084 L40,111.508916 Z M32,38 C35.3137085,38 38,35.3137085 38,32 C38,28.6862915 35.3137085,26 32,26 C28.6862915,26 26,28.6862915 26,32 C26,35.3137085 28.6862915,38 32,38 Z M32,54 C35.3137085,54 38,51.3137085 38,48 C38,44.6862915 35.3137085,42 32,42 C28.6862915,42 26,44.6862915 26,48 C26,51.3137085 28.6862915,54 32,54 Z M32,70 C35.3137085,70 38,67.3137085 38,64 C38,60.6862915 35.3137085,58 32,58 C28.6862915,58 26,60.6862915 26,64 C26,67.3137085 28.6862915,70 32,70 Z M32,86 C35.3137085,86 38,83.3137085 38,80 C38,76.6862915 35.3137085,74 32,74 C28.6862915,74 26,76.6862915 26,80 C26,83.3137085 28.6862915,86 32,86 Z M32,102 C35.3137085,102 38,99.3137085 38,96 C38,92.6862915 35.3137085,90 32,90 C28.6862915,90 26,92.6862915 26,96 C26,99.3137085 28.6862915,102 32,102 Z M32,118 C35.3137085,118 38,115.313708 38,112 C38,108.686292 35.3137085,106 32,106 C28.6862915,106 26,108.686292 26,112 C26,115.313708 28.6862915,118 32,118 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-locked-padlock tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M96.4723753,64 L105,64 L105,96.0097716 C105,113.673909 90.6736461,128 73.001193,128 L55.998807,128 C38.3179793,128 24,113.677487 24,96.0097716 L24,64 L32.0000269,64 C32.0028554,48.2766389 32.3030338,16.2688026 64.1594984,16.2688041 C95.9543927,16.2688056 96.4648869,48.325931 96.4723753,64 Z M80.5749059,64 L48.4413579,64 C48.4426205,47.71306 48.5829272,31.9999996 64.1595001,31.9999996 C79.8437473,31.9999996 81.1369461,48.1359182 80.5749059,64 Z M67.7315279,92.3641717 C70.8232551,91.0923621 73,88.0503841 73,84.5 C73,79.8055796 69.1944204,76 64.5,76 C59.8055796,76 56,79.8055796 56,84.5 C56,87.947435 58.0523387,90.9155206 61.0018621,92.2491029 L55.9067479,115.020857 L72.8008958,115.020857 L67.7315279,92.3641717 L67.7315279,92.3641717 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-mail tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M122.826782,104.894066 C121.945525,105.22777 120.990324,105.41043 119.993027,105.41043 L8.00697327,105.41043 C7.19458381,105.41043 6.41045219,105.289614 5.67161357,105.064967 L5.67161357,105.064967 L39.8346483,70.9019325 L60.6765759,91.7438601 C61.6118278,92.679112 62.8865166,93.0560851 64.0946097,92.8783815 C65.2975108,93.0473238 66.5641085,92.6696979 67.4899463,91.7438601 L88.5941459,70.6396605 C88.6693095,70.7292352 88.7490098,70.8162939 88.8332479,70.9005321 L122.826782,104.894066 Z M127.903244,98.6568194 C127.966933,98.2506602 128,97.8343714 128,97.4103789 L128,33.410481 C128,32.7414504 127.917877,32.0916738 127.763157,31.4706493 L94.2292399,65.0045665 C94.3188145,65.0797417 94.4058701,65.1594458 94.4901021,65.2436778 L127.903244,98.6568194 Z M0.205060636,99.2178117 C0.0709009529,98.6370366 0,98.0320192 0,97.4103789 L0,33.410481 C0,32.694007 0.0944223363,31.9995312 0.27147538,31.3387595 L0.27147538,31.3387595 L34.1777941,65.2450783 L0.205060636,99.2178117 L0.205060636,99.2178117 Z M5.92934613,25.6829218 C6.59211333,25.5051988 7.28862283,25.4104299 8.00697327,25.4104299 L119.993027,25.4104299 C120.759109,25.4104299 121.500064,25.5178649 122.201605,25.7184927 L122.201605,25.7184927 L64.0832611,83.8368368 L5.92934613,25.6829218 L5.92934613,25.6829218 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-menu-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;rect x=\&quot;0\&quot; y=\&quot;16\&quot; width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;0\&quot; y=\&quot;56\&quot; width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;0\&quot; y=\&quot;96\&quot; width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n&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 class=\&quot;tc-image-mono-block tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M23.9653488,32.9670593 L24.3217888,32.9670593 C25.0766067,32.9670593 25.6497006,33.1592554 26.0410876,33.5436534 C26.4324747,33.9280514 26.6281653,34.4906619 26.6281653,35.2315017 C26.6281653,36.0562101 26.4219913,36.6502709 26.009637,37.0137017 C25.5972828,37.3771326 24.9158602,37.5588453 23.9653488,37.5588453 L17.6542639,37.5588453 C16.6897744,37.5588453 16.0048573,37.380627 15.5994921,37.0241852 C15.1941269,36.6677435 14.9914474,36.0701882 14.9914474,35.2315017 C14.9914474,34.4207713 15.1941269,33.8406885 15.5994921,33.4912358 C16.0048573,33.141783 16.6897744,32.9670593 17.6542639,32.9670593 L18.388111,32.9670593 L17.5284616,30.5139133 L8.47069195,30.5139133 L7.5691084,32.9670593 L8.30295547,32.9670593 C9.25346691,32.9670593 9.93488953,33.1452775 10.3472438,33.5017193 C10.759598,33.8581611 10.965772,34.4347494 10.965772,35.2315017 C10.965772,36.0562101 10.759598,36.6502709 10.3472438,37.0137017 C9.93488953,37.3771326 9.25346691,37.5588453 8.30295547,37.5588453 L2.89345418,37.5588453 C1.92896463,37.5588453 1.24404754,37.3771326 0.838682371,37.0137017 C0.433317198,36.6502709 0.230637652,36.0562101 0.230637652,35.2315017 C0.230637652,34.4906619 0.426328248,33.9280514 0.817715312,33.5436534 C1.20910238,33.1592554 1.78219626,32.9670593 2.53701417,32.9670593 L2.89345418,32.9670593 L8.51262607,17.3256331 L6.83526132,17.3256331 C5.88474988,17.3256331 5.20332727,17.1439204 4.79097304,16.7804895 C4.37861882,16.4170587 4.1724448,15.8299869 4.1724448,15.0192565 C4.1724448,14.1945481 4.37861882,13.6004873 4.79097304,13.2370565 C5.20332727,12.8736257 5.88474988,12.691913 6.83526132,12.691913 L14.6979086,12.691913 C15.9419603,12.691913 16.815579,13.3628521 17.318791,14.7047506 L17.318791,14.7676518 L23.9653488,32.9670593 Z M12.9786097,17.3256331 L9.9383861,26.1737321 L16.0188333,26.1737321 L12.9786097,17.3256331 Z M35.3809383,26.6979086 L35.3809383,33.0928616 L38.5259972,33.0928616 C40.7485166,33.0928616 42.3140414,32.8482484 43.2226185,32.3590146 C44.1311956,31.8697807 44.5854773,31.0520736 44.5854773,29.9058686 C44.5854773,28.7456855 44.1521624,27.9209895 43.2855197,27.4317556 C42.4188769,26.9425218 40.9022748,26.6979086 38.7356678,26.6979086 L35.3809383,26.6979086 Z M46.0741385,24.370565 C47.5977525,24.9296893 48.7159844,25.6949794 49.428868,26.666458 C50.1417516,27.6379366 50.498188,28.8784752 50.498188,30.388111 C50.498188,31.6601189 50.1906743,32.8202846 49.5756374,33.8686428 C48.9606006,34.917001 48.0799929,35.7766419 46.933788,36.4475911 C46.2628387,36.8389782 45.5115266,37.1220307 44.6798291,37.296757 C43.8481316,37.4714834 42.6704935,37.5588453 41.1468796,37.5588453 L39.3856466,37.5588453 L30.2020747,37.5588453 C29.2795194,37.5588453 28.6190637,37.3771326 28.2206876,37.0137017 C27.8223114,36.6502709 27.6231264,36.0562101 27.6231264,35.2315017 C27.6231264,34.4906619 27.811828,33.9280514 28.189237,33.5436534 C28.5666459,33.1592554 29.118773,32.9670593 29.8456347,32.9670593 L30.2020747,32.9670593 L30.2020747,17.3256331 L29.8456347,17.3256331 C29.118773,17.3256331 28.5666459,17.1299425 28.189237,16.7385554 C27.811828,16.3471683 27.6231264,15.7740744 27.6231264,15.0192565 C27.6231264,14.2085262 27.8258059,13.6179599 28.2311711,13.24754 C28.6365363,12.8771201 29.2934976,12.691913 30.2020747,12.691913 L39.8469219,12.691913 C42.796303,12.691913 45.0362615,13.2650068 46.5668644,14.4112118 C48.0974674,15.5574168 48.8627574,17.2347648 48.8627574,19.443306 C48.8627574,20.5335986 48.6286276,21.4945792 48.1603609,22.3262767 C47.6920943,23.1579742 46.9966938,23.8393968 46.0741385,24.370565 L46.0741385,24.370565 Z M35.3809383,17.1998307 L35.3809383,22.4835296 L38.2114913,22.4835296 C39.9307988,22.4835296 41.1433816,22.2808501 41.8492761,21.8754849 C42.5551706,21.4701197 42.9081126,20.7852027 42.9081126,19.8207131 C42.9081126,18.912136 42.5901154,18.2481858 41.9541114,17.8288425 C41.3181074,17.4094992 40.2872373,17.1998307 38.8614701,17.1998307 L35.3809383,17.1998307 Z M71.244119,13.3838259 C71.5236812,12.880614 71.8102281,12.5241775 72.1037684,12.3145059 C72.3973087,12.1048342 72.7677231,12 73.2150226,12 C73.8999499,12 74.3856819,12.1817127 74.6722332,12.5451435 C74.9587844,12.9085744 75.1020579,13.5305909 75.1020579,14.4112118 L75.143992,19.8626472 C75.143992,20.8271368 74.9867406,21.4771091 74.6722332,21.8125837 C74.3577257,22.1480584 73.7881263,22.3157932 72.9634178,22.3157932 C72.3763372,22.3157932 71.92555,22.1760142 71.6110425,21.896452 C71.2965351,21.6168898 71.0274605,21.0997075 70.8038107,20.3448896 C70.4403799,19.0169692 69.8602971,18.0629775 69.0635448,17.482886 C68.2667926,16.9027945 67.1625385,16.612753 65.7507494,16.612753 C63.5981206,16.612753 61.9487284,17.3396038 60.8025235,18.7933272 C59.6563185,20.2470506 59.0832246,22.3507245 59.0832246,25.104412 C59.0832246,27.8441215 59.6633074,29.9477954 60.8234905,31.4154969 C61.9836736,32.8831984 63.6400547,33.6170381 65.7926836,33.6170381 C67.2603851,33.6170381 68.878327,33.1278116 70.6465578,32.149344 C72.4147886,31.1708763 73.5295261,30.6816498 73.9908037,30.6816498 C74.53595,30.6816498 74.9937262,30.9122852 75.3641461,31.3735628 C75.734566,31.8348404 75.9197732,32.4079343 75.9197732,33.0928616 C75.9197732,34.3229353 74.836486,35.4831009 72.669879,36.5733935 C70.5032721,37.663686 68.0641285,38.2088241 65.3523753,38.2088241 C61.6901107,38.2088241 58.7267959,36.9997358 56.4623422,34.5815228 C54.1978885,32.1633099 53.0656786,29.0043046 53.0656786,25.104412 C53.0656786,21.3443006 54.2118664,18.22024 56.5042763,15.7321366 C58.7966863,13.2440331 61.7040894,12 65.226573,12 C66.2190187,12 67.1974717,12.1118232 68.1619613,12.3354729 C69.1264508,12.5591227 70.1538264,12.9085702 71.244119,13.3838259 L71.244119,13.3838259 Z M81.4645862,32.9670593 L81.4645862,17.3256331 L81.1081461,17.3256331 C80.3533282,17.3256331 79.7802344,17.1299425 79.3888473,16.7385554 C78.9974602,16.3471683 78.8017696,15.7740744 78.8017696,15.0192565 C78.8017696,14.2085262 79.0114381,13.6179599 79.4307814,13.24754 C79.8501247,12.8771201 80.5280528,12.691913 81.4645862,12.691913 L85.4063933,12.691913 L86.6434498,12.691913 C89.5648747,12.691913 91.7034933,12.8177141 93.0593699,13.06932 C94.4152465,13.320926 95.5684233,13.740263 96.5189347,14.3273436 C98.210286,15.3337675 99.5067362,16.7699967 100.408324,18.6360743 C101.309912,20.5021519 101.7607,22.6582429 101.7607,25.104412 C101.7607,27.6903623 101.247012,29.9512876 100.219621,31.8872557 C99.1922296,33.8232239 97.7350336,35.2874089 95.8479888,36.2798546 C94.9953241,36.7271541 93.9959043,37.0521403 92.8496993,37.2548229 C91.7034944,37.4575055 89.9981906,37.5588453 87.7337369,37.5588453 L85.4063933,37.5588453 L81.4645862,37.5588453 C80.5000966,37.5588453 79.8151795,37.380627 79.4098143,37.0241852 C79.0044492,36.6677435 78.8017696,36.0701882 78.8017696,35.2315017 C78.8017696,34.4906619 78.9974602,33.9280514 79.3888473,33.5436534 C79.7802344,33.1592554 80.3533282,32.9670593 81.1081461,32.9670593 L81.4645862,32.9670593 Z M86.8740874,17.2417648 L86.8740874,32.9670593 L88.0692098,32.9670593 C90.7110725,32.9670593 92.6609895,32.3205814 93.9190194,31.0276063 C95.1770492,29.7346312 95.8060547,27.7462749 95.8060547,25.0624779 C95.8060547,22.4206153 95.1665658,20.4497314 93.8875688,19.1497672 C92.6085718,17.849803 90.6831161,17.1998307 88.1111439,17.1998307 C87.7756693,17.1998307 87.5205727,17.2033252 87.3458463,17.2103142 C87.1711199,17.2173033 87.0138685,17.2277867 86.8740874,17.2417648 L86.8740874,17.2417648 Z M121.94052,17.1159625 L112.190837,17.1159625 L112.190837,22.4835296 L115.88104,22.4835296 L115.88104,22.2319249 C115.88104,21.4351727 116.055763,20.841112 116.405216,20.4497249 C116.754669,20.0583378 117.285829,19.8626472 117.998713,19.8626472 C118.627728,19.8626472 119.141415,20.0408655 119.539792,20.3973072 C119.938168,20.753749 120.137353,21.2045363 120.137353,21.7496826 C120.137353,21.7776388 120.144342,21.8684951 120.15832,22.0222543 C120.172298,22.1760135 120.179287,22.3297704 120.179287,22.4835296 L120.179287,26.8237109 C120.179287,27.7602442 120.011552,28.4311834 119.676077,28.8365486 C119.340603,29.2419138 118.795465,29.4445933 118.040647,29.4445933 C117.327763,29.4445933 116.789614,29.2558917 116.426183,28.8784827 C116.062752,28.5010738 115.88104,27.9419578 115.88104,27.201118 L115.88104,26.8237109 L112.190837,26.8237109 L112.190837,33.0928616 L121.94052,33.0928616 L121.94052,30.5977816 C121.94052,29.6612482 122.118738,28.9903091 122.47518,28.5849439 C122.831622,28.1795787 123.415199,27.9768992 124.225929,27.9768992 C125.022682,27.9768992 125.592281,28.1760842 125.934745,28.5744604 C126.277208,28.9728365 126.448438,29.6472701 126.448438,30.5977816 L126.448438,35.6718099 C126.448438,36.4266278 126.30167,36.9298322 126.008129,37.1814382 C125.714589,37.4330442 125.134506,37.5588453 124.267863,37.5588453 L107.095842,37.5588453 C106.173287,37.5588453 105.512831,37.3771326 105.114455,37.0137017 C104.716079,36.6502709 104.516894,36.0562101 104.516894,35.2315017 C104.516894,34.4906619 104.705595,33.9280514 105.083004,33.5436534 C105.460413,33.1592554 106.01254,32.9670593 106.739402,32.9670593 L107.095842,32.9670593 L107.095842,17.3256331 L106.739402,17.3256331 C106.026518,17.3256331 105.477886,17.126448 105.093488,16.7280719 C104.70909,16.3296957 104.516894,15.7600963 104.516894,15.0192565 C104.516894,14.2085262 104.719573,13.6179599 105.124938,13.24754 C105.530304,12.8771201 106.187265,12.691913 107.095842,12.691913 L124.267863,12.691913 C125.120528,12.691913 125.697116,12.8212085 125.997646,13.0798036 C126.298175,13.3383986 126.448438,13.8520864 126.448438,14.6208824 L126.448438,19.3175037 C126.448438,20.2680151 126.273714,20.9494377 125.924261,21.361792 C125.574808,21.7741462 125.008703,21.9803202 124.225929,21.9803202 C123.415199,21.9803202 122.831622,21.7706517 122.47518,21.3513084 C122.118738,20.9319652 121.94052,20.254037 121.94052,19.3175037 L121.94052,17.1159625 Z M19.7719369,47.6405477 C20.037521,47.1373358 20.3205734,46.7808993 20.6211028,46.5712277 C20.9216322,46.361556 21.295541,46.2567218 21.7428405,46.2567218 C22.4277678,46.2567218 22.9134998,46.4384345 23.2000511,46.8018653 C23.4866023,47.1652962 23.6298758,47.7873127 23.6298758,48.6679336 L23.6718099,54.119369 C23.6718099,55.0838586 23.5145586,55.7338309 23.2000511,56.0693055 C22.8855436,56.4047802 22.3089553,56.572515 21.4702687,56.572515 C20.8831881,56.572515 20.4254119,56.4292415 20.0969263,56.1426902 C19.7684407,55.856139 19.4993662,55.3424512 19.2896945,54.6016114 C18.9122856,53.2597129 18.3322027,52.3022267 17.5494286,51.7291243 C16.7666545,51.1560218 15.6693894,50.8694748 14.2576003,50.8694748 C12.1049715,50.8694748 10.4590738,51.5963256 9.31985785,53.050049 C8.18064193,54.5037724 7.61104252,56.6074463 7.61104252,59.3611338 C7.61104252,62.1148214 8.20859773,64.2429566 9.40372609,65.7456034 C10.5988544,67.2482501 12.2936748,67.9995623 14.488238,67.9995623 C14.9914499,67.9995623 15.5645438,67.9401562 16.2075368,67.8213423 C16.8505299,67.7025283 17.6053364,67.5173212 18.4719792,67.2657152 L18.4719792,63.9529198 L16.1027015,63.9529198 C15.1521901,63.9529198 14.4777564,63.7781961 14.0793803,63.4287433 C13.6810042,63.0792906 13.4818191,62.4992078 13.4818191,61.6884774 C13.4818191,60.8497908 13.6810042,60.2522356 14.0793803,59.8957938 C14.4777564,59.5393521 15.1521901,59.3611338 16.1027015,59.3611338 L23.6718099,59.3611338 C24.6502776,59.3611338 25.3386891,59.5358576 25.7370653,59.8853103 C26.1354414,60.2347631 26.3346265,60.8218348 26.3346265,61.6465433 C26.3346265,62.3873831 26.1354414,62.9569825 25.7370653,63.3553586 C25.3386891,63.7537347 24.7621008,63.9529198 24.0072829,63.9529198 L23.6718099,63.9529198 L23.6718099,68.9430799 L23.6718099,69.1946846 C23.6718099,69.6419841 23.6228873,69.9529924 23.5250405,70.1277188 C23.4271937,70.3024451 23.2315031,70.4806634 22.9379628,70.6623788 C22.1412106,71.1376345 20.8762107,71.5569715 19.1429251,71.9204023 C17.4096396,72.2838332 15.6554131,72.4655459 13.8801932,72.4655459 C10.2179286,72.4655459 7.25461383,71.2564576 4.99016011,68.8382446 C2.72570638,66.4200317 1.59349651,63.2610264 1.59349651,59.3611338 C1.59349651,55.6010224 2.73968428,52.4769618 5.03209423,49.9888583 C7.32450417,47.5007549 10.2319073,46.2567218 13.7543909,46.2567218 C14.7328585,46.2567218 15.7078171,46.368545 16.6792957,46.5921947 C17.6507743,46.8158445 18.6816444,47.165292 19.7719369,47.6405477 L19.7719369,47.6405477 Z M35.611576,51.5823548 L35.611576,56.4047785 L42.4678043,56.4047785 L42.4678043,51.5823548 L42.1323314,51.5823548 C41.3775135,51.5823548 40.8009251,51.3866642 40.402549,50.9952772 C40.0041729,50.6038901 39.8049878,50.0307962 39.8049878,49.2759783 C39.8049878,48.4512699 40.0111618,47.8572091 40.4235161,47.4937783 C40.8358703,47.1303474 41.5172929,46.9486347 42.4678043,46.9486347 L47.8773056,46.9486347 C48.8278171,46.9486347 49.5022507,47.1303474 49.9006269,47.4937783 C50.299003,47.8572091 50.498188,48.4512699 50.498188,49.2759783 C50.498188,50.0307962 50.3059919,50.6038901 49.9215939,50.9952772 C49.5371959,51.3866642 48.9745854,51.5823548 48.2337456,51.5823548 L47.8773056,51.5823548 L47.8773056,67.2237811 L48.2337456,67.2237811 C48.9885636,67.2237811 49.5616574,67.4159772 49.9530445,67.8003752 C50.3444316,68.1847732 50.5401222,68.7473837 50.5401222,69.4882235 C50.5401222,70.3129319 50.3374426,70.9069927 49.9320774,71.2704235 C49.5267123,71.6338543 48.8417952,71.815567 47.8773056,71.815567 L42.4678043,71.815567 C41.5033148,71.815567 40.8183977,71.6373488 40.4130325,71.280907 C40.0076674,70.9244652 39.8049878,70.32691 39.8049878,69.4882235 C39.8049878,68.7473837 40.0041729,68.1847732 40.402549,67.8003752 C40.8009251,67.4159772 41.3775135,67.2237811 42.1323314,67.2237811 L42.4678043,67.2237811 L42.4678043,61.0384986 L35.611576,61.0384986 L35.611576,67.2237811 L35.9470489,67.2237811 C36.7018668,67.2237811 37.2784552,67.4159772 37.6768313,67.8003752 C38.0752074,68.1847732 38.2743925,68.7473837 38.2743925,69.4882235 C38.2743925,70.3129319 38.0682185,70.9069927 37.6558642,71.2704235 C37.24351,71.6338543 36.5620874,71.815567 35.611576,71.815567 L30.2020747,71.815567 C29.2375851,71.815567 28.552668,71.6373488 28.1473029,71.280907 C27.7419377,70.9244652 27.5392581,70.32691 27.5392581,69.4882235 C27.5392581,68.7473837 27.7349487,68.1847732 28.1263358,67.8003752 C28.5177229,67.4159772 29.0908168,67.2237811 29.8456347,67.2237811 L30.2020747,67.2237811 L30.2020747,51.5823548 L29.8456347,51.5823548 C29.1047949,51.5823548 28.5421844,51.3866642 28.1577864,50.9952772 C27.7733884,50.6038901 27.5811923,50.0307962 27.5811923,49.2759783 C27.5811923,48.4512699 27.7803773,47.8572091 28.1787534,47.4937783 C28.5771296,47.1303474 29.2515632,46.9486347 30.2020747,46.9486347 L35.611576,46.9486347 C36.5481093,46.9486347 37.2260374,47.1303474 37.6453807,47.4937783 C38.064724,47.8572091 38.2743925,48.4512699 38.2743925,49.2759783 C38.2743925,50.0307962 38.0752074,50.6038901 37.6768313,50.9952772 C37.2784552,51.3866642 36.7018668,51.5823548 35.9470489,51.5823548 L35.611576,51.5823548 Z M67.365213,51.5823548 L67.365213,67.2237811 L70.887679,67.2237811 C71.8381904,67.2237811 72.519613,67.4019993 72.9319673,67.7584411 C73.3443215,68.1148829 73.5504955,68.6914712 73.5504955,69.4882235 C73.5504955,70.2989538 73.340827,70.8895201 72.9214837,71.25994 C72.5021404,71.6303599 71.8242123,71.815567 70.887679,71.815567 L58.4332458,71.815567 C57.4827343,71.815567 56.8013117,71.6338543 56.3889575,71.2704235 C55.9766033,70.9069927 55.7704292,70.3129319 55.7704292,69.4882235 C55.7704292,68.6774931 55.9731088,68.0974103 56.378474,67.7479575 C56.7838391,67.3985048 57.4687562,67.2237811 58.4332458,67.2237811 L61.9557117,67.2237811 L61.9557117,51.5823548 L58.4332458,51.5823548 C57.4827343,51.5823548 56.8013117,51.4006421 56.3889575,51.0372113 C55.9766033,50.6737805 55.7704292,50.0867087 55.7704292,49.2759783 C55.7704292,48.4512699 55.9731088,47.8641981 56.378474,47.5147453 C56.7838391,47.1652926 57.4687562,46.9905689 58.4332458,46.9905689 L70.887679,46.9905689 C71.8801247,46.9905689 72.5720308,47.1652926 72.9634178,47.5147453 C73.3548049,47.8641981 73.5504955,48.4512699 73.5504955,49.2759783 C73.5504955,50.0867087 73.347816,50.6737805 72.9424508,51.0372113 C72.5370856,51.4006421 71.8521685,51.5823548 70.887679,51.5823548 L67.365213,51.5823548 Z M97.8608265,51.5823548 L97.8608265,63.1771386 L97.8608265,63.5755127 C97.8608265,65.4485794 97.7385199,66.8044357 97.493903,67.6431222 C97.2492861,68.4818088 96.8404325,69.2296264 96.26733,69.8865976 C95.5264902,70.7392623 94.4991146,71.3822457 93.1851723,71.815567 C91.87123,72.2488884 90.2917273,72.4655459 88.4466169,72.4655459 C87.1466527,72.4655459 85.8921362,72.3397448 84.6830298,72.0881388 C83.4739233,71.8365328 82.3102631,71.4591296 81.1920144,70.9559176 C80.5769776,70.6763554 80.175113,70.31293 79.9864085,69.8656305 C79.797704,69.418331 79.7033532,68.6914802 79.7033532,67.6850564 L79.7033532,63.3658422 C79.7033532,62.1637247 79.8780769,61.3250508 80.2275297,60.849795 C80.5769824,60.3745393 81.185021,60.136915 82.0516638,60.136915 C83.2957156,60.136915 83.9806326,61.0524675 84.1064356,62.8835998 C84.1204137,63.2050963 84.1413806,63.4497096 84.1693368,63.6174469 C84.3370741,65.2389076 84.7144774,66.3466561 85.301558,66.9407258 C85.8886386,67.5347954 86.8251579,67.8318258 88.1111439,67.8318258 C89.7046484,67.8318258 90.8263749,67.4089943 91.476357,66.5633187 C92.126339,65.7176431 92.4513252,64.1765796 92.4513252,61.9400821 L92.4513252,51.5823548 L88.9288593,51.5823548 C87.9783478,51.5823548 87.2969252,51.4006421 86.884571,51.0372113 C86.4722168,50.6737805 86.2660427,50.0867087 86.2660427,49.2759783 C86.2660427,48.4512699 86.4652278,47.8641981 86.8636039,47.5147453 C87.26198,47.1652926 87.9503916,46.9905689 88.9288593,46.9905689 L99.6220595,46.9905689 C100.600527,46.9905689 101.288939,47.1652926 101.687315,47.5147453 C102.085691,47.8641981 102.284876,48.4512699 102.284876,49.2759783 C102.284876,50.0867087 102.078702,50.6737805 101.666348,51.0372113 C101.253994,51.4006421 100.572571,51.5823548 99.6220595,51.5823548 L97.8608265,51.5823548 Z M112.505343,51.5823548 L112.505343,57.9353738 L118.984165,51.4565525 C118.257303,51.3726838 117.747109,51.1665098 117.453569,50.8380242 C117.160029,50.5095387 117.013261,49.9888619 117.013261,49.2759783 C117.013261,48.4512699 117.212446,47.8572091 117.610822,47.4937783 C118.009198,47.1303474 118.683632,46.9486347 119.634143,46.9486347 L124.771073,46.9486347 C125.721584,46.9486347 126.396018,47.1303474 126.794394,47.4937783 C127.19277,47.8572091 127.391955,48.4512699 127.391955,49.2759783 C127.391955,50.0447743 127.19277,50.6213627 126.794394,51.0057607 C126.396018,51.3901587 125.812441,51.5823548 125.043645,51.5823548 L124.561402,51.5823548 L118.459988,57.641835 C119.592215,58.4805215 120.626579,59.5812811 121.563113,60.9441468 C122.499646,62.3070125 123.596911,64.400203 124.854941,67.2237811 L125.127513,67.2237811 L125.546854,67.2237811 C126.371563,67.2237811 126.98659,67.4124827 127.391955,67.7898917 C127.79732,68.1673006 128,68.7334056 128,69.4882235 C128,70.3129319 127.793826,70.9069927 127.381472,71.2704235 C126.969118,71.6338543 126.287695,71.815567 125.337183,71.815567 L122.758235,71.815567 C121.626008,71.815567 120.710456,71.0537715 120.01155,69.5301576 C119.885747,69.2505954 119.787902,69.026949 119.718012,68.8592117 C118.795456,66.9022764 117.949793,65.3926632 117.180997,64.3303269 C116.412201,63.2679906 115.510627,62.2965265 114.476247,61.4159056 L112.505343,63.302941 L112.505343,67.2237811 L112.840816,67.2237811 C113.595634,67.2237811 114.172222,67.4159772 114.570599,67.8003752 C114.968975,68.1847732 115.16816,68.7473837 115.16816,69.4882235 C115.16816,70.3129319 114.961986,70.9069927 114.549631,71.2704235 C114.137277,71.6338543 113.455855,71.815567 112.505343,71.815567 L107.095842,71.815567 C106.131352,71.815567 105.446435,71.6373488 105.04107,71.280907 C104.635705,70.9244652 104.433025,70.32691 104.433025,69.4882235 C104.433025,68.7473837 104.628716,68.1847732 105.020103,67.8003752 C105.41149,67.4159772 105.984584,67.2237811 106.739402,67.2237811 L107.095842,67.2237811 L107.095842,51.5823548 L106.739402,51.5823548 C105.998562,51.5823548 105.435952,51.3866642 105.051554,50.9952772 C104.667156,50.6038901 104.474959,50.0307962 104.474959,49.2759783 C104.474959,48.4512699 104.674145,47.8572091 105.072521,47.4937783 C105.470897,47.1303474 106.14533,46.9486347 107.095842,46.9486347 L112.505343,46.9486347 C113.441877,46.9486347 114.119805,47.1303474 114.539148,47.4937783 C114.958491,47.8572091 115.16816,48.4512699 115.16816,49.2759783 C115.16816,50.0307962 114.968975,50.6038901 114.570599,50.9952772 C114.172222,51.3866642 113.595634,51.5823548 112.840816,51.5823548 L112.505343,51.5823548 Z M13.439885,96.325622 L17.4445933,84.4372993 C17.6961993,83.6545252 18.0456468,83.0849258 18.4929463,82.728484 C18.9402458,82.3720422 19.5343065,82.193824 20.2751463,82.193824 L23.5460076,82.193824 C24.496519,82.193824 25.1779416,82.3755367 25.5902958,82.7389675 C26.0026501,83.1023984 26.2088241,83.6964591 26.2088241,84.5211676 C26.2088241,85.2759855 26.009639,85.8490794 25.6112629,86.2404664 C25.2128868,86.6318535 24.6362984,86.8275441 23.8814805,86.8275441 L23.5460076,86.8275441 L24.1330852,102.46897 L24.4895252,102.46897 C25.2443431,102.46897 25.8104481,102.661166 26.187857,103.045564 C26.565266,103.429962 26.7539676,103.992573 26.7539676,104.733413 C26.7539676,105.558121 26.5547826,106.152182 26.1564064,106.515613 C25.7580303,106.879044 25.0835967,107.060756 24.1330852,107.060756 L19.4154969,107.060756 C18.4649855,107.060756 17.7905518,106.882538 17.3921757,106.526096 C16.9937996,106.169654 16.7946145,105.572099 16.7946145,104.733413 C16.7946145,103.992573 16.9868106,103.429962 17.3712086,103.045564 C17.7556066,102.661166 18.325206,102.46897 19.0800239,102.46897 L19.4154969,102.46897 L19.1219581,89.6790642 L16.0607674,99.1981091 C15.8371177,99.9109927 15.5191204,100.42468 15.1067662,100.739188 C14.694412,101.053695 14.1248126,101.210947 13.3979509,101.210947 C12.6710892,101.210947 12.0945008,101.053695 11.6681685,100.739188 C11.2418362,100.42468 10.91685,99.9109927 10.6932002,99.1981091 L7.65297664,89.6790642 L7.35943781,102.46897 L7.69491075,102.46897 C8.44972866,102.46897 9.01932808,102.661166 9.40372609,103.045564 C9.78812409,103.429962 9.98032022,103.992573 9.98032022,104.733413 C9.98032022,105.558121 9.77764067,106.152182 9.3722755,106.515613 C8.96691032,106.879044 8.29597114,107.060756 7.35943781,107.060756 L2.62088241,107.060756 C1.68434908,107.060756 1.01340989,106.879044 0.608044719,106.515613 C0.202679546,106.152182 0,105.558121 0,104.733413 C0,103.992573 0.192196121,103.429962 0.57659413,103.045564 C0.960992139,102.661166 1.53059155,102.46897 2.28540946,102.46897 L2.62088241,102.46897 L3.22892713,86.8275441 L2.89345418,86.8275441 C2.13863627,86.8275441 1.56204791,86.6318535 1.16367179,86.2404664 C0.765295672,85.8490794 0.5661106,85.2759855 0.5661106,84.5211676 C0.5661106,83.6964591 0.772284622,83.1023984 1.18463885,82.7389675 C1.59699308,82.3755367 2.27841569,82.193824 3.22892713,82.193824 L6.49978838,82.193824 C7.22665007,82.193824 7.81022738,82.3685477 8.25053783,82.7180005 C8.69084827,83.0674532 9.05077919,83.6405471 9.33034138,84.4372993 L13.439885,96.325622 Z M43.8935644,98.3803938 L43.8935644,86.8275441 L42.7403761,86.8275441 C41.8178209,86.8275441 41.1573651,86.6458314 40.758989,86.2824006 C40.3606129,85.9189697 40.1614278,85.3318979 40.1614278,84.5211676 C40.1614278,83.7104372 40.3606129,83.119871 40.758989,82.7494511 C41.1573651,82.3790312 41.8178209,82.193824 42.7403761,82.193824 L48.6950209,82.193824 C49.6035981,82.193824 50.2605593,82.3790312 50.6659245,82.7494511 C51.0712897,83.119871 51.2739692,83.7104372 51.2739692,84.5211676 C51.2739692,85.2620074 51.0817731,85.8316068 50.6973751,86.2299829 C50.3129771,86.628359 49.7643445,86.8275441 49.051461,86.8275441 L48.6950209,86.8275441 L48.6950209,105.865634 C48.6950209,106.522605 48.6251315,106.934953 48.4853504,107.10269 C48.3455693,107.270428 48.0310665,107.354295 47.5418327,107.354295 L45.4451268,107.354295 C44.7741775,107.354295 44.3024234,107.284406 44.0298503,107.144625 C43.7572771,107.004843 43.5231473,106.76023 43.3274538,106.410777 L34.6051571,91.0838571 L34.6051571,102.46897 L35.8212466,102.46897 C36.7298237,102.46897 37.379796,102.643694 37.7711831,102.993147 C38.1625701,103.3426 38.3582607,103.922682 38.3582607,104.733413 C38.3582607,105.558121 38.1590757,106.152182 37.7606995,106.515613 C37.3623234,106.879044 36.7158456,107.060756 35.8212466,107.060756 L29.8037005,107.060756 C28.8951234,107.060756 28.2381621,106.879044 27.832797,106.515613 C27.4274318,106.152182 27.2247522,105.558121 27.2247522,104.733413 C27.2247522,103.992573 27.4134539,103.429962 27.7908629,103.045564 C28.1682718,102.661166 28.7273878,102.46897 29.4682276,102.46897 L29.8037005,102.46897 L29.8037005,86.8275441 L29.4682276,86.8275441 C28.755344,86.8275441 28.203217,86.628359 27.8118299,86.2299829 C27.4204428,85.8316068 27.2247522,85.2620074 27.2247522,84.5211676 C27.2247522,83.7104372 27.4309263,83.119871 27.8432805,82.7494511 C28.2556347,82.3790312 28.9091015,82.193824 29.8037005,82.193824 L33.2422983,82.193824 C34.0670067,82.193824 34.6261227,82.3021527 34.919663,82.5188134 C35.2132033,82.7354741 35.5416839,83.1722835 35.9051148,83.8292546 L43.8935644,98.3803938 Z M64.6604624,86.3662688 C62.8572863,86.3662688 61.4420239,87.0931196 60.4146329,88.546843 C59.3872418,90.0005663 58.873554,92.0203728 58.873554,94.6063231 C58.873554,97.1922733 59.3907363,99.2190688 60.4251164,100.68677 C61.4594965,102.154472 62.8712644,102.888312 64.6604624,102.888312 C66.4636385,102.888312 67.8823953,102.157966 68.9167754,100.697254 C69.9511555,99.2365414 70.4683378,97.2062514 70.4683378,94.6063231 C70.4683378,92.0203728 69.95465,90.0005663 68.9272589,88.546843 C67.8998679,87.0931196 66.4776166,86.3662688 64.6604624,86.3662688 L64.6604624,86.3662688 Z M64.6604624,81.501911 C68.0990773,81.501911 70.929602,82.7319662 73.1521214,85.1921135 C75.3746408,87.6522607 76.4858838,90.7902992 76.4858838,94.6063231 C76.4858838,98.4503032 75.3816297,101.595331 73.1730884,104.0415 C70.9645471,106.487669 68.1270335,107.710735 64.6604624,107.710735 C61.2358256,107.710735 58.4053009,106.477185 56.1688034,104.010049 C53.9323059,101.542913 52.8140739,98.4083688 52.8140739,94.6063231 C52.8140739,90.7763211 53.9218224,87.6347881 56.1373528,85.1816299 C58.3528831,82.7284717 61.1938912,81.501911 64.6604624,81.501911 L64.6604624,81.501911 Z M87.4611651,98.1707232 L87.4611651,102.46897 L89.6207722,102.46897 C90.5293493,102.46897 91.1758272,102.643694 91.5602252,102.993147 C91.9446232,103.3426 92.1368193,103.922682 92.1368193,104.733413 C92.1368193,105.558121 91.9411287,106.152182 91.5497417,106.515613 C91.1583546,106.879044 90.5153712,107.060756 89.6207722,107.060756 L82.3661697,107.060756 C81.4436145,107.060756 80.7831587,106.879044 80.3847826,106.515613 C79.9864065,106.152182 79.7872214,105.558121 79.7872214,104.733413 C79.7872214,103.992573 79.9759231,103.429962 80.353332,103.045564 C80.730741,102.661166 81.282868,102.46897 82.0097297,102.46897 L82.3661697,102.46897 L82.3661697,86.8275441 L82.0097297,86.8275441 C81.2968461,86.8275441 80.7482136,86.628359 80.3638155,86.2299829 C79.9794175,85.8316068 79.7872214,85.2620074 79.7872214,84.5211676 C79.7872214,83.7104372 79.989901,83.119871 80.3952661,82.7494511 C80.8006313,82.3790312 81.4575926,82.193824 82.3661697,82.193824 L91.0255652,82.193824 C94.450202,82.193824 97.0396079,82.8507853 98.7938606,84.1647276 C100.548113,85.4786699 101.425227,87.414609 101.425227,89.972603 C101.425227,92.6703781 100.551608,94.7111515 98.8043442,96.0949843 C97.0570805,97.4788171 94.4641801,98.1707232 91.0255652,98.1707232 L87.4611651,98.1707232 Z M87.4611651,86.8275441 L87.4611651,93.4531348 L90.4384875,93.4531348 C92.0879044,93.4531348 93.328443,93.1735768 94.1601405,92.6144525 C94.9918381,92.0553281 95.4076806,91.2166541 95.4076806,90.0984053 C95.4076806,89.0500471 94.9778602,88.2428234 94.1182064,87.67671 C93.2585527,87.1105966 92.031992,86.8275441 90.4384875,86.8275441 L87.4611651,86.8275441 Z M114.727851,107.396229 L113.092421,109.03166 C113.69348,108.835966 114.284046,108.689198 114.864137,108.591352 C115.444229,108.493505 116.013828,108.444582 116.572953,108.444582 C117.677223,108.444582 118.840883,108.608823 120.063968,108.937308 C121.287053,109.265794 122.031376,109.430034 122.29696,109.430034 C122.744259,109.430034 123.327837,109.279772 124.047709,108.979242 C124.767582,108.678713 125.253314,108.52845 125.50492,108.52845 C126.02211,108.52845 126.45193,108.727636 126.794394,109.126012 C127.136858,109.524388 127.308087,110.024098 127.308087,110.625156 C127.308087,111.421909 126.836333,112.099837 125.892811,112.658961 C124.949288,113.218086 123.792617,113.497643 122.422762,113.497643 C121.486229,113.497643 120.28413,113.277492 118.816428,112.837181 C117.348727,112.396871 116.286406,112.176719 115.629435,112.176719 C114.636989,112.176719 113.518757,112.449288 112.274706,112.994434 C111.030654,113.53958 110.261869,113.812149 109.968329,113.812149 C109.36727,113.812149 108.857077,113.612964 108.437734,113.214588 C108.01839,112.816212 107.808722,112.337469 107.808722,111.778345 C107.808722,111.386958 107.941512,110.971115 108.207096,110.530805 C108.47268,110.090494 108.94094,109.520895 109.611889,108.821989 L111.729562,106.683349 C109.395218,105.830685 107.536157,104.29661 106.152324,102.08108 C104.768491,99.8655494 104.076585,97.3180772 104.076585,94.4385866 C104.076585,90.6365409 105.180839,87.5299526 107.389381,85.1187288 C109.597922,82.7075049 112.442425,81.501911 115.922974,81.501911 C119.389545,81.501911 122.227059,82.7109994 124.4356,85.1292123 C126.644141,87.5474252 127.748395,90.650519 127.748395,94.4385866 C127.748395,98.2126762 126.65113,101.322759 124.456567,103.768928 C122.262004,106.215097 119.480402,107.438163 116.111677,107.438163 C115.888028,107.438163 115.660887,107.434669 115.430248,107.42768 C115.199609,107.420691 114.965479,107.410207 114.727851,107.396229 L114.727851,107.396229 Z M115.922974,86.3662688 C114.119798,86.3662688 112.704535,87.0931196 111.677144,88.546843 C110.649753,90.0005663 110.136065,92.0203728 110.136065,94.6063231 C110.136065,97.1922733 110.653248,99.2190688 111.687628,100.68677 C112.722008,102.154472 114.133776,102.888312 115.922974,102.888312 C117.72615,102.888312 119.144907,102.157966 120.179287,100.697254 C121.213667,99.2365414 121.730849,97.2062514 121.730849,94.6063231 C121.730849,92.0203728 121.217161,90.0005663 120.18977,88.546843 C119.162379,87.0931196 117.740128,86.3662688 115.922974,86.3662688 L115.922974,86.3662688 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-mono-line tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M60.4374591,84.522627 L61.3450888,84.522627 C63.2671377,84.522627 64.7264493,85.0120303 65.7230673,85.9908515 C66.7196852,86.9696727 67.2179868,88.4022896 67.2179868,90.288745 C67.2179868,92.3887615 66.6929905,93.9014625 65.6429823,94.8268935 C64.5929741,95.7523244 62.857817,96.215033 60.4374591,96.215033 L44.3670747,96.215033 C41.9111232,96.215033 40.1670679,95.7612227 39.1348565,94.8535884 C38.102645,93.9459542 37.586547,92.424355 37.586547,90.288745 C37.586547,88.2243221 38.102645,86.747214 39.1348565,85.8573766 C40.1670679,84.9675391 41.9111232,84.522627 44.3670747,84.522627 L46.235724,84.522627 L44.0467348,78.2759992 L20.9822627,78.2759992 L18.6864935,84.522627 L20.5551429,84.522627 C22.9755008,84.522627 24.7106579,84.9764373 25.7606661,85.8840716 C26.8106743,86.7917058 27.3356705,88.2599156 27.3356705,90.288745 C27.3356705,92.3887615 26.8106743,93.9014625 25.7606661,94.8268935 C24.7106579,95.7523244 22.9755008,96.215033 20.5551429,96.215033 L6.78052766,96.215033 C4.32457622,96.215033 2.58052094,95.7523244 1.54830946,94.8268935 C0.516097994,93.9014625 0,92.3887615 0,90.288745 C0,88.4022896 0.498301511,86.9696727 1.49491948,85.9908515 C2.49153745,85.0120303 3.95084902,84.522627 5.87289797,84.522627 L6.78052766,84.522627 L21.0890427,44.6937008 L16.8178442,44.6937008 C14.3974863,44.6937008 12.6623292,44.2309922 11.612321,43.3055613 C10.5623128,42.3801303 10.0373165,40.8852258 10.0373165,38.8208028 C10.0373165,36.7207864 10.5623128,35.2080854 11.612321,34.2826544 C12.6623292,33.3572234 14.3974863,32.8945149 16.8178442,32.8945149 L36.8390873,32.8945149 C40.0069087,32.8945149 42.231469,34.6029772 43.512835,38.0199531 L43.512835,38.180123 L60.4374591,84.522627 Z M32.4611088,44.6937008 L24.7195615,67.224273 L40.2026561,67.224273 L32.4611088,44.6937008 Z M89.5058233,68.5590225 L89.5058233,84.8429669 L97.5143205,84.8429669 C103.173687,84.8429669 107.160099,84.22009 109.473676,82.9743176 C111.787254,81.7285451 112.944025,79.6463566 112.944025,76.7276897 C112.944025,73.7734293 111.840643,71.6734444 109.633846,70.4276719 C107.427049,69.1818994 103.565213,68.5590225 98.0482204,68.5590225 L89.5058233,68.5590225 Z M116.734714,62.6327346 C120.614405,64.0564746 123.461842,66.0051894 125.277111,68.4789376 C127.092379,70.9526857 128,74.1115614 128,77.9556593 C128,81.1946677 127.216955,84.1488838 125.650841,86.8183962 C124.084727,89.4879087 121.84237,91.676876 118.923703,93.385364 C117.215215,94.3819819 115.302093,95.1027395 113.18428,95.5476582 C111.066467,95.9925769 108.06776,96.215033 104.188068,96.215033 L99.7033098,96.215033 L76.3184979,96.215033 C73.9693269,96.215033 72.2875593,95.7523244 71.2731446,94.8268935 C70.2587299,93.9014625 69.7515301,92.3887615 69.7515301,90.288745 C69.7515301,88.4022896 70.2320352,86.9696727 71.1930596,85.9908515 C72.1540841,85.0120303 73.5600062,84.522627 75.4108682,84.522627 L76.3184979,84.522627 L76.3184979,44.6937008 L75.4108682,44.6937008 C73.5600062,44.6937008 72.1540841,44.1953993 71.1930596,43.1987813 C70.2320352,42.2021633 69.7515301,40.7428518 69.7515301,38.8208028 C69.7515301,36.7563799 70.2676281,35.2525771 71.2998396,34.3093494 C72.3320511,33.3661217 74.0049204,32.8945149 76.3184979,32.8945149 L100.877889,32.8945149 C108.388118,32.8945149 114.09189,34.3538264 117.989378,37.2724934 C121.886867,40.1911603 123.835581,44.4623161 123.835581,50.0860889 C123.835581,52.8623819 123.239399,55.3093982 122.047017,57.4272114 C120.854635,59.5450246 119.083885,61.2801816 116.734714,62.6327346 L116.734714,62.6327346 Z M89.5058233,44.3733609 L89.5058233,57.8276363 L96.7134708,57.8276363 C101.091471,57.8276363 104.179161,57.3115383 105.976633,56.2793268 C107.774104,55.2471153 108.672827,53.50306 108.672827,51.0471086 C108.672827,48.7335312 107.863087,47.0428653 106.243583,45.9750604 C104.624078,44.9072554 101.999097,44.3733609 98.3685602,44.3733609 L89.5058233,44.3733609 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-new-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M56,72 L8.00697327,72 C3.59075293,72 0,68.418278 0,64 C0,59.5907123 3.58484404,56 8.00697327,56 L56,56 L56,8.00697327 C56,3.59075293 59.581722,0 64,0 C68.4092877,0 72,3.58484404 72,8.00697327 L72,56 L119.993027,56 C124.409247,56 128,59.581722 128,64 C128,68.4092877 124.415156,72 119.993027,72 L72,72 L72,119.993027 C72,124.409247 68.418278,128 64,128 C59.5907123,128 56,124.415156 56,119.993027 L56,72 L56,72 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-new-here-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n \t&lt;g transform=\&quot;translate(52.233611, 64.389922) rotate(75.000000) translate(-52.233611, -64.389922) translate(-7.734417, 3.702450)\&quot;&gt;\n\t &lt;path d=\&quot;M18.9270186,45.959338 L18.9080585,49.6521741 C18.8884833,53.4648378 21.0574548,58.7482162 23.7526408,61.4434022 L78.5671839,116.257945 C81.2617332,118.952495 85.6348701,118.950391 88.3334363,116.251825 L115.863237,88.7220241 C118.555265,86.0299959 118.564544,81.6509578 115.869358,78.9557717 L61.0548144,24.1412286 C58.3602652,21.4466794 53.0787224,19.2788426 49.2595808,19.3006519 L25.9781737,19.4336012 C22.1633003,19.4553862 19.0471195,22.5673232 19.0275223,26.3842526 L18.9871663,34.2443819 C19.0818862,34.255617 19.1779758,34.2665345 19.2754441,34.2771502 C22.6891275,34.6489512 27.0485594,34.2348566 31.513244,33.2285542 C31.7789418,32.8671684 32.075337,32.5211298 32.4024112,32.1940556 C34.8567584,29.7397084 38.3789778,29.0128681 41.4406288,30.0213822 C41.5958829,29.9543375 41.7503946,29.8866669 41.9041198,29.8183808 L42.1110981,30.2733467 C43.1114373,30.6972371 44.0473796,31.3160521 44.8614145,32.1300869 C48.2842088,35.5528813 48.2555691,41.130967 44.7974459,44.5890903 C41.4339531,47.952583 36.0649346,48.0717177 32.6241879,44.9262969 C27.8170558,45.8919233 23.0726921,46.2881596 18.9270186,45.959338 Z\&quot;&gt;&lt;/path&gt;\n\t &lt;path d=\&quot;M45.4903462,38.8768094 C36.7300141,42.6833154 26.099618,44.7997354 18.1909048,43.9383587 C7.2512621,42.7468685 1.50150083,35.8404432 4.66865776,24.7010202 C7.51507386,14.6896965 15.4908218,6.92103848 24.3842626,4.38423012 C34.1310219,1.60401701 42.4070208,6.15882777 42.4070209,16.3101169 L34.5379395,16.310117 C34.5379394,11.9285862 31.728784,10.3825286 26.5666962,11.8549876 C20.2597508,13.6540114 14.3453742,19.4148216 12.2444303,26.8041943 C10.4963869,32.9523565 12.6250796,35.5092726 19.0530263,36.2093718 C25.5557042,36.9176104 35.0513021,34.9907189 42.7038419,31.5913902 L42.7421786,31.6756595 C44.3874154,31.5384763 47.8846101,37.3706354 45.9274416,38.6772897 L45.9302799,38.6835285 C45.9166992,38.6895612 45.9031139,38.6955897 45.8895238,38.7016142 C45.8389288,38.7327898 45.7849056,38.7611034 45.7273406,38.7863919 C45.6506459,38.8200841 45.571574,38.8501593 45.4903462,38.8768094 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n &lt;rect x=\&quot;96\&quot; y=\&quot;80\&quot; width=\&quot;16\&quot; height=\&quot;48\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;80\&quot; y=\&quot;96\&quot; width=\&quot;48\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;/g&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-new-image-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M81.3619177,73.6270062 L97.1875317,46.2162388 C97.91364,44.9585822 97.4824378,43.3533085 96.2260476,42.6279312 L46.2162388,13.7547547 C44.9585822,13.0286463 43.3533085,13.4598485 42.6279312,14.7162388 L30.0575956,36.4886988 L40.0978909,31.2276186 C43.1404959,29.6333041 46.8692155,31.3421319 47.6479264,34.6877101 L51.2545483,52.3903732 L61.1353556,53.2399953 C63.2899974,53.4346096 65.1046382,54.9309951 65.706105,57.0091178 C65.7395572,57.1246982 65.8069154,57.3539875 65.9047035,57.6813669 C66.0696435,58.2335608 66.2581528,58.852952 66.4667073,59.5238092 C67.0618822,61.4383079 67.6960725,63.3742727 68.3393254,65.2021174 C68.5462918,65.7902259 68.7511789,66.3583016 68.953259,66.9034738 C69.5777086,68.5881157 70.1617856,70.0172008 70.6783305,71.110045 C70.9334784,71.6498566 71.1627732,72.0871602 71.4035746,72.5373068 C71.6178999,72.7492946 71.9508843,72.9623307 72.4151452,73.1586945 C73.5561502,73.6412938 75.1990755,73.899146 77.0720271,73.9171651 C77.9355886,73.9254732 78.7819239,73.8832103 79.5638842,73.8072782 C80.0123946,73.7637257 80.3172916,73.7224469 80.4352582,73.7027375 C80.7503629,73.6500912 81.0598053,73.6256267 81.3619177,73.6270062 L81.3619177,73.6270062 L81.3619177,73.6270062 L81.3619177,73.6270062 Z M37.4707881,2.64867269 C38.9217993,0.135447653 42.1388058,-0.723707984 44.6486727,0.725364314 L108.293614,37.4707881 C110.806839,38.9217993 111.665994,42.1388058 110.216922,44.6486727 L73.4714982,108.293614 C72.0204871,110.806839 68.8034805,111.665994 66.2936136,110.216922 L2.64867269,73.4714982 C0.135447653,72.0204871 -0.723707984,68.8034805 0.725364314,66.2936136 L37.4707881,2.64867269 L37.4707881,2.64867269 L37.4707881,2.64867269 L37.4707881,2.64867269 Z M80.3080975,53.1397764 C82.8191338,54.5895239 86.0299834,53.7291793 87.4797308,51.218143 C88.9294783,48.7071068 88.0691338,45.4962571 85.5580975,44.0465097 C83.0470612,42.5967622 79.8362116,43.4571068 78.3864641,45.968143 C76.9367166,48.4791793 77.7970612,51.6900289 80.3080975,53.1397764 L80.3080975,53.1397764 L80.3080975,53.1397764 L80.3080975,53.1397764 Z M96,112 L88.0070969,112 C83.5881712,112 80,108.418278 80,104 C80,99.5907123 83.5848994,96 88.0070969,96 L96,96 L96,88.0070969 C96,83.5881712 99.581722,80 104,80 C108.409288,80 112,83.5848994 112,88.0070969 L112,96 L119.992903,96 C124.411829,96 128,99.581722 128,104 C128,108.409288 124.415101,112 119.992903,112 L112,112 L112,119.992903 C112,124.411829 108.418278,128 104,128 C99.5907123,128 96,124.415101 96,119.992903 L96,112 L96,112 Z M33.3471097,51.7910932 C40.7754579,59.7394511 42.3564368,62.4818351 40.7958321,65.1848818 C39.2352273,67.8879286 26.9581062,62.8571718 24.7019652,66.7649227 C22.4458242,70.6726735 23.7947046,70.0228006 22.2648667,72.6725575 L41.9944593,84.0634431 C41.9944593,84.0634431 36.3904568,75.8079231 37.7602356,73.4353966 C40.2754811,69.0788636 46.5298923,72.1787882 48.1248275,69.4162793 C50.538989,65.234829 43.0222016,59.7770885 33.3471097,51.7910932 L33.3471097,51.7910932 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-new-journal-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M102.545455,112.818182 L102.545455,124.636364 L102.545455,124.636364 L102.545455,124.636364 C102.545455,125.941761 103.630828,127 104.969697,127 L111.030303,127 C112.369172,127 113.454545,125.941761 113.454545,124.636364 L113.454545,112.818182 L125.575758,112.818182 C126.914626,112.818182 128,111.759982 128,110.454545 L128,104.545455 C128,103.240018 126.914626,102.181818 125.575758,102.181818 L113.454545,102.181818 L113.454545,90.3636364 C113.454545,89.0582 112.369172,88 111.030303,88 L104.969697,88 L104.969697,88 C103.630828,88 102.545455,89.0582 102.545455,90.3636364 L102.545455,102.181818 L90.4242424,102.181818 L90.4242424,102.181818 C89.0853705,102.181818 88,103.240018 88,104.545455 L88,110.454545 L88,110.454545 L88,110.454545 C88,111.759982 89.0853705,112.818182 90.4242424,112.818182 L102.545455,112.818182 Z\&quot;&gt;&lt;/path&gt;\n &lt;g transform=\&quot;translate(59.816987, 64.316987) rotate(30.000000) translate(-59.816987, -64.316987) translate(20.316987, 12.816987)\&quot;&gt;\n &lt;g transform=\&quot;translate(0.000000, 0.000000)\&quot;&gt;\n &lt;path d=\&quot;M9.99631148,0 C4.4755011,0 -2.27373675e-13,4.48070044 -2.27373675e-13,9.99759461 L-2.27373675e-13,91.6128884 C-2.27373675e-13,97.1344074 4.46966773,101.610483 9.99631148,101.610483 L68.9318917,101.610483 C74.4527021,101.610483 78.9282032,97.1297826 78.9282032,91.6128884 L78.9282032,9.99759461 C78.9282032,4.47607557 74.4585355,0 68.9318917,0 L9.99631148,0 Z M20.8885263,26 C24.2022348,26 26.8885263,23.3137085 26.8885263,20 C26.8885263,16.6862915 24.2022348,14 20.8885263,14 C17.5748178,14 14.8885263,16.6862915 14.8885263,20 C14.8885263,23.3137085 17.5748178,26 20.8885263,26 Z M57.3033321,25.6783342 C60.6170406,25.6783342 63.3033321,22.9920427 63.3033321,19.6783342 C63.3033321,16.3646258 60.6170406,13.6783342 57.3033321,13.6783342 C53.9896236,13.6783342 51.3033321,16.3646258 51.3033321,19.6783342 C51.3033321,22.9920427 53.9896236,25.6783342 57.3033321,25.6783342 Z\&quot;&gt;&lt;/path&gt;\n &lt;text font-family=\&quot;Helvetica\&quot; font-size=\&quot;47.1724138\&quot; font-weight=\&quot;bold\&quot; fill=\&quot;#FFFFFF\&quot;&gt;\n &lt;tspan x=\&quot;42\&quot; y=\&quot;77.4847912\&quot; text-anchor=\&quot;middle\&quot;&gt;&lt;&lt;now \&quot;DD\&quot;&gt;&gt;&lt;/tspan&gt;\n &lt;/text&gt;\n &lt;/g&gt;\n &lt;/g&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-opacity tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M102.361773,65 C101.833691,67.051742 101.183534,69.0544767 100.419508,71 L82.5835324,71 C83.7602504,69.1098924 84.7666304,67.1027366 85.581205,65 L102.361773,65 Z M102.834311,63 C103.256674,61.0388326 103.568427,59.0365486 103.762717,57 L87.6555706,57 C87.3692052,59.0609452 86.9083652,61.0660782 86.2884493,63 L102.834311,63 Z M99.5852583,73 C98.6682925,75.0747721 97.6196148,77.0783056 96.4498253,79 L75.8124196,79 C77.8387053,77.2115633 79.6621163,75.1985844 81.2437158,73 L99.5852583,73 Z M95.1689122,81 C93.7449202,83.1155572 92.1695234,85.1207336 90.458251,87 L60.4614747,87 C65.1836162,85.86248 69.5430327,83.794147 73.3347255,81 L95.1689122,81 Z M87.6555706,47 L103.762717,47 C101.246684,20.6269305 79.0321807,0 52,0 C23.281193,0 0,23.281193 0,52 C0,77.2277755 17.9651296,98.2595701 41.8000051,103 L62.1999949,103 C67.8794003,101.870444 73.2255333,99.8158975 78.074754,97 L39,97 L39,95 L81.2493857,95 C83.8589242,93.2215015 86.2981855,91.2116653 88.5376609,89 L39,89 L39,87 L43.5385253,87 C27.7389671,83.1940333 16,68.967908 16,52 C16,32.117749 32.117749,16 52,16 C70.1856127,16 85.2217929,29.4843233 87.6555706,47 Z M87.8767787,49 L103.914907,49 C103.971379,49.9928025 104,50.9930589 104,52 C104,53.0069411 103.971379,54.0071975 103.914907,55 L87.8767787,55 C87.958386,54.0107999 88,53.0102597 88,52 C88,50.9897403 87.958386,49.9892001 87.8767787,49 Z\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M76,128 C104.718807,128 128,104.718807 128,76 C128,47.281193 104.718807,24 76,24 C47.281193,24 24,47.281193 24,76 C24,104.718807 47.281193,128 76,128 L76,128 Z M76,112 C95.882251,112 112,95.882251 112,76 C112,56.117749 95.882251,40 76,40 C56.117749,40 40,56.117749 40,76 C40,95.882251 56.117749,112 76,112 L76,112 Z\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M37,58 L90,58 L90,62 L37,62 L37,58 L37,58 Z M40,50 L93,50 L93,54 L40,54 L40,50 L40,50 Z M40,42 L93,42 L93,46 L40,46 L40,42 L40,42 Z M32,66 L85,66 L85,70 L32,70 L32,66 L32,66 Z M30,74 L83,74 L83,78 L30,78 L30,74 L30,74 Z M27,82 L80,82 L80,86 L27,86 L27,82 L27,82 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-open-window tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M16,112 L104.993898,112 C108.863261,112 112,115.590712 112,120 C112,124.418278 108.858091,128 104.993898,128 L7.00610161,128 C3.13673853,128 0,124.409288 0,120 C0,119.998364 4.30952878e-07,119.996727 1.29273572e-06,119.995091 C4.89579306e-07,119.993456 0,119.99182 0,119.990183 L0,24.0098166 C0,19.586117 3.59071231,16 8,16 C12.418278,16 16,19.5838751 16,24.0098166 L16,112 Z\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M96,43.1959595 L96,56 C96,60.418278 99.581722,64 104,64 C108.418278,64 112,60.418278 112,56 L112,24 C112,19.5907123 108.415101,16 103.992903,16 L72.0070969,16 C67.5881712,16 64,19.581722 64,24 C64,28.4092877 67.5848994,32 72.0070969,32 L84.5685425,32 L48.2698369,68.2987056 C45.1421332,71.4264093 45.1434327,76.4904296 48.267627,79.614624 C51.3854642,82.7324612 56.4581306,82.7378289 59.5835454,79.6124141 L96,43.1959595 Z M32,7.9992458 C32,3.58138434 35.5881049,0 39.9992458,0 L120.000754,0 C124.418616,0 128,3.5881049 128,7.9992458 L128,88.0007542 C128,92.4186157 124.411895,96 120.000754,96 L39.9992458,96 C35.5813843,96 32,92.4118951 32,88.0007542 L32,7.9992458 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-options-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M110.48779,76.0002544 C109.354214,80.4045063 107.611262,84.5641217 105.354171,88.3838625 L105.354171,88.3838625 L112.07833,95.1080219 C115.20107,98.2307613 115.210098,103.299824 112.089164,106.420759 L106.420504,112.089418 C103.301049,115.208874 98.2346851,115.205502 95.1077675,112.078585 L88.3836082,105.354425 C84.5638673,107.611516 80.4042519,109.354468 76,110.488045 L76,110.488045 L76,119.993281 C76,124.409501 72.4220153,128.000254 68.0083475,128.000254 L59.9916525,128.000254 C55.5800761,128.000254 52,124.41541 52,119.993281 L52,110.488045 C47.5957481,109.354468 43.4361327,107.611516 39.6163918,105.354425 L32.8922325,112.078585 C29.7694931,115.201324 24.7004301,115.210353 21.5794957,112.089418 L15.9108363,106.420759 C12.7913807,103.301303 12.7947522,98.2349395 15.9216697,95.1080219 L22.6458291,88.3838625 C20.3887383,84.5641217 18.6457859,80.4045063 17.5122098,76.0002544 L8.00697327,76.0002544 C3.59075293,76.0002544 2.19088375e-16,72.4222697 4.89347582e-16,68.0086019 L9.80228577e-16,59.9919069 C1.25035972e-15,55.5803305 3.58484404,52.0002544 8.00697327,52.0002544 L17.5122098,52.0002544 C18.6457859,47.5960025 20.3887383,43.4363871 22.6458291,39.6166462 L15.9216697,32.8924868 C12.7989304,29.7697475 12.7899019,24.7006845 15.9108363,21.5797501 L21.5794957,15.9110907 C24.6989513,12.7916351 29.7653149,12.7950065 32.8922325,15.9219241 L39.6163918,22.6460835 C43.4361327,20.3889927 47.5957481,18.6460403 52,17.5124642 L52,8.00722764 C52,3.5910073 55.5779847,0.000254375069 59.9916525,0.000254375069 L68.0083475,0.000254375069 C72.4199239,0.000254375069 76,3.58509841 76,8.00722764 L76,17.5124642 C80.4042519,18.6460403 84.5638673,20.3889927 88.3836082,22.6460835 L95.1077675,15.9219241 C98.2305069,12.7991848 103.29957,12.7901562 106.420504,15.9110907 L112.089164,21.5797501 C115.208619,24.6992057 115.205248,29.7655693 112.07833,32.8924868 L105.354171,39.6166462 L105.354171,39.6166462 C107.611262,43.4363871 109.354214,47.5960025 110.48779,52.0002544 L119.993027,52.0002544 C124.409247,52.0002544 128,55.5782391 128,59.9919069 L128,68.0086019 C128,72.4201783 124.415156,76.0002544 119.993027,76.0002544 L110.48779,76.0002544 L110.48779,76.0002544 Z M64,96.0002544 C81.673112,96.0002544 96,81.6733664 96,64.0002544 C96,46.3271424 81.673112,32.0002544 64,32.0002544 C46.326888,32.0002544 32,46.3271424 32,64.0002544 C32,81.6733664 46.326888,96.0002544 64,96.0002544 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-paint tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M83.5265806,76.1907935 C90.430962,69.2864121 91.8921169,59.0000433 87.9100453,50.6642209 L125.812763,12.7615036 C128.732035,9.84223095 128.72611,5.10322984 125.812796,2.18991592 C122.893542,-0.729338085 118.161775,-0.730617045 115.241209,2.18994966 L77.3384914,40.092667 C69.002669,36.1105954 58.7163002,37.5717503 51.8119188,44.4761317 L83.5265806,76.1907935 L83.5265806,76.1907935 L83.5265806,76.1907935 L83.5265806,76.1907935 Z M80.8836921,78.8336819 L49.1690303,47.1190201 C49.1690303,47.1190201 8.50573364,81.242543 0,80.2820711 C0,80.2820711 3.78222974,85.8744423 6.82737483,88.320684 C20.8514801,82.630792 44.1526049,63.720771 44.1526049,63.720771 L44.8144806,64.3803375 C44.8144806,64.3803375 19.450356,90.2231043 9.18040433,92.0477601 C10.4017154,93.4877138 13.5343883,96.1014812 15.4269991,97.8235871 C20.8439164,96.3356979 50.1595367,69.253789 50.1595367,69.253789 L50.8214124,69.9133555 L18.4136144,100.936036 L23.6993903,106.221812 L56.1060358,75.2002881 L56.7679115,75.8598546 C56.7679115,75.8598546 28.9040131,106.396168 28.0841366,108.291555 C28.0841366,108.291555 34.1159238,115.144621 35.6529617,116.115796 C36.3545333,113.280171 63.5365402,82.6307925 63.5365402,82.6307925 L64.1984159,83.290359 C64.1984159,83.290359 43.6013016,107.04575 39.2343772,120.022559 C42.443736,123.571575 46.7339155,125.159692 50.1595362,126.321151 C47.9699978,114.504469 80.8836921,78.8336819 80.8836921,78.8336819 L80.8836921,78.8336819 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-palette tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M80.2470434,39.1821571 C75.0645698,38.2680897 69.6261555,37.7814854 64.0193999,37.7814854 C28.6624616,37.7814854 0,57.1324214 0,81.0030106 C0,90.644534 4.67604329,99.5487133 12.5805659,106.738252 C23.5031767,91.1899067 26.3405471,72.3946229 36.8885698,63.5622337 C52.0716764,50.8486559 63.4268694,55.7343343 63.4268694,55.7343343 L80.2470434,39.1821571 Z M106.781666,48.8370714 C119.830962,56.749628 128.0388,68.229191 128.0388,81.0030106 C128.0388,90.3534932 128.557501,98.4142085 116.165191,106.082518 C105.367708,112.763955 112.341384,99.546808 104.321443,95.1851533 C96.3015017,90.8234987 84.3749007,96.492742 86.1084305,103.091059 C89.3087234,115.272303 105.529892,114.54645 92.4224435,119.748569 C79.3149955,124.950687 74.2201582,124.224536 64.0193999,124.224536 C56.1979176,124.224536 48.7040365,123.277578 41.7755684,121.544216 C51.620343,117.347916 69.6563669,109.006202 75.129737,102.088562 C82.7876655,92.4099199 87.3713218,80.0000002 83.3235694,72.4837191 C83.1303943,72.1250117 94.5392656,60.81569 106.781666,48.8370714 Z M1.13430476,123.866563 C0.914084026,123.867944 0.693884185,123.868637 0.473712455,123.868637 C33.9526848,108.928928 22.6351223,59.642592 59.2924543,59.6425917 C59.6085574,61.0606542 59.9358353,62.5865065 60.3541977,64.1372318 C34.4465025,59.9707319 36.7873124,112.168427 1.13429588,123.866563 L1.13430476,123.866563 Z M1.84669213,123.859694 C40.7185279,123.354338 79.9985412,101.513051 79.9985401,79.0466836 C70.7284906,79.0466835 65.9257264,75.5670082 63.1833375,71.1051511 C46.585768,64.1019718 32.81846,116.819636 1.84665952,123.859695 L1.84669213,123.859694 Z M67.1980193,59.8524981 C62.748213,63.9666823 72.0838429,76.2846822 78.5155805,71.1700593 C89.8331416,59.8524993 112.468264,37.2173758 123.785825,25.8998146 C135.103386,14.5822535 123.785825,3.26469247 112.468264,14.5822535 C101.150703,25.8998144 78.9500931,48.9868127 67.1980193,59.8524981 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-permalink-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M80.4834582,48 L73.0956761,80 L73.0956761,80 L47.5165418,80 L54.9043239,48 L80.4834582,48 Z M84.1773493,32 L89.8007299,7.64246248 C90.7941633,3.33942958 95.0918297,0.64641956 99.3968675,1.64031585 C103.693145,2.63218977 106.385414,6.93288901 105.390651,11.2416793 L100.598215,32 L104.000754,32 C108.411895,32 112,35.581722 112,40 C112,44.4092877 108.418616,48 104.000754,48 L96.9043239,48 L89.5165418,80 L104.000754,80 C108.411895,80 112,83.581722 112,88 C112,92.4092877 108.418616,96 104.000754,96 L85.8226507,96 L80.1992701,120.357538 C79.2058367,124.66057 74.9081703,127.35358 70.6031325,126.359684 C66.3068546,125.36781 63.6145865,121.067111 64.6093491,116.758321 L69.401785,96 L43.8226507,96 L38.1992701,120.357538 C37.2058367,124.66057 32.9081703,127.35358 28.6031325,126.359684 C24.3068546,125.36781 21.6145865,121.067111 22.6093491,116.758321 L27.401785,96 L23.9992458,96 C19.5881049,96 16,92.418278 16,88 C16,83.5907123 19.5813843,80 23.9992458,80 L31.0956761,80 L38.4834582,48 L23.9992458,48 C19.5881049,48 16,44.418278 16,40 C16,35.5907123 19.5813843,32 23.9992458,32 L42.1773493,32 L47.8007299,7.64246248 C48.7941633,3.33942958 53.0918297,0.64641956 57.3968675,1.64031585 C61.6931454,2.63218977 64.3854135,6.93288901 63.3906509,11.2416793 L58.598215,32 L84.1773493,32 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-permaview-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M81.4834582,48 L79.6365127,56 L79.6365127,56 L74.0573784,56 L75.9043239,48 L81.4834582,48 Z M85.1773493,32 L90.8007299,7.64246248 C91.7941633,3.33942958 96.0918297,0.64641956 100.396867,1.64031585 C104.693145,2.63218977 107.385414,6.93288901 106.390651,11.2416793 L101.598215,32 L104.000754,32 C108.411895,32 112,35.581722 112,40 C112,44.4092877 108.418616,48 104.000754,48 L97.9043239,48 L96.0573784,56 L104.000754,56 C108.411895,56 112,59.581722 112,64 C112,68.4092877 108.418616,72 104.000754,72 L92.3634873,72 L90.5165418,80 L104.000754,80 C108.411895,80 112,83.581722 112,88 C112,92.4092877 108.418616,96 104.000754,96 L86.8226507,96 L81.1992701,120.357538 C80.2058367,124.66057 75.9081703,127.35358 71.6031325,126.359684 C67.3068546,125.36781 64.6145865,121.067111 65.6093491,116.758321 L70.401785,96 L64.8226507,96 L59.1992701,120.357538 C58.2058367,124.66057 53.9081703,127.35358 49.6031325,126.359684 C45.3068546,125.36781 42.6145865,121.067111 43.6093491,116.758321 L48.401785,96 L42.8226507,96 L37.1992701,120.357538 C36.2058367,124.66057 31.9081703,127.35358 27.6031325,126.359684 C23.3068546,125.36781 20.6145865,121.067111 21.6093491,116.758321 L26.401785,96 L23.9992458,96 C19.5881049,96 16,92.418278 16,88 C16,83.5907123 19.5813843,80 23.9992458,80 L30.0956761,80 L31.9426216,72 L23.9992458,72 C19.5881049,72 16,68.418278 16,64 C16,59.5907123 19.5813843,56 23.9992458,56 L35.6365127,56 L37.4834582,48 L23.9992458,48 C19.5881049,48 16,44.418278 16,40 C16,35.5907123 19.5813843,32 23.9992458,32 L41.1773493,32 L46.8007299,7.64246248 C47.7941633,3.33942958 52.0918297,0.64641956 56.3968675,1.64031585 C60.6931454,2.63218977 63.3854135,6.93288901 62.3906509,11.2416793 L57.598215,32 L63.1773493,32 L68.8007299,7.64246248 C69.7941633,3.33942958 74.0918297,0.64641956 78.3968675,1.64031585 C82.6931454,2.63218977 85.3854135,6.93288901 84.3906509,11.2416793 L79.598215,32 L85.1773493,32 Z M53.9043239,48 L52.0573784,56 L57.6365127,56 L59.4834582,48 L53.9043239,48 Z M75.9426216,72 L74.0956761,80 L74.0956761,80 L68.5165418,80 L70.3634873,72 L75.9426216,72 L75.9426216,72 Z M48.3634873,72 L46.5165418,80 L52.0956761,80 L53.9426216,72 L48.3634873,72 L48.3634873,72 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-picture tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M112,68.2332211 L112,20.0027785 C112,17.7898769 110.207895,16 107.997221,16 L20.0027785,16 C17.7898769,16 16,17.792105 16,20.0027785 L16,58.312373 L25.2413115,43.7197989 C28.041793,39.297674 34.2643908,38.7118128 37.8410347,42.5335275 L56.0882845,63.1470817 L69.7748997,56.7400579 C72.766567,55.3552503 76.3013751,55.9473836 78.678437,58.2315339 C78.8106437,58.3585731 79.0742301,58.609836 79.4527088,58.9673596 C80.0910923,59.570398 80.8117772,60.2441563 81.598127,60.9705595 C83.8422198,63.043576 86.1541548,65.1151944 88.3956721,67.0372264 C89.1168795,67.6556396 89.8200801,68.2492007 90.5021258,68.8146755 C92.6097224,70.5620551 94.4693308,72.0029474 95.9836366,73.0515697 C96.7316295,73.5695379 97.3674038,73.9719282 98.0281481,74.3824999 C98.4724987,74.4989557 99.0742374,74.5263881 99.8365134,74.4317984 C101.709944,74.1993272 104.074502,73.2878514 106.559886,71.8846196 C107.705822,71.2376318 108.790494,70.5370325 109.764561,69.8410487 C110.323259,69.4418522 110.694168,69.1550757 110.834827,69.0391868 C111.210545,68.7296319 111.600264,68.4615815 112,68.2332211 L112,68.2332211 Z M0,8.00697327 C0,3.58484404 3.59075293,0 8.00697327,0 L119.993027,0 C124.415156,0 128,3.59075293 128,8.00697327 L128,119.993027 C128,124.415156 124.409247,128 119.993027,128 L8.00697327,128 C3.58484404,128 0,124.409247 0,119.993027 L0,8.00697327 L0,8.00697327 Z M95,42 C99.418278,42 103,38.418278 103,34 C103,29.581722 99.418278,26 95,26 C90.581722,26 87,29.581722 87,34 C87,38.418278 90.581722,42 95,42 L95,42 Z M32,76 C47.8587691,80.8294182 52.0345556,83.2438712 52.0345556,88 C52.0345556,92.7561288 32,95.4712486 32,102.347107 C32,109.222965 33.2849191,107.337637 33.2849191,112 L67.999999,112 C67.999999,112 54.3147136,105.375255 54.3147136,101.200691 C54.3147136,93.535181 64.9302432,92.860755 64.9302432,88 C64.9302432,80.6425555 50.8523779,79.167282 32,76 L32,76 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M61.2072232,68.1369825 C56.8829239,70.9319564 54.2082892,74.793177 54.2082892,79.0581634 C54.2082892,86.9638335 63.3980995,93.4821994 75.2498076,94.3940006 C77.412197,98.2964184 83.8475284,101.178858 91.5684735,101.403106 C86.4420125,100.27851 82.4506393,97.6624107 80.9477167,94.3948272 C92.8046245,93.4861461 102,86.9662269 102,79.0581634 C102,70.5281905 91.3014611,63.6132813 78.1041446,63.6132813 C71.5054863,63.6132813 65.5315225,65.3420086 61.2072232,68.1369825 Z M74.001066,53.9793443 C69.6767667,56.7743182 63.7028029,58.5030456 57.1041446,58.5030456 C54.4851745,58.5030456 51.9646095,58.2307276 49.6065315,57.7275105 C46.2945155,59.9778212 41.2235699,61.4171743 35.5395922,61.4171743 C35.4545771,61.4171743 35.3696991,61.4168523 35.2849622,61.4162104 C39.404008,60.5235193 42.7961717,58.6691298 44.7630507,56.286533 C37.8379411,53.5817651 33.2082892,48.669413 33.2082892,43.0581634 C33.2082892,34.5281905 43.9068281,27.6132812 57.1041446,27.6132812 C70.3014611,27.6132812 81,34.5281905 81,43.0581634 C81,47.3231498 78.3253653,51.1843704 74.001066,53.9793443 Z M64,0 L118.5596,32 L118.5596,96 L64,128 L9.44039956,96 L9.44039956,32 L64,0 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M40.3972881,76.4456988 L40.3972881,95.3404069 L54.5170166,95.3404069 L54.5170166,95.3404069 C54.5165526,95.3385183 54.516089,95.3366295 54.515626,95.3347404 C54.6093153,95.3385061 54.7034848,95.3404069 54.7980982,95.3404069 C58.6157051,95.3404069 61.710487,92.245625 61.710487,88.4280181 C61.710487,86.6197822 61.01617,84.9737128 59.8795929,83.7418666 L59.8795929,83.7418666 C59.8949905,83.7341665 59.9104102,83.7265043 59.925852,83.7188798 C58.8840576,82.5086663 58.2542926,80.9336277 58.2542926,79.2114996 C58.2542926,75.3938927 61.3490745,72.2991108 65.1666814,72.2991108 C68.9842884,72.2991108 72.0790703,75.3938927 72.0790703,79.2114996 C72.0790703,81.1954221 71.2432806,82.9841354 69.9045961,84.2447446 L69.9045961,84.2447446 C69.9333407,84.2629251 69.9619885,84.281245 69.9905383,84.2997032 L69.9905383,84.2997032 C69.1314315,85.4516923 68.6228758,86.8804654 68.6228758,88.4280181 C68.6228758,91.8584969 71.1218232,94.7053153 74.3986526,95.2474079 C74.3913315,95.2784624 74.3838688,95.3094624 74.3762652,95.3404069 L95.6963988,95.3404069 L95.6963988,75.5678578 L95.6963988,75.5678578 C95.6466539,75.5808558 95.5967614,75.5934886 95.5467242,75.6057531 C95.5504899,75.5120637 95.5523907,75.4178943 95.5523907,75.3232809 C95.5523907,71.505674 92.4576088,68.4108921 88.6400019,68.4108921 C86.831766,68.4108921 85.1856966,69.105209 83.9538504,70.2417862 L83.9538504,70.2417862 C83.9461503,70.2263886 83.938488,70.2109688 83.9308636,70.1955271 C82.7206501,71.2373215 81.1456115,71.8670865 79.4234834,71.8670865 C75.6058765,71.8670865 72.5110946,68.7723046 72.5110946,64.9546976 C72.5110946,61.1370907 75.6058765,58.0423088 79.4234834,58.0423088 C81.4074059,58.0423088 83.1961192,58.8780985 84.4567284,60.2167829 L84.4567284,60.2167829 C84.4749089,60.1880383 84.4932288,60.1593906 84.511687,60.1308407 L84.511687,60.1308407 C85.6636761,60.9899475 87.0924492,61.4985032 88.6400019,61.4985032 C92.0704807,61.4985032 94.9172991,58.9995558 95.4593917,55.7227265 C95.538755,55.7414363 95.6177614,55.761071 95.6963988,55.7816184 L95.6963988,40.0412962 L74.3762652,40.0412962 L74.3762652,40.0412962 C74.3838688,40.0103516 74.3913315,39.9793517 74.3986526,39.9482971 L74.3986526,39.9482971 C71.1218232,39.4062046 68.6228758,36.5593862 68.6228758,33.1289073 C68.6228758,31.5813547 69.1314315,30.1525815 69.9905383,29.0005925 C69.9619885,28.9821342 69.9333407,28.9638143 69.9045961,28.9456339 C71.2432806,27.6850247 72.0790703,25.8963113 72.0790703,23.9123888 C72.0790703,20.0947819 68.9842884,17 65.1666814,17 C61.3490745,17 58.2542926,20.0947819 58.2542926,23.9123888 C58.2542926,25.6345169 58.8840576,27.2095556 59.925852,28.419769 L59.925852,28.419769 C59.9104102,28.4273935 59.8949905,28.4350558 59.8795929,28.4427558 C61.01617,29.674602 61.710487,31.3206715 61.710487,33.1289073 C61.710487,36.9465143 58.6157051,40.0412962 54.7980982,40.0412962 C54.7034848,40.0412962 54.6093153,40.0393953 54.515626,40.0356296 L54.515626,40.0356296 C54.516089,40.0375187 54.5165526,40.0394075 54.5170166,40.0412962 L40.3972881,40.0412962 L40.3972881,52.887664 L40.3972881,52.887664 C40.4916889,53.3430132 40.5412962,53.8147625 40.5412962,54.2980982 C40.5412962,58.1157051 37.4465143,61.210487 33.6289073,61.210487 C32.0813547,61.210487 30.6525815,60.7019313 29.5005925,59.8428245 C29.4821342,59.8713744 29.4638143,59.9000221 29.4456339,59.9287667 C28.1850247,58.5900823 26.3963113,57.7542926 24.4123888,57.7542926 C20.5947819,57.7542926 17.5,60.8490745 17.5,64.6666814 C17.5,68.4842884 20.5947819,71.5790703 24.4123888,71.5790703 C26.134517,71.5790703 27.7095556,70.9493053 28.919769,69.9075109 L28.919769,69.9075109 C28.9273935,69.9229526 28.9350558,69.9383724 28.9427558,69.95377 C30.174602,68.8171928 31.8206715,68.1228758 33.6289073,68.1228758 C37.4465143,68.1228758 40.5412962,71.2176578 40.5412962,75.0352647 C40.5412962,75.5186004 40.4916889,75.9903496 40.3972881,76.4456988 Z M64,0 L118.5596,32 L118.5596,96 L64,128 L9.44039956,96 L9.44039956,32 L64,0 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M29.4078519,91.4716406 L51.4693474,69.4101451 L51.4646675,69.4054652 C50.5969502,68.5377479 50.5929779,67.1348725 51.4693474,66.2585029 C52.3396494,65.3882009 53.7499654,65.3874786 54.6163097,66.2538229 L64.0805963,75.7181095 C64.9483136,76.5858268 64.9522859,77.9887022 64.0759163,78.8650718 C63.2056143,79.7353737 61.7952984,79.736096 60.9289541,78.8697517 L60.9242741,78.8650718 L60.9242741,78.8650718 L38.8627786,100.926567 C36.2518727,103.537473 32.0187578,103.537473 29.4078519,100.926567 C26.796946,98.3156614 26.796946,94.0825465 29.4078519,91.4716406 Z M60.8017407,66.3810363 C58.3659178,63.6765806 56.3370667,61.2899536 54.9851735,59.5123615 C48.1295381,50.4979488 44.671561,55.2444054 40.7586738,59.5123614 C36.8457866,63.7803174 41.789473,67.2384487 38.0759896,70.2532832 C34.3625062,73.2681177 34.5917646,74.3131575 28.3243876,68.7977024 C22.0570105,63.2822473 21.6235306,61.7636888 24.5005999,58.6166112 C27.3776691,55.4695337 29.7823103,60.4247912 35.6595047,54.8320442 C41.5366991,49.2392972 36.5996215,44.2825646 36.5996215,44.2825646 C36.5996215,44.2825646 48.8365511,19.267683 65.1880231,21.1152173 C81.5394952,22.9627517 59.0022276,18.7228947 53.3962199,38.3410355 C50.9960082,46.7405407 53.8429162,44.7613399 58.3941742,48.3090467 C59.7875202,49.3951602 64.4244828,52.7100463 70.1884353,56.9943417 L90.8648751,36.3179019 L92.4795866,31.5515482 L100.319802,26.8629752 L103.471444,30.0146174 L98.782871,37.8548326 L94.0165173,39.4695441 L73.7934912,59.6925702 C86.4558549,69.2403631 102.104532,81.8392557 102.104532,86.4016913 C102.104533,93.6189834 99.0337832,97.9277545 92.5695848,95.5655717 C87.8765989,93.8506351 73.8015497,80.3744087 63.8173444,69.668717 L60.9242741,72.5617873 L57.7726319,69.4101451 L60.8017407,66.3810363 L60.8017407,66.3810363 Z M63.9533761,1.42108547e-13 L118.512977,32 L118.512977,96 L63.9533761,128 L9.39377563,96 L9.39377563,32 L63.9533761,1.42108547e-13 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-preview-closed tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M0.0881363238,64 C-0.210292223,65.8846266 0.249135869,67.8634737 1.4664206,69.4579969 C16.2465319,88.8184886 39.1692554,100.414336 64,100.414336 C88.8307446,100.414336 111.753468,88.8184886 126.533579,69.4579969 C127.750864,67.8634737 128.210292,65.8846266 127.911864,64 C110.582357,78.4158332 88.3036732,87.0858436 64,87.0858436 C39.6963268,87.0858436 17.4176431,78.4158332 0.0881363238,64 Z\&quot;&gt;&lt;/path&gt;\n &lt;rect x=\&quot;62\&quot; y=\&quot;96\&quot; width=\&quot;4\&quot; height=\&quot;16\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect transform=\&quot;translate(80.000000, 101.000000) rotate(-5.000000) translate(-80.000000, -101.000000) \&quot; x=\&quot;78\&quot; y=\&quot;93\&quot; width=\&quot;4\&quot; height=\&quot;16\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect transform=\&quot;translate(48.000000, 101.000000) rotate(-355.000000) translate(-48.000000, -101.000000) \&quot; x=\&quot;46\&quot; y=\&quot;93\&quot; width=\&quot;4\&quot; height=\&quot;16\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect transform=\&quot;translate(32.000000, 96.000000) rotate(-350.000000) translate(-32.000000, -96.000000) \&quot; x=\&quot;30\&quot; y=\&quot;88\&quot; width=\&quot;4\&quot; height=\&quot;16\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect transform=\&quot;translate(96.000000, 96.000000) rotate(-10.000000) translate(-96.000000, -96.000000) \&quot; x=\&quot;94\&quot; y=\&quot;88\&quot; width=\&quot;4\&quot; height=\&quot;16\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect transform=\&quot;translate(112.000000, 88.000000) rotate(-20.000000) translate(-112.000000, -88.000000) \&quot; x=\&quot;110\&quot; y=\&quot;80\&quot; width=\&quot;4\&quot; height=\&quot;16\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect transform=\&quot;translate(16.000000, 88.000000) rotate(-340.000000) translate(-16.000000, -88.000000) \&quot; x=\&quot;14\&quot; y=\&quot;80\&quot; width=\&quot;4\&quot; height=\&quot;16\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-preview-open tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M64.1099282,99.5876785 C39.2791836,99.5876785 16.3564602,87.9918313 1.57634884,68.6313396 C-0.378878622,66.070184 -0.378878622,62.5174945 1.57634884,59.9563389 C16.3564602,40.5958472 39.2791836,29 64.1099282,29 C88.9406729,29 111.863396,40.5958472 126.643508,59.9563389 C128.598735,62.5174945 128.598735,66.070184 126.643508,68.6313396 C111.863396,87.9918313 88.9406729,99.5876785 64.1099282,99.5876785 Z M110.213805,67.5808331 C111.654168,66.0569335 111.654168,63.9430665 110.213805,62.4191669 C99.3257042,50.8995835 82.4391647,44 64.1470385,44 C45.8549124,44 28.9683729,50.8995835 18.0802717,62.4191669 C16.6399094,63.9430665 16.6399094,66.0569335 18.0802717,67.5808331 C28.9683729,79.1004165 45.8549124,86 64.1470385,86 C82.4391647,86 99.3257042,79.1004165 110.213805,67.5808331 Z\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M63.5,88 C76.4786916,88 87,77.4786916 87,64.5 C87,51.5213084 76.4786916,41 63.5,41 C50.5213084,41 40,51.5213084 40,64.5 C40,77.4786916 50.5213084,88 63.5,88 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-print-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M112,71 L112,30.5 L111.96811,30.5 L111.96811,30.5 C111.932942,28.4998414 111.151676,26.510538 109.625176,24.9840387 L86.9982489,2.35711116 C85.3482153,0.707077645 83.1589869,-0.071534047 81,0.0201838424 L81,0 L23.9992458,0 C19.5808867,0 16,3.58213437 16,8.00092105 L16,71 L24,71 L24,8 L81,8 L81,22.4996539 C81,26.9216269 84.5818769,30.5 89.0003461,30.5 L104,30.5 L104,71 L112,71 Z\&quot;&gt;&lt;/path&gt;\n &lt;rect x=\&quot;32\&quot; y=\&quot;36\&quot; width=\&quot;64\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;32\&quot; y=\&quot;52\&quot; width=\&quot;64\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;32\&quot; y=\&quot;20\&quot; width=\&quot;40\&quot; height=\&quot;8\&quot; rx=\&quot;4\&quot;&gt;&lt;/rect&gt;\n &lt;path d=\&quot;M0,80.0054195 C0,71.1658704 7.15611005,64 16.0008841,64 L111.999116,64 C120.83616,64 128,71.1553215 128,80.0054195 L128,111.99458 C128,120.83413 120.84389,128 111.999116,128 L16.0008841,128 C7.16383982,128 0,120.844679 0,111.99458 L0,80.0054195 Z M104,96 C108.418278,96 112,92.418278 112,88 C112,83.581722 108.418278,80 104,80 C99.581722,80 96,83.581722 96,88 C96,92.418278 99.581722,96 104,96 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-quote tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M51.2188077,117.712501 L51.2188077,62.1993386 L27.4274524,62.1993386 C27.4274524,53.3075754 29.1096526,45.797753 32.4741035,39.669646 C35.8385544,33.541539 42.0867267,28.9154883 51.2188077,25.7913554 L51.2188077,2 C43.7689521,2.96127169 36.8599155,5.18417913 30.4914905,8.668789 C24.1230656,12.1533989 18.6559149,16.5391352 14.0898743,21.8261295 C9.52383382,27.1131238 5.97919764,33.2411389 3.45585945,40.2103586 C0.932521268,47.1795784 -0.208971741,54.6293222 0.0313461819,62.5598136 L0.0313461819,117.712501 L51.2188077,117.712501 Z M128,117.712501 L128,62.1993386 L104.208645,62.1993386 C104.208645,53.3075754 105.890845,45.797753 109.255296,39.669646 C112.619747,33.541539 118.867919,28.9154883 128,25.7913554 L128,2 C120.550144,2.96127169 113.641108,5.18417913 107.272683,8.668789 C100.904258,12.1533989 95.4371072,16.5391352 90.8710666,21.8261295 C86.3050261,27.1131238 82.7603899,33.2411389 80.2370517,40.2103586 C77.7137136,47.1795784 76.5722206,54.6293222 76.8125385,62.5598136 L76.8125385,117.712501 L128,117.712501 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-refresh-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M106.369002,39.4325143 C116.529932,60.3119371 112.939592,86.1974934 95.5979797,103.539105 C73.7286194,125.408466 38.2713806,125.408466 16.4020203,103.539105 C-5.46734008,81.6697449 -5.46734008,46.2125061 16.4020203,24.3431458 C19.5262146,21.2189514 24.5915344,21.2189514 27.7157288,24.3431458 C30.8399231,27.4673401 30.8399231,32.5326599 27.7157288,35.6568542 C12.0947571,51.2778259 12.0947571,76.6044251 27.7157288,92.2253967 C43.3367004,107.846368 68.6632996,107.846368 84.2842712,92.2253967 C97.71993,78.7897379 99.5995262,58.1740623 89.9230597,42.729491 L83.4844861,54.9932839 C81.4307001,58.9052072 76.5945372,60.4115251 72.682614,58.3577391 C68.7706907,56.3039532 67.2643728,51.4677903 69.3181587,47.555867 L84.4354914,18.7613158 C86.4966389,14.8353707 91.3577499,13.3347805 95.273202,15.415792 L124.145886,30.7612457 C128.047354,32.8348248 129.52915,37.6785572 127.455571,41.5800249 C125.381992,45.4814927 120.53826,46.9632892 116.636792,44.8897102 L106.369002,39.4325143 Z M98.1470904,27.0648707 C97.9798954,26.8741582 97.811187,26.6843098 97.6409651,26.4953413 L98.6018187,26.1987327 L98.1470904,27.0648707 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-right-arrow tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;path d=\&quot;M80.3563798,109.353315 C78.9238993,110.786918 76.9450203,111.675144 74.7592239,111.675144 L-4.40893546,111.675144 C-8.77412698,111.675144 -12.3248558,108.130732 -12.3248558,103.758478 C-12.3248558,99.3951199 -8.78077754,95.8418109 -4.40893546,95.8418109 L66.8418109,95.8418109 L66.8418109,24.5910645 C66.8418109,20.225873 70.3862233,16.6751442 74.7584775,16.6751442 C79.1218352,16.6751442 82.6751442,20.2192225 82.6751442,24.5910645 L82.6751442,103.759224 C82.6751442,105.941695 81.7891419,107.920575 80.3566508,109.353886 Z\&quot; transform=\&quot;translate(35.175144, 64.175144) rotate(-45.000000) translate(-35.175144, -64.175144) \&quot;&gt;&lt;/path&gt;\n&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 class=\&quot;tc-image-rotate-left tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&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 x=\&quot;48\&quot; y=\&quot;96\&quot; width=\&quot;80\&quot; height=\&quot;32\&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 0 1-8 0c0-15.663-11.254-28.698-26.117-31.46l3.916 3.916a4 4 0 1 1-5.657 5.657L49.172 43.142a4 4 0 0 1 0-5.657l11.313-11.313a4 4 0 1 1 5.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 class=\&quot;tc-image-save-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M120.78304,34.329058 C125.424287,43.1924006 128.049406,53.2778608 128.049406,63.9764502 C128.049406,99.3226742 99.3956295,127.97645 64.0494055,127.97645 C28.7031816,127.97645 0.0494055385,99.3226742 0.0494055385,63.9764502 C0.0494055385,28.6302262 28.7031816,-0.0235498012 64.0494055,-0.0235498012 C82.8568763,-0.0235498012 99.769563,8.08898558 111.479045,21.0056358 L114.159581,18.3250998 C117.289194,15.1954866 122.356036,15.1939641 125.480231,18.3181584 C128.598068,21.4359957 128.601317,26.5107804 125.473289,29.6388083 L120.78304,34.329058 Z M108.72451,46.3875877 C110.870571,51.8341374 112.049406,57.767628 112.049406,63.9764502 C112.049406,90.4861182 90.5590735,111.97645 64.0494055,111.97645 C37.5397375,111.97645 16.0494055,90.4861182 16.0494055,63.9764502 C16.0494055,37.4667822 37.5397375,15.9764502 64.0494055,15.9764502 C78.438886,15.9764502 91.3495036,22.308215 100.147097,32.3375836 L58.9411255,73.5435552 L41.975581,56.5780107 C38.8486152,53.4510448 33.7746915,53.4551552 30.6568542,56.5729924 C27.5326599,59.6971868 27.5372202,64.7670668 30.6618725,67.8917192 L53.279253,90.5090997 C54.8435723,92.073419 56.8951519,92.8541315 58.9380216,92.8558261 C60.987971,92.8559239 63.0389578,92.0731398 64.6049211,90.5071765 L108.72451,46.3875877 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-size tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;path d=\&quot;M92.3431458,26 L83.1715729,35.1715729 C81.6094757,36.73367 81.6094757,39.26633 83.1715729,40.8284271 C84.73367,42.3905243 87.26633,42.3905243 88.8284271,40.8284271 L104.828427,24.8284271 C106.390524,23.26633 106.390524,20.73367 104.828427,19.1715729 L88.8284271,3.17157288 C87.26633,1.60947571 84.73367,1.60947571 83.1715729,3.17157288 C81.6094757,4.73367004 81.6094757,7.26632996 83.1715729,8.82842712 L92.3431457,18 L22,18 C19.790861,18 18,19.790861 18,22 L18,92.3431458 L8.82842712,83.1715729 C7.26632996,81.6094757 4.73367004,81.6094757 3.17157288,83.1715729 C1.60947571,84.73367 1.60947571,87.26633 3.17157288,88.8284271 L19.1715729,104.828427 C20.73367,106.390524 23.26633,106.390524 24.8284271,104.828427 L40.8284271,88.8284271 C42.3905243,87.26633 42.3905243,84.73367 40.8284271,83.1715729 C39.26633,81.6094757 36.73367,81.6094757 35.1715729,83.1715729 L26,92.3431458 L26,22 L22,26 L92.3431458,26 L92.3431458,26 Z M112,52 L112,116 L116,112 L52,112 C49.790861,112 48,113.790861 48,116 C48,118.209139 49.790861,120 52,120 L116,120 C118.209139,120 120,118.209139 120,116 L120,52 C120,49.790861 118.209139,48 116,48 C113.790861,48 112,49.790861 112,52 L112,52 Z\&quot;&gt;&lt;/path&gt;\n&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 class=\&quot;tc-image-spiral tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;nonzero\&quot;&gt;\n &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.074.14-2.64-1.89-4.89-4.52-5.03-2.64-.14-4.89 1.88-5.03 4.52-.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-.01-.02-.015-.054-.045-.094-.088-.06-.064-.12-.145-.17-.244-.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;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-stamp tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M49.7334301,64 L16.0098166,64 C11.5838751,64 8,67.5829053 8,72.002643 L8,74.4986785 L8,97 L120,97 L120,74.4986785 L120,72.002643 C120,67.5737547 116.413883,64 111.990183,64 L78.2665699,64 C76.502049,60.7519149 75.5,57.0311962 75.5,53.0769231 C75.5,46.6017951 78.1869052,40.7529228 82.5087769,36.5800577 C85.3313113,32.7688808 87,28.0549983 87,22.952183 C87,10.2760423 76.7025492,0 64,0 C51.2974508,0 41,10.2760423 41,22.952183 C41,28.0549983 42.6686887,32.7688808 45.4912231,36.5800577 C49.8130948,40.7529228 52.5,46.6017951 52.5,53.0769231 C52.5,57.0311962 51.497951,60.7519149 49.7334301,64 Z M8,104 L120,104 L120,112 L8,112 L8,104 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-star-filled tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;nonzero\&quot;&gt;\n &lt;path d=\&quot;M61.8361286,96.8228569 L99.1627704,124.110219 C101.883827,126.099427 105.541968,123.420868 104.505636,120.198072 L90.2895569,75.9887263 L89.0292911,79.8977279 L126.314504,52.5528988 C129.032541,50.5595011 127.635256,46.2255025 124.273711,46.2229134 L78.1610486,46.1873965 L81.4604673,48.6032923 L67.1773543,4.41589688 C66.1361365,1.19470104 61.6144265,1.19470104 60.5732087,4.41589688 L46.2900957,48.6032923 L49.5895144,46.1873965 L3.47685231,46.2229134 C0.115307373,46.2255025 -1.28197785,50.5595011 1.43605908,52.5528988 L38.7212719,79.8977279 L37.4610061,75.9887263 L23.2449266,120.198072 C22.2085954,123.420868 25.8667356,126.099427 28.5877926,124.110219 L65.9144344,96.8228569 L61.8361286,96.8228569 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-storyview-classic tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M8.00697327,0 C3.58484404,0 0,3.59075293 0,8.00697327 L0,119.993027 C0,124.415156 3.59075293,128 8.00697327,128 L119.993027,128 C124.415156,128 128,124.409247 128,119.993027 L128,8.00697327 C128,3.58484404 124.409247,0 119.993027,0 L8.00697327,0 L8.00697327,0 Z M23.9992458,16 C19.5813843,16 16,19.5776607 16,23.9924054 L16,40.0075946 C16,44.4216782 19.5881049,48 23.9992458,48 L104.000754,48 C108.418616,48 112,44.4223393 112,40.0075946 L112,23.9924054 C112,19.5783218 108.411895,16 104.000754,16 L23.9992458,16 L23.9992458,16 Z M23.9992458,64 C19.5813843,64 16,67.5907123 16,72 C16,76.418278 19.5881049,80 23.9992458,80 L104.000754,80 C108.418616,80 112,76.4092877 112,72 C112,67.581722 108.411895,64 104.000754,64 L23.9992458,64 L23.9992458,64 Z M23.9992458,96 C19.5813843,96 16,99.5907123 16,104 C16,108.418278 19.5881049,112 23.9992458,112 L104.000754,112 C108.418616,112 112,108.409288 112,104 C112,99.581722 108.411895,96 104.000754,96 L23.9992458,96 L23.9992458,96 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-storyview-pop tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M8.00697327,0 C3.58484404,0 0,3.59075293 0,8.00697327 L0,119.993027 C0,124.415156 3.59075293,128 8.00697327,128 L119.993027,128 C124.415156,128 128,124.409247 128,119.993027 L128,8.00697327 C128,3.58484404 124.409247,0 119.993027,0 L8.00697327,0 L8.00697327,0 Z M23.9992458,16 C19.5813843,16 16,19.5776607 16,23.9924054 L16,40.0075946 C16,44.4216782 19.5881049,48 23.9992458,48 L104.000754,48 C108.418616,48 112,44.4223393 112,40.0075946 L112,23.9924054 C112,19.5783218 108.411895,16 104.000754,16 L23.9992458,16 L23.9992458,16 Z M16.0098166,56 C11.586117,56 8,59.5776607 8,63.9924054 L8,80.0075946 C8,84.4216782 11.5838751,88 16.0098166,88 L111.990183,88 C116.413883,88 120,84.4223393 120,80.0075946 L120,63.9924054 C120,59.5783218 116.416125,56 111.990183,56 L16.0098166,56 L16.0098166,56 Z M23.9992458,96 C19.5813843,96 16,99.5907123 16,104 C16,108.418278 19.5881049,112 23.9992458,112 L104.000754,112 C108.418616,112 112,108.409288 112,104 C112,99.581722 108.411895,96 104.000754,96 L23.9992458,96 L23.9992458,96 Z M23.9992458,64 C19.5813843,64 16,67.5907123 16,72 C16,76.418278 19.5881049,80 23.9992458,80 L104.000754,80 C108.418616,80 112,76.4092877 112,72 C112,67.581722 108.411895,64 104.000754,64 L23.9992458,64 L23.9992458,64 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-storyview-zoomin tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M8.00697327,0 C3.58484404,0 0,3.59075293 0,8.00697327 L0,119.993027 C0,124.415156 3.59075293,128 8.00697327,128 L119.993027,128 C124.415156,128 128,124.409247 128,119.993027 L128,8.00697327 C128,3.58484404 124.409247,0 119.993027,0 L8.00697327,0 L8.00697327,0 Z M23.9992458,16 C19.5813843,16 16,19.578055 16,24.0085154 L16,71.9914846 C16,76.4144655 19.5881049,80 23.9992458,80 L104.000754,80 C108.418616,80 112,76.421945 112,71.9914846 L112,24.0085154 C112,19.5855345 108.411895,16 104.000754,16 L23.9992458,16 L23.9992458,16 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-strikethrough tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M92.793842,38.7255689 L108.215529,38.7255689 C107.987058,31.985687 106.70193,26.1883331 104.360107,21.3333333 C102.018284,16.4783336 98.8197436,12.4516001 94.7643909,9.25301205 C90.7090382,6.05442399 85.9969032,3.71263572 80.6278447,2.22757697 C75.2587862,0.742518233 69.4328739,0 63.1499331,0 C57.552404,0 52.0977508,0.713959839 46.7858099,2.14190094 C41.473869,3.56984203 36.7331757,5.74027995 32.5635877,8.65327979 C28.3939997,11.5662796 25.0526676,15.2788708 22.5394913,19.7911647 C20.026315,24.3034585 18.7697456,29.6438781 18.7697456,35.8125837 C18.7697456,41.4101128 19.883523,46.0651309 22.1111111,49.7777778 C24.3386992,53.4904246 27.3087722,56.5176144 31.021419,58.8594378 C34.7340659,61.2012612 38.9321497,63.0861151 43.6157965,64.5140562 C48.2994433,65.9419973 53.068695,67.1985666 57.9236948,68.2838019 C62.7786945,69.3690371 67.5479462,70.4256977 72.231593,71.4538153 C76.9152398,72.4819329 81.1133237,73.8241773 84.8259705,75.480589 C88.5386174,77.1370007 91.5086903,79.2788802 93.7362784,81.9062918 C95.9638666,84.5337035 97.0776439,87.9607107 97.0776439,92.1874163 C97.0776439,96.6425926 96.1637753,100.298067 94.3360107,103.153949 C92.5082461,106.009831 90.109341,108.265944 87.1392236,109.922356 C84.1691061,111.578768 80.827774,112.749662 77.1151272,113.435074 C73.4024803,114.120485 69.7184476,114.463186 66.0629183,114.463186 C61.4935068,114.463186 57.0383974,113.892018 52.6974565,112.749665 C48.3565156,111.607312 44.5582492,109.836692 41.3025435,107.437751 C38.0468378,105.03881 35.4194656,101.983062 33.4203481,98.270415 C31.4212305,94.5577681 30.4216867,90.1312171 30.4216867,84.9906292 L15,84.9906292 C15,92.4159229 16.3422445,98.8415614 19.0267738,104.267738 C21.711303,109.693914 25.3667774,114.149023 29.9933066,117.633199 C34.6198357,121.117376 39.9888137,123.71619 46.1004016,125.429719 C52.2119895,127.143248 58.6947448,128 65.5488621,128 C71.1463912,128 76.7723948,127.343157 82.4270415,126.029451 C88.0816882,124.715745 93.1936407,122.602424 97.7630522,119.689424 C102.332464,116.776425 106.073613,113.006717 108.986613,108.380187 C111.899613,103.753658 113.356091,98.1847715 113.356091,91.6733601 C113.356091,85.6188899 112.242314,80.5926126 110.014726,76.5943775 C107.787137,72.5961424 104.817065,69.2833688 101.104418,66.6559572 C97.3917708,64.0285455 93.193687,61.9437828 88.5100402,60.4016064 C83.8263934,58.85943 79.0571416,57.5171855 74.2021419,56.3748327 C69.3471422,55.2324798 64.5778904,54.1758192 59.8942436,53.2048193 C55.2105968,52.2338193 51.012513,51.0058084 47.2998661,49.5207497 C43.5872193,48.0356909 40.6171463,46.1222786 38.3895582,43.7804552 C36.1619701,41.4386318 35.0481928,38.3828836 35.0481928,34.6131191 C35.0481928,30.6148841 35.8192694,27.273552 37.3614458,24.5890228 C38.9036222,21.9044935 40.9598265,19.762614 43.5301205,18.1633199 C46.1004145,16.5640259 49.041929,15.4216902 52.3547523,14.7362784 C55.6675757,14.0508667 59.0374661,13.708166 62.4645248,13.708166 C70.9179361,13.708166 77.8576257,15.6786952 83.2838019,19.6198126 C88.709978,23.56093 91.8799597,29.9294518 92.793842,38.7255689 L92.793842,38.7255689 Z\&quot;&gt;&lt;/path&gt;\n &lt;rect x=\&quot;5\&quot; y=\&quot;54\&quot; width=\&quot;118\&quot; height=\&quot;16\&quot;&gt;&lt;/rect&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-subscript tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M2.27170276,16 L22.1825093,16 L43.8305003,49.6746527 L66.4138983,16 L85.1220387,16 L53.5854592,61.9685735 L87.3937414,111.411516 L67.0820462,111.411516 L43.295982,74.9306422 L19.1090291,111.411516 L0,111.411516 L33.8082822,61.9685735 L2.27170276,16 Z M127.910914,128.411516 L85.3276227,128.411516 C85.3870139,123.24448 86.6342108,118.730815 89.0692508,114.870386 C91.5042907,111.009956 94.8301491,107.654403 99.0469256,104.803624 C101.066227,103.318844 103.174584,101.878629 105.372059,100.482935 C107.569534,99.0872413 109.588805,97.5876355 111.429933,95.9840726 C113.271061,94.3805097 114.785514,92.6433426 115.973338,90.7725192 C117.161163,88.9016958 117.784761,86.7487964 117.844152,84.3137564 C117.844152,83.1853233 117.710524,81.9826691 117.443264,80.7057579 C117.176003,79.4288467 116.656338,78.2410402 115.884252,77.1423026 C115.112166,76.0435651 114.04314,75.123015 112.677142,74.3806248 C111.311144,73.6382345 109.529434,73.267045 107.331959,73.267045 C105.312658,73.267045 103.634881,73.6679297 102.298579,74.4697112 C100.962276,75.2714926 99.8932503,76.3702137 99.0914688,77.7659073 C98.2896874,79.161601 97.6957841,80.8096826 97.3097412,82.7102016 C96.9236982,84.6107206 96.7009845,86.6596869 96.6415933,88.857162 L86.4857457,88.857162 C86.4857457,85.4124713 86.9460207,82.2202411 87.8665846,79.2803758 C88.7871485,76.3405105 90.1679736,73.801574 92.0091014,71.6634901 C93.8502292,69.5254062 96.092214,67.8476295 98.7351233,66.6301095 C101.378033,65.4125895 104.451482,64.8038386 107.955564,64.8038386 C111.756602,64.8038386 114.933984,65.4274371 117.487807,66.6746527 C120.041629,67.9218683 122.105443,69.4957119 123.67931,71.3962309 C125.253178,73.2967499 126.366746,75.3605638 127.02005,77.5877345 C127.673353,79.8149053 128,81.9381095 128,83.9574109 C128,86.4518421 127.613963,88.7086746 126.841877,90.727976 C126.069791,92.7472774 125.03046,94.6032252 123.723854,96.2958749 C122.417247,97.9885247 120.932489,99.5475208 119.269534,100.97291 C117.60658,102.398299 115.884261,103.734582 114.102524,104.981797 C112.320788,106.229013 110.539078,107.416819 108.757341,108.545253 C106.975605,109.673686 105.327523,110.802102 103.813047,111.930535 C102.298571,113.058968 100.977136,114.231927 99.8487031,115.449447 C98.7202699,116.666967 97.9481956,117.958707 97.5324571,119.324705 L127.910914,119.324705 L127.910914,128.411516 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-superscript tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M2.27170276,16 L22.1825093,16 L43.8305003,49.6746527 L66.4138983,16 L85.1220387,16 L53.5854592,61.9685735 L87.3937414,111.411516 L67.0820462,111.411516 L43.295982,74.9306422 L19.1090291,111.411516 L0,111.411516 L33.8082822,61.9685735 L2.27170276,16 Z M127.910914,63.4115159 L85.3276227,63.4115159 C85.3870139,58.2444799 86.6342108,53.7308149 89.0692508,49.8703857 C91.5042907,46.0099565 94.8301491,42.654403 99.0469256,39.8036245 C101.066227,38.318844 103.174584,36.8786285 105.372059,35.4829349 C107.569534,34.0872413 109.588805,32.5876355 111.429933,30.9840726 C113.271061,29.3805097 114.785514,27.6433426 115.973338,25.7725192 C117.161163,23.9016958 117.784761,21.7487964 117.844152,19.3137564 C117.844152,18.1853233 117.710524,16.9826691 117.443264,15.7057579 C117.176003,14.4288467 116.656338,13.2410402 115.884252,12.1423026 C115.112166,11.0435651 114.04314,10.123015 112.677142,9.38062477 C111.311144,8.63823453 109.529434,8.26704499 107.331959,8.26704499 C105.312658,8.26704499 103.634881,8.6679297 102.298579,9.46971115 C100.962276,10.2714926 99.8932503,11.3702137 99.0914688,12.7659073 C98.2896874,14.161601 97.6957841,15.8096826 97.3097412,17.7102016 C96.9236982,19.6107206 96.7009845,21.6596869 96.6415933,23.857162 L86.4857457,23.857162 C86.4857457,20.4124713 86.9460207,17.2202411 87.8665846,14.2803758 C88.7871485,11.3405105 90.1679736,8.80157397 92.0091014,6.6634901 C93.8502292,4.52540622 96.092214,2.84762946 98.7351233,1.63010947 C101.378033,0.412589489 104.451482,-0.196161372 107.955564,-0.196161372 C111.756602,-0.196161372 114.933984,0.427437071 117.487807,1.67465266 C120.041629,2.92186826 122.105443,4.49571195 123.67931,6.39623095 C125.253178,8.29674995 126.366746,10.3605638 127.02005,12.5877345 C127.673353,14.8149053 128,16.9381095 128,18.9574109 C128,21.4518421 127.613963,23.7086746 126.841877,25.727976 C126.069791,27.7472774 125.03046,29.6032252 123.723854,31.2958749 C122.417247,32.9885247 120.932489,34.5475208 119.269534,35.97291 C117.60658,37.3982993 115.884261,38.7345816 114.102524,39.9817972 C112.320788,41.2290128 110.539078,42.4168194 108.757341,43.5452525 C106.975605,44.6736857 105.327523,45.8021019 103.813047,46.9305351 C102.298571,48.0589682 100.977136,49.2319272 99.8487031,50.4494472 C98.7202699,51.6669672 97.9481956,52.9587068 97.5324571,54.3247048 L127.910914,54.3247048 L127.910914,63.4115159 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-tag-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M18.1643182,47.6600756 L18.1677196,51.7651887 C18.1708869,55.5878829 20.3581578,60.8623899 23.0531352,63.5573673 L84.9021823,125.406414 C87.5996731,128.103905 91.971139,128.096834 94.6717387,125.396234 L125.766905,94.3010679 C128.473612,91.5943612 128.472063,87.2264889 125.777085,84.5315115 L63.9280381,22.6824644 C61.2305472,19.9849735 55.9517395,17.801995 52.1318769,17.8010313 L25.0560441,17.7942007 C21.2311475,17.7932358 18.1421354,20.8872832 18.1452985,24.7049463 L18.1535504,34.6641936 C18.2481119,34.6754562 18.3439134,34.6864294 18.4409623,34.6971263 C22.1702157,35.1081705 26.9295004,34.6530132 31.806204,33.5444844 C32.1342781,33.0700515 32.5094815,32.6184036 32.9318197,32.1960654 C35.6385117,29.4893734 39.5490441,28.718649 42.94592,29.8824694 C43.0432142,29.8394357 43.1402334,29.7961748 43.2369683,29.7526887 L43.3646982,30.0368244 C44.566601,30.5115916 45.6933052,31.2351533 46.6655958,32.2074439 C50.4612154,36.0030635 50.4663097,42.1518845 46.6769742,45.94122 C43.0594074,49.5587868 37.2914155,49.7181264 33.4734256,46.422636 C28.1082519,47.5454734 22.7987486,48.0186448 18.1643182,47.6600756 Z\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M47.6333528,39.5324628 L47.6562932,39.5834939 C37.9670934,43.9391617 26.0718874,46.3819521 17.260095,45.4107025 C5.27267473,44.0894301 -1.02778744,36.4307276 2.44271359,24.0779512 C5.56175386,12.9761516 14.3014034,4.36129832 24.0466405,1.54817001 C34.7269254,-1.53487574 43.7955833,3.51606438 43.7955834,14.7730751 L35.1728168,14.7730752 C35.1728167,9.91428944 32.0946059,8.19982862 26.4381034,9.83267419 C19.5270911,11.8276553 13.046247,18.2159574 10.7440788,26.4102121 C8.82861123,33.2280582 11.161186,36.0634845 18.2047888,36.8398415 C25.3302805,37.6252244 35.7353482,35.4884477 44.1208333,31.7188498 L44.1475077,31.7781871 C44.159701,31.7725635 44.1718402,31.7671479 44.1839238,31.7619434 C45.9448098,31.0035157 50.4503245,38.3109156 47.7081571,39.5012767 C47.6834429,39.512005 47.6585061,39.5223987 47.6333528,39.5324628 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-theme-button tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M55.854113,66.9453198 C54.3299482,65.1432292 53.0133883,63.518995 51.9542746,62.1263761 C40.8899947,47.578055 35.3091807,55.2383404 28.9941893,62.1263758 C22.6791979,69.0144112 30.6577916,74.5954741 24.6646171,79.4611023 C18.6714426,84.3267304 19.0414417,86.0133155 8.92654943,77.1119468 C-1.18834284,68.2105781 -1.88793412,65.7597832 2.7553553,60.6807286 C7.39864472,55.601674 11.2794845,63.5989423 20.7646627,54.5728325 C30.2498409,45.5467226 22.2819131,37.5470737 22.2819131,37.5470737 C22.2819131,37.5470737 42.0310399,-2.82433362 68.4206088,0.157393922 C94.8101776,3.13912147 58.4373806,-3.70356506 49.3898693,27.958066 C45.5161782,41.5139906 50.1107906,38.3197672 57.4560458,44.0453955 C59.1625767,45.3756367 63.8839488,48.777453 70.127165,53.3625321 C63.9980513,59.2416709 58.9704753,64.0315459 55.854113,66.9453198 Z M67.4952439,79.8919946 C83.5082212,96.9282402 105.237121,117.617674 112.611591,120.312493 C123.044132,124.12481 128.000001,117.170903 128,105.522947 C127.999999,98.3705516 104.170675,78.980486 84.0760493,63.7529565 C76.6683337,70.9090328 70.7000957,76.7055226 67.4952439,79.8919946 Z\&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M58.2852966,138.232794 L58.2852966,88.3943645 C56.318874,88.3923153 54.7254089,86.7952906 54.7254089,84.8344788 C54.7254089,82.8684071 56.3175932,81.2745911 58.2890859,81.2745911 L79.6408336,81.2745911 C81.608998,81.2745911 83.2045105,82.8724076 83.2045105,84.8344788 C83.2045105,86.7992907 81.614366,88.3923238 79.6446228,88.3943645 L79.6446228,88.3943646 L79.6446228,138.232794 C79.6446228,144.131009 74.8631748,148.912457 68.9649597,148.912457 C63.0667446,148.912457 58.2852966,144.131009 58.2852966,138.232794 Z M65.405072,-14.8423767 L72.5248474,-14.8423767 L76.0847351,-0.690681892 L72.5248474,6.51694947 L72.5248474,81.2745911 L65.405072,81.2745911 L65.405072,6.51694947 L61.8451843,-0.690681892 L65.405072,-14.8423767 Z\&quot; transform=\&quot;translate(68.964960, 67.035040) rotate(45.000000) translate(-68.964960, -67.035040) \&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-timestamp-off tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &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 10c-2.762 0-5-2.24-5-5-.004-2.756 2.238-5 5-5H66.69c2.762 0 5.002 2.24 5 5 .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;\n &lt;/g&gt;\n&lt;/svg&gt;\n&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 class=\&quot;tc-image-timestamp-on tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &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 10c-2.762 0-5-2.24-5-5-.004-2.756 2.238-5 5-5H66.69c2.762 0 5.002 2.24 5 5 .006 2.757-2.238 5-5 5H49.705z\&quot;/&gt;&lt;path d=\&quot;M13.41 27.178c-2.116 1.775-5.27 1.498-7.045-.613-1.772-2.11-1.498-5.27.616-7.047l9.95-8.348c2.115-1.774 5.27-1.5 7.045.618 1.775 2.108 1.498 5.27-.616 7.043l-9.95 8.348zM102.983 27.178c2.116 1.775 5.27 1.498 7.045-.613 1.772-2.11 1.498-5.27-.616-7.047l-9.95-8.348c-2.114-1.774-5.27-1.5-7.044.618-1.775 2.108-1.498 5.27.616 7.043l9.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;\n &lt;/g&gt;\n&lt;/svg&gt;\n&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 class=\&quot;tc-image-tip tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M64,128.241818 C99.346224,128.241818 128,99.5880417 128,64.2418177 C128,28.8955937 99.346224,0.241817675 64,0.241817675 C28.653776,0.241817675 0,28.8955937 0,64.2418177 C0,99.5880417 28.653776,128.241818 64,128.241818 Z M75.9358659,91.4531941 C75.3115438,95.581915 70.2059206,98.8016748 64,98.8016748 C57.7940794,98.8016748 52.6884562,95.581915 52.0641341,91.4531941 C54.3299053,94.0502127 58.8248941,95.8192805 64,95.8192805 C69.1751059,95.8192805 73.6700947,94.0502127 75.9358659,91.4531941 L75.9358659,91.4531941 Z M75.9358659,95.9453413 C75.3115438,100.074062 70.2059206,103.293822 64,103.293822 C57.7940794,103.293822 52.6884562,100.074062 52.0641341,95.9453413 C54.3299053,98.5423599 58.8248941,100.311428 64,100.311428 C69.1751059,100.311428 73.6700947,98.5423599 75.9358659,95.9453413 L75.9358659,95.9453413 Z M75.9358659,100.40119 C75.3115438,104.529911 70.2059206,107.74967 64,107.74967 C57.7940794,107.74967 52.6884562,104.529911 52.0641341,100.40119 C54.3299053,102.998208 58.8248941,104.767276 64,104.767276 C69.1751059,104.767276 73.6700947,102.998208 75.9358659,100.40119 L75.9358659,100.40119 Z M75.9358659,104.893337 C75.3115438,109.022058 70.2059206,112.241818 64,112.241818 C57.7940794,112.241818 52.6884562,109.022058 52.0641341,104.893337 C54.3299053,107.490356 58.8248941,109.259423 64,109.259423 C69.1751059,109.259423 73.6700947,107.490356 75.9358659,104.893337 L75.9358659,104.893337 Z M64.3010456,24.2418177 C75.9193117,24.2418188 88.0000013,32.0619847 88,48.4419659 C87.9999987,64.8219472 75.9193018,71.7540963 75.9193021,83.5755932 C75.9193022,89.4486648 70.0521957,92.8368862 63.9999994,92.8368862 C57.947803,92.8368862 51.9731007,89.8295115 51.9731007,83.5755932 C51.9731007,71.1469799 39.9999998,65.4700602 40,48.4419647 C40.0000002,31.4138691 52.6827796,24.2418166 64.3010456,24.2418177 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-transcludify-button tc-image-button\&quot; viewBox=\&quot;0 0 128 128\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot;&gt;&lt;path d=\&quot;M0 59.482c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 0 0 2.75-.932 6.762 6.762 0 0 0 2.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 0 0-.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 0 0-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 0 0 2.75-.932 6.762 6.762 0 0 0 2.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 0 0-.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 0 0-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 0 0-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 0 0 .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 0 0-.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 0 0 2.262 2.084 8.868 8.868 0 0 0 2.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 0 0-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 0 0 .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 0 0-.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 0 0 2.262 2.084 8.868 8.868 0 0 0 2.75 1.02c.946.177 1.745.266 2.395.266v7.806z\&quot; fill-rule=\&quot;evenodd\&quot;/&gt;&lt;/svg&gt;\n&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 class=\&quot;tc-image-twitter tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M41.6263422,115.803477 C27.0279663,115.803477 13.4398394,111.540813 1.99987456,104.234833 C4.02221627,104.472643 6.08004574,104.594302 8.16644978,104.594302 C20.277456,104.594302 31.4238403,100.47763 40.270894,93.5715185 C28.9590538,93.3635501 19.4123842,85.9189246 16.1230832,75.6885328 C17.7011365,75.9892376 19.320669,76.1503787 20.9862896,76.1503787 C23.344152,76.1503787 25.6278127,75.8359011 27.7971751,75.247346 C15.9709927,72.8821073 7.06079851,62.4745062 7.06079851,49.9982394 C7.06079851,49.8898938 7.06079851,49.7820074 7.06264203,49.67458 C10.5482779,51.6032228 14.5339687,52.7615103 18.7717609,52.8951059 C11.8355159,48.277565 7.2714207,40.3958845 7.2714207,31.4624258 C7.2714207,26.7434257 8.54621495,22.3200804 10.7713439,18.5169676 C23.5211299,34.0957738 42.568842,44.3472839 64.0532269,45.4210985 C63.6126256,43.5365285 63.3835682,41.5711584 63.3835682,39.5529928 C63.3835682,25.3326379 74.95811,13.8034766 89.2347917,13.8034766 C96.6697089,13.8034766 103.387958,16.930807 108.103682,21.9353619 C113.991886,20.780288 119.52429,18.6372496 124.518847,15.6866694 C122.588682,21.6993889 118.490075,26.7457211 113.152623,29.9327334 C118.381769,29.3102055 123.363882,27.926045 127.999875,25.8780385 C124.534056,31.0418981 120.151087,35.5772616 115.100763,39.2077561 C115.150538,40.3118708 115.175426,41.4224128 115.175426,42.538923 C115.175426,76.5663154 89.1744164,115.803477 41.6263422,115.803477\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&lt;/svg&gt;\n&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 class=\&quot;tc-image-underline tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M7,117.421488 L121.247934,117.421488 L121.247934,128 L7,128 L7,117.421488 Z M104.871212,98.8958333 L104.871212,0 L88.6117424,0 L88.6117424,55.8560606 C88.6117424,60.3194668 88.0060035,64.432115 86.7945076,68.1941288 C85.5830116,71.9561425 83.7657949,75.239885 81.342803,78.0454545 C78.9198111,80.8510241 75.8911167,83.0189317 72.2566288,84.5492424 C68.6221409,86.0795531 64.3182067,86.844697 59.344697,86.844697 C53.0959284,86.844697 48.1862552,85.0593613 44.6155303,81.4886364 C41.0448054,77.9179114 39.2594697,73.0720003 39.2594697,66.9507576 L39.2594697,0 L23,0 L23,65.0378788 C23,70.3939662 23.5419769,75.2717583 24.625947,79.6714015 C25.709917,84.0710447 27.5908957,87.864883 30.2689394,91.0530303 C32.9469831,94.2411776 36.4538925,96.6960141 40.7897727,98.4176136 C45.125653,100.139213 50.545422,101 57.0492424,101 C64.3182182,101 70.630655,99.5653553 75.9867424,96.6960227 C81.3428298,93.8266902 85.742407,89.33147 89.1856061,83.2102273 L89.5681818,83.2102273 L89.5681818,98.8958333 L104.871212,98.8958333 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-unfold-all tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;rect x=\&quot;0\&quot; y=\&quot;0\&quot; width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;rect x=\&quot;0\&quot; y=\&quot;64\&quot; width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;path d=\&quot;M85.598226,8.34884273 C84.1490432,6.89863875 82.1463102,6 79.9340286,6 L47.9482224,6 C43.5292967,6 39.9411255,9.581722 39.9411255,14 C39.9411255,18.4092877 43.5260249,22 47.9482224,22 L71.9411255,22 L71.9411255,45.9929031 C71.9411255,50.4118288 75.5228475,54 79.9411255,54 C84.3504132,54 87.9411255,50.4151006 87.9411255,45.9929031 L87.9411255,14.0070969 C87.9411255,11.7964515 87.0447363,9.79371715 85.5956548,8.34412458 Z\&quot; transform=\&quot;translate(63.941125, 30.000000) scale(1, -1) rotate(-45.000000) translate(-63.941125, -30.000000) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M85.6571005,72.2899682 C84.2079177,70.8397642 82.2051847,69.9411255 79.9929031,69.9411255 L48.0070969,69.9411255 C43.5881712,69.9411255 40,73.5228475 40,77.9411255 C40,82.3504132 43.5848994,85.9411255 48.0070969,85.9411255 L72,85.9411255 L72,109.934029 C72,114.352954 75.581722,117.941125 80,117.941125 C84.4092877,117.941125 88,114.356226 88,109.934029 L88,77.9482224 C88,75.737577 87.1036108,73.7348426 85.6545293,72.2852501 Z\&quot; transform=\&quot;translate(64.000000, 93.941125) scale(1, -1) rotate(-45.000000) translate(-64.000000, -93.941125) \&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-unfold tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;rect x=\&quot;0\&quot; y=\&quot;0\&quot; width=\&quot;128\&quot; height=\&quot;16\&quot; rx=\&quot;8\&quot;&gt;&lt;/rect&gt;\n &lt;path d=\&quot;M85.598226,11.3488427 C84.1490432,9.89863875 82.1463102,9 79.9340286,9 L47.9482224,9 C43.5292967,9 39.9411255,12.581722 39.9411255,17 C39.9411255,21.4092877 43.5260249,25 47.9482224,25 L71.9411255,25 L71.9411255,48.9929031 C71.9411255,53.4118288 75.5228475,57 79.9411255,57 C84.3504132,57 87.9411255,53.4151006 87.9411255,48.9929031 L87.9411255,17.0070969 C87.9411255,14.7964515 87.0447363,12.7937171 85.5956548,11.3441246 Z\&quot; transform=\&quot;translate(63.941125, 33.000000) scale(1, -1) rotate(-45.000000) translate(-63.941125, -33.000000) \&quot;&gt;&lt;/path&gt;\n &lt;path d=\&quot;M85.6571005,53.4077172 C84.2079177,51.9575133 82.2051847,51.0588745 79.9929031,51.0588745 L48.0070969,51.0588745 C43.5881712,51.0588745 40,54.6405965 40,59.0588745 C40,63.4681622 43.5848994,67.0588745 48.0070969,67.0588745 L72,67.0588745 L72,91.0517776 C72,95.4707033 75.581722,99.0588745 80,99.0588745 C84.4092877,99.0588745 88,95.4739751 88,91.0517776 L88,59.0659714 C88,56.855326 87.1036108,54.8525917 85.6545293,53.4029991 Z\&quot; transform=\&quot;translate(64.000000, 75.058875) scale(1, -1) rotate(-45.000000) translate(-64.000000, -75.058875) \&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-unlocked-padlock tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M48.6266053,64 L105,64 L105,96.0097716 C105,113.673909 90.6736461,128 73.001193,128 L55.998807,128 C38.3179793,128 24,113.677487 24,96.0097716 L24,64 L30.136303,64 C19.6806213,51.3490406 2.77158986,28.2115132 25.8366966,8.85759246 C50.4723026,-11.8141335 71.6711028,13.2108337 81.613302,25.0594855 C91.5555012,36.9081373 78.9368488,47.4964439 69.1559674,34.9513593 C59.375086,22.4062748 47.9893192,10.8049522 35.9485154,20.9083862 C23.9077117,31.0118202 34.192312,43.2685325 44.7624679,55.8655518 C47.229397,58.805523 48.403443,61.5979188 48.6266053,64 Z M67.7315279,92.3641717 C70.8232551,91.0923621 73,88.0503841 73,84.5 C73,79.8055796 69.1944204,76 64.5,76 C59.8055796,76 56,79.8055796 56,84.5 C56,87.947435 58.0523387,90.9155206 61.0018621,92.2491029 L55.9067479,115.020857 L72.8008958,115.020857 L67.7315279,92.3641717 L67.7315279,92.3641717 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-up-arrow tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n&lt;path transform=\&quot;rotate(-135, 63.8945, 64.1752)\&quot; d=\&quot;m109.07576,109.35336c-1.43248,1.43361 -3.41136,2.32182 -5.59717,2.32182l-79.16816,0c-4.36519,0 -7.91592,-3.5444 -7.91592,-7.91666c0,-4.36337 3.54408,-7.91667 7.91592,-7.91667l71.25075,0l0,-71.25074c0,-4.3652 3.54442,-7.91592 7.91667,-7.91592c4.36336,0 7.91667,3.54408 7.91667,7.91592l0,79.16815c0,2.1825 -0.88602,4.16136 -2.3185,5.59467l-0.00027,-0.00056l0.00001,-0.00001z\&quot; /&gt;\n&lt;/svg&gt;\n \n&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 class=\&quot;tc-image-video tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M64,12 C29.0909091,12 8.72727273,14.9166667 5.81818182,17.8333333 C2.90909091,20.75 1.93784382e-15,41.1666667 0,64.5 C1.93784382e-15,87.8333333 2.90909091,108.25 5.81818182,111.166667 C8.72727273,114.083333 29.0909091,117 64,117 C98.9090909,117 119.272727,114.083333 122.181818,111.166667 C125.090909,108.25 128,87.8333333 128,64.5 C128,41.1666667 125.090909,20.75 122.181818,17.8333333 C119.272727,14.9166667 98.9090909,12 64,12 Z M54.9161194,44.6182253 C51.102648,42.0759111 48.0112186,43.7391738 48.0112186,48.3159447 L48.0112186,79.6840553 C48.0112186,84.2685636 51.109784,85.9193316 54.9161194,83.3817747 L77.0838806,68.6032672 C80.897352,66.0609529 80.890216,61.9342897 77.0838806,59.3967328 L54.9161194,44.6182253 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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 class=\&quot;tc-image-warning tc-image-button\&quot; width=\&quot;22pt\&quot; height=\&quot;22pt\&quot; viewBox=\&quot;0 0 128 128\&quot;&gt;\n &lt;g fill-rule=\&quot;evenodd\&quot;&gt;\n &lt;path d=\&quot;M57.0717968,11 C60.1509982,5.66666667 67.8490018,5.66666667 70.9282032,11 L126.353829,107 C129.433031,112.333333 125.584029,119 119.425626,119 L8.57437416,119 C2.41597129,119 -1.43303051,112.333333 1.64617093,107 L57.0717968,11 Z M64,37 C59.581722,37 56,40.5820489 56,44.9935776 L56,73.0064224 C56,77.4211534 59.5907123,81 64,81 C68.418278,81 72,77.4179511 72,73.0064224 L72,44.9935776 C72,40.5788466 68.4092877,37 64,37 Z M64,104 C68.418278,104 72,100.418278 72,96 C72,91.581722 68.418278,88 64,88 C59.581722,88 56,91.581722 56,96 C56,100.418278 59.581722,104 64,104 Z\&quot;&gt;&lt;/path&gt;\n &lt;/g&gt;\n&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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Placeholder&quot;: {
&quot;title&quot;: &quot;$:/language/EditTemplate/Tags/Add/Placeholder&quot;,
&quot;text&quot;: &quot;tag name&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/hack-to-give-us-something-to-compare-against&quot;: {
&quot;title&quot;: &quot;$:/language/Docs/Fields/hack-to-give-us-something-to-compare-against&quot;,
&quot;text&quot;: &quot;A temporary storage field used in [[$:/core/templates/static.content]]&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;If set to \&quot;yes\&quot; indicates that a tiddler should be saved as a JavaScript library&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/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/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/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/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/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\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;\n--load &lt;dirpath&gt;\n```\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* ''template'': Optional template through which each tiddler is rendered\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* ''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/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/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; being older 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/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/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/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/LoadingPluginLibrary&quot;: {
&quot;title&quot;: &quot;$:/language/Error/LoadingPluginLibrary&quot;,
&quot;text&quot;: &quot;Error loading plugin library&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/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/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 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/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/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&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;References&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/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 = $tw.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) {\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 = fs.readdirSync(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 = fs.readdirSync(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\tcollectPublisherPlugins(path.resolve($tw.boot.corePath,$tw.config.pluginsPath));\n\tcollectPublisherPlugins(path.resolve($tw.boot.corePath,$tw.config.themesPath));\n\tcollectPlugins(path.resolve($tw.boot.corePath,$tw.config.languagesPath));\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},null,$tw.config.preferences.jsonSpaces)\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;pathname&gt; &lt;skinnylisting&gt;\n\nThe tiddler identifies the bundle tiddler that contains the subtiddlers.\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,null,$tw.config.preferences.jsonSpaces),\&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\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,{text: undefined, readme: readmeContent, icon: iconContent}));\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/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\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]);\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.domNode.value = text;\n\t\t}\n\t\t// Fix the height if needed\n\t\tthis.fixHeight();\n\t}\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 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\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\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.domNode.value = text;\n\t\t}\n\t\t// Fix the height if needed\n\t\tthis.fixHeight();\n\t}\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\treturn true;\n};\n\n/*\nHandle a dom \&quot;focus\&quot; event\n*/\nSimpleEngine.prototype.handleFocusEvent = function(event) {\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\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);\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 || changedTiddlers[HEIGHT_MODE_TITLE] || changedTiddlers[ENABLE_TOOLBAR_TITLE]) {\n\t\t\tthis.refreshSelf();\n\t\t\treturn true;\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);\t\t\t\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;\t\t\t\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\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,event.paramObject.count);\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 !== event.paramObject.count) {\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 unless they comprise the entire text\n\t\t\tif(operation.selStart &gt; event.paramObject.prefix.length || (operation.selEnd + event.paramObject.suffix.length) &lt; operation.text.length ) {\n\t\t\t\toperation.cutStart = operation.selStart - event.paramObject.prefix.length;\n\t\t\t\toperation.cutEnd = operation.selEnd + event.paramObject.suffix.length;\n\t\t\t\toperation.replacement = \&quot;\&quot;;\n\t\t\t\toperation.newSelStart = operation.cutStart;\n\t\t\t\toperation.newSelEnd = operation.newSelStart;\n\t\t\t}\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/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/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/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\t\teditionInfo = $tw.utils.getEditionInfo();\n\tif(editionInfo) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif($tw.utils.hop(editionInfo,title)) {\n\t\t\t\tresults.push(editionInfo[title].description || \&quot;\&quot;);\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\t\teditionInfo = $tw.utils.getEditionInfo();\n\tif(editionInfo) {\n\t\t$tw.utils.each(editionInfo,function(info,name) {\n\t\t\tresults.push(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/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));\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));\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\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 list = $tw.utils.parseStringArray(operator.operand);\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 = [],\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\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\tsource(function(tiddler,title) {\n\t\tif(tiddler) {\n\t\t\tfor(var fieldName in tiddler.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/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/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\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} else {\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] === \&quot;\&quot;)) {\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] === \&quot;\&quot; || 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}\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/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/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.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) || options.wiki.getTiddlerText(operator.operand + 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/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/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.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\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/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/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/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 = [];\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 = options.wiki.getTiddlersWithTag(operator.operand);\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\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\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\tresults = options.wiki.sortByList(results,operator.operand);\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/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/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 /*jslint node: true, browser: true */\n /*global $tw: false */\n \&quot;use strict\&quot;;\n\n /*\n Fetch titles from the current list\n */\n var prepare_results = function (source) {\n var results = [];\n source(function (tiddler, title) {\n results.push(title);\n });\n return results;\n };\n\n /*\n Moves a number of items from the tail of the current list before the item named in the operand\n */\n exports.putbefore = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand),\n count = $tw.utils.getInt(operator.suffix,1);\n return (index === -1) ?\n results.slice(0, -1) :\n results.slice(0, index).concat(results.slice(-count)).concat(results.slice(index, -count));\n };\n\n /*\n Moves a number of items from the tail of the current list after the item named in the operand\n */\n exports.putafter = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand),\n count = $tw.utils.getInt(operator.suffix,1);\n return (index === -1) ?\n results.slice(0, -1) :\n results.slice(0, index + 1).concat(results.slice(-count)).concat(results.slice(index + 1, -count));\n };\n\n /*\n Replaces the item named in the operand with a number of items from the tail of the current list\n */\n exports.replace = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand),\n count = $tw.utils.getInt(operator.suffix,1);\n return (index === -1) ?\n results.slice(0, -count) :\n results.slice(0, index).concat(results.slice(-count)).concat(results.slice(index + 1, -count));\n };\n\n /*\n Moves a number of items from the tail of the current list to the head of the list\n */\n exports.putfirst = function (source, operator) {\n var results = prepare_results(source),\n count = $tw.utils.getInt(operator.suffix,1);\n return results.slice(-count).concat(results.slice(0, -count));\n };\n\n /*\n Moves a number of items from the head of the current list to the tail of the list\n */\n exports.putlast = function (source, operator) {\n var results = prepare_results(source),\n count = $tw.utils.getInt(operator.suffix,1);\n return results.slice(count).concat(results.slice(0, count));\n };\n\n /*\n Moves the item named in the operand a number of places forward or backward in the list\n */\n exports.move = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand),\n count = $tw.utils.getInt(operator.suffix,1),\n marker = results.splice(index, 1),\n offset = (index + count) &gt; 0 ? index + count : 0;\n return results.slice(0, offset).concat(marker).concat(results.slice(offset));\n };\n\n /*\n Returns the items from the current list that are after the item named in the operand\n */\n exports.allafter = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand);\n return (index === -1 || index &gt; (results.length - 2)) ? [] :\n (operator.suffix) ? results.slice(index) :\n results.slice(index + 1);\n };\n\n /*\n Returns the items from the current list that are before the item named in the operand\n */\n exports.allbefore = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand);\n return (index &lt; 0) ? [] :\n (operator.suffix) ? results.slice(0, index + 1) :\n results.slice(0, index);\n };\n\n /*\n Appends the items listed in the operand array to the tail of the current list\n */\n exports.append = function (source, operator) {\n var append = $tw.utils.parseStringArray(operator.operand, \&quot;true\&quot;),\n results = prepare_results(source),\n count = parseInt(operator.suffix) || append.length;\n return (append.length === 0) ? results :\n (operator.prefix) ? results.concat(append.slice(-count)) :\n results.concat(append.slice(0, count));\n };\n\n /*\n Prepends the items listed in the operand array to the head of the current list\n */\n exports.prepend = function (source, operator) {\n var prepend = $tw.utils.parseStringArray(operator.operand, \&quot;true\&quot;),\n results = prepare_results(source),\n count = $tw.utils.getInt(operator.suffix,prepend.length);\n return (prepend.length === 0) ? results :\n (operator.prefix) ? prepend.slice(-count).concat(results) :\n prepend.slice(0, count).concat(results);\n };\n\n /*\n Returns all items from the current list except the items listed in the operand array\n */\n exports.remove = function (source, operator) {\n var array = $tw.utils.parseStringArray(operator.operand, \&quot;true\&quot;),\n results = prepare_results(source),\n count = parseInt(operator.suffix) || array.length,\n p,\n len,\n index;\n len = array.length - 1;\n for (p = 0; p &lt; count; ++p) {\n if (operator.prefix) {\n index = results.indexOf(array[len - p]);\n } else {\n index = results.indexOf(array[p]);\n }\n if (index !== -1) {\n results.splice(index, 1);\n }\n }\n return results;\n };\n\n /*\n Returns all items from the current list sorted in the order of the items in the operand array\n */\n exports.sortby = function (source, operator) {\n var results = prepare_results(source);\n if (!results || results.length &lt; 2) {\n return results;\n }\n var lookup = $tw.utils.parseStringArray(operator.operand, \&quot;true\&quot;);\n results.sort(function (a, b) {\n return lookup.indexOf(a) - lookup.indexOf(b);\n });\n return results;\n };\n\n /*\n Removes all duplicate items from the current list\n */\n exports.unique = function (source, operator) {\n var results = prepare_results(source);\n var set = results.reduce(function (a, b) {\n if (a.indexOf(b) &lt; 0) {\n a.push(b);\n }\n return a;\n }, []);\n return set;\n };\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\n\t\tp = nextBracketPos + 1;\n\t\tswitch (bracket) {\n\t\t\tcase \&quot;{\&quot;: // Curly brackets\n\t\t\t\toperator.indirect = true;\n\t\t\t\tnextBracketPos = filterString.indexOf(\&quot;}\&quot;,p);\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\tbreak;\n\t\t\tcase \&quot;&lt;\&quot;: // Angle brackets\n\t\t\t\toperator.variable = true;\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\toperator.regexp = new RegExp(rexMatch[1], rexMatch[2]);\n// DEPRECATION WARNING\nconsole.log(\&quot;WARNING: Filter\&quot;,operator.operator,\&quot;has a deprecated regexp operand\&quot;,operator.regexp);\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\tthrow \&quot;Unterminated regular expression in filter expression\&quot;;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif(nextBracketPos === -1) {\n\t\t\tthrow \&quot;Missing closing bracket in filter expression\&quot;;\n\t\t}\n\t\tif(!operator.regexp) {\n\t\t\toperator.operand = filterString.substring(p,nextBracketPos);\n\t\t}\n\t\tp = nextBracketPos + 1;\n\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 = /((?:\\+|\\-|~)?)(?:(\\[)|(?:\&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++;\n\t\t\t}\n\t\t\tif(match[2]) { // 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[3] || match[4] || match[5]) { // 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;, operand: match[3] || match[4] || match[5]}\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.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 operand = operator.operand,\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\tif(operator.indirect) {\n\t\t\t\t\toperand = self.getTextReference(operator.operand,\&quot;\&quot;,currTiddlerTitle);\n\t\t\t\t}\n\t\t\t\tif(operator.variable) {\n\t\t\t\t\toperand = widget.getVariable(operator.operand,{defaultValue: \&quot;\&quot;});\n\t\t\t\t}\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: operand,\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\t// Wrap the operator functions in a wrapper function that depends on the prefix\n\t\toperationFunctions.push((function() {\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 function(results,source,widget) {\n\t\t\t\t\t\t$tw.utils.pushTop(results,operationSubFunction(source,widget));\n\t\t\t\t\t};\n\t\t\t\tcase \&quot;-\&quot;: // The results of this operation are removed from the main result\n\t\t\t\t\treturn function(results,source,widget) {\n\t\t\t\t\t\t$tw.utils.removeArrayEntries(results,operationSubFunction(source,widget));\n\t\t\t\t\t};\n\t\t\t\tcase \&quot;+\&quot;: // This operation is applied to the main results so far\n\t\t\t\t\treturn function(results,source,widget) {\n\t\t\t\t\t\t// This replaces all the elements of the array, but keeps the actual array so that references to it are preserved\n\t\t\t\t\t\tsource = self.makeTiddlerIterator(results);\n\t\t\t\t\t\tresults.splice(0,results.length);\n\t\t\t\t\t\t$tw.utils.pushTop(results,operationSubFunction(source,widget));\n\t\t\t\t\t};\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 function(results,source,widget) {\n\t\t\t\t\t\tif(results.length === 0) {\n\t\t\t\t\t\t\t// Main result so far is empty\n\t\t\t\t\t\t\t$tw.utils.pushTop(results,operationSubFunction(source,widget));\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;,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 = [];\n\t\t$tw.utils.each(operationFunctions,function(operationFunction) {\n\t\t\toperationFunction(results,source,widget);\n\t\t});\n\t\treturn results;\n\t});\n};\n\n})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;wikimethod&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() {\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\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}\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.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/dumpvariables.js&quot;: {
&quot;title&quot;: &quot;$:/core/modules/macros/dumpvariables.js&quot;,
&quot;text&quot;: &quot;/*\\\ntitle: $:/core/modules/macros/dumpvariables.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to dump all active variable values\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;dumpvariables\&quot;;\n\nexports.params = [\n];\n\n/*\nRun the macro\n*/\nexports.run = function() {\n\tvar output = [\&quot;|!Variable |!Value |\&quot;],\n\t\tvariables = [], variable;\n\tfor(variable in this.variables) {\n\t\tvariables.push(variable);\n\t}\n\tvariables.sort();\n\tfor(var index=0; index&lt;variables.length; index++) {\n\t\tvar variable = variables[index];\n\t\toutput.push(\&quot;|\&quot; + variable + \&quot; |&lt;input size=50 value=&lt;&lt;\&quot; + variable + \&quot;&gt;&gt;/&gt; |\&quot;)\n\t}\n\treturn output.join(\&quot;\\n\&quot;);\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];\n\n/*\nRun the macro\n*/\nexports.run = function(filter) {\n\treturn this.wiki.getTiddlersAsJson(filter);\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];\n\n/*\nRun the macro\n*/\nexports.run = function(text,type) {\n\treturn $tw.utils.makeDataUri(text,type);\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/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}\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 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 BINARY_WARNING_MESSAGE = \&quot;$:/core/ui/BinaryWarning\&quot;;\n\nvar BinaryParser = function(type,text,options) {\n\tthis.tree = [{\n\t\ttype: \&quot;transclude\&quot;,\n\t\tattributes: {\n\t\t\ttiddler: {type: \&quot;string\&quot;, value: BINARY_WARNING_MESSAGE}\n\t\t}\n\t}];\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}\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/mp4\&quot;] = VideoParser;\nexports[\&quot;video/quicktime\&quot;] = VideoParser;\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/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;p\&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// 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 keepFilter;\n\tif(type === \&quot;only\&quot;) {\n\t\tkeepFilter = function(name) {\n\t\t\treturn names.indexOf(name) !== -1;\n\t\t};\n\t} else if(type === \&quot;except\&quot;) {\n\t\tkeepFilter = function(name) {\n\t\t\treturn names.indexOf(name) === -1;\n\t\t};\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(!keepFilter(ruleArray[t].rule.name)) {\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// 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.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\tthis.numChanges = 0;\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\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// Ignore autosave if disabled\n\tif(method === \&quot;autosave\&quot; &amp;&amp; this.wiki.getTiddlerText(this.titleAutoSave,\&quot;yes\&quot;) !== \&quot;yes\&quot;) {\n\t\treturn false;\n\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\tif($tw.browser) {\n\t\t$tw.utils.toggleClass(document.body,\&quot;tc-dirty\&quot;,this.isDirty());\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) {\n\t// Get the pathname of this document\n\tvar pathname = decodeURIComponent(document.location.toString().split(\&quot;#\&quot;)[0]);\n\t// Strip the file://\n\tif(pathname.indexOf(\&quot;file://\&quot;) === 0) {\n\t\tpathname = pathname.substr(7);\n\t}\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// Save the file\n\twindow.twi.saveFile(pathname,text);\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;]\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/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/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($tw.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; + credentialsFilepath + \&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;);\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\tvar filename = path.resolve($tw.boot.wikiPath,\&quot;files\&quot;,decodeURIComponent(state.params[0])),\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\tif(err.code === \&quot;ENOENT\&quot;) {\n\t\t\t\tstatus = 404;\n\t\t\t\tcontent = \&quot;File '\&quot; + filename + \&quot;' not found\&quot;;\n\t\t\t} else if(err.code === \&quot;EACCES\&quot;) {\n\t\t\t\tstatus = 403;\n\t\t\t\tcontent = \&quot;You do not have permission to access the file '\&quot; + filename + \&quot;'\&quot;;\n\t\t\t} else {\n\t\t\t\tstatus = 500;\n\t\t\t\tcontent = err.toString();\n\t\t\t}\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\nexports.method = \&quot;GET\&quot;;\n\nexports.path = /^\\/$/;\n\nexports.handler = function(request,response,state) {\n\tresponse.writeHead(200, {\&quot;Content-Type\&quot;: state.server.get(\&quot;root-serve-type\&quot;)});\n\tvar text = state.wiki.renderTiddler(state.server.get(\&quot;root-render-type\&quot;),state.server.get(\&quot;root-tiddler\&quot;));\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-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.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/tiddlers.json\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.json$/;\n\nexports.handler = function(request,response,state) {\n\tresponse.writeHead(200, {\&quot;Content-Type\&quot;: \&quot;application/json\&quot;});\n\tvar tiddlers = [];\n\tstate.wiki.forEachTiddler({sortField: \&quot;title\&quot;},function(title,tiddler) {\n\t\tvar tiddlerFields = {};\n\t\t$tw.utils.each(tiddler.fields,function(field,name) {\n\t\t\tif(name !== \&quot;text\&quot;) {\n\t\t\t\ttiddlerFields[name] = tiddler.getFieldString(name);\n\t\t\t}\n\t\t});\n\t\ttiddlerFields.revision = state.wiki.getChangeCount(title);\n\t\ttiddlerFields.type = tiddlerFields.type || \&quot;text/vnd.tiddlywiki\&quot;;\n\t\ttiddlers.push(tiddlerFields);\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}\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.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// 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($tw.boot.wikiPath,tlsKeyFilepath),\&quot;utf8\&quot;),\n\t\t\tcert: fs.readFileSync(path.resolve($tw.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};\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\tvar pathprefix = this.get(\&quot;path-prefix\&quot;) || \&quot;\&quot;;\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(pathprefix) {\n\t\t\tif(pathname.substr(0,pathprefix.length) === pathprefix) {\n\t\t\t\tpathname = pathname.substr(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) {\n\t// Compose the state object\n\tvar self = this;\n\tvar state = {};\n\tstate.wiki = self.wiki;\n\tstate.server = self;\n\tstate.urlInfo = url.parse(request.url);\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;hist\&quot; variable)\n*/\nServer.prototype.listen = function(port,host) {\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\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$tw.utils.log(\&quot;Serving on \&quot; + this.protocol + \&quot;://\&quot; + host + \&quot;:\&quot; + port,\&quot;brown/orange\&quot;);\n\t$tw.utils.log(\&quot;(press ctrl-C to exit)\&quot;,\&quot;red\&quot;);\n\t// Warn if required plugins are missing\n\tif(!$tw.wiki.getTiddler(\&quot;$:/plugins/tiddlywiki/tiddlyweb\&quot;) || !$tw.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// Listen\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\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\tconsole.log(\&quot;browser-messaging: \&quot;,document.location.toString())\n\t\tconsole.log(\&quot;browser-messaging: Received message from\&quot;,event.origin);\n\t\tconsole.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/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;,\&quot;data:\&quot; + tiddler.fields.type + \&quot;;base64,\&quot; + tiddler.fields.text);\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\nexports.startup = function() {\n\t// Collect up the info tiddlers\n\tvar infoTiddlerFields = {};\n\t// Give each info module a chance to fill in as many info tiddlers as they want\n\t$tw.modules.forEachModuleOfType(\&quot;info\&quot;,function(title,moduleExports) {\n\t\tif(moduleExports &amp;&amp; moduleExports.getInfoTiddlerFields) {\n\t\t\tvar tiddlerFieldsArray = moduleExports.getInfoTiddlerFields(infoTiddlerFields);\n\t\t\t$tw.utils.each(tiddlerFieldsArray,function(fields) {\n\t\t\t\tif(fields) {\n\t\t\t\t\tinfoTiddlerFields[fields.title] = fields;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\t// Bake the info tiddlers into a plugin\n\tvar fields = {\n\t\ttitle: \&quot;$:/temp/info-plugin\&quot;,\n\t\ttype: \&quot;application/json\&quot;,\n\t\t\&quot;plugin-type\&quot;: \&quot;info\&quot;,\n\t\ttext: JSON.stringify({tiddlers: infoTiddlerFields},null,$tw.config.preferences.jsonSpaces)\n\t};\n\t$tw.wiki.addTiddler(new $tw.Tiddler(fields));\n\t$tw.wiki.readPluginInfo();\n\t$tw.wiki.registerPluginTiddlers(\&quot;info\&quot;);\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.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/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/PageTemplate\&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 DRAFT_TIDDLER_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});\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.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 drafts have changed\n\t\tvar onlyDraftsHaveChanged = 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;)) {\n\t\t\t\tonlyDraftsHaveChanged = 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(onlyDraftsHaveChanged) {\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 = DRAFT_TIDDLER_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};\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// 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 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\tif(event.param === \&quot;enter\&quot;) {\n\t\t\t\tevent.event.target.ownerDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);\n\t\t\t} else if(event.param === \&quot;exit\&quot;) {\n\t\t\t\tevent.event.target.ownerDocument[fullscreen._exitFullscreen]();\n\t\t\t} else {\n\t\t\t\tif(event.event.target.ownerDocument[fullscreen._fullscreenElement]) {\n\t\t\t\t\tevent.event.target.ownerDocument[fullscreen._exitFullscreen]();\n\t\t\t\t} else {\n\t\t\t\t\tevent.event.target.ownerDocument.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// 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-US\&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// 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\tvar executeStartupTiddlers = function(tag) {\n\t\t$tw.utils.each($tw.wiki.filterTiddlers(\&quot;[all[shadows+tiddlers]tag[\&quot; + tag + \&quot;]!has[draft.of]]\&quot;),function(title) {\n\t\t\t$tw.rootWidget.invokeActionString($tw.wiki.getTiddlerText(title),$tw.rootWidget);\n\t\t});\n\t};\n\texecuteStartupTiddlers(\&quot;$:/tags/StartupAction\&quot;);\n\tif($tw.browser) {\n\t\texecuteStartupTiddlers(\&quot;$:/tags/StartupAction/Browser\&quot;);\t\t\n\t}\n\tif($tw.node) {\n\t\texecuteStartupTiddlers(\&quot;$:/tags/StartupAction/Node\&quot;);\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({wiki: $tw.wiki, dirtyTracking: !$tw.syncadaptor});\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\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:\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// If a target tiddler was specified add it to the history stack\n\tif(target &amp;&amp; target !== \&quot;\&quot;) {\n\t\t// The target tiddler doesn't need double square brackets, but we'll silently remove them if they're present\n\t\tif(target.indexOf(\&quot;[[\&quot;) === 0 &amp;&amp; target.substr(-2) === \&quot;]]\&quot;) {\n\t\t\ttarget = target.substr(2,target.length - 4);\n\t\t}\n\t\t$tw.wiki.addToHistory(target);\n\t} else if(storyList.length &gt; 0) {\n\t\t$tw.wiki.addToHistory(storyList[0]);\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)\nvar 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\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\twindows[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 = title;\n\t\tsrcWindow.addEventListener(\&quot;beforeunload\&quot;,function(event) {\n\t\t\tdelete 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\t\tname: \&quot;click\&quot;,\n\t\t\thandlerObject: $tw.popup,\n\t\t\thandlerMethod: \&quot;handleEvent\&quot;\n\t\t}]);\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(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 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\nClassicStoryView.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// Get the current height of the tiddler\n\tvar computedStyle = window.getComputedStyle(targetElement),\n\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\tcurrHeight = targetElement.offsetHeight + currMarginTop;\n\t// Reset the margin 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{marginBottom: \&quot;\&quot;}\n\t\t]);\n\t},duration);\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{marginBottom: (-currHeight) + \&quot;px\&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: \&quot;opacity \&quot; + duration + \&quot;ms \&quot; + easing + \&quot;, \&quot; +\n\t\t\t\t\t\&quot;margin-bottom \&quot; + duration + \&quot;ms \&quot; + easing},\n\t\t{marginBottom: currMarginBottom + \&quot;px\&quot;},\n\t\t{opacity: \&quot;1.0\&quot;}\n\t]);\n};\n\nClassicStoryView.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// Get the current height of the tiddler\n\tvar currWidth = targetElement.offsetWidth,\n\t\tcomputedStyle = window.getComputedStyle(targetElement),\n\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\tcurrHeight = targetElement.offsetHeight + currMarginTop;\n\t// Remove the dom nodes of the widget 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;translateX(0px)\&quot;},\n\t\t{marginBottom: currMarginBottom + \&quot;px\&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 \&quot; + easing + \&quot;, \&quot; +\n\t\t\t\t\t\&quot;opacity \&quot; + duration + \&quot;ms \&quot; + easing + \&quot;, \&quot; +\n\t\t\t\t\t\&quot;margin-bottom \&quot; + duration + \&quot;ms \&quot; + easing},\n\t\t{transform: \&quot;translateX(-\&quot; + currWidth + \&quot;px)\&quot;},\n\t\t{marginBottom: (-currHeight) + \&quot;px\&quot;},\n\t\t{opacity: \&quot;0.0\&quot;}\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},duration);\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.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. If a syncadaptor is used then individual tiddlers are synchronised through it. If there is no syncadaptor then the entire wiki is saved 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/*\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.titleSavedNotification = \&quot;$:/language/Notifications/Save/Done\&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.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\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 || this.throttleInterval;\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\t\tcolour: \&quot;cyan\&quot;,\n\t\t\tenable: this.logging\n\t\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\t// Tasks are {type: \&quot;load\&quot;/\&quot;save\&quot;/\&quot;delete\&quot;, title:, queueTime:, lastModificationTime:}\n\tthis.taskQueue = {}; // Hashmap of tasks yet to be performed\n\tthis.taskInProgress = {}; // Hash of tasks in progress\n\tthis.taskTimerId = null; // Timer for task dispatch\n\tthis.pollTimerId = null; // Timer for polling server\n\t// Listen out for changes to tiddlers\n\tthis.wiki.addEventListener(\&quot;change\&quot;,function(changes) {\n\t\tself.syncToServer(changes);\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() {\n\t\t\tself.handleLoginEvent();\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}\n\t// Listen out for lazyLoad events\n\tif(!this.disableUI) {\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/*\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\tthis.tiddlerInfo = {};\n\t// Record information for known tiddlers\n\tvar self = this,\n\t\ttiddlers = this.filterFn.call(this.wiki);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\tself.tiddlerInfo[title] = {\n\t\t\trevision: tiddler.fields.revision,\n\t\t\tadaptorInfo: self.syncadaptor &amp;&amp; self.syncadaptor.getTiddlerInfo(tiddler),\n\t\t\tchangeCount: self.wiki.getChangeCount(title),\n\t\t\thasBeenLazyLoaded: false\n\t\t};\n\t});\n};\n\n/*\nCreate an tiddlerInfo structure if it doesn't already exist\n*/\nSyncer.prototype.createTiddlerInfo = function(title) {\n\tif(!$tw.utils.hop(this.tiddlerInfo,title)) {\n\t\tthis.tiddlerInfo[title] = {\n\t\t\trevision: null,\n\t\t\tadaptorInfo: {},\n\t\t\tchangeCount: -1,\n\t\t\thasBeenLazyLoaded: false\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\treturn (this.numTasksInQueue() &gt; 0) || (this.numTasksInProgress() &gt; 0);\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\t$tw.utils.toggleClass(document.body,\&quot;tc-dirty\&quot;,this.isDirty());\n\t}\n};\n\n/*\nSave an incoming tiddler in the store, and updates the associated tiddlerInfo\n*/\nSyncer.prototype.storeTiddler = function(tiddlerFields,hasBeenLazyLoaded) {\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: tiddlerFields.revision,\n\t\tadaptorInfo: this.syncadaptor.getTiddlerInfo(tiddler),\n\t\tchangeCount: this.wiki.getChangeCount(tiddlerFields.title),\n\t\thasBeenLazyLoaded: hasBeenLazyLoaded !== undefined ? hasBeenLazyLoaded : true\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\treturn;\n\t\t\t}\n\t\t\t// Set the various status tiddlers\n\t\t\tself.wiki.addTiddler({title: self.titleIsReadOnly,text: isReadOnly ? \&quot;yes\&quot; : \&quot;no\&quot;});\n\t\t\tself.wiki.addTiddler({title: self.titleIsAnonymous,text: isAnonymous ? \&quot;yes\&quot; : \&quot;no\&quot;});\n\t\t\tself.wiki.addTiddler({title: self.titleIsLoggedIn,text: isLoggedIn ? \&quot;yes\&quot; : \&quot;no\&quot;});\n\t\t\tif(isLoggedIn) {\n\t\t\t\tself.wiki.addTiddler({title: self.titleUserName,text: username || \&quot;\&quot;});\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\tif(this.syncadaptor &amp;&amp; this.syncadaptor.getSkinnyTiddlers) {\n\t\tthis.logger.log(\&quot;Retrieving skinny tiddler list\&quot;);\n\t\tvar self = this;\n\t\tif(this.pollTimerId) {\n\t\t\tclearTimeout(this.pollTimerId);\n\t\t\tthis.pollTimerId = null;\n\t\t}\n\t\tthis.syncadaptor.getSkinnyTiddlers(function(err,tiddlers) {\n\t\t\t// Trigger the next sync\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\t// Check for errors\n\t\t\tif(err) {\n\t\t\t\tself.logger.alert($tw.language.getString(\&quot;Error/RetrievingSkinny\&quot;) + \&quot;:\&quot;,err);\n\t\t\t\treturn;\n\t\t\t}\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.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// 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// Do a full load if we've already got a fat version of the tiddler\n\t\t\t\t\tif(tiddler &amp;&amp; tiddler.fields.text !== undefined) {\n\t\t\t\t\t\t// Do a full load of this tiddler\n\t\t\t\t\t\tself.enqueueSyncTask({\n\t\t\t\t\t\t\ttype: \&quot;load\&quot;,\n\t\t\t\t\t\t\ttitle: tiddlerFields.title\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Load the skinny version of the tiddler\n\t\t\t\t\t\tself.storeTiddler(tiddlerFields,false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nSynchronise a set of changes to the server\n*/\nSyncer.prototype.syncToServer = function(changes) {\n\tvar self = this,\n\t\tnow = Date.now(),\n\t\tfilteredChanges = this.filterFn.call(this.wiki,function(callback) {\n\t\t\t$tw.utils.each(changes,function(change,title) {\n\t\t\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\t\t\tcallback(tiddler,title);\n\t\t\t});\n\t\t});\n\t$tw.utils.each(changes,function(change,title,object) {\n\t\t// Process the change if it is a deletion of a tiddler we're already syncing, or is on the filtered change list\n\t\tif((change.deleted &amp;&amp; $tw.utils.hop(self.tiddlerInfo,title)) || filteredChanges.indexOf(title) !== -1) {\n\t\t\t// Queue a task to sync this tiddler\n\t\t\tself.enqueueSyncTask({\n\t\t\t\ttype: change.deleted ? \&quot;delete\&quot; : \&quot;save\&quot;,\n\t\t\t\ttitle: title\n\t\t\t});\n\t\t}\n\t});\n};\n\n/*\nLazily load a skinny tiddler if we can\n*/\nSyncer.prototype.handleLazyLoadEvent = function(title) {\n\t// Don't lazy load the same tiddler twice\n\tvar info = this.tiddlerInfo[title];\n\tif(!info || !info.hasBeenLazyLoaded) {\n\t\t// Don't lazy load if the tiddler isn't included in the sync filter\n\t\tif(this.filterFn.call(this.wiki).indexOf(title) !== -1) {\n\t\t\tthis.createTiddlerInfo(title);\n\t\t\tthis.tiddlerInfo[title].hasBeenLazyLoaded = true;\n\t\t\t// Queue up a sync task to load this tiddler\n\t\t\tthis.enqueueSyncTask({\n\t\t\t\ttype: \&quot;load\&quot;,\n\t\t\t\ttitle: title\n\t\t\t});\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(!isLoggedIn) {\n\t\t\t$tw.passwordPrompt.createPrompt({\n\t\t\t\tserviceName: $tw.language.getString(\&quot;LoginToTiddlySpace\&quot;),\n\t\t\t\tcallback: function(data) {\n\t\t\t\t\tself.login(data.username,data.password,function(err,isLoggedIn) {\n\t\t\t\t\t\tself.syncFromServer();\n\t\t\t\t\t});\n\t\t\t\t\treturn true; // Get rid of the password prompt\n\t\t\t\t}\n\t\t\t});\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(null,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/*\nQueue up a sync task. If there is already a pending task for the tiddler, just update the last modification time\n*/\nSyncer.prototype.enqueueSyncTask = function(task) {\n\tvar self = this,\n\t\tnow = Date.now();\n\t// Set the timestamps on this task\n\ttask.queueTime = now;\n\ttask.lastModificationTime = now;\n\t// Fill in some tiddlerInfo if the tiddler is one we haven't seen before\n\tthis.createTiddlerInfo(task.title);\n\t// Bail if this is a save and the tiddler is already at the changeCount that the server has\n\tif(task.type === \&quot;save\&quot; &amp;&amp; this.wiki.getChangeCount(task.title) &lt;= this.tiddlerInfo[task.title].changeCount) {\n\t\treturn;\n\t}\n\t// Check if this tiddler is already in the queue\n\tif($tw.utils.hop(this.taskQueue,task.title)) {\n\t\t// this.logger.log(\&quot;Re-queueing up sync task with type:\&quot;,task.type,\&quot;title:\&quot;,task.title);\n\t\tvar existingTask = this.taskQueue[task.title];\n\t\t// If so, just update the last modification time\n\t\texistingTask.lastModificationTime = task.lastModificationTime;\n\t\t// If the new task is a save then we upgrade the existing task to a save. Thus a pending load is turned into a save if the tiddler changes locally in the meantime. But a pending save is not modified to become a load\n\t\tif(task.type === \&quot;save\&quot; || task.type === \&quot;delete\&quot;) {\n\t\t\texistingTask.type = task.type;\n\t\t}\n\t} else {\n\t\t// this.logger.log(\&quot;Queuing up sync task with type:\&quot;,task.type,\&quot;title:\&quot;,task.title);\n\t\t// If it is not in the queue, insert it\n\t\tthis.taskQueue[task.title] = task;\n\t\tthis.updateDirtyStatus();\n\t}\n\t// Process the queue\n\t$tw.utils.nextTick(function() {self.processTaskQueue.call(self);});\n};\n\n/*\nReturn the number of tasks in progress\n*/\nSyncer.prototype.numTasksInProgress = function() {\n\treturn $tw.utils.count(this.taskInProgress);\n};\n\n/*\nReturn the number of tasks in the queue\n*/\nSyncer.prototype.numTasksInQueue = function() {\n\treturn $tw.utils.count(this.taskQueue);\n};\n\n/*\nTrigger a timeout if one isn't already outstanding\n*/\nSyncer.prototype.triggerTimeout = function() {\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},self.taskTimerInterval);\n\t}\n};\n\n/*\nProcess the task queue, performing the next task if appropriate\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 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(task) {\n\t\t\t// Remove the task from the queue and add it to the in progress list\n\t\t\tdelete this.taskQueue[task.title];\n\t\t\tthis.taskInProgress[task.title] = task;\n\t\t\tthis.updateDirtyStatus();\n\t\t\t// Dispatch the task\n\t\t\tthis.dispatchTask(task,function(err) {\n\t\t\t\tif(err) {\n\t\t\t\t\tself.logger.alert(\&quot;Sync error while processing '\&quot; + task.title + \&quot;':\\n\&quot; + err);\n\t\t\t\t}\n\t\t\t\t// Mark that this task is no longer in progress\n\t\t\t\tdelete self.taskInProgress[task.title];\n\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t// Process the next task\n\t\t\t\tself.processTaskQueue.call(self);\n\t\t\t});\n\t\t} else {\n\t\t\t// Make sure we've set a time if there wasn't a task to perform, but we've still got tasks in the queue\n\t\t\tif(this.numTasksInQueue() &gt; 0) {\n\t\t\t\tthis.triggerTimeout();\n\t\t\t}\n\t\t}\n\t}\n};\n\n/*\nChoose the next applicable task\n*/\nSyncer.prototype.chooseNextTask = function() {\n\tvar self = this,\n\t\tcandidateTask = null,\n\t\tnow = Date.now();\n\t// Select the best candidate task\n\t$tw.utils.each(this.taskQueue,function(task,title) {\n\t\t// Exclude the task if there's one of the same name in progress\n\t\tif($tw.utils.hop(self.taskInProgress,title)) {\n\t\t\treturn;\n\t\t}\n\t\t// Exclude the task if it is a save and the tiddler has been modified recently, but not hit the fallback time\n\t\tif(task.type === \&quot;save\&quot; &amp;&amp; (now - task.lastModificationTime) &lt; self.throttleInterval &amp;&amp;\n\t\t\t(now - task.queueTime) &lt; self.fallbackInterval) {\n\t\t\treturn;\n\t\t}\n\t\t// Exclude the task if it is newer than the current best candidate\n\t\tif(candidateTask &amp;&amp; candidateTask.queueTime &lt; task.queueTime) {\n\t\t\treturn;\n\t\t}\n\t\t// Now this is our best candidate\n\t\tcandidateTask = task;\n\t});\n\treturn candidateTask;\n};\n\n/*\nDispatch a task and invoke the callback\n*/\nSyncer.prototype.dispatchTask = function(task,callback) {\n\tvar self = this;\n\tif(task.type === \&quot;save\&quot;) {\n\t\tvar changeCount = this.wiki.getChangeCount(task.title),\n\t\t\ttiddler = this.wiki.getTiddler(task.title);\n\t\tthis.logger.log(\&quot;Dispatching 'save' task:\&quot;,task.title);\n\t\tif(tiddler) {\n\t\t\tthis.syncadaptor.saveTiddler(tiddler,function(err,adaptorInfo,revision) {\n\t\t\t\tif(err) {\n\t\t\t\t\treturn callback(err);\n\t\t\t\t}\n\t\t\t\t// Adjust the info stored about this tiddler\n\t\t\t\tself.tiddlerInfo[task.title] = {\n\t\t\t\t\tchangeCount: changeCount,\n\t\t\t\t\tadaptorInfo: adaptorInfo,\n\t\t\t\t\trevision: revision\n\t\t\t\t};\n\t\t\t\t// Invoke the callback\n\t\t\t\tcallback(null);\n\t\t\t},{\n\t\t\t\ttiddlerInfo: self.tiddlerInfo[task.title]\n\t\t\t});\n\t\t} else {\n\t\t\tthis.logger.log(\&quot; Not Dispatching 'save' task:\&quot;,task.title,\&quot;tiddler does not exist\&quot;);\n\t\t\treturn callback(null);\n\t\t}\n\t} else if(task.type === \&quot;load\&quot;) {\n\t\t// Load the tiddler\n\t\tthis.logger.log(\&quot;Dispatching 'load' task:\&quot;,task.title);\n\t\tthis.syncadaptor.loadTiddler(task.title,function(err,tiddlerFields) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\t// Store the tiddler\n\t\t\tif(tiddlerFields) {\n\t\t\t\tself.storeTiddler(tiddlerFields,true);\n\t\t\t}\n\t\t\t// Invoke the callback\n\t\t\tcallback(null);\n\t\t});\n\t} else if(task.type === \&quot;delete\&quot;) {\n\t\t// Delete the tiddler\n\t\tthis.logger.log(\&quot;Dispatching 'delete' task:\&quot;,task.title);\n\t\tthis.syncadaptor.deleteTiddler(task.title,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tdelete self.tiddlerInfo[task.title];\n\t\t\t// Invoke the callback\n\t\t\tcallback(null);\n\t\t},{\n\t\t\ttiddlerInfo: self.tiddlerInfo[task.title]\n\t\t});\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\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.push(field + \&quot;: \&quot; + this.getFieldString(field));\n\t\t\t}\n\t\t}\n\t}\n\treturn fields.join(\&quot;\\n\&quot;);\n};\n\n/*\nCompare two tiddlers for equality\ntiddler: the tiddler to compare\nexcludeFields: array of field names to exclude from the comparison\n*/\nexports.isEqual = function(tiddler,excludeFields) {\n\tif(!(tiddler instanceof $tw.Tiddler)) {\n\t\treturn false;\n\t}\n\texcludeFields = excludeFields || [];\n\tvar self = this,\n\t\tdifferences = []; // Fields that have differences\n\t// Add to the differences array\n\tfunction addDifference(fieldName) {\n\t\t// Check for this field being excluded\n\t\tif(excludeFields.indexOf(fieldName) === -1) {\n\t\t\t// Save the field as a difference\n\t\t\t$tw.utils.pushTop(differences,fieldName);\n\t\t}\n\t}\n\t// Returns true if the two values of this field are equal\n\tfunction isFieldValueEqual(fieldName) {\n\t\tvar valueA = self.fields[fieldName],\n\t\t\tvalueB = tiddler.fields[fieldName];\n\t\t// Check for identical string values\n\t\tif(typeof(valueA) === \&quot;string\&quot; &amp;&amp; typeof(valueB) === \&quot;string\&quot; &amp;&amp; valueA === valueB) {\n\t\t\treturn true;\n\t\t}\n\t\t// Check for identical array values\n\t\tif($tw.utils.isArray(valueA) &amp;&amp; $tw.utils.isArray(valueB) &amp;&amp; $tw.utils.isArrayEqual(valueA,valueB)) {\n\t\t\treturn true;\n\t\t}\n\t\t// Otherwise the fields must be different\n\t\treturn false;\n\t}\n\t// Compare our fields\n\tfor(var fieldName in this.fields) {\n\t\tif(!isFieldValueEqual(fieldName)) {\n\t\t\taddDifference(fieldName);\n\t\t}\n\t}\n\t// There's a difference for every field in the other tiddler that we don't have\n\tfor(fieldName in tiddler.fields) {\n\t\tif(!(fieldName in this.fields)) {\n\t\t\taddDifference(fieldName);\n\t\t}\n\t}\n\t// Return whether there were any differences\n\treturn differences.length === 0;\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;] &amp;&amp; incomingTiddler.version) {\n\t\t\t// Upgrade the incoming plugin if it is in the upgrade library\n\t\t\tvar libraryTiddler = getLibraryTiddler(title);\n\t\t\tif(libraryTiddler &amp;&amp; libraryTiddler[\&quot;plugin-type\&quot;] &amp;&amp; libraryTiddler.version) {\n\t\t\t\ttiddlers[title] = libraryTiddler;\n\t\t\t\tmessages[title] = $tw.language.getString(\&quot;Import/Upgrader/Plugins/Upgraded\&quot;,{variables: {incoming: incomingTiddler.version, upgraded: libraryTiddler.version}});\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Suppress the incoming plugin if it is older than the currently installed one\n\t\t\tvar existingTiddler = wiki.getTiddler(title);\n\t\t\tif(existingTiddler &amp;&amp; existingTiddler.hasField(\&quot;plugin-type\&quot;) &amp;&amp; existingTiddler.hasField(\&quot;version\&quot;)) {\n\t\t\t\t// Reject the incoming plugin by blanking all its fields\n\t\t\t\tif($tw.utils.checkVersions(existingTiddler.fields.version,incomingTiddler.version)) {\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/Version\&quot;,{variables: {incoming: incomingTiddler.version, existing: existingTiddler.fields.version}});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(incomingTiddler &amp;&amp; incomingTiddler[\&quot;plugin-type\&quot;]) {\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;];\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\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}\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/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.className &amp;&amp; el.className.toString().split(\&quot; \&quot;).indexOf(className) !== -1;\n};\n\nexports.addClass = function(el,className) {\n\tvar c = el.className.split(\&quot; \&quot;);\n\tif(c.indexOf(className) === -1) {\n\t\tc.push(className);\n\t}\n\tel.className = c.join(\&quot; \&quot;);\n};\n\nexports.removeClass = function(el,className) {\n\tvar c = el.className.split(\&quot; \&quot;),\n\t\tp = c.indexOf(className);\n\tif(p !== -1) {\n\t\tc.splice(p,1);\n\t\tel.className = 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\ttry {\n\t\tif(window.localStorage) {\n\t\t\tlocalStorage.setItem(\&quot;tw5-password-\&quot; + name,password);\n\t\t}\n\t} catch(e) {\n\t}\n};\n\n/*\nRetrieve a named password from the browser\n*/\nexports.getPassword = function(name) {\n\ttry {\n\t\treturn window.localStorage ? localStorage.getItem(\&quot;tw5-password-\&quot; + name) : \&quot;\&quot;;\n\t} catch(e) {\n\t\treturn \&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)\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\theaders = options.headers || {accept: \&quot;application/json\&quot;},\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\tdata = results.join(\&quot;&amp;\&quot;);\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);\n\t\t}\n\t};\n\t// Make the request\n\trequest.open(type,options.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; !$tw.utils.hop(headers,\&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(!$tw.utils.hop(headers,\&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);\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;);\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 ? 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({currentTiddler: title},options.variables);\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\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\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: $tw.rootWidget,\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: $tw.rootWidget,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\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 &amp;&amp; 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: $tw.rootWidget,\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});\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\tpopup.wiki.deleteTiddler(popup.title);\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.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\treturn this.scrollIntoView(event.target);\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\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_TextNode = function(text) {\n\tbumpSequenceNumber(this);\n\tthis.textContent = text + \&quot;\&quot;;\n};\n\nObject.defineProperty(TW_TextNode.prototype, \&quot;nodeType\&quot;, {\n\tget: function() {\n\t\treturn 3;\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\nObject.defineProperty(TW_Element.prototype, \&quot;nodeType\&quot;, {\n\tget: function() {\n\t\treturn 1;\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(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/*\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 = $tw.utils.removeTrailingSeparator(srcPath);\n\tdstPath = $tw.utils.removeTrailingSeparator(dstPath);\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})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils-node&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}\n\n/*\nLog a message\n*/\nLogger.prototype.log = function(/* args */) {\n\tif(this.enable &amp;&amp; console !== undefined &amp;&amp; console.log !== undefined) {\n\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}\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}\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\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 of current values of measurements\n\tthis.logger = new $tw.utils.Logger(\&quot;performance\&quot;);\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\tself.measures = {};\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\tfor(var m in self.measures) {\n\t\t\t\tself.logger.log(\&quot;+\&quot; + m + \&quot;: \&quot; + self.measures[m].toFixed(2) + \&quot;ms\&quot;);\n\t\t\t}\n\t\t\treturn result;\n\t\t};\n\t} else {\n\t\treturn fn;\n\t}\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\t\tvalue = self.measures[name] || 0;\n\t\t\tself.measures[name] = value + $tw.utils.timer(startTime);\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\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/*\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\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/*\nCheck if an array is equal by value and by reference.\n*/\nexports.isArrayEqual = function(array1,array2) {\n\tif(array1 === array2) {\n\t\treturn true;\n\t}\n\tarray1 = array1 || [];\n\tarray2 = array2 || [];\n\tif(array1.length !== array2.length) {\n\t\treturn false;\n\t}\n\treturn array1.every(function(value,index) {\n\t\treturn value === array2[index];\n\t});\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/*\nPush entries onto an array, removing them first if they already exist in the array\n\tarray: array to modify (assumed to be free of duplicates)\n\tvalue: a single value to push or an array of values to push\n*/\nexports.pushTop = function(array,value) {\n\tvar t,p;\n\tif($tw.utils.isArray(value)) {\n\t\t// Remove any array entries that are duplicated in the new values\n\t\tif(value.length !== 0) {\n\t\t\tif(array.length !== 0) {\n\t\t\t\tif(value.length &lt; array.length) {\n\t\t\t\t\tfor(t=0; t&lt;value.length; t++) {\n\t\t\t\t\t\tp = array.indexOf(value[t]);\n\t\t\t\t\t\tif(p !== -1) {\n\t\t\t\t\t\t\tarray.splice(p,1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor(t=array.length-1; t&gt;=0; t--) {\n\t\t\t\t\t\tp = value.indexOf(array[t]);\n\t\t\t\t\t\tif(p !== -1) {\n\t\t\t\t\t\t\tarray.splice(t,1);\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\t// Push the values on top of the main array\n\t\t\tarray.push.apply(array,value);\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\tarray.push(value);\n\t}\n\treturn array;\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.getYearForWeekNo(date);\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 date.getFullYear();\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());\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();\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) {\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\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(/[\\x00-\\x1f\\x80-\\uFFFF]/g, 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) {\n\t// See http://www.json.org/\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(/[\\x00-\\x1f\\x80-\\uFFFF]/g,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);\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\tif($tw.browser) {\n\t\t// TODO\n\t\tthrow \&quot;$tw.utils.base64Decode() doesn't work in the browser\&quot;;\n\t} else {\n\t\treturn Buffer.from(string64,\&quot;base64\&quot;).toString();\n\t}\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) {\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\tparts.push(\&quot;data:\&quot;);\n\tparts.push(type);\n\tparts.push(isBase64 ? \&quot;;base64\&quot; : \&quot;\&quot;);\n\tparts.push(\&quot;,\&quot;);\n\tparts.push(isBase64 ? text : encodeURIComponent(text));\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})();\n&quot;,
&quot;type&quot;: &quot;application/javascript&quot;,
&quot;module-type&quot;: &quot;utils&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 */\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.actionSaveTitle = this.getAttribute(\&quot;$savetitle\&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*/\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.generateNewTitle(this.actionBaseTitle),\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\tvar tiddler = this.wiki.addTiddler(new $tw.Tiddler(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\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) {\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-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-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\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.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// 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 = \&quot;button\&quot;;\n\tif(this.buttonTag &amp;&amp; $tw.config.htmlUnsafeElements.indexOf(this.buttonTag) === -1) {\n\t\ttag = this.buttonTag;\n\t}\n\tvar domNode = this.document.createElement(tag);\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// 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\tself.invokeActionString(self.actions,self,event);\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;class\&quot;] = this.getAttribute(\&quot;class\&quot;,\&quot;\&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.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\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*/\nButtonWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(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) {\n\t\tthis.refreshSelf();\n\t\treturn true;\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\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.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.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\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;]) {\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 = undefined;\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(changedTiddlers.tag || changedTiddlers[\&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// 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.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\tvar domNode = this.document.createElement(tag),\n\t\tclasses = (this[\&quot;class\&quot;] || \&quot;\&quot;).split(\&quot; \&quot;);\n\tclasses.push(\&quot;tc-droppable\&quot;);\n\tdomNode.className = classes.join(\&quot; \&quot;);\n\t// Add event handlers\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \&quot;dragenter\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragEnterEvent\&quot;},\n\t\t{name: \&quot;dragover\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragOverEvent\&quot;},\n\t\t{name: \&quot;dragleave\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragLeaveEvent\&quot;},\n\t\t{name: \&quot;drop\&quot;, handlerObject: this, handlerMethod: \&quot;handleDropEvent\&quot;}\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\t$tw.utils.removeClass(this.domNodes[0],\&quot;tc-dragover\&quot;);\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 = event.ctrlKey &amp;&amp; ! event.shiftKey ? \&quot;ctrl\&quot; : event.shiftKey &amp;&amp; !event.ctrlKey ? \&quot;shift\&quot; : \n\t\t\t\tevent.ctrlKey &amp;&amp; event.shiftKey ? \&quot;ctrl-shift\&quot; : \&quot;normal\&quot; ;\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.droppableClass = 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*/\nDroppableWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\&quot;class\&quot;] || changedAttributes.tag) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.droppable = DroppableWidget;\n\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 = \&quot;tc-dropzone\&quot;;\n\t// Add event handlers\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \&quot;dragenter\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragEnterEvent\&quot;},\n\t\t{name: \&quot;dragover\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragOverEvent\&quot;},\n\t\t{name: \&quot;dragleave\&quot;, handlerObject: this, handlerMethod: \&quot;handleDragLeaveEvent\&quot;},\n\t\t{name: \&quot;drop\&quot;, handlerObject: this, handlerMethod: \&quot;handleDropEvent\&quot;},\n\t\t{name: \&quot;paste\&quot;, handlerObject: this, handlerMethod: \&quot;handlePasteEvent\&quot;}\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.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)});\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)});\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])});\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.dropzoneDeserializer = this.getAttribute(\&quot;deserializer\&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\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;;\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// Construct the child widgets\n\tthis.makeChildWidgets([{\n\t\ttype: \&quot;transclude\&quot;,\n\t\tattributes: {\n\t\t\ttiddler: {type: \&quot;string\&quot;, value: BINARY_WARNING_MESSAGE}\n\t\t}\n\t}]);\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\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\tcurrImage.src = \&quot;data:\&quot; + tiddler.fields.type + \&quot;;base64,\&quot; + tiddler.fields.text;\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);\n\tif(tiddler) {\n\t\t// data URIs look like \&quot;data:&lt;type&gt;;base64,&lt;text&gt;\&quot;\n\t\tvar dataURL = this.canvasDomNode.toDataURL(tiddler.fields.type),\n\t\t\tposColon = dataURL.indexOf(\&quot;:\&quot;),\n\t\t\tposSemiColon = dataURL.indexOf(\&quot;;\&quot;),\n\t\t\tposComma = dataURL.indexOf(\&quot;,\&quot;),\n\t\t\ttype = dataURL.substring(posColon+1,posSemiColon),\n\t\t\ttext = dataURL.substring(posComma+1);\n\t\tvar update = {type: type, text: text};\n\t\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getModificationFields(),tiddler,update,this.wiki.getCreationFields()));\n\t}\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};\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};\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/*\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;]) {\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\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: {\n\t\t\ttiddler: {type: \&quot;string\&quot;, value: this.editTitle},\n\t\t\tfield: {type: \&quot;string\&quot;, value: this.editField},\n\t\t\tindex: {type: \&quot;string\&quot;, value: this.editIndex},\n\t\t\t\&quot;class\&quot;: {type: \&quot;string\&quot;, value: this.editClass},\n\t\t\t\&quot;placeholder\&quot;: {type: \&quot;string\&quot;, value: this.editPlaceholder}\n\t\t},\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 || (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);\t\t\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\tthis.execute();\n\t// Neuter blacklisted elements\n\tvar tag = this.parseTreeNode.tag;\n\tif($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {\n\t\ttag = \&quot;safe-\&quot; + 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(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\ttag = \&quot;h\&quot; + headingLevel;\n\t}\n\t// Create the DOM node\n\tvar domNode = this.document.createElementNS(this.namespace,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/*\nCompute the internal state of the widget\n*/\nElementWidget.prototype.execute = function() {\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.parseTreeNode.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// 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*/\nElementWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes(),\n\t\thasChangedAttributes = $tw.utils.count(changedAttributes) &gt; 0;\n\tif(hasChangedAttributes) {\n\t\t// Update our attributes\n\t\tthis.assignAttributes(this.domNodes[0],{excludeEventAttributes: true});\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.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/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.exclude = this.getAttribute(\&quot;exclude\&quot;);\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\t// Get the exclusion list\n\tvar exclude;\n\tif(this.exclude) {\n\t\texclude = this.exclude.split(\&quot; \&quot;);\n\t} else {\n\t\texclude = [\&quot;text\&quot;]; \n\t}\n\t// Compose the template\n\tvar text = [];\n\tif(this.template &amp;&amp; tiddler) {\n\t\tvar fields = [];\n\t\tfor(var fieldName in tiddler.fields) {\n\t\t\tif(exclude.indexOf(fieldName) === -1) {\n\t\t\t\tfields.push(fieldName);\n\t\t\t}\n\t\t}\n\t\tfields.sort();\n\t\tfor(var f=0; f&lt;fields.length; f++) {\n\t\t\tfieldName = fields[f];\n\t\t\tif(exclude.indexOf(fieldName) === -1) {\n\t\t\t\tvar row = this.template,\n\t\t\t\t\tvalue = tiddler.getFieldString(fieldName);\n\t\t\t\tif(this.stripTitlePrefix &amp;&amp; fieldName === \&quot;title\&quot;) {\n\t\t\t\t\tvar reStrip = /^\\{[^\\}]+\\}(.+)/mg,\n\t\t\t\t\t\treMatch = reStrip.exec(value);\n\t\t\t\t\tif(reMatch) {\n\t\t\t\t\t\tvalue = reMatch[1];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trow = $tw.utils.replaceString(row,\&quot;$name$\&quot;,fieldName);\n\t\t\t\trow = $tw.utils.replaceString(row,\&quot;$value$\&quot;,value);\n\t\t\t\trow = $tw.utils.replaceString(row,\&quot;$encoded_value$\&quot;,$tw.utils.htmlEncode(value));\n\t\t\t\ttext.push(row);\n\t\t\t}\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 || changedAttributes.stripTitlePrefix || changedTiddlers[this.tiddlerTitle]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\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 self = this;\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\tvar widgetStackStart,widgetStackEnd;\n\tfunction addWidgetNode(widgetNode) {\n\t\tif(widgetNode) {\n\t\t\tif(!widgetStackStart &amp;&amp; !widgetStackEnd) {\n\t\t\t\twidgetStackStart = widgetNode;\n\t\t\t\twidgetStackEnd = widgetNode;\n\t\t\t} else {\n\t\t\t\twidgetStackEnd.children = [widgetNode];\n\t\t\t\twidgetStackEnd = widgetNode;\n\t\t\t}\n\t\t}\n\t}\n\t$tw.utils.each(this.tiddlerList,function(title) {\n\t\tvar parser = self.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\taddWidgetNode({\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\tparseTreeNode = parseTreeNode.children[0];\n\t\t\t}\n\t\t} \n\t});\n\t// Add our own children to the end of the pile\n\tvar parseTreeNodes;\n\tif(widgetStackStart &amp;&amp; widgetStackEnd) {\n\t\tparseTreeNodes = [widgetStackStart];\n\t\twidgetStackEnd.children = this.parseTreeNode.children;\n\t} else {\n\t\tparseTreeNodes = this.parseTreeNode.children;\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*/\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\tself.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\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\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;);\n\tthis.message = this.getAttribute(\&quot;message\&quot;);\n\tthis.param = this.getAttribute(\&quot;param\&quot;);\n\tthis.key = this.getAttribute(\&quot;key\&quot;);\n\tthis.tag = this.getAttribute(\&quot;tag\&quot;);\n\tthis.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);\n\tthis[\&quot;class\&quot;] = this.getAttribute(\&quot;class\&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 domNode = this.document.createElement(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\tdomNode.setAttribute(\&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});\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\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*/\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\tthis.invokeActionString(this.catchActions,this,event,{navigateTo: event.navigateTo});\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 emptyMessage = this.getAttribute(\&quot;emptyMessage\&quot;,\&quot;\&quot;),\n\t\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/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\tvar parser = this.wiki.parseText(this.parseType,text,\n\t\t\t\t\t\t\t{parseAsInline: !this.parseTreeNode.isBlock});\n\t\tparseTreeNodes = 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 {\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\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\tvar storyTiddler = this.wiki.getTiddler(this.storyTitle);\n\tthis.wiki.addTiddler(new $tw.Tiddler(\n\t\t{title: this.storyTitle},\n\t\tstoryTiddler,\n\t\t{list: storyList}\n\t));\n};\n\nNavigatorWidget.prototype.removeTitleFromStory = function(storyList,title) {\n\tvar p = storyList.indexOf(title);\n\twhile(p !== -1) {\n\t\tstoryList.splice(p,1);\n\t\tp = storyList.indexOf(title);\n\t}\n};\n\nNavigatorWidget.prototype.replaceFirstTitleInStory = function(storyList,oldTitle,newTitle) {\n\tvar pos = storyList.indexOf(oldTitle);\n\tif(pos !== -1) {\n\t\tstoryList[pos] = newTitle;\n\t\tdo {\n\t\t\tpos = storyList.indexOf(oldTitle,pos + 1);\n\t\t\tif(pos !== -1) {\n\t\t\t\tstoryList.splice(pos,1);\n\t\t\t}\n\t\t} while(pos !== -1);\n\t} else {\n\t\tstoryList.splice(0,0,newTitle);\n\t}\n};\n\nNavigatorWidget.prototype.addToStory = function(title,fromTitle) {\n\tthis.wiki.addToStory(title,fromTitle,this.storyTitle,{openLinkFromInsideRiver: this.getAttribute(\&quot;openLinkFromInsideRiver\&quot;,\&quot;top\&quot;),openLinkFromOutsideRiver: this.getAttribute(\&quot;openLinkFromOutsideRiver\&quot;,\&quot;top\&quot;)});\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.wiki.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\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\tvar c = 0,\n\t\tdraftTitle,\n\t\tusername = this.wiki.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.wiki.tiddlerExists(draftTitle));\n\treturn draftTitle;\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);\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)) {\nconsole.log(\&quot;Relinking '\&quot; + draftOf + \&quot;' to '\&quot; + draftTitle + \&quot;'\&quot;);\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.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.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 importTiddler = this.wiki.getTiddler(IMPORT_TITLE),\n\t\timportData = this.wiki.getTiddlerData(IMPORT_TITLE,{}),\n\t\tnewFields = new Object({\n\t\t\ttitle: IMPORT_TITLE,\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}\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\tif(this.getVariable(\&quot;tv-auto-open-on-import\&quot;) !== \&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.indexOf(IMPORT_TITLE) === -1) {\n\t\t\tstoryList.unshift(IMPORT_TITLE);\n\t\t}\n\t\t// And to history\n\t\thistory.push(IMPORT_TITLE);\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\tvar tiddler = new $tw.Tiddler(tiddlerFields);\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; + tiddlerFields.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;\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\tevent = $tw.hooks.invokeHook(\&quot;th-renaming-tiddler\&quot;, event);\n\tvar paramObject = event.paramObject || {},\n\t\tfrom = paramObject.from || event.tiddlerTitle,\n\t\tto = paramObject.to;\n\t$tw.wiki.renameTiddler(from,to);\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;\n\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\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};\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\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(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes[\&quot;class\&quot;]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar refreshed = false;\n\t\tif(changedTiddlers[this.radioTitle]) {\n\t\t\tthis.inputDomNode.checked = this.getValue() === this.radioValue;\n\t\t\trefreshed = true;\n\t\t}\n\t\treturn this.refreshChildren(changedTiddlers) || refreshed;\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\tthis.inputDomNode.value = this.getValue();\n\n\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name: \&quot;input\&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.inputDomNode,nextSibling);\n\tthis.domNodes.push(this.inputDomNode);\n};\n\nRangeWidget.prototype.getValue = function() {\n\tvar tiddler = this.wiki.getTiddler(this.tiddlerTitle),\n\t\tvalue = this.defaultValue;\n\tif(tiddler) {\n\t\tif($tw.utils.hop(tiddler.fields,this.tiddlerField)) {\n\t\t\tvalue = tiddler.fields[this.tiddlerField] || \&quot;\&quot;;\n\t\t} else {\n\t\t\tvalue = this.defaultValue || \&quot;\&quot;;\n\t\t}\n\t}\n\treturn value;\n};\n\nRangeWidget.prototype.handleChangeEvent = function(event) {\n\tthis.wiki.setText(this.tiddlerTitle ,this.tiddlerField, null,this.inputDomNode.value);\n};\n\n/*\nCompute the internal state of the widget\n*/\nRangeWidget.prototype.execute = function() {\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;);\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;);\n\tthis.elementClass = this.getAttribute(\&quot;class\&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(changedAttributes.tiddler || changedAttributes.field || changedAttributes['min'] || changedAttributes['max'] || changedAttributes['increment'] || changedAttributes[\&quot;default\&quot;] || changedAttributes[\&quot;class\&quot;]) {\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\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.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\tvar classes = this[\&quot;class\&quot;].split(\&quot; \&quot;) || [];\n\tclasses.push(\&quot;tc-reveal\&quot;);\n\tdomNode.className = classes.join(\&quot; \&quot;);\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\tswitch(this.position) {\n\t\tcase \&quot;left\&quot;:\n\t\t\tdomNode.style.left = Math.max(0, this.popup.left - domNode.offsetWidth) + \&quot;px\&quot;;\n\t\t\tdomNode.style.top = this.popup.top + \&quot;px\&quot;;\n\t\t\tbreak;\n\t\tcase \&quot;above\&quot;:\n\t\t\tdomNode.style.left = this.popup.left + \&quot;px\&quot;;\n\t\t\tdomNode.style.top = Math.max(0, this.popup.top - domNode.offsetHeight) + \&quot;px\&quot;;\n\t\t\tbreak;\n\t\tcase \&quot;aboveright\&quot;:\n\t\t\tdomNode.style.left = (this.popup.left + this.popup.width) + \&quot;px\&quot;;\n\t\t\tdomNode.style.top = Math.max(0, this.popup.top + this.popup.height - domNode.offsetHeight) + \&quot;px\&quot;;\n\t\t\tbreak;\n\t\tcase \&quot;right\&quot;:\n\t\t\tdomNode.style.left = (this.popup.left + this.popup.width) + \&quot;px\&quot;;\n\t\t\tdomNode.style.top = this.popup.top + \&quot;px\&quot;;\n\t\t\tbreak;\n\t\tcase \&quot;belowleft\&quot;:\n\t\t\tdomNode.style.left = Math.max(0, this.popup.left + this.popup.width - domNode.offsetWidth) + \&quot;px\&quot;;\n\t\t\tdomNode.style.top = (this.popup.top + this.popup.height) + \&quot;px\&quot;;\n\t\t\tbreak;\n\t\tdefault: // Below\n\t\t\tdomNode.style.left = this.popup.left + \&quot;px\&quot;;\n\t\t\tdomNode.style.top = (this.popup.top + this.popup.height) + \&quot;px\&quot;;\n\t\t\tbreak;\n\t}\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[\&quot;class\&quot;] = this.getAttribute(\&quot;class\&quot;,\&quot;\&quot;);\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\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 = this.stateTitle ? (this.stateField ? this.wiki.getTiddler(this.stateTitle).getFieldString(this.stateField) :\n\t\t(this.stateIndex ? this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex) :\n\t\t\tthis.wiki.getTiddlerText(this.stateTitle))) || this[\&quot;default\&quot;] || this.getVariable(\&quot;currentTiddler\&quot;) :\n\t\t(this.stateTiddlerTitle ? this.wiki.getTextReference(this.state,this[\&quot;default\&quot;],this.getVariable(\&quot;currentTiddler\&quot;)) : this[\&quot;default\&quot;]);\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.compareStateText(state) == 0);\n\t\t\tbreak;\n\t\tcase \&quot;nomatch\&quot;:\n\t\t\tthis.isOpen = !(this.compareStateText(state) == 0);\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\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[\&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 || (this.stateTiddlerTitle &amp;&amp; changedTiddlers[this.stateTiddlerTitle])) {\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}\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\tthis.scrollIntoView(event.target);\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\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(window,drawFrame);\n\t\t\t}\n\t\t};\n\t\tdrawFrame();\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\tif(values.indexOf(select.children[i].value) != -1) {\n\t\t\t\tselect.children[i].selected = true;\n\t\t\t}\n\t\t}\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\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\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) {\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\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\tthis.setVariable(\&quot;transclusion\&quot;,recursionMarker);\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\tif(arguments.length &gt; 0) {\n\t\tthis.initialise(parseTreeNode,options);\n\t}\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\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\tWidget.prototype.widgetClasses = $tw.modules.applyMethods(\&quot;widget\&quot;);\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\tvalue = variable.value,\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};\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\t$tw.utils.each(this.children,function(childWidget) {\n\t\tchildWidget.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\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 self = this,\n\t\trefreshed = false;\n\t$tw.utils.each(this.children,function(childWidget) {\n\t\trefreshed = childWidget.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\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 || []).slice(0),\n\t\t\t\t\tlist = (tiddler.fields.list || []).slice(0),\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/*\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\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(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 if($tw.utils.isDate(a) &amp;&amp; $tw.utils.isDate(b)) {\n\t\t\treturn isDescending ? b - a : a - b;\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 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\t// Count up the links\n\t\tvar links = [],\n\t\t\tcheckParseTree = function(parseTree) {\n\t\t\t\tfor(var t=0; t&lt;parseTree.length; t++) {\n\t\t\t\t\tvar parseTreeNode = parseTree[t];\n\t\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\t\tvar value = parseTreeNode.attributes.to.value;\n\t\t\t\t\t\tif(links.indexOf(value) === -1) {\n\t\t\t\t\t\t\tlinks.push(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(parseTreeNode.children) {\n\t\t\t\t\t\tcheckParseTree(parseTreeNode.children);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\tif(parser) {\n\t\t\tcheckParseTree(parser.tree);\n\t\t}\n\t\treturn links;\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\tbacklinks = [];\n\tthis.forEachTiddler(function(title,tiddler) {\n\t\tvar links = self.getTiddlerLinks(title);\n\t\tif(links.indexOf(targetTitle) !== -1) {\n\t\t\tbacklinks.push(title);\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\tvar self = this;\n\treturn this.getGlobalCache(\&quot;taglist-\&quot; + tag,function() {\n\t\tvar tagmap = self.getTagMap();\n\t\treturn self.sortByList(tagmap[tag],tag);\n\t});\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\tfunction replaceItem(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\treplaceItem(beforeTitle);\n\t\t\t\t\tnewPos = titles.indexOf(beforeTitle);\n\t\t\t\t} else if(afterTitle) {\n\t\t\t\t\treplaceItem(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// We get the currPos //after// figuring out the newPos, because recursive replaceItem calls might alter title's currPos\n\t\t\t\tvar currPos = titles.indexOf(title);\n\t\t\t\tif(newPos === -1) {\n\t\t\t\t\tnewPos = currPos;\n\t\t\t\t}\n\t\t\t\tif(currPos &gt;= 0 &amp;&amp; newPos !== currPos) {\n\t\t\t\t\ttitles.splice(currPos,1);\n\t\t\t\t\tif(newPos &gt;= currPos) {\n\t\t\t\t\t\tnewPos--;\n\t\t\t\t\t}\n\t\t\t\t\ttitles.splice(newPos,0,title);\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\treplaceItem(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) {\n\tvar tiddlers = this.filterTiddlers(filter),\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,$tw.config.preferences.jsonSpaces);\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.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\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\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 $tw.wiki.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\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\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; + $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; + 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; + $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.fields.text !== undefined) {\n\t\t// Just return the text if we've got it\n\t\treturn tiddler.fields.text;\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;, type: type};\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);\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};\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})();\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/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/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/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\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\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;\\define renderContent()\n&lt;$text text=&lt;&lt;csvtiddlers filter:\&quot;\&quot;\&quot;$(exportFilter)$\&quot;\&quot;\&quot; format:\&quot;quoted-comma-sep\&quot;&gt;&gt;/&gt;\n\\end\n&lt;&lt;renderContent&gt;&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;\\define renderContent()\n&lt;$text text=&lt;&lt;jsontiddlers filter:\&quot;\&quot;\&quot;$(exportFilter)$\&quot;\&quot;\&quot;&gt;&gt;/&gt;\n\\end\n&lt;&lt;renderContent&gt;&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\&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;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;\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/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$tw.preloadTiddlerArray([{\n\ttitle: \&quot;$:/config/SaveWikiButton/Template\&quot;,\n\ttext: \&quot;$:/core/save/all-external-js\&quot;\n}]);\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&gt;\n&lt;head&gt;\n&lt;meta http-equiv=\&quot;X-UA-Compatible\&quot; content=\&quot;IE=Edge\&quot;&gt;\n&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html;charset=utf-8\&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;!--~~ 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;/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-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;\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/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{{$:/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{{$:/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;&lt;$set name=\&quot;themeTitle\&quot; value={{$:/view}}&gt;\n\n&lt;$set name=\&quot;tempCurrentTiddler\&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;\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;$set name=\&quot;currentTiddler\&quot; value=&lt;&lt;tempCurrentTiddler&gt;&gt;&gt;\n\n&lt;$importvariables filter=\&quot;[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\&quot;&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;/$importvariables&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\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&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\&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`&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;/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;\\rules only filteredtranscludeinline transcludeinline\n&lt;!doctype html&gt;\n{{$:/core/templates/MOTW.html}}&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;!--~~ 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;!--~~ 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{{{ [all[shadows+tiddlers]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&lt;$vars imageType={{$:/config/NewImageType}}&gt;\n&lt;$action-sendmessage $message=\&quot;tm-new-tiddler\&quot; type=&lt;&lt;get-type&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;&lt;$vars journalTitleTemplate={{$:/config/NewJournal/Title}} journalTags={{$:/config/NewJournal/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;journalTags&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;journalTags&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;&lt;$action-sendmessage $message=\&quot;tm-new-tiddler\&quot;/&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&lt;&lt;lingo Filter/Hint&gt;&gt;\n\n&lt;div class=\&quot;tc-search tc-advanced-search\&quot;&gt;\n&lt;$edit-text tiddler=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;search\&quot; tag=\&quot;input\&quot;/&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}} template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&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;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&quot; $field=\&quot;text\&quot; $value=\&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 to=\&quot;$:/temp/advancedsearch\&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;text&quot;: &quot;\\define lingo-base() $:/language/Search/\n&lt;$linkcatcher to=\&quot;$:/temp/advancedsearch\&quot;&gt;\n\n&lt;&lt;lingo Shadows/Hint&gt;&gt;\n\n&lt;div class=\&quot;tc-search\&quot;&gt;\n&lt;$edit-text tiddler=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;search\&quot; tag=\&quot;input\&quot;/&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;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&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&gt;\n\n&lt;/$linkcatcher&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]]\&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]]\&quot; template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&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&lt;$linkcatcher to=\&quot;$:/temp/advancedsearch\&quot;&gt;\n\n&lt;&lt;lingo Standard/Hint&gt;&gt;\n\n&lt;div class=\&quot;tc-search\&quot;&gt;\n&lt;$edit-text tiddler=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;search\&quot; tag=\&quot;input\&quot;/&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;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&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&gt;\n\n&lt;/$linkcatcher&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;$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;/$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;text&quot;: &quot;\\define lingo-base() $:/language/Search/\n&lt;$linkcatcher to=\&quot;$:/temp/advancedsearch\&quot;&gt;\n\n&lt;&lt;lingo System/Hint&gt;&gt;\n\n&lt;div class=\&quot;tc-search\&quot;&gt;\n&lt;$edit-text tiddler=\&quot;$:/temp/advancedsearch\&quot; type=\&quot;search\&quot; tag=\&quot;input\&quot;/&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;$action-setfield $tiddler=\&quot;$:/temp/advancedsearch\&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&gt;\n\n&lt;/$linkcatcher&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]]\&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]]\&quot; template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&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;&lt;tabs \&quot;[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]\&quot; \&quot;$:/core/ui/AdvancedSearch/System\&quot;&gt;&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/delete-button}}&lt;/$button&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-alert-subtitle\&quot;&gt;\n&lt;$view field=\&quot;component\&quot;/&gt; - &lt;$view field=\&quot;modified\&quot; format=\&quot;date\&quot; template=\&quot;0hh:0mm:0ss DD MM YYYY\&quot;/&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;/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;div class=\&quot;tc-binary-warning\&quot;&gt;\n\n&lt;&lt;lingo Prompt&gt;&gt;\n\n&lt;/div&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-small-icon\&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/right-arrow}}\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/down-arrow}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-plugin-info-chunk\&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\&quot;&gt;\n&lt;h1&gt;\n''&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;&lt;tabs \&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Advanced]!has[draft.of]]\&quot; \&quot;$:/core/ui/ControlPanel/TiddlerFields\&quot;&gt;&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;&lt;tabs \&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Appearance]!has[draft.of]]\&quot; \&quot;$:/core/ui/ControlPanel/Theme\&quot;&gt;&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;$:/state/tab--1498284803\&quot; $value=\&quot;$:/core/ui/AdvancedSearch/Filter\&quot;/&gt;\n&lt;$action-navigate $to=\&quot;$:/AdvancedSearch\&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/NewJournal/Tags\&quot;&gt;&lt;&lt;lingo NewJournal/Tags/Prompt&gt;&gt;&lt;/$link&gt; |&lt;$edit-text tiddler=\&quot;$:/config/NewJournal/Tags\&quot; default=\&quot;\&quot; tag=\&quot;input\&quot;/&gt; |\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;&lt;tabs \&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Info]!has[draft.of]]\&quot; \&quot;$:/core/ui/ControlPanel/Basics\&quot;&gt;&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}} 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=&lt;&lt;lingo Remove/Hint&gt;&gt;&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&amp;times;\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;prefix[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-button()\n&lt;$button&gt;\n&lt;$action-sendmessage $message=\&quot;tm-load-plugin-from-library\&quot; url={{!!url}} title={{$(assetInfo)$!!original-title}}/&gt;\n&lt;$list filter=\&quot;[&lt;assetInfo&gt;get[original-title]get[version]]\&quot; variable=\&quot;installedVersion\&quot; emptyMessage=\&quot;\&quot;\&quot;{{$:/language/ControlPanel/Plugins/Install/Caption}}\&quot;\&quot;\&quot;&gt;\n{{$:/language/ControlPanel/Plugins/Reinstall/Caption}}\n&lt;/$list&gt;\n&lt;/$button&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-small-icon\&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/right-arrow}}\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/down-arrow}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;div class=\&quot;tc-plugin-info-chunk\&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\&quot;&gt;\n&lt;h1&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;/div&gt;\n&lt;div class=\&quot;tc-plugin-info-chunk\&quot;&gt;\n&lt;&lt;install-plugin-button&gt;&gt;\n&lt;/div&gt;\n&lt;/div&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;div class=\&quot;tc-plugin-info-dropdown-message\&quot;&gt;\n&lt;$list filter=\&quot;[&lt;assetInfo&gt;get[original-title]get[version]]\&quot; variable=\&quot;installedVersion\&quot; emptyMessage=\&quot;\&quot;\&quot;{{$:/language/ControlPanel/Plugins/NotInstalled/Hint}}\&quot;\&quot;\&quot;&gt;\n&lt;em&gt;\n{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}\n&lt;/em&gt;\n&lt;/$list&gt;\n&lt;/div&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;/div&gt;\n&lt;/$reveal&gt;\n&lt;/$set&gt;\n\\end\n\n\\define load-plugin-library-button()\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\\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{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[description]]\&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\\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;&lt;tabs \&quot;[[$:/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;/$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;$list filter=\&quot;[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]\&quot;&gt;\n&lt;div class=\&quot;tc-plugin-library\&quot;&gt;\n\n!! &lt;$link&gt;&lt;$transclude field=\&quot;caption\&quot;&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$transclude&gt;&lt;/$link&gt;\n\n//&lt;$view field=\&quot;url\&quot;/&gt;//\n\n&lt;$transclude/&gt;\n\n&lt;$set name=PluginLibraryURL value={{!!url}}&gt;\n&lt;&lt;close-library-button&gt;&gt;\n&lt;/$set&gt;\n\n&lt;&lt;display-server-connection&gt;&gt;\n&lt;/div&gt;\n&lt;/$list&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{{$:/snippets/paletteeditor}}\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/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\&quot; style=\&quot;background:blue;\&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[description]]\&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;&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;\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/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 backupURL()\nhttp://$(userName)$.tiddlyspot.com/backup/\n\\end\n\\define backupLink()\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;backupURL&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;&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;backupLink&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;&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;&lt;tabs \&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Saving]!has[draft.of]]\&quot; \&quot;$:/core/ui/ControlPanel/Saving/General\&quot;&gt;&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;&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;\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;&lt;tabs \&quot;[all[shadows+tiddlers]tag[$:/tags/ControlPanel]!has[draft.of]]\&quot; \&quot;$:/core/ui/ControlPanel/Info\&quot;&gt;&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;text&quot;: &quot;\\define searchResultList()\n//&lt;small&gt;{{$:/language/Search/Matches/Title}}&lt;/small&gt;//\n\n&lt;$list filter=\&quot;[!is[system]search:title{$(searchTiddler)$}sort[title]limit[250]]\&quot; template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&gt;\n\n//&lt;small&gt;{{$:/language/Search/Matches/All}}&lt;/small&gt;//\n\n&lt;$list filter=\&quot;[!is[system]search{$(searchTiddler)$}sort[title]limit[250]]\&quot; template=\&quot;$:/core/ui/ListItemTemplate\&quot;/&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;&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\&quot;\n placeholder={{$:/language/EditTemplate/Body/Placeholder}}\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;&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 new-field()\n&lt;$vars name={{$:/temp/newfieldname}}&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; text=\&quot;\&quot; default=&lt;&lt;name&gt;&gt;&gt;\n&lt;$button&gt;\n&lt;$action-sendmessage $message=\&quot;tm-add-field\&quot;\n$name=&lt;&lt;name&gt;&gt;\n$value={{$:/temp/newfieldvalue}}/&gt;\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/newfieldname\&quot;/&gt;\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/newfieldvalue\&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\n&lt;div class=\&quot;tc-edit-fields\&quot;&gt;\n&lt;table class=\&quot;tc-edit-fields\&quot;&gt;\n&lt;tbody&gt;\n&lt;$list filter=\&quot;[all[current]fields[]] +[sort[title]]\&quot; variable=\&quot;currentField\&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;$edit-text tiddler=&lt;&lt;currentTiddler&gt;&gt; field=&lt;&lt;currentField&gt;&gt; placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/&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;\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\&quot;&gt;\n&lt;&lt;lingo Fields/Add/Prompt&gt;&gt;\n&lt;/em&gt;\n&lt;span class=\&quot;tc-edit-field-add-name\&quot;&gt;\n&lt;$edit-text tiddler=\&quot;$:/temp/newfieldname\&quot; 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;/&gt;\n&lt;/span&gt;\n&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;\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=\&quot;$:/temp/newfieldname\&quot;&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;$list filter=\&quot;[!is[shadow]!is[system]fields[]search:title{$:/temp/newfieldname}sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type\&quot; variable=\&quot;currentField\&quot;&gt;\n&lt;$link to=&lt;&lt;currentField&gt;&gt;&gt;\n&lt;&lt;currentField&gt;&gt;\n&lt;/$link&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{$:/temp/newfieldname}sort[]] -[!is[shadow]!is[system]fields[]]\&quot; variable=\&quot;currentField\&quot;&gt;\n&lt;$link to=&lt;&lt;currentField&gt;&gt;&gt;\n&lt;&lt;currentField&gt;&gt;\n&lt;/$link&gt;\n&lt;/$list&gt;\n&lt;/$linkcatcher&gt;\n&lt;/$set&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;span class=\&quot;tc-edit-field-add-value\&quot;&gt;\n&lt;$edit-text tiddler=\&quot;$:/temp/newfieldvalue\&quot; tag=\&quot;input\&quot; default=\&quot;\&quot; placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class=\&quot;tc-edit-texteditor\&quot;/&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;/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)\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;&amp;nbsp;&lt;$view field=\&quot;title\&quot; format=\&quot;text\&quot; /&gt;\n&lt;$button message=\&quot;tm-remove-tag\&quot; param={{!!title}} class=\&quot;tc-btn-invisible tc-remove-tag-button\&quot;&gt;&amp;times;&lt;/$button&gt;\n&lt;/span&gt;\n&lt;/$vars&gt;\n\\end\n\n\\define tag-body(colour,palette,icon)\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;/&gt;\n\\end\n\n\\define tag-picker-actions()\n&lt;$action-listops\n\t$tiddler=&lt;&lt;currentTiddler&gt;&gt;\n\t$field=\&quot;tags\&quot;\n\t$subfilter=\&quot;[&lt;tag&gt;] [all[current]tags[]]\&quot;\n/&gt;\n\\end\n\n&lt;div class=\&quot;tc-edit-tags\&quot;&gt;\n&lt;$fieldmangler&gt;\n&lt;$list filter=\&quot;[all[current]tags[]sort[title]]\&quot; storyview=\&quot;pop\&quot;&gt;\n&lt;$macrocall $name=\&quot;tag-body\&quot; colour={{!!color}} palette={{$:/palette}} icon={{!!icon}}/&gt;\n&lt;/$list&gt;\n&lt;/$fieldmangler&gt;\n&lt;$macrocall $name=\&quot;tag-picker\&quot; actions=&lt;&lt;tag-picker-actions&gt;&gt;/&gt;\n&lt;/div&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=\&quot;true\&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;$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;/$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;text&quot;: &quot;\\define lingo-base() $:/language/EditTemplate/\n&lt;div class=\&quot;tc-type-selector\&quot;&gt;&lt;$fieldmangler&gt;\n&lt;em class=\&quot;tc-edit\&quot;&gt;&lt;&lt;lingo Type/Prompt&gt;&gt;&lt;/em&gt; &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-popup-handle\&quot;/&gt; &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; &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;\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;$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;\n&lt;/$list&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&quot;
},
&quot;$:/core/ui/EditTemplate&quot;: {
&quot;title&quot;: &quot;$:/core/ui/EditTemplate&quot;,
&quot;text&quot;: &quot;\\define actions()\n&lt;$action-sendmessage $message=\&quot;tm-add-tag\&quot; $param={{$:/temp/NewTagName}}/&gt;\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/NewTagName\&quot;/&gt;\n&lt;$action-sendmessage $message=\&quot;tm-add-field\&quot; $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/&gt;\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/newfieldname\&quot;/&gt;\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/newfieldvalue\&quot;/&gt;\n&lt;$action-sendmessage $message=\&quot;tm-save-tiddler\&quot;/&gt;\n\\end\n\\define frame-classes()\ntc-tiddler-frame tc-tiddler-edit-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$\n\\end\n&lt;div class=&lt;&lt;frame-classes&gt;&gt; data-tiddler-title=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;$fieldmangler&gt;\n&lt;$set name=\&quot;storyTiddler\&quot; value=&lt;&lt;currentTiddler&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;((cancel-edit-tiddler))\&quot; message=\&quot;tm-cancel-tiddler\&quot;&gt;\n&lt;$keyboard key=\&quot;((save-tiddler))\&quot; actions=&lt;&lt;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;/$set&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;&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;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;prefix[yes]]\&quot;&gt;\n{{$:/core/images/cancel-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;&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;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;prefix[yes]]\&quot;&gt;\n{{$:/core/images/delete-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;&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;$action-sendmessage $message=\&quot;tm-add-tag\&quot; $param={{$:/temp/NewTagName}}/&gt;\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/NewTagName\&quot;/&gt;\n&lt;$action-sendmessage $message=\&quot;tm-add-field\&quot; $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/&gt;\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/newfieldname\&quot;/&gt;\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/newfieldvalue\&quot;/&gt;\n&lt;$action-sendmessage $message=\&quot;tm-save-tiddler\&quot;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;prefix[yes]]\&quot;&gt;\n{{$:/core/images/done-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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&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]]&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/]] +[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]]&quot;,
&quot;dropdown&quot;: &quot;$:/core/ui/EditorToolbar/line-width-dropdown&quot;,
&quot;text&quot;: &quot;&lt;$text text={{$:/config/BitmapEditor/LineWidth}}/&gt;&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 $tiddler=&lt;&lt;dropdown-state&gt;&gt; /&gt;\n&lt;$action-deletetiddler $tiddler=&lt;&lt;searchTiddler&gt;&gt; /&gt;\n&lt;$action-deletetiddler $tiddler=&lt;&lt;linkTiddler&gt;&gt; /&gt;\n\\end\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 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; &gt;\n\n&lt;$vars linkTiddler=&lt;&lt;searchTiddler&gt;&gt;&gt;\n&lt;$keyboard key=\&quot;ENTER\&quot; actions=&lt;&lt;add-link-actions&gt;&gt;&gt;\n&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;\n&lt;$reveal tag=\&quot;span\&quot; state=&lt;&lt;searchTiddler&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;$action-setfield $tiddler=&lt;&lt;searchTiddler&gt;&gt; text=\&quot;\&quot; /&gt;\n{{$:/core/images/close-button}}\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;/$keyboard&gt;\n&lt;/$vars&gt;\n\n&lt;$reveal tag=\&quot;div\&quot; state=&lt;&lt;searchTiddler&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{{$:/core/ui/SearchResults}}\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;&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]]&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]]&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]]&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]]&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;$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;$action-deletetiddler\n\t$tiddler=&lt;&lt;dropdown-state&gt;&gt;\n/&gt;\n\n&lt;$view 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; mode=\&quot;inline\&quot;/&gt;\n\n&lt;/$view&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/]] +[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/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()\nmessage-$(payloadTiddler)$\n\\end\n\n\\define selectionField()\nselection-$(payloadTiddler)$\n\\end\n\n\\define previewPopupState()\n$(currentTiddler)$!!popup-$(payloadTiddler)$\n\\end\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&gt;\n&lt;tbody&gt;\n&lt;tr&gt;\n&lt;th&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&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;/&gt;\n&lt;/td&gt;\n&lt;td&gt;\n&lt;$reveal type=\&quot;nomatch\&quot; stateTitle=&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; setTitle=&lt;&lt;previewPopupState&gt;&gt; setTo=\&quot;yes\&quot;&gt;\n{{$:/core/images/right-arrow}}&amp;nbsp;&lt;$text text=&lt;&lt;payloadTiddler&gt;&gt;/&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal type=\&quot;match\&quot; stateTitle=&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; setTitle=&lt;&lt;previewPopupState&gt;&gt; setTo=\&quot;no\&quot;&gt;\n{{$:/core/images/down-arrow}}&amp;nbsp;&lt;$text text=&lt;&lt;payloadTiddler&gt;&gt;/&gt;\n&lt;/$button&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;/td&gt;\n&lt;/tr&gt;\n&lt;tr&gt;\n&lt;td colspan=\&quot;3\&quot;&gt;\n&lt;$reveal type=\&quot;match\&quot; text=\&quot;yes\&quot; stateTitle=&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/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/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 to={{!!title}}&gt;\n&lt;$view field=\&quot;title\&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;\\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&lt;$action-listops\n\t$tiddler=&lt;&lt;currentTiddler&gt;&gt;\n\t$field=\&quot;tags\&quot;\n\t$subfilter=\&quot;[&lt;tag&gt;] [all[current]tags[]]\&quot;\n/&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;&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;$macrocall $name=\&quot;tag-picker\&quot; actions=&lt;&lt;tag-picker-actions&gt;&gt;/&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;&lt;tabs \&quot;[all[shadows+tiddlers]tag[$:/tags/MoreSideBar/Plugins]!has[draft.of]]\&quot; \&quot;$:/core/ui/MoreSideBar/Plugins/Plugins\&quot;&gt;&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;\\define control-panel-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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/advanced-search-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;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/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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/close-all-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;\\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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/options-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/locked-padlock}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/unlocked-padlock}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;prefix[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;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/full-screen-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/home-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/import-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;\\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;prefix[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;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;\\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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/list}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/down-arrow}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/new-image-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;\\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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/new-journal-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/new-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/palette}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/print-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/refresh-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/save-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;\\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;prefix[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;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;\\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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/tag-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/theme-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;&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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/timestamp-on}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/timestamp-off}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;prefix[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;prefix[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;\\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;$reveal type=\&quot;nomatch\&quot; state=&lt;&lt;config-title&gt;&gt; text=\&quot;hide\&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;/$reveal&gt;\n&lt;/$list&gt;\n&lt;/div&gt;\n\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;[has[plugin-type]haschanged[]!plugin-type[import]limit[1]]\&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;\\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;&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;&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=\&quot;$:/core/ui/ViewTemplate\&quot; editTemplate=\&quot;$:/core/ui/EditTemplate\&quot; 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;&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;&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;text&quot;: &quot;\\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;$set name=\&quot;tv-config-toolbar-icons\&quot; value={{$:/config/Toolbar/Icons}}&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-text\&quot; value={{$:/config/Toolbar/Text}}&gt;\n\n&lt;$set name=\&quot;tv-config-toolbar-class\&quot; value={{$:/config/Toolbar/ButtonClass}}&gt;\n\n&lt;$set name=\&quot;tv-show-missing-links\&quot; value={{$:/config/MissingLinks}}&gt;\n\n&lt;$set name=\&quot;storyviewTitle\&quot; value={{$:/view}}&gt;\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;$set name=\&quot;currentTiddler\&quot; value=\&quot;\&quot;&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&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;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&gt;\n\n&lt;/$set&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 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&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;\n&lt;$view field=\&quot;description\&quot;&gt;\n&lt;$view field=\&quot;title\&quot;/&gt;\n&lt;/$view&gt;\n&lt;/$link&gt;\n&lt;/div&gt;&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}}/&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\&quot; /&gt;\n&lt;/div&gt;&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=\&quot;$:/StoryList\&quot; $subfilter=\&quot;+[insertbefore:currentTiddler&lt;actionTiddler&gt;]\&quot;/&gt;\n\\end\n\n&lt;$list filter=\&quot;[list[$:/StoryList]]\&quot; history=\&quot;$:/HistoryList\&quot; storyview=\&quot;pop\&quot;&gt;\n&lt;div style=\&quot;position: relative;\&quot;&gt;\n&lt;$droppable actions=&lt;&lt;drop-actions&gt;&gt;&gt;\n&lt;div class=\&quot;tc-droppable-placeholder\&quot;&gt;\n&amp;nbsp;\n&lt;/div&gt;\n&lt;div&gt;\n&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;&amp;times;&lt;/$button&gt; &lt;$link to={{!!title}}&gt;&lt;$view field=\&quot;title\&quot;/&gt;&lt;/$link&gt;\n&lt;/div&gt;\n&lt;/$droppable&gt;\n&lt;/div&gt;\n&lt;/$list&gt;\n&lt;$tiddler tiddler=\&quot;\&quot;&gt;\n&lt;$droppable actions=&lt;&lt;drop-actions&gt;&gt;&gt;\n&lt;div class=\&quot;tc-droppable-placeholder\&quot;&gt;\n&amp;nbsp;\n&lt;/div&gt;\n&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;\n&lt;/$droppable&gt;\n&lt;/$tiddler&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;&lt;div class=\&quot;tc-sidebar-lists\&quot;&gt;\n\n&lt;$set name=\&quot;searchTiddler\&quot; value=\&quot;$:/temp/search\&quot;&gt;\n&lt;div class=\&quot;tc-search\&quot;&gt;\n&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;\n&lt;$reveal state=\&quot;$:/temp/search\&quot; 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;$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;&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;$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;[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]\&quot; variable=\&quot;listItem\&quot;&gt;\n&lt;$set name=\&quot;searchTerm\&quot; value={{{ [&lt;searchTiddler&gt;get[text]] }}}&gt;\n&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;\n{{$:/language/Search/Matches}}\n&lt;/$set&gt;\n&lt;/$set&gt;\n&lt;/$list&gt;\n&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal state=\&quot;$:/temp/search\&quot; 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=\&quot;$:/temp/search\&quot; 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;$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;\n\n{{$:/core/ui/SearchResults}}\n\n&lt;/$list&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$reveal&gt;\n\n&lt;/$set&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\&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; /&gt;\n\n&lt;/div&gt;\n&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;caption&quot;: &quot;{{$:/language/TagManager/Caption}}&quot;,
&quot;text&quot;: &quot;\\define lingo-base() $:/language/TagManager/\n\\define iconEditorTab(type)\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&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&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&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/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&lt;$transclude tiddler=&lt;&lt;listItem&gt;&gt;/&gt;\n\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;&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;$reveal state=\&quot;$:/state/sidebar\&quot; type=\&quot;nomatch\&quot; text=\&quot;no\&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\&quot;&gt;{{$:/core/images/chevron-right}}&lt;/$button&gt;\n&lt;/$reveal&gt;\n&lt;$reveal state=\&quot;$:/state/sidebar\&quot; type=\&quot;match\&quot; text=\&quot;no\&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\&quot;&gt;{{$:/core/images/chevron-left}}&lt;/$button&gt;\n&lt;/$reveal&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;$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&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;&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;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;/$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;\\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;span class=\&quot;tc-tiddler-title-icon\&quot; style=&lt;&lt;title-styles&gt;&gt;&gt;\n&lt;$transclude tiddler={{!!icon}}/&gt;\n&lt;/span&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 frame-classes()\ntc-tiddler-frame tc-tiddler-view-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$ $(tiddlerTagClasses)$ $(userClass)$\n\\end\n\\define folded-state()\n$:/state/folded/$(currentTiddler)$\n\\end\n&lt;$vars storyTiddler=&lt;&lt;currentTiddler&gt;&gt; tiddlerInfoState=&lt;&lt;qualify \&quot;$:/state/popup/tiddler-info\&quot;&gt;&gt; userClass={{!!class}}&gt;&lt;$tiddler tiddler=&lt;&lt;currentTiddler&gt;&gt;&gt;&lt;div data-tiddler-title=&lt;&lt;currentTiddler&gt;&gt; data-tags={{!!tags}} class=&lt;&lt;frame-classes&gt;&gt;&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;/$tiddler&gt;&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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/clone-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/close-others-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/close-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/edit-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[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;prefix[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;prefix[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;prefix[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;prefix[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;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/info-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/down-arrow}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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 newHereButtonTags()\n[[$(currentTiddler)$]]\n\\end\n\\define newHereButton()\n&lt;$button tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=&lt;&lt;tv-config-toolbar-class&gt;&gt;&gt;\n&lt;$action-sendmessage $message=\&quot;tm-new-tiddler\&quot; tags=&lt;&lt;newHereButtonTags&gt;&gt;/&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-icons&gt;prefix[yes]]\&quot;&gt;\n{{$:/core/images/new-here-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/new-journal-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;&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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/open-window}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/permalink-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/permaview-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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/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/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.19/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/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[]] -[[$:/HistoryList]] -[[$:/StoryList]] -[[$:/Import]] -[[$:/isEncrypted]] -[[$:/UploadName]] -[prefix[$:/state/]] -[prefix[$:/temp/]]&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/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/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/italic&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/italic&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Italic/Hint}}&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/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/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/underline&quot;: {
&quot;title&quot;: &quot;$:/config/ShortcutInfo/underline&quot;,
&quot;text&quot;: &quot;{{$:/language/Buttons/Underline/Hint}}&quot;
},
&quot;$:/config/SyncFilter&quot;: {
&quot;title&quot;: &quot;$:/config/SyncFilter&quot;,
&quot;text&quot;: &quot;[is[tiddler]] -[[$:/HistoryList]] -[[$:/Import]] -[[$:/isEncrypted]] -[prefix[$:/status/]] -[prefix[$:/state/]] -[prefix[$:/temp/]]&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/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-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/cancel-edit-tiddler&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/cancel-edit-tiddler&quot;,
&quot;text&quot;: &quot;escape&quot;
},
&quot;$:/config/shortcuts/excise&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/excise&quot;,
&quot;text&quot;: &quot;ctrl-E&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/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/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/transcludify&quot;: {
&quot;title&quot;: &quot;$:/config/shortcuts/transcludify&quot;,
&quot;text&quot;: &quot;alt-shift-T&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 swatchStyle()\nbackground-color: $(swatchColour)$;\n\\end\n\\define swatch()\n&lt;$set name=\&quot;swatchColour\&quot; value={{##$(colour)$}}\n&gt;&lt;div class=\&quot;tc-swatch\&quot; style=&lt;&lt;swatchStyle&gt;&gt; title=&lt;&lt;colour&gt;&gt;/&gt;&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;&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&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$}}/&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;div style=\&quot;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/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;prefix[yes]]\&quot;&gt;\n{{$:/core/images/export-button}}\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[&lt;tv-config-toolbar-text&gt;prefix[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;$list filter=\&quot;[all[shadows+tiddlers]tag[$:/tags/Exporter]]\&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=\&quot;\&quot;\&quot;$exportFilter$\&quot;\&quot;\&quot; 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;/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/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&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&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;&gt;\n&lt;div class=\&quot;tc-droppable-placeholder\&quot;&gt;\n&amp;nbsp;\n&lt;/div&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;/$type$&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;&gt;\n&lt;div class=\&quot;tc-droppable-placeholder\&quot;&gt;\n&amp;nbsp;\n&lt;/div&gt;\n&lt;div style=\&quot;height:0.5em;\&quot;/&gt;\n&lt;/$droppable&gt;\n&lt;/$tiddler&gt;\n&lt;/$vars&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;)\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;&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;&gt;\n&lt;$elementTag$ class=\&quot;tc-droppable-placeholder\&quot;&gt;\n&amp;nbsp;\n&lt;/$elementTag$&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;&gt;\n&lt;$elementTag$ class=\&quot;tc-droppable-placeholder\&quot;&gt;\n&amp;nbsp;\n&lt;/$elementTag$&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\\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)\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;&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;\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;&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;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;\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\\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;text&quot;: &quot;\\define add-tag-actions()\n&lt;$action-sendmessage $message=\&quot;tm-add-tag\&quot; $param={{$:/temp/NewTagName}}/&gt;\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/NewTagName\&quot;/&gt;\n\\end\n\n\\define add-tag-actions()\n&lt;$action-sendmessage $message=\&quot;tm-add-tag\&quot; $param={{$:/temp/NewTagName}}/&gt;\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/NewTagName\&quot;/&gt;\n\\end\n\n\\define tag-button()\n&lt;$button class=\&quot;tc-btn-invisible\&quot; tag=\&quot;a\&quot;&gt;\n$(actions)$\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/NewTagName\&quot;/&gt;\n&lt;$macrocall $name=\&quot;tag-pill\&quot; tag=&lt;&lt;tag&gt;&gt;/&gt;\n&lt;/$button&gt;\n\\end\n\n\\define tag-picker(actions)\n&lt;$set name=\&quot;actions\&quot; value=\&quot;\&quot;\&quot;$actions$\&quot;\&quot;\&quot;&gt;\n&lt;div class=\&quot;tc-edit-add-tag\&quot;&gt;\n&lt;span class=\&quot;tc-add-tag-name\&quot;&gt;\n&lt;$keyboard key=\&quot;ENTER\&quot; actions=&lt;&lt;add-tag-actions&gt;&gt;&gt;\n&lt;$edit-text tiddler=\&quot;$:/temp/NewTagName\&quot; 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;/&gt;\n&lt;/$keyboard&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\&quot; tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}&gt;{{$:/core/images/down-arrow}}&lt;/$button&gt; &lt;span class=\&quot;tc-add-tag-button\&quot;&gt;\n&lt;$set name=\&quot;tag\&quot; value={{$:/temp/NewTagName}}&gt;\n&lt;$button set=\&quot;$:/temp/NewTagName\&quot; setTo=\&quot;\&quot; class=\&quot;\&quot;&gt;\n$actions$\n&lt;$action-deletetiddler $tiddler=\&quot;$:/temp/NewTagName\&quot;/&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\&quot;&gt;\n&lt;$list filter=\&quot;[{$:/temp/NewTagName}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=\&quot;[tags[]!is[system]search:title{$:/temp/NewTagName}sort[]]\&quot; variable=\&quot;tag\&quot;&gt;\n&lt;&lt;tag-button&gt;&gt;\n&lt;/$list&gt;&lt;/$list&gt;\n&lt;hr&gt;\n&lt;$list filter=\&quot;[{$:/temp/NewTagName}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=\&quot;[tags[]is[system]search:title{$:/temp/NewTagName}sort[]]\&quot; variable=\&quot;tag\&quot;&gt;\n&lt;&lt;tag-button&gt;&gt;\n&lt;/$list&gt;&lt;/$list&gt;\n&lt;/div&gt;\n&lt;/$reveal&gt;\n&lt;/div&gt;\n&lt;/$set&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&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;\n&lt;&lt;timeline-title&gt;&gt;\n&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;] }}} excluded=\&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\&quot; value=\&quot;toc-item-selected\&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&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;/$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\&quot; value=\&quot;toc-item-selected\&quot;&gt;\n &lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;\n &lt;$link&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:\&quot; \&quot;,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\&quot; value=\&quot;toc-item-selected\&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; excluded=\&quot;\&quot;\&quot;[enlist&lt;__exclude__&gt;] -[&lt;__tag__&gt;]\&quot;\&quot;\&quot; path={{{ [&lt;__path__&gt;addsuffix[/]addsuffix&lt;__tag__&gt;] }}}&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;/$vars&gt;\n\\end\n\n\\define toc-linked-selective-expandable-body(tag,sort:\&quot;\&quot;,itemClassFilter:\&quot; \&quot;,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\&quot; value=\&quot;toc-item-selected\&quot; &gt;\n &lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;\n &lt;$link&gt;\n &lt;$list filter=\&quot;[all[current]tagging[]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:\&quot; \&quot;,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\&quot; value=\&quot;toc-item-selected\&quot;&gt;\n &lt;li class=&lt;&lt;toc-item-class&gt;&gt;&gt;\n &lt;$list filter=\&quot;[all[current]tagging[]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; excluded=\&quot;\&quot;\&quot;[enlist&lt;__exclude__&gt;] -[&lt;__tag__&gt;]\&quot;\&quot;\&quot; path={{{ [&lt;__path__&gt;addsuffix[/]addsuffix&lt;__tag__&gt;] }}}&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;/$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]field:title&lt;__selectedTiddler__&gt;]\&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)\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)\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;] }}}/&gt;\n&lt;/$reveal&gt;\n&lt;/$set&gt;\n&lt;/li&gt;\n\\end\n\n\\define tree-node(prefix)\n&lt;ol&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]removeprefix&lt;__prefix__&gt;splitbefore[/]sort[]!suffix[/]]\&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;/&gt;\n&lt;/$list&gt;\n&lt;$list filter=\&quot;[all[shadows+tiddlers]removeprefix&lt;__prefix__&gt;splitbefore[/]sort[]suffix[/]]\&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;/&gt;\n&lt;/$list&gt;\n&lt;/ol&gt;\n\\end\n\n\\define tree(prefix: \&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;/&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n\\end\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;\\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&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;table&gt;\n&lt;tbody&gt;\n&lt;$list filter=\&quot;[all[current]indexes[]]\&quot; variable=\&quot;colourName\&quot;&gt;\n&lt;tr&gt;\n&lt;td&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;$edit-text index=&lt;&lt;colourName&gt;&gt; tag=\&quot;input\&quot;/&gt;\n&lt;br&gt;\n&lt;$edit-text index=&lt;&lt;colourName&gt;&gt; type=\&quot;color\&quot; tag=\&quot;input\&quot;/&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&lt;/$list&gt;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&lt;/$set&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[description]]\&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;&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;$:/config/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;$:/config/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/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\&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;\n&lt;$transclude tiddler=&lt;&lt;icon&gt;&gt;/&gt;\n&lt;$text text=&lt;&lt;storyview&gt;&gt;/&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;
}
}
}</pre>
</div>
<div created="20190806212508759" modified="20190806212509998" title="$:/DefaultTiddlers">
<pre>Welcome</pre>
</div>
<div title="$:/isEncrypted">
<pre>no</pre>
</div>
<div created="20190806214329867" creator="Tony Garnock-Jones" modified="20190806215449746" modifier="Tony Garnock-Jones" title="$:/palette">
<pre>$:/palettes/Vanilla</pre>
</div>
<div created="20190806214417149" creator="Tony Garnock-Jones" description="Based on colours from syndicate-lang.org" modified="20190806215358629" modifier="Tony Garnock-Jones" name="Syndicate" tags="$:/tags/Palette" title="$:/palettes/Syndicate" 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
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: #BD1550
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</pre>
</div>
<div created="20190806212452308" modified="20190806212455543" title="$:/SiteSubtitle">
<pre>a language for interactive programs</pre>
</div>
<div created="20190806212440466" modified="20190806212441625" title="$:/SiteTitle">
<pre>Syndicate</pre>
</div>
<div created="20190806214354597" creator="Tony Garnock-Jones" modified="20190806215333709" modifier="Tony Garnock-Jones" title="$:/state/ShowPaletteEditor">
<pre>yes</pre>
</div>
<div created="20190806214302922" creator="Tony Garnock-Jones" modified="20190806214302922" modifier="Tony Garnock-Jones" title="$:/state/tab--1963855381">
<pre>$:/core/ui/ControlPanel/Palette</pre>
</div>
<div created="20190806212602262" creator="TonyGarnockJones" modified="20190806212604962" modifier="TonyGarnockJones" title="$:/state/tab--2112689675">
<pre>$:/core/ui/ControlPanel/Basics</pre>
</div>
<div created="20190806212606287" creator="TonyGarnockJones" modified="20190806214300838" modifier="Tony Garnock-Jones" title="$:/state/tab-1749438307">
<pre>$:/core/ui/ControlPanel/Appearance</pre>
</div>
<div created="20190806212803060" creator="Tony Garnock-Jones" modified="20190806212810597" modifier="Tony Garnock-Jones" title="$:/state/tab-2065006209">
<pre>$:/core/ui/ControlPanel/Saving/DownloadSaver</pre>
</div>
<div created="20190811142204308" creator="Tony Garnock-Jones" modified="20190811142204309" modifier="Tony Garnock-Jones" title="$:/state/tab/moresidebar-1850697562">
<pre>$:/core/ui/MoreSideBar/Missing</pre>
</div>
<div created="20190806214656574" creator="Tony Garnock-Jones" modified="20190811142324891" modifier="Tony Garnock-Jones" title="$:/state/tab/sidebar--595412856">
<pre>$:/core/ui/SideBar/Open</pre>
</div>
<div created="20190806212540369" creator="T" modified="20190806212639373" modifier="Tony GarnockJones" title="$:/status/UserName">
<pre>Tony Garnock-Jones</pre>
</div>
<div created="20190811142132288" creator="Tony Garnock-Jones" list="Welcome" modified="20190811142132288" modifier="Tony Garnock-Jones" title="$:/StoryList">
<pre></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:///home/tonyg/Downloads/syndicate-web/wiki.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;/home/tonyg/Downloads/syndicate-web/wiki.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;
}
}
}</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.19">
<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.19">
<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.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\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}\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/*\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 cursor: pointer;\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\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-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-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\tvertical-align: text-bottom;\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}\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-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\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-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-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 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 word-break: break-word;\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}\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: 0;\n\tleft: 0;\n\tmax-width: 500px;\n\tz-index: 20000;\n}\n\n.tc-alert {\n\tposition: relative;\n\tmargin: 28px;\n\tpadding: 14px 14px 14px 14px;\n\tborder: 2px 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: 14px;\n\tright: 14px;\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}\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: block;\n\tborder: 1px solid &lt;&lt;colour muted-foreground&gt;&gt;;\n\tbackground-colour: &lt;&lt;colour background&gt;&gt;;\n\tmargin: 0.5em 0 0.5em 0;\n\tpadding: 4px;\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\tdisplay: inline-block;\n\tvertical-align: middle;\n}\n\n.tc-plugin-info-chunk h1 {\n\tfont-size: 1em;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk h2 {\n\tfont-size: 0.8em;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk div {\n\tfont-size: 0.7em;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info:hover &gt; .tc-plugin-info-chunk &gt; img, .tc-plugin-info:hover &gt; .tc-plugin-info-chunk &gt; svg {\n\twidth: 2em;\n\theight: 2em;\n\tfill: &lt;&lt;colour foreground&gt;&gt;;\n}\n\n.tc-plugin-info &gt; .tc-plugin-info-chunk &gt; img, .tc-plugin-info &gt; .tc-plugin-info-chunk &gt; svg {\n\twidth: 2em;\n\theight: 2em;\n\tfill: &lt;&lt;colour muted-foreground&gt;&gt;;\n}\n\n.tc-plugin-info.tc-small-icon &gt; .tc-plugin-info-chunk &gt; img, .tc-plugin-info.tc-small-icon &gt; .tc-plugin-info-chunk &gt; svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-plugin-info-dropdown {\n\tborder: 1px solid &lt;&lt;colour muted-foreground&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 1em 1em;\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\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&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 v3.0.0 | MIT License | git.io/normalize */\n\n/**\n * 1. Set default font family to sans-serif.\n * 2. Prevent iOS text size adjust after orientation change, without disabling\n * user zoom.\n */\n\nhtml {\n font-family: sans-serif; /* 1 */\n -ms-text-size-adjust: 100%; /* 2 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/**\n * Remove default margin.\n */\n\nbody {\n margin: 0;\n}\n\n/* HTML5 display definitions\n ========================================================================== */\n\n/**\n * Correct `block` display not defined in IE 8/9.\n */\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n/**\n * 1. Correct `inline-block` display not defined in IE 8/9.\n * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n */\n\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block; /* 1 */\n vertical-align: baseline; /* 2 */\n}\n\n/**\n * Prevent modern browsers from displaying `audio` without controls.\n * Remove excess height in iOS 5 devices.\n */\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n/**\n * Address `[hidden]` styling not present in IE 8/9.\n * Hide the `template` element in IE, Safari, and Firefox &lt; 22.\n */\n\n[hidden],\ntemplate {\n display: none;\n}\n\n/* Links\n ========================================================================== */\n\n/**\n * Remove the gray background color from active links in IE 10.\n */\n\na {\n background: transparent;\n}\n\n/**\n * Improve readability when focused and also mouse hovered in all browsers.\n */\n\na:active,\na:hover {\n outline: 0;\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Address styling not present in IE 8/9, Safari 5, and Chrome.\n */\n\nabbr[title] {\n border-bottom: 1px dotted;\n}\n\n/**\n * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.\n */\n\nb,\nstrong {\n font-weight: bold;\n}\n\n/**\n * Address styling not present in Safari 5 and Chrome.\n */\n\ndfn {\n font-style: italic;\n}\n\n/**\n * Address variable `h1` font-size and margin within `section` and `article`\n * contexts in Firefox 4+, Safari 5, and Chrome.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/**\n * Address styling not present in IE 8/9.\n */\n\nmark {\n background: #ff0;\n color: #000;\n}\n\n/**\n * Address inconsistent and variable font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` affecting `line-height` in all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsup {\n top: -0.5em;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove border when inside `a` element in IE 8/9.\n */\n\nimg {\n border: 0;\n}\n\n/**\n * Correct overflow displayed oddly in IE 9.\n */\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * Address margin not present in IE 8/9 and Safari 5.\n */\n\nfigure {\n margin: 1em 40px;\n}\n\n/**\n * Address differences between Firefox and other browsers.\n */\n\nhr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n}\n\n/**\n * Contain overflow in all browsers.\n */\n\npre {\n overflow: auto;\n}\n\n/**\n * Address odd `em`-unit font size rendering in all browsers.\n */\n\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * Known limitation: by default, Chrome and Safari on OS X allow very limited\n * styling of `select`, unless a `border` property is set.\n */\n\n/**\n * 1. Correct color not being inherited.\n * Known issue: affects color of disabled elements.\n * 2. Correct font properties not being inherited.\n * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit; /* 1 */\n font: inherit; /* 2 */\n margin: 0; /* 3 */\n}\n\n/**\n * Address `overflow` set to `hidden` in IE 8/9/10.\n */\n\nbutton {\n overflow: visible;\n}\n\n/**\n * Address inconsistent `text-transform` inheritance for `button` and `select`.\n * All other form control elements do not inherit `text-transform` values.\n * Correct `button` style inheritance in Firefox, IE 8+, and Opera\n * Correct `select` style inheritance in Firefox.\n */\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/**\n * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n * and `video` controls.\n * 2. Correct inability to style clickable `input` types in iOS.\n * 3. Improve usability and consistency of cursor style between image-type\n * `input` and others.\n */\n\nbutton,\nhtml input[type=\&quot;button\&quot;], /* 1 */\ninput[type=\&quot;reset\&quot;],\ninput[type=\&quot;submit\&quot;] {\n -webkit-appearance: button; /* 2 */\n cursor: pointer; /* 3 */\n}\n\n/**\n * Re-set default cursor for disabled elements.\n */\n\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\n\n/**\n * Remove inner padding and border in Firefox 4+.\n */\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n/**\n * Address Firefox 4+ setting `line-height` on `input` using `!important` in\n * the UA stylesheet.\n */\n\ninput {\n line-height: normal;\n}\n\n/**\n * It's recommended that you don't attempt to style these elements.\n * Firefox's implementation doesn't respect box-sizing, padding, or width.\n *\n * 1. Address box sizing set to `content-box` in IE 8/9/10.\n * 2. Remove excess padding in IE 8/9/10.\n */\n\ninput[type=\&quot;checkbox\&quot;],\ninput[type=\&quot;radio\&quot;] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Fix the cursor style for Chrome's increment/decrement buttons. For certain\n * `font-size` values of the `input`, it causes the cursor style of the\n * decrement button to change from `default` to `text`.\n */\n\ninput[type=\&quot;number\&quot;]::-webkit-inner-spin-button,\ninput[type=\&quot;number\&quot;]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.\n * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome\n * (include `-moz` to future-proof).\n */\n\ninput[type=\&quot;search\&quot;] {\n -webkit-appearance: textfield; /* 1 */\n -moz-box-sizing: content-box;\n -webkit-box-sizing: content-box; /* 2 */\n box-sizing: content-box;\n}\n\n/**\n * Remove inner padding and search cancel button in Safari and Chrome on OS X.\n * Safari (but not Chrome) clips the cancel button when the search input has\n * padding (and `textfield` appearance).\n */\n\ninput[type=\&quot;search\&quot;]::-webkit-search-cancel-button,\ninput[type=\&quot;search\&quot;]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * Define consistent border, margin, and padding.\n */\n\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\n\n/**\n * 1. Correct `color` not being inherited in IE 8/9.\n * 2. Remove padding so people aren't caught out if they zero out fieldsets.\n */\n\nlegend {\n border: 0; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Remove default vertical scrollbar in IE 8/9.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * Don't inherit the `font-weight` (applied by a rule above).\n * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n */\n\noptgroup {\n font-weight: bold;\n}\n\n/* Tables\n ========================================================================== */\n\n/**\n * Remove most spacing between table cells.\n */\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntd,\nth {\n padding: 0;\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&lt;/$reveal&gt;\n&quot;
}
}
}</pre>
</div>
<div created="20190810123116595" creator="Tony Garnock-Jones" modified="20190810134832692" modifier="Tony Garnock-Jones" title="Model of concurrency">
<pre>* https://en.wikipedia.org/wiki/Concurrency_(computer_science)#Models
* http://syndicate-lang.org/tonyg-dissertation/html/#CHAP:APPROACHES-TO-COORDINATION
* https://tonyg.github.io/hopl-s2017/conversational-context-and-concurrency/
* https://eighty-twenty.org/2016/10/18/actors-hopl</pre>
</div>
<div created="20190806213218362" creator="Tony Garnock-Jones" modified="20190811142336990" modifier="Tony Garnock-Jones" title="Welcome">
<pre>!! A new model of concurrency
Syndicate is a new [[model of concurrency|Model of concurrency]], closely related to the [[actor|Actor model]], [[tuplespace|Tuplespace model]], and [[fact space|Fact space model]] models. It is made up of two interacting parts:
* The [[dataspace model|Dataspace model]] describes how programs (objects, virtual machines, hosts, etc.) interact in terms of a [[conversational model|Conversational model]]; and
* [[Facet]]s are language constructs added to a programming language to help the programmer organise their interactive programs when using the dataspace model.
!! Multiple programming language support
Syndicate implementations form an ecosystem, with interoperating implementations for multiple programming languages and environments.
* A [[JavaScript implementation|Syndicate/js]] for the browser and for node.js uses Babel to compile Syndicate language extensions to plain JavaScript
* A [[Racket `#lang`|Syndicate/rkt]] adds Syndicate concurrency to Racket
* A [[Python 3 library|Syndicate/py]] adds client-server Syndicate programming to Python 3
!! Distributed programming
The Syndicate model can be extended to the distributed case. [[Distributed Syndicate]] is made up of four pieces:
* a data format called [[Preserves]], similar to JSON, but with well-defined semantics;
* a simple [[network protocol|Network protocol]] that extends the dataspace model across TCP/IP links;
* a capability-style [[security architecture|Security architecture]] that allows flexible access control to Syndicate spaces; and
* a [[federated client-server architecture|Federated Syndicate]] for scalable, decentralized applications.
</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]";
};
/*
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:
attributes: hashmap of attribute values
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.createElement(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);
});
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 = [];
for(var t=0; t<value.length; t++) {
var entry = value[t] || "";
if(entry.indexOf(" ") !== -1) {
result.push("[[" + entry + "]]");
} else {
result.push(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
*/
$tw.utils.parseVersion = function(version) {
var match = /^((\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 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) {
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
];
return (diff[0] > 0) ||
(diff[0] === 0 && diff[1] > 0) ||
(diff[0] === 0 && diff[1] === 0 && diff[2] >= 0);
};
/*
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);
};
/*
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:
shadowTiddlers: Array of shadow tiddlers to be added
*/
$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 = options.shadowTiddlers || Object.create(null), // Hashmap by title of {source:, tiddler:}
shadowTiddlerTitles = null,
getShadowTiddlerTitles = function() {
if(!shadowTiddlerTitles) {
shadowTiddlerTitles = Object.keys(shadowTiddlers);
}
return shadowTiddlerTitles;
};
// 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)
tiddlers[title] = tiddler;
if(tiddlerTitles && tiddlerTitles.indexOf(title) === -1) {
tiddlerTitles.push(title);
}
this.clearCache(title);
this.clearGlobalCache();
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)) {
delete tiddlers[title];
if(tiddlerTitles) {
var index = tiddlerTitles.indexOf(title);
if(index !== -1) {
tiddlerTitles.splice(index,1);
}
}
this.clearCache(title);
this.clearGlobalCache();
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;
};
// Read plugin info for all plugins
this.readPluginInfo = function() {
for(var title in tiddlers) {
var tiddler = tiddlers[title];
if(tiddler.fields.type === "application/json" && tiddler.hasField("plugin-type")) {
pluginInfo[tiddler.fields.title] = JSON.parse(tiddler.fields.text);
}
}
};
// Get plugin info for a plugin
this.getPluginInfo = function(title) {
return pluginInfo[title];
};
// Register the plugin tiddlers of a particular 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) {
var disablingTiddler = self.getTiddler("$:/config/Plugins/Disabled/" + title);
if(title === "$:/core" || !disablingTiddler || (disablingTiddler.fields.text || "").trim() !== "yes") {
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, returning an array of the titles affected
this.unregisterPluginTiddlers = function(pluginType) {
var self = this,
titles = [];
// 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) {
titles.push(tiddler.fields.title);
pluginTiddlers.splice(t,1);
}
}
return titles;
};
// 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();
};
};
// 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 data = JSON.parse(text);
return $tw.utils.isArray(data) ? data : [data];
}
});
/////////////////////////// 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;
if(ext !== ".json" && tiddlers.length === 1) {
metadata = $tw.loadMetadataForFile(filepath);
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);
}
}
};
/*
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 === path.posix.sep ?
relativePath :
relativePath.split(path.sep).join(path.posix.sep);
}
$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 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"];
}
// 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("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("audio/ogg","base64",".ogg");
$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);
}
// 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>